/* =============================================
   Alfa | Cliente Details — CSS fiel ao layout
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --blue-primary:  #1a4fd6;
  --blue-dark:     #1340b8;
  --green-active:  #16a34a;
  --gray-bg:       #ffffff;
  --gray-border:   #d1d5db;
  --gray-label:    #6b7280;
  --gray-800:      #1f2937;
  --white:         #ffffff;
  --radius-card:   6px;
  --radius-btn:    6px;
  --font:          'Inter', system-ui, sans-serif;
}
/*  */
body {
  font-family: var(--font);
  background: var(--gray-bg);
  color: var(--gray-800);
  -webkit-font-smoothing: antialiased;
}

/* ─── Page wrapper ─── */
.app-contato-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 580px;
  margin: 0 auto;
  padding: 20px 16px 36px;
}

/* ─── Page title ─── */
.app-contato-header {
  padding: 0 0 4px;
}

.app-contato-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--gray-800);
}

/* ─── Cards ─── */
.app-contato-card {
  background: var(--white);
  border-radius: var(--radius-card);
  border: 1px solid var(--gray-border);
  padding: 18px 16px;
}

/* ─── Cliente hero card ─── */
.app-contato-cliente-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.app-contato-cliente-nome {
  font-size: 22px;
  font-weight: 700;
  color: var(--gray-800);
  line-height: 1.2;
}

.app-contato-divider {
  border: none;
  border-top: 1px solid var(--gray-border);
  margin-bottom: 16px;
}

/* ─── Acoes (Email / Telefone / WhatsApp) ─── */
.app-contato-cliente-acoes {
  display: flex;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  margin-bottom: 16px;
}

.app-contato-acao {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 8px;
  cursor: pointer;
  border-right: 1px solid var(--gray-border);
  color: var(--blue-primary);
  background: var(--white);
  transition: background 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.app-contato-acao:last-child {
  border-right: none;
}

.app-contato-acao:active {
  background: #f0f4ff;
}

.app-contato-icone {
  font-size: 22px;
  color: var(--blue-primary);
}

.app-contato-acao span {
  font-size: 12px;
  font-weight: 400;
  color: var(--gray-800);
}

/* ─── Botao Editar (dentro do card hero) ─── */
.app-contato-btn-editar {
  width: 100%;
  padding: 13px;
  border: none;
  border-radius: var(--radius-btn);
  background: var(--blue-primary);
  color: var(--white);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.app-contato-btn-editar:active {
  background: var(--blue-dark);
}

/* ─── Badges ─── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.badge.bg-success {
  background: var(--green-active);
  color: var(--white);
}

.badge.bg-success::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--white);
  opacity: 0.85;
}

.badge.bg-danger {
  background: #dc2626;
  color: var(--white);
}

.badge.bg-info {
  background: #0ea5e9;
  color: var(--white);
}

/* ─── Secao Informacoes ─── */
.app-contato-section-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.app-contato-info-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--gray-border);
}

.app-contato-info-row {
  display: flex;
  flex-direction: column;
}

.app-contato-info-item {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 4px;
  padding: 9px 0;
  border-bottom: 1px solid #f3f4f6;
}

.app-contato-info-row:last-child .app-contato-info-item:last-child {
  border-bottom: none;
}

.app-contato-label {
  font-size: 14px;
  font-weight: 400;
  color: var(--gray-label);
  white-space: nowrap;
}

.app-contato-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-800);
  word-break: break-word;
}

.app-contato-status {
  align-items: center;
}

/* ─── Enderecos ─── */
.app-contato-endereco-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.app-contato-endereco-card {
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.app-contato-endereco-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  background: #f9fafb;
  border-bottom: 1px solid var(--gray-border);
}

.app-contato-endereco-tipo {
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-800);
}

.app-contato-endereco-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.app-contato-endereco-item {
  font-size: 13.5px;
  color: var(--gray-label);
  line-height: 1.5;
}

.app-contato-endereco-item strong {
  font-weight: 400;
  color: var(--gray-label);
}

/* ─── Rodape: Voltar / Editar Cliente ─── */
.app-contato-details > div:last-child {
  display: flex;
  gap: 10px;
  align-items: stretch;
  margin-top: 2px;
}

.app-contato-details > div:last-child a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  border-radius: var(--radius-btn);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
}

/* Voltar: borda, fundo branco, tamanho fixo */
.app-contato-details > div:last-child a:first-child {
  background: var(--white);
  color: var(--gray-800);
  border: 1px solid var(--gray-border);
  flex: 0 0 auto;
  min-width: 110px;
}

.app-contato-details > div:last-child a:first-child:active {
  background: #f3f4f6;
}

/* Editar Cliente: azul, ocupa o restante */
.app-contato-details > div:last-child a:last-child {
  background: var(--blue-primary);
  color: var(--white);
  border: none;
  flex: 1;
}

.app-contato-details > div:last-child a:last-child:active {
  background: var(--blue-dark);
}

/* ─── Responsivo ─── */
@media (min-width: 480px) {
  .app-contato-details {
    padding: 28px 20px 48px;
    gap: 14px;
  }
  .app-contato-card {
    padding: 22px 20px;
  }
}

@media (min-width: 640px) {
  .app-contato-details {
    padding: 36px 0 60px;
  }
}

