Kushal commited on
Commit
6438f90
·
1 Parent(s): 6621cba

Fix: Stabilize template CSS for xhtml2pdf compatibility (resolved 500 error)

Browse files
app/templates/investor-pitch-deck.html CHANGED
@@ -6,162 +6,83 @@
6
  <style>
7
  @page {
8
  size: A4;
9
- margin: 1in;
10
- @bottom-center {
11
- content: "Generated by Builders.ai • Page " counter(page);
12
- font-style: italic;
13
- font-size: 0.95em;
14
- color: #888;
15
- }
16
- }
17
- html, body {
18
- height: 100%;
19
- font-family: 'Segoe UI', 'DejaVu Sans', Arial, sans-serif;
20
- background: #f6f8fa;
21
  }
22
  body {
23
- margin: 0;
24
- padding: 0;
25
- background: #f6f8fa;
 
 
26
  }
27
  .report-wrapper {
28
- max-width: 900px;
29
- margin: 0 auto;
30
- background: #fff;
31
- border-radius: 8px;
32
- box-shadow: 0 1px 4px rgba(50,80,150,0.1);
33
- padding: 40px 60px 30px 60px;
34
  }
35
  .header {
36
  border-bottom: 2px solid #2C4694;
37
- padding-bottom: 18px;
38
- margin-bottom: 30px;
39
  text-align: center;
40
  }
41
- .main-title {
42
- font-size: 2.2em;
43
  color: #2C4694;
44
  font-weight: bold;
45
- margin-bottom: 4px;
46
  }
47
  .subtitle {
48
  color: #7087B1;
49
- font-size: 1.08em;
50
- font-weight: 500;
51
  }
52
  .report-date {
53
  color: #434343;
54
- font-size: 1em;
55
- margin-top: 10px;
56
  font-style: italic;
57
  }
58
  h2 {
59
  color: #2C4694;
60
- font-size: 1.22em;
61
- margin-top: 2.3em;
62
- text-transform: uppercase;
63
- border-bottom: 1.5px solid #DCE3F2;
64
- padding-bottom: 1.5px;
65
- letter-spacing: 0.04em;
66
- }
67
- .detail-table {
68
- margin: 1.5em 0 2em 0;
69
  width: 100%;
70
  border-collapse: collapse;
 
71
  }
72
- .detail-table th, .detail-table td {
73
- padding: 10px 16px 10px 0;
74
- vertical-align: top;
75
- }
76
- .detail-table th {
77
  text-align: left;
78
- color: #32345a;
79
- background: #fafbff;
80
- font-weight: 600;
81
- border-right: 2px solid #f2f3f7;
82
- min-width: 160px;
83
  }
84
  .detail-table td {
85
- color: #25334d;
 
86
  }
87
  .content-box {
88
- padding: 18px 22px;
89
- margin-top: 0.7em;
90
- border-radius: 6px;
91
- border: 1.5px solid #e1e9f7;
92
- background: #f7fafd;
93
- font-size: 1.06em;
94
- color: #283D51;
95
- line-height: 1.55;
96
  }
97
  .finproj-list, .risk-list {
98
- margin: 1.5em 0;
99
- padding-left: 0;
100
- list-style: none;
101
- }
102
- .finproj-list li, .risk-list li {
103
- margin-bottom: 0.8em;
104
- padding: 12px 18px;
105
- background: #f7fafd;
106
  border-left: 3px solid #2C4694;
107
- border-radius: 4px;
108
  }
