.issue-print-root{display:none}.sawaed-preview{background:#e9ecef;padding:18px;overflow:auto}.sawaed-document{box-sizing:border-box;color:#111;direction:rtl;background:#fff;width:190mm;max-width:none;min-height:270mm;margin:auto;padding:7mm 5mm;font-family:Cairo,Arial,sans-serif;font-size:11pt;line-height:1.65}.sawaed-document *{box-sizing:border-box}.sawaed-header{grid-template-columns:1fr 40mm 1fr;align-items:start;gap:7mm;min-height:49mm;display:grid}.sawaed-issuer{padding-top:10mm;font-size:10pt;font-weight:700}.sawaed-issuer p{margin:4mm 0 0}.sawaed-logo{text-align:center;line-height:1.05}.sawaed-logo img{object-fit:contain;width:25mm;height:30mm;margin:0 auto 1mm;display:block}.sawaed-logo strong{color:#302a24;font-size:26pt;display:block}.sawaed-logo b{color:#302a24;font:700 20pt Arial,sans-serif;display:block}.sawaed-meta{text-align:center;padding-top:10mm;font-size:11pt}.sawaed-meta p{margin:0 0 1mm}.sawaed-meta bdi{font-weight:400}.sawaed-document h1{text-align:center;margin:1mm 0 12mm;font-size:19pt;font-weight:800;text-decoration:underline}.sawaed-document section{break-inside:auto;margin:0 0 5mm}.sawaed-document section h2{color:#000;break-after:avoid;background:#bfa31c;border-radius:3mm;margin:0 0 2mm;padding:.5mm 3mm;font-size:14pt;font-weight:800;display:table}.sawaed-document p{white-space:pre-wrap;overflow-wrap:anywhere}.sawaed-location p{margin:0 0 4mm}.sawaed-photos{break-inside:avoid;flex-wrap:wrap;justify-content:center;gap:5mm;margin:4mm 0 7mm;display:flex}.sawaed-photos img{object-fit:contain;background:#fff}.sawaed-photos.technical img{width:auto;max-width:60mm;height:53mm}.sawaed-photos.invoice img{width:29mm;height:29mm}.sawaed-invoice{border-collapse:collapse;table-layout:fixed;width:100%;margin:9mm 0 8mm;font-size:11pt}.sawaed-invoice thead{display:table-header-group}.sawaed-invoice th{text-align:center;border-bottom:1mm solid #111;padding:2mm;font-weight:800}.sawaed-invoice td{vertical-align:middle;text-align:center;white-space:pre-wrap;overflow-wrap:anywhere;padding:4mm 2mm}.sawaed-invoice tr{break-inside:avoid}.sawaed-invoice th:first-child{border-left:1mm solid #111;width:7%}.sawaed-invoice td:first-child{border-left:1mm solid #111;font-weight:800}.sawaed-invoice th:nth-child(2){width:19%}.sawaed-invoice th:nth-child(3){width:42%}.sawaed-invoice th:nth-child(4),.sawaed-invoice th:nth-child(5){width:16%}.sawaed-invoice td:nth-child(3){text-align:right}.sawaed-total{background:#bfa31c;border-radius:3mm;margin:8mm 20mm 5mm 0;padding:1mm 4mm;font-size:16pt;font-weight:800;display:table}.sawaed-cost{background:#fff88b;border-radius:2mm;padding:1mm 3mm;font-weight:800;display:table}.sawaed-signoff{flex-direction:row-reverse;justify-content:space-between;align-items:end;margin:8mm 0 3mm;display:flex}.sawaed-signoff strong{font-size:16pt}.sawaed-signoff span{font-size:10pt}.sawaed-document footer{break-inside:avoid;border-top:1mm solid #111;justify-content:space-between;gap:4mm;padding-top:2mm;font-size:8pt;display:flex}.issued-photo-editor{flex-wrap:wrap;gap:12px;display:flex}.issued-photo-editor>div{width:120px}.issued-photo-editor img{object-fit:contain;width:120px;height:100px}.issued-line-editor{background:#f8fafc;border:1px solid #d8e0e7;border-radius:10px;gap:12px;padding:18px;display:grid}@media print{@page{size:A4;margin:10mm}body:has(.issue-print-root){background:#fff!important;display:block!important}body:has(.issue-print-root)>:not(.issue-print-root){display:none!important}.issue-print-root{display:block!important;position:static!important}.issue-print-root .sawaed-document{color:#000;width:100%;max-width:none;min-height:0;margin:0;padding:0}.sawaed-document{-webkit-print-color-adjust:exact;print-color-adjust:exact}.sawaed-header,.sawaed-signoff{break-inside:avoid}}
