.history-panel { margin-top: var(--jpml-section-gap); min-width: 0; }
.history-controls { display: flex; align-items: end; flex-wrap: wrap; gap: 1rem; margin-bottom: var(--jpml-section-gap); }
.history-controls label { display: flex; flex-direction: column; gap: .4rem; min-width: 10rem; max-width: 100%; flex: 1 1 11rem; color: var(--color-text-secondary); font-size: .85rem; }
.history-controls .history-report-control { flex-basis: 20rem; }
.history-controls .history-search { flex-basis: 16rem; }
.history-controls input, .history-controls select { width: 100%; min-width: 0; min-height: var(--jpml-control-height); padding: .65rem .75rem; border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: var(--color-bg-secondary); color: var(--color-text-primary); font: inherit; }
.history-controls button { min-height: var(--jpml-control-height); }
.history-controls [hidden] { display: none; }
.history-table-scroll { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; }
.history-table { width: 100%; min-width: 640px; }
.history-table th, .history-table td { min-width: 6rem; text-align: left; }
.history-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.history-table td { overflow-wrap: anywhere; }
.history-table a { color: var(--color-accent); }
.source-catalogue td:first-child { width: 52%; min-width: 280px; }
.source-catalogue details { margin-top: .5rem; color: var(--color-text-secondary); font-size: .8rem; }
.source-catalogue details p { margin: .5rem 0; }
.source-catalogue code { overflow-wrap: anywhere; }
.history-notes { color: var(--color-text-secondary); font-size: .85rem; }
.history-pagination { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1rem 0; }
.history-pagination button { min-height: 44px; }
.history-panel :focus-visible, #source-reports-grid :focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }
@media (max-width: 767px) {
  .history-controls { gap: .8rem; }
  .history-controls label { flex-basis: 100%; min-width: 0; }
  .history-controls .history-report-control, .history-controls .history-search { flex-basis: 100%; }
}
