/* ==========================================================
   _org-picker.css — Seletor de organização
   Usado nas páginas do wizard de criação de projeto.
   ========================================================== */

.org-picker {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Estado: sem org */
.org-picker-empty .field-hint { margin-bottom: 4px; }

/* Estado: org única — botões lado a lado */
.org-choices {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.org-choices li { flex: 1; min-width: 140px; }

.org-choice {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border: 1.5px solid var(--line-dark);
  border-radius: var(--radius-md);
  background: var(--surface);
  font: inherit;
  font-size: .875rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: border-color var(--t), background var(--t), color var(--t);
}
.org-choice:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand);
}
.org-choice[aria-pressed="true"] {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 600;
}

.org-choice__icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  flex-shrink: 0;
  transition: background var(--t), color var(--t);
}
.org-choice[aria-pressed="true"] .org-choice__icon {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.org-choice__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.org-choice--new { color: var(--text-muted); }
.org-choice--new:hover {
  color: var(--brand);
  border-color: var(--brand);
  background: var(--brand-soft);
}

/* Estado: múltiplas orgs — select + link */
.org-new-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font: inherit;
  font-size: .8125rem;
  font-weight: 500;
  color: var(--brand);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: opacity var(--t);
}
.org-new-link:hover { text-decoration: underline; }

/* Estado de carregamento */
.org-loading {
  font-size: .875rem;
  color: var(--text-light);
  font-style: italic;
}
