#charts { display: flex; flex-direction: column; flex: 1; min-height: 0; > #legend { display: flex; align-items: center; gap: 1.5rem; margin: -1rem var(--negative-main-padding); padding: 1rem var(--main-padding); overflow-x: auto; min-width: 0; > div { flex: 0; display: flex; align-items: center; > label { margin: -0.375rem 0; color: var(--color); &:has(input:not(:checked)) { color: var(--off-color); > span.main > span.name { text-decoration-thickness: 1.5px; text-decoration-color: var(--color); text-decoration-line: line-through; } &:hover { * { color: var(--off-color) !important; } > span.main > span.name { text-decoration-color: var(--orange) !important; } } } } > a { padding: 0.375rem; margin: -0.375rem; > svg { /* padding: 0.375rem; */ margin: 0rem; width: 1rem; height: 1rem; } } } } > #chart-list { margin-top: 1rem; position: relative; margin-left: var(--negative-main-padding); margin-right: calc(var(--negative-main-padding) - 0.5rem); display: flex; flex-direction: column; flex: 1; min-height: 0; z-index: 20; > .chart-wrapper { height: 100%; position: relative; min-height: 0px; width: 100%; cursor: crosshair; &:has(+ .chart-wrapper:not([hidden])) { height: calc(100% - 62px); } > fieldset { pointer-events: none; position: absolute; left: 0px; top: 0px; z-index: 10; display: flex; align-items: center; padding-left: var(--main-padding); padding-right: var(--main-padding); font-size: var(--font-size-xs); line-height: var(--line-height-xs); gap: 0.5rem; color: var(--off-color); > div.field { display: flex; align-items: center; font-size: var(--font-size-xs); line-height: var(--line-height-xs); gap: 1rem; > legend, > div { flex-shrink: 0; } > hr { min-width: 1rem; } label { padding: 0.5rem; margin: -0.5rem; } > div { display: flex; gap: 0.5rem; } } } > .chart-div { width: 100%; height: 100%; } } } }