/* Heat Trends shared styles: tables, sort headers, generic details */
.layer-swatch,
.plot-legend-largebar {
    border: 1px solid #000;
    border-radius: 0;
    background-clip: padding-box;
    display: inline-block;
}
.plot-legend-largebar {
    width: 100%;
    height: 14px;
}
.plot-legend-ticks {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    font-size: 12px;
    color: rgba(0, 0, 0, 0.65);
}
.plot-th-help {
    color: #000 !important;
    font-size: 0.85em;
    margin-left: 0.2rem;
    cursor: help;
}
.plot-form-help {
    color: #6c757d;
    font-size: 0.9em;
    margin-left: 0.1rem;
    cursor: help;
    vertical-align: text-bottom;
}
.plot-heat-table thead .plot-head-groups .plot-group .plot-th-help {
    color: #000 !important;
}

/* Selection controls */

.plot-sel-section.is-collapsed .plot-sel-collapse-body {
    display: none;
}
.plot-sel-collapse-btn {
    line-height: 1;
}
.plot-sel-caret {
    font-size: 0.9rem;
}
.plot-sel-collapse-title {
    cursor: pointer;
}
.plot-table-control-wrap {
    display: inline-flex;
    align-items: center;
    column-gap: 0.75rem;
    row-gap: 0.5rem;
    flex-wrap: wrap;
    max-width: 100%;
    padding: 0.45rem 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.18);
    border-radius: 0.5rem;
    background: #f8f9fa;
}
.plot-table-control-label {
    font-weight: 400;
}

/* Delta badges */

.plot-heat-change-cell {
    text-align: center;
    white-space: nowrap;
}
.plot-heat-change-cell .plot-delta {
    margin-left: 0;
}
.plot-zoom-btn,
.chip-zoom-btn {
    line-height: 1;
    text-decoration: none;
}
.plot-zoom-btn:hover,
.chip-zoom-btn:hover {
    color: var(--bs-body-color);
}
.plot-delta {
    display: inline-block;
    margin-left: 0.35rem;
    padding: 0.05rem 0.35rem;
    border-radius: 0.35rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}
.map-delta.chg-zero,
.plot-delta.chg-zero {
    color: #6c757d;
    background: rgba(108, 117, 125, 0.12);
}
.map-delta.chg-neg,
.plot-delta.chg-neg {
    color: #0d6efd;
    background: rgba(13, 110, 253, 0.12);
}
.map-delta.chg-pos1,
.plot-delta.chg-pos1 {
    color: #5c4b00;
    background: rgba(255, 243, 181, 0.90);
}
.map-delta.chg-pos2,
.plot-delta.chg-pos2 {
    color: #6a4a00;
    background: rgba(255, 220, 122, 0.82);
}
.map-delta.chg-pos3,
.plot-delta.chg-pos3 {
    color: #8b4a00;
    background: rgba(255, 183, 103, 0.72);
}
.map-delta.chg-pos4,
.plot-delta.chg-pos4 {
    color: #9a3f00;
    background: rgba(255, 145, 80, 0.64);
}
.map-delta.chg-pos5,
.plot-delta.chg-pos5 {
    color: #9d1d1d;
    background: rgba(243, 94, 94, 0.58);
}
.map-delta.chg-pos6,
.plot-delta.chg-pos6 {
    color: #8a121a;
    background: rgba(221, 64, 64, 0.54);
}
.map-delta.chg-pos7,
.plot-delta.chg-pos7 {
    color: #5d0c16;
    background: rgba(155, 39, 56, 0.44);
}
.map-delta.chg-pos8,
.plot-delta.chg-pos8 {
    color: #3f0729;
    background: rgba(95, 30, 78, 0.34);
}
.map-delta.chg-text-black,
.plot-delta.chg-text-black {
    color: #000 !important;
}

/* Tables */

