/* أنماط الطباعة (الوصولات + الكشوف) */
#print-receipt-section, #print-list-section, #print-all-receipts-section, #print-phones-section, #print-admin-stats-section, #print-financial-stats-section { display: none; }
.model-receipt { border: 2.5px solid #000; padding: 15px 20px; background: #fff; position: relative; box-sizing: border-box; page-break-inside: avoid; }
.copy-type-badge { display: inline-block; font-weight: bold; font-size: 0.9em; color: var(--danger-color); border: 1px solid var(--danger-color); padding: 2px 10px; border-radius: 4px; background: #fff5f5; white-space: nowrap; }
.sig-mid { flex-grow: 1; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 2px; }
.receipt-no { font-size: 0.95em; font-weight: bold; margin-top: 4px; }
.receipt-no span { color: var(--danger-color); }
.model-receipt-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 18px; padding-top: 5px; }
.amount-boxes { display: flex; gap: 6px; text-align: center; }
.amount-box-item { display: flex; flex-direction: column; align-items: center; }
.amount-box-item label { font-size: 0.85em; font-weight: bold; margin-bottom: 4px; }
.amount-box-item .box-val { border: 2px solid #000; width: 65px; height: 32px; display: flex; align-items: center; justify-content: center; font-size: 1.1em; font-weight: bold; color: var(--danger-color); }
.receipt-main-title { text-align: center; flex-grow: 1; padding-top: 5px; }
.receipt-main-title h1 { margin: 0; font-size: 1.6em; font-weight: 800; text-decoration: underline; letter-spacing: 1px; color: #000; }
.receipt-date-box { font-weight: bold; font-size: 1.05em; padding-top: 5px; }
.receipt-date-box span, .red-var { color: var(--danger-color); }
.receipt-line-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-size: 1em; font-weight: bold; }
.receipt-line-row .ar-label { text-align: right; width: 120px; }
.receipt-line-row .en-label { font-family: Arial, sans-serif; direction: ltr; text-align: left; width: 130px; }
.receipt-line-row .line-fill { flex-grow: 1; border-bottom: 1.5px dotted #000; margin: 0 10px; text-align: center; font-size: 1.1em; color: var(--danger-color); padding-bottom: 2px; }
.receipt-signatures { display: flex; justify-content: space-between; margin-top: 22px; padding: 0 20px; font-weight: bold; font-size: 1.05em; }
.sig-item { text-align: center; width: 180px; }
.sig-line { border-bottom: 1px dotted #000; margin-top: 20px; width: 100%; }
@media print {
    body { background: #fff; padding: 0; margin: 0; }
    #app-content, #login-overlay, .section-bar, .custom-modal, #toast-container, #dialog-modal { display: none !important; }
    #print-receipt-section, #print-all-receipts-section, #print-list-section, #print-phones-section, #print-admin-stats-section, #print-financial-stats-section { display: none !important; }
    body.print-mode-receipt #print-receipt-section { display: block !important; }
    body.print-mode-all #print-all-receipts-section { display: block !important; }
    body.print-mode-list #print-list-section { display: block !important; }
    body.print-mode-phones #print-phones-section { display: block !important; }
    body.print-mode-admin #print-admin-stats-section { display: block !important; }
    body.print-mode-financial #print-financial-stats-section { display: block !important; }
    @page { size: A4; margin: 1cm; }
    #print-all-receipts-section { height: 27.7cm; display: flex; flex-direction: column; }
    .receipt-page { height: 27.7cm; display: flex; flex-direction: column; page-break-after: always; }
    .receipt-page:last-child { page-break-after: auto; }
    .receipt-page-container { display: flex; flex-direction: column; height: 100%; justify-content: space-between; }
    .model-receipt { flex: 1; display: flex; flex-direction: column; justify-content: space-between; padding: 10px !important; margin: 0 !important; border: 1.5px solid #000 !important; box-sizing: border-box; }
    .receipt-separator { height: 1cm; display: flex; align-items: center; justify-content: center; overflow: hidden; white-space: nowrap; position: relative; }
    .receipt-separator hr { width: 100%; border: none; border-top: 2px dashed #000; margin: 0; position: absolute; top: 50%; z-index: 1; }
    .receipt-separator span { background: #fff; padding: 0 10px; font-size: 14px; color: #000; z-index: 2; position: relative; }
    .print-class-block { page-break-after: always; page-break-inside: avoid; }
    .print-class-block:last-child { page-break-after: auto; }
}