
@font-face{font-family:'SST Arabic Medium';src:url('/sst-arabic-medium.ttf') format('truetype');font-style:normal;font-weight:400 700;font-display:block}
.letter-pages{direction:rtl;overflow:auto;background:#eceef3;padding:12px;font-family:'SST Arabic Medium'}
.lp-ltr{display:inline-block;direction:ltr;unicode-bidi:isolate;white-space:nowrap}
.lp-ordered-values,.lp-date-pair{display:inline-flex;direction:rtl;align-items:baseline;gap:.25em;white-space:nowrap}
.lp-reference,.lp-date-line{white-space:nowrap}
.letter-editor [name=body]{font-family:'SST Arabic Medium';font-size:14pt}
#letter-list table{width:100%;table-layout:fixed;min-width:800px}
#letter-list th,#letter-list td{padding:14px 10px;white-space:normal;overflow-wrap:anywhere}
#letter-list th:nth-child(4){width:20%}#letter-list th:nth-child(7){width:23%}#letter-list th:last-child{width:7%}
#letter-list .badge{white-space:normal;text-align:center}
.letter-a4{position:relative;box-sizing:border-box;width:210mm;height:297mm;background:white;color:#111;margin:12px auto;break-after:page;box-shadow:0 2px 12px #0002;overflow:hidden}
.letter-a4:last-child{break-after:auto}.letter-a4 *{box-sizing:border-box}.letter-a4 p{line-height:inherit}
.letter-a4 .lp-stationery{position:absolute;inset:0;width:210mm;height:297mm;max-width:none;pointer-events:none;object-fit:fill}
.lp-content{position:absolute;top:34mm;bottom:25mm;left:15mm;right:15mm;direction:rtl}
.lp-meta{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start;gap:1mm 10mm;font-size:11pt;line-height:1.6;margin-bottom:6mm}.lp-subject{grid-column:2;grid-row:1;text-align:left}.lp-reference{grid-column:1;grid-row:1}.lp-date-line{grid-column:1/-1;grid-row:2}
.lp-address{display:flex;justify-content:space-between;gap:8mm;font-weight:bold;margin:0 0 5mm}.lp-greeting{text-align:center;margin:0 0 6mm}
.lp-body{white-space:pre-wrap;text-align:justify;overflow-wrap:anywhere;margin:0;line-height:inherit}
.lp-ending{padding-top:5mm;break-inside:avoid}.lp-closing{text-align:center;margin:0 0 5mm}
.lp-sign-grid{display:grid;grid-template-columns:minmax(0,1fr) 82mm;gap:4mm;align-items:center;direction:rtl;position:relative}
.lp-sign-grid:has(.lp-seal){min-height:32mm}
.lp-seal-box{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:34mm;text-align:center}.lp-seal{display:block;width:32mm;height:32mm;object-fit:contain;margin:auto}
.lp-signer{grid-column:2;grid-row:1;text-align:center;line-height:1.5;font-size:12pt}.lp-title,.lp-name{margin:0}
.lp-signature-box{height:20mm;display:flex;align-items:center;justify-content:center;margin:1.5mm 0}.lp-signature{display:block;width:62mm;height:20mm;max-width:100%;object-fit:contain}
.lp-page-number{position:absolute;bottom:18mm;left:15mm;right:15mm;text-align:center;font:9pt 'SST Arabic Medium';color:#555}
.letter-history td{white-space:normal;vertical-align:top}.letter-history th{white-space:nowrap}
@media print{@page{size:A4;margin:0}html,body{margin:0;padding:0}.letter-pages{padding:0;background:white;overflow:visible}.letter-a4{margin:0;box-shadow:none;print-color-adjust:exact;-webkit-print-color-adjust:exact}.lp-toolbar{display:none!important}}

.lp-content{font-family:'SST Arabic Medium';font-size:14pt;line-height:1.8;color:#111}.lp-unsigned-gap{height:3mm}.lp-toolbar{padding:12px}.lp-print-body{margin:0;background:white}
