@media print{.action-bar,.filters,.no-print,.print-actions,.sidebar,.sidebar-overlay,.sidebar-wrapper,aside,button,footer:not(.print-footer),header:not(.print-header),nav{display:none!important}.min-h-screen,body,html{min-height:0!important;height:auto!important;background:white!important;margin:0!important;padding:0!important;overflow:visible!important}body{font-size:12pt!important;line-height:1.4!important;color:#000!important;-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important}.main-content{margin-left:0!important;margin-right:0!important}@page{size:A4;margin:10mm}.print-container{max-width:none!important;margin:0!important;padding:0!important;box-shadow:none!important;border:none!important}.print-header{display:flex!important;padding-bottom:10mm;margin-bottom:5mm;border-bottom:2px solid #f59e0b}.page-break-before{page-break-before:always}.page-break-after{page-break-after:always}.no-page-break{page-break-inside:avoid}.table-row,tr{page-break-inside:avoid!important}thead{display:table-header-group}table{border-collapse:collapse!important;width:100%!important}td,th{border:1px solid #ccc!important;padding:8px!important;text-align:left!important}th{background-color:#fef3c7!important;font-weight:600!important}.bg-amber-50{background-color:#fffbeb!important}.bg-amber-100{background-color:#fef3c7!important}.bg-green-100{background-color:#dcfce7!important}.bg-red-100{background-color:#fee2e2!important}.text-amber-600{color:#d97706!important}.text-amber-800{color:#92400e!important}.text-green-600{color:#16a34a!important}.text-red-600{color:#dc2626!important}.print-footer{position:fixed;bottom:0;left:0;right:0;padding:5mm;border-top:1px solid #ccc;font-size:10pt;color:#666}[dir=rtl] body{font-family:Cairo,system-ui,sans-serif!important}[dir=rtl] .print-header{flex-direction:row-reverse}[dir=rtl] td,[dir=rtl] th{text-align:right!important}[dir=rtl] *,[dir=rtl] table,[dir=rtl] td,[dir=rtl] th{font-family:Cairo,system-ui,sans-serif!important}}.print-container{max-width:210mm;margin:0 auto;padding:20px;background:white;box-shadow:0 4px 6px -1px rgb(0 0 0/.1);border-radius:8px}.print-header{display:flex;justify-content:space-between;align-items:flex-start;padding-bottom:16px;border-bottom:2px solid #f59e0b;margin-bottom:20px}.print-content{min-height:200px}.print-footer{margin-top:24px;padding-top:16px;border-top:1px solid #e2e8f0;display:flex;justify-content:space-between;align-items:center;font-size:12px;color:#64748b}.a4-page{width:210mm;min-height:297mm;padding:10mm;margin:0 auto;font-size:12pt;line-height:1.5}.a4-half,.a4-page{background:white;box-sizing:border-box;font-family:Cairo,Segoe UI,Tahoma,sans-serif;color:#1e293b}.a4-half{width:100%;min-height:125mm;max-height:138mm;padding:5mm;font-size:10pt;line-height:1.3;display:flex;flex-direction:column}.copy-divider{border-top:1px dashed #94a3b8;margin:3mm 0;position:relative}.copy-divider:after{content:"✂";position:absolute;top:-8px;left:50%;transform:translateX(-50%);background:white;padding:0 6px;color:#94a3b8;font-size:10pt}.copy-label{text-align:center;font-size:8pt;color:#64748b;margin-bottom:2mm;font-weight:500}.receipt-title{text-align:center;font-size:14pt;font-weight:700;color:#0f172a;margin:3mm 0;padding:2mm;background:#fef3c7;border-radius:4px}.receipt-meta-row{display:flex;justify-content:space-between;gap:2mm;margin-bottom:3mm}.receipt-meta-box{flex:1;background:#f8fafc;border:1px solid #e2e8f0;border-radius:4px;padding:1.5mm;text-align:center}.receipt-meta-box label{display:block;font-size:7pt;color:#64748b;margin-bottom:.5mm}.receipt-meta-box span{font-size:9pt;font-weight:600;color:#1e293b}.receipt-party-box{background:#f1f5f9;border-radius:4px;padding:2mm;margin-bottom:3mm;text-align:center}.receipt-party-box h3{font-size:8pt;color:#64748b;margin:0 0 1mm}.receipt-party-box .party-name{font-size:12pt;font-weight:700;color:#0f172a}.receipt-party-box .party-phone{font-size:9pt;color:#475569;margin-top:1mm}.receipt-amount-box{background:linear-gradient(135deg,#f59e0b,#d97706);color:white;border-radius:6px;padding:3mm;margin-bottom:3mm;text-align:center}.receipt-amount-number{font-size:18pt;font-weight:700;direction:ltr}.receipt-balance-row{display:flex;justify-content:space-between;align-items:center;padding:2mm 3mm;background:#f8fafc;border:1px solid #e2e8f0;border-radius:4px;margin-bottom:2mm}.receipt-balance-label{font-size:9pt;color:#475569;font-weight:500}.receipt-balance-value{font-size:11pt;font-weight:700;direction:ltr}.receipt-notes{font-size:9pt;color:#475569;padding:2mm;background:#f8fafc;border-radius:4px;margin-bottom:2mm}.receipt-notes label{font-weight:600;margin-inline-end:4px}.receipt-footer{margin-top:auto;padding-top:2mm;border-top:1px solid #e2e8f0;display:flex;justify-content:space-between;align-items:flex-end;font-size:8pt;color:#64748b}.signature-line{border-top:1px solid #94a3b8;width:30mm;padding-top:1mm;text-align:center}.print-timestamp{font-size:7pt;color:#94a3b8;margin-top:.5mm}.print-preview-container{min-height:100vh;background:#f1f5f9;padding:20px}.print-actions{max-width:210mm;margin:0 auto 20px;display:flex;gap:10px;justify-content:flex-end}.print-actions .print-btn{background:#f59e0b;color:white;padding:10px 24px;border-radius:8px;font-weight:600;border:none;cursor:pointer}.print-actions .print-btn:hover{background:#d97706}.print-actions .back-btn{background:#e2e8f0;color:#475569;padding:10px 24px;border-radius:8px;font-weight:600;border:none;cursor:pointer}.print-actions .back-btn:hover{background:#cbd5e1}.receipt-page{max-width:210mm;margin:0 auto;background:white;box-shadow:0 4px 6px -1px rgb(0 0 0/.1)}@media print{.print-preview-container{background:white;padding:0}.receipt-page{box-shadow:none;max-width:none}.copy-divider:after{background:white}}[dir=rtl] .print-actions,[dir=rtl] .receipt-balance-row,[dir=rtl] .receipt-footer,[dir=rtl] .receipt-meta-row{flex-direction:row-reverse}[dir=rtl] .receipt-notes{text-align:right}[dir=rtl] .receipt-notes label{margin-inline-start:0;margin-inline-end:4px}[dir=rtl] .copy-label,[dir=rtl] .receipt-amount-box,[dir=rtl] .receipt-meta-box,[dir=rtl] .receipt-party-box,[dir=rtl] .receipt-title{text-align:center}[dir=rtl] .receipt-amount-number,[dir=rtl] .receipt-balance-value,[dir=rtl] .receipt-meta-box span{direction:ltr;unicode-bidi:embed}