| <html lang="pt-BR"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <style> | |
| body { font-family: Arial; margin: 20px; color: #333; } | |
| h1 { text-align: center; color: #005bb5; } | |
| table { width: 100%; border-collapse: collapse; margin-top: 20px; font-size: 12px; } | |
| th, td { border: 1px solid #ccc; padding: 8px; text-align: right; } | |
| th { background: #007cf0; color: white; } | |
| .destaque { background: #e0ffe0; font-weight: bold; padding: 10px; text-align: center; margin-top: 20px; } | |
| img { display: block; margin: 20px auto; width: 80%; } | |
| </style> | |
| </head> | |
| <body> | |
| <h1>Relatório de Simulação</h1> | |
| <div class="destaque"> | |
| Investimento com maior retorno: {{ investimento_mais_valorizado }}<br> | |
| Valor final estimado: R$ {{ "{:,.2f}".format(valor_mais_alto) }} | |
| </div> | |
| {% if grafico_base64 %} | |
| <img src="data:image/png;base64,{{ grafico_base64 }}" alt="Gráfico de Simulação"> | |
| {% endif %} | |
| {{ tabela | safe }} | |
| </body> | |
| </html> | |