@media print {
    /* Hide everything by default */
    body.printing * {
        visibility: hidden;
    }

    /* Then, only show the print container and its children */
    body.printing #print-root,
    body.printing #print-root * {
        visibility: visible;
    }

    /* Position the print container at the top-left corner */
    body.printing #print-root {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
    }
    
    .no-print {
        display: none !important;
    }
}


.receipt-container {
    width: 60mm;
    margin: 0 auto;
    padding: 10px;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 11px;
    line-height: 1.5;
    background: #fff;
    color: #000;
    direction: rtl;
}

.receipt-header {
    text-align: center;
    margin-bottom: 10px;
}

.receipt-header h1 {
    font-size: 16px;
    font-weight: bold;
    margin: 0;
}

.receipt-header p {
    margin: 0;
}

.info-table {
    width: 100%;
    margin-bottom: 10px;
    font-size: 10px;
}

.info-table td {
    padding: 1px 0;
}

.info-table .value {
    text-align: left;
}

.receipt-hr {
    border: 0;
    border-top: 1px dashed #000;
    margin: 10px 0;
}

.items-table {
    width: 100%;
    border-collapse: collapse;
}

.items-table th, .items-table td {
    padding: 4px 2px;
    text-align: right;
}

.items-table th {
    font-weight: bold;
    border-bottom: 1px solid #000;
}

.items-table .quantity-col {
    text-align: center;
    width: 40px;
}

.items-table .price-col {
    text-align: left;
    width: 70px;
}

.items-table tfoot td {
    padding-top: 5px;
}

.items-table .total-row td {
    font-weight: bold;
    font-size: 12px;
    padding-top: 8px;
}

.qr-section {
    text-align: center;
    margin-top: 15px;
}

.qr-section p {
    font-size: 10px;
    margin-bottom: 5px;
}

.qr-code {
    display: flex;
    justify-content: center;
}

.receipt-footer {
    text-align: center;
    margin-top: 15px;
    font-size: 10px;
}

.mono {
    font-family: 'Vazirmatn', monospace;
}
