/* Classic Template Styles */
.invoice-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    font-family: Arial, sans-serif;
}

.invoice-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #333;
}

.invoice-logo img {
    max-height: 80px;
    width: auto;
}

.invoice-title h1 {
    font-size: 32px;
    color: #333;
    margin: 0;
}

.invoice-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 5px;
}

.company-info, .order-info {
    flex: 1;
}

.order-info table {
    width: 100%;
}

.order-info th {
    text-align: left;
    padding: 5px 10px 5px 0;
    font-weight: bold;
}

.customer-info {
    margin-bottom: 30px;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 5px;
}

.customer-info h3 {
    margin-top: 0;
    color: #333;
}

.items-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.items-table th,
.items-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.items-table th {
    background: #333;
    color: #fff;
    font-weight: bold;
}

.items-table tfoot th,
.items-table tfoot td {
    border-bottom: none;
    padding: 10px;
}

.total-row {
    background: #f5f5f5;
    font-weight: bold;
    font-size: 18px;
}

.invoice-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
    text-align: center;
}

.payment-info {
    margin-bottom: 15px;
    padding: 10px;
    background: #e8f5e9;
    border-radius: 5px;
}

.footer-text {
    color: #666;
    font-size: 12px;
}

/* Modern Template Styles */
.modern-invoice {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0;
    background: #fff;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

.modern-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modern-logo img {
    max-height: 60px;
    filter: brightness(0) invert(1);
}

.modern-title {
    text-align: right;
}

.invoice-badge {
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 2px;
}

.invoice-number {
    font-size: 18px;
    opacity: 0.9;
    margin-top: 5px;
}

.modern-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 40px;
    background: #f8f9fa;
}

.modern-box h3 {
    margin: 0 0 10px 0;
    color: #667eea;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modern-box p {
    margin: 0;
    line-height: 1.6;
    color: #333;
}

.modern-items {
    width: 100%;
    border-collapse: collapse;
    margin: 40px 0;
}

.modern-items th {
    background: #f8f9fa;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #667eea;
}

.modern-items td {
    padding: 12px 15px;
    border-bottom: 1px solid #e9ecef;
}

.modern-total {
    background: #f8f9fa;
    font-weight: bold;
    font-size: 18px;
}

.text-right {
    text-align: right;
}

.modern-footer {
    background: #f8f9fa;
    padding: 30px;
    text-align: center;
    color: #666;
    font-size: 12px;
}

/* Print Styles */
@media print {
    body {
        margin: 0;
        padding: 0;
    }
    
    .invoice-wrapper,
    .modern-invoice {
        padding: 0;
        margin: 0;
        box-shadow: none;
    }
    
    .no-print {
        display: none !important;
    }
    
    button,
    .wcip-print-button-wrapper {
        display: none !important;
    }
    
    .modern-header {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .invoice-info,
    .modern-grid {
        flex-direction: column;
        grid-template-columns: 1fr;
    }
    
    .items-table,
    .modern-items {
        font-size: 12px;
    }
    
    .items-table th,
    .items-table td,
    .modern-items th,
    .modern-items td {
        padding: 8px;
    }
}