<!DOCTYPE html>
<html>
<head>
    <title>Invoice INV-202506090001</title>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <style>@media print { 
    .no-print { display: none !important; } 
    body { margin: 0; padding: 20px; font-size: 12px; }
    .page-break { page-break-before: always; }
}

* { box-sizing: border-box; }
body { 
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; 
    line-height: 1.6; 
    color: #333; 
    margin: 0; 
    padding: 20px; 
    background: #fff;
}

/* Header Styles */
.invoice-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: flex-start; 
    margin-bottom: 30px; 
    padding-bottom: 20px; 
    border-bottom: 3px solid #007bff; 
}

.company-section { flex: 1; }
.company-name { 
    color: #007bff; 
    margin: 0; 
    font-size: 24px; 
    font-weight: bold; 
}
.motto { 
    font-style: italic; 
    color: #666; 
    margin: 5px 0; 
}
.contact-info p { 
    margin: 2px 0; 
    font-size: 14px; 
}
.contact-info i { 
    width: 16px; 
    color: #007bff; 
    margin-right: 8px; 
}

.invoice-info { 
    text-align: right; 
    flex: 0 0 300px; 
}
.invoice-title { 
    font-size: 36px; 
    color: #007bff; 
    margin: 0 0 15px 0; 
    font-weight: bold; 
}
.invoice-details table { 
    width: 100%; 
    border-collapse: collapse; 
}
.invoice-details td { 
    padding: 4px 8px; 
    border: 1px solid #ddd; 
    background: #f8f9fa; 
}

/* Body Styles */
.invoice-body { margin-bottom: 30px; }

.customer-section, .service-section { 
    margin-bottom: 25px; 
    padding: 15px; 
    background: #f8f9fa; 
    border-radius: 6px; 
}

.customer-section h3, .service-section h3 { 
    color: #007bff; 
    margin: 0 0 15px 0; 
    font-size: 18px; 
    border-bottom: 2px solid #007bff; 
    padding-bottom: 5px; 
}

.customer-info table, .service-table { 
    width: 100%; 
    border-collapse: collapse; 
}
.customer-info td, .service-table td { 
    padding: 6px 10px; 
    border-bottom: 1px solid #e9ecef; 
}

/* Invoice Table */
.billing-section { margin: 25px 0; }
.invoice-table { 
    width: 100%; 
    border-collapse: collapse; 
    margin: 20px 0; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.1); 
}

.invoice-table th { 
    background: #007bff; 
    color: white; 
    padding: 12px; 
    text-align: left; 
    font-weight: bold; 
}
.invoice-table td { 
    padding: 10px 12px; 
    border-bottom: 1px solid #e9ecef; 
}