109
  .signoff {
110
- margin-top: 3.7em;
111
  text-align: right;
112
- color: #6e8db2;
113
- }
114
-
115
- /* Editable styles */
116
- .editable {
117
- border: 2px dashed transparent;
118
- padding: 2px 4px;
119
- border-radius: 4px;
120
- cursor: text;
121
- transition: all 0.2s;
122
- min-height: 1.2em;
123
- display: inline-block;
124
- min-width: 50px;
125
- }
126
- .editable:hover {
127
- border-color: #2C4694;
128
- background-color: rgba(44, 70, 148, 0.05);
129
- }
130
- .editable:focus {
131
- outline: none;
132
- border-color: #2C4694;
133
- background-color: rgba(44, 70, 148, 0.1);
134
- }
135
- .editable-content {
136
- border: 2px dashed transparent;
137
- padding: 4px;
138
- border-radius: 4px;
139
- cursor: text;
140
- transition: all 0.2s;
141
- min-height: 2em;
142
- }
143
- .editable-content:hover {
144
- border-color: #2C4694;
145
- background-color: rgba(44, 70, 148, 0.05);
146
- }
147
- .editable-content:focus {
148
- outline: none;
149
- border-color: #2C4694;
150
- background-color: rgba(44, 70, 148, 0.1);
151
- }
152
- .ai-button {
153
- background: linear-gradient(45deg, #667eea 0%, #764ba2 100%);
154
- color: white;
155
- border: none;
156
- padding: 4px 8px;
157
- border-radius: 4px;
158
- font-size: 10px;
159
- cursor: pointer;
160
- margin-left: 8px;
161
- font-weight: bold;
162
- }
163
- .ai-button:hover {
164
- transform: scale(1.05);
165
  }
166
  </style>
167
  </head>
 
6
  <style>
7
  @page {
8
  size: A4;
9
+ margin: 2cm;
 
 
 
 
 
 
 
 
 
 
 
10
  }
11
  body {
12
+ font-family: Arial, Helvetica, sans-serif;
13
+ background-color: #ffffff;
14
+ color: #25334d;
15
+ font-size: 11pt;
16
+ line-height: 1.5;
17
  }
18
  .report-wrapper {
19
+ width: 100%;
20
+ background: #ffffff;
 
 
 
 
21
  }
22
  .header {
23
  border-bottom: 2px solid #2C4694;
24
+ padding-bottom: 15px;
25
+ margin-bottom: 25px;
26
  text-align: center;
27
  }
28
+ .logo-title {
29
+ font-size: 24pt;
30
  color: #2C4694;
31
  font-weight: bold;
 
32
  }
33
  .subtitle {
34
  color: #7087B1;
35
+ font-size: 12pt;
 
36
  }
37
  .report-date {
38
  color: #434343;
39
+ font-size: 10pt;
 
40
  font-style: italic;
41
  }
42
  h2 {
43
  color: #2C4694;
44
+ font-size: 14pt;
45
+ margin-top: 25px;
46
+ border-bottom: 1px solid #DCE3F2;
47
+ padding-bottom: 5px;
48
+ }
49
+ .fact-table {
 
 
 
50
  width: 100%;
51
  border-collapse: collapse;
52
+ margin-bottom: 20px;
53
  }
54
+ .fact-table th {
 
 
 
 
55
  text-align: left;
56
+ background-color: #fafbff;
57
+ padding: 8px;
58
+ border: 1px solid #f2f3f7;
59
+ width: 35%;
 
60
  }
61
  .detail-table td {
62
+ padding: 8px;
63
+ border: 1px solid #f2f3f7;
64
  }
65
  .content-box {
66
+ padding: 15px;
67
+ margin-top: 10px;
68
+ border: 1px solid #e1e9f7;
69
+ background-color: #f7fafd;
 
 
 
 
70
  }
71
  .finproj-list, .risk-list {
72
+ padding: 0;
73
+ margin: 10px 0;
74
+ }
75
+ .finproj-list div, .risk-list div {
76
+ margin-bottom: 10px;
77
+ padding: 10px;
78
+ background-color: #f7fafd;
 
79
  border-left: 3px solid #2C4694;
 
80
  }
81
  .signoff {
82
+ margin-top: 40px;
83
  text-align: right;
84
+ color: #7087B1;
85
+ font-size: 10pt;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
86
  }
87
  </style>
88
  </head>
app/templates/property-evaluation.html CHANGED
@@ -6,150 +6,73 @@
6
  <style>
7
  @page {
8
  size: A4;
9
- margin: 1in;
10
- @bottom-center {
11
- content: "Generated by Builders.ai • Page " counter(page);
12
- font-style: italic;
13
- font-size: 0.95em;
14
- color: #888;
15
- }
16
- }
17
- html, body {
18
- height: 100%;
19
- font-family: 'Segoe UI', 'DejaVu Sans', Arial, sans-serif;
20
- background: #f6f8fa;
21
  }
22
  body {
23
- margin: 0;
24
- padding: 0;
25
- background: #f6f8fa;
 
 
26
  }
27
  .report-wrapper {
28
- max-width: 900px;
29
- margin: 0 auto;
30
- background: #fff;
31
- border-radius: 8px;
32
- box-shadow: 0 1px 4px rgba(50,80,150,0.1);
33
- padding: 40px 60px 30px 60px;
34
  }
35
  .header {
36
  border-bottom: 2px solid #2C4694;
37
- padding-bottom: 18px;
38
- margin-bottom: 30px;
39
  text-align: center;
40
  }
41
- .header .logo-title {
42
- font-size: 2.2em;
43
  color: #2C4694;
44
  font-weight: bold;
45
- margin-bottom: 4px;
46
  }
47
- .header .subtitle {
48
  color: #7087B1;
49
- font-size: 1.08em;
50
- font-weight: 500;
51
  }
52
- .header .report-date {
53
  color: #434343;
54
- font-size: 1em;
55
- margin-top: 10px;
56
  font-style: italic;
57
  }
58
  h2 {
59
  color: #2C4694;
60
- font-size: 1.22em;
61
- margin-top: 2.3em;
62
- text-transform: uppercase;
63
- border-bottom: 1.5px solid #DCE3F2;
64
- padding-bottom: 1.5px;
65
- letter-spacing: 0.04em;
66
  }
67
  .fact-table {
68
- margin: 1.5em 0 2em 0;
69
  width: 100%;
70
  border-collapse: collapse;
71
- }
72
- .fact-table th, .fact-table td {
73
- padding: 10px 16px 10px 0;
74
- vertical-align: top;
75
  }
76
  .fact-table th {
77
  text-align: left;
78
- color: #32345a;
79
- background: #fafbff;
80
- font-weight: 600;
81
- border-right: 2px solid #f2f3f7;
82
- min-width: 160px;
83
  }
84
  .fact-table td {
85
- color: #25334d;
 
86
  }
87
  .content-box {
88
- padding: 18px 22px;
89
- margin-top: 0.7em;
90
- border-radius: 6px;
91
- border: 1.5px solid #e1e9f7;
92
- background: #f7fafd;
93
- font-size: 1.06em;
94
- color: #283D51;
95
- line-height: 1.55;
96
  }
97
  .signoff {
98
- margin-top: 3.5em;
99
  text-align: right;
100
  color: #7087B1;
101
- }
102
-
103
- /* Editable styles */
104
- .editable {
105
- border: 2px dashed transparent;
106
- padding: 2px 4px;
107
- border-radius: 4px;
108
- cursor: text;
109
- transition: all 0.2s;
110
- min-height: 1.2em;
111
- display: inline-block;
112
- min-width: 50px;
113
- }
114
- .editable:hover {
115
- border-color: #2C4694;
116
- background-color: rgba(44, 70, 148, 0.05);
117
- }
118
- .editable:focus {
119
- outline: none;
120
- border-color: #2C4694;
121
- background-color: rgba(44, 70, 148, 0.1);
122
- }
123
- .editable-content {
124
- border: 2px dashed transparent;
125
- padding: 4px;
126
- border-radius: 4px;
127
- cursor: text;
128
- transition: all 0.2s;
129
- min-height: 2em;
130
- }
131
- .editable-content:hover {
132
- border-color: #2C4694;
133
- background-color: rgba(44, 70, 148, 0.05);
134
- }
135
- .editable-content:focus {
136
- outline: none;
137
- border-color: #2C4694;
138
- background-color: rgba(44, 70, 148, 0.1);
139
- }
140
- .ai-button {
141
- background: linear-gradient(45deg, #667eea 0%, #764ba2 100%);
142
- color: white;
143
- border: none;
144
- padding: 4px 8px;
145
- border-radius: 4px;
146
- font-size: 10px;
147
- cursor: pointer;
148
- margin-left: 8px;
149
- font-weight: bold;
150
- }
151
- .ai-button:hover {
152
- transform: scale(1.05);
153
  }
154
  </style>
155
  </head>
 
6
  <style>
7
  @page {
8
  size: A4;
9
+ margin: 2cm;
 
 
 
 
 
 
 
 
 
 
 
10
  }
11
  body {
12
+ font-family: Arial, Helvetica, sans-serif;
13
+ background-color: #ffffff;
14
+ color: #25334d;
15
+ font-size: 11pt;
16
+ line-height: 1.5;
17
  }
18
  .report-wrapper {
19
+ width: 100%;
20
+ background: #ffffff;
 
 
 
 
21
  }
22
  .header {
23
  border-bottom: 2px solid #2C4694;
24
+ padding-bottom: 15px;
25
+ margin-bottom: 25px;
26
  text-align: center;
27
  }
28
+ .logo-title {
29
+ font-size: 24pt;
30
  color: #2C4694;
31
  font-weight: bold;
 
32
  }
33
+ .subtitle {
34
  color: #7087B1;
35
+ font-size: 12pt;
 
36
  }
37
+ .report-date {
38
  color: #434343;
39
+ font-size: 10pt;
 
40
  font-style: italic;
41
  }
42
  h2 {
43
  color: #2C4694;
44
+ font-size: 14pt;
45
+ margin-top: 25px;
46
+ border-bottom: 1px solid #DCE3F2;
47
+ padding-bottom: 5px;
 
 
48
  }
49
  .fact-table {
 
50
  width: 100%;
51
  border-collapse: collapse;
52
+ margin-bottom: 20px;
 
 
 
53
  }
54
  .fact-table th {
55
  text-align: left;
56
+ background-color: #fafbff;
57
+ padding: 8px;
58
+ border: 1px solid #f2f3f7;
59
+ width: 35%;
 
60
  }
61
  .fact-table td {
62
+ padding: 8px;
63
+ border: 1px solid #f2f3f7;
64
  }
65
  .content-box {
66
+ padding: 15px;
67
+ margin-top: 10px;
68
+ border: 1px solid #e1e9f7;
69
+ background-color: #f7fafd;
 
 
 
 
70
  }
71
  .signoff {
72
+ margin-top: 40px;
73
  text-align: right;
74
  color: #7087B1;
75
+ font-size: 10pt;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
76
  }
77
  </style>
78
  </head>