| <html lang="pt-br"> | |
| <head> | |
| <meta charset="UTF-8" /> | |
| <style> | |
| body { | |
| font-family: Arial, sans-serif; | |
| font-size: 12px; | |
| color: #000; | |
| } | |
| .titulo { | |
| font-size: 18px; | |
| font-weight: bold; | |
| margin-bottom: 20px; | |
| } | |
| .grafico { | |
| text-align: center; | |
| margin: 20px 0; | |
| } | |
| .tabela { | |
| width: 100%; | |
| border-collapse: collapse; | |
| margin-top: 20px; | |
| } | |
| .tabela th, .tabela td { | |
| border: 1px solid #000; | |
| padding: 6px; | |
| text-align: right; | |
| } | |
| .tabela th { | |
| background-color: #f2f2f2; | |
| } | |
| .analise { | |
| margin-top: 30px; | |
| line-height: 1.6; | |
| white-space: pre-wrap; /* mantém quebras de linha do texto */ | |
| } | |
| .rodape { | |
| margin-top: 40px; | |
| text-align: right; | |
| font-size: 12px; | |
| } | |
| </style> | |
| </head> | |
| <body> | |
| <div class="titulo">Análise de Investimentos</div> | |
| <p><strong>Capital Inicial:</strong> R$ {{ "{:,.2f}".format(capital).replace(",", "X").replace(".", ",").replace("X", ".") }}</p> | |
| <div class="grafico"> | |
| <img src="data:image/png;base64,{{ grafico }}" width="600" /> | |
| </div> | |
| {{ tabela|safe }} | |
| <div class="analise"> | |
| {{ analise_final|safe }} | |
| </div> | |
| <div class="rodape">{{ data_hoje }}</div> | |
| </body> | |
| </html> | |