/* Printed reports keep a reserved footer area on every A4 page. */
@page atlas-report {
  size: A4;
  margin: 14mm 14mm 20mm;

  @bottom-left {
    content: "K-ARC ATLAS";
    border-top: .6pt solid #d7dfeb;
    padding-top: 3mm;
    vertical-align: top;
    color: #284f78;
    font: 700 8pt Arial, sans-serif;
  }
  @bottom-center {
    content: "\00a9  HANCOM CARELINK, Inc. All Rights Reserved.";
    border-top: .6pt solid #d7dfeb;
    padding-top: 3mm;
    vertical-align: top;
    color: #637188;
    font: 6.5pt Arial, sans-serif;
  }
  @bottom-right {
    content: counter(page) " / " counter(pages);
    border-top: .6pt solid #d7dfeb;
    padding-top: 3mm;
    vertical-align: top;
    color: #284f78;
    font: 700 8pt Arial, sans-serif;
  }
}

.rp-fig figcaption { margin: 0 0 8px; color: #284f78; font-weight: 600; line-height: 1.5; }
.report-doc .rp-section__title { margin: 0 0 12px; font-size: 15px; line-height: 1.4; }
.rp-table { font-variant-numeric: tabular-nums; }
.rp-table th { background: #f7f9fc; }
.rp-footer { align-items: center; column-gap: 16px; padding-top: 14px; }
.rp-footer > span:last-of-type { max-width: 55%; overflow-wrap: anywhere; text-align: right; }

@media print {
  .rp { page: atlas-report; orphans: 3; widows: 3; }
  .rp-cover { break-inside: avoid; }
  .rp-section__title { margin-bottom: 12px; break-after: avoid; }
  .rp-section__title + .rp-lead { break-after: avoid; }
  .rp-fig { break-inside: avoid; }
  .rp-fig__img { padding: 8px; }
  .rp-table thead { display: table-header-group; }
  .rp-table th { padding: 7px 8px; }
  .rp-table td { padding: 6px 8px; line-height: 1.5; }
  .rp-table tr { break-inside: avoid; }
  .rp-kpi small { line-height: 1.6; }
  .rp-caveats { line-height: 1.65; }
  .rp-caveats li { margin-bottom: 4px; }
  /* The running page footer replaces the end-of-document footer in print. */
  .rp-footer { display: none; }
}
