﻿@media print {
    
    .invoice-container {
        margin: 20px auto;
        background: white;
        padding: 20px;
        border: 1px solid #ddd;
    }

    header {
        width: 100%;
        display: flex;
        justify-content: space-between;
    }

    .company-info {
        width: 48%;
    }

    .invoice-info {
        width: 48%;
    }

    .company-info .logo {
        max-width: 100px;
    }

    .details {
        margin-top: 20px;
        border: 1px solid #ddd;
        display: flex;
        justify-content: space-between;
    }

    .customer-info, .invoice {
        width: 48%;
        padding: 10px;
        background-color: #f0f0f0;
        box-sizing: border-box;
    }

    .invoice {
        text-align: right;
        background-color: #dadada;
        border-left: 1px solid #ddd;

    }

    .products table {
        width: 100%;
        border-collapse: collapse;
        margin-top: 20px;
    }

    .products th, .products td {
        padding: 10px;
        border: 1px solid #000;
        text-align: center;
    }

    .totals {
        margin-top: 20px;
        text-align: right;
        font-weight: bold;
    }

        .totals table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 10px;
        }

        .totals td {
            padding: 10px;
            text-align: right;
            border: none;
        }

        .totals tr {
            border-bottom: 1px solid;
        }

    .invoice p {
        margin-bottom: 0;
    }
}
