/* print: only the document */
@media print{
  @page{size:A4 landscape;margin:8mm}
  body{background:#fff!important}
  body *{visibility:hidden}
  #theDoc,#theDoc *{visibility:visible}
  *:has(#theDoc){position:static!important;transform:none!important}
  #theDoc{position:absolute;top:0;left:0;right:0;width:100%;margin:0;box-shadow:none;zoom:.92}
  .doc tr,.doc .msum,.doc .msumcol,.doc .sigbox,.doc .mbottom{break-inside:avoid}
  .doc thead{display:table-header-group}
}
.doc.modern.compact td{padding:3px 6px}
.doc.modern.compact th{padding:4px 6px}
.doc.modern.compact table{margin-bottom:8px}
.doc.modern.compact .msec{margin-top:6px;margin-bottom:5px}
/* smaller title bar + centered cells everywhere */
.doc.modern .mtitle{margin:4px 36px 6px}
.doc.modern .mtitle .t-en{font-size:16px;letter-spacing:2px}
.doc.modern .mtitle .t-ar{font-size:16px}
.doc th,.doc td,.doc.modern th,.doc.modern td,.doc td.l,.doc td.r,.doc.rtl td.l,.doc.modern td.l,.doc.modern.rtl td.l,.dt tbody td,.dt thead th,.dt td.wrap{text-align:center!important;vertical-align:middle!important}
.doc td.r,.doc td.wrap{direction:rtl}
.doc.modern .mf-band{align-items:center;min-height:40px;padding:10px 24px 12px;line-height:1.5;box-sizing:border-box}
.doc.modern .mf-band span{display:flex;align-items:center;justify-content:center;flex:1;text-align:center}
.doc.modern .mf{padding-top:10px}
.doc th,.doc td,.doc.modern th,.doc.modern td,.doc td.r,.doc td.wrap{white-space:nowrap!important}
/* darker table text + lines */
.doc.modern td{color:#0b1520!important;font-weight:800!important;border-bottom:1px solid #98b3a6!important;border-inline-start:1px solid #b2c7bc!important}
.doc.modern table{border:1.5px solid #6e8a7d!important}
.doc.modern td.amt{color:#0a3d2f!important}
.dt tbody td{color:var(--cell-ink)!important;font-weight:800!important;border-bottom:1px solid var(--tline,#a7bdb1)!important;border-inline-start:1px solid var(--tline,#a7bdb1)!important}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){--tline:#3c564b}}
:root[data-theme="dark"]{--tline:#3c564b}
.doc.modern.compact{width:max-content!important;min-width:1123px;max-width:none!important;overflow:visible!important}
.doc.modern.compact table{width:auto!important;min-width:calc(100% - 72px)}
/* documents fill screen width */
.doc.modern{width:100%!important;min-width:1123px;box-sizing:border-box}
.doc.modern table{width:calc(100% - 72px)!important}
.doc.modern.compact{width:max-content!important;min-width:1123px}
.doc.modern.compact table{width:auto!important;min-width:calc(100% - 72px)}
/* row actions + multi-select */
.dt .sel-c{width:38px;padding:6px!important;position:sticky;inset-inline-start:0;z-index:2}
.dt .act-c{width:92px;padding:6px!important;position:sticky;inset-inline-start:0;z-index:2;border-inline-end:2px solid var(--border)!important}
.dt:has(.sel-c) .act-c{inset-inline-start:38px}
.dt tbody td.sel-c,.dt tbody td.act-c,.dt tfoot td.act-c,.dt tfoot td.sel-c{background:var(--card)}
.dt tbody tr:nth-child(even) td.act-c,.dt tbody tr:nth-child(even) td.sel-c{background:var(--card-2)}
.dt thead th.sel-c,.dt thead th.act-c{background:var(--thead)}
.dt tr.filter-row th.sel-c,.dt tr.filter-row th.act-c{background:var(--card-2)}
.dt input[type=checkbox]{width:18px;height:18px;accent-color:var(--accent);cursor:pointer;margin:0}
.dt tbody tr.selrow td{background:color-mix(in srgb,var(--danger-bg) 70%,var(--card))!important}
.dt .actions{display:flex;gap:6px;justify-content:center}
