/* backoffice/_record_fragment.html — a single row (e.g. "Mi cuenta") as a
   profile card: avatar + name + Edit, then a responsive grid of
   label/value pairs instead of a one-row table. */

.bo-record {
  max-width: 48rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  color: var(--color-text);
}

.bo-record__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2);
  border-bottom: 1px solid var(--color-border);
}

.bo-record__avatar {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--color-accent-soft);
  color: var(--color-main);
}

.bo-record__avatar-icon {
  width: 1.5rem;
  height: 1.5rem;
}

.bo-record__label {
  flex: 1 1 12rem;
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.bo-record__edit {
  min-width: 8.5rem;
}

.bo-record__fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: var(--space-2);
  margin: 0;
  padding: var(--space-2);
}

.bo-record__field dt {
  color: var(--color-muted);
  font-size: 0.875rem;
}

.bo-record__field dd {
  margin: 0.15rem 0 0;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.bo-record__empty {
  color: var(--color-muted);
}

/* Phones: Modificar spans the card, within easy reach of the thumb. */
@media (max-width: 39.99rem) {
  .bo-record__edit {
    flex-basis: 100%;
  }
}
