/* Shared browser print / Save as PDF. Never includes application navigation. */
@page { size: A4; margin: 14mm 12mm 16mm; }
@page upv-landscape { size: A4 landscape; margin: 12mm; }
@media print {
  html, body { height: auto !important; min-height: 0 !important; background: #fff !important; color: #17222b !important; font: 10pt/1.45 Arial, sans-serif; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .main-header, .main-sidebar, .left-side, .control-sidebar, .control-sidebar-bg, .main-footer,
  .sidebar-toggle, .breadcrumb, .box-tools, .no-print, .upv-filter-form,
  .dataTables_length, .dataTables_filter, .dataTables_info, .dataTables_paginate,
  .dt-buttons, .paginator, .pagination, .actions, .upv-print-control,
  button, input[type="submit"], input[type="button"], input[type="reset"],
  a.btn, .debug-kit-toolbar, #debug-kit-toolbar { display: none !important; }
  .wrapper, .content-wrapper, .right-side, .content, .upv-report, .upv-overview {
    display: block !important; width: 100% !important; max-width: none !important;
    min-height: 0 !important; margin: 0 !important; padding: 0 !important;
    transform: none !important; background: #fff !important; box-shadow: none !important;
  }
  .upv-print-heading { display: block !important; border-bottom: 2pt solid #24415b; padding-bottom: 10pt; margin-bottom: 16pt; }
  .upv-print-heading strong { font-size: 17pt; color: #24415b; letter-spacing: 1pt; }
  .upv-print-heading span { display: block; font-size: 9pt; color: #5f6972; margin-top: 4pt; }
  .upv-print-heading small { display: block; font-size: 8pt; margin-top: 5pt; color: #68727b; }
  .content-header { padding: 0 0 10pt !important; }
  .content-header h1, .upv-report-heading h1 { font: bold 19pt/1.2 Arial,sans-serif; margin: 0 0 6pt; color: #243a4e; }
  .upv-report-heading { margin-bottom: 12pt; }
  .upv-report-heading p { font-size: 9pt; }
  .upv-report-eyebrow { display: none; }
  .print-only { display: block !important; }
  .box, .box-body, .table-responsive, .dataTables_wrapper, .dataTables_scroll, .dataTables_scrollBody {
    overflow: visible !important; height: auto !important; max-height: none !important;
    box-shadow: none !important; border: 0 !important; padding: 0 !important; background: #fff !important;
  }
  .box-header { padding: 8pt 0 !important; }
  .box-header:empty { display: none; }
  .box-title { font-size: 12pt; }
  table, .table { width: 100% !important; border-collapse: collapse !important; font-size: 9pt; color: #24323e; }
  thead { display: table-header-group; }
  tfoot { display: table-row-group; }
  tr { break-inside: avoid; page-break-inside: avoid; }
  th, td, .table > thead > tr > th, .table > tbody > tr > td, .table > tfoot > tr > td {
    padding: 7pt 6pt !important; border: .5pt solid #cfd8df !important;
    white-space: normal !important; overflow-wrap: anywhere; vertical-align: top;
  }
  th, .table > thead > tr > th { background: #e2e9f0 !important; color: #314557 !important; font-size: 8pt; }
  .table > tfoot > tr > td { background: #e9eff4 !important; font-weight: bold; }
  h1, h2, h3, .upv-print-heading { break-after: avoid; page-break-after: avoid; }
  a, a:visited { color: inherit !important; text-decoration: none; }
  a[href]::after { content: none !important; }
  input, select, textarea { border: 0 !important; box-shadow: none !important; background: #fff !important; color: #17222b !important; }
  .upv-report-kpis { display: flex; gap: 8pt; margin: 12pt 0 16pt; }
  .upv-report-kpis > article { flex: 1; padding: 10pt; border: .5pt solid #cfd9e2; background: #f3f6f9; break-inside: avoid; }
  .upv-report-kpis span { display: block; font-size: 8pt; color: #596c7d; margin-bottom: 5pt; }
  .upv-report-kpis strong { font-size: 14pt; color: #293d4e; }
  .upv-report-kpis small { font-size: 7pt; margin-left: 4pt; }
  .upv-number { text-align: right !important; white-space: nowrap !important; font-variant-numeric: tabular-nums; }
  .upv-report-landscape { page: upv-landscape; }
  .upv-report .box-header span { display: block; font-size: 8pt; margin: 5pt 0; }
}
@media screen { .upv-print-limit { display: none; } }
@media print {
  .upv-print-limit { display: block; font-size: 8pt; color: #255987; }
  .dataTables_scrollHead, .dataTables_scrollFoot { display: none !important; }
  .dataTables_scrollBody thead th { height: auto !important; }
}
@media print { body:has(.upv-report-landscape) { page: upv-landscape; } }
@media print {
  html, body { overflow: visible !important; }
  ::-webkit-scrollbar { display: none !important; }
}
@media print {
  .upv-print-heading { padding: 0 0 12pt; border-bottom: 2pt solid #5794c9; }
  .upv-print-heading .upv-print-logo { display: block; width: 120pt; height: 36pt; margin-bottom: 9pt; object-fit: contain; }
  .upv-print-heading > span { color: #213a4f; font-size: 15pt; font-weight: 600; }
  .upv-report-kpis > article { border-radius: 5pt; background: #e9f0f6; }
}
