Update templates/relatorio.html
Browse files- templates/relatorio.html +23 -11
templates/relatorio.html
CHANGED
|
@@ -1,8 +1,8 @@
|
|
| 1 |
<!DOCTYPE html>
|
| 2 |
<html lang="pt-BR">
|
| 3 |
<head>
|
| 4 |
-
<meta charset="UTF-8"
|
| 5 |
-
<meta name="viewport" content="width=device-width, initial-scale=1"
|
| 6 |
<title>Relatório de Simulação</title>
|
| 7 |
<style>
|
| 8 |
body {
|
|
@@ -10,33 +10,37 @@
|
|
| 10 |
margin: 40px;
|
| 11 |
background: #fff;
|
| 12 |
color: #333;
|
|
|
|
| 13 |
}
|
| 14 |
|
| 15 |
h1, h2 {
|
| 16 |
color: #007cf0;
|
|
|
|
| 17 |
}
|
| 18 |
|
| 19 |
.grafico {
|
| 20 |
text-align: center;
|
| 21 |
margin: 30px 0;
|
| 22 |
-
|
| 23 |
page-break-inside: avoid;
|
| 24 |
}
|
| 25 |
|
| 26 |
-
/* Ajuste para o gráfico não ultrapassar o container */
|
| 27 |
.grafico img {
|
| 28 |
-
max-width:
|
| 29 |
height: auto;
|
| 30 |
display: block;
|
| 31 |
-
margin
|
| 32 |
-
margin-right: auto;
|
| 33 |
page-break-inside: avoid;
|
|
|
|
|
|
|
|
|
|
| 34 |
}
|
| 35 |
|
| 36 |
table {
|
| 37 |
width: 100%;
|
| 38 |
border-collapse: collapse;
|
| 39 |
margin-top: 20px;
|
|
|
|
| 40 |
}
|
| 41 |
|
| 42 |
th, td {
|
|
@@ -51,7 +55,10 @@
|
|
| 51 |
}
|
| 52 |
|
| 53 |
.parametros {
|
| 54 |
-
margin-bottom:
|
|
|
|
|
|
|
|
|
|
| 55 |
}
|
| 56 |
|
| 57 |
.parametros p {
|
|
@@ -60,11 +67,16 @@
|
|
| 60 |
|
| 61 |
.destaque {
|
| 62 |
font-weight: bold;
|
| 63 |
-
font-size: 1.
|
| 64 |
margin-top: 30px;
|
| 65 |
-
padding:
|
| 66 |
background-color: #f7f9fc;
|
| 67 |
border-left: 6px solid #007cf0;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 68 |
}
|
| 69 |
</style>
|
| 70 |
</head>
|
|
@@ -84,7 +96,7 @@
|
|
| 84 |
|
| 85 |
<div class="grafico">
|
| 86 |
<h2>Gráfico de Evolução dos Investimentos</h2>
|
| 87 |
-
<img src="data:image/png;base64,{{ grafico }}" alt="Gráfico de Investimento"
|
| 88 |
</div>
|
| 89 |
|
| 90 |
<div class="destaque">
|
|
|
|
| 1 |
<!DOCTYPE html>
|
| 2 |
<html lang="pt-BR">
|
| 3 |
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
<title>Relatório de Simulação</title>
|
| 7 |
<style>
|
| 8 |
body {
|
|
|
|
| 10 |
margin: 40px;
|
| 11 |
background: #fff;
|
| 12 |
color: #333;
|
| 13 |
+
line-height: 1.6;
|
| 14 |
}
|
| 15 |
|
| 16 |
h1, h2 {
|
| 17 |
color: #007cf0;
|
| 18 |
+
margin-bottom: 10px;
|
| 19 |
}
|
| 20 |
|
| 21 |
.grafico {
|
| 22 |
text-align: center;
|
| 23 |
margin: 30px 0;
|
| 24 |
+
page-break-before: always;
|
| 25 |
page-break-inside: avoid;
|
| 26 |
}
|
| 27 |
|
|
|
|
| 28 |
.grafico img {
|
| 29 |
+
max-width: 90%;
|
| 30 |
height: auto;
|
| 31 |
display: block;
|
| 32 |
+
margin: 0 auto;
|
|
|
|
| 33 |
page-break-inside: avoid;
|
| 34 |
+
border: 1px solid #ccc;
|
| 35 |
+
padding: 10px;
|
| 36 |
+
background-color: #fafafa;
|
| 37 |
}
|
| 38 |
|
| 39 |
table {
|
| 40 |
width: 100%;
|
| 41 |
border-collapse: collapse;
|
| 42 |
margin-top: 20px;
|
| 43 |
+
font-size: 0.95em;
|
| 44 |
}
|
| 45 |
|
| 46 |
th, td {
|
|
|
|
| 55 |
}
|
| 56 |
|
| 57 |
.parametros {
|
| 58 |
+
margin-bottom: 30px;
|
| 59 |
+
padding: 15px;
|
| 60 |
+
background: #f9fbff;
|
| 61 |
+
border-left: 5px solid #007cf0;
|
| 62 |
}
|
| 63 |
|
| 64 |
.parametros p {
|
|
|
|
| 67 |
|
| 68 |
.destaque {
|
| 69 |
font-weight: bold;
|
| 70 |
+
font-size: 1.05em;
|
| 71 |
margin-top: 30px;
|
| 72 |
+
padding: 15px;
|
| 73 |
background-color: #f7f9fc;
|
| 74 |
border-left: 6px solid #007cf0;
|
| 75 |
+
box-shadow: 0 0 5px rgba(0, 0, 0, 0.05);
|
| 76 |
+
}
|
| 77 |
+
|
| 78 |
+
.tabela {
|
| 79 |
+
margin-top: 30px;
|
| 80 |
}
|
| 81 |
</style>
|
| 82 |
</head>
|
|
|
|
| 96 |
|
| 97 |
<div class="grafico">
|
| 98 |
<h2>Gráfico de Evolução dos Investimentos</h2>
|
| 99 |
+
<img src="data:image/png;base64,{{ grafico }}" alt="Gráfico de Investimento">
|
| 100 |
</div>
|
| 101 |
|
| 102 |
<div class="destaque">
|