/* Shared SciChart layout for sensor charts and the live sensor chart page. */
.point-sensor-chart {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
}

.point-sensor-chart > [role="alert"] {
    grid-column: 1 / -1;
}

.scichart-host {
    min-width: 0;
}

/* Keeps the plot readable with many separate Y axes; the legend stays outside the scroll area.
   The renderer sets the host's min-width so the plot area itself reaches the configured minimum. */
.scichart-scroll {
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
}

.scichart-legend {
    max-width: 280px;
    max-height: 800px;
    overflow: auto;
    padding-top: 10px;
    font: 12px "Segoe UI", sans-serif;
}

/* Without data only the centered placeholder is shown; the host stays mounted for the next load. */
.scichart-empty > .scichart-scroll,
.scichart-empty > .scichart-legend {
    display: none;
}

.scichart-no-data {
    grid-column: 1 / -1;
    padding: 80px 0;
    pointer-events: none;
}
