/* Shared Report Hub layout. Keep the source copy in /src/site/assets in sync. */
.report-overflow-shell { display: contents; }

.report-layout-controls { display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.report-layout-controls.is-standalone { position: fixed; top: 16px; left: 16px; z-index: 2147482999; }

.report-view-switcher-inner {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  min-height: 52px !important;
  padding: 7px 0 !important;
}
.report-view-switcher-inner > .report-view-label { font-size: 10px !important; }
.report-view-switcher-inner > .report-view-buttons,
.report-hub-floating-menu > .report-view-buttons {
  display: inline-flex !important;
  gap: 0 !important;
  width: 180px !important;
  min-height: 38px !important;
  padding: 3px !important;
  overflow: hidden !important;
  border: 1px solid rgba(60, 60, 67, .16) !important;
  border-radius: 999px !important;
  background: rgba(118, 118, 128, .12) !important;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, .03) !important;
}
.report-view-switcher-inner > .report-view-buttons .report-view-button,
.report-hub-floating-menu > .report-view-buttons .report-view-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  flex: 1 1 50% !important;
  width: 50% !important;
  min-height: 32px !important;
  margin: 0 !important;
  padding: 4px 10px !important;
  border: 0 !important;
  border-radius: 999px !important;
  color: #555b63 !important;
  background: transparent !important;
  font-size: 12px !important;
  box-shadow: none !important;
}
.report-view-switcher-inner > .report-view-buttons .report-view-button.is-active,
.report-view-switcher-inner > .report-view-buttons .report-view-button[aria-pressed="true"],
.report-hub-floating-menu > .report-view-buttons .report-view-button.is-active,
.report-hub-floating-menu > .report-view-buttons .report-view-button[aria-pressed="true"] {
  color: #fff !important;
  background: #3182f6 !important;
  box-shadow: 0 2px 7px rgba(49, 130, 246, .28) !important;
}
.report-view-icon { font-size: 16px; line-height: 1; }
.report-view-switcher-inner > .report-utility-controls { width: 140px; margin-left: 0 !important; flex-shrink: 0; }

