/* Zeal Portal — entity typeahead partial
   /css/system/components/typeahead.css
   Styles for the multi-host entity picker (organisation memberships,
   key contacts, the project client link). Same visual register as the
   studio manager's project picker. Tokens only — no raw colours or
   family names. */

.eta {
  position: relative;
  min-width: 0;
}

.eta--disabled {
  opacity: 0.55;
}

.eta__selected {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  padding: 3px 8px;
  border: 1px solid var(--warm-grey, #dbc8b6);
  border-radius: var(--r-pill, 999px);
  font-family: var(--font-body);
  font-size: 13px;
  background: var(--paper-2, #f4eee8);
}

.eta__selected-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 260px;
}

.eta__clear {
  border: none;
  background: none;
  padding: 0 2px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  color: var(--ink-3, rgba(0, 0, 0, 0.55));
}

.eta__clear:hover {
  color: var(--red-status, #e24b4a);
}

.eta__input {
  width: 100%;
}

.eta__dropdown {
  position: absolute;
  z-index: 40;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 4px;
  max-height: 260px;
  overflow-y: auto;
  background: var(--paper, #fff);
  border: 1px solid var(--warm-grey, #dbc8b6);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.eta__opt {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  font-family: var(--font-body);
  font-size: 14px;
  cursor: pointer;
}

.eta__opt:hover {
  background: var(--paper-2, #f4eee8);
}

.eta__opt.is-current {
  background: var(--paper-2, #f4eee8);
}

.eta__opt--empty {
  cursor: default;
  color: var(--ink-3, rgba(0, 0, 0, 0.55));
  font-style: italic;
  font-size: 13px;
}

.eta__opt--empty:hover {
  background: none;
}

.eta__opt-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.eta__opt-sub {
  flex: none;
  font-family: var(--font-cd);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-3, rgba(0, 0, 0, 0.55));
}
