/* A4 document templates: quotation, invoice, receipt voucher, statement of account */
.dp{width:210mm;min-height:297mm;padding:0 15mm 9mm;position:relative;display:flex;flex-direction:column;overflow:hidden;background:#fff;color:#12203a;font-family:'IBM Plex Sans Arabic',Inter,sans-serif;font-size:10pt;direction:rtl;text-align:right;-webkit-print-color-adjust:exact;print-color-adjust:exact;box-sizing:border-box}
.dp *{box-sizing:border-box}
.dp::before{content:"";position:absolute;inset:0 0 auto 0;height:4mm;background:#12203a}
.dp::after{content:"";position:absolute;top:4mm;left:0;right:0;height:1.2mm;background:#d9b878}
.dp .wm{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%) rotate(-30deg);font:700 64pt Inter;color:rgba(180,30,30,.10);white-space:nowrap;pointer-events:none}
.dp .en{font-family:Inter,sans-serif;direction:ltr;unicode-bidi:isolate}
.dp .ltr{direction:ltr;unicode-bidi:isolate}
.dp .num{font-family:Inter;font-variant-numeric:tabular-nums;direction:ltr;unicode-bidi:isolate}
.dp td,.dp th{text-align:right}
.dp .lh{display:grid;grid-template-columns:1fr 27mm 1fr;align-items:center;gap:5mm;padding:10mm 0 4mm;border-bottom:.4mm solid #dcd3c3}
.dp .lh .ar{text-align:right}
.dp .lh .ar b{display:block;font:700 15pt/1.35 Amiri,serif}
.dp .lh .ar span{display:block;font:500 8.6pt/1.5 'IBM Plex Sans Arabic';color:#8c672a}
.dp .lh .el{text-align:left;direction:ltr}
.dp .lh .el b{display:block;font:600 11.5pt/1.3 Newsreader,serif}
.dp .lh .el span{display:block;font:500 7.4pt/1.5 Inter;color:#8c672a;letter-spacing:.06em;text-transform:uppercase}
.dp .lh .seal{width:27mm;height:27mm}
.dp .lh .seal svg{width:100%;height:100%;display:block}
.dp .title{display:flex;justify-content:space-between;align-items:flex-end;margin:5mm 0 3.5mm}
.dp .title h1{margin:0;font:700 21pt/1 'IBM Plex Sans Arabic'}
.dp .title h2{margin:0;font:600 15pt/1 Inter;letter-spacing:.14em;direction:ltr;color:#8c672a}
.dp .meta{display:grid;grid-template-columns:1.25fr 1fr;gap:4mm;margin-bottom:4.5mm}
.dp .box{border:.3mm solid #dcd3c3;border-radius:1.5mm;padding:3mm 4mm;background:#fbf9f5}
.dp .box h3{margin:0 0 1.5mm;font:600 8.4pt 'IBM Plex Sans Arabic';color:#8c672a}
.dp .box h3 .en{font-weight:500;font-size:7.4pt;margin-right:1.5mm}
.dp .row{display:flex;justify-content:space-between;gap:3mm;padding:.8mm 0;border-bottom:.2mm dashed #e6dfd2}
.dp .row:last-child{border-bottom:0}
.dp .row .k{color:#566070;font-size:8.6pt}
.dp .row .k .en{font-size:7.4pt;margin-right:1.2mm}
.dp .row .v{font-weight:600;text-align:left}
.dp .client-name{font:600 11pt/1.4 'IBM Plex Sans Arabic'}
.dp .client-name .en{display:block;text-align:right;font:500 9pt Inter;color:#566070}
.dp .client-sub{font-size:8.6pt;color:#566070;line-height:1.6}
.dp table{width:100%;border-collapse:collapse;font-size:9.4pt}
.dp th{background:#12203a;color:#fff;font-weight:600;padding:2mm 2.5mm;font-size:8.8pt;line-height:1.25}
.dp th .en{display:block;font-weight:500;font-size:7pt;color:#d9b878}
.dp td{padding:2.4mm 2.5mm;border-bottom:.25mm solid #e6dfd2;vertical-align:top}
.dp td .en{display:block;font-size:8pt;color:#566070}
.dp tbody tr:nth-child(even) td{background:#fbf9f5}
.dp tr{break-inside:avoid}
.dp .c{text-align:center}.dp .l{text-align:left}
.dp .after{display:grid;grid-template-columns:1fr 72mm;gap:6mm;margin-top:4mm;break-inside:avoid}
.dp .totals .row{padding:1.4mm 0}
.dp .totals .grand{background:#12203a;color:#fff;border-radius:1.2mm;padding:2.2mm 3mm;margin-top:1.5mm;border:0}
.dp .totals .grand .k{color:#d9b878}
.dp .totals .due{background:#f3ead8;border-radius:1.2mm;padding:2.2mm 3mm;margin-top:1.5mm;border:0}
.dp .totals .pad{padding:1.4mm 3mm}
.dp .words{font-size:8.8pt;line-height:1.7}
.dp .words .en{display:block;text-align:right}
.dp .words b{color:#8c672a;font-weight:600}
.dp .notes{margin-top:4mm;font-size:8.4pt;line-height:1.6;color:#3d4859;break-inside:avoid}
.dp .notes h4{margin:0 0 1mm;font:600 8.8pt 'IBM Plex Sans Arabic';color:#12203a}
.dp .notes h4 .en{font-weight:500;font-size:7.6pt}
.dp .notes ol{margin:0;padding-inline-start:5mm}
.dp .notes .en.il{display:inline}
.dp .notes b{font-weight:600;color:#12203a}
.dp .sign{display:grid;grid-template-columns:1fr 1fr;gap:12mm;margin-top:auto;padding-top:7mm;break-inside:avoid}
.dp .sign div{border-top:.3mm solid #12203a;padding-top:1.5mm;font-size:8.4pt;text-align:center;color:#3d4859}
.dp .sign div.blank{border:0}
.dp .sign .en{display:block;font-size:7.2pt}
.dp .foot{margin-top:5mm;padding-top:2.5mm;border-top:.6mm solid #d9b878;display:flex;justify-content:space-between;gap:4mm;font-size:7.4pt;color:#566070;line-height:1.55}
.dp .foot .el{direction:ltr;text-align:left;font-family:Inter}
.dp .big{font:700 16pt Inter;direction:ltr;text-align:right}
.dp .rv{display:grid;grid-template-columns:auto 1fr;border:.3mm solid #dcd3c3;border-radius:1.5mm;overflow:hidden}
.dp .rv>div{padding:3.2mm 4mm;border-bottom:.25mm solid #e6dfd2}
.dp .rv>div:nth-last-child(-n+2){border-bottom:0}
.dp .rv .k{background:#fbf9f5;color:#566070;font-size:8.8pt;min-width:48mm;border-left:.25mm solid #e6dfd2}
.dp .rv .k .en{display:block;font-size:7.4pt}
.dp .rv .v{font-weight:600;font-size:10.4pt}
.dp .rv .v .en.sub{display:block;font-weight:500;font-size:8.6pt;color:#566070}
.dp .check{display:inline-flex;flex-wrap:wrap;gap:5mm;font-weight:500;font-size:9.2pt}
.dp .check i{display:inline-block;width:3.2mm;height:3.2mm;border:.3mm solid #12203a;border-radius:.6mm;vertical-align:-.5mm;margin-left:1mm;font-style:normal;text-align:center;line-height:2.8mm;font-size:8pt}
.dp .ob td{font-weight:600;background:#f3ead8!important}
.dp .note-box{margin-top:3mm;font-size:8.6pt;color:#3d4859;white-space:pre-wrap}
.dp td.num{white-space:nowrap}
