/* ============================================================================ * HFChart Options Lab — styles (s'appuie sur les tokens de style.css) * Author : Simon-Pierre Boucher — contact@spboucher.ai * ==========================================================================*/ #options-lab { display: flex; flex-direction: column; height: 100%; } #options-lab #topbar { align-items: center; } #options-lab .ctl { display: flex; align-items: center; gap: 6px; } #options-lab .ctl label { font-size: 11px; color: var(--muted); } #options-lab .ctl input { cursor: text; } .flex-spacer { flex: 1; } .spot-chip { font-variant-numeric: tabular-nums; font-weight: 600; background: var(--page); border: 1px solid var(--border); border-radius: 999px; padding: 3px 11px; } .spot-chip:empty { display: none; } #ol-layout { display: flex; flex: 1; min-height: 0; gap: 0; } /* ------------------------------------------------------------------ chaîne */ #ol-chain { flex: 1.25; min-width: 0; display: flex; flex-direction: column; background: var(--surface); border-right: 1px solid var(--border); } .expiry-tabs { display: flex; gap: 4px; overflow-x: auto; padding: 8px 10px 4px; scrollbar-width: thin; flex: none; } .expiry-tabs button { flex: none; font-size: 11.5px; padding: 3px 9px; border-radius: 999px; font-variant-numeric: tabular-nums; } .chain-filters { display: flex; align-items: center; gap: 16px; padding: 6px 12px; border-bottom: 1px solid var(--border); flex: none; font-size: 11.5px; color: var(--ink2); flex-wrap: wrap; } .chain-filters input[type="range"] { width: 110px; vertical-align: middle; } .chain-filters b { font-variant-numeric: tabular-nums; display: inline-block; min-width: 34px; } #chain-scroll { flex: 1; overflow: auto; min-height: 0; } #chain-table { border-collapse: collapse; width: 100%; font-size: 11.5px; font-variant-numeric: tabular-nums; } #chain-table th { position: sticky; top: 0; z-index: 2; background: var(--surface); color: var(--muted); font-weight: 600; padding: 5px 7px; border-bottom: 1px solid var(--border); text-align: right; white-space: nowrap; } #chain-table th.side-head { text-align: center; color: var(--ink2); border-bottom: none; } #chain-table td { padding: 3px 7px; text-align: right; border-bottom: 1px solid color-mix(in srgb, var(--border) 55%, transparent); white-space: nowrap; } #chain-table td.strike { text-align: center; font-weight: 700; background: var(--page); border-left: 1px solid var(--border); border-right: 1px solid var(--border); } #chain-table td.px { cursor: pointer; font-weight: 600; } #chain-table td.px:hover { outline: 2px solid var(--accent-ui); outline-offset: -2px; border-radius: 4px; } #chain-table tr.itm-c td.c-side { background: color-mix(in srgb, var(--up) 7%, transparent); } #chain-table tr.itm-p td.p-side { background: color-mix(in srgb, var(--dn) 7%, transparent); } #chain-table tr.spot-row td { border-top: 2px dashed var(--accent-ui); } #chain-table td.in-pos { position: relative; } #chain-table td.in-pos::before { content: "●"; position: absolute; left: 2px; font-size: 8px; color: var(--accent-ui); } .empty-state { padding: 40px 20px; text-align: center; color: var(--muted); } /* menu achat/vente sur clic d'un prix */ .trade-pop { position: fixed; z-index: 80; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 10px 32px rgba(0, 0, 0, 0.22); padding: 8px; display: flex; gap: 6px; align-items: center; font-size: 12px; } .trade-pop .buy { background: var(--up); color: #fff; border-color: var(--up); } .trade-pop .sell { background: var(--dn); color: #fff; border-color: var(--dn); } /* ------------------------------------------------------------------ labo */ #ol-lab { flex: 1; min-width: 380px; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 12px; background: var(--page); } .lab-block { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; } .lab-block h2 { margin: 0 0 8px; font-size: 14px; } .lab-head { display: flex; align-items: center; gap: 8px; } .lab-head h2 { flex: 1; margin: 0; } #legs-list { list-style: none; margin: 8px 0 0; padding: 0; } #legs-list li { display: flex; align-items: center; gap: 8px; padding: 6px 4px; border-bottom: 1px solid color-mix(in srgb, var(--border) 55%, transparent); font-size: 12.5px; font-variant-numeric: tabular-nums; } #legs-list .side { font-weight: 700; font-size: 10.5px; padding: 2px 7px; border-radius: 999px; color: #fff; } #legs-list .side.long { background: var(--up); } #legs-list .side.short { background: var(--dn); } #legs-list .desc { flex: 1; } #legs-list .desc small { color: var(--muted); } #legs-list .qty-ctl { display: flex; align-items: center; gap: 3px; } #legs-list .qty-ctl button { padding: 1px 7px; font-size: 13px; line-height: 1.3; } #legs-list .rm { color: var(--dn); border-color: transparent; background: none; font-size: 14px; } .metrics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; } .metric { background: var(--page); border: 1px solid var(--border); border-radius: 9px; padding: 7px 10px; } .metric .k { font-size: 10.5px; color: var(--muted); display: block; } .metric .v { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; } .metric .v.up { color: var(--up); } .metric .v.dn { color: var(--dn); } .greeks-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 10px; font-size: 12px; font-variant-numeric: tabular-nums; } .greeks-row span b { font-weight: 700; } .greeks-row .k { color: var(--muted); } .chart-box { position: relative; width: 100%; height: 260px; } .chart-box canvas { position: absolute; inset: 0; } #replay-slider { width: 100%; margin-top: 8px; cursor: pointer; } .replay-readout { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; font-variant-numeric: tabular-nums; margin-top: 6px; } .replay-readout .k { color: var(--muted); } .replay-readout b.up { color: var(--up); } .replay-readout b.dn { color: var(--dn); } #options-lab #footer { font-size: 11px; } /* ------------------------------------------------------------------ mobile */ @media (max-width: 900px) { #ol-layout { flex-direction: column; overflow-y: auto; } #ol-chain { border-right: none; border-bottom: 1px solid var(--border); max-height: 54vh; flex: none; } #ol-lab { min-width: 0; overflow: visible; } /* colonnes réduites : on masque OI/Vol/IV, on garde Δ + bid/ask/mid */ #chain-table .xtra { display: none; } #options-lab .ctl label { display: none; } }