.report-sharing-tools {
  display: grid !important;
  grid-template-columns: 40px 40px minmax(86px,auto);
  align-items: stretch !important;
  gap: 6px !important;
  width: max-content;
  max-width: 100%;
  font-family: var(--rh-sans, var(--sans, sans-serif));
}
.report-view-switcher-inner > .report-utility-controls.report-sharing-tools { width: 178px !important; }
.report-sharing-tools > #report-pdf-button,
.report-sharing-tools > .report-share-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 40px !important;
  height: 40px !important;
  min-width: 0 !important;
  min-height: 40px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid rgba(49, 130, 246, .2) !important;
  border-radius: 12px !important;
  color: #1b64da !important;
  background: #fff !important;
  box-shadow: none !important;
  cursor: pointer !important;
}
.report-sharing-tools > .report-share-button { color: #4e5968 !important; }
.report-action-icon { width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; }
.report-action-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.report-action-status { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.report-sharing-tools > [data-report-action-state="check"] { color: var(--rh-success, #08783e) !important; border-color: rgba(8,120,62,.22) !important; background: #f4fbf7 !important; }
.report-sharing-tools > [data-report-action-state="error"] { color: var(--rh-danger, #b42318) !important; border-color: rgba(180,35,24,.22) !important; background: var(--rh-danger-soft, #fff7f6) !important; }
.report-sharing-tools > #report-pdf-button:hover,
.report-sharing-tools > .report-share-button:hover { border-color: rgba(49, 130, 246, .44) !important; background: #f8fbff !important; transform: none !important; }
.report-sharing-tools > #report-pdf-button:focus-visible,
.report-sharing-tools > .report-share-button:focus-visible { outline: 3px solid rgba(49, 130, 246, .22) !important; outline-offset: 2px !important; }
.report-view-count-panel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 86px;
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid rgba(49, 130, 246, .12);
  border-radius: 10px;
  color: #1b64da;
  background: #e8f3ff;
  font: 800 11px/1.2 var(--rh-sans, var(--sans, sans-serif));
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.report-view-count-panel strong { font: inherit; }
.report-layout-controls.has-report-actions { flex-wrap: wrap; gap: 8px; }
.report-layout-controls.has-report-actions .report-sharing-tools { width: 178px; }

.report-history-shared { width: min(1120px, calc(100% - 40px)); margin: 48px auto 0; padding: 0 0 44px; }
.report-history-shared-card { padding: 22px; border: 1px solid #e5e8eb; border-radius: 18px; color: #191f28; background: #fff; box-shadow: 0 8px 24px rgba(15, 23, 42, .05); }
.report-history-shared-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 15px; }
.report-history-shared-head span { color: #3182f6; font-size: 10px; font-weight: 900; letter-spacing: .1em; }
.report-history-shared-head h2 { margin: 4px 0 2px; font-size: 24px; letter-spacing: -.04em; }
.report-history-shared-head p { margin: 0; color: #6b7684; font-size: 12px; }
.report-history-shared-head > strong { color: #1b64da; font-size: 13px; white-space: nowrap; }
.report-content-review-shared { margin: 0 0 15px; padding: 16px; border: 1px solid #dbe8f8; border-radius: 12px; background: #f8fbff; }
.report-content-review-shared-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.report-content-review-shared-head span { color: #6b7684; font-size: 9px; font-weight: 900; letter-spacing: .08em; }
.report-content-review-shared-head strong { display: inline-flex; padding: 4px 8px; border-radius: 999px; color: #1b64da; background: #e8f3ff; font-size: 10px; }
.report-content-review-shared h3 { margin: 8px 0 4px; font-size: 16px; letter-spacing: -.02em; }
.report-content-review-shared > p { margin: 0; color: #4e5968; font-size: 12px; }
.report-content-review-shared-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.report-content-review-shared-grid > div { padding: 11px 12px; border-radius: 10px; background: #fff; }
.report-content-review-shared-grid b { display: block; margin-bottom: 5px; color: #333d4b; font-size: 11px; }
.report-content-review-shared-grid ul { margin: 0; padding-left: 17px; color: #6b7684; font-size: 11px; }
.report-content-review-shared-grid li + li { margin-top: 3px; }
.report-history-shared-table-wrap { overflow-x: auto; border: 1px solid #edf0f2; border-radius: 12px; }
.report-history-shared-table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 12px; }
.report-history-shared-table th,
.report-history-shared-table td { padding: 12px 13px; border-bottom: 1px solid #edf0f2; text-align: left; vertical-align: top; }
.report-history-shared-table tr:last-child td { border-bottom: 0; }
.report-history-shared-table th { color: #6b7684; background: #f7f8fa; font-size: 10px; white-space: nowrap; }
.report-history-shared-table td:first-child { color: #1b64da; font-weight: 900; white-space: nowrap; }
.report-history-shared-status { display: inline-flex; padding: 4px 7px; border-radius: 999px; color: #1b64da; background: #eaf3ff; font-size: 10px; font-weight: 800; white-space: nowrap; }
.report-history-shared-status.is-previous { color: #6b7684; background: #f2f4f6; }
.report-history-previous-link { color: #1b64da; font-weight: 900; white-space: nowrap; }

@media (max-width: 1439px) {
  .floating-menu { right: 10px !important; bottom: 14px !important; left: 10px !important; top: auto !important; width: auto !important; max-width: none !important; }
}

@media (max-width: 700px) {
  html, body { max-width: 100%; overflow-x: clip; }
  body { margin-right: 0 !important; margin-left: 0 !important; }
  body :where(main, section, article, aside, header, footer, div, figure) { min-width: 0; }
  body :where(main, .wrap, .container, .report-section, .page, .slide-shell) { max-width: 100% !important; }
  body :where(h1, h2, h3, h4, p, li, a, span, strong, em) { overflow-wrap: anywhere; }
  body :where(img, video, canvas, svg) { max-width: 100% !important; height: auto !important; }
  body iframe { max-width: 100% !important; }
  body :where(.table-wrap, [class*="table-wrap"], [class*="table-scroll"]) {
    width: 100%;
    max-width: 100% !important;
    overflow-x: auto !important;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
  }
  .report-overflow-shell {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
  }
  .report-overflow-shell:focus-visible {
    outline: 3px solid var(--rh-ring, rgba(49, 130, 246, .22));
    outline-offset: 2px;
  }
  .report-view-switcher { margin-top: 96px !important; top: 154px !important; }
  .report-layout-controls.is-standalone { top: 8px; left: 8px; }
  .report-view-switcher-inner { gap: 6px !important; }
  .report-view-switcher-inner > .report-view-label { display: none; }
  .report-view-switcher-inner > .report-view-buttons,
  .report-hub-floating-menu > .report-view-buttons { width: 148px !important; }
  .report-view-switcher-inner > .report-utility-controls { width: 120px; }
  .report-sharing-tools,
  .report-view-switcher-inner > .report-utility-controls.report-sharing-tools,
  .report-layout-controls.has-report-actions .report-sharing-tools {
    grid-template-columns: 40px 40px minmax(78px, auto) !important;
    width: min(100%, 170px) !important;
  }
  .report-history-shared { width: min(100% - 24px, 1120px); margin-top: 28px; padding-bottom: 28px; }
  .report-history-shared-card { padding: 16px; border-radius: 14px; }
  .report-history-shared-head { align-items: flex-start; }
  .report-history-shared-head p { display: none; }
  .report-content-review-shared-grid { grid-template-columns: 1fr; }
}

@media print {
  @page { size: A4 landscape; margin: 15mm; }
  .report-hub-floating-menu,
  .report-layout-controls,
  .nav,
  .floating-menu,
  .report-view-switcher,
  .report-share-button,
  .report-view-count-panel,
  .report-comments,
  #report-pdf-button { display: none !important; }
  body { background: #fff !important; color: #000 !important; font-size: 11pt !important; }
  .wrap, main { width: 100% !important; max-width: 100% !important; }
  h1 { font-size: 20pt !important; }
  h2 { font-size: 16pt !important; }
  h3 { font-size: 13pt !important; }
  p, li { font-size: 10pt !important; line-height: 1.5 !important; }
  table { font-size: 8pt !important; }
  .report-section, .paper, .callout, figure { break-inside: avoid; }
  img { max-width: 100% !important; }
  .report-history-shared-card { box-shadow: none; }
}
