File size: 18,742 Bytes
faf938a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
<!DOCTYPE html>
<html lang="pt-BR">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Relatório Negociações PGFN | MVICENTE ADVOCACIA</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/html2pdf.js/0.10.1/html2pdf.bundle.min.js"></script>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        @media print {
            body * {
                visibility: hidden;
            }
            #report-content, #report-content * {
                visibility: visible;
            }
            #report-content {
                position: absolute;
                left: 0;
                top: 0;
                width: 100%;
                margin: 0;
                padding: 0;
            }
            .no-print {
                display: none !important;
            }
        }
        
        /* Custom scrollbar */
        ::-webkit-scrollbar {
            width: 8px;
            height: 8px;
        }
        ::-webkit-scrollbar-track {
            background: #f1f1f1;
        }
        ::-webkit-scrollbar-thumb {
            background: #888;
            border-radius: 4px;
        }
        ::-webkit-scrollbar-thumb:hover {
            background: #555;
        }
        
        /* Fade-in animation */
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        .animate-fade-in {
            animation: fadeIn 0.5s ease-out forwards;
        }
        
        /* Card hover effect */
        .card-hover:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
        }
        
        /* Status badges */
        .status-badge {
            @apply inline-flex items-center px-3 py-1 rounded-full text-xs font-medium;
        }
        .status-awaiting {
            @apply bg-yellow-100 text-yellow-800;
        }
        .status-due {
            @apply bg-blue-100 text-blue-800;
        }
        .status-paid {
            @apply bg-green-100 text-green-800;
        }
        
        /* Section divider */
        .section-divider {
            @apply relative my-8;
        }
        .section-divider:after {
            content: "";
            @apply absolute left-0 right-0 bottom-0 h-px bg-gradient-to-r from-transparent via-blue-200 to-transparent;
        }
        
        /* Table styling */
        .table-container {
            @apply overflow-x-auto rounded-xl border border-gray-200;
        }
        table {
            @apply min-w-full divide-y divide-gray-200;
        }
        th {
            @apply px-6 py-3 bg-gray-50 text-left text-xs font-semibold text-gray-600 uppercase tracking-wider;
        }
        td {
            @apply px-6 py-4 whitespace-nowrap text-sm text-gray-700;
        }
        tr:nth-child(even) {
            @apply bg-gray-50;
        }
        tr:hover {
            @apply bg-blue-50;
        }
        
        /* Custom buttons */
        .btn {
            @apply inline-flex items-center px-4 py-2 rounded-lg font-medium transition-all duration-200;
        }
        .btn-primary {
            @apply bg-blue-600 text-white hover:bg-blue-700 shadow-md;
        }
        .btn-secondary {
            @apply bg-gray-100 text-gray-700 hover:bg-gray-200;
        }
    </style>