.plot-heat-table,
.plot-grid-table {
    border-collapse: collapse;
    width: 100%;
}
.plot-heat-table th,
.plot-heat-table td,
.plot-grid-table th,
.plot-grid-table td {
    border: 1px solid #d0d0d0;
    vertical-align: middle;
}
.plot-heat-table thead th,
.plot-grid-table thead th {
    text-align: center;
    background: var(--plot-card-bg-subtle);
}
.plot-heat-table tbody td {
    text-align: center;
}
.plot-grid-table thead th {
    font-weight: 600;
    white-space: nowrap;
}
.plot-grid-table.plot-grid-table-wrap-head thead th,
.plot-grid-table.plot-grid-table-wrap-head th.plot-sortable,
.plot-grid-table.plot-grid-table-wrap-head th.plot-sortable .plot-th-label {
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
    line-height: 1.15;
}
.plot-grid-table thead th.text-end {
    text-align: center !important;
}
.plot-ym-table-unit-label {
    display: block;
    margin: 0 0 0.35rem 0;
    font-size: 1rem;
    line-height: 1.2;
    color: #212529;
    font-weight: 600;
}
.plot-grid-table tbody td,
.plot-grid-table tbody td.text-end {
    text-align: center;
    background: var(--plot-card-bg);
}
.plot-grid-table[data-plot-ym-first-col="id"] th:first-child,
.plot-grid-table[data-plot-ym-first-col="id"] td:first-child {
    width: 9rem;
    min-width: 9rem;
}
#heat-trends-location-layout .heat-trends-location-side .plot-grid-table tbody tr:nth-child(even):not(.plot-row-highlight) > td,
#heat-trends-location-layout .heat-trends-location-side .plot-heat-table tbody tr:nth-child(even):not(.plot-row-highlight) > td,
.plot-overview-card.mt-3 .plot-grid-table tbody tr:nth-child(even):not(.plot-row-highlight) > td,
.plot-overview-card.mt-3 .plot-heat-table tbody tr:nth-child(even):not(.plot-row-highlight) > td {
    background-color: #f5f5f5;
}
.plot-grid-table tbody tr.plot-row-highlight > td,
.plot-heat-table tbody tr.plot-row-highlight > td {
    background-color: var(--plot-row-bg, var(--plot-card-bg));
}
.plot-grid-table tbody td.plot-cell-highlight,
.plot-heat-table tbody td.plot-cell-highlight {
    background-color: var(--plot-cell-bg, var(--plot-card-bg));
}

/* Sortable headers */

th.plot-sortable {
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}
th.plot-sortable .plot-th-label {
    text-align: center;
}
th.plot-sortable .plot-sort-icon {
    font-size: 0.95rem;
    opacity: 0.45;
    vertical-align: middle;
    margin-left: 0.1rem;
}
.plot-sort-icon {
    display: inline-block;
}
.plot-sort-icons {
    display: inline-flex;
    align-items: center;
    gap: 0.1rem;
    margin-left: 0.35rem;
    vertical-align: middle;
}
th.plot-sortable:hover .plot-sort-icon {
    opacity: 0.75;
}
th.plot-sortable[aria-sort="ascending"] .plot-sort-icon,
th.plot-sortable[aria-sort="descending"] .plot-sort-icon {
    opacity: 0.95;
}
th.plot-sortable.plot-th-meta-break,
th.plot-sortable.plot-th-inline-center {
    text-align: center;
}
th.plot-sortable.plot-th-inline-center .plot-th-label {
    display: inline-block;
    text-align: center;
    line-height: 1.15;
    vertical-align: bottom;
}
th.plot-sortable.plot-th-inline-center :is(.plot-sort-icon, .plot-sort-icons, .plot-th-help) {
    vertical-align: text-bottom;
}
th.plot-sortable.plot-th-meta-break .plot-th-label {
    display: inline-block;
    text-align: center;
}
th.plot-sortable.plot-th-meta-break :is(.plot-th-help, .plot-sort-icon, .plot-sort-icons, .plot-state-pctile-note) {
    margin-left: 0;
}

/* Buttons */

#plot-btn-continue,
#plot-btn-clear-all,
#plot-btn-identify,
#plot-btn-box-select {
    font-size: 0.95rem;
}
#hourly-filter-apply,
#plot-graphs-btn-save {
    --bs-btn-color: #fff;
    --bs-btn-bg: #198754;
    --bs-btn-border-color: #198754;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #157347;
    --bs-btn-hover-border-color: #146c43;
    --bs-btn-focus-shadow-rgb: 60, 153, 110;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #146c43;
    --bs-btn-active-border-color: #13653f;
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #198754;
    --bs-btn-disabled-border-color: #198754;
}

/* Detail cards */

