/* Smart group-to-member invite assistant */
.group-member-assistant {
  margin-top: 16px;
  grid-column: 1 / -1;
}

.assistant-empty,
.assistant-card {
  border: 1px solid rgba(28,124,84,.16);
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0%, rgba(28,124,84,.08), transparent 34%),
    linear-gradient(180deg, #ffffff, #fbfdff);
  box-shadow: 0 16px 44px rgba(16,24,40,.06);
}

.assistant-empty {
  padding: 16px 18px;
  display: grid;
  gap: 4px;
}

.assistant-empty strong {
  color: #0f172a;
}

.assistant-empty span {
  color: #64748b;
  font-size: .9rem;
  line-height: 1.45;
}

.assistant-card {
  padding: 18px;
}

.assistant-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(15,23,42,.08);
}

.assistant-head h3 {
  margin: 2px 0 6px;
  color: #0f172a;
  font-size: 1.15rem;
}

.assistant-kpis {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.assistant-kpis span {
  min-width: 86px;
  padding: 10px 12px;
  border: 1px solid rgba(28,124,84,.15);
  border-radius: 18px;
  background: #ecfdf3;
  color: #0f7f55;
  text-align: center;
  font-size: .78rem;
  font-weight: 900;
}

.assistant-kpis strong {
  display: block;
  color: #0f172a;
  font-size: 1.15rem;
}

.assistant-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.assistant-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
}

.assistant-group-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 18px;
  background: #fff;
}

.assistant-group-card strong,
.assistant-group-card small {
  display: block;
}

.assistant-group-card strong {
  color: #0f172a;
}

.assistant-group-card small {
  margin-top: 3px;
  color: #64748b;
  font-size: .82rem;
  line-height: 1.35;
}

@media (max-width: 760px) {
  .assistant-head,
  .assistant-group-card {
    grid-template-columns: 1fr;
  }

  .assistant-kpis,
  .assistant-actions {
    justify-content: stretch;
  }

  .assistant-kpis span,
  .assistant-actions .btn {
    flex: 1;
  }
}

/* Keep-open picker feedback */
.typeahead-result.is-selected .typeahead-check {
  transform: scale(1.04);
}

.typeahead-result.is-selected {
  position: relative;
}

.typeahead-result.is-selected::after {
  content: "Selected";
  position: absolute;
  right: 52px;
  top: 10px;
  font-size: .68rem;
  font-weight: 900;
  color: #0f7f55;
  background: #dcfae6;
  border: 1px solid rgba(28,124,84,.16);
  border-radius: 999px;
  padding: 3px 7px;
}

/* Auto group filter notice */
.typeahead-control-row span {
  color: #64748b;
}
