/*
 * Unified physical-page folios.
 * This stylesheet is intentionally isolated: it changes page-number labels only.
 */
.ugr-root .ugr-unified-folio-host {
  position: relative !important;
}

.ugr-root .ugr-unified-folio {
  position: absolute;
  right: auto;
  bottom: 0;
  left: 50%;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 18px;
  margin: 0;
  padding: 0;
  color: rgba(10, 47, 80, 0.72);
  background: transparent;
  border: 0;
  border-radius: 0;
  font-family: Inter, "Noto Sans SC", sans-serif;
  font-size: 11px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: none;
  transform: translate(-50%, 20px);
}

.ugr-root .ugr-unified-folio::before {
  content: none;
}

@media print {
  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    .ugr-unified-folio {
    right: auto !important;
    bottom: 5mm !important;
    left: 50% !important;
    min-height: 0 !important;
    padding: 0 !important;
    color: rgba(10, 47, 80, 0.72) !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    font-size: 8pt !important;
    font-weight: 650 !important;
    line-height: 1 !important;
    box-shadow: none !important;
    transform: translate(-50%, var(--ugr-folio-shift-y, 0mm)) !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    .ugr-unified-folio::before {
    content: none !important;
  }
}
