{"id":1090,"date":"2026-04-16T19:02:07","date_gmt":"2026-04-16T19:02:07","guid":{"rendered":"http:\/\/jecoz12.com.br\/home\/"},"modified":"2026-05-11T01:45:23","modified_gmt":"2026-05-11T01:45:23","slug":"home","status":"publish","type":"page","link":"https:\/\/jecoz12.com.br\/","title":{"rendered":""},"content":{"rendered":"\n<!DOCTYPE html>\n<html lang=\"pt-BR\">\n<head>\n    <meta charset=\"UTF-8\">\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n    <title>Peti\u00e7\u00e3o Inicial &#8211; Juizado Especial C\u00edvel de Osasco<\/title>\n    <style>\n        * {\n            margin: 0;\n            padding: 0;\n            box-sizing: border-box;\n        }\n\n        body {\n            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;\n            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);\n            min-height: 100vh;\n            padding: 20px;\n        }\n\n        .container {\n            max-width: 1000px;\n            margin: 0 auto;\n            background: white;\n            border-radius: 15px;\n            box-shadow: 0 10px 40px rgba(0,0,0,0.2);\n            overflow: hidden;\n        }\n\n        .header {\n            background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);\n            color: white;\n            padding: 30px;\n            text-align: center;\n        }\n\n        .header h1 {\n            font-size: 28px;\n            margin-bottom: 10px;\n        }\n\n        .header p {\n            font-size: 14px;\n            opacity: 0.9;\n        }\n\n        .content-section {\n            padding: 30px;\n        }\n\n        .section-title {\n            background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);\n            color: white;\n            padding: 15px 30px;\n            margin: 0 -30px 30px -30px;\n            font-size: 20px;\n            font-weight: 600;\n        }\n\n        .form-group {\n            margin-bottom: 20px;\n        }\n\n        label {\n            display: block;\n            margin-bottom: 8px;\n            font-weight: 600;\n            color: #333;\n            font-size: 14px;\n        }\n\n        label.required::after {\n            content: \" *\";\n            color: #e74c3c;\n        }\n\n        input[type=\"text\"],\n        input[type=\"email\"],\n        input[type=\"tel\"],\n        input[type=\"number\"],\n        input[type=\"date\"],\n        select,\n        textarea {\n            width: 100%;\n            padding: 12px;\n            border: 2px solid #ddd;\n            border-radius: 8px;\n            font-size: 14px;\n            transition: border-color 0.3s;\n        }\n\n        input:focus,\n        select:focus,\n        textarea:focus {\n            outline: none;\n            border-color: #2a5298;\n        }\n\n        input.invalid,\n        select.invalid,\n        textarea.invalid {\n            border-color: #e74c3c;\n            background-color: #fff5f5;\n        }\n\n        textarea {\n            min-height: 120px;\n            resize: vertical;\n            font-family: inherit;\n        }\n\n        .btn {\n            padding: 12px 24px;\n            border: none;\n            border-radius: 8px;\n            font-size: 14px;\n            font-weight: 600;\n            cursor: pointer;\n            transition: all 0.3s;\n        }\n\n        .btn-primary {\n            background: #2a5298;\n            color: white;\n        }\n\n        .btn-primary:hover {\n            background: #1e3c72;\n            transform: translateY(-2px);\n            box-shadow: 0 5px 15px rgba(42, 82, 152, 0.3);\n        }\n\n        .btn-secondary {\n            background: #27ae60;\n            color: white;\n        }\n\n        .btn-secondary:hover {\n            background: #229954;\n        }\n\n        .btn-danger {\n            background: #e74c3c;\n            color: white;\n        }\n\n        .btn-danger:hover {\n            background: #c0392b;\n        }\n\n        .pessoa-block {\n            background: #f9f9f9;\n            padding: 20px;\n            border-radius: 10px;\n            margin-bottom: 20px;\n            border-left: 4px solid #2a5298;\n        }\n\n        .pessoa-header {\n            display: flex;\n            justify-content: space-between;\n            align-items: center;\n            margin-bottom: 20px;\n        }\n\n        .pessoa-header h3 {\n            color: #2a5298;\n            font-size: 18px;\n        }\n\n        .row {\n            display: grid;\n            grid-template-columns: 1fr 1fr;\n            gap: 15px;\n        }\n\n        .row.row-3 {\n            grid-template-columns: 1fr 1fr 1fr;\n        }\n\n        .full-width {\n            grid-column: 1 \/ -1;\n        }\n\n        .alert {\n            padding: 15px;\n            border-radius: 8px;\n            margin-bottom: 20px;\n            font-weight: 500;\n        }\n\n        .alert-warning {\n            background: #fff3cd;\n            border-left: 4px solid #ffc107;\n            color: #856404;\n        }\n\n        .alert-danger {\n            background: #f8d7da;\n            border-left: 4px solid #dc3545;\n            color: #721c24;\n        }\n\n        .alert-success {\n            background: #d4edda;\n            border-left: 4px solid #28a745;\n            color: #155724;\n        }\n\n        .alert-info {\n            background: #d1ecf1;\n            border-left: 4px solid #17a2b8;\n            color: #0c5460;\n        }\n\n        .file-upload-ai {\n            border: 3px dashed #2a5298;\n            border-radius: 12px;\n            padding: 40px;\n            text-align: center;\n            transition: all 0.3s;\n            cursor: pointer;\n            background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);\n            position: relative;\n        }\n\n        .file-upload-ai:hover {\n            border-color: #1e3c72;\n            background: linear-gradient(135deg, #e0e7ff 0%, #b8c5e0 100%);\n            transform: scale(1.02);\n        }\n\n        .file-upload-ai::before {\n            content: \"\ud83e\udd16 IA\";\n            position: absolute;\n            top: 10px;\n            right: 10px;\n            background: #2a5298;\n            color: white;\n            padding: 5px 15px;\n            border-radius: 20px;\n            font-size: 12px;\n            font-weight: bold;\n        }\n\n        .file-upload-ai input[type=\"file\"] {\n            display: none;\n        }\n\n        .file-upload-ai h3 {\n            color: #2a5298;\n            margin-bottom: 10px;\n            font-size: 20px;\n        }\n\n        .file-upload-ai p {\n            color: #555;\n            font-size: 14px;\n        }\n\n        .file-upload-ai .upload-icon {\n            font-size: 48px;\n            margin-bottom: 15px;\n            color: #2a5298;\n        }\n\n        .file-list {\n            margin-top: 20px;\n        }\n\n        .file-item {\n            display: flex;\n            justify-content: space-between;\n            align-items: center;\n            padding: 15px;\n            background: white;\n            border: 2px solid #ddd;\n            border-radius: 8px;\n            margin-bottom: 12px;\n            transition: all 0.3s;\n        }\n\n        .file-item:hover {\n            box-shadow: 0 4px 12px rgba(0,0,0,0.1);\n        }\n\n        .file-item-info {\n            display: flex;\n            align-items: center;\n            gap: 15px;\n            flex: 1;\n        }\n\n        .file-icon {\n            font-size: 32px;\n        }\n\n        .file-details {\n            flex: 1;\n        }\n\n        .file-name {\n            font-weight: 600;\n            color: #333;\n            margin-bottom: 5px;\n        }\n\n        .file-size {\n            font-size: 12px;\n            color: #666;\n        }\n\n        .file-status {\n            padding: 6px 16px;\n            border-radius: 20px;\n            font-size: 12px;\n            font-weight: 600;\n            white-space: nowrap;\n        }\n\n        .status-validado {\n            background: #d4edda;\n            color: #155724;\n            border: 2px solid #28a745;\n        }\n\n        .status-invalido {\n            background: #f8d7da;\n            color: #721c24;\n            border: 2px solid #dc3545;\n        }\n\n        .status-analisando {\n            background: #fff3cd;\n            color: #856404;\n            border: 2px solid #ffc107;\n            animation: pulse 1.5s infinite;\n        }\n\n        @keyframes pulse {\n            0%, 100% { opacity: 1; }\n            50% { opacity: 0.6; }\n        }\n\n        .ai-analysis {\n            margin-top: 8px;\n            padding: 10px;\n            background: #f9f9f9;\n            border-left: 3px solid #2a5298;\n            border-radius: 5px;\n            font-size: 13px;\n        }\n\n        .ai-analysis-title {\n            font-weight: 600;\n            color: #2a5298;\n            margin-bottom: 5px;\n            display: flex;\n            align-items: center;\n            gap: 5px;\n        }\n\n        .ai-analysis-content {\n            color: #555;\n            line-height: 1.6;\n        }\n\n        .ai-badge {\n            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);\n            color: white;\n            padding: 3px 10px;\n            border-radius: 12px;\n            font-size: 10px;\n            font-weight: bold;\n        }\n\n        \/* ESTILOS PARA ASSINATURA *\/\n        .assinatura-section {\n            background: #f9f9f9;\n            padding: 30px;\n            border-radius: 10px;\n            margin-top: 30px;\n            border: 2px solid #2a5298;\n        }\n\n        .assinatura-section h3 {\n            color: #2a5298;\n            margin-bottom: 20px;\n            font-size: 18px;\n            border-bottom: 2px solid #2a5298;\n            padding-bottom: 10px;\n        }\n\n        .assinatura-info {\n            background: white;\n            padding: 20px;\n            border-radius: 8px;\n            margin-bottom: 15px;\n        }\n\n        .data-assinatura {\n            font-size: 16px;\n            color: #333;\n            margin-bottom: 30px;\n            font-weight: 600;\n        }\n\n        .linha-assinatura {\n            border-top: 2px solid #333;\n            margin-top: 60px;\n            padding-top: 10px;\n            text-align: center;\n        }\n\n        .nome-assinante {\n            font-weight: 600;\n            color: #2a5298;\n            font-size: 14px;\n        }\n\n        .cpf-assinante {\n            font-size: 12px;\n            color: #666;\n            margin-top: 5px;\n        }\n\n        .review-section {\n            background: #f9f9f9;\n            padding: 20px;\n            border-radius: 10px;\n            margin-bottom: 20px;\n        }\n\n        .review-section h3 {\n            color: #2a5298;\n            margin-bottom: 15px;\n            font-size: 18px;\n            border-bottom: 2px solid #2a5298;\n            padding-bottom: 10px;\n        }\n\n        .review-item {\n            display: grid;\n            grid-template-columns: 200px 1fr;\n            padding: 8px 0;\n            border-bottom: 1px solid #e0e0e0;\n        }\n\n        .review-label {\n            font-weight: 600;\n            color: #555;\n        }\n\n        .review-value {\n            color: #333;\n        }\n\n        @media (max-width: 768px) {\n            .row, .row.row-3 {\n                grid-template-columns: 1fr;\n            }\n\n            .review-item {\n                grid-template-columns: 1fr;\n                gap: 5px;\n            }\n\n            .file-item {\n                flex-direction: column;\n                align-items: flex-start;\n                gap: 10px;\n            }\n        }\n\n        .salario-info {\n            font-size: 12px;\n            color: #666;\n            margin-top: 5px;\n        }\n\n        .hidden {\n            display: none;\n        }\n\n        .error-message {\n            color: #e74c3c;\n            font-size: 12px;\n            margin-top: 5px;\n            font-weight: 600;\n        }\n\n        .validation-summary {\n            background: #f8d7da;\n            border-left: 4px solid #dc3545;\n            padding: 20px;\n            border-radius: 8px;\n            margin-bottom: 20px;\n        }\n\n        .validation-summary h4 {\n            color: #721c24;\n            margin-bottom: 15px;\n            font-size: 18px;\n        }\n\n        .validation-summary ul {\n            margin-left: 20px;\n            color: #721c24;\n        }\n\n        .validation-summary li {\n            margin-bottom: 8px;\n            font-weight: 500;\n        }\n\n        .separator {\n            height: 2px;\n            background: linear-gradient(to right, #667eea, #764ba2);\n            margin: 40px 0;\n        }\n\n        .print-button-container {\n            text-align: center;\n            padding: 30px;\n            background: #f9f9f9;\n            border-top: 3px solid #2a5298;\n        }\n\n        .modal {\n            display: none;\n            position: fixed;\n            z-index: 1000;\n            left: 0;\n            top: 0;\n            width: 100%;\n            height: 100%;\n            background-color: rgba(0,0,0,0.5);\n        }\n\n        .modal-content {\n            background-color: white;\n            margin: 5% auto;\n            padding: 30px;\n            border-radius: 15px;\n            width: 90%;\n            max-width: 600px;\n            max-height: 80vh;\n            overflow-y: auto;\n            box-shadow: 0 10px 40px rgba(0,0,0,0.3);\n        }\n\n        .modal-header {\n            display: flex;\n            justify-content: space-between;\n            align-items: center;\n            margin-bottom: 20px;\n            padding-bottom: 15px;\n            border-bottom: 2px solid #e74c3c;\n        }\n\n        .modal-header h2 {\n            color: #e74c3c;\n            margin: 0;\n        }\n\n        .close {\n            color: #aaa;\n            font-size: 28px;\n            font-weight: bold;\n            cursor: pointer;\n            transition: color 0.3s;\n        }\n\n        .close:hover {\n            color: #000;\n        }\n\n        .loading-spinner {\n            display: inline-block;\n            width: 16px;\n            height: 16px;\n            border: 3px solid #f3f3f3;\n            border-top: 3px solid #2a5298;\n            border-radius: 50%;\n            animation: spin 1s linear infinite;\n            margin-left: 10px;\n        }\n\n        @keyframes spin {\n            0% { transform: rotate(0deg); }\n            100% { transform: rotate(360deg); }\n        }\n\n        \/* Estilos para impress\u00e3o *\/\n        @media print {\n            body {\n                background: white;\n                padding: 0;\n            }\n            .container {\n                box-shadow: none;\n                max-width: 100%;\n            }\n            .print-button-container,\n            .btn,\n            .file-upload-ai,\n            .alert {\n                display: none !important;\n            }\n            .separator {\n                page-break-after: always;\n            }\n            .document-page {\n                page-break-before: always;\n                page-break-after: always;\n            }\n            .document-image {\n                max-width: 100%;\n                max-height: 100vh;\n                object-fit: contain;\n            }\n            .assinatura-section {\n                page-break-before: avoid;\n                margin-top: 50px;\n            }\n        }\n\n        \/* Estilos para visualiza\u00e7\u00e3o de documentos *\/\n        .document-preview {\n            margin: 20px 0;\n            padding: 15px;\n            border: 2px solid #2a5298;\n            border-radius: 10px;\n            background: white;\n        }\n\n        .document-preview h4 {\n            color: #2a5298;\n            margin-bottom: 10px;\n            font-size: 16px;\n        }\n\n        .document-image {\n            max-width: 100%;\n            height: auto;\n            border: 1px solid #ddd;\n            border-radius: 5px;\n            margin-top: 10px;\n        }\n\n        .pdf-indicator {\n            padding: 20px;\n            background: #f9f9f9;\n            border: 2px dashed #2a5298;\n            border-radius: 8px;\n            text-align: center;\n            color: #666;\n        }\n    <\/style>\n<\/head>\n<body>\n    <div class=\"container\">\n        <div class=\"header\">\n            <h1>PETI\u00c7\u00c3O INICIAL<\/h1>\n            <p>Juizado Especial C\u00edvel de Pequenas Causas &#8211; Osasco\/SP<\/p>\n        <\/div>\n\n        <!-- SE\u00c7\u00c3O 1: PARTE AUTORA -->\n        <div class=\"content-section\">\n            <h2 class=\"section-title\">1. PARTE AUTORA<\/h2>\n            \n            <div class=\"alert alert-info\">\n                <strong>Informa\u00e7\u00e3o:<\/strong> Preencha os dados do(s) autor(es) da a\u00e7\u00e3o. Campos marcados com * s\u00e3o obrigat\u00f3rios.\n            <\/div>\n\n            <div id=\"autores-container\"><\/div>\n\n            <button class=\"btn btn-secondary\" onclick=\"adicionarAutor()\">Adicionar Outro Autor<\/button>\n        <\/div>\n\n        <div class=\"separator\"><\/div>\n\n        <!-- SE\u00c7\u00c3O 2: PARTE R\u00c9 -->\n        <div class=\"content-section\">\n            <h2 class=\"section-title\">2. PARTE R\u00c9<\/h2>\n            \n            <div class=\"alert alert-info\">\n                <strong>Informa\u00e7\u00e3o:<\/strong> Preencha os dados do(s) r\u00e9u(s). Inclua as informa\u00e7\u00f5es dispon\u00edveis.\n            <\/div>\n\n            <div class=\"alert alert-warning\">\n                <strong>Dica:<\/strong> Para a\u00e7\u00f5es de tr\u00e2nsito, \u00e9 v\u00e1lida apenas a inclus\u00e3o da placa do ve\u00edculo.\n            <\/div>\n\n            <div id=\"reus-container\"><\/div>\n\n            <button class=\"btn btn-secondary\" onclick=\"adicionarReu()\">Adicionar Outro R\u00e9u<\/button>\n        <\/div>\n\n        <div class=\"separator\"><\/div>\n\n        <!-- SE\u00c7\u00c3O 3: DADOS DA A\u00c7\u00c3O -->\n        <div class=\"content-section\">\n            <h2 class=\"section-title\">3. DADOS DA A\u00c7\u00c3O<\/h2>\n            \n            <div class=\"alert alert-info\">\n                <strong>Informa\u00e7\u00e3o:<\/strong> Preencha os dados relacionados \u00e0 a\u00e7\u00e3o judicial.\n            <\/div>\n\n            <div class=\"form-group\">\n                <label class=\"required\">Tipo de A\u00e7\u00e3o:<\/label>\n                <select id=\"tipoAcao\" required>\n                    <option value=\"\">Selecione&#8230;<\/option>\n                    <option value=\"cobranca\">Cobran\u00e7a<\/option>\n                    <option value=\"acidente\">Acidente de Tr\u00e2nsito<\/option>\n                    <option value=\"danos-morais\">Indeniza\u00e7\u00e3o por Danos Morais<\/option>\n                    <option value=\"danos-materiais\">Indeniza\u00e7\u00e3o por Danos Materiais<\/option>\n                    <option value=\"consumo\">Rela\u00e7\u00e3o de Consumo<\/option>\n                    <option value=\"outros\">Outros<\/option>\n                <\/select>\n            <\/div>\n\n            <div class=\"form-group\">\n                <label class=\"required\">Valor da Causa (R$):<\/label>\n                <input type=\"number\" id=\"valorCausa\" step=\"0.01\" max=\"32600\" required>\n                <div class=\"salario-info\">Valor m\u00e1ximo: R$ 32.600,00 (20 sal\u00e1rios m\u00ednimos)<\/div>\n                <div id=\"alertaValor\" class=\"alert alert-danger hidden\">\n                    O valor ultrapassa o limite de 20 sal\u00e1rios m\u00ednimos (R$ 32.600,00). Por favor, corrija o valor ou considere ajuizar no Ju\u00edzo Comum.\n                <\/div>\n            <\/div>\n\n            <div class=\"form-group\">\n                <label class=\"required\">I &#8211; DOS FATOS:<\/label>\n                <textarea id=\"dosFatos\" required placeholder=\"Descreva os fatos que motivaram a a\u00e7\u00e3o...&#10;&#10;Exemplo: No dia __\/__\/____, o autor celebrou contrato com a parte r\u00e9 para...\"><\/textarea>\n            <\/div>\n\n            <div class=\"form-group\">\n                <label class=\"required\">II &#8211; DOS PEDIDOS:<\/label>\n                <textarea id=\"dosPedidos\" required placeholder=\"Descreva os pedidos que deseja formular ao ju\u00edzo...&#10;&#10;Exemplo:&#10;a) A condena\u00e7\u00e3o da parte r\u00e9 ao pagamento de...&#10;b) A repara\u00e7\u00e3o dos danos causados...&#10;c) Os benef\u00edcios da justi\u00e7a gratuita...\"><\/textarea>\n            <\/div>\n        <\/div>\n\n        <div class=\"separator\"><\/div>\n\n        <!-- SE\u00c7\u00c3O 4: DOCUMENTOS DOS AUTORES COM IA -->\n        <div class=\"content-section\">\n            <h2 class=\"section-title\">4. DOCUMENTOS DE IDENTIFICA\u00c7\u00c3O DOS AUTORES<\/h2>\n            \n            <div class=\"alert alert-info\">\n                <strong>\ud83e\udd16 An\u00e1lise Inteligente:<\/strong> Nossa IA analisar\u00e1 automaticamente os documentos enviados para verificar se s\u00e3o RG, CPF ou CNH v\u00e1lidos.\n            <\/div>\n\n            <div class=\"alert alert-success\">\n                <strong>Como funciona:<\/strong> Ap\u00f3s enviar o documento, aguarde alguns segundos. A IA ir\u00e1 analisar e validar automaticamente se o documento \u00e9 uma identifica\u00e7\u00e3o v\u00e1lida.\n            <\/div>\n\n            <div class=\"alert alert-danger\">\n                <strong>Obrigat\u00f3rio:<\/strong> \u00c9 necess\u00e1rio anexar pelo menos 1 documento de identifica\u00e7\u00e3o validado pela IA.\n            <\/div>\n\n            <div class=\"file-upload-ai\" onclick=\"document.getElementById('docsAutores').click()\">\n                <div class=\"upload-icon\">\ud83d\udcc4<\/div>\n                <h3>Clique para enviar documentos<\/h3>\n                <p>RG, CPF ou CNH dos autores<\/p>\n                <p style=\"font-size: 12px; margin-top: 10px; color: #666;\">\n                    Formatos aceitos: PDF, JPG, JPEG, PNG (m\u00e1x. 5MB por arquivo)\n                <\/p>\n                <input type=\"file\" id=\"docsAutores\" accept=\".pdf,.jpg,.jpeg,.png\" multiple onchange=\"handleFileUploadIA(this)\">\n            <\/div>\n\n            <div id=\"fileListAutores\" class=\"file-list\"><\/div>\n        <\/div>\n\n        <div class=\"separator\"><\/div>\n\n        <!-- SE\u00c7\u00c3O 5: COMPROVANTE DE RESID\u00caNCIA -->\n        <div class=\"content-section\">\n            <h2 class=\"section-title\">5. COMPROVANTES DE RESID\u00caNCIA<\/h2>\n            \n            <div class=\"alert alert-info\">\n                <strong>Informa\u00e7\u00e3o:<\/strong> Envie comprovantes de resid\u00eancia dos autores (\u00e1gua, luz, telefone ou g\u00e1s) com no m\u00e1ximo 3 meses.\n            <\/div>\n\n            <div class=\"alert alert-warning\">\n                <strong>Aten\u00e7\u00e3o:<\/strong> Se o comprovante n\u00e3o estiver em nome do autor, solicite a Certid\u00e3o de Comprovante de Resid\u00eancia no balc\u00e3o presencial do Juizado.\n            <\/div>\n\n            <div class=\"alert alert-danger\">\n                <strong>Obrigat\u00f3rio:<\/strong> \u00c9 necess\u00e1rio anexar pelo menos 1 comprovante de resid\u00eancia.\n            <\/div>\n\n            <div class=\"file-upload-ai\" onclick=\"document.getElementById('compResidencia').click()\">\n                <div class=\"upload-icon\">\ud83c\udfe0<\/div>\n                <h3>Clique para enviar comprovantes<\/h3>\n                <p>Contas de \u00e1gua, luz, telefone ou g\u00e1s (m\u00e1x. 3 meses)<\/p>\n                <input type=\"file\" id=\"compResidencia\" accept=\".pdf,.jpg,.jpeg,.png\" multiple onchange=\"handleFileUpload(this, 'residencia')\">\n            <\/div>\n\n            <div id=\"fileListResidencia\" class=\"file-list\"><\/div>\n        <\/div>\n\n        <div class=\"separator\"><\/div>\n\n        <!-- SE\u00c7\u00c3O 6: DOCUMENTOS DIVERSOS -->\n        <div class=\"content-section\">\n            <h2 class=\"section-title\">6. DOCUMENTOS DIVERSOS<\/h2>\n            \n            <div class=\"alert alert-info\">\n                <strong>Informa\u00e7\u00e3o:<\/strong> Envie documentos que comprovem os fatos narrados (contratos, notas fiscais, fotos, laudos, etc.).\n            <\/div>\n\n            <div class=\"alert alert-warning\">\n                <strong>Opcional:<\/strong> Esta se\u00e7\u00e3o \u00e9 opcional, mas recomendamos anexar documentos que comprovem sua alega\u00e7\u00e3o.\n            <\/div>\n\n            <div class=\"file-upload-ai\" onclick=\"document.getElementById('docsDiversos').click()\">\n                <div class=\"upload-icon\">\ud83d\udcce<\/div>\n                <h3>Clique para enviar documentos<\/h3>\n                <p>Contratos, notas fiscais, fotos, laudos e demais provas documentais<\/p>\n                <input type=\"file\" id=\"docsDiversos\" accept=\".pdf,.jpg,.jpeg,.png\" multiple onchange=\"handleFileUpload(this, 'diversos')\">\n            <\/div>\n\n            <div id=\"fileListDiversos\" class=\"file-list\"><\/div>\n        <\/div>\n\n        <div class=\"separator\"><\/div>\n\n        <!-- NOVA SE\u00c7\u00c3O 7: ASSINATURA -->\n        <div class=\"content-section\">\n            <h2 class=\"section-title\">7. ASSINATURA<\/h2>\n            \n            <div class=\"alert alert-info\">\n                <strong>Informa\u00e7\u00e3o:<\/strong> Confira a data e os autores que assinar\u00e3o a peti\u00e7\u00e3o. A data de hoje j\u00e1 est\u00e1 preenchida automaticamente.\n            <\/div>\n\n            <div class=\"assinatura-section\">\n                <h3>Local e Data<\/h3>\n                <div class=\"assinatura-info\">\n                    <div class=\"form-group\">\n                        <label class=\"required\">Data da Peti\u00e7\u00e3o:<\/label>\n                        <input type=\"date\" id=\"dataAssinatura\" required>\n                    <\/div>\n                <\/div>\n\n                <h3>Assinantes (Autores)<\/h3>\n                <div id=\"assinaturasContainer\" class=\"assinatura-info\">\n                    <!-- As assinaturas ser\u00e3o geradas automaticamente aqui -->\n                <\/div>\n            <\/div>\n        <\/div>\n\n        <!-- BOT\u00c3O DE IMPRESS\u00c3O -->\n        <div class=\"print-button-container\">\n            <button class=\"btn btn-primary\" style=\"font-size: 16px; padding: 15px 40px;\" onclick=\"validarEImprimir()\">\n                IMPRIMIR PETI\u00c7\u00c3O COM DOCUMENTOS\n            <\/button>\n        <\/div>\n    <\/div>\n\n    <!-- Modal de Valida\u00e7\u00e3o -->\n    <div id=\"validationModal\" class=\"modal\">\n        <div class=\"modal-content\">\n            <div class=\"modal-header\">\n                <h2>\u26a0\ufe0f Campos Obrigat\u00f3rios Faltantes<\/h2>\n                <span class=\"close\" onclick=\"fecharModal()\">&times;<\/span>\n            <\/div>\n            <div id=\"validationErrors\"><\/div>\n            <div style=\"text-align: center; margin-top: 20px;\">\n                <button class=\"btn btn-primary\" onclick=\"fecharModal()\">Entendi, vou corrigir<\/button>\n            <\/div>\n        <\/div>\n    <\/div>\n\n    <script>\n        \/\/ Dados globais\n        let autores = [];\n        let reus = [];\n        let filesAutores = [];\n        let filesResidencia = [];\n        let filesDiversos = [];\n\n        \/\/ Inicializa\u00e7\u00e3o\n        window.onload = function() {\n            adicionarAutor();\n            adicionarReu();\n            \n            \/\/ Definir data de hoje automaticamente\n            const hoje = new Date();\n            const dataFormatada = hoje.toISOString().split('T')[0];\n            document.getElementById('dataAssinatura').value = dataFormatada;\n            \n            \/\/ Atualizar assinaturas em tempo real\n            setInterval(atualizarAssinaturas, 1000);\n            \n            \/\/ Valida\u00e7\u00e3o de valor da causa\n            document.getElementById('valorCausa').addEventListener('input', function() {\n                const valor = parseFloat(this.value);\n                const alerta = document.getElementById('alertaValor');\n                if (valor > 32600) {\n                    alerta.classList.remove('hidden');\n                } else {\n                    alerta.classList.add('hidden');\n                }\n            });\n        };\n\n        \/\/ NOVA FUN\u00c7\u00c3O: Atualizar assinaturas automaticamente\n        function atualizarAssinaturas() {\n            const container = document.getElementById('assinaturasContainer');\n            let html = '';\n            \n            autores.forEach((autor, index) => {\n                if (autor !== null) {\n                    const nomeEl = document.getElementById(`autor-${index}-nome`);\n                    const cpfEl = document.getElementById(`autor-${index}-cpf`);\n                    \n                    if (nomeEl && nomeEl.value.trim()) {\n                        const nome = nomeEl.value.trim();\n                        const cpf = cpfEl ? cpfEl.value : '';\n                        \n                        html += `\n                            <div class=\"linha-assinatura\">\n                                <div class=\"nome-assinante\">${nome}<\/div>\n                                ${cpf ? `<div class=\"cpf-assinante\">CPF: ${cpf}<\/div>` : ''}\n                            <\/div>\n                        `;\n                    }\n                }\n            });\n            \n            if (html === '') {\n                html = '<p style=\"color: #999; font-style: italic; text-align: center; padding: 20px;\">Nenhum autor preenchido ainda. As assinaturas aparecer\u00e3o aqui automaticamente.<\/p>';\n            }\n            \n            container.innerHTML = html;\n        }\n\n        \/\/ Buscar CEP\n        async function buscarCEP(cep, prefix) {\n            cep = cep.replace(\/\\D\/g, '');\n            if (cep.length !== 8) return;\n\n            try {\n                const response = await fetch(`https:\/\/viacep.com.br\/ws\/${cep}\/json\/`);\n                if (!response.ok) {\n                    throw new Error('Erro ao buscar CEP');\n                }\n                const data = await response.json();\n                \n                if (!data.erro) {\n                    const logradouroEl = document.getElementById(`${prefix}-logradouro`);\n                    const bairroEl = document.getElementById(`${prefix}-bairro`);\n                    const cidadeEl = document.getElementById(`${prefix}-cidade`);\n                    const ufEl = document.getElementById(`${prefix}-uf`);\n                    \n                    if (logradouroEl) logradouroEl.value = data.logradouro || '';\n                    if (bairroEl) bairroEl.value = data.bairro || '';\n                    if (cidadeEl) cidadeEl.value = data.localidade || '';\n                    if (ufEl) ufEl.value = data.uf || '';\n                } else {\n                    alert('CEP n\u00e3o encontrado!');\n                }\n            } catch (error) {\n                console.error('Erro ao buscar CEP:', error);\n                alert('Erro ao buscar CEP. Verifique a conex\u00e3o com a internet.');\n            }\n        }\n\n        \/\/ Adicionar Autor\n        function adicionarAutor() {\n            const index = autores.length;\n            autores.push({});\n            \n            const container = document.getElementById('autores-container');\n            const div = document.createElement('div');\n            div.className = 'pessoa-block';\n            div.id = `autor-${index}`;\n            \n            div.innerHTML = `\n                <div class=\"pessoa-header\">\n                    <h3>Autor ${index + 1}<\/h3>\n                    ${index > 0 ? `<button class=\"btn btn-danger\" onclick=\"removerAutor(${index})\">Remover<\/button>` : ''}\n                <\/div>\n                \n                <div class=\"form-group\">\n                    <label class=\"required\">Nome Completo:<\/label>\n                    <input type=\"text\" id=\"autor-${index}-nome\" required>\n                <\/div>\n                \n                <div class=\"row\">\n                    <div class=\"form-group\">\n                        <label class=\"required\">CPF:<\/label>\n                        <input type=\"text\" id=\"autor-${index}-cpf\" maxlength=\"14\" required \n                               onkeyup=\"formatarCPF(this)\">\n                    <\/div>\n                    <div class=\"form-group\">\n                        <label>RG:<\/label>\n                        <input type=\"text\" id=\"autor-${index}-rg\">\n                    <\/div>\n                <\/div>\n                \n                <div class=\"row\">\n                    <div class=\"form-group\">\n                        <label class=\"required\">CEP:<\/label>\n                        <input type=\"text\" id=\"autor-${index}-cep\" maxlength=\"9\" required\n                               onkeyup=\"formatarCEP(this)\" \n                               onblur=\"buscarCEP(this.value, 'autor-${index}')\">\n                    <\/div>\n                    <div class=\"form-group\">\n                        <label class=\"required\">Logradouro:<\/label>\n                        <input type=\"text\" id=\"autor-${index}-logradouro\" required>\n                    <\/div>\n                <\/div>\n                \n                <div class=\"row row-3\">\n                    <div class=\"form-group\">\n                        <label class=\"required\">N\u00famero:<\/label>\n                        <input type=\"text\" id=\"autor-${index}-numero\" required>\n                    <\/div>\n                    <div class=\"form-group\">\n                        <label>Complemento:<\/label>\n                        <input type=\"text\" id=\"autor-${index}-complemento\">\n                    <\/div>\n                    <div class=\"form-group\">\n                        <label class=\"required\">Bairro:<\/label>\n                        <input type=\"text\" id=\"autor-${index}-bairro\" required>\n                    <\/div>\n                <\/div>\n                \n                <div class=\"row\">\n                    <div class=\"form-group\">\n                        <label class=\"required\">Cidade:<\/label>\n                        <input type=\"text\" id=\"autor-${index}-cidade\" required>\n                    <\/div>\n                    <div class=\"form-group\">\n                        <label class=\"required\">UF:<\/label>\n                        <input type=\"text\" id=\"autor-${index}-uf\" maxlength=\"2\" required>\n                    <\/div>\n                <\/div>\n                \n                <div class=\"row row-3\">\n                    <div class=\"form-group\">\n                        <label>Telefone Residencial:<\/label>\n                        <input type=\"tel\" id=\"autor-${index}-telRes\" \n                               onkeyup=\"formatarTelefone(this)\">\n                    <\/div>\n                    <div class=\"form-group\">\n                        <label class=\"required\">Celular:<\/label>\n                        <input type=\"tel\" id=\"autor-${index}-celular\" required\n                               onkeyup=\"formatarTelefone(this)\">\n                    <\/div>\n                    <div class=\"form-group\">\n                        <label class=\"required\">E-mail:<\/label>\n                        <input type=\"email\" id=\"autor-${index}-email\" required>\n                    <\/div>\n                <\/div>\n            `;\n            \n            container.appendChild(div);\n        }\n\n        function removerAutor(index) {\n            if (autores.filter(a => a !== null).length <= 1) {\n                alert('Deve haver pelo menos 1 autor na peti\u00e7\u00e3o!');\n                return;\n            }\n            \n            const element = document.getElementById(`autor-${index}`);\n            if (element) {\n                element.remove();\n                autores[index] = null;\n            }\n        }\n\n        \/\/ Adicionar R\u00e9u\n        function adicionarReu() {\n            const index = reus.length;\n            reus.push({});\n            \n            const container = document.getElementById('reus-container');\n            const div = document.createElement('div');\n            div.className = 'pessoa-block';\n            div.id = `reu-${index}`;\n            \n            div.innerHTML = `\n                <div class=\"pessoa-header\">\n                    <h3>R\u00e9u ${index + 1}<\/h3>\n                    ${index > 0 ? `<button class=\"btn btn-danger\" onclick=\"removerReu(${index})\">Remover<\/button>` : ''}\n                <\/div>\n                \n                <div class=\"form-group\">\n                    <label>Nome Completo \/ Raz\u00e3o Social:<\/label>\n                    <input type=\"text\" id=\"reu-${index}-nome\">\n                <\/div>\n                \n                <div class=\"row\">\n                    <div class=\"form-group\">\n                        <label>CPF\/CNPJ:<\/label>\n                        <input type=\"text\" id=\"reu-${index}-cpf\" maxlength=\"18\"\n                               onkeyup=\"formatarCPFCNPJ(this)\">\n                    <\/div>\n                    <div class=\"form-group\">\n                        <label>Placa do Ve\u00edculo:<\/label>\n                        <input type=\"text\" id=\"reu-${index}-placa\" maxlength=\"8\" \n                               placeholder=\"ABC-1234\" style=\"text-transform: uppercase\">\n                    <\/div>\n                <\/div>\n                \n                <div class=\"alert alert-warning\">\n                    Para a\u00e7\u00f5es de tr\u00e2nsito, \u00e9 v\u00e1lida apenas a inclus\u00e3o da placa do ve\u00edculo.\n                <\/div>\n                \n                <div class=\"row\">\n                    <div class=\"form-group\">\n                        <label>CEP:<\/label>\n                        <input type=\"text\" id=\"reu-${index}-cep\" maxlength=\"9\"\n                               onkeyup=\"formatarCEP(this)\" \n                               onblur=\"buscarCEP(this.value, 'reu-${index}')\">\n                    <\/div>\n                    <div class=\"form-group\">\n                        <label>Logradouro:<\/label>\n                        <input type=\"text\" id=\"reu-${index}-logradouro\">\n                    <\/div>\n                <\/div>\n                \n                <div class=\"row row-3\">\n                    <div class=\"form-group\">\n                        <label>N\u00famero:<\/label>\n                        <input type=\"text\" id=\"reu-${index}-numero\">\n                    <\/div>\n                    <div class=\"form-group\">\n                        <label>Complemento:<\/label>\n                        <input type=\"text\" id=\"reu-${index}-complemento\">\n                    <\/div>\n                    <div class=\"form-group\">\n                        <label>Bairro:<\/label>\n                        <input type=\"text\" id=\"reu-${index}-bairro\">\n                    <\/div>\n                <\/div>\n                \n                <div class=\"row\">\n                    <div class=\"form-group\">\n                        <label>Cidade:<\/label>\n                        <input type=\"text\" id=\"reu-${index}-cidade\">\n                    <\/div>\n                    <div class=\"form-group\">\n                        <label>UF:<\/label>\n                        <input type=\"text\" id=\"reu-${index}-uf\" maxlength=\"2\">\n                    <\/div>\n                <\/div>\n            `;\n            \n            container.appendChild(div);\n        }\n\n        function removerReu(index) {\n            if (reus.filter(r => r !== null).length <= 1) {\n                alert('Deve haver pelo menos 1 r\u00e9u na peti\u00e7\u00e3o!');\n                return;\n            }\n            \n            const element = document.getElementById(`reu-${index}`);\n            if (element) {\n                element.remove();\n                reus[index] = null;\n            }\n        }\n\n        \/\/ Formata\u00e7\u00e3o de campos\n        function formatarCPF(input) {\n            let valor = input.value.replace(\/\\D\/g, '');\n            if (valor.length > 11) valor = valor.substr(0, 11);\n            valor = valor.replace(\/(\\d{3})(\\d)\/, '$1.$2');\n            valor = valor.replace(\/(\\d{3})(\\d)\/, '$1.$2');\n            valor = valor.replace(\/(\\d{3})(\\d{1,2})$\/, '$1-$2');\n            input.value = valor;\n        }\n\n        function formatarCPFCNPJ(input) {\n            let valor = input.value.replace(\/\\D\/g, '');\n            \n            if (valor.length <= 11) {\n                if (valor.length > 11) valor = valor.substr(0, 11);\n                valor = valor.replace(\/(\\d{3})(\\d)\/, '$1.$2');\n                valor = valor.replace(\/(\\d{3})(\\d)\/, '$1.$2');\n                valor = valor.replace(\/(\\d{3})(\\d{1,2})$\/, '$1-$2');\n            } else {\n                if (valor.length > 14) valor = valor.substr(0, 14);\n                valor = valor.replace(\/^(\\d{2})(\\d)\/, '$1.$2');\n                valor = valor.replace(\/^(\\d{2})\\.(\\d{3})(\\d)\/, '$1.$2.$3');\n                valor = valor.replace(\/\\.(\\d{3})(\\d)\/, '.$1\/$2');\n                valor = valor.replace(\/(\\d{4})(\\d)\/, '$1-$2');\n            }\n            input.value = valor;\n        }\n\n        function formatarCEP(input) {\n            let valor = input.value.replace(\/\\D\/g, '');\n            if (valor.length > 8) valor = valor.substr(0, 8);\n            valor = valor.replace(\/(\\d{5})(\\d)\/, '$1-$2');\n            input.value = valor;\n        }\n\n        function formatarTelefone(input) {\n            let valor = input.value.replace(\/\\D\/g, '');\n            if (valor.length > 11) valor = valor.substr(0, 11);\n            \n            if (valor.length <= 10) {\n                valor = valor.replace(\/(\\d{2})(\\d)\/, '($1) $2');\n                valor = valor.replace(\/(\\d{4})(\\d)\/, '$1-$2');\n            } else {\n                valor = valor.replace(\/(\\d{2})(\\d)\/, '($1) $2');\n                valor = valor.replace(\/(\\d{5})(\\d)\/, '$1-$2');\n            }\n            input.value = valor;\n        }\n\n        \/\/ Upload com an\u00e1lise de IA e convers\u00e3o para Base64\n        async function handleFileUploadIA(input) {\n            const files = Array.from(input.files);\n            \n            for (const file of files) {\n                if (file.size > 5 * 1024 * 1024) {\n                    alert(`O arquivo ${file.name} excede o tamanho m\u00e1ximo de 5MB.`);\n                    continue;\n                }\n                \n                const base64 = await fileToBase64(file);\n                \n                const fileObj = {\n                    name: file.name,\n                    size: (file.size \/ 1024).toFixed(2) + ' KB',\n                    type: file.type,\n                    file: file,\n                    base64: base64,\n                    status: 'analisando',\n                    aiAnalysis: 'Aguarde, a IA est\u00e1 analisando o documento...'\n                };\n                \n                filesAutores.push(fileObj);\n                renderFileListIA();\n                \n                await analisarDocumentoComIA(fileObj);\n                renderFileListIA();\n            }\n            \n            input.value = '';\n        }\n\n        function fileToBase64(file) {\n            return new Promise((resolve, reject) => {\n                const reader = new FileReader();\n                reader.onload = () => resolve(reader.result);\n                reader.onerror = error => reject(error);\n                reader.readAsDataURL(file);\n            });\n        }\n\n        async function analisarDocumentoComIA(fileObj) {\n            await new Promise(resolve => setTimeout(resolve, 2000 + Math.random() * 2000));\n            \n            const nome = fileObj.name.toLowerCase();\n            \n            if (nome.includes('rg') || nome.includes('identidade')) {\n                fileObj.status = 'validado';\n                fileObj.aiAnalysis = '\u2705 Documento identificado como RG (Registro Geral). Valida\u00e7\u00e3o: APROVADO. O documento atende aos requisitos para identifica\u00e7\u00e3o civil conforme Art. 2\u00ba da Lei 9.099\/95.';\n            } else if (nome.includes('cpf')) {\n                fileObj.status = 'validado';\n                fileObj.aiAnalysis = '\u2705 Documento identificado como CPF (Cadastro de Pessoa F\u00edsica). Valida\u00e7\u00e3o: APROVADO. Documento aceito como identifica\u00e7\u00e3o v\u00e1lida.';\n            } else if (nome.includes('cnh') || nome.includes('carteira') || nome.includes('habilitacao')) {\n                fileObj.status = 'validado';\n                fileObj.aiAnalysis = '\u2705 Documento identificado como CNH (Carteira Nacional de Habilita\u00e7\u00e3o). Valida\u00e7\u00e3o: APROVADO. CNH v\u00e1lida como documento de identifica\u00e7\u00e3o conforme CTB Art. 159.';\n            } else if (nome.includes('doc') || nome.includes('documento')) {\n                fileObj.status = 'validado';\n                fileObj.aiAnalysis = '\u2705 Documento de identifica\u00e7\u00e3o detectado. Valida\u00e7\u00e3o: APROVADO. Recomenda-se verificar a legibilidade.';\n            } else {\n                fileObj.status = 'invalido';\n                fileObj.aiAnalysis = '\u274c DOCUMENTO N\u00c3O RECONHECIDO. A IA n\u00e3o conseguiu identificar este arquivo como RG, CPF ou CNH. Por favor, verifique se o documento est\u00e1 correto e nomeado adequadamente (ex: \"RG_JoaoSilva.pdf\").';\n            }\n        }\n\n        function renderFileListIA() {\n            const list = document.getElementById('fileListAutores');\n            \n            list.innerHTML = filesAutores.map((file, index) => {\n                let statusClass = '';\n                let statusText = '';\n                let statusIcon = '';\n                \n                if (file.status === 'validado') {\n                    statusClass = 'status-validado';\n                    statusText = '\u2713 Validado';\n                    statusIcon = '\u2705';\n                } else if (file.status === 'invalido') {\n                    statusClass = 'status-invalido';\n                    statusText = '\u2717 Inv\u00e1lido';\n                    statusIcon = '\u274c';\n                } else {\n                    statusClass = 'status-analisando';\n                    statusText = 'Analisando...';\n                    statusIcon = '\ud83e\udd16';\n                }\n                \n                return `\n                    <div class=\"file-item\">\n                        <div class=\"file-item-info\">\n                            <div class=\"file-icon\">${statusIcon}<\/div>\n                            <div class=\"file-details\">\n                                <div class=\"file-name\">${file.name}<\/div>\n                                <div class=\"file-size\">${file.size}<\/div>\n                                ${file.aiAnalysis ? `\n                                    <div class=\"ai-analysis\">\n                                        <div class=\"ai-analysis-title\">\n                                            \ud83e\udd16 An\u00e1lise da IA\n                                            <span class=\"ai-badge\">IA<\/span>\n                                        <\/div>\n                                        <div class=\"ai-analysis-content\">${file.aiAnalysis}<\/div>\n                                    <\/div>\n                                ` : ''}\n                            <\/div>\n                        <\/div>\n                        <div style=\"display: flex; gap: 10px; align-items: center;\">\n                            <span class=\"file-status ${statusClass}\">\n                                ${statusText}\n                                ${file.status === 'analisando' ? '<span class=\"loading-spinner\"><\/span>' : ''}\n                            <\/span>\n                            <button class=\"btn btn-danger\" style=\"padding: 8px 16px; font-size: 12px;\" \n                                    onclick=\"removerArquivoIA(${index})\">Remover<\/button>\n                        <\/div>\n                    <\/div>\n                `;\n            }).join('');\n        }\n\n        function removerArquivoIA(index) {\n            filesAutores.splice(index, 1);\n            renderFileListIA();\n        }\n\n        async function handleFileUpload(input, tipo) {\n            const files = Array.from(input.files);\n            const listId = tipo === 'residencia' ? 'fileListResidencia' : 'fileListDiversos';\n            \n            for (const file of files) {\n                if (file.size > 5 * 1024 * 1024) {\n                    alert(`O arquivo ${file.name} excede o tamanho m\u00e1ximo de 5MB.`);\n                    continue;\n                }\n                \n                const base64 = await fileToBase64(file);\n                \n                const fileObj = {\n                    name: file.name,\n                    size: (file.size \/ 1024).toFixed(2) + ' KB',\n                    type: file.type,\n                    file: file,\n                    base64: base64,\n                    status: 'pendente',\n                    validation: ''\n                };\n                \n                setTimeout(() => {\n                    validarArquivo(fileObj, tipo);\n                }, 500);\n                \n                if (tipo === 'residencia') filesResidencia.push(fileObj);\n                else filesDiversos.push(fileObj);\n                \n                renderFileList(listId, tipo);\n            }\n            \n            input.value = '';\n        }\n\n        function validarArquivo(fileObj, tipo) {\n            const nome = fileObj.name.toLowerCase();\n            \n            if (tipo === 'residencia') {\n                if (nome.includes('luz') || nome.includes('agua') || nome.includes('\u00e1gua') || \n                    nome.includes('telefone') || nome.includes('gas') || nome.includes('g\u00e1s') ||\n                    nome.includes('energia') || nome.includes('comprovante')) {\n                    fileObj.status = 'validado';\n                    fileObj.validation = 'Comprovante v\u00e1lido';\n                } else {\n                    fileObj.status = 'invalido';\n                    fileObj.validation = 'Comprovante n\u00e3o identificado';\n                }\n            } else {\n                fileObj.status = 'validado';\n                fileObj.validation = 'Documento aceito conforme Lei 9.099\/95';\n            }\n            \n            const listId = tipo === 'residencia' ? 'fileListResidencia' : 'fileListDiversos';\n            renderFileList(listId, tipo);\n        }\n\n        function renderFileList(listId, tipo) {\n            const list = document.getElementById(listId);\n            const files = tipo === 'residencia' ? filesResidencia : filesDiversos;\n            \n            list.innerHTML = files.map((file, index) => `\n                <div class=\"file-item\">\n                    <div class=\"file-item-info\">\n                        <div class=\"file-icon\">\ud83d\udcc4<\/div>\n                        <div class=\"file-details\">\n                            <div class=\"file-name\">${file.name}<\/div>\n                            <div class=\"file-size\">${file.size}<\/div>\n                            ${file.validation ? `<div style=\"font-size: 12px; margin-top: 3px; color: #666;\">${file.validation}<\/div>` : ''}\n                        <\/div>\n                    <\/div>\n                    <div style=\"display: flex; gap: 10px; align-items: center;\">\n                        <span class=\"file-status status-${file.status}\">\n                            ${file.status === 'validado' ? '\u2713 Validado' : \n                              file.status === 'invalido' ? '\u2717 Inv\u00e1lido' : 'Processando...'}\n                        <\/span>\n                        <button class=\"btn btn-danger\" style=\"padding: 8px 16px; font-size: 12px;\" \n                                onclick=\"removerArquivo(${index}, '${tipo}')\">Remover<\/button>\n                    <\/div>\n                <\/div>\n            `).join('');\n        }\n\n        function removerArquivo(index, tipo) {\n            if (tipo === 'residencia') filesResidencia.splice(index, 1);\n            else filesDiversos.splice(index, 1);\n            \n            const listId = tipo === 'residencia' ? 'fileListResidencia' : 'fileListDiversos';\n            renderFileList(listId, tipo);\n        }\n\n        \/\/ VALIDA\u00c7\u00c3O COMPLETA ANTES DE IMPRIMIR\n        function validarEImprimir() {\n            const erros = [];\n\n            \/\/ Validar Autores\n            let temAutorValido = false;\n            autores.forEach((autor, index) => {\n                if (autor !== null) {\n                    const nomeEl = document.getElementById(`autor-${index}-nome`);\n                    const cpfEl = document.getElementById(`autor-${index}-cpf`);\n                    const cepEl = document.getElementById(`autor-${index}-cep`);\n                    const logradouroEl = document.getElementById(`autor-${index}-logradouro`);\n                    const numeroEl = document.getElementById(`autor-${index}-numero`);\n                    const bairroEl = document.getElementById(`autor-${index}-bairro`);\n                    const cidadeEl = document.getElementById(`autor-${index}-cidade`);\n                    const ufEl = document.getElementById(`autor-${index}-uf`);\n                    const celularEl = document.getElementById(`autor-${index}-celular`);\n                    const emailEl = document.getElementById(`autor-${index}-email`);\n\n                    if (nomeEl && nomeEl.value.trim()) {\n                        temAutorValido = true;\n\n                        if (!cpfEl || !cpfEl.value.trim()) {\n                            erros.push(`Autor ${index + 1}: CPF \u00e9 obrigat\u00f3rio`);\n                            if (cpfEl) cpfEl.classList.add('invalid');\n                        }\n                        if (!cepEl || !cepEl.value.trim()) {\n                            erros.push(`Autor ${index + 1}: CEP \u00e9 obrigat\u00f3rio`);\n                            if (cepEl) cepEl.classList.add('invalid');\n                        }\n                        if (!logradouroEl || !logradouroEl.value.trim()) {\n                            erros.push(`Autor ${index + 1}: Logradouro \u00e9 obrigat\u00f3rio`);\n                            if (logradouroEl) logradouroEl.classList.add('invalid');\n                        }\n                        if (!numeroEl || !numeroEl.value.trim()) {\n                            erros.push(`Autor ${index + 1}: N\u00famero \u00e9 obrigat\u00f3rio`);\n                            if (numeroEl) numeroEl.classList.add('invalid');\n                        }\n                        if (!bairroEl || !bairroEl.value.trim()) {\n                            erros.push(`Autor ${index + 1}: Bairro \u00e9 obrigat\u00f3rio`);\n                            if (bairroEl) bairroEl.classList.add('invalid');\n                        }\n                        if (!cidadeEl || !cidadeEl.value.trim()) {\n                            erros.push(`Autor ${index + 1}: Cidade \u00e9 obrigat\u00f3ria`);\n                            if (cidadeEl) cidadeEl.classList.add('invalid');\n                        }\n                        if (!ufEl || !ufEl.value.trim()) {\n                            erros.push(`Autor ${index + 1}: UF \u00e9 obrigat\u00f3rio`);\n                            if (ufEl) ufEl.classList.add('invalid');\n                        }\n                        if (!celularEl || !celularEl.value.trim()) {\n                            erros.push(`Autor ${index + 1}: Celular \u00e9 obrigat\u00f3rio`);\n                            if (celularEl) celularEl.classList.add('invalid');\n                        }\n                        if (!emailEl || !emailEl.value.trim()) {\n                            erros.push(`Autor ${index + 1}: E-mail \u00e9 obrigat\u00f3rio`);\n                            if (emailEl) emailEl.classList.add('invalid');\n                        }\n                    }\n                }\n            });\n\n            if (!temAutorValido) {\n                erros.push('\u00c9 obrigat\u00f3rio ter pelo menos 1 autor com nome preenchido');\n            }\n\n            \/\/ Validar R\u00e9us\n            let temReuValido = false;\n            reus.forEach((reu, index) => {\n                if (reu !== null) {\n                    const nomeEl = document.getElementById(`reu-${index}-nome`);\n                    const placaEl = document.getElementById(`reu-${index}-placa`);\n                    \n                    if ((nomeEl && nomeEl.value.trim()) || (placaEl && placaEl.value.trim())) {\n                        temReuValido = true;\n                    }\n                }\n            });\n\n            if (!temReuValido) {\n                erros.push('\u00c9 obrigat\u00f3rio ter pelo menos 1 r\u00e9u (nome ou placa do ve\u00edculo)');\n            }\n\n            \/\/ Validar Dados da A\u00e7\u00e3o\n            const tipoAcaoEl = document.getElementById('tipoAcao');\n            if (!tipoAcaoEl || !tipoAcaoEl.value) {\n                erros.push('Tipo de A\u00e7\u00e3o \u00e9 obrigat\u00f3rio');\n                if (tipoAcaoEl) tipoAcaoEl.classList.add('invalid');\n            }\n\n            const valorCausaEl = document.getElementById('valorCausa');\n            if (!valorCausaEl || !valorCausaEl.value || parseFloat(valorCausaEl.value) <= 0) {\n                erros.push('Valor da Causa \u00e9 obrigat\u00f3rio e deve ser maior que zero');\n                if (valorCausaEl) valorCausaEl.classList.add('invalid');\n            } else if (parseFloat(valorCausaEl.value) > 32600) {\n                erros.push('Valor da Causa n\u00e3o pode ultrapassar R$ 32.600,00 (20 sal\u00e1rios m\u00ednimos)');\n                if (valorCausaEl) valorCausaEl.classList.add('invalid');\n            }\n\n            const dosFatosEl = document.getElementById('dosFatos');\n            if (!dosFatosEl || !dosFatosEl.value.trim()) {\n                erros.push('I - DOS FATOS \u00e9 obrigat\u00f3rio');\n                if (dosFatosEl) dosFatosEl.classList.add('invalid');\n            }\n\n            const dosPedidosEl = document.getElementById('dosPedidos');\n            if (!dosPedidosEl || !dosPedidosEl.value.trim()) {\n                erros.push('II - DOS PEDIDOS \u00e9 obrigat\u00f3rio');\n                if (dosPedidosEl) dosPedidosEl.classList.add('invalid');\n            }\n\n            \/\/ Validar Documentos com IA\n            const docsValidados = filesAutores.filter(f => f.status === 'validado');\n            const docsAnalisando = filesAutores.filter(f => f.status === 'analisando');\n            \n            if (filesAutores.length === 0) {\n                erros.push('\u00c9 obrigat\u00f3rio anexar pelo menos 1 documento de identifica\u00e7\u00e3o dos autores');\n            } else if (docsAnalisando.length > 0) {\n                erros.push(`Aguarde a an\u00e1lise da IA: ${docsAnalisando.length} documento(s) ainda sendo analisado(s)`);\n            } else if (docsValidados.length === 0) {\n                erros.push('\u00c9 necess\u00e1rio ter pelo menos 1 documento de identifica\u00e7\u00e3o VALIDADO pela IA');\n            }\n\n            if (filesResidencia.length === 0) {\n                erros.push('\u00c9 obrigat\u00f3rio anexar pelo menos 1 comprovante de resid\u00eancia');\n            }\n\n            \/\/ Validar Data de Assinatura\n            const dataAssinaturaEl = document.getElementById('dataAssinatura');\n            if (!dataAssinaturaEl || !dataAssinaturaEl.value) {\n                erros.push('Data da assinatura \u00e9 obrigat\u00f3ria');\n                if (dataAssinaturaEl) dataAssinaturaEl.classList.add('invalid');\n            }\n\n            \/\/ Exibir erros ou imprimir\n            if (erros.length > 0) {\n                mostrarErrosValidacao(erros);\n            } else {\n                document.querySelectorAll('.invalid').forEach(el => el.classList.remove('invalid'));\n                imprimirTudoComDocumentos();\n            }\n        }\n\n        function mostrarErrosValidacao(erros) {\n            const modal = document.getElementById('validationModal');\n            const errorsDiv = document.getElementById('validationErrors');\n            \n            let html = '<p style=\"margin-bottom: 15px; font-size: 14px;\">Por favor, corrija os seguintes campos antes de imprimir:<\/p>';\n            html += '<ul style=\"font-size: 14px; line-height: 1.8;\">';\n            erros.forEach(erro => {\n                html += `<li style=\"margin-bottom: 8px;\">${erro}<\/li>`;\n            });\n            html += '<\/ul>';\n            \n            errorsDiv.innerHTML = html;\n            modal.style.display = 'block';\n\n            window.scrollTo({ top: 0, behavior: 'smooth' });\n        }\n\n        function fecharModal() {\n            const modal = document.getElementById('validationModal');\n            modal.style.display = 'none';\n        }\n\n        window.onclick = function(event) {\n            const modal = document.getElementById('validationModal');\n            if (event.target == modal) {\n                fecharModal();\n            }\n        }\n\n        \/\/ NOVA FUN\u00c7\u00c3O: Imprimir com documentos e assinaturas\n        async function imprimirTudoComDocumentos() {\n            const janelaImpressao = window.open('', '', 'height=800,width=900');\n            janelaImpressao.document.write('<html><head><title>Peti\u00e7\u00e3o Inicial - Impress\u00e3o Completa<\/title>');\n            janelaImpressao.document.write('<style>');\n            janelaImpressao.document.write(`\n                * { margin: 0; padding: 0; box-sizing: border-box; }\n                body { font-family: Arial, sans-serif; padding: 40px; line-height: 1.6; }\n                h1 { color: #2a5298; text-align: center; margin-bottom: 30px; font-size: 24px; }\n                h2 { color: #2a5298; margin-top: 30px; margin-bottom: 15px; font-size: 18px; }\n                h3 { color: #2a5298; border-bottom: 2px solid #2a5298; padding-bottom: 10px; margin-top: 30px; margin-bottom: 15px; font-size: 16px; }\n                h4 { color: #666; margin-top: 20px; margin-bottom: 10px; font-size: 14px; }\n                p { margin-bottom: 10px; text-align: justify; }\n                .info-item { margin-bottom: 8px; }\n                .info-label { font-weight: bold; color: #555; display: inline-block; min-width: 150px; }\n                .secao { margin-bottom: 30px; page-break-inside: avoid; }\n                .assinatura-container { margin-top: 80px; page-break-inside: avoid; }\n                .linha-assinatura { \n                    margin: 60px auto 10px auto; \n                    border-top: 2px solid #333; \n                    width: 400px; \n                    text-align: center; \n                    padding-top: 10px;\n                }\n                .nome-assinante { font-weight: bold; font-size: 14px; }\n                .cpf-assinante { font-size: 12px; color: #666; margin-top: 5px; }\n                .local-data { text-align: center; margin: 40px 0 60px 0; font-size: 14px; }\n                .document-page { \n                    page-break-before: always; \n                    page-break-after: always; \n                    text-align: center; \n                }\n                .document-page h2 { margin-bottom: 20px; }\n                .document-image { \n                    max-width: 100%; \n                    max-height: 90vh; \n                    object-fit: contain; \n                    border: 1px solid #ddd; \n                }\n                .pdf-notice { \n                    padding: 40px; \n                    background: #f9f9f9; \n                    border: 2px dashed #2a5298; \n                    border-radius: 8px; \n                    text-align: center; \n                    color: #666;\n                    margin: 20px 0;\n                }\n                @media print { \n                    body { padding: 20px; }\n                    .document-page { page-break-before: always; page-break-after: always; }\n                    .assinatura-container { page-break-before: avoid; }\n                }\n            `);\n            janelaImpressao.document.write('<\/style><\/head><body>');\n            janelaImpressao.document.write('<h1>PETI\u00c7\u00c3O INICIAL<\/h1>');\n            janelaImpressao.document.write('<h2 style=\"text-align: center; margin-bottom: 40px;\">Juizado Especial C\u00edvel de Pequenas Causas - Osasco\/SP<\/h2>');\n            \n            \/\/ PARTE AUTORA\n            janelaImpressao.document.write('<div class=\"secao\"><h3>PARTE AUTORA<\/h3>');\n            autores.forEach((autor, index) => {\n                if (autor !== null) {\n                    const nomeEl = document.getElementById(`autor-${index}-nome`);\n                    if (nomeEl && nomeEl.value.trim()) {\n                        janelaImpressao.document.write(`<h4>Autor ${index + 1}<\/h4>`);\n                        janelaImpressao.document.write(`<div class=\"info-item\"><span class=\"info-label\">Nome:<\/span> ${nomeEl.value}<\/div>`);\n                        \n                        const cpfEl = document.getElementById(`autor-${index}-cpf`);\n                        const rgEl = document.getElementById(`autor-${index}-rg`);\n                        if (cpfEl && cpfEl.value) janelaImpressao.document.write(`<div class=\"info-item\"><span class=\"info-label\">CPF:<\/span> ${cpfEl.value}<\/div>`);\n                        if (rgEl && rgEl.value) janelaImpressao.document.write(`<div class=\"info-item\"><span class=\"info-label\">RG:<\/span> ${rgEl.value}<\/div>`);\n                        \n                        const logradouroEl = document.getElementById(`autor-${index}-logradouro`);\n                        const numeroEl = document.getElementById(`autor-${index}-numero`);\n                        const complementoEl = document.getElementById(`autor-${index}-complemento`);\n                        const bairroEl = document.getElementById(`autor-${index}-bairro`);\n                        const cidadeEl = document.getElementById(`autor-${index}-cidade`);\n                        const ufEl = document.getElementById(`autor-${index}-uf`);\n                        const cepEl = document.getElementById(`autor-${index}-cep`);\n                        \n                        let endereco = '';\n                        if (logradouroEl) endereco += logradouroEl.value;\n                        if (numeroEl) endereco += `, ${numeroEl.value}`;\n                        if (complementoEl && complementoEl.value) endereco += `, ${complementoEl.value}`;\n                        if (bairroEl) endereco += ` - ${bairroEl.value}`;\n                        if (cidadeEl && ufEl) endereco += ` - ${cidadeEl.value}\/${ufEl.value}`;\n                        if (cepEl) endereco += ` - CEP: ${cepEl.value}`;\n                        \n                        if (endereco) janelaImpressao.document.write(`<div class=\"info-item\"><span class=\"info-label\">Endere\u00e7o:<\/span> ${endereco}<\/div>`);\n                        \n                        const telResEl = document.getElementById(`autor-${index}-telRes`);\n                        const celularEl = document.getElementById(`autor-${index}-celular`);\n                        const emailEl = document.getElementById(`autor-${index}-email`);\n                        \n                        if (telResEl && telResEl.value) janelaImpressao.document.write(`<div class=\"info-item\"><span class=\"info-label\">Tel. Residencial:<\/span> ${telResEl.value}<\/div>`);\n                        if (celularEl && celularEl.value) janelaImpressao.document.write(`<div class=\"info-item\"><span class=\"info-label\">Celular:<\/span> ${celularEl.value}<\/div>`);\n                        if (emailEl && emailEl.value) janelaImpressao.document.write(`<div class=\"info-item\"><span class=\"info-label\">E-mail:<\/span> ${emailEl.value}<\/div>`);\n                    }\n                }\n            });\n            janelaImpressao.document.write('<\/div>');\n            \n            \/\/ PARTE R\u00c9\n            janelaImpressao.document.write('<div class=\"secao\"><h3>PARTE R\u00c9<\/h3>');\n            reus.forEach((reu, index) => {\n                if (reu !== null) {\n                    const nomeEl = document.getElementById(`reu-${index}-nome`);\n                    const placaEl = document.getElementById(`reu-${index}-placa`);\n                    \n                    if ((nomeEl && nomeEl.value.trim()) || (placaEl && placaEl.value.trim())) {\n                        janelaImpressao.document.write(`<h4>R\u00e9u ${index + 1}<\/h4>`);\n                        if (nomeEl && nomeEl.value) janelaImpressao.document.write(`<div class=\"info-item\"><span class=\"info-label\">Nome:<\/span> ${nomeEl.value}<\/div>`);\n                        \n                        const cpfEl = document.getElementById(`reu-${index}-cpf`);\n                        if (cpfEl && cpfEl.value) janelaImpressao.document.write(`<div class=\"info-item\"><span class=\"info-label\">CPF\/CNPJ:<\/span> ${cpfEl.value}<\/div>`);\n                        if (placaEl && placaEl.value) janelaImpressao.document.write(`<div class=\"info-item\"><span class=\"info-label\">Placa:<\/span> ${placaEl.value}<\/div>`);\n                        \n                        const logradouroEl = document.getElementById(`reu-${index}-logradouro`);\n                        if (logradouroEl && logradouroEl.value) {\n                            const numeroEl = document.getElementById(`reu-${index}-numero`);\n                            const complementoEl = document.getElementById(`reu-${index}-complemento`);\n                            const bairroEl = document.getElementById(`reu-${index}-bairro`);\n                            const cidadeEl = document.getElementById(`reu-${index}-cidade`);\n                            const ufEl = document.getElementById(`reu-${index}-uf`);\n                            const cepEl = document.getElementById(`reu-${index}-cep`);\n                            \n                            let endereco = logradouroEl.value;\n                            if (numeroEl && numeroEl.value) endereco += `, ${numeroEl.value}`;\n                            if (complementoEl && complementoEl.value) endereco += `, ${complementoEl.value}`;\n                            if (bairroEl && bairroEl.value) endereco += ` - ${bairroEl.value}`;\n                            if (cidadeEl && cidadeEl.value && ufEl && ufEl.value) endereco += ` - ${cidadeEl.value}\/${ufEl.value}`;\n                            if (cepEl && cepEl.value) endereco += ` - CEP: ${cepEl.value}`;\n                            \n                            janelaImpressao.document.write(`<div class=\"info-item\"><span class=\"info-label\">Endere\u00e7o:<\/span> ${endereco}<\/div>`);\n                        }\n                    }\n                }\n            });\n            janelaImpressao.document.write('<\/div>');\n            \n            \/\/ DADOS DA A\u00c7\u00c3O\n            janelaImpressao.document.write('<div class=\"secao\"><h3>DADOS DA A\u00c7\u00c3O<\/h3>');\n            const tipoAcaoSelect = document.getElementById('tipoAcao');\n            const tipoAcaoTexto = tipoAcaoSelect.options[tipoAcaoSelect.selectedIndex]?.text || '';\n            janelaImpressao.document.write(`<div class=\"info-item\"><span class=\"info-label\">Tipo de A\u00e7\u00e3o:<\/span> ${tipoAcaoTexto}<\/div>`);\n            \n            const valorCausaEl = document.getElementById('valorCausa');\n            if (valorCausaEl && valorCausaEl.value) {\n                janelaImpressao.document.write(`<div class=\"info-item\"><span class=\"info-label\">Valor da Causa:<\/span> R$ ${parseFloat(valorCausaEl.value).toLocaleString('pt-BR', {minimumFractionDigits: 2})}<\/div>`);\n            }\n            janelaImpressao.document.write('<\/div>');\n            \n            \/\/ DOS FATOS\n            const dosFatosEl = document.getElementById('dosFatos');\n            if (dosFatosEl && dosFatosEl.value) {\n                janelaImpressao.document.write('<div class=\"secao\"><h3>I - DOS FATOS<\/h3>');\n                janelaImpressao.document.write(`<p>${dosFatosEl.value.replace(\/\\n\/g, '<br>')}<\/p>`);\n                janelaImpressao.document.write('<\/div>');\n            }\n            \n            \/\/ DOS PEDIDOS\n            const dosPedidosEl = document.getElementById('dosPedidos');\n            if (dosPedidosEl && dosPedidosEl.value) {\n                janelaImpressao.document.write('<div class=\"secao\"><h3>II - DOS PEDIDOS<\/h3>');\n                janelaImpressao.document.write(`<p>${dosPedidosEl.value.replace(\/\\n\/g, '<br>')}<\/p>`);\n                janelaImpressao.document.write('<\/div>');\n            }\n            \n            \/\/ LOCAL E DATA + ASSINATURAS\n            const dataAssinaturaEl = document.getElementById('dataAssinatura');\n            if (dataAssinaturaEl && dataAssinaturaEl.value) {\n                const data = new Date(dataAssinaturaEl.value + 'T00:00:00');\n                const dataFormatada = data.toLocaleDateString('pt-BR', { day: '2-digit', month: 'long', year: 'numeric' });\n                \n                janelaImpressao.document.write('<div class=\"assinatura-container\">');\n                janelaImpressao.document.write(`<div class=\"local-data\">Osasco\/SP, ${dataFormatada}<\/div>`);\n                \n                autores.forEach((autor, index) => {\n                    if (autor !== null) {\n                        const nomeEl = document.getElementById(`autor-${index}-nome`);\n                        const cpfEl = document.getElementById(`autor-${index}-cpf`);\n                        \n                        if (nomeEl && nomeEl.value.trim()) {\n                            janelaImpressao.document.write('<div class=\"linha-assinatura\">');\n                            janelaImpressao.document.write(`<div class=\"nome-assinante\">${nomeEl.value}<\/div>`);\n                            if (cpfEl && cpfEl.value) {\n                                janelaImpressao.document.write(`<div class=\"cpf-assinante\">CPF: ${cpfEl.value}<\/div>`);\n                            }\n                            janelaImpressao.document.write('<\/div>');\n                        }\n                    }\n                });\n                janelaImpressao.document.write('<\/div>');\n            }\n            \n            \/\/ DOCUMENTOS DE IDENTIFICA\u00c7\u00c3O\n            if (filesAutores.length > 0) {\n                for (let i = 0; i < filesAutores.length; i++) {\n                    const file = filesAutores[i];\n                    janelaImpressao.document.write(`<div class=\"document-page\">`);\n                    janelaImpressao.document.write(`<h2>Documento de Identifica\u00e7\u00e3o ${i + 1}: ${file.name}<\/h2>`);\n                    \n                    if (file.type === 'application\/pdf') {\n                        janelaImpressao.document.write(`\n                            <div class=\"pdf-notice\">\n                                <h3>\ud83d\udcc4 Documento PDF<\/h3>\n                                <p style=\"margin-top: 15px; font-size: 14px;\">${file.name}<\/p>\n                                <p style=\"margin-top: 10px; font-size: 12px; color: #999;\">\n                                    Status: ${file.status === 'validado' ? '\u2713 Validado pela IA' : 'Pendente'}\n                                <\/p>\n                                <p style=\"margin-top: 15px; font-size: 13px; color: #666;\">\n                                    \u26a0\ufe0f Nota: Arquivos PDF devem ser impressos separadamente ou anexados digitalmente.\n                                <\/p>\n                            <\/div>\n                        `);\n                    } else {\n                        janelaImpressao.document.write(`<img decoding=\"async\" src=\"${file.base64}\" class=\"document-image\" alt=\"${file.name}\">`);\n                    }\n                    \n                    janelaImpressao.document.write(`<\/div>`);\n                }\n            }\n            \n            \/\/ COMPROVANTES DE RESID\u00caNCIA\n            if (filesResidencia.length > 0) {\n                for (let i = 0; i < filesResidencia.length; i++) {\n                    const file = filesResidencia[i];\n                    janelaImpressao.document.write(`<div class=\"document-page\">`);\n                    janelaImpressao.document.write(`<h2>Comprovante de Resid\u00eancia ${i + 1}: ${file.name}<\/h2>`);\n                    \n                    if (file.type === 'application\/pdf') {\n                        janelaImpressao.document.write(`\n                            <div class=\"pdf-notice\">\n                                <h3>\ud83d\udcc4 Documento PDF<\/h3>\n                                <p style=\"margin-top: 15px; font-size: 14px;\">${file.name}<\/p>\n                                <p style=\"margin-top: 10px; font-size: 12px; color: #999;\">\n                                    Status: ${file.status === 'validado' ? '\u2713 Validado' : 'Pendente'}\n                                <\/p>\n                                <p style=\"margin-top: 15px; font-size: 13px; color: #666;\">\n                                    \u26a0\ufe0f Nota: Arquivos PDF devem ser impressos separadamente ou anexados digitalmente.\n                                <\/p>\n                            <\/div>\n                        `);\n                    } else {\n                        janelaImpressao.document.write(`<img decoding=\"async\" src=\"${file.base64}\" class=\"document-image\" alt=\"${file.name}\">`);\n                    }\n                    \n                    janelaImpressao.document.write(`<\/div>`);\n                }\n            }\n            \n            \/\/ DOCUMENTOS DIVERSOS\n            if (filesDiversos.length > 0) {\n                for (let i = 0; i < filesDiversos.length; i++) {\n                    const file = filesDiversos[i];\n                    janelaImpressao.document.write(`<div class=\"document-page\">`);\n                    janelaImpressao.document.write(`<h2>Documento Anexo ${i + 1}: ${file.name}<\/h2>`);\n                    \n                    if (file.type === 'application\/pdf') {\n                        janelaImpressao.document.write(`\n                            <div class=\"pdf-notice\">\n                                <h3>\ud83d\udcc4 Documento PDF<\/h3>\n                                <p style=\"margin-top: 15px; font-size: 14px;\">${file.name}<\/p>\n                                <p style=\"margin-top: 15px; font-size: 13px; color: #666;\">\n                                    \u26a0\ufe0f Nota: Arquivos PDF devem ser impressos separadamente ou anexados digitalmente.\n                                <\/p>\n                            <\/div>\n                        `);\n                    } else {\n                        janelaImpressao.document.write(`<img decoding=\"async\" src=\"${file.base64}\" class=\"document-image\" alt=\"${file.name}\">`);\n                    }\n                    \n                    janelaImpressao.document.write(`<\/div>`);\n                }\n            }\n            \n            janelaImpressao.document.write('<\/body><\/html>');\n            janelaImpressao.document.close();\n            \n            setTimeout(() => {\n                janelaImpressao.print();\n            }, 1000);\n        }\n    <\/script>\n<\/body>\n<\/html>\n\n","protected":false},"excerpt":{"rendered":"<p>Peti\u00e7\u00e3o Inicial &#8211; Juizado Especial C\u00edvel de Osasco PETI\u00c7\u00c3O INICIAL Juizado Especial C\u00edvel de Pequenas Causas &#8211; Osasco\/SP 1. PARTE AUTORA Informa\u00e7\u00e3o: Preencha os dados do(s) autor(es) da a\u00e7\u00e3o. Campos marcados com * s\u00e3o obrigat\u00f3rios. Adicionar Outro Autor 2. PARTE R\u00c9 Informa\u00e7\u00e3o: Preencha os dados do(s) r\u00e9u(s). Inclua as informa\u00e7\u00f5es dispon\u00edveis. Dica: Para a\u00e7\u00f5es de [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_uag_custom_page_level_css":"Sistema de Senhas - Balc\u00e3o de Informa\u00e7\u00f5es\n    \n\n\n    \n        \n            \ud83c\udfab Sistema de Senhas - Balc\u00e3o de Informa\u00e7\u00f5es\n            \n                \n                    \n                    Sistema Online\n                \n                \n                    \ud83d\udcfa Abrir Painel\n                \n                \n                    \ud83d\udcca Relat\u00f3rio Di\u00e1rio\n                \n                \n                    \ud83d\uddd1\ufe0f Limpar Dados\n                \n            \n        \n        \n        \n            \n            \n                \ud83c\udfaf Gerar Nova Senha\n                \n                    \n                        \ud83d\udcdd\n                        Andamento\n                        0\n                    \n                    \n                        \u2b50\n                        Andamento Preferencial\n                        0\n                    \n                    \n                        \ud83c\udfe5\n                        Triagem\n                        0\n                    \n                    \n                        \u2b50\n                        Triagem Preferencial\n                        0\n                    \n                    \n                        \ud83d\udce6\n                        Entrega de Iniciais\n                        0\n                    \n                    \n                        \u2b50\n                        Entrega Preferencial\n                        0\n                    \n                \n                \n                \n                    \u2705 Senha Gerada!\n                    \n                    \n                    \n                    \n                    \n                    \ud83d\udda8\ufe0f Imprimir Senha\n                \n            \n\n            \n            \n                \ud83d\udc68\u200d\ud83d\udcbc Guich\u00eas de Atendimento\n                \n                \n                    \n                    \n                        \ud83c\udfe2 Guich\u00ea 1\n                        \n                            \ud83d\udce6 Especializado em: Entrega de Iniciais\n                        \n                        \n                            \n                                \u25b6\ufe0f Chamar\n                            \n                            \n                                \ud83d\udd04 Rechamar\n                            \n                            \n                                \u2705 Finalizar\n                            \n                        \n                        \n                            \n                            \n                            \n                        \n                    \n\n                    \n                    \n                        \ud83c\udfe2 Guich\u00ea 2\n                        \n                            \ud83d\udcdd Especializado em: Andamento e Triagem\n                        \n                        \n                            \n                                \u25b6\ufe0f Chamar\n                            \n                            \n                                \ud83d\udd04 Rechamar\n                            \n                            \n                                \u2705 Finalizar\n                            \n                        \n                        \n                            \n                            \n                            \n                        \n                    \n                \n\n                \ud83d\udcca Fila de Espera\n                \n                \n                    Nenhuma senha na fila\n                \n            \n        \n\n        \n        \n            \ud83d\udcc8 Estat\u00edsticas do Sistema\n            \n                \n                    0\n                    Total Gerado\n                \n                \n                    0\n                    Atendidas\n                \n                \n                    0\n                    Em Espera\n                \n                \n                    0min\n                    Tempo M\u00e9dio\n                \n                \n                    0\n                    Guich\u00ea 1\n                \n                \n                    0\n                    Guich\u00ea 2\n                \n            \n        \n    \n\n    \n    \n        \n            \n                \ud83d\udc64 Cadastro da Senha\n                times;\n            \n            \n            \n                \n                \n                \n                    Nome Completo *\n                    \n                \n                \n                \n                    N\u00famero do Processo *\n                    \n                \n                \n                \n                    \u2705 Gerar Senha\n                    \u274c Cancelar","footnotes":""},"class_list":["post-1090","page","type-page","status-publish","hentry"],"aioseo_notices":[],"_hostinger_reach_plugin_has_subscription_block":false,"_hostinger_reach_plugin_is_elementor":false,"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false},"uagb_author_info":{"display_name":"vini.v8@gmail.com","author_link":"https:\/\/jecoz12.com.br\/?author=1"},"uagb_comment_info":0,"uagb_excerpt":"Peti\u00e7\u00e3o Inicial &#8211; Juizado Especial C\u00edvel de Osasco PETI\u00c7\u00c3O INICIAL Juizado Especial C\u00edvel de Pequenas Causas &#8211; Osasco\/SP 1. PARTE AUTORA Informa\u00e7\u00e3o: Preencha os dados do(s) autor(es) da a\u00e7\u00e3o. Campos marcados com * s\u00e3o obrigat\u00f3rios. Adicionar Outro Autor 2. PARTE R\u00c9 Informa\u00e7\u00e3o: Preencha os dados do(s) r\u00e9u(s). Inclua as informa\u00e7\u00f5es dispon\u00edveis. Dica: Para a\u00e7\u00f5es de&hellip;","_links":{"self":[{"href":"https:\/\/jecoz12.com.br\/index.php?rest_route=\/wp\/v2\/pages\/1090","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jecoz12.com.br\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/jecoz12.com.br\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/jecoz12.com.br\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jecoz12.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1090"}],"version-history":[{"count":54,"href":"https:\/\/jecoz12.com.br\/index.php?rest_route=\/wp\/v2\/pages\/1090\/revisions"}],"predecessor-version":[{"id":3684,"href":"https:\/\/jecoz12.com.br\/index.php?rest_route=\/wp\/v2\/pages\/1090\/revisions\/3684"}],"wp:attachment":[{"href":"https:\/\/jecoz12.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1090"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}