.history-page{color:#111827;background:#f3f6fa;min-height:100vh}.history-main{max-width:1200px;margin:auto;padding:28px 24px 32px}.history-main ::selection{color:#0f2a43;background:#c6d7fc}.history-main :focus-visible{outline-offset:4px;outline:3px solid #1d4ed8}.history-hero{color:#fff;background:#0f2a43;border-radius:18px;justify-content:space-between;align-items:center;gap:24px;padding:32px;display:flex}.history-hero h1{letter-spacing:-.025em;font-size:clamp(2rem,4vw,3rem);font-weight:850;line-height:1.1}.history-hero p{color:#d8e3ee;margin-top:12px;font-size:18px;line-height:1.6}.history-hero .history-hero-note{margin:0;font-size:14px}.history-explorer{margin-top:28px}.history-filter-title{color:#0f2a43;font-size:18px;font-weight:750}.history-categories{flex-wrap:wrap;gap:8px;margin:14px 0 22px;display:flex}.history-categories a{color:#475569;background:#fff;border:1px solid #dce3ec;border-radius:9px;align-items:center;min-height:44px;padding:10px 17px;font-size:14px;font-weight:650;display:inline-flex}.history-categories a[aria-current],.history-periods a[aria-current]{color:#fff;background:#1d4ed8;border-color:#1d4ed8}.history-layout{grid-template-columns:minmax(0,1fr) 292px;align-items:start;gap:22px;display:grid}.history-panel{background:#fff;border:1px solid #e5e7eb;border-radius:16px;min-width:0;padding:24px}.history-controls{flex-wrap:wrap;justify-content:space-between;align-items:end;gap:16px;display:flex}.history-indicator-control{gap:7px;max-width:100%;display:grid}.history-indicator-control>span{color:#475569;font-size:12px}.history-indicators{border:1px solid #e5e7eb;border-radius:9px;flex-wrap:wrap;gap:4px;padding:3px;display:flex}.history-indicators button{color:#475569;cursor:pointer;background:#fff;border-radius:6px;justify-content:center;align-items:center;min-width:44px;min-height:44px;padding:8px 12px;font-size:13px;font-weight:650;display:inline-flex}.history-indicators button[aria-pressed=true]{color:#fff;background:#1d4ed8}.history-indicators button:hover:not([aria-pressed=true]){color:#1d4ed8;background:#eef4ff}.history-indicators button:disabled{opacity:.6;cursor:wait}@media (max-width:760px){.history-controls .history-indicators[data-category=divisas]{grid-template-columns:repeat(4,minmax(0,1fr))}.history-controls .history-indicators[data-category=agro],.history-controls .history-indicators[data-category=metales]{grid-template-columns:repeat(3,minmax(0,1fr))}}.history-periods{border:1px solid #e5e7eb;border-radius:9px;gap:3px;padding:3px;display:flex}.history-periods a{color:#475569;border-radius:6px;justify-content:center;align-items:center;min-height:38px;padding:6px 12px;font-size:13px;font-weight:650;display:inline-flex}.history-product-name{color:#475569;margin-top:24px;font-size:17px;font-weight:650}.history-price{flex-wrap:wrap;align-items:baseline;gap:6px 12px;margin-top:4px;display:flex}.history-price strong{color:#0f2a43;letter-spacing:-.025em;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;font-size:clamp(1.8rem,3.1vw,2.5rem);font-weight:850;line-height:1.3}.history-price span{color:#64748b;font-size:14px}.history-change{margin-top:10px;font-size:13px;font-weight:700;line-height:1.6}.history-change.is-positive{color:#15803d}.history-change.is-negative{color:#b42318}.history-range{color:#64748b;margin-top:7px;font-size:12px;line-height:1.7}.history-axis-label{color:#64748b;margin-top:26px;font-size:11px;line-height:1.6}.history-chart{gap:10px;height:250px;margin-top:16px;display:flex}.history-y-axis{color:#64748b;font-variant-numeric:tabular-nums;flex-direction:column;flex-shrink:0;justify-content:space-between;width:55px;padding:0;font-size:11px;display:flex}.history-plot{touch-action:pan-y;cursor:crosshair;flex:1;min-width:0}.history-plot svg{width:100%;height:100%;overflow:visible}.history-x-axis{font-variant-numeric:tabular-nums;color:#64748b;justify-content:space-between;gap:8px;margin:8px 0 0 65px;font-size:11px;display:flex}.history-inspector{background:#eef4ff;border-radius:10px;justify-content:space-between;align-items:center;gap:12px;margin-top:22px;padding:14px;display:flex}.history-inspector>div:first-child{gap:5px;min-width:0;display:grid}.history-inspector span{color:#475569;font-size:11px;line-height:1.6}.history-inspector strong{color:#0f2a43;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;font-size:20px}.history-inspector small{font-size:12px;font-weight:450}.history-step-buttons{flex-shrink:0;gap:5px;display:flex}.history-step-buttons button{color:#1d4ed8;cursor:pointer;background:#fff;border:1px solid #cbd5e1;border-radius:7px;place-items:center;width:36px;height:44px;display:grid}.history-step-buttons button:disabled{opacity:.35;cursor:default}.history-slider-label{color:#475569;justify-content:space-between;margin-top:16px;font-size:12px;display:flex}.history-slider{accent-color:#1d4ed8;cursor:pointer;width:100%;min-height:38px;display:block}.history-caption{color:#64748b;font-size:11px;line-height:1.8}.history-table-toggle{color:#1d4ed8;cursor:pointer;text-underline-offset:4px;min-height:44px;margin-top:18px;font-size:13px;font-weight:700;text-decoration:underline}.history-table-scroll{scrollbar-color:#94a3b8 #f3f6fa;max-height:380px;margin-top:10px;overflow:auto}.history-table-scroll table{border-collapse:collapse;font-variant-numeric:tabular-nums;width:100%;font-size:12px}.history-table-scroll caption{text-align:left;color:#475569;padding:10px 0}.history-table-scroll th{text-align:left;color:#0f2a43;background:#f3f6fa;position:sticky;top:0}.history-table-scroll td,.history-table-scroll th{white-space:nowrap;border-bottom:1px solid #e5e7eb;padding:12px 9px}.history-statistics{border-top:1px solid #e5e7eb;grid-template-columns:1fr 1fr;gap:16px;margin-top:18px;padding-top:18px;display:grid}.history-statistics dt{color:#64748b;font-size:12px}.history-statistics dd{color:#0f2a43;font-variant-numeric:tabular-nums;margin-top:7px;font-size:17px;font-weight:750}.history-context{gap:18px;display:grid}.history-context h2{color:#0f2a43;font-size:17px;font-weight:750;line-height:1.5}.history-source{gap:18px;margin-top:22px;display:grid}.history-source dt{color:#64748b;font-size:12px}.history-source dd{color:#0f2a43;margin-top:4px;font-size:14px;font-weight:650}.history-source small{color:#64748b;margin-top:4px;font-size:11px;font-weight:450;display:block}.history-context p{color:#475569;margin-top:14px;font-size:13px;line-height:1.8}.history-disclaimer{border-top:1px solid #e5e7eb;padding-top:16px}.history-coverage{background:#eaf0f8;border-radius:16px;padding:24px}.history-coverage a{color:#1d4ed8;align-items:center;gap:8px;min-height:44px;margin-top:14px;font-size:13px;font-weight:700;display:inline-flex}.history-cta{background:#fff;border:1px solid #e5e7eb;border-radius:16px;justify-content:space-between;align-items:center;gap:24px;margin-top:28px;padding:26px;display:flex}.history-cta h2{color:#0f2a43;font-size:21px;font-weight:750;line-height:1.5}.history-cta p{color:#64748b;margin-top:8px;font-size:14px}.history-button{color:#fff;text-align:center;cursor:pointer;background:#1d4ed8;border-radius:8px;justify-content:center;align-items:center;min-height:44px;padding:12px 18px;font-size:14px;font-weight:750;display:inline-flex}.history-button:hover{background:#1e40af}.history-categories a:hover:not([aria-current]),.history-periods a:hover:not([aria-current]){color:#1d4ed8;background:#eef4ff}.history-pending{color:#1d4ed8;margin-top:12px;font-size:13px}.history-empty{min-height:300px;padding:50px 0}.history-empty h3{color:#0f2a43;font-size:22px;font-weight:750}.history-empty p{color:#64748b;margin:14px 0 24px;line-height:1.8}@media (max-width:1000px){.history-layout{grid-template-columns:minmax(0,1fr) 258px;gap:16px}.history-panel,.history-coverage{padding:20px}.history-hero-note{display:none}}@media (max-width:760px){.history-main{padding:18px 16px 32px}.history-hero{padding:26px 22px}.history-hero p{font-size:17px}.history-layout{grid-template-columns:minmax(0,1fr)}.history-panel,.history-coverage{padding:20px}.history-explorer{margin-top:24px}.history-categories{gap:7px}.history-categories a{padding:9px 12px;font-size:12px}.history-controls{gap:18px}.history-indicator-control{width:100%}.history-indicators{grid-template-columns:repeat(2,minmax(0,1fr));display:grid}.history-indicators button{min-height:44px;padding:8px 10px}.history-indicators button:only-child{grid-column:1/-1}.history-periods{width:100%}.history-periods a{flex:1;min-height:40px}.history-price strong{font-size:30px}.history-chart{height:205px}.history-y-axis{width:45px;font-size:10px}.history-x-axis{margin-left:55px;font-size:10px}.history-inspector{align-items:start;gap:6px;padding:12px}.history-inspector strong{font-size:18px}.history-step-buttons{flex-direction:column}.history-statistics dd{font-size:15px}.history-cta{flex-direction:column;align-items:stretch;gap:20px;padding:22px}.history-cta h2{font-size:20px}}
