
/* ShareHome v75: stable safe printable insets on EVERY sheet, even when browser margins=None. */
:root{--sh-print-body:"Yekan","B Yekan","IRYekan",Tahoma,"Segoe UI",Arial,sans-serif;
      --sh-print-title:"Titr","B Titr","IR Titr","Yekan","B Yekan",Tahoma,sans-serif}
.report-document,.report-document button,.report-document input,.report-document .report-paper,
.hmr-paper,.hmr-paper *{font-family:var(--sh-print-body)!important}
.report-document h1,.report-document h2,.report-document h3,.report-document .report-heading h1,
.hmr-paper h1,.hmr-paper h2,.hmr-paper h3,.hmr-report-title{font-family:var(--sh-print-title)!important}
.report-document .report-emblem,.hmr-paper .hmr-report-mark{display:none!important}
/* Print preview remains monochrome: WYSIWYG regardless of background graphics toggle. */
.report-document{--rp-ink:#111;--rp-muted:#444;--rp-line:#999;--rp-soft:#fff;--rp-head:#efefef;--rp-primary:#111;--rp-accent:#333}
.report-document .report-header,.report-document .report-summary article,.report-document .owner-rights-grid article,
.report-document .report-table th,.report-document .report-table td{background:#fff!important;color:#111!important;border-color:#999!important;box-shadow:none!important}
.report-document .report-heading h1,.report-document .report-brand,.report-document .report-section-title h2,
.report-document .report-summary strong,.report-document .report-badge{color:#111!important}
.report-document .report-badge,.report-document .report-badge.active,.report-document .report-badge.used,.report-document .report-badge.changed,.report-document .report-badge.cancelled{background:#fff!important;border:1px solid #aaa!important;color:#111!important}
.report-document .report-header{border-radius:1.5mm;background:#fff!important}
.hmr-paper{--hmr-ink:#111;--hmr-muted:#444;--hmr-primary:#222;--hmr-primary-dark:#111;--hmr-accent:#333;--hmr-line:#aaa;--hmr-line-strong:#888;--hmr-soft:#fff}
.hmr-paper .hmr-report-head,.hmr-paper .hmr-summary>article,.hmr-paper .hmr-table th,
.hmr-paper .hmr-table td,.hmr-paper .hmr-status{background:#fff!important;color:#111!important;border-color:#999!important;box-shadow:none!important}
.hmr-paper .hmr-report-title,.hmr-paper .hmr-report-brand,.hmr-paper .hmr-section-head h2,
.hmr-paper .hmr-summary strong{color:#111!important}
@media print{
  html,body{color:#111!important;background:#fff!important}
  .report-document{font-size:calc(9pt * var(--ds-body-scale,1))!important}
  .report-document .report-heading h1{font-size:calc(15pt * var(--ds-title-scale,1))!important}
  .report-document .report-section-title h2{font-size:calc(9.5pt * var(--ds-title-scale,1))!important}
  .report-document .report-table td,.report-document .report-table th{font-size:calc(7.5pt * var(--ds-body-scale,1))!important}
  .report-document .report-table th{font-weight:900!important}
  .report-document .report-summary article,.report-document .report-header,.report-document .owner-rights-grid article,
  .hmr-paper .hmr-summary,.hmr-paper .hmr-report-head{break-inside:avoid!important;page-break-inside:avoid!important}
  .report-document .report-footer,.hmr-report-footer{break-inside:avoid!important;page-break-inside:avoid!important}
  .report-document .report-table thead,.hmr-paper .hmr-table thead{display:table-header-group!important}
  .report-document .report-table tr,.hmr-paper .hmr-table tr{break-inside:avoid!important;page-break-inside:avoid!important}
  /* A zero-margin page is intentional: the *fragmented content* supplies physical-safe insets.
     box-decoration-break:clone repeats insets at the top/bottom of every printed page.
     It survives Chrome's Margins: None option and avoids blank/edge-to-edge continuation pages. */
  .report-document .report-paper{width:auto!important;min-height:0!important;
    padding:13mm 15mm!important;margin:0!important;overflow:visible!important;
    box-decoration-break:clone!important;-webkit-box-decoration-break:clone!important;}
  .hmr-paper,.hmr-paper[data-orientation="landscape"],.hmr-paper[data-orientation="portrait"]{
    width:auto!important;max-width:none!important;min-height:0!important;height:auto!important;
    padding:13mm 15mm!important;margin:0!important;
    box-decoration-break:clone!important;-webkit-box-decoration-break:clone!important;
    zoom:1!important;overflow:visible!important;box-shadow:none!important;transform:none!important}
  .hmr-paper .hmr-report-title{font-size:calc(13pt * var(--ds-title-scale,1))!important}
  .hmr-paper .hmr-section-head h2{font-size:calc(9.5pt * var(--ds-title-scale,1))!important}
  .hmr-paper .hmr-table th,.hmr-paper .hmr-table td{font-size:calc(7.3pt * var(--ds-body-scale,1))!important}
  .hmr-paper .hmr-season-table th,.hmr-paper .hmr-season-table td{font-size:calc(8pt * var(--ds-body-scale,1))!important}
  .hmr-paper .hmr-report-mark{display:none!important}
  .hmr-paper .hmr-report-head,.hmr-paper .hmr-summary>article,.hmr-paper .hmr-table th,.hmr-paper .hmr-table td,
  .report-document .report-header,.report-document .report-summary article,.report-document .report-table th,.report-document .report-table td{
    -webkit-print-color-adjust:economy!important;print-color-adjust:economy!important}
}

/* Named pages take precedence over generic @page; keep both report paths consistent. */
@page{margin:0}
@page hmr-portrait{size:A4 portrait;margin:0}
@page hmr-landscape{size:A4 landscape;margin:0}

@media print{
  /* Long descriptions must wrap within printed table cells, not spill beyond the safe area. */
  .hmr-paper .hmr-table td:not(.nowrap):not(.money),
  .report-document .report-table td:not(.nowrap):not(.money){
    white-space:normal!important;overflow-wrap:anywhere!important;word-break:normal!important;
  }
}


/* v76 — completed multi-page print audit: never clip report sections or wrapped cells. */
@media print {
  /* The page body, its report sections and wrappers must always be fragmentable. */
  .report-document, .report-document .report-paper,
  .report-document .report-section, .report-document .report-table-wrap,
  .hmr-viewer, .hmr-stage, .hmr-paper,
  .hmr-paper .hmr-report-section, .hmr-paper .hmr-table-wrap {
    overflow:visible!important;
    max-height:none!important;
    height:auto!important;
    contain:none!important;
  }
  .report-document .report-section,
  .hmr-paper .hmr-report-section {break-inside:auto!important;page-break-inside:auto!important}
  .report-document .report-section-title,
  .hmr-paper .hmr-section-head {break-after:avoid-page!important;page-break-after:avoid!important}
  .report-document .report-table,
  .hmr-paper .hmr-table {
    table-layout:fixed!important;
    width:100%!important;
    max-width:100%!important;
    break-inside:auto!important;
    page-break-inside:auto!important;
  }
  .report-document .report-table td,
  .hmr-paper .hmr-table td {
    overflow-wrap:anywhere!important;
    word-break:normal!important;
    text-overflow:clip!important;
    max-width:100%!important;
  }
  .report-document .report-table td:not(.nowrap),
  .hmr-paper .hmr-table td:not(.nowrap) {white-space:normal!important}
  .report-document .report-table thead,
  .hmr-paper .hmr-table thead {display:table-header-group!important}
  .report-document .report-table tfoot,
  .hmr-paper .hmr-table tfoot {display:table-footer-group!important}
  .report-document .report-footer,
  .hmr-paper .hmr-report-footer {break-inside:avoid!important;page-break-inside:avoid!important}
}
