/* Flat OL history presentation adapted from e2a839704e039aea95b68b1f770a5f656838df43.
   Scoped to the owned aside; current OL theme tokens with WagerTalk orange accents.
   Pixel equivalents preserve OL's default 16px-root sizing inside Lite's 14px
   page. The font family is inherited from the shared Inter font owner. */
#history.lhv {
  --lhv-accent: var(--accent, #f48120);
  --lhv-accent-ink: var(--accent-ink, #b65b11);
  --lhv-accent-soft: var(--accent-soft, #fff0e1);
  --lhv-ink: var(--ink, #1b2d45);
  --lhv-muted: var(--muted, #546684);
  --lhv-line: var(--line, #d2dced);
  --lhv-surface: var(--history-surface, #f8faff);
  --lhv-panel: var(--history-panel, #edf2f9);
  --lhv-row-alt: var(--history-stripe, #edf2f8);
  position: absolute; inset: 0 0 0 auto; width: min(620px, 100%);
  display: flex; flex-direction: column; min-width: 0; min-height: 0;
  background: var(--lhv-surface); color: var(--lhv-ink);
  border: 0; border-left: 1px solid var(--lhv-line); border-radius: 0;
  box-shadow: var(--shadow-sidebar); z-index: 10; overflow: hidden;
  padding: 10px 12px 14px; font-family: inherit; font-size: 16px; line-height: 1.3;
  font-variant-numeric: tabular-nums; letter-spacing: 0;
}
#history.lhv[hidden], #history.lhv [hidden] { display: none !important; }
#history.lhv[data-motion="opening"], #history.lhv[data-motion="closing"] { will-change: transform; }
#history.lhv *, #history.lhv *::before, #history.lhv *::after { box-sizing: border-box; letter-spacing: 0; }
#history.lhv button { font: inherit; color: inherit; cursor: pointer; background: transparent; border: 0; }
#history.lhv button:disabled { opacity: .45; cursor: not-allowed; }
#history.lhv button:focus-visible, #history.lhv [tabindex]:focus-visible { outline: 2px solid var(--lhv-accent); outline-offset: -2px; }
#history.lhv svg { width: 17px; height: 17px; flex-shrink: 0; }
#history.lhv .lhv-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 0 0 7.2px; margin-bottom: 8.8px; border-bottom: 1px solid var(--lhv-line); flex-shrink: 0; }
#history.lhv .lhv-title { min-width: 0; }
#history.lhv .lhv-book { display: block; color: var(--lhv-ink); font-size: 14.4px; line-height: 1.3; font-weight: 700; }
#history.lhv .lhv-event { font-size: 14.4px; line-height: 1.3; margin: 0; font-weight: 700; overflow-wrap: anywhere; }
#history.lhv .lhv-subtitle { color: inherit; font: inherit; }
#history.lhv .lhv-close { display: grid; place-items: center; width: 26.4px; height: 26.4px; flex: 0 0 26.4px; border: 1px solid var(--lhv-line); border-radius: 4.8px; background: var(--lhv-panel); }
#history.lhv .lhv-close:hover { background: var(--lhv-accent-soft); color: var(--lhv-accent-ink); }
#history.lhv .lhv-tabs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); flex: 0 0 auto; align-items: stretch; gap: 2.4px; padding: 0; border-bottom: 1px solid var(--lhv-line); min-width: 0; overflow-x: auto; scrollbar-width: thin; }
#history.lhv .lhv-tabs[aria-label="History market"] { grid-auto-columns: auto; grid-template-columns: .86fr .86fr .94fr 1.36fr .78fr; }
#history.lhv .lhv-tabs button { min-height: 28.16px; min-width: 0; padding: 8px 3.2px; color: var(--lhv-muted); font-size: 11.68px; font-weight: 650; line-height: 1; white-space: nowrap; border-bottom: 2px solid transparent; }
#history.lhv .lhv-tabs button[aria-pressed="true"] { border-bottom-color: var(--lhv-accent); color: var(--lhv-accent-ink); }
#history.lhv .lhv-tabs button:hover:not(:disabled), #history.lhv .lhv-filters button:hover { background: var(--lhv-panel); }
#history.lhv .lhv-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) max-content; align-items: center; gap: 8px; padding: 0 0 3.2px; margin: 6.4px 0; flex-shrink: 0; }
#history.lhv .lhv-filters { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); min-width: 0; }
#history.lhv .lhv-filters button, #history.lhv .lhv-modes button { display: inline-flex; align-items: center; justify-content: center; gap: 4.8px; min-height: 28.8px; min-width: 0; padding: 4.48px 7.68px; border-bottom: 2px solid transparent; color: var(--lhv-muted); font-weight: 650; font-size: 10.88px; line-height: 1; white-space: nowrap; }
#history.lhv .lhv-filters button[aria-pressed="true"] { border-bottom-color: var(--lhv-accent); color: var(--lhv-accent-ink); }
#history.lhv .lhv-modes { display: flex; flex-shrink: 0; border: 1px solid var(--lhv-line); border-radius: 4px; overflow: hidden; }
#history.lhv .lhv-modes button svg { width: 14.72px; height: 14.72px; stroke-width: 1.7; }
#history.lhv .lhv-modes button + button { border-left: 1px solid var(--lhv-line); }
#history.lhv .lhv-modes button[aria-pressed="true"] { background: var(--lhv-accent-soft); color: var(--lhv-accent-ink); }
#history.lhv .lhv-status { padding: 24px 16px; color: var(--lhv-muted); font-size: 13.6px; overflow-wrap: anywhere; }
#history.lhv .lhv-status[data-state="loading"]::before { content: ''; display: inline-block; width: 12px; height: 12px; margin-right: 9px; border: 2px solid var(--lhv-line); border-top-color: var(--lhv-accent); border-radius: 50%; animation: lhv-spin .8s linear infinite; vertical-align: -2px; }
#history.lhv .lhv-status[data-state="limit"] { padding: 6px 14px; font-size: 11px; border-bottom: 1px solid var(--lhv-line); }
/* OL #LH_results_container: graph in auto track, history in remaining height.
   Only the expanded table scrolls; neither the controls nor graph is sticky. */
#history.lhv .lhv-results { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); align-content: start; row-gap: 9.28px; min-width: 0; min-height: 0; overflow: hidden; position: relative; }
#history.lhv .lhv-results.lhv-table-only { grid-template-rows: minmax(0, 1fr); }
#history.lhv .lhv-chart-panel { position: relative; z-index: 2; min-width: 0; padding: 5.6px 0 0; }
#history.lhv .lhv-chart-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6.4px; padding-bottom: 8px; }
#history.lhv .lhv-chart-heading > strong { font-size: 12.48px; font-weight: 810; line-height: 1; text-transform: uppercase; }
#history.lhv .lhv-legend { display: flex; flex-wrap: wrap; gap: 6.4px 8px; min-width: 0; }
#history.lhv .lhv-series { display: inline-flex; align-items: center; gap: 4.48px; min-width: 0; min-height: 21.76px; max-width: 220px; padding: 2.4px 0; font-size: 11.52px; font-weight: 650; line-height: 1; overflow-wrap: anywhere; text-align: left; text-transform: uppercase; }
#history.lhv .lhv-series[aria-pressed="false"] { opacity: .4; }
#history.lhv .lhv-swatch { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: currentColor; }
#history.lhv .lhv-series-away, #history.lhv .lhv-plot-away { color: var(--series-away, #168447); }
#history.lhv .lhv-series-home, #history.lhv .lhv-plot-home { color: var(--series-home, #b65b11); }
#history.lhv .lhv-series-draw, #history.lhv .lhv-plot-draw { color: #a46908; }
#history.lhv .lhv-chart-canvas { position: relative; width: 100%; aspect-ratio: 590 / 176; }
#history.lhv .lhv-chart { display: block; width: 100%; height: 100%; overflow: visible; touch-action: pan-y; }
#history.lhv .lhv-grid-line { stroke: var(--lhv-line); stroke-width: 1; }
#history.lhv .lhv-axis-label { fill: var(--lhv-muted); font-size: var(--lhv-axis-size, 11px); }
#history.lhv .lhv-live-band { fill: #22c55e19; }
#history.lhv .lhv-path { fill: none; stroke: currentColor; stroke-width: 1.7; }
#history.lhv .lhv-point { fill: currentColor; stroke: var(--lhv-surface); stroke-width: .6; }
#history.lhv .lhv-point-active { r: 4; }
#history.lhv .lhv-hover-marker { stroke: var(--lhv-muted); stroke-width: 1; stroke-dasharray: 3 3; pointer-events: none; }
#history.lhv .lhv-tooltip { position: absolute; z-index: 2; top: 10px; left: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 3px; padding: 8px 10px; width: min(240px, calc(100% - 12px)); min-width: 0; background: var(--lhv-panel); border: 1px solid var(--lhv-line); border-radius: 4px; box-shadow: none; font-size: 11px; pointer-events: none; white-space: normal; word-break: normal; overflow-wrap: break-word; }
#history.lhv .lhv-tooltip strong { color: var(--lhv-muted); font-size: 10px; }
#history.lhv .lhv-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--lhv-line); padding: 6.4px 0; margin-top: 5px; }
#history.lhv .lhv-chart-tight .lhv-stats { display: none; }
#history.lhv .lhv-chart-tight .lhv-chart-heading { flex-wrap: nowrap; }
#history.lhv .lhv-chart-tight .lhv-chart-heading > strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
#history.lhv .lhv-chart-tight .lhv-legend { flex-wrap: nowrap; flex-shrink: 0; max-width: 72%; }
#history.lhv .lhv-chart-tight .lhv-series { flex: 1 1 0; overflow: hidden; }
#history.lhv .lhv-chart-tight .lhv-series-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
#history.lhv .lhv-stat { display: grid; gap: 2.88px; align-content: center; justify-items: center; min-height: 28.8px; padding: 1.6px 4px; overflow-wrap: anywhere; }
#history.lhv .lhv-stat + .lhv-stat { border-left: 1px solid var(--lhv-line); }
#history.lhv .lhv-stat > span { font-size: 10.88px; font-weight: 760; line-height: 1; text-transform: uppercase; color: var(--lhv-muted); }
#history.lhv .lhv-stat > b { font-size: 13.76px; font-weight: 680; line-height: 1; }
#history.lhv .lhv-stat:nth-child(n+2) > b { color: var(--lhv-accent-ink); }
#history.lhv .lhv-sections { display: grid; align-content: stretch; min-width: 0; min-height: 0; height: 100%; overflow: hidden; }
#history.lhv .lhv-sections.lhv-all-collapsed { align-content: start; overflow-y: auto; }
#history.lhv .lhv-section { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; min-width: 0; min-height: 0; overflow: hidden; }
#history.lhv .lhv-section-expanded { grid-template-rows: auto minmax(0, 1fr); }
#history.lhv .lhv-section-toggle { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; align-items: center; gap: 6.72px; width: 100%; min-height: 32px; padding: 5.6px 2.4px; text-align: left; font-weight: 700; border-block: 1px solid var(--lhv-line); background: transparent; }
#history.lhv .lhv-section-toggle > span { overflow-wrap: anywhere; }
#history.lhv .lhv-section-title { font-size: 12.48px; font-weight: 700; line-height: 1; text-transform: uppercase; }
#history.lhv .lhv-disclosure { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 17.92px; height: 17.92px; color: var(--lhv-muted); }
#history.lhv .lhv-disclosure::before, #history.lhv .lhv-disclosure::after { content: ''; position: absolute; width: 9.92px; height: 2px; border-radius: 1px; background: currentColor; transition: transform 150ms ease-out; }
#history.lhv .lhv-section-toggle[aria-expanded="false"] .lhv-disclosure::after { transform: rotate(90deg); }
#history.lhv .lhv-section-toggle:hover { background: var(--lhv-panel); }
#history.lhv .lhv-count { min-width: 28.48px; min-height: 19.52px; padding: 1.6px 6.72px; color: var(--lhv-muted); font-size: 10.56px; font-weight: 550; text-align: center; }
#history.lhv .lhv-table-wrap { height: 100%; min-height: 0; min-width: 0; overflow: auto; overscroll-behavior: contain; scrollbar-gutter: stable; scrollbar-width: thin; }
#history.lhv .lhv-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 12.16px; font-variant-numeric: tabular-nums; }
#history.lhv .lhv-table th, #history.lhv .lhv-table td { padding: 4.8px 4.48px; border: 0; border-bottom: 1px solid var(--lhv-line); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.1; }
#history.lhv .lhv-table td { font-weight: 430; }
#history.lhv .lhv-table th { position: sticky; top: 0; z-index: 1; background: var(--lhv-surface); color: var(--lhv-muted); font-size: 11.52px; font-weight: 650; line-height: 1; text-transform: uppercase; }
#history.lhv .lhv-col-date { width: 12%; }
#history.lhv .lhv-col-time, #history.lhv .lhv-col-public { width: 23%; }
#history.lhv .lhv-col-team { width: 20%; }
#history.lhv .lhv-table-team .lhv-col-date { width: 10%; }
#history.lhv .lhv-table-team .lhv-col-time { width: 20%; }
#history.lhv .lhv-table-team .lhv-col-public { width: 18%; }
#history.lhv .lhv-table th:nth-child(-n+2), #history.lhv .lhv-table td:nth-child(-n+2) { text-align: left; color: var(--lhv-muted); }
#history.lhv .lhv-table tr:nth-child(even) { background: var(--lhv-row-alt); }
#history.lhv .lhv-table tr.lhv-row-active, #history.lhv .lhv-data-row:hover { background: var(--history-hover, #e4edf9); }
#history.lhv .lhv-time, #history.lhv .lhv-date, #history.lhv .lhv-value { white-space: nowrap; }
#history.lhv .lhv-team { min-width: 90px; overflow-wrap: anywhere; }
#history.lhv .lhv-table .lhv-public { color: var(--lhv-muted); font-size: 11.84px; white-space: normal; line-height: 1.3; text-overflow: clip; }
#history.lhv .lhv-public-part { display: inline-block; white-space: nowrap; }
#history.lhv .lhv-move { display: inline-block; width: 0; height: 0; margin-right: 4px; border-left: 3px solid transparent; border-right: 3px solid transparent; vertical-align: 1px; }
#history.lhv .lhv-move-up { border-bottom: 5px solid var(--series-away, #168447); }
#history.lhv .lhv-move-down { border-top: 5px solid var(--danger, #c44141); }
#history.lhv .lhv-table .lhv-live-marker td { text-align: center; background: var(--live-surface, #e4f4e9); color: var(--live-ink, #16773b); font-weight: 700; text-transform: uppercase; font-size: 10px; }
#history.lhv .lhv-empty, #history.lhv .lhv-table .lhv-empty { padding: 28px 14px; text-align: center; color: var(--lhv-muted); }
@keyframes lhv-spin { to { transform: rotate(360deg); } }
@media (max-height: 600px) {
  #history.lhv { padding: 6px 10px 8px; }
  #history.lhv .lhv-header { padding-bottom: 4px; margin-bottom: 4px; }
  #history.lhv .lhv-tabs button { min-height: 24px; padding-block: 4px; }
  #history.lhv .lhv-toolbar { margin-block: 4px; padding-bottom: 0; }
  #history.lhv .lhv-filters button, #history.lhv .lhv-modes button { min-height: 24px; padding-block: 3px; }
  #history.lhv .lhv-chart-heading { padding-bottom: 4px; }
  #history.lhv .lhv-stats { padding-block: 3px; }
  #history.lhv .lhv-stat { display: flex; align-items: center; justify-content: center; min-height: 20px; gap: 5px; }
}
@media (max-height: 600px) and (max-width: 700px) {
  #history.lhv .lhv-stat { display: grid; gap: 1px; min-height: 0; padding: 1px 2px; line-height: 1; }
  #history.lhv .lhv-stat > span { font-size: 10px; white-space: nowrap; }
  #history.lhv .lhv-stat > b { font-size: 12px; white-space: nowrap; }
}
@media (max-width: 700px) {
  #history.lhv .lhv-tabs { display: flex; }
  #history.lhv .lhv-tabs button { flex: 0 0 auto; min-width: 54.4px; }
  #history.lhv .lhv-toolbar { grid-template-columns: minmax(0, 1fr); row-gap: 6.72px; }
  #history.lhv .lhv-modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #history.lhv .lhv-table { min-width: 448px; }
  #history.lhv .lhv-table-team { min-width: 520px; }
}
@media (max-height: 600px) and (min-width: 540px) and (max-width: 700px) {
  #history.lhv .lhv-toolbar { grid-template-columns: minmax(0, 1fr) max-content; }
}
@media (prefers-reduced-motion: reduce) {
  #history.lhv *, #history.lhv *::before { animation: none !important; transition: none !important; }
}
