/* PDF report pages: A4 landscape at 96 dpi (1123 × 794 px), laid out like the client's Excel RA sheet. */
.pdf-page {
  width: 1123px; height: 794px; overflow: hidden;
  padding: 18px 20px 12px; background: #ffffff; color: var(--text);
  direction: rtl; font-family: var(--font);
  display: flex; flex-direction: column; gap: 8px;
}
.pdf-head { display: grid; grid-template-columns: 150px 180px 150px minmax(0, 1fr) 120px 130px; gap: 6px; height: 64px; flex-shrink: 0; }
.pdf-head > div { border: 1px solid var(--pdf-grid); border-radius: 5px; padding: 4px 8px; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.pdf-head .logo { background: var(--navy); border-color: var(--navy); align-items: center; }
.pdf-head .logo img { height: 40px; width: auto; }
.pdf-head .k { font-size: 9.5px; color: var(--text2); font-weight: 700; line-height: 1.4; }
.pdf-head .v { font-size: 12.5px; font-weight: 700; line-height: 1.4; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pdf-head .id { font-size: 9.5px; color: var(--text2); direction: ltr; text-align: right; line-height: 1.4; }
.pdf-head .sig img { max-height: 40px; max-width: 132px; object-fit: contain; align-self: flex-start; }
.pdf-head .title { border: 1.5px solid var(--text); align-items: center; text-align: center; }
.pdf-head .title .en { font-size: 12.5px; font-weight: 800; direction: ltr; line-height: 1.35; }
.pdf-head .title .ar { font-size: 10.5px; color: var(--text2); font-weight: 600; line-height: 1.4; }

.pdf-body { flex: 1 1 auto; min-height: 0; overflow: hidden; }
.pdf-table { border-collapse: collapse; width: 100%; table-layout: fixed; font-size: 8.3px; line-height: 1.42; }
.pdf-table th, .pdf-table td { border: 1px solid var(--pdf-grid); vertical-align: top; }
.pdf-table th { background: var(--pdf-head); font-weight: 800; padding: 2px 1px; text-align: center; vertical-align: middle; line-height: 1.3; font-size: 8.2px; }
.pdf-table th.x { background: var(--pdf-head-extra); }
.pdf-table th.sm { font-size: 7.4px; padding: 2px 0; }
.pdf-table th .lt { display: block; font-size: 7.5px; color: var(--text2); font-weight: 700; direction: ltr; }
.pdf-table td { padding: 3px 3px; }
.pdf-table td.act { font-weight: 800; font-size: 8.8px; }
.pdf-table td.act .cont { display: block; font-size: 7.5px; color: var(--text2); font-weight: 700; }
.pdf-table td.num { text-align: center; font-weight: 700; font-size: 10px; padding: 3px 0; }
.pdf-table td.sc { font-weight: 800; }
.pdf-table td.muted { color: var(--text2); }
.pdf-table td .li { display: block; }
.pdf-table td.s-g { background: var(--pdf-green); }
.pdf-table td.s-y { background: var(--pdf-yellow); }
.pdf-table td.s-o { background: var(--pdf-orange); }
.pdf-table td.s-r { background: var(--pdf-red); }
.pdf-table tr.stop td.act { color: var(--band-red-tx); }

.pdf-foot {
  flex-shrink: 0; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  border-top: 1px solid var(--border-strong); padding-top: 5px; font-size: 9px; color: var(--text2); line-height: 1.4;
}
.pdf-foot .pg { font-weight: 700; white-space: nowrap; }
.pdf-foot .ref { direction: ltr; font-size: 8px; }
