.receipt-print-area {
    display: none;
}

@media print {
    body > * {
        visibility: hidden !important;
    }

    .receipt-print-area {
        display: block !important;
        visibility: visible !important;
        width: 72mm;
        margin: 0 auto;
        color: #000;
        background: #fff;
        font: 12px/1.4 monospace;
    }

    .receipt-print-area * {
        visibility: visible !important;
    }

    .receipt-header,
    .receipt-meta,
    .receipt-line,
    .receipt-total {
        display: flex;
        justify-content: space-between;
        gap: 8px;
    }

    .receipt-header {
        flex-direction: column;
        align-items: center;
        margin-bottom: 12px;
        text-align: center;
    }

    .receipt-logo {
        max-width: 28mm;
        max-height: 16mm;
        object-fit: contain;
        margin-bottom: 4px;
    }

    .receipt-company {
        margin: 4px 0;
        text-align: center;
    }

    .receipt-meta {
        display: block;
        margin: 4px 0;
    }

    .receipt-line span:first-child {
        max-width: 48mm;
    }

    .receipt-grand-total {
        margin-top: 6px;
        font-size: 14px;
        font-weight: 700;
    }

    .receipt-payment {
        margin-top: 12px;
    }

    .receipt-qr {
        margin: 14px 0 4px;
        text-align: center;
    }

    .receipt-qr img {
        width: 30mm;
        height: 30mm;
    }

    .receipt-print-area footer {
        margin-top: 18px;
        text-align: center;
    }
}
