<!DOCTYPE html>
<html lang="tet">
<head>
    <meta charset="UTF-8">
    <title>Print Karta Revizaun</title>
    <style>
        @page { size: A4; margin: 1.5cm; }
        body { font-family: 'Times New Roman', serif; font-size: 12pt; line-height: 1.3; }
        .header { text-align: center; border-bottom: 2px solid #000; padding-bottom: 10px; margin-bottom: 20px; }
        .title { text-align: center; text-decoration: underline; font-weight: bold; margin-bottom: 20px; }
        .info-table { width: 100%; margin-bottom: 10px; }
        .info-table td { vertical-align: top; padding: 2px; }
        .revizaun-list { margin: 10px 0; }
        .table-print { width: 100%; border-collapse: collapse; margin-top: 15px; }
        .table-print th, .table-print td { border: 1px solid #000; padding: 8px; text-align: center; }
        .footer-sign { width: 100%; margin-top: 20px; border-collapse: collapse; }
        .footer-sign td { border: 1px solid #000; padding: 10px; vertical-align: top; width: 50%; }
    </style>
</head>
<body onload="window.print()">
  <div class="header-wrapper" style="display: flex; align-items: center; justify-content: space-between; border-bottom: 2px solid #000; padding-bottom: 15px; margin-bottom: 20px;">
    
    <!-- Logo Kiri -->
    <div style="flex: 0 0 100px; display: flex; justify-content: flex-start;">
        <img src="/Smartoffice/template/img/Logo%20IPDC.png" alt="Logo Kiri" style="width: 80px; height: auto;">
    </div>

    <!-- Teks Tengah -->
    <div class="header-text" style="flex: 1; text-align: center; line-height: 1.2; padding: 0 10px;">
        <h3 style="margin: 0; font-size: 18px; text-transform: uppercase; font-weight: 800; white-space: nowrap;">
            INSTITUTO PROFISSIONAL DE CANOSSA
        </h3>
        <div style="font-weight: 700; font-size: 13px; margin-top: 4px; text-transform: uppercase; white-space: nowrap;">
            DEPARTAMENTU TÉCNICAS DE COMPUTAÇÃO E INFORMÁTICA
        </div>
        <div style="font-size: 11px; color: #222; margin-top: 4px; font-style: italic;">
            Ave. Aldeia Has Laran, Delta Comoro, Dili | Telp: 3312803
        </div>
        <div style="font-size: 11px; color: #222;">
            Email: institutoprofissionaldecanossa@gmail.com
        </div>
    </div>

    <!-- Logo Kanan -->
    <div style="flex: 0 0 100px; display: flex; justify-content: flex-end;">
        <img src="/Smartoffice/template/img/tci.png" alt="Logo Kanan" style="width: 150px; height: auto;">
    </div>

</div>

    <div class="title">REVIZAUN EZAME PROPOSTA TRABALHO FINAL DO CURSO</div>

    <table class="info-table">
        <tr><td width="200">NARAN ESTUDANTE</td><td>: <?= htmlspecialchars($row->naran_estudante); ?></td></tr>
        <tr><td>NRE</td><td>: <?= htmlspecialchars($row->nre); ?></td></tr>
        <tr><td>DEPARTAMENTU</td><td>: <?= htmlspecialchars($row->departamentu); ?></td></tr>
        <tr><td>LORON/DATA</td><td>: </td></tr>
        <tr><td>TITULU</td><td>: <?= htmlspecialchars($row->titulu); ?></td></tr>
    </table>

    <div class="revizaun-list">
        <p>Revizaun :</p>
        1. __________________________________________________________________________<br>
        2. __________________________________________________________________________<br>
        3. __________________________________________________________________________<br>
        4. __________________________________________________________________________ nst...
        <p>Durasaun tempo : loron ____________________</p>
        <p>Halo ona revizaun tuir lia menon no koreksaun ekipa Ezaminador sira iha ezame proposta trabalho final do curso.</p>
    </div>

    <!-- Tabel Dosente diubah menggunakan ezaminador_1 dan ezaminador_2 -->
    <table class="table-print">
        <tr><th>No.</th><th>Dosente</th><th>Estadu Ezame</th><th>Assinatura</th></tr>
        <tr><td>1.</td><td><?= htmlspecialchars($row->ezaminador_1); ?></td><td></td><td></td></tr>
        <tr><td>2.</td><td><?= htmlspecialchars($row->ezaminador_2); ?></td><td></td><td></td></tr>
    </table>

    <table class="footer-sign">
        <tr>
            <td>Dili, ___/02/2026<br>Ezaminador,<br><br><br><br><strong><?= htmlspecialchars($row->ezaminador_1); ?></strong></td>
            <td>Rekonhece,<br>Xefe Departementu<br><br><br><br><u>(Jaime da Costa Lobo Soares, S.Kom.,M.T)</u></td>
        </tr>
    </table>

    <p style="font-size: 10pt;">
        <i>*) Sai nu'udar criteria atu laminatin proposta trabalho final do curso.<br>
        *) Assina husi dosente Ezaminador sira wainhira halao ona revizaun</i>
    </p>
</body>
</html>