.plot-detail-card {
    border-radius: 14px;
    padding: 14px;
}
.plot-detail-head {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.plot-detail-head-center {
    flex: 1 1 auto;
    text-align: center;
    padding-right: 0;
}
@media (max-width: 992px) {
    .plot-detail-head {
        flex-direction: column;
    }
    .plot-detail-legend {
        position: static;
        width: 100%;
        margin-left: 0;
        border-left: 0;
        padding-left: 0;
    }
}
.plot-detail-title {
    font-size: 1.25rem;
}
.plot-detail-title-toggle,
.plot-detail-title-static {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 0;
    background: transparent;
    padding: 0;
    color: inherit;
    text-align: left;
}
.plot-detail-title-toggle {
    cursor: pointer;
}
.plot-detail-title-static {
    cursor: default;
    pointer-events: none;
}
.plot-detail-legend-title {
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.1;
    margin-bottom: 6px;
}
.plot-detail-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 6px 0;
}
.plot-detail-colorchip {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    border: 1px solid rgba(0, 0, 0, 0.25);
    flex: 0 0 auto;
}
.plot-detail-legend-name {
    font-size: 0.85rem;
    line-height: 1.1;
}
.plot-detail-controls {
    margin-top: 10px;
    display: grid;
    justify-items: center;
    gap: 10px;
}
.plot-detail-controls-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}
.plot-detail-controls-title {
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 0.18em;
    text-align: center;
}
.plot-detail-subopts {
    width: 100%;
    max-width: 740px;
}
.plot-detail-subopt {
    display: none;
    justify-content: right;
}
.plot-detail-subopt.is-active,
.plot-detail-subopt.plot-detail-subopt-static {
    display: flex;
}
.plot-detail-subopt-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    justify-content: center;
}
.plot-detail-subopt-row-switch {
    justify-content: flex-end;
}
.plot-detail-subopt.plot-detail-subopt-difference {
    opacity: 0.90;
}
.plot-detail-subopt.plot-detail-subopt-difference .switch-form {
    gap: 0.35rem;
}
.plot-detail-subopt.plot-detail-subopt-difference .form-check-label {
    font-size: 0.90rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: rgba(0, 0, 0, 0.78);
}
.plot-detail-subopt.plot-detail-subopt-difference .plot-detail-difference-switch {
    transform: scale(0.92);
    transform-origin: center;
}
.plot-detail-subopt.plot-detail-subopt-difference .plot-detail-difference-switch:checked {
    background-color: #1b5e20;
    border-color: #1b5e20;
}
.plot-detail-split {
    margin-top: 12px;
    display: flex;
    align-items: flex-start;
}
.plot-detail-split.plot-detail-split-difference {
    display: block;
}
.plot-detail-split.plot-detail-split-difference > .plot-detail-half {
    width: 100%;
    padding-left: 10px;
    padding-right: 10px;
}
.plot-detail-split.plot-detail-split-difference > .plot-detail-half.plot-detail-half-right {
    display: none !important;
}
.plot-detail-split.plot-detail-split-difference > .plot-detail-half:first-child {
    padding-right: 10px;
}
.plot-detail-half {
    width: 50%;
    padding: 10px 10px 6px 10px;
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.plot-detail-split > .plot-detail-half:first-child {
    padding-right: 12px;
}
@media (min-width: 913px) {
    .plot-detail-split > .plot-detail-half:first-child .plot-ym-plot {
        margin-left: -0.5rem;
        width: calc(100% + 0.5rem);
    }
    .plot-detail-split > .plot-detail-half:first-child .plot-detail-days-wrap {
        margin-left: 0;
        width: 100%;
    }
    .plot-detail-split.plot-detail-split-difference > .plot-detail-half:first-child .plot-ym-plot {
        margin-left: 0;
        width: 100%;
    }
}
.plot-detail-half-title {
    text-align: center;
    font-weight: 700;
    margin-bottom: 6px;
    font-size: 1.05rem;
    text-decoration: none;
}
.plot-detail-diff-days-shell {
    margin-top: 8px;
}
.plot-detail-diff-days-split {
    display: flex;
    align-items: flex-start;
    margin-top: 2px;
}
.plot-detail-diff-days-half {
    width: 50%;
    min-width: 0;
    padding: 0 10px 0 10px;
}
.plot-detail-half-right,
.plot-detail-diff-days-half-right {
    border-left: 1px solid rgba(0, 0, 0, 0.10);
    padding-left: 12px;
}
.plot-detail-diff-days-half-title {
    margin-top: 2px;
    margin-bottom: 4px;
}
.plot-detail-diff-days-wrap-host > .plot-detail-days-wrap,
.plot-detail-diff-days-table-host > .plot-detail-days-daytable {
    width: 100%;
}
.plot-detail-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
}
.plot-detail-section-label {
    font-weight: 600;
    color: #212529;
    white-space: nowrap;
}
.plot-detail-section-line {
    height: 1px;
    background: rgba(0, 0, 0, 0.12);
    flex: 1 1 auto;
}
.plot-detail-plot {
    width: 100%;
    margin-top: 8px;
    overflow: visible;
}
.plot-detail-hint {
    text-align: center;
    color: var(--plot-muted-text);
    margin: 4px 0 6px 0;
}
.plot-detail-table-toggle {
    margin-top: 6px;
    border: 0;
    background: transparent;
    color: #0d6efd;
    padding: 2px 0;
    font-size: 0.9rem;
}
.plot-detail-days-placeholder {
    min-height: 70px;
}
.plot-detail-collapser {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    border: 0;
    background: transparent;
    padding: 6px 0 10px 0;
    font-weight: 700;
    text-align: left;
    font-size: 1.05rem;
}
.plot-detail-collapser[aria-expanded="true"] {
    display: none;
}
.plot-detail-collapser-title {
    font-size: inherit;
    font-weight: inherit;
}