.invoice-table tbody tr:hover { background: #f8f9fa; }

.subtotal-row { 
    background: #e9ecef !important; 
    font-weight: bold; 
}
.total-row { 
    background: #007bff !important; 
    color: white !important; 
    font-size: 16px; 
    font-weight: bold; 
}

.text-right { text-align: right; }
.total-amount { 
    font-size: 18px; 
    font-weight: bold; 
}

.amount-words { 
    margin: 15px 0; 
    padding: 10px; 
    background: #e7f3ff; 
    border-left: 4px solid #007bff; 
    font-style: italic; 
}

/* Footer Styles */
.invoice-footer { margin-top: 30px; }

.payment-section { 
    margin-bottom: 25px; 
    padding: 15px; 
    background: #f8f9fa; 
    border-radius: 6px; 
}
.payment-section h3 { 
    color: #007bff; 
    margin: 0 0 15px 0; 
    border-bottom: 2px solid #007bff; 
    padding-bottom: 5px; 
}

.bank-accounts { 
    background: white; 
    padding: 12px; 
    border-radius: 4px; 
    border: 1px solid #ddd; 
    line-height: 1.8; 
}

.terms-section { 
    margin: 20px 0; 
    padding: 15px; 
    background: #fff3cd; 
    border: 1px solid #ffeaa7; 
    border-radius: 6px; 
}
.terms-section h4 { 
    color: #856404; 
    margin: 0 0 10px 0; 
}
.terms-section ul { 
    margin: 0; 
    padding-left: 20px; 
}
.terms-section li { 
    margin-bottom: 5px; 
    color: #856404; 
}

.contact-section { 
    display: flex; 
    justify-content: space-between; 
    margin: 20px 0; 
    padding: 15px; 
    background: #e7f3ff; 
    border-radius: 6px; 
}
.cs-info h4 { 
    color: #007bff; 
    margin: 0 0 10px 0; 
}
.cs-info p { 
    margin: 3px 0; 
}
.cs-info i { 
    width: 20px; 
    color: #007bff; 
}

.footer-note { 
    text-align: center; 
    margin-top: 30px; 
    padding-top: 20px; 
    border-top: 1px solid #ddd; 
    color: #666; 
}
.footer-note p { 
    margin: 5px 0; 
}

/* Responsive */
@media (max-width: 768px) {
    .invoice-header { 
        flex-direction: column; 
        text-align: left; 
    }
    .invoice-info { 
        text-align: left; 
        margin-top: 20px; 
    }
    .contact-section { 
        flex-direction: column; 
    }
    .invoice-table { 
        font-size: 12px; 
    }
}</style>
</head>
<body>
    
    <div class="invoice-header">
    <div class="company-section">
        <div class="company-logo">
            <img src="https://eglobaltech.id/storage/logos/logo_1749276400.png" alt="PT. EKO GLOBAL TECHNO" style="max-height: 80px;">
        </div>
        <div class="company-info">
            <h2>PT. EKO GLOBAL TECHNO</h2>
            <p class="motto">Connecting Indonesia with Reliable Internet Solutions</p>
            <div class="contact-info">
                <p><i class="fas fa-map-marker-alt"></i> Kp.Gadog RT 03/03 Desa Gadog</p>
                <p><i class="fas fa-phone"></i> 08988409756</p>
                <p><i class="fas fa-envelope"></i> admin@eglobaltech.id</p>
                <p><i class="fas fa-globe"></i> {{web_perusahaan}}</p>
            </div>
        </div>
    </div>
    <div class="invoice-info">
        <h1 class="invoice-title">INVOICE</h1>
        <div class="invoice-details">
            <table>
                <tr><td><strong>No. Invoice:</strong></td><td>INV-202506090001</td></tr>
                <tr><td><strong>Tanggal:</strong></td><td>09/06/2025</td></tr>
                <tr><td><strong>Jatuh Tempo:</strong></td><td>06/07/2025</td></tr>
                <tr><td><strong>Periode:</strong></td><td>06/06/2025 - 05/07/2025</td></tr>
            </table>
        </div>
    </div>
</div>

<div class="invoice-body">
    <div class="customer-section">
        <h3>Tagihan Kepada:</h3>
        <div class="customer-info">
            <table>
                <tr><td><strong>Nama:</strong></td><td>Eko adrie</td></tr>
                <tr><td><strong>No. Layanan:</strong></td><td>202506040028</td></tr>
                <tr><td><strong>Alamat:</strong></td><td>Kp.Gadog RT 03/03 Desa Gadog</td></tr>
                <tr><td><strong>No. HP:</strong></td><td>081399909101</td></tr>
                <tr><td><strong>Email:</strong></td><td>websiteadrie@gmail.com</td></tr>
            </table>
        </div>
    </div>

    <div class="service-section">
        <h3>Detail Layanan:</h3>
        <table class="service-table">
            <tr><td><strong>Paket Internet:</strong></td><td>Free UpTo10Mbps</td></tr>
            <tr><td><strong>Kecepatan:</strong></td><td>11M / 11M</td></tr>
            <tr><td><strong>Jenis Layanan:</strong></td><td>PPPoE</td></tr>
            <tr><td><strong>Area Coverage:</strong></td><td></td></tr>
            <tr><td><strong>WiFi SSID:</strong></td><td>-</td></tr>
        </table>
    </div>

    <div class="billing-section">
        <table class="invoice-table">
            <thead>
                <tr>
                    <th>Deskripsi</th>
                    <th>Periode</th>
                    <th class="text-right">Harga</th>
                </tr>
            </thead>
            <tbody>
                <tr>
                    <td>Free UpTo10Mbps</td>
                    <td>06/06/2025 - 05/07/2025</td>
                    <td class="text-right">Rp 0</td>
                </tr>
                <tr>
                    <td>Biaya Instalasi</td>
                    <td>-</td>
                    <td class="text-right">Rp 0</td>
                </tr>
                <tr>
                    <td>Diskon</td>
                    <td>-</td>
                    <td class="text-right">-Rp 0</td>
                </tr>
            </tbody>
            <tfoot>
                <tr class="subtotal-row">
                    <td colspan="2"><strong>Subtotal</strong></td>
                    <td class="text-right"><strong>Rp 0</strong></td>
                </tr>
                <tr>
                    <td colspan="2">PPN 0.00%</td>
                    <td class="text-right">Rp 0</td>
                </tr>
                <tr class="total-row">
                    <td colspan="2"><strong>TOTAL TAGIHAN</strong></td>
                    <td class="text-right total-amount"><strong>Rp 0</strong></td>
                </tr>
            </tfoot>
        </table>

        <div class="amount-words">
            <strong>Terbilang:</strong> nol Rupiah
        </div>
    </div>
</div>

<div class="invoice-footer">
    <div class="payment-section">
        <h3>Informasi Pembayaran:</h3>
        <div class="payment-info">
            <p><strong>Transfer ke rekening:</strong></p>
            <div class="bank-accounts">
                {{{daftar_rekening}}}
            </div>
        </div>
    </div>

    <div class="terms-section">
        <h4>Ketentuan Pembayaran:</h4>
        <ul>
            <li>Pembayaran paling lambat pada tanggal <strong>06/07/2025</strong></li>
            <li>Layanan akan dihentikan sementara jika melewati batas waktu pembayaran</li>
            <li>Konfirmasi pembayaran dapat dilakukan via WhatsApp {{wa_cs}}</li>
            <li>Invoice ini adalah dokumen resmi yang dihasilkan oleh sistem</li>
        </ul>
    </div>

    <div class="contact-section">
        <div class="contact-info">
            <div class="cs-info">
                <h4>Customer Service:</h4>
                <p><i class="fas fa-phone"></i> 08988409756</p>
                <p><i class="fas fa-whatsapp"></i> {{wa_cs}}</p>
                <p><i class="fas fa-envelope"></i> admin@eglobaltech.id</p>
            </div>
            <div class="web-info">
                <p><i class="fas fa-globe"></i> {{web_perusahaan}}</p>
            </div>
        </div>
    </div>

    <div class="footer-note">
        <p><em>Terima kasih atas kepercayaan Anda menggunakan layanan PT. EKO GLOBAL TECHNO</em></p>
        <p><small>Invoice ini digenerate otomatis pada {{tanggal_generate}} - PT. EKO GLOBAL TECHNO</small></p>
    </div>
</div>
    
</body>
</html>