/* Constrain SVG logos to their container */
.invoice-logo-container {
    overflow: hidden;
    flex-shrink: 0;
    width: 120px;
    height: 60px;
}

.invoice-logo-container svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@media print {
    /* Hide everything except the invoice print area */
    .mud-appbar,
    .mud-drawer,
    .mud-overlay,
    .mud-dialog-actions,
    .mud-snackbar-provider,
    nav,
    header,
    footer {
        display: none !important;
    }

    /* Ensure the print area is visible */
    .invoice-print-area {
        display: block !important;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
    }

    /* Clean print styles */
    body {
        background: white !important;
        margin: 0;
        padding: 0;
    }

    /* Invoice table styling for print */
    .invoice-print-area table {
        width: 100%;
        border-collapse: collapse;
    }

    .invoice-print-area th,
    .invoice-print-area td {
        padding: 8px 10px;
    }

    .invoice-print-area th {
        background-color: #f5f5f5 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    /* Page break settings */
    .invoice-print-area {
        page-break-inside: avoid;
    }
}
