Files
SteelCheck/relat_rio_t_cnico_steelcheck.html
T

381 lines
21 KiB
HTML

<!DOCTYPE html>
<html lang="pt-BR">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>SteelCheck — Relatório Técnico de Qualidade</title>
<!-- Tailwind CSS CDN -->
<script src="https://cdn.tailwindcss.com"></script>
<script>
tailwind.config = {
theme: {
extend: {
fontFamily: {
sans: ['Inter', 'system-ui', '-apple-system', 'sans-serif'],
},
},
},
}
</script>
<!-- Google Fonts (Inter) -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap" rel="stylesheet">
<style>
/* Estilos base para simulação de folha A4 em tela */
body {
background-color: #f1f5f9;
font-family: 'Inter', sans-serif;
}
.a4-page {
width: 210mm;
height: 297mm;
background: #ffffff;
box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
margin: 20px auto;
padding: 16mm 20mm;
box-sizing: border-box;
position: relative;
display: flex;
flex-direction: column;
justify-content: space-between;
}
/* Estilos específicos para Impressão */
@media print {
body {
background-color: #ffffff !important;
margin: 0 !important;
padding: 0 !important;
}
.no-print {
display: none !important;
}
.a4-page {
box-shadow: none !important;
margin: 0 !important;
/* Reduz margens na impressão para garantir 1 página sem estourar */
padding: 10mm 15mm !important;
width: 100% !important;
height: 100vh !important;
max-height: 297mm !important;
box-sizing: border-box;
page-break-after: avoid;
page-break-before: avoid;
page-break-inside: avoid;
}
@page {
size: A4 portrait;
margin: 0;
}
}
</style>
</head>
<body class="antialiased text-slate-800">
<!-- Painel de Controle Flutuante (Ocultado na Impressão) -->
<div class="no-print max-w-[210mm] mx-auto mt-6 px-4 flex justify-between items-center">
<div>
<h1 class="text-sm font-semibold text-slate-500 uppercase tracking-wider">Visualização do Documento</h1>
<p class="text-xs text-slate-400">Otimizado para impressão direta em papel A4 (1 página)</p>
</div>
<button onclick="window.print()" class="flex items-center gap-2 bg-slate-900 hover:bg-slate-800 text-white px-4 py-2 rounded-lg text-xs font-semibold shadow transition-all duration-200">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" class="w-4.5 h-4.5">
<path stroke-linecap="round" stroke-linejoin="round" d="M6.72 13.829c-.24.03-.48.062-.72.096m.72-.096a42.415 42.415 0 0 1 10.56 0m-10.56 0L6.34 18m10.94-4.171c.24.03.48.062.72.096m-.72-.096L17.66 18m0 0 .229 1.252a1.125 1.125 0 0 1-1.107 1.328H7.218a1.125 1.125 0 0 1-1.107-1.328L6.34 18m11.32 0H6.34M12 11.25H9.75M12 9V11.25M12 11.25H14.25M18.75 6.75h.008v.008H18.75V6.75ZM15.75 6.75H6.75A2.25 2.25 0 0 0 4.5 9v5.25a2.25 2.25 0 0 0 2.25 2.25h10.5a2.25 2.25 0 0 0 2.25-2.25V9a2.25 2.25 0 0 0-2.25-2.25Z" />
</svg>
Imprimir Relatório
</button>
</div>
<!-- Página Única A4 -->
<div class="a4-page">
<!-- Cabeçalho (Header) -->
<header class="border-b border-slate-100 pb-5">
<div class="flex justify-between items-start">
<div>
<!-- Logo SteelCheck com visual geométrico -->
<div class="flex items-center gap-2">
<span class="bg-slate-900 text-white font-extrabold px-2.5 py-1 rounded text-base tracking-tight">STEEL CHECK</span>
<span class="text-[10px] uppercase font-bold tracking-widest text-slate-400 border border-slate-200 px-1.5 py-0.5 rounded">IA Quality Report</span>
</div>
<h2 class="text-sm font-semibold text-slate-500 mt-2.5">Relatório Técnico de Qualidade</h2>
<p class="text-xs text-slate-400">Análise de conformidade normativa assistida por inteligência artificial</p>
</div>
<div class="flex gap-4">
<!-- Status Global de Conformidade -->
<div class="text-right flex flex-col items-end">
<span class="text-[9px] uppercase font-bold tracking-wider text-slate-400">Status Geral</span>
<div class="flex items-center gap-1.5 mt-1 bg-emerald-50 border border-emerald-200 text-emerald-700 px-3.5 py-1.5 rounded-full">
<span class="w-2 h-2 bg-emerald-500 rounded-full animate-pulse"></span>
<span class="text-xs font-black tracking-wider">CONFORME</span>
</div>
</div>
<!-- Score de Confiança da IA -->
<div class="text-right flex flex-col items-end">
<span class="text-[9px] uppercase font-bold tracking-wider text-slate-400">Confiança da Análise</span>
<div class="mt-1 bg-slate-50 border border-slate-200 text-slate-700 px-3 py-1.5 rounded-full text-xs font-bold">
95% <span class="text-[10px] text-slate-400 font-normal">IA-Score</span>
</div>
</div>
</div>
</div>
</header>
<!-- Conteúdo Principal -->
<main class="flex-grow my-4 flex flex-col justify-between">
<!-- Seção 1: Dados de Identificação (Grid de Cartões Limpos) -->
<section class="mb-5">
<h3 class="text-[10px] uppercase font-bold tracking-wider text-slate-400 mb-2.5 flex items-center gap-1.5">
<span class="w-1.5 h-1.5 bg-slate-400 rounded-full"></span>
1. Identificação do Produto e Lote
</h3>
<div class="grid grid-cols-4 gap-3 bg-slate-50/70 rounded-xl p-3.5 border border-slate-100">
<div>
<span class="block text-[9px] text-slate-400 uppercase font-medium">Produto</span>
<span class="block text-xs font-semibold text-slate-800 leading-tight">Bobina Grossa (Hot Rolled)</span>
</div>
<div>
<span class="block text-[9px] text-slate-400 uppercase font-medium">Norma de Referência</span>
<span class="block text-xs font-bold text-slate-900 leading-tight">ASTM-A572-50-T1</span>
</div>
<div>
<span class="block text-[9px] text-slate-400 uppercase font-medium">Fabricante</span>
<span class="block text-xs font-semibold text-slate-800 leading-tight">USIMINAS</span>
</div>
<div>
<span class="block text-[9px] text-slate-400 uppercase font-medium">Nº do Certificado</span>
<span class="block text-xs font-mono font-bold text-slate-800 leading-tight">#999039</span>
</div>
<div class="pt-2 border-t border-slate-100">
<span class="block text-[9px] text-slate-400 uppercase font-medium">Data de Emissão</span>
<span class="block text-xs font-semibold text-slate-800 leading-tight">04/07/2022</span>
</div>
<div class="pt-2 border-t border-slate-100">
<span class="block text-[9px] text-slate-400 uppercase font-medium">Lote analisado</span>
<span class="block text-xs font-mono font-semibold text-slate-800 leading-tight">117006</span>
</div>
<div class="pt-2 border-t border-slate-100">
<span class="block text-[9px] text-slate-400 uppercase font-medium">Corrida (Heat)</span>
<span class="block text-xs font-mono font-semibold text-slate-800 leading-tight">04490370</span>
</div>
<div class="pt-2 border-t border-slate-100">
<span class="block text-[9px] text-slate-400 uppercase font-medium">Massa Total</span>
<span class="block text-xs font-semibold text-slate-800 leading-tight">15,655 t</span>
</div>
</div>
</section>
<!-- Seção 2: Verificação de Conformidade (Lado a Lado para Máximo Aproveitamento) -->
<section class="grid grid-cols-12 gap-5 mb-5">
<!-- Propriedades Mecânicas (Esquerda) -->
<div class="col-span-5 flex flex-col">
<h3 class="text-[10px] uppercase font-bold tracking-wider text-slate-400 mb-2.5 flex items-center gap-1.5">
<span class="w-1.5 h-1.5 bg-slate-400 rounded-full"></span>
2. Propriedades Mecânicas
</h3>
<div class="flex-grow border border-slate-100 rounded-xl overflow-hidden bg-white shadow-sm flex flex-col justify-between">
<table class="w-full text-left border-collapse text-xs">
<thead>
<tr class="bg-slate-50 border-b border-slate-100 text-[10px] text-slate-400 font-bold uppercase tracking-wider">
<th class="py-2.5 px-3">Propriedade</th>
<th class="py-2.5 px-2">Certificado</th>
<th class="py-2.5 px-3 text-right">Status</th>
</tr>
</thead>
<tbody class="divide-y divide-slate-50">
<tr>
<td class="py-2.5 px-3">
<span class="font-semibold block text-slate-800">YS <span class="text-[10px] text-slate-400 font-normal">(Yield Strength)</span></span>
</td>
<td class="py-2.5 px-2 font-mono font-bold text-slate-700">455 MPa</td>
<td class="py-2.5 px-3 text-right">
<span class="inline-flex items-center gap-1 text-[10px] font-bold text-emerald-600 bg-emerald-50 px-2 py-0.5 rounded">
<svg class="w-3 h-3" fill="none" stroke="currentColor" stroke-width="3" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" d="m4.5 12.75 6 6 9-13.5"/></svg> OK
</span>
</td>
</tr>
<tr>
<td class="py-2.5 px-3">
<span class="font-semibold block text-slate-800">TS <span class="text-[10px] text-slate-400 font-normal">(Tensile Strength)</span></span>
</td>
<td class="py-2.5 px-2 font-mono font-bold text-slate-700">527 MPa</td>
<td class="py-2.5 px-3 text-right">
<span class="inline-flex items-center gap-1 text-[10px] font-bold text-emerald-600 bg-emerald-50 px-2 py-0.5 rounded">
<svg class="w-3 h-3" fill="none" stroke="currentColor" stroke-width="3" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" d="m4.5 12.75 6 6 9-13.5"/></svg> OK
</span>
</td>
</tr>
<tr>
<td class="py-2.5 px-3">
<span class="font-semibold block text-slate-800">El <span class="text-[10px] text-slate-400 font-normal">(Elongation)</span></span>
</td>
<td class="py-2.5 px-2 font-mono font-bold text-slate-700">21%</td>
<td class="py-2.5 px-3 text-right">
<span class="inline-flex items-center gap-1 text-[10px] font-bold text-emerald-600 bg-emerald-50 px-2 py-0.5 rounded">
<svg class="w-3 h-3" fill="none" stroke="currentColor" stroke-width="3" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" d="m4.5 12.75 6 6 9-13.5"/></svg> OK
</span>
</td>
</tr>
</tbody>
</table>
<!-- Nota de Referência Rápida -->
<div class="p-3 bg-slate-50/50 border-t border-slate-50 text-[10px] text-slate-400">
* Limites de conformidade validados conforme parâmetros exigidos pela norma de teste <span class="font-semibold text-slate-600">ASTM-A572-50-T1</span>.
</div>
</div>
</div>
<!-- Composição Química (Direita) -->
<div class="col-span-7 flex flex-col">
<h3 class="text-[10px] uppercase font-bold tracking-wider text-slate-400 mb-2.5 flex items-center gap-1.5">
<span class="w-1.5 h-1.5 bg-slate-400 rounded-full"></span>
3. Composição Química (%)
</h3>
<div class="flex-grow border border-slate-100 rounded-xl overflow-hidden bg-white shadow-sm flex flex-col justify-between">
<table class="w-full text-left border-collapse text-xs">
<thead>
<tr class="bg-slate-50 border-b border-slate-100 text-[10px] text-slate-400 font-bold uppercase tracking-wider">
<th class="py-2 px-3">Elem.</th>
<th class="py-2 px-2">Norma de Referência</th>
<th class="py-2 px-2">Valor Certificado</th>
<th class="py-2 px-3 text-right">Status</th>
</tr>
</thead>
<tbody class="divide-y divide-slate-50 font-mono">
<tr>
<td class="py-2 px-3 font-sans font-semibold text-slate-800">C <span class="font-normal text-slate-400 text-[10px]">(Carbono)</span></td>
<td class="py-2 px-2 text-slate-400 text-[10px]">ASTM-A572-50-T1</td>
<td class="py-2 px-2 font-bold text-slate-700">0,09%</td>
<td class="py-2 px-3 text-right">
<span class="inline-flex items-center text-[10px] font-bold text-emerald-600 bg-emerald-50 px-1.5 py-0.5 rounded">OK</span>
</td>
</tr>
<tr>
<td class="py-2 px-3 font-sans font-semibold text-slate-800">Si <span class="font-normal text-slate-400 text-[10px]">(Silício)</span></td>
<td class="py-2 px-2 text-slate-400 text-[10px]">ASTM-A572-50-T1</td>
<td class="py-2 px-2 font-bold text-slate-700">0,01%</td>
<td class="py-2 px-3 text-right">
<span class="inline-flex items-center text-[10px] font-bold text-emerald-600 bg-emerald-50 px-1.5 py-0.5 rounded">OK</span>
</td>
</tr>
<tr>
<td class="py-2 px-3 font-sans font-semibold text-slate-800">Mn <span class="font-normal text-slate-400 text-[10px]">(Manganês)</span></td>
<td class="py-2 px-2 text-slate-400 text-[10px]">ASTM-A572-50-T1</td>
<td class="py-2 px-2 font-bold text-slate-700">0,98%</td>
<td class="py-2 px-3 text-right">
<span class="inline-flex items-center text-[10px] font-bold text-emerald-600 bg-emerald-50 px-1.5 py-0.5 rounded">OK</span>
</td>
</tr>
<tr>
<td class="py-2 px-3 font-sans font-semibold text-slate-800">P <span class="font-normal text-slate-400 text-[10px]">(Fósforo)</span></td>
<td class="py-2 px-2 text-slate-400 text-[10px]">ASTM-A572-50-T1</td>
<td class="py-2 px-2 font-bold text-slate-700">0,016%</td>
<td class="py-2 px-3 text-right">
<span class="inline-flex items-center text-[10px] font-bold text-emerald-600 bg-emerald-50 px-1.5 py-0.5 rounded">OK</span>
</td>
</tr>
<tr>
<td class="py-2 px-3 font-sans font-semibold text-slate-800">S <span class="font-normal text-slate-400 text-[10px]">(Enxofre)</span></td>
<td class="py-2 px-2 text-slate-400 text-[10px]">ASTM-A572-50-T1</td>
<td class="py-2 px-2 font-bold text-slate-700">0,004%</td>
<td class="py-2 px-3 text-right">
<span class="inline-flex items-center text-[10px] font-bold text-emerald-600 bg-emerald-50 px-1.5 py-0.5 rounded">OK</span>
</td>
</tr>
<tr>
<td class="py-2 px-3 font-sans font-semibold text-slate-800">Al <span class="font-normal text-slate-400 text-[10px]">(Alumínio)</span></td>
<td class="py-2 px-2 text-slate-400 text-[10px]">ASTM-A572-50-T1</td>
<td class="py-2 px-2 font-bold text-slate-700">0,028%</td>
<td class="py-2 px-3 text-right">
<span class="inline-flex items-center text-[10px] font-bold text-emerald-600 bg-emerald-50 px-1.5 py-0.5 rounded">OK</span>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</section>
<!-- Seção 3: Equivalências Internacionais (Cards Compactos de Referência Rápida) -->
<section class="mb-5">
<h3 class="text-[10px] uppercase font-bold tracking-wider text-slate-400 mb-2.5 flex items-center gap-1.5">
<span class="w-1.5 h-1.5 bg-slate-400 rounded-full"></span>
4. Matriz de Equivalências Internacionais
</h3>
<div class="grid grid-cols-4 gap-3 text-center">
<div class="bg-slate-50 border border-slate-100 rounded-lg p-2.5">
<span class="block text-[8px] font-bold tracking-wider text-slate-400 uppercase">União Europeia (EN)</span>
<span class="block text-xs font-black text-slate-700 mt-1">S355J2</span>
</div>
<div class="bg-slate-50 border border-slate-100 rounded-lg p-2.5">
<span class="block text-[8px] font-bold tracking-wider text-slate-400 uppercase">Alemanha (DIN)</span>
<span class="block text-xs font-black text-slate-700 mt-1">St52-3</span>
</div>
<div class="bg-slate-50 border border-slate-100 rounded-lg p-2.5">
<span class="block text-[8px] font-bold tracking-wider text-slate-400 uppercase">Japão (JIS)</span>
<span class="block text-xs font-black text-slate-700 mt-1">SS400</span>
</div>
<div class="bg-slate-50 border border-slate-100 rounded-lg p-2.5">
<span class="block text-[8px] font-bold tracking-wider text-slate-400 uppercase">Brasil (NBR Equivalente)</span>
<span class="block text-[11px] font-black text-slate-700 mt-1">A572 Grau 50</span>
</div>
</div>
</section>
<!-- Nota de Inteligência Artificial & Validação Técnica -->
<section class="bg-indigo-50/40 border border-indigo-100/50 rounded-xl p-3 flex gap-3 items-center">
<!-- Ícone Minimalista de IA -->
<div class="w-8 h-8 rounded-lg bg-indigo-50 flex items-center justify-center text-indigo-600 shrink-0">
<svg class="w-4.5 h-4.5" fill="none" viewBox="0 0 24 24" stroke-width="2.5" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" d="M9.813 15.904 9 21l-.813-5.096L3 15l5.096-.813L9 9l.813 5.096L15 15l-5.096.813ZM19.071 4.929l-.707 1.9.707 1.9-1.9-.707-1.9.707.707-1.9-.707-1.9 1.9.707 1.9-.707ZM17 11l-.354.954.954.354-.954.354-.354.954-.354-.954-.954-.354.954-.354.354-.954Z" />
</svg>
</div>
<div>
<h4 class="text-[10px] font-bold text-indigo-950 uppercase tracking-wide">Laudo Assistido por Inteligência Artificial</h4>
<p class="text-[10px] text-slate-500 leading-normal mt-0.5">
Os dados certificados deste lote foram analisados em tempo real contra as bibliotecas normativas globais de siderurgia. Nenhuma anomalia metalúrgica ou desvio químico foi encontrado para os requisitos do <span class="font-semibold text-slate-700">ASTM-A572-50-T1</span>.
</p>
</div>
</section>
</main>
<!-- Rodapé (Footer) -->
<footer class="border-t border-slate-100 pt-3 text-[10px] text-slate-400 flex justify-between items-center">
<div class="flex items-center gap-4">
<span><strong>ID Relatório:</strong> ST-999039/2022</span>
<span></span>
<span>SteelCheck Systems</span>
</div>
<!-- QR Code Placeholder para visual de Autenticidade -->
<div class="flex items-center gap-2">
<span class="text-right text-[9px] text-slate-400 leading-tight">Para validar o certificado<br><span class="font-bold text-slate-500">Acesse via QR Code</span></span>
<!-- QR Code Minimalista via SVG -->
<svg class="w-7 h-7 text-slate-800" viewBox="0 0 100 100" fill="currentColor">
<rect x="0" y="0" width="30" height="30" />
<rect x="10" y="10" width="10" height="10" fill="white" />
<rect x="70" y="0" width="30" height="30" />
<rect x="80" y="10" width="10" height="10" fill="white" />
<rect x="0" y="70" width="30" height="30" />
<rect x="10" y="80" width="10" height="10" fill="white" />
<rect x="40" y="40" width="20" height="20" />
<rect x="70" y="70" width="10" height="10" />
<rect x="80" y="80" width="20" height="20" />
<rect x="40" y="10" width="10" height="20" />
<rect x="10" y="40" width="20" height="10" />
</svg>
</div>
</footer>
</div>
</body>
</html>