/* Collapsers */

.plot-detail-collapser-icon {
    width: 18px;
    height: 18px;
    display: inline-block;
    position: relative;
    flex: 0 0 auto;
}
.plot-detail-collapser-icon::before,
.plot-detail-collapser-icon::after,
.heat-trends-page :is(#plot-results-events-pane, #plot-results-thresholds-pane) .plot-inline-legend-host .plot-detail-legend-chevron::before,
.heat-trends-page :is(#plot-results-events-pane, #plot-results-thresholds-pane) .plot-inline-legend-host .plot-detail-legend-chevron::after {
    content: "";
    position: absolute;
    top: 8px;
    width: 9px;
    height: 2px;
    background: rgba(0, 0, 0, 0.65);
}
.plot-detail-collapser-icon::before,
.heat-trends-page :is(#plot-results-events-pane, #plot-results-thresholds-pane) .plot-inline-legend-host .plot-detail-legend-chevron::before {
    left: 2px;
    transform: rotate(45deg);
}
.plot-detail-collapser-icon::after,
.heat-trends-page :is(#plot-results-events-pane, #plot-results-thresholds-pane) .plot-inline-legend-host .plot-detail-legend-chevron::after {
    right: 2px;
    transform: rotate(-45deg);
}
.plot-detail-collapser[aria-expanded="false"] .plot-detail-collapser-icon,
.heat-trends-page :is(#plot-results-events-pane, #plot-results-thresholds-pane) .plot-inline-legend-host .plot-detail-legend-toggle[aria-expanded="false"] .plot-detail-legend-chevron {
    transform: rotate(180deg);
}

/* Responsive split layouts */

@media (max-width: 1200px) {
    .plot-detail-split {
        display: flex;
        flex-direction: column;
    }
    .plot-detail-diff-days-split {
        flex-direction: column;
    }
    .plot-detail-half,
    .plot-detail-half-right,
    .plot-detail-diff-days-half,
    .plot-detail-diff-days-half-right {
        width: 100%;
        padding-left: 10px;
        padding-right: 10px;
    }
    .plot-detail-half-right,
    .plot-detail-diff-days-half-right {
        border-left: 0;
        border-top: 1px solid rgba(0, 0, 0, 0.10);
        margin-top: 0.5rem;
        padding-top: 0.85rem;
    }
}
.plot-detail-days-wrap {
    position: relative;
    flex: 1 1 auto;
    min-height: 280px;
    overflow: hidden;
}
.plot-detail-days-plot {
    min-height: 280px;
}
.plot-detail-days-popovers {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 5;
}
.plot-detail-metric .btn-outline-secondary {
    color: #154a19;
    border-color: #154a19;
}
.plot-detail-metric .btn-outline-secondary:hover {
    color: #154a19;
    border-color: #154a19;
    background: rgba(21, 74, 25, 0.08);
}
.plot-detail-metric .btn-check:checked + .btn-outline-secondary, .plot-detail-metric .btn-outline-secondary.active, .plot-detail-metric .btn-outline-secondary:active {
    color: #fff;
    background-color: #154a19;
    border-color: #154a19;
}
.plot-detail-metric .btn-check:disabled + .btn-outline-secondary, .plot-detail-metric .btn-outline-secondary.disabled, .plot-detail-metric .btn-outline-secondary:disabled {
    color: #154a19;
    border-color: #154a19;
    background: transparent;
    opacity: 1;
}

/* Legends */

.heat-trends-page .plot-events-summary-legend .plot-detail-legend {
    position: static;
    width: 100%;
    margin: 0;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 14px;
    padding: 10px 12px;
}
.heat-trends-page .plot-detail-legend-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 6px 0;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
}
.heat-trends-page .plot-detail-legend-check {
    margin-top: 0;
}
.heat-trends-page .plot-detail-legend-label {
    font-size: 0.85rem;
    line-height: 1.1;
}
.heat-trends-page :is(#plot-results-events-pane, #plot-results-thresholds-pane) .plot-inline-legend-host {
    margin-bottom: 1rem;
}
.heat-trends-page :is(#plot-results-events-pane, #plot-results-thresholds-pane) .plot-inline-legend-host-summary {
    margin-top: 0;
}

