* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: Arial, sans-serif;
    font-size: 12px;
    line-height: 1.4;
    color: #333;
}
.container {
    width: 100%;
    max-width: 210mm;
    height: 297mm;
    padding: 20mm;
    background: white;
}
.header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    border-bottom: 2px solid #003d7a;
    padding-bottom: 20px;
}
.company-info {
    flex: 1;
}
.company-logo {
    height: 60px;
    margin-bottom: 10px;
}
.company-name {
    font-size: 24px;
    font-weight: bold;
    color: #003d7a;
    margin-bottom: 5px;
}
.company-tagline {
    font-size: 11px;
    color: #666;
    margin-bottom: 10px;
}
.company-details {
    font-size: 10px;
    line-height: 1.5;
    color: #666;
}
.invoice-title {
    text-align: right;
    flex: 1;
}
.invoice-title h1 {
    font-size: 32px;
    color: #003d7a;
    margin-bottom: 5px;
}
.invoice-meta {
    font-size: 10px;
    color: #666;
    line-height: 1.6;
}
.invoice-meta strong {
    color: #333;
}
.content-section {
    margin-bottom: 30px;
}
.section-title {
    font-weight: bold;
    color: #003d7a;
    margin-bottom: 10px;
    font-size: 13px;
    text-transform: uppercase;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
}
.bill-to, .service-desc {
    margin-bottom: 20px;
}
.address-block {
    font-size: 10px;
    line-height: 1.6;
    color: #333;
}
.campaigns-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}
.campaigns-table th {
    background: #f5f5f5;
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
    font-weight: bold;
    font-size: 11px;
}
.campaigns-table td {
    border: 1px solid #ddd;
    padding: 8px;
    font-size: 10px;
}
.campaigns-table .amount {
    text-align: right;
}
.summary-section {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}
.summary-left {
    flex: 1;
}
.summary-right {
    width: 200px;
    text-align: right;
}
.summary-table {
    width: 100%;
    font-size: 10px;
    margin-bottom: 10px;
}
.summary-table tr {
    border-bottom: 1px solid #ddd;
}
.summary-table td {
    padding: 5px 0;
}
.summary-table td:first-child {
    text-align: left;
}
.summary-table td:last-child {
    text-align: right;
    font-weight: bold;
}
.grand-total {
    background: #f5f5f5;
    border: 2px solid #003d7a;
    padding: 10px;
    margin-top: 10px;
    font-size: 14px;
    font-weight: bold;
    color: #003d7a;
    display: flex;
    justify-content: space-between;
}
.payment-info {
    display: flex;
    gap: 40px;
}
.payment-box {
    flex: 1;
    border: 1px solid #ddd;
    padding: 10px;
    font-size: 10px;
}
.payment-label {
    font-weight: bold;
    margin-bottom: 5px;
    color: #003d7a;
}
.payment-amount {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}
.due-amount {
    color: #d32f2f;
}
.payment-notes {
    margin-top: 20px;
    padding: 10px;
    background: #f9f9f9;
    border-left: 3px solid #003d7a;
    font-size: 9px;
    line-height: 1.5;
    color: #333;
}
.payment-accounts {
    margin-top: 10px;
}
.account {
    margin-bottom: 8px;
    font-size: 9px;
}
.account-type {
    font-weight: bold;
    color: #003d7a;
}
.footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
    text-align: center;
    font-size: 9px;
    color: #999;
}
.no-page-break {
    page-break-inside: avoid;
}
