/* V2 history: Archivo is inherited from the report; source colours and measures retain their roles. */
.mr-history-period { margin: 0 0 12px; color: #625d5d; font-size: 12px; line-height: 1.5; font-weight: 600; }
.mr-history-source-notice { margin: 0 0 16px; padding: 14px 16px; border-left: 3px solid #d9a441; background: #f8f5ed; color: #383434; font-size: 13px; line-height: 1.6; }
.mr-history-source-notice strong { display: block; font-size: 14px; }
.mr-history-source-notice p { margin: 5px 0 8px; }
.mr-history-source-notice a { color: #3b3f8c; text-underline-offset: 3px; }
.mr-history-controls { min-width: 0; margin: 10px 0 18px; padding: 12px 0 0; border: 0; border-top: 1px solid #d7d3d3; }
.mr-history-controls[hidden] { display: none; }
.mr-history-controls legend { padding: 0 12px 0 0; color: #3b3f8c; font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.mr-history-controls > p { margin: 0 0 10px; color: #625d5d; font-size: 12px; }
.mr-history-options { display: flex; flex-wrap: wrap; gap: 7px; }
.mr-history-options label { display: inline-flex; align-items: center; gap: 7px; min-height: 42px; padding: 7px 10px; border: 1px solid #d7d3d3; background: #fff; color: #383434; cursor: pointer; font-size: 12px; line-height: 1.35; }
.mr-history-options label:has(input:checked) { border-color: #8f93c2; background: #f4f4fa; }
.mr-history-options label:has(input:disabled) { color: #625d5d; background: #f3f2f2; cursor: default; }
.mr-history-options input { margin: 0; accent-color: #3b3f8c; flex: 0 0 auto; }
.mr-history-swatch { width: 14px; height: 3px; flex: 0 0 14px; }
.mr-history-controls button { min-height: 40px; padding: 6px 0; border: 0; background: transparent; color: #3b3f8c; font: inherit; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.mr-history-controls .mr-history-status { margin: 0; font-size: 11px; }
.mr-history-muted { visibility: hidden; }
.mr-history-values { margin: 16px 0 0; padding-top: 12px; border-top: 1px solid #d7d3d3; font-size: 12px; }
.mr-history-values > summary { width: fit-content; padding: 5px 0; color: #3b3f8c; font-weight: 600; cursor: pointer; }
.mr-history-values > p { color: #625d5d; font-size: 12px; line-height: 1.6; }
.mr-history-table-scroll { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; }
.mr-history-values table { width: 100%; border-collapse: collapse; font-size: 12px; font-variant-numeric: tabular-nums; }
.mr-history-values caption { text-align: left; font-weight: 600; margin-bottom: 9px; }
.mr-history-values th, .mr-history-values td { padding: 9px 12px; border-bottom: 1px solid #eae7e7; text-align: right; white-space: nowrap; }
.mr-history-values thead th { color: #3b3f8c; white-space: normal; min-width: 100px; background: #f3f2f2; }
.mr-history-values tr > :first-child { text-align: left; }
.mr-history-values tbody tr:nth-child(even) { background: #faf9f9; }
.mr-history-controls input:focus-visible, .mr-history-controls button:focus-visible, .mr-history-values summary:focus-visible, .mr-history-table-scroll:focus-visible { outline: 2px solid #3b3f8c; outline-offset: 4px; }
@media (max-width: 600px) {
    .mr-history-options { gap: 6px; }
    .mr-history-options label { flex: 1 1 140px; }
    .mr-history-source-notice { padding: 12px; }
}
@media print {
    .mr-history-controls { display: none !important; }
    .mr-history-muted { visibility: visible !important; }
    .mr-history-values { display: block !important; break-inside: auto !important; }
    .mr-history-values > :not(summary) { display: block !important; }
    .mr-history-table-scroll { overflow: visible; }
    .mr-history-values table { font-size: 8pt; table-layout: fixed; }
    .mr-history-values th, .mr-history-values td { min-width: 0; padding: 4px; white-space: normal; overflow-wrap: anywhere; }
    .mr-history-values thead { display: table-header-group; }
    .mr-history-values tr { break-inside: avoid; }
    .mr-history-source-notice { break-inside: avoid; }
}
