
@page {
    size: A4 portrait;
    margin: 0;
}

@media print {
    html, body {
        width: 210mm;
        height: 297mm;
        margin: 0;
        padding: 0;
    }
    .invoice-container {
        margin: 0;
        border: initial;
        border-radius: initial;
        width: initial;
        min-height: initial;
        box-shadow: initial;
        background: initial;
        page-break-after: always;
    }
    .no-print {
        display: none !important;
    }
}

body {
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    padding: 0;
    font-size: 12px;
    color: #000;
    background: rgb(204,204,204);
}

.print-button {
    background-color: #2c5697;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 999;
}

.print-button:hover {
    background-color: #1e3c6a;
}

.invoice-container {
    background: white;
    display: block;
    margin: 1cm auto;
    width: 21cm;
    min-height: 29.7cm;
    padding: 10mm;
    box-sizing: border-box;
    box-shadow: 0 0 0.5cm rgba(0,0,0,0.5);
}

.main-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #000;
}

.company-info, .invoice-info, .customer-info, .shipping-info,
.items-section, .bank-details, .signature-section,
.notes, .terms {
    border: 1px solid #000;
    padding: 10px;
    vertical-align: top;
}

.header-table, .invoice-details-table, .shipping-details-table,
.items-table, .bank-info-table, .signature-table {
    width: 100%;
    border-collapse: collapse;
}

.company-logo {
    width: 80px;
    height: auto;
}

.company-name {
    font-weight: bold;
    font-size: 14px;
    margin: 0;
}

.tax-invoice-title {
    color: #2c5697;
    font-weight: bold;
    font-size: 14px;
    text-align: center;
    border-bottom: 1px solid #000;
}

.original-copy {
    font-size: 11px;
    text-align: center;
    border-bottom: 1px solid #000;
    border-left: 1px solid #000;
}

.section-title {
    font-weight: bold;
    margin: 0 0 5px 0;
}

.items-table th, .items-table td {
    border: 1px solid #000;
    padding: 5px;
    font-size: 11px;
}

.table-header {
    background-color: #f2f2f2;
}

.amount {
    text-align: right;
}

.center {
    text-align: center;
}

.right {
    text-align: right;
}

.bold {
    font-weight: bold;
}

.signature-circle {
    width: 100px;
    height: 100px;
    border: 2px solid #2c5697;
    border-radius: 50%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #2c5697;
    font-weight: bold;
}

.signature-line {
    width: 60px;
    border-top: 1px solid #2c5697;
    margin: 5px 0;
}

.footer {
    margin-top: 10px;
    font-size: 10px;
    text-align: left;
}

.terms ol {
    margin: 0;
    padding-left: 15px;
    font-size: 10px;
}
