/* ================================================
   نظام ليالي الشام - تنسيقات الطباعة
   ================================================ */

@media print {
    body * { visibility: hidden; }
    .print-receipt, .print-receipt * { visibility: visible; }
    .print-receipt {
        position: absolute;
        left: 0;
        top: 0;
    }
}

.print-receipt {
    width: 80mm;
    max-width: 80mm;
    font-family: 'Cairo', monospace;
    font-size: 12px;
    color: #000;
    background: #fff;
    padding: 10px;
    direction: rtl;
}

.receipt-header {
    text-align: center;
    border-bottom: 2px dashed #000;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.receipt-header .logo-name {
    font-size: 20px;
    font-weight: 900;
    margin-bottom: 3px;
}

.receipt-header .slogan {
    font-size: 10px;
    color: #666;
}

.receipt-header .contact {
    font-size: 10px;
    margin-top: 5px;
}

.receipt-info {
    border-bottom: 1px dashed #000;
    padding-bottom: 8px;
    margin-bottom: 8px;
}

.receipt-info-row {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    padding: 2px 0;
}

.receipt-info-row .label { font-weight: 700; }
.receipt-info-row .value { font-family: 'Outfit', monospace; }

.receipt-items {
    border-bottom: 1px dashed #000;
    padding-bottom: 8px;
    margin-bottom: 8px;
}

.receipt-items-header {
    display: grid;
    grid-template-columns: 2fr 30px 50px 60px;
    font-weight: 700;
    font-size: 11px;
    padding-bottom: 5px;
    border-bottom: 1px solid #ccc;
    margin-bottom: 5px;
}

.receipt-item {
    display: grid;
    grid-template-columns: 2fr 30px 50px 60px;
    font-size: 11px;
    padding: 3px 0;
}

.receipt-item .item-name { font-weight: 600; }
.receipt-item .item-qty { text-align: center; font-family: 'Outfit', monospace; }
.receipt-item .item-price { text-align: left; font-family: 'Outfit', monospace; }
.receipt-item .item-total { text-align: left; font-family: 'Outfit', monospace; font-weight: 600; }

.receipt-item-extras {
    grid-column: span 4;
    font-size: 9px;
    color: #666;
    padding-right: 10px;
}

.receipt-item-notes {
    grid-column: span 4;
    font-size: 9px;
    color: #999;
    font-style: italic;
    padding-right: 10px;
}

.receipt-totals {
    border-bottom: 2px dashed #000;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.receipt-total-row {
    display: flex;
    justify-content: space-between;
    padding: 2px 0;
    font-size: 12px;
}

.receipt-total-row .value {
    font-family: 'Outfit', monospace;
    font-weight: 600;
}

.receipt-total-row.grand {
    font-size: 16px;
    font-weight: 900;
    border-top: 1px solid #000;
    padding-top: 6px;
    margin-top: 4px;
}

.receipt-total-row.change {
    color: #666;
    font-size: 11px;
}

.receipt-footer {
    text-align: center;
    font-size: 10px;
    color: #666;
    padding-top: 5px;
    line-height: 1.6;
}

.receipt-footer .thanks {
    font-size: 13px;
    font-weight: 700;
    color: #000;
    margin-bottom: 3px;
}

.receipt-barcode {
    text-align: center;
    font-family: 'Outfit', monospace;
    font-size: 10px;
    letter-spacing: 2px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #000;
}

/* Kitchen Print */
.print-kitchen-order {
    width: 80mm;
    font-family: 'Cairo', monospace;
    font-size: 14px;
    color: #000;
    background: #fff;
    padding: 10px;
    direction: rtl;
}

.print-kitchen-order .order-header {
    text-align: center;
    font-size: 20px;
    font-weight: 900;
    border-bottom: 3px solid #000;
    padding-bottom: 8px;
    margin-bottom: 8px;
}

.print-kitchen-order .order-type {
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    background: #000;
    color: #fff;
    padding: 5px;
    margin-bottom: 8px;
}

.print-kitchen-order .kitchen-item {
    display: flex;
    gap: 10px;
    padding: 5px 0;
    border-bottom: 1px dashed #ccc;
    font-size: 14px;
}

.print-kitchen-order .kitchen-qty {
    font-weight: 900;
    font-size: 18px;
    min-width: 25px;
}

.print-kitchen-order .kitchen-name { font-weight: 700; }
.print-kitchen-order .kitchen-notes { font-size: 11px; color: #666; }
