/* Global Styles */
body {
    font-family: 'DejaVu Sans', Arial, Helvetica, sans-serif;
    font-size: 12pt;
    color: #333333;
    line-height: 1.5;
    background-color: #ffffff;
    margin: 0;
    padding: 0;
}

.invoice-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

/* Header Styles */
.invoice-header {
    border-bottom: 2px solid #4a86e8;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.header-table {
    width: 100%;
    border-collapse: collapse;
}

.company-details {
    width: 50%;
    vertical-align: top;
}

.invoice-details {
    width: 50%;
    text-align: right;
    vertical-align: top;
}

.invoice-title {
    font-size: 18pt;
    font-weight: bold;
    margin-bottom: 10px;
}

/* Customer & Shipping Section */
.customer-shipping-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.billing-info, .shipping-info {
    width: 50%;
    vertical-align: top;
    padding: 0 10px;
}

.info-title {
    font-weight: bold;
    font-size: 14pt;
    margin-bottom: 10px;
    color: #4a86e8;
}

/* Item Table Styles */
.items-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.items-table th {
    background-color: #4a86e8;
    color: white;
    font-weight: bold;
    text-align: left;
    padding: 10px;
    border: 1px solid #dddddd;
}

.items-table td {
    padding: 10px;
    border: 1px solid #dddddd;
}

.items-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Totals Section */
.totals-section {
    width: 100%;
    margin-bottom: 30px;
}

.totals-table-container {
    width: 100%;
}

.totals-table-wrapper {
    text-align: right;
}

.totals-table {
    width: 40%;
    border-collapse: collapse;
    margin-left: auto;
}

.totals-table td {
    padding: 8px;
}

.totals-table .total-row {
    font-weight: bold;
    color: #4a86e8;
    font-size: 14pt;
}

.totals-label {
    text-align: right;
}

.totals-value {
    text-align: right;
    width: 100px;
}

/* Footer Styles */
.invoice-footer {
    margin-top: 40px;
    border-top: 2px solid #4a86e8;
    padding-top: 20px;
    text-align: center;
    font-size: 10pt;
    color: #777777;
}

/* Notes Section */
.notes-section {
    margin-top: 20px;
    padding: 10px;
    background-color: #f9f9f9;
    border-left: 4px solid #4a86e8;
}

.notes-title {
    font-weight: bold;
    margin-bottom: 10px;
    color: #4a86e8;
}

/* Helper Classes */
.text-right {
    text-align: right;
}

.text-center {
    text-align: center;
}