</head>
<body class="bg-gray-50 font-sans antialiased">
    <!-- Floating action buttons -->
    <div class="fixed bottom-6 right-6 space-y-3 z-50 no-print">
        <button id="print-btn" class="btn btn-primary shadow-lg flex items-center">
            <i class="fas fa-print mr-2"></i> Imprimir
        </button>
        <button id="download-btn" class="btn btn-primary shadow-lg flex items-center">
            <i class="fas fa-download mr-2"></i> PDF
        </button>
    </div>

    <div class="container mx-auto px-4 py-8 max-w-6xl">
        <div class="bg-white rounded-2xl shadow-xl overflow-hidden mb-8 animate-fade-in" id="report-content">
            <!-- Header with gradient background -->
            <div class="bg-gradient-to-r from-blue-700 to-blue-600 text-white p-8">
                <div class="flex flex-col md:flex-row justify-between items-start md:items-center">
                    <div class="mb-4 md:mb-0">
                        <div class="flex items-center">
                            <div class="bg-white/20 p-2 rounded-lg mr-4">
                                <i class="fas fa-file-invoice text-2xl"></i>
                            </div>
                            <div>
                                <h1 class="text-3xl font-bold">Relatório de Negociações PGFN</h1>
                                <p class="text-blue-100 opacity-90">MVICENTE ADVOCACIA</p>
                            </div>
                        </div>
                    </div>
                    <div class="text-right">
                        <div class="bg-white/10 p-3 rounded-lg inline-block">
                            <p class="text-sm text-blue-100">Gerado em: <span id="current-date" class="font-medium">30/05/2025 - 14:30</span></p>
                        </div>
                    </div>
                </div>
            </div>

            <!-- Client Info Card -->
            <div class="p-6 border-b border-gray-200">
                <div class="flex flex-col md:flex-row justify-between items-start md:items-center gap-4">
                    <div>
                        <h2 class="text-2xl font-bold text-gray-800">BALUARTE EXTINTORES</h2>
                        <div class="flex items-center mt-1">
                            <span class="text-gray-600 mr-4">42.954.300/0001-50</span>
                            <span class="text-gray-600"><i class="fas fa-calendar-alt mr-1"></i> Desde: 15/03/2010</span>
                        </div>
                    </div>
                    <div class="flex flex-col items-end">
                        <span class="status-badge status-awaiting mb-2">
                            <i class="fas fa-clock mr-1"></i> AGUARDANDO PAGAMENTO
                        </span>
                        <div class="text-sm text-gray-600">
                            <span class="font-medium">Nº Negociação:</span> 12877926
                        </div>
                    </div>
                </div>
            </div>

            <!-- Main Content -->
            <div class="p-6 md:p-8">
                <!-- General Information Section -->
                <div class="mb-10">
                    <div class="flex items-center mb-6">
                        <div class="bg-blue-100 p-2 rounded-lg mr-3">
                            <i class="fas fa-info-circle text-blue-600"></i>
                        </div>
                        <h3 class="text-xl font-bold text-gray-800">Informações Gerais</h3>
                    </div>
                    
                    <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
                        <div class="bg-gray-50 p-5 rounded-xl border border-gray-200 card-hover transition-all duration-200">
                            <h4 class="text-sm font-semibold text-gray-500 mb-3">TIPO DE NEGOCIAÇÃO</h4>
                            <p class="text-lg font-medium text-gray-800">Parcelamento</p>
                            <p class="text-sm text-gray-600 mt-1">Modalidade: 0005 - PARCELAMENTO SEM GARANTIA</p>
                        </div>
                        
                        <div class="bg-gray-50 p-5 rounded-xl border border-gray-200 card-hover transition-all duration-200">
                            <h4 class="text-sm font-semibold text-gray-500 mb-3">DETALHES TEMPORAIS</h4>
                            <div class="space-y-1">
                                <p class="text-sm text-gray-700"><span class="font-medium">Adesão:</span> 29/05/2025 - 18:33</p>
                                <p class="text-sm text-gray-700"><span class="font-medium">Consolidação:</span> 29/05/2025</p>
                                <p class="text-sm text-gray-700"><span class="font-medium">Situação:</span> 29/05/2025</p>
                            </div>
                        </div>
                        
                        <div class="bg-gray-50 p-5 rounded-xl border border-gray-200 card-hover transition-all duration-200">
                            <h4 class="text-sm font-semibold text-gray-500 mb-3">CONFIGURAÇÕES</h4>
                            <div class="space-y-1">
                                <p class="text-sm text-gray-700"><span class="font-medium">Prestações:</span> 60 parcelas</p>
                                <p class="text-sm text-gray-700"><span class="font-medium">Débito automático:</span> Não</p>
                                <p class="text-sm text-gray-700"><span class="font-medium">Recibo:</span> 00000000000000000000</p>
                            </div>
                        </div>
                    </div>
                </div>

                <!-- Financial Summary Section -->
                <div class="mb-10">
                    <div class="flex items-center mb-6">
                        <div class="bg-blue-100 p-2 rounded-lg mr-3">
                            <i class="fas fa-chart-pie text-blue-600"></i>
                        </div>
                        <h3 class="text-xl font-bold text-gray-800">Resumo Financeiro</h3>
                    </div>
                    
                    <div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4">
                        <div class="bg-gradient-to-br from-blue-50 to-blue-100 p-5 rounded-xl border border-blue-200 card-hover transition-all duration-200">
                            <div class="flex items-center justify-between">
                                <div>
                                    <p class="text-sm font-medium text-blue-600">PRINCIPAL</p>
                                    <p class="text-2xl font-bold text-blue-800 mt-1">R$ 73.039,65</p>
                                </div>
                                <div class="bg-blue-100 p-2 rounded-lg">
                                    <i class="fas fa-file-invoice-dollar text-blue-600"></i>
                                </div>
                            </div>
                        </div>
                        
                        <div class="bg-gradient-to-br from-yellow-50 to-yellow-100 p-5 rounded-xl border border-yellow-200 card-hover transition-all duration-200">
                            <div class="flex items-center justify-between">
                                <div>
                                    <p class="text-sm font-medium text-yellow-600">MULTA</p>
                                    <p class="text-2xl font-bold text-yellow-800 mt-1">R$ 14.607,93</p>
                                </div>
                                <div class="bg-yellow-100 p-2 rounded-lg">
                                    <i class="fas fa-exclamation-triangle text-yellow-600"></i>
                                </div>
                            </div>
                        </div>
                        
                        <div class="bg-gradient-to-br from-purple-50 to-purple-100 p-5 rounded-xl border border-purple-200 card-hover transition-all duration-200">
                            <div class="flex items-center justify-between">
                                <div>
                                    <p class="text-sm font-medium text-purple-600">JUROS</p>
                                    <p class="text-2xl font-bold text-purple-800 mt-1">R$ 5.937,50</p>
                                </div>
                                <div class="bg-purple-100 p-2 rounded-lg">
                                    <i class="fas fa-percentage text-purple-600"></i>
                                </div>
                            </div>
                        </div>
                        
                        <div class="bg-gradient-to-br from-green-50 to-green-100 p-5 rounded-xl border border-green-200 card-hover transition-all duration-200">
                            <div class="flex items-center justify-between">
                                <div>
                                    <p class="text-sm font-medium text-green-600">VALOR CONSOLIDADO</p>
                                    <p class="text-2xl font-bold text-green-800 mt-1">R$ 102.943,58</p>
                                </div>
                                <div class="bg-green-100 p-2 rounded-lg">
                                    <i class="fas fa-hand-holding-usd text-green-600"></i>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>

                <!-- Debts Section -->
                <div class="mb-10">
                    <div class="flex items-center justify-between mb-6">
                        <div class="flex items-center">
                            <div class="bg-blue-100 p-2 rounded-lg mr-3">
                                <i class="fas fa-file-invoice-dollar text-blue-600"></i>
                            </div>
                            <h3 class="text-xl font-bold text-gray-800">Débitos Incluídos</h3>
                        </div>
                        <span class="text-sm text-gray-500">1 débito encontrado</span>
                    </div>
                    
                    <div class="table-container">
                        <table class="min-w-full">
                            <thead>
                                <tr>
                                    <th class="pl-8">Item</th>
                                    <th>Código Receita</th>
                                    <th>Incluído em</th>
                                    <th>Principal</th>
                                    <th>Multa</th>
                                    <th>Juros</th>
                                    <th>Encargos</th>
                                    <th class="pr-8">Total</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr>
                                    <td class="pl-8">1</td>
                                    <td>1507</td>
                                    <td>29/05/2025 - 18:33</td>
                                    <td class="font-medium">R$ 73.039,65</td>
                                    <td>R$ 14.607,93</td>
                                    <td>R$ 5.937,50</td>
                                    <td>R$ 9.358,50</td>
                                    <td class="pr-8 font-bold text-blue-600">R$ 102.943,58</td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>

                <!-- Consolidation Demo Section -->
                <div class="mb-10">
                    <div class="flex items-center mb-6">
                        <div class="bg-blue-100 p-2 rounded-lg mr-3">
                            <i class="fas fa-calculator text-blue-600"></i>
                        </div>
                        <h3 class="text-xl font-bold text-gray-800">Demonstrativo de Consolidação</h3>
                    </div>
                    
                    <div class="table-container mb-6">
                        <table class="min-w-full">
                            <thead>
                                <tr>
                                    <th class="pl-8">Demonstrativo</th>
                                    <th>Principal</th>
                                    <th>Multa</th>
                                    <th>Juros</th>
                                    <th>Encargos</th>
                                    <th class="pr-8">Total</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr>
                                    <td class="pl-8">Total sem reduções (A)</td>
                                    <td>R$ 73.039,65</td>
                                    <td>R$ 14.607,93</td>
                                    <td>R$ 5.937,50</td>
                                    <td>R$ 9.358,50</td>
                                    <td class="pr-8">R$ 102.943,58</td>
                                </tr>
                                <tr>
                                    <td class="pl-8">Valor da entrada (s/ Redução)</td>
                                    <td>R$ 0,00</td>
                                    <td>R$ 0,00</td>
                                    <td>R$ 0,00</td>
                                    <td>R$ 0,00</td>
                                    <td class="pr-8">R$ 0,00</td>
                                </tr>
                                <tr>
                                    <td class="pl-8">Descontos previstos em lei (B)</td>
                                    <td>R$ 0,00</td>
                                    <td>R$ 0,00</td>
                                    <td>R$ 0,00</td>
                                    <td>R$ 0,00</td>
                                    <td class="pr-8">R$ 0,00</td>
                                </tr>
                                <tr>
                                    <td class="pl-8">Utilização de créditos (C)</td>
                                    <td>R$ 0,00</td>
                                    <td>R$ 0,00</td>
                                    <td>R$ 0,00</td>
                                    <td>R$ 0,00</td>
                                    <td class="pr-8">R$ 0,00</td>
                                </tr>
                                <tr class="bg-blue-50">
                                    <td class="pl-8 font-semibold">Total com reduções (A - C - B)</td>
                                    <td class="font-semibold">R$ 73.039,65</td>
                                    <td class="font-semibold">R$ 14.607,93</td>
                                    <td class="font-semibold">R$ 5.937,50</td>
                                    <td class="font-semibold">R$ 9.358,50</td>
                                    <td class="pr-8 font-semibold text-blue-600">R$ 102.943,58</td>
                                </tr>
                            </tbody>
                        </table
</html>