/* ── "Creating an expert from vendor …" note above the new form ─ */
.form-intro {
  font-size: 0.9rem;
  color: var(--gray-mid);
  font-style: italic;
  margin-bottom: 1.25rem;
}

/* ── Inline "Add an expert" modal (ToR line-item dropdown) ───── */
/* Mirrors .travel-modal: a centered native <dialog> opened via showModal().
   Centering is re-asserted explicitly rather than relying on UA defaults. */
.expert-modal {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(32rem, 92vw);
  max-height: 90vh;
  overflow: auto;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--border-input);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}
.expert-modal::backdrop { background: rgba(0, 0, 0, 0.35); }

.expert-modal-header { margin-bottom: 1rem; }
.expert-modal-header h3 { margin: 0 0 0.15rem; }
.expert-modal-subtitle {
  margin: 0;
  font-size: 0.85rem;
  color: var(--gray-mid);
}

.expert-modal-error {
  margin: 0 0 0.75rem;
  color: var(--danger);
  font-size: 0.85rem;
}

.expert-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

/* ── System-wide search inside the modal ──────────────────────── */
.expert-modal-search-input {
  width: 100%;
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--border-input);
  border-radius: 6px;
  font-size: 0.9rem;
}

.expert-modal-results {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  max-height: 14rem;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 6px;
}

.expert-modal-result {
  display: block;
  width: 100%;
  padding: 0.45rem 0.6rem;
  border: 0;
  background: none;
  text-align: left;
  font-size: 0.9rem;
  color: var(--text-strong);
  cursor: pointer;
}
.expert-modal-result:hover,
.expert-modal-result.is-active { background: var(--surface-muted); }

.expert-modal-empty {
  padding: 0.45rem 0.6rem;
  font-size: 0.85rem;
  color: var(--gray-mid);
}

