/* Live stocks tape: a dense table that fits the viewport width; the column tabs hide one group at a time. */
.stocks-scroll { width: 0; min-width: 100%; contain: inline-size; overflow-x: auto; }
/* Digits of one width and no wrapping, so a changed value never reshapes the column; the script pins the column widths on top of that. */
.stocks-table { width: 100%; --sv-scale: 1; --sv-pad: 4.5px; --sv-hpad: 8px; font-variant-numeric: tabular-nums; }
.stocks-table td, .stocks-table th { padding: var(--sv-pad) var(--sv-hpad) !important; font-size: calc(.78rem * var(--sv-scale)); line-height: 1.25; white-space: nowrap; }
.stocks-table th .sort-label { font-size: calc(.68rem * var(--sv-scale)); white-space: nowrap; }
/* Narrower content (a smaller window or the expanded sidebar): less side padding and two-line headers, so the tape still fits. */
@media (max-width: 1279.98px) {
    .stocks-table td, .stocks-table th { padding-left: calc(var(--sv-hpad) * .5) !important; padding-right: calc(var(--sv-hpad) * .5) !important; }
    .stocks-table th .sort-label { white-space: normal; }
}
@media (min-width: 1024px) and (max-width: 1479.98px) {
    body:not(.sidebar-collapse) .stocks-table td, body:not(.sidebar-collapse) .stocks-table th { padding-left: calc(var(--sv-hpad) * .5) !important; padding-right: calc(var(--sv-hpad) * .5) !important; }
    body:not(.sidebar-collapse) .stocks-table th .sort-label { white-space: normal; }
}
.stocks-table.tab-main [data-tab="vol"], .stocks-table.tab-vol [data-tab="main"] { display: none; }
.stocks-table tr.lv-pinned td { background: rgba(120, 140, 220, .07); }
.dark .stocks-table tr.lv-pinned td { background: rgba(120, 140, 220, .12); }
.stocks-table tr.lv-pinned-last td { border-bottom: 2px solid var(--tw-gray-300); }
.dark .stocks-table tr.lv-pinned-last td { border-bottom-color: var(--tw-gray-600); }
.stocks-table .lv-sym { font-weight: 600; letter-spacing: .01em; }
.stocks-table .lv-pin { display: inline-flex; align-items: center; justify-content: center; width: 1.25rem; height: 1.25rem; margin-left: .15rem; padding: 0; vertical-align: middle; border: 0; border-radius: .25rem; background: transparent; color: var(--tw-gray-500); cursor: pointer; }
.stocks-table .lv-pin[hidden] { display: none !important; }
.stocks-table .lv-pin:hover, .stocks-table .lv-pin[aria-pressed="true"] { color: var(--tw-primary); background: var(--tw-gray-100); }
.stocks-table .lv-pin[aria-pressed="true"] svg path:first-child { fill: currentColor; }
.stocks-table .lv-pin:focus-visible { outline: 2px solid var(--tw-primary); outline-offset: 2px; }
.stocks-table tr.lv-stock-pinned td { background: rgba(120, 140, 220, .035); }
.dark .stocks-table tr.lv-stock-pinned td { background: rgba(120, 140, 220, .06); }
.stocks-table tr.lv-stock-pinned-last td { border-bottom: 2px solid var(--tw-gray-300); }
.dark .stocks-table tr.lv-stock-pinned-last td { border-bottom-color: var(--tw-gray-600); }
.stocks-table .lv-kind { display: inline-block; margin-left: .3rem; padding: 0 .3rem; border-radius: .3rem; font-size: calc(.58rem * var(--sv-scale)); font-weight: 600; line-height: 1.3; vertical-align: 1px; color: var(--tw-gray-600); background: var(--tw-gray-200); }
.dark .stocks-table .lv-kind { background: var(--tw-gray-300); }
.stocks-table .lv-kind:empty { display: none; }
.stocks-table td.lv-pos { color: #1f9d55; }
.stocks-table td.lv-neg { color: #d63939; }
.stocks-table .lv-ratio { display: block; font-size: calc(.62rem * var(--sv-scale)); line-height: 1.1; color: var(--tw-gray-500); }
.stocks-table.tab-vol td, .stocks-table.tab-vol th { padding-left: calc(var(--sv-hpad) * .625) !important; padding-right: calc(var(--sv-hpad) * .625) !important; }
.stocks-table.tab-vol td { padding-top: calc(var(--sv-pad) * .64) !important; padding-bottom: calc(var(--sv-pad) * .64) !important; }
.stocks-table .lv-ratio.hi { color: #1f9d55; font-weight: 600; }
.stocks-table .lv-ratio.lo { color: #d63939; }
.stocks-table .lv-ratio:empty { display: none; }
/* filter panel: the filters on one line, then a toolbar - columns on the left, switches and buttons on the right */
.sv-panel { display: flex; flex-direction: column; gap: .75rem; }
.sv-panel-filters { display: grid; grid-template-columns: minmax(9rem, 1.3fr) minmax(8rem, .9fr) minmax(10rem, 1.2fr) minmax(8rem, .8fr) minmax(5.5rem, .55fr); gap: .6rem .75rem; align-items: end; }
.sv-field { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.sv-field .select, .sv-field .input { width: 100%; }
.sv-field .input input { min-width: 0; width: 100%; }
.sv-panel-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; padding-top: .75rem; border-top: 1px dashed var(--tw-gray-200); }
.sv-panel-view { display: flex; align-items: center; gap: .6rem; }
.sv-panel-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .5rem .75rem; margin-inline-start: auto; }
.sv-panel-switches { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.1rem; }
.sv-panel-switches .switch-label { white-space: nowrap; }
.sv-panel-sep { width: 1px; height: 1.4rem; background: var(--tw-gray-200); }
.sv-btn-label { margin-left: .25rem; }
.stocks-tabs { display: inline-flex; margin: 0; gap: 0; border: 1px solid var(--tw-gray-200); border-radius: .5rem; overflow: hidden; background: var(--tw-light, #fff); }
.stocks-tabs .tab { display: inline-flex; align-items: center; padding: .28rem .7rem; font-size: .78rem; font-weight: 500; cursor: pointer; background: none; border: 0; border-left: 1px solid var(--tw-gray-200); color: var(--tw-gray-700); }
.stocks-tabs .tab:first-child { border-left: 0; }
.stocks-tabs .tab:hover { color: var(--tw-primary); }
.stocks-tabs .tab.active { background: var(--tw-primary); color: #fff; }
.stocks-tabs .tab.active i { color: #fff; }
@media (max-width: 991.98px) { .sv-panel-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) and (max-width: 1191.98px) { body:not(.sidebar-collapse) .sv-panel-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639.98px) {
    .sv-panel-bar { flex-direction: column; align-items: stretch; }
    .sv-panel-view { justify-content: space-between; }
    .sv-panel-actions { display: grid; grid-template-columns: 1fr 1fr; margin-inline-start: 0; gap: .6rem; }
    .sv-panel-switches { grid-column: 1 / -1; justify-content: space-between; }
    .sv-panel-sep { display: none; }
    .sv-panel-actions .sv-settings-anchor, .sv-panel-actions .sv-settings-anchor .btn, .sv-panel-actions #sv-reset { width: 100%; justify-content: center; }
}

/* column set chosen in the settings popover */
.stocks-table.hide-rank [data-col="rank"],
.stocks-table.hide-b [data-col="b"],
.stocks-table.hide-a [data-col="a"],
.stocks-table.hide-l [data-col="l"],
.stocks-table.hide-m [data-col="m"],
.stocks-table.hide-d [data-col="d"],
.stocks-table.hide-c5 [data-col="c5"],
.stocks-table.hide-c15 [data-col="c15"],
.stocks-table.hide-c30 [data-col="c30"],
.stocks-table.hide-dv [data-col="dv"],
.stocks-table.hide-mc [data-col="mc"],
.stocks-table.hide-vol [data-col="vol"],
.stocks-table.hide-o [data-col="o"],
.stocks-table.hide-pc [data-col="pc"],
.stocks-table.hide-pre [data-col="pre"],
.stocks-table.hide-ap [data-col="ap"],
.stocks-table.hide-main [data-col="main"],
.stocks-table.hide-am [data-col="am"],
.stocks-table.hide-post [data-col="post"],
.stocks-table.hide-ao [data-col="ao"] { display: none; }
.stocks-table.no-lines td, .stocks-table.no-lines th { border-inline-end-color: transparent !important; }
.stocks-table.is-zebra tbody tr:nth-child(even):not(.lv-pinned):not(.lv-stock-pinned) td { background: var(--tw-gray-100); }

/* table settings popover */
.sv-settings-anchor { position: relative; display: inline-flex; }
#sv-settings-btn.is-open, #sv-settings-btn.is-changed { color: var(--tw-primary); }
.sv-settings { position: absolute; z-index: 60; top: calc(100% + .45rem); right: 0; width: 21rem; max-height: min(78vh, 40rem); overflow-y: auto;
  display: flex; flex-direction: column; gap: .6rem; padding: .8rem .9rem .7rem; text-align: start;
  background: var(--tw-light, #fff); border: 1px solid var(--tw-gray-200); border-radius: .75rem; box-shadow: 0 14px 34px rgba(15, 23, 42, .16); }
.sv-settings[hidden] { display: none !important; }   /* display: flex above would otherwise override the hidden attribute */
.sv-settings-head { display: flex; align-items: center; justify-content: space-between; font-size: .82rem; color: var(--tw-gray-900); }
.sv-settings-close { border: 0; background: none; font-size: 1.15rem; line-height: 1; color: var(--tw-gray-500); cursor: pointer; padding: 0 .1rem; }
.sv-slider { display: flex; flex-direction: column; gap: .2rem; font-size: .76rem; color: var(--tw-gray-700); }
.sv-slider-row { display: flex; justify-content: space-between; gap: .5rem; }
.sv-slider output { font-variant-numeric: tabular-nums; color: var(--tw-gray-900); font-weight: 500; }
.sv-slider input { width: 100%; accent-color: var(--tw-primary); }
.sv-toggles { display: flex; flex-direction: column; gap: .3rem; }
.sv-check { display: inline-flex; align-items: center; gap: .4rem; font-size: .76rem; color: var(--tw-gray-700); cursor: pointer; white-space: nowrap; }
.sv-check input { accent-color: var(--tw-primary); }
.sv-settings-cap { border-top: 1px solid var(--tw-gray-200); padding-top: .55rem; font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--tw-gray-500); }
.sv-cols-group { display: flex; flex-direction: column; gap: .3rem; }
.sv-cols-tab { font-size: .72rem; color: var(--tw-gray-600); }
.sv-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .3rem .5rem; }
.sv-cols .sv-check { overflow: hidden; text-overflow: ellipsis; }
.sv-settings-foot { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--tw-gray-200); padding-top: .55rem; }
.sv-settings-reset { border: 1px solid var(--tw-gray-200); background: none; border-radius: .45rem; padding: .25rem .6rem; font-size: .74rem; color: var(--tw-gray-700); cursor: pointer; }
.sv-settings-reset:hover { border-color: var(--tw-primary); color: var(--tw-primary); }
@media (max-width: 991.98px) { .sv-settings { right: auto; left: 0; width: min(21rem, calc(100vw - 2rem)); } }
[data-theme-mode="dark"] .sv-settings { background: var(--tw-coal-500, #1e1e2d); box-shadow: 0 14px 34px rgba(0, 0, 0, .5); }

/* turnover chips: value plus a muted note (session name, ×ratio) */
.stat-chip__sub { margin-left: .35rem; font-size: .66rem; font-weight: 400; color: var(--tw-gray-500); white-space: nowrap; }
.stat-chip--wide { min-width: 7.5rem; }

/* the ticker links to its page */
.stocks-table a.lv-sym { color: inherit; text-decoration: none; }
.stocks-table a.lv-sym:hover { color: var(--tw-primary); text-decoration: underline; }

/* largest moves: hidden until switched on; the table's filters apply */
.sv-movers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; margin-bottom: 1.25rem; }
.sv-movers[hidden] { display: none !important; }
.sv-movers-head { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem; margin-bottom: -.35rem; }
.sv-movers-title { font-size: .72rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--tw-gray-600); }
.sv-movers-note { font-size: .72rem; color: var(--tw-gray-500); }
.sv-seg { display: inline-flex; border: 1px solid var(--tw-gray-200); border-radius: .5rem; overflow: hidden; background: var(--tw-light, #fff); }
.sv-seg button { border: 0; border-left: 1px solid var(--tw-gray-200); background: none; padding: .25rem .65rem; font-size: .76rem; font-weight: 600; color: var(--tw-gray-700); cursor: pointer; }
.sv-seg button:first-child { border-left: 0; }
.sv-seg button:hover { color: var(--tw-primary); }
.sv-seg button.is-on { background: var(--tw-primary); color: #fff; }
.sv-movers-card .card-header { min-height: 0; }
.sv-window-name { color: var(--tw-gray-500); font-weight: 500; }
.sv-arrow { font-size: .75rem; margin-right: .2rem; }
.sv-movers-list { list-style: none; margin: 0; padding: 0; }
.sv-mover { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, .8fr) minmax(0, .8fr) minmax(0, .8fr) minmax(0, .8fr); align-items: center; gap: .4rem .6rem; padding: .45rem 1.1rem; border-top: 1px solid var(--tw-gray-200); font-size: .8rem; font-variant-numeric: tabular-nums; }
.sv-mover:first-child { border-top: 0; }
.sv-mover-name { min-width: 0; white-space: nowrap; }
.sv-mover-name a.lv-sym { font-weight: 600; color: var(--tw-gray-900); text-decoration: none; }
.sv-mover-name a.lv-sym:hover { color: var(--tw-primary); text-decoration: underline; }
.sv-mover .lv-kind { display: inline-block; margin-left: .3rem; padding: 0 .3rem; border-radius: .3rem; font-size: .58rem; font-weight: 600; line-height: 1.3; vertical-align: 1px; color: var(--tw-gray-600); background: var(--tw-gray-200); }
.sv-mover-price { text-align: right; font-weight: 600; color: var(--tw-gray-900); }
.sv-mover small { display: block; font-weight: 400; font-size: .66rem; color: var(--tw-gray-500); white-space: nowrap; }
.sv-mover-chg { text-align: right; font-weight: 700; font-size: .95rem; }
.sv-mover-abs { text-align: right; }
.sv-mover-vol, .sv-mover-cap { text-align: right; color: var(--tw-gray-700); }
.sv-mover .lv-pos { color: #1f9d55; }
.sv-mover .lv-neg { color: #d63939; }
.sv-movers .sv-arrow.lv-pos { color: #1f9d55; }
.sv-movers .sv-arrow.lv-neg { color: #d63939; }
.sv-mover-empty { padding: .9rem 1.1rem; font-size: .78rem; color: var(--tw-gray-500); }
@media (max-width: 1100px) { .sv-mover { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, .9fr) minmax(0, .8fr); } .sv-mover-vol, .sv-mover-cap { display: none; } }
@media (max-width: 900px) { .sv-movers { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) { .sv-mover { padding: .45rem .8rem; font-size: .75rem; } .sv-mover-chg { font-size: .85rem; } }

/* the hover card (stocks-peek.js): the icon left of a ticker, and the card with today's chart and the deep in-the-money strikes */
.lv-peek { display: inline-flex; align-items: center; justify-content: center; width: 1.35em; height: 1.35em; margin-right: .3rem; padding: 0; border: 0; border-radius: .3rem;
  background: none; color: var(--tw-gray-500); font-size: inherit; line-height: 1; vertical-align: -.2em; cursor: pointer; }
.lv-peek i { font-size: 1.05em; line-height: 1; }
.lv-peek:hover, .lv-peek.is-open { color: var(--tw-primary); background: var(--tw-primary-light); }
.lv-peek:focus-visible { outline: 2px solid var(--tw-primary); outline-offset: 1px; }
.sv-mover-name .lv-peek { font-size: .8rem; }
.sk-pop { position: fixed; z-index: 70; width: min(35rem, calc(100vw - 16px)); max-height: calc(100vh - 16px); overflow-y: auto; padding: .7rem .85rem .6rem; border-radius: .75rem; text-align: start;
  background: var(--tw-light, #fff); border: 1px solid var(--tw-gray-200); box-shadow: 0 14px 34px rgba(15, 23, 42, .16); font-variant-numeric: tabular-nums; }
.sk-pop[hidden] { display: none !important; }
[data-theme-mode="dark"] .sk-pop { border-color: var(--tw-gray-300); box-shadow: 0 14px 34px rgba(0, 0, 0, .55); }
.sk-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem .55rem; padding-right: 1.6rem; }
.sk-sym { font-size: .95rem; font-weight: 700; color: var(--tw-gray-900); text-decoration: none; }
.sk-sym:hover { color: var(--tw-primary); text-decoration: underline; }
.sk-last { font-size: .95rem; font-weight: 600; color: var(--tw-gray-900); }
.sk-chg { font-size: .78rem; font-weight: 600; color: var(--tw-gray-600); }
.sk-chg.lv-pos { color: #1f9d55; }
.sk-chg.lv-neg { color: #d63939; }
.sk-when { margin-left: auto; font-size: .72rem; color: var(--tw-gray-500); }
.sk-close { position: absolute; top: .45rem; right: .5rem; width: 1.6rem; height: 1.6rem; border: 0; border-radius: .4rem; background: none; font-size: 1.15rem; line-height: 1;
  color: var(--tw-gray-500); cursor: pointer; }
.sk-close:hover { color: var(--tw-gray-900); background: var(--tw-gray-100); }
.sk-legend { display: flex; flex-wrap: wrap; gap: .1rem .6rem; min-height: 1.1rem; margin-top: .2rem; font-size: .68rem; color: var(--tw-gray-600); }
.sk-legend b { font-weight: 600; color: var(--tw-gray-800); }
.sk-chart { position: relative; height: 180px; margin-top: .15rem; }
.sk-empty { position: absolute; inset: 0; z-index: 3; display: flex; align-items: center; justify-content: center; font-size: .78rem; color: var(--tw-gray-500); pointer-events: none; }
.sk-empty:empty { display: none; }
.sk-opts { margin-top: .45rem; padding-top: .5rem; border-top: 1px dashed var(--tw-gray-200); }
.sk-opts__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .15rem .75rem; font-size: .74rem; }
.sk-opts__title { font-weight: 600; color: var(--tw-gray-800); }
.sk-opts__exp { color: var(--tw-gray-600); }
.sk-table { width: 100%; margin-top: .3rem; border-collapse: collapse; font-size: .76rem; }
.sk-table th, .sk-table td { padding: .3rem .4rem; text-align: right; white-space: nowrap; border-top: 1px solid var(--tw-gray-200); color: var(--tw-gray-800); }
.sk-table th:first-child, .sk-table td:first-child { padding-left: 0; }
.sk-table th:last-child, .sk-table td:last-child { padding-right: 0; }
.sk-table thead th { border-top: 0; padding-top: 0; font-size: .66rem; font-weight: 500; color: var(--tw-gray-500); }
.sk-table tbody th { text-align: left; font-weight: 700; color: var(--tw-gray-900); }
.sk-table b { font-weight: 600; color: var(--tw-gray-900); }
.sk-table small { font-size: .66rem; color: var(--tw-gray-500); }
.sk-table td.sk-none { text-align: left; color: var(--tw-gray-500); }
.sk-table .sk-wide { text-decoration: underline dotted; text-underline-offset: 3px; }
.sk-note { margin-top: .35rem; font-size: .68rem; line-height: 1.4; color: var(--tw-gray-500); }
.sk-note b { font-weight: 600; color: var(--tw-gray-800); }
.sk-msg { padding: .5rem 0 .2rem; font-size: .76rem; color: var(--tw-gray-500); }
.sk-foot { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: .45rem; font-size: .7rem; color: var(--tw-gray-500); }
.sk-state::before { content: ""; display: inline-block; width: .45rem; height: .45rem; margin-right: .35rem; border-radius: 50%; background: var(--tw-gray-400); vertical-align: .05rem; }
.sk-state.is-live::before { background: #16a34a; box-shadow: 0 0 0 3px rgba(22, 163, 74, .2); }
.sk-state.is-failed { color: #d63939; }
.sk-state.is-failed::before { background: #d63939; }
.sk-table .sk-live { text-decoration: underline solid #16a34a; text-underline-offset: 3px; }
.sk-last.is-up { color: #1f9d55; }
.sk-last.is-down { color: #d63939; }
.sk-more { font-weight: 500; color: var(--tw-primary); text-decoration: none; white-space: nowrap; }
.sk-more:hover { text-decoration: underline; }
@media (max-width: 520px) {
  .sk-pop { padding: .6rem .65rem .5rem; }
  .sk-table { font-size: .7rem; }
  .sk-table th, .sk-table td { padding-left: .2rem; padding-right: .2rem; }
  .sk-table thead th { white-space: normal; line-height: 1.2; vertical-align: bottom; }
  .sk-table td small { display: block; }
}