/* Export controls */

.heat-trends-page :is(#plot-results-events-pane, #plot-results-thresholds-pane) .plot-inline-legend-export-row:not(.plot-detail-options-card) {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 1fr);
    gap: 0.75rem;
    align-items: start;
    margin-bottom: 1rem;
}
.heat-trends-page :is(#plot-results-events-pane, #plot-results-thresholds-pane) .plot-inline-legend-export-row:not(.plot-detail-options-card) .plot-inline-legend-host {
    margin-bottom: 0;
    min-width: 0;
}
.heat-trends-page :is(#plot-results-events-pane, #plot-results-thresholds-pane) .plot-inline-legend-export-row:not(.plot-detail-options-card) .plot-inline-legend-export-pane {
    display: flex;
    justify-content: right;
    align-items: flex-start;
    min-width: 0;
    padding: 0 5px 2px 0;
}
.heat-trends-page #plot-results-thresholds-pane .plot-inline-legend-export-row:not(.plot-detail-options-card) .plot-inline-legend-export-pane {
    justify-content: flex-end;
    width: 100%;
    padding-left: 0;
    padding-right: 0.35rem;
}
.heat-trends-page #plot-results-thresholds-pane .plot-inline-legend-export-row:not(.plot-detail-options-card) .plot-inline-legend-export-pane {
    justify-content: flex-end !important;
}
.heat-trends-page :is(#plot-results-events-pane, #plot-results-thresholds-pane) .plot-inline-legend-export-pane :is(.plot-detail-export-png-btn, .plot-thresh-export-png-btn, .plot-thresh-export-csv-btn) {
    white-space: nowrap;
}
.heat-trends-page #plot-results-events-pane .plot-days-month-export-btn {
    color: #3f474f;
    border-color: rgba(63, 71, 79, 0.52);
    background: rgba(27, 94, 32, 0.03);
}
.heat-trends-page #plot-results-events-pane .plot-days-month-export-btn:hover,
.heat-trends-page #plot-results-events-pane .plot-days-month-export-btn:focus-visible,
.heat-trends-page #plot-results-events-pane .plot-days-month-export-btn.is-linked-hover {
    color: #fff;
    border-color: #1b5e20;
    background: #1b5e20;
    box-shadow: none;
}
.heat-trends-page #plot-results-events-pane .plot-days-month-export-btn:active,
.heat-trends-page #plot-results-events-pane .plot-days-month-export-btn.active,
.heat-trends-page #plot-results-events-pane .plot-days-month-export-btn.is-linked-active {
    color: #fff;
    background-color: #1b5e20;
    border-color: #1b5e20;
    box-shadow: none;
}

/* Inline legends */

