Calculadora Bolsa Família body { font-family: Arial, sans-serif; text-align: center; padding: 20px; background-color: #0077B6; color: white; } .container { max-width: 500px; margin: auto; background: white; padding: 20px; border-radius: 10px; color: black; } input, button { margin: 10px; padding: 10px; width: 100%; border-radius: 5px; border: none; } input { border: 1px solid #0077B6; } button { background-color: #00A896; color: white; font-size: 16px; cursor: pointer; } button:hover { background-color: #028090; } table { width: 100%; border-collapse: collapse; margin-top: 20px; background: #CAF0F8; color: black; } th, td { border: 1px solid black; padding: 10px; text-align: center; } th { background-color: #00A896; color: white; } #resultado { font-weight: bold; margin-top: 20px; } Calculadora Bolsa Família Número total de membros da família: Renda total da família (R$): Crianças de 0 a 7 anos: Número de gestantes: Crianças/adolescentes de 7 a 18 anos: Membros nutriz até 7 meses: Calcular Critério Quantidade Valor Total (R$) function calcularBeneficio() { let membros = parseInt(document.getElementById('membros').value); let renda = parseFloat(document.getElementById('renda').value); let criancas = parseInt(document.getElementById('criancas').value); let gestantes = parseInt(document.getElementById('gestantes').value); let adolescentes = parseInt(document.getElementById('adolescentes').value); let nutriz = parseInt(document.getElementById('nutriz').value); if (isNaN(membros) || isNaN(renda) || membros { let td = document.createElement('td'); td.innerText = item; tr.appendChild(td); }); tbody.appendChild(tr); }); tabela.style.display = "table"; }