/* Print styles for invoices */
@media print {
    body {
        background: white !important;
        color: black !important;
        font-size: 12pt;
        line-height: 1.4;
        margin: 0;
        padding: 0;
    }
    
    /* Hide navigation and other UI elements */
    nav, 
    .no-print,
    button,
    .btn {
        display: none !important;
    }
    
    /* Ensure proper page breaks */
    .page-break {
        page-break-before: always;
    }
    
    /* Optimize tables for print */
    table {
        page-break-inside: avoid;
        border-collapse: collapse;
    }
    
    th, td {
        border: 1px solid #ccc;
        padding: 8px;
        text-align: left;
    }
    
    th {
        background-color: #f8f9fa !important;
        color: black !important;
        font-weight: bold;
    }
    
    /* Ensure text is readable */
    h1, h2, h3, h4, h5, h6 {
        color: black !important;
        page-break-after: avoid;
    }
    
    /* Optimize spacing */
    .invoice-header {
        margin-bottom: 20px;
    }
    
    .items-table {
        margin-bottom: 20px;
    }
    
    /* Ensure totals are visible */
    .total-row {
        background-color: #f8f9fa !important;
        font-weight: bold;
    }
    
    /* Footer styling */
    .footer {
        margin-top: 30px;
        border-top: 1px solid #ccc;
        padding-top: 15px;
    }
}
