/* AF CRM — ficha do cliente: nome completo numa linha só; a fonte diminui até caber sem empurrar os botões (25/09/2026 c) */
main h1.tracking-tight.uppercase.line-clamp-1 { display: block; -webkit-line-clamp: unset; line-clamp: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; line-height: 1.15; }
main div:has(> h1.tracking-tight.uppercase.line-clamp-1), main div:has(> div > h1.tracking-tight.uppercase.line-clamp-1) { min-width: 0; }

/* celular (d): botões do cabeçalho em grade 3×2, sem sair da tela; cabeçalho dos cartões quebra linha */
@media (max-width: 767px) {
  main .flex.gap-2.w-full.md\:w-auto.mt-4 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
  main .flex.gap-2.w-full.md\:w-auto.mt-4 > *, main .flex.gap-2.w-full.md\:w-auto.mt-4 > * > button { width: 100%; min-width: 0; height: 2.5rem; padding: 0 .5rem; font-size: .82rem; gap: .35rem; }
  main .flex.gap-2.w-full.md\:w-auto.mt-4 > * svg { width: 15px; height: 15px; flex: 0 0 auto; }
  main .space-y-1\.5.p-6.flex.flex-row.items-center.justify-between.border-b { flex-wrap: wrap; gap: .75rem; }
  main .space-y-1\.5.p-6.flex.flex-row.items-center.justify-between.border-b > :first-child { flex: 1 1 100%; margin: 0; }
  main .space-y-1\.5.p-6.flex.flex-row.items-center.justify-between.border-b > button { flex: 1 1 100%; margin: 0; }
}
