﻿<style >
@page {
    size: A4;
    margin: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #fff;
    color: #333;
    margin: 0;
    padding: 0;
}

.invoice-container {
    width: 210mm;
    min-height: 297mm;
    margin: 0 auto;
    padding: 10mm;
    background: white;
    position: relative;
}

.invoice-title {
    text-align: center;
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 5px;
    font-size: 24px;
    text-decoration: underline;
}

.header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #2c3e50;
    text-align: center;
}

    .header h2 {
        color: #2c3e50;
        font-weight: 700;
        margin-bottom: 5px;
    }

    .header p {
        margin-bottom: 3px;
        font-size: 13px;
    }

.project-name {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 10px;
    text-align: center;
}

.split-section {
    display: flex;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
}

.split-box {
    flex: 1;
    padding: 15px;
}

    .split-box:first-child {
        border-right: 1px solid #e0e0e0;
    }

.section-title {
    background-color: #f8f9fa;
    padding: 8px 15px;
    margin: -15px -15px 15px -15px;
    font-weight: 600;
    font-size: 14px;
    border-bottom: 1px solid #e0e0e0;
}

.detail-item {
    margin-bottom: 5px;
    font-size: 13px;
}

.invoice-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 5px;
    font-size: 13px;
}

.items-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-size: 13px;
}

    .items-table th {
        background-color: #2c3e50;
        color: white;
        padding: 10px;
        text-align: left;
    }

    .items-table td {
        padding: 10px;
        border-bottom: 1px solid #e0e0e0;
    }

    .items-table tr:nth-child(even) {
        background-color: #f9f9f9;
    }

.totals-table {
    width: 50%;
    float: right;
    border-collapse: collapse;
    font-size: 13px;
    margin-bottom: 15px;
}

    .totals-table td {
        padding: 8px;
        border: 1px solid #e0e0e0;
    }

    .totals-table tr:last-child {
        font-weight: bold;
        background-color: #f8f9fa;
    }

.amount-in-words {
    clear: both;
    padding: 10px;
    margin: 15px 0;
    background-color: #f8f9fa;
    border-radius: 5px;
    border: 1px solid #e0e0e0;
    font-size: 13px;
}

.declaration {
    margin-top: 10px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 5px;
    font-size: 12px;
    border: 1px solid #e0e0e0;
    text-align: center;
}

.footer {
    display: flex;
    margin-top: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
}

.footer-box {
    flex: 1;
    padding: 15px;
}

    .footer-box:first-child {
        border-right: 1px solid #e0e0e0;
    }

.signature-space {
    height: 50px;
    margin: 20px 0 10px 0;
    border-bottom: 1px dashed #999;
}

@media print {
    body {
        background: none;
    }

    .invoice-container {
        padding: 0;
    }

    .no-print {
        display: none !important;
    }
}

</style >
