/* Functional archive layout; reuse the existing workspace colors and controls. */
.fh-dispatch-dialog.fh-report-library { width: min(1200px, calc(100vw - 32px)); }
.fh-report-library .fh-data-inline-actions { position: sticky; top: -20px; padding: 12px 0; z-index: 1; background: var(--fh-surface); }
.fh-report-library [data-filters] { position: static; flex-wrap: wrap; }
.fh-report-library .fh-report-table-wrap { overflow: auto; max-height: 55dvh; margin-top: 16px; }
.fh-report-library .fh-report-metadata { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px 16px; }
.fh-report-library .fh-report-meta { min-width: 0; }
.fh-report-library dt { font-weight: 600; color: var(--fh-secondary); }
.fh-report-library dd { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.fh-report-library pre { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 240px; overflow: auto; }
.fh-report-library caption { padding: 8px; text-align: left; }
.fh-report-library .fh-report-disclaimer { color: var(--fh-secondary); }

@media (min-width: 981px) {
  .fh-dispatch-dialog.fh-report-library,
  .fh-report-library .fh-report-snapshot {
    color: #263238;
    background: #fff;
  }
  .fh-dispatch-dialog.fh-report-library { border: 1px solid #16a6bf; }
  .fh-report-library .fh-data-inline-actions { top: 0; background: #fff; border-bottom: 1px solid #d8e0e3; }
  .fh-report-library .fh-report-summary { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .fh-report-library .fh-report-table-wrap { max-width: 100%; }
  .fh-report-library .fh-report-snapshot table { width: 100%; min-width: 1600px; table-layout: auto; border-collapse: collapse; background: #fff; color: #263238; }
  .fh-report-library .fh-report-snapshot thead { background: #edf1f3; color: #263238; }
  .fh-report-library .fh-report-snapshot th,
  .fh-report-library .fh-report-snapshot td { min-width: 96px; font-size: 12px; line-height: 1.5; color: #263238; border: 1px solid #d8e0e3; }
  .fh-report-library .fh-report-snapshot th { background: #edf1f3; font-weight: 600; }
  .fh-report-library .fh-report-snapshot th:first-child,
  .fh-report-library .fh-report-snapshot td:first-child { min-width: 200px; }
  .fh-report-library .fh-report-snapshot tbody { background: #fff; }
  .fh-report-library .fh-report-snapshot caption { color: #33434a; }
  .fh-report-library .fh-report-disclaimer { color: #46575e; }
  .fh-report-library .fh-report-technical { margin-top: 16px; }
}
