
.a4-page {
    width: 210mm;
    min-height: 297mm;
    padding: 20mm;
    margin: 10mm auto;
    background: white;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.header {
    text-align: center;
    margin-bottom: 20px;
}

.company-logo {
    max-height: 80px;
    margin-bottom: 10px;
}

.company-details {
    margin-bottom: 30px;
}

.invoice-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.items-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.items-table th,
.items-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.items-table th {
    background-color: #f8f9fa;
}

.summary {
    text-align: right;
    margin-bottom: 30px;
}

.bank-details {
    margin-bottom: 30px;
}

.footer {
    margin-top: 50px;
}

.signature {
    text-align: right;
    margin-top: 50px;
}

.signature-line {
    width: 200px;
    border-top: 1px solid #000;
    margin-left: auto;
    margin-bottom: 10px;
}

@media print {
    .a4-page {
        box-shadow: none;
        margin: 0;
        padding: 15mm;
    }
}
.tata-invoice-container {
    background: #f5f5f5;
    min-height: 100vh;
    padding: 20px;
}

.invoice-header {
    border-bottom: 2px solid #1a237e;
    margin-bottom: 20px;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.title-section {
    text-align: center;
}

.title-section h1 {
    color: #1a237e;
    margin: 0;
    font-size: 24px;
}

.original-copy {
    color: #666;
    margin-top: 5px;
}

.invoice-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    padding: 15px;
}

.info-item {
    display: flex;
    justify-content: space-between;
}

.info-item label {
    font-weight: bold;
}

.customer-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.items-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.items-table th,
.items-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.items-table th {
    background-color: #f8f9fa;
}

.totals-section {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.tax-breakdown {
    width: 300px;
}

.tax-breakdown table {
    width: 100%;
}

.footer-section {
    margin-top: 30px;
    border-top: 1px solid #ddd;
    padding-top: 20px;
}

.bank-details table {
    width: 100%;
    margin-bottom: 20px;
}

.bank-details td:first-child {
    font-weight: bold;
    width: 100px;
}

.signature-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 30px;
}

.qr-code {
    text-align: center;
    width: 150px;
}

.qr-code img {
    width: 100%;
    height: auto;
}

.company-stamp {
    text-align: right;
}

.signature-line {
    width: 200px;
    border-top: 1px solid #000;
    margin: 10px 0;
}

.tata-invoice.a4-page {
    width: 210mm;
    min-height: 297mm;
    padding: 20mm;
    margin: 10mm auto;
    background: white;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.tata-invoice .header {
    text-align: center;
    margin-bottom: 20px;
}

.tata-invoice .company-logo {
    max-width: 150px;
    margin: 0 auto 20px;
}

.tata-invoice .company-logo img {
    width: 100%;
    height: auto;
}

.tata-invoice .company-title {
    font-size: 24px;
    font-weight: bold;
    color: #1a237e;
    margin-bottom: 5px;
}

.tata-invoice .original-copy {
    color: #666;
    font-size: 14px;
}

.tata-invoice .company-details {
    margin-bottom: 30px;
    text-align: left;
}

.tata-invoice .invoice-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    border: 1px solid #ddd;
    padding: 15px;
}

.tata-invoice .customer-details {
    margin-bottom: 30px;
}

.tata-invoice .items-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.tata-invoice .items-table th,
.tata-invoice .items-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.tata-invoice .items-table th {
    background-color: #f8f9fa;
    font-weight: bold;
}

.tata-invoice .summary-section {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 30px;
}

.tata-invoice .tax-summary {
    width: 300px;
}

.tata-invoice .tax-summary table {
    width: 100%;
}

.tata-invoice .tax-summary td {
    padding: 5px;
}

.tata-invoice .tax-summary .total {
    font-weight: bold;
    border-top: 2px solid #000;
}

.tata-invoice .bank-details {
    margin-bottom: 30px;
    padding: 15px;
    border: 1px solid #ddd;
}

.tata-invoice .footer {
    margin-top: 30px;
}

.tata-invoice .terms ol {
    padding-left: 20px;
    margin: 10px 0;
}

.tata-invoice .signature {
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
    align-items: flex-end;
}

.tata-invoice .qr-code {
    text-align: center;
}

.tata-invoice .qr-code img {
    width: 150px;
    height: 150px;
}

.tata-invoice .company-stamp {
    text-align: right;
}

.tata-invoice .signature-line {
    width: 200px;
    border-top: 1px solid #000;
    margin-left: auto;
    margin-bottom: 10px;
}

@media print {
    .tata-invoice-container {
        background: none;
        padding: 0;
    }

    .tata-invoice.a4-page {
        box-shadow: none;
        margin: 0;
        padding: 15mm;
    }

    .page-header,
    button,
    .btn {
        display: none !important;
    }

    body * {
        visibility: hidden;
    }

    .tata-invoice-container,
    .tata-invoice-container * {
        visibility: visible;
    }

    .tata-invoice-container {
        position: absolute;
        left: 0;
        top: 0;
    }
}