.heat-trends-page :is(#plot-results-events-pane, #plot-results-thresholds-pane) .plot-inline-legend-host .plot-detail-legend {
    position: static;
    top: auto;
    width: 100%;
    margin-top: 1rem;
    align-self: auto;
    border: 0;
    border-radius: 0;
    background: transparent;
    padding-left: 0;
    overflow: visible;
    z-index: auto;
}
.heat-trends-page :is(#plot-results-events-pane, #plot-results-thresholds-pane) .plot-inline-legend-host .plot-detail-legend-toggle {
    width: auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
    color: inherit;
    text-align: left;
}
.plot-detail-title-toggle:hover .plot-detail-title-text,
.heat-trends-page :is(#plot-results-events-pane, #plot-results-thresholds-pane) .plot-inline-legend-host .plot-detail-legend-toggle:hover .plot-detail-legend-title {
    text-decoration: underline;
}
.plot-detail-title-toggle:focus-visible,
.heat-trends-page :is(#plot-results-events-pane, #plot-results-thresholds-pane) .plot-inline-legend-host .plot-detail-legend-toggle:focus-visible {
    outline: 2px solid rgba(13, 110, 253, 0.35);
    outline-offset: 2px;
    border-radius: 4px;
}
.heat-trends-page :is(#plot-results-events-pane, #plot-results-thresholds-pane) .plot-inline-legend-host .plot-detail-legend-title {
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.1;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    margin: 0;
}
.heat-trends-page :is(#plot-results-events-pane, #plot-results-thresholds-pane) .plot-inline-legend-host .plot-detail-legend-chevron {
    width: 18px;
    height: 18px;
    position: relative;
    flex: 0 0 auto;
}
.heat-trends-page :is(#plot-results-events-pane, #plot-results-thresholds-pane) .plot-inline-legend-host .plot-detail-legend-body {
    padding: 0.5rem 0 0.5rem;
    max-height: none;
    overflow: visible;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.heat-trends-page :is(#plot-results-events-pane, #plot-results-thresholds-pane) .plot-inline-legend-host .plot-detail-legend.is-collapsed .plot-detail-legend-body {
    display: none;
}

/* Responsive rules */

@media (max-width: 992px) {
    .heat-trends-page :is(#plot-results-events-pane, #plot-results-thresholds-pane) .plot-inline-legend-export-row:not(.plot-detail-options-card) {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    .heat-trends-page :is(#plot-results-events-pane, #plot-results-thresholds-pane) .plot-inline-legend-export-row:not(.plot-detail-options-card) .plot-inline-legend-export-pane {
        justify-content: flex-start;
    }
}
.heat-trends-page :is(#plot-results-events-pane, #plot-results-thresholds-pane) .plot-inline-legend-host .plot-detail-legend-list {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem 1.15rem;
    width: fit-content;
}
.heat-trends-page :is(#plot-results-events-pane, #plot-results-thresholds-pane) .plot-inline-legend-host .plot-detail-legend:not(.is-collapsed) .plot-detail-legend-list {
    border-bottom: 1px solid rgba(0, 0, 0, 0.24);
    padding-bottom: 0.35rem;
}
.heat-trends-page :is(#plot-results-events-pane, #plot-results-thresholds-pane) .plot-inline-legend-host .plot-detail-legend-row {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
    max-width: 100%;
    flex: 0 1 auto;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
}
.heat-trends-page :is(#plot-results-events-pane, #plot-results-thresholds-pane) .plot-inline-legend-host .plot-detail-legend-row-labels {
    flex: 0 1 auto;
}
.heat-trends-page :is(#plot-results-events-pane, #plot-results-thresholds-pane) .plot-inline-legend-host .plot-detail-legend-row-labels .plot-detail-legend-label {
    font-weight: 500;
}
.heat-trends-page :is(#plot-results-events-pane, #plot-results-thresholds-pane) .plot-inline-legend-host .plot-detail-legend-empty {
    font-size: 0.85rem;
    line-height: 1.3;
    color: inherit;
}
.heat-trends-page :is(#plot-results-events-pane, #plot-results-thresholds-pane) .plot-inline-legend-host .plot-detail-legend-check {
    margin-top: 0;
}
.heat-trends-page :is(#plot-results-events-pane, #plot-results-thresholds-pane) .plot-inline-legend-host .plot-detail-legend-swatch {
    margin: 0 -1px 0 0;
}
.heat-trends-page :is(#plot-results-events-pane, #plot-results-thresholds-pane) .plot-inline-legend-host .plot-detail-legend-label {
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
}
.heat-trends-page :is(#plot-results-events-pane, #plot-results-thresholds-pane) .plot-inline-legend-host + .plot-detail-split {
    margin-top: 1rem;
}
@media (max-width: 767.98px) {
    .heat-trends-page :is(#plot-results-events-pane, #plot-results-thresholds-pane) .plot-inline-legend-host .plot-detail-legend-row {
        flex: 1 1 100%;
    }
}
