/* Heat Trends events and thresholds styles */

.heat-trends-page {
    --plot-emphasis-shell-border: rgba(0, 0, 0, 0.5);
    --plot-emphasis-shell-bg: rgba(27, 94, 32, 0.05);
    --plot-emphasis-shell-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    --plot-emphasis-fill: #1b5e20;
    --plot-emphasis-fill-hover: #174f1b;
    --plot-emphasis-focus-ring: rgba(27, 94, 32, 0.28);
}

/* Metric cards */

.heat-trends-page :is(.plot-events-metric-grid, .plot-advwarn-thresh-grid) {
    margin-top: 0;
    --bs-gutter-x: 0;
    --bs-gutter-y: 1rem;
}
.heat-trends-page :is(.plot-events-metric-grid, .plot-advwarn-thresh-grid) > [class*="col-"] {
    padding-left: 1rem;
    padding-right: 0;
    padding-top: 1rem;
    padding-bottom: 1rem;
}
.heat-trends-page .plot-metric-card,
.plot-detail-card {
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: #fff;
}
.heat-trends-page .plot-metric-card {
    border-radius: 14px;
    padding: 0.75rem;
    height: 100%;
}
.heat-trends-page .plot-metric-head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    margin-bottom: 0.1rem;
}
.heat-trends-page .plot-metric-title {
    border: 0;
    background: transparent;
    padding: 0;
    margin: 0;
    font-family: "Oswald", Arial, Helvetica, sans-serif;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
}
.heat-trends-page .plot-metric-info {
    line-height: 1;
}
.heat-trends-page .plot-metric-subtle {
    text-align: center;
    font-size: 0.85rem;
    color: rgba(0, 0, 0, 0.75);
    margin: 0;
}
.heat-trends-page .plot-metric-card:not(.plot-thresh-card) .plot-metric-head {
    position: relative;
    justify-content: center;
    margin-bottom: 0.35rem;
}
.heat-trends-page .plot-metric-card:not(.plot-thresh-card) .plot-metric-head-main {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 0.18rem 0.25rem;
    padding: 0;
}
.heat-trends-page .plot-metric-card:not(.plot-thresh-card) .plot-metric-title {
    font-size: 1.2rem;
}
.heat-trends-page .plot-metric-card:not(.plot-thresh-card) .plot-metric-subtle.plot-detail-subtitle {
    font-family: "Oswald", Arial, var(--bs-body-font-family, sans-serif), sans-serif;
    font-size: 1.2rem;
    line-height: 1.1;
    color: rgba(0, 0, 0, 0.75);
}
.heat-trends-page .plot-metric-card:not(.plot-thresh-card) .plot-metric-info {
    position: absolute;
    top: 0.1rem;
    right: 0;
}
.heat-trends-page .plot-metric-plot-stack {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.heat-trends-page .plot-metric-plot-layout {
    display: grid;
    grid-template-columns: 1.95rem minmax(0, 1fr);
    align-items: stretch;
    column-gap: 0.55rem;
}
.heat-trends-page .plot-metric-axis-label {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    font-family: Arial, var(--bs-body-font-family, sans-serif), sans-serif;
    font-size: 0.94rem;
    font-weight: 600;
    line-height: 1;
    color: rgba(0, 0, 0, 0.75);
    text-align: center;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    letter-spacing: 0.01em;
}
.heat-trends-page .plot-metric-plot-label {
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;
    margin: 0.1rem 0 0 0;
}
.heat-trends-page .plot-metric-plot-label-spacer {
    margin-top: 0.4rem;
}
.heat-trends-page .plot-metric-plot {
    width: 100%;
    min-height: 150px;
}
.heat-trends-page .plot-metric-plot-wrap {
    width: 100%;
}
.heat-trends-page .plot-metric-scen-label {
    text-align: center;
    font-weight: 600;
    margin-top: 0.15rem;
    color: rgba(0, 0, 0, 0.65);
}
.heat-trends-page .plot-no-events {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    color: rgba(0, 0, 0, 0.55);
    font-size: 0.95rem;
}

/* Event filters */

.plot-card-filter,
.plot-heat-events-filter-wrap {
    display: inline-flex;
    align-items: center;
}
.plot-heat-events-filter-btn {
    font-size: 0.8rem;
    line-height: 1.1;
    padding: 0.28rem 0.55rem;
    font-family: Arial, var(--bs-body-font-family, sans-serif), sans-serif;
}
#plot-heat-events-card .plot-heat-events-filter-btn {
    min-width: 2rem;
    padding: 0.28rem 0.45rem;
}
#plot-heat-events-card .plot-heat-events-filter-btn .bi {
    font-size: 0.9rem;
    line-height: 1;
}
.plot-heat-events-filter-menu {
    min-width: 280px;
    padding: 0;
    border: 1px solid rgba(0, 0, 0, 0.18);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.16);
    font-family: Arial, var(--bs-body-font-family, sans-serif), sans-serif;
}
.plot-heat-events-filter-scroll {
    max-height: 220px;
    overflow-y: auto;
    padding: 0.65rem 0.8rem 0.4rem;
    display: grid;
    gap: 0.38rem;
    font-family: Arial, var(--bs-body-font-family, sans-serif), sans-serif;
}
.plot-heat-events-filter-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
    padding-bottom: 0.2rem;
    margin-bottom: 0.1rem;
}
.plot-heat-events-filter-head-title {
    font-size: 0.8rem;
    color: #000000;
    font-weight: 600;
}
.plot-heat-events-filter-head-meta {
    font-size: 0.7rem;
    color: #6c757d;
    font-weight: 400;
    white-space: nowrap;
}
.plot-heat-events-filter-scroll .form-check {
    margin: 0;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}
.plot-heat-events-filter-scroll .form-check-input {
    margin-top: 0.2rem;
    flex: 0 0 auto;
}
.plot-heat-events-filter-scroll .form-check-label {
    font-size: 0.82rem;
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    flex-wrap: wrap;
    line-height: 1.2;
}
.plot-heat-events-filter-scroll .plot-heat-events-filter-name {
    color: #212529;
    font-size: 0.82rem;
}
.plot-heat-events-filter-scroll .plot-heat-events-filter-rule {
    color: #6c757d;
    font-size: 0.72rem;
    font-weight: 400;
}
.plot-heat-events-filter-actions {
    display: flex;
    justify-content: flex-end;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
    padding: 0.45rem 0.8rem;
    background: #ffffff;
    color: #157347;
    font-family: Arial, var(--bs-body-font-family, sans-serif), sans-serif;
}
.plot-heat-events-filter-actions .btn-success {
    --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-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #198754;
    --bs-btn-disabled-border-color: #198754;
}

/* Detail cards */

.plot-detail-card:not(.plot-detail-card-thresholds) .plot-detail-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.85fr);
    align-items: start;
    gap: 1.25rem;
    margin-bottom: 1rem;
}
.plot-detail-card:not(.plot-detail-card-thresholds) .plot-detail-head {
    align-items: stretch;
    gap: 0;
    min-width: 0;
}
.plot-detail-card:not(.plot-detail-card-thresholds) .plot-detail-head-center {
    text-align: left;
}
.plot-detail-card:not(.plot-detail-card-thresholds) .plot-detail-controls {
    margin-top: 0;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.85fr);
    align-items: start;
    gap: 1rem 1.25rem;
    width: 100%;
}
.plot-detail-card:not(.plot-detail-card-thresholds) .plot-detail-metric, .plot-detail-card:not(.plot-detail-card-thresholds) .plot-detail-subopts {
    width: 100%;
    max-width: none;
}
.plot-detail-card:not(.plot-detail-card-thresholds) .plot-detail-metric .btn-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    gap: 0.35rem;
}
.plot-detail-card:not(.plot-detail-card-thresholds) .plot-detail-metric .btn-group > .btn, .plot-detail-card:not(.plot-detail-card-thresholds) .plot-detail-metric .btn-group > .btn-check + .btn {
    flex: 1 1 auto;
}
.plot-detail-card:not(.plot-detail-card-thresholds) .plot-detail-subopt {
    width: 100%;
}
.plot-detail-card:not(.plot-detail-card-thresholds) .plot-detail-subopt-row {
    justify-content: right;
}
@media (max-width: 1199px) {
    .plot-detail-card:not(.plot-detail-card-thresholds) .plot-detail-toolbar {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}
@media (max-width: 767px) {
    .plot-detail-card:not(.plot-detail-card-thresholds) .plot-detail-controls {
        grid-template-columns: 1fr;
    }
}
.switch-form {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0;
}
.switch-form .form-check-input, .switch-form .form-check-label {
    cursor: pointer;
}
.plot-detail-card:not(.plot-detail-card-thresholds) .plot-detail-half-title {
    margin-bottom: 0;
    color: #000;
    font-weight: 700;
}
.plot-detail-card:not(.plot-detail-card-thresholds) .plot-detail-half-axis-label, .plot-detail-card.plot-detail-card-thresholds .plot-detail-half-axis-label {
    text-align: center;
    margin: 0 0 0.3rem;
    font-size: 0.82rem;
    font-weight: 400;
    line-height: 1.2;
    color: rgba(0, 0, 0, 0.55);
}
.plot-table-sort-hint {
    font-size: 0.78rem;
    font-style: italic;
    color: #6c757d;
}
.plot-ym-plot {
    position: relative;
    min-height: 200px;
}
.plot-days-daytable-head {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 0.25rem;
}
.plot-days-daytable-closed-hint {
    border-top: 1px solid rgba(0, 0, 0, 0.22);
    margin-top: 0.3rem;
    padding-top: 0.42rem;
    font-size: 0.82rem;
    color: rgba(0, 0, 0, 0.62);
}
.plot-days-daytable-closed-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.22);
    margin-top: 0.3rem;
    padding-top: 0.42rem;
}
.plot-days-daytable-closed-row .plot-days-daytable-closed-hint {
    flex: 1 1 auto;
    border-top: 0;
    margin-top: 0;
    padding-top: 0;
}
.plot-days-daytable-closed-row .plot-table-csv-btn {
    flex: 0 0 auto;
}
.plot-days-daytable-close {
    font-size: 0.74rem;
    line-height: 1.1;
    padding: 0.18rem 0.42rem;
}
.plot-table-csv-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
    margin-top: 0.2rem;
}
.plot-table-csv-btn {
    white-space: nowrap;
}
.heat-trends-page #plot-results-events-pane .plot-table-csv-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-table-csv-btn:hover,
.heat-trends-page #plot-results-events-pane .plot-table-csv-btn:focus-visible,
.heat-trends-page #plot-results-events-pane .plot-table-csv-btn.is-linked-hover {
    color: #fff;
    border-color: #1b5e20;
    background: #1b5e20;
    box-shadow: none;
}
.heat-trends-page #plot-results-events-pane .plot-table-csv-btn:active,
.heat-trends-page #plot-results-events-pane .plot-table-csv-btn.active,
.heat-trends-page #plot-results-events-pane .plot-table-csv-btn.is-linked-active {
    color: #fff;
    background-color: #1b5e20;
    border-color: #1b5e20;
    box-shadow: none;
}
.plot-day-popover {
    position: absolute;
    pointer-events: auto;
    max-width: 320px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 0.5rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    padding: 0.5rem 0.75rem;
}
.plot-day-popover-close {
    position: absolute;
    top: 0.25rem;
    left: 0.25rem;
    border: 0;
    background: transparent;
    padding: 0.15rem 0.35rem;
    line-height: 1;
    cursor: pointer;
}
.plot-day-popover-title {
    font-weight: 600;
    margin: 0 0 0.25rem 0;
}
.plot-day-popover-subtitle {
    font-weight: 600;
    margin: 0 0 0.35rem 0;
}
.plot-day-popover-row {
    margin: 0.1rem 0;
    font-size: 0.9rem;
}
.plot-day-popover-link {
    margin-top: 0.35rem;
    font-size: 0.9rem;
}
.plot-days-table {
    table-layout: fixed;
}
.plot-detail-card-nys-adv .plot-days-col-min-tair, .plot-detail-card-nys-warn .plot-days-col-min-tair {
    display: none;
}
[id$="-days-table-hist"] .plot-grid-table td, [id$="-days-table-fut"] .plot-grid-table td, [id$="-days-table-hist"] .plot-grid-table th, [id$="-days-table-fut"] .plot-grid-table th {
    white-space: nowrap;
}
.plot-detail-days-daytable .plot-grid-table {
    width: 100%;
    table-layout: fixed;
}
.plot-detail-days-daytable .plot-grid-table td {
    white-space: normal;
}
.plot-detail-days-daytable .plot-grid-table th {
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.15;
    vertical-align: bottom;
}
.plot-detail-days-daytable .plot-grid-table th.plot-days-col-block-groups,
.plot-detail-days-daytable .plot-grid-table th.plot-days-col-max-hi {
    word-break: normal;
}
.plot-detail-days-daytable .plot-grid-table th.plot-days-col-block-groups {
    width: 4.85rem;
    max-width: 4.85rem;
}
.plot-detail-days-daytable .plot-grid-table th.plot-days-col-max-hi {
    width: 4.1rem;
    max-width: 4.1rem;
}
.plot-days-plotly, .plot-days-plotly .plotly, .plot-days-plotly .plotly text, .plot-days-plotly .plotly .xtick text, .plot-days-plotly .plotly .ytick text {
    cursor: default !important;
}
.plot-days-plotly .plotly .cursor-crosshair, .plot-days-plotly .plotly .cursor-pointer, .plot-days-plotly .plotly .cursor-ew-resize, .plot-days-plotly .plotly .cursor-ns-resize {
    cursor: default !important;
}
.plot-days-popover-layer {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    pointer-events: none;
}
.plot-days-popover[data-pop-kind="hover"] {
    pointer-events: none;
}
.plot-days-popover {
    position: absolute;
    background: #ffffff;
    border: 1px solid #000000;
    border-radius: 6px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
    padding: 10px 12px;
    max-width: 340px;
}
.plot-days-popover-arrow {
    position: absolute;
    width: 0;
    height: 0;
}
.plot-days-popover-arrow::after {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
}
.plot-days-popover[data-side="top"] .plot-days-popover-arrow {
    left: var(--arrow-x, 24px);
    bottom: -10px;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #000000;
}
.plot-days-popover[data-side="top"] .plot-days-popover-arrow::after {
    left: -9px;
    top: -10px;
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-top: 9px solid #ffffff;
}
.plot-days-popover[data-side="bottom"] .plot-days-popover-arrow {
    left: var(--arrow-x, 24px);
    top: -10px;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid #000000;
}
.plot-days-popover[data-side="bottom"] .plot-days-popover-arrow::after {
    left: -9px;
    top: 1px;
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-bottom: 9px solid #ffffff;
}
.plot-days-popover[data-side="left"] .plot-days-popover-arrow {
    top: var(--arrow-y, 18px);
    right: -10px;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 10px solid #000000;
}
.plot-days-popover[data-side="left"] .plot-days-popover-arrow::after {
    top: -9px;
    left: -10px;
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
    border-left: 9px solid #ffffff;
}
.plot-days-popover[data-side="right"] .plot-days-popover-arrow {
    top: var(--arrow-y, 18px);
    left: -10px;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 10px solid #000000;
}
.plot-days-popover[data-side="right"] .plot-days-popover-arrow::after {
    top: -9px;
    left: 1px;
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
    border-right: 9px solid #ffffff;
}
.plot-days-popover, .plot-days-popover * {
    cursor: default;
    user-select: none;
}
.plot-days-popover a {
    cursor: pointer;
    user-select: none;
}
.heat-trends-page .plot-advwarn-thresh-shell {
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 18px;
    background: #fff;
    padding: 1rem 1.1rem 1.15rem;
}
.heat-trends-page .plot-events-summary-shell {
    padding: 10px 14px;
}
.heat-trends-page .plot-advwarn-thresh-shell {
    margin-top: 1rem;
}
.heat-trends-page .plot-advwarn-thresh-head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
.heat-trends-page .plot-advwarn-thresh-title {
    font-size: 1.35rem;
    line-height: 1.1;
}
.heat-trends-page .plot-advwarn-thresh-note {
    max-width: 30rem;
    font-size: 0.88rem;
    line-height: 1.4;
    color: rgba(0, 0, 0, 0.6);
}
.heat-trends-page .plot-advwarn-thresh-shell .plot-thresh-card, .heat-trends-page .plot-events-summary-shell .plot-metric-card {
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
}
@media (min-width: 768px) and (max-width: 1199.98px) {
    .heat-trends-page :is(.plot-advwarn-thresh-grid, .plot-events-metric-grid) > [class*="col-"]:nth-child(2n) {
        border-left: 1px solid rgba(128, 128, 128, 0.45);
    }
}
@media (min-width: 1200px) {
    .heat-trends-page :is(.plot-advwarn-thresh-grid, .plot-events-metric-grid) > [class*="col-"]:not(:first-child) {
        border-left: 1px solid rgba(128, 128, 128, 0.45);
    }
}
.plot-thresh-card .plot-crit-title-static {
    font-weight: 600;
    line-height: 1.1;
}
.plot-thresh-card .plot-crit-plot-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}
.plot-thresh-card {
    overflow: hidden;
}
.plot-thresh-card .plot-crit-plot-col {
    min-width: 0;
}
.plot-thresh-card .plot-crit-plot {
    width: 100%;
    max-width: 100%;
    height: 160px;
    overflow: hidden;
}
@media (max-width: 767.98px) {
    .plot-thresh-controls {
        grid-template-columns: 1fr;
    }
    .plot-thresh-card .plot-crit-plot-pair {
        grid-template-columns: 1fr;
    }
    .heat-trends-page .plot-advwarn-thresh-shell {
        padding: 0.9rem;
    }
}
.plot-thresh-card .plot-crit-plot .js-plotly-plot {
    width: 100% !important;
    max-width: 100% !important;
}
.plot-thresh-slider-wrap {
    min-width: 240px;
    max-width: 340px;
}
.plot-thresh-slider-row {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 0.25rem;
}
.plot-thresh-slider-row .form-label {
    display: inline-block;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-skip-ink: none;
    text-underline-offset: 0.25em;
    white-space: nowrap;
}
.plot-thresh-slider-value {
    display: inline;
    margin-left: 0;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
}
.plot-thresh-slider-value::after {
    content: " °F";
}
.plot-thresh-mode-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0.25rem 0 0.35rem 0;
    font-size: 1rem;
}
.plot-thresh-mode-label {
    font-size: inherit;
    color: #212529;
    font-weight: 600;
}
.plot-thresh-mode-muted {
    color: #6c757d;
}
.plot-thresh-mode-link {
    border: 0;
    background: transparent;
    padding: 0;
    font-size: inherit;
    color: #1b5e20;
    text-decoration: underline;
    font-weight: 600;
}
.plot-thresh-mode-sep {
    color: #6c757d;
}
.plot-ym-mode-link {
    border: 0;
    background: transparent;
    padding: 0;
    color: #1b5e20;
    text-decoration: underline;
    text-underline-offset: 0.16em;
    font-weight: 600;
}
.plot-ym-mode-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    min-width: 0;
}
.plot-ym-mode-row > .plot-detail-section-line {
    margin-left: 0.15rem;
    min-width: 0;
}
.plot-ym-mode-label {
    color: #212529;
    font-weight: 600;
}
.plot-ym-mode-muted {
    color: #6c757d;
}
.plot-thresh-plot {
    min-height: 200px;
}
.plot-thresh-slider-wrap .form-range {
    --plot-thresh-slider-progress: 33.333%;
    --plot-thresh-slider-fill: #343a40;
    --plot-thresh-slider-track: rgba(73, 80, 87, 0.28);
    --plot-thresh-slider-background: linear-gradient(to right, var(--plot-thresh-slider-fill) 0, var(--plot-thresh-slider-fill) var(--plot-thresh-slider-progress), var(--plot-thresh-slider-track) var(--plot-thresh-slider-progress), var(--plot-thresh-slider-track) 100%);
    accent-color: #495057;
    background: transparent;
    border-radius: 0;
    height: 1rem;
    padding: 0;
}
.plot-thresh-slider-wrap .form-range::-webkit-slider-thumb {
    background-color: #495057;
    -webkit-appearance: none;
    appearance: none;
    width: 1rem;
    height: 1rem;
    border: 0;
    border-radius: 50%;
    margin-top: -0.3125rem;
}
.plot-thresh-slider-wrap .form-range::-webkit-slider-runnable-track {
    height: 0.375rem;
    border-radius: 999px;
    background: var(--plot-thresh-slider-background);
}
.plot-thresh-slider-wrap .form-range::-moz-range-thumb {
    background-color: #495057;
    border: 0;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
}
.plot-thresh-slider-wrap .form-range::-moz-range-progress {
    background-color: var(--plot-thresh-slider-fill);
    height: 0.375rem;
    border-radius: 999px;
}
.plot-thresh-slider-wrap .form-range::-moz-range-track {
    background-color: var(--plot-thresh-slider-track);
    height: 0.375rem;
    border-radius: 999px;
}
.plot-thresh-slider-wrap .form-range::-ms-thumb {
    background-color: #495057;
}
.plot-thresh-slider-wrap .form-range::-ms-fill-lower {
    background-color: var(--plot-thresh-slider-fill);
}
.plot-thresh-slider-wrap .form-range::-ms-fill-upper {
    background-color: var(--plot-thresh-slider-track);
}
.plot-thresh-slider-wrap .form-range::-ms-track {
    background-color: transparent;
    border-color: transparent;
    color: transparent;
}
.heat-trends-page .plot-events-summary {
    margin-top: 0;
}
.heat-trends-page .plot-events-about {
    margin: 1rem 0 1.25rem;
}
.heat-trends-page .plot-events-about-shell {
    border-radius: 14px;
    padding: 0.75rem 1rem 1.1rem;
}
.heat-trends-page .plot-events-about-body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.heat-trends-page .plot-events-about-copy {
    margin: 0;
    color: #1f2933;
    font-size: 1rem;
    line-height: 1.5;
}
.heat-trends-page .plot-events-about-table {
    width: 100%;
    margin: 0;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0.55rem 0;
}
.heat-trends-page .plot-events-about-table > :not(caption) > * > * {
    padding: 0;
    border: 0;
    background: transparent;
}
.heat-trends-page .plot-events-about-table-cell {
    width: 25%;
    padding: 0.8rem 1rem !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-left: 0.45rem solid rgb(var(--plot-events-about-rgb)) !important;
    border-radius: 0.75rem;
    background-color: rgba(var(--plot-events-about-rgb), 0.5) !important;
    color: #111;
    font-size: 0.98rem;
    line-height: 1.45;
    vertical-align: top;
}
.heat-trends-page .plot-events-about-table > :not(caption) > * > :nth-child(1) {
    width: 22.5%;
}
.heat-trends-page .plot-events-about-table > :not(caption) > * > :nth-child(2) {
    width: 22.5%;
}
.heat-trends-page .plot-events-about-table > :not(caption) > * > :nth-child(3),
.heat-trends-page .plot-events-about-table > :not(caption) > * > :nth-child(4) {
    width: 32.5%;
}
.heat-trends-page .plot-events-about-table-cell b {
    font-weight: 700;
}
.heat-trends-page .plot-events-summary-top {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    margin-bottom: 0.35rem;
}
.heat-trends-page .plot-events-summary-legend {
    position: sticky;
    top: calc(var(--nav-height, 72px) + 8px);
    align-self: start;
    z-index: 30;
}
@media (max-width: 992px) {
    .heat-trends-page .plot-events-summary-legend {
        position: static;
        top: auto;
    }
}
.heat-trends-page #plot-results-events-pane .plot-detail-legend-swatch {
    margin: 0 -1px 0 0;
    flex: 0 0 12px;
}
.heat-trends-page .plot-events-summary-layout {
    display: block;
}
.heat-trends-page .plot-events-summary-main {
    min-width: 0;
}
.heat-trends-page #plot-results-events-pane .plot-events-summary-main {
    width: 100% !important;
    max-width: none !important;
}
.heat-trends-page #plot-results-events-pane .plot-inline-legend-host.plot-inline-legend-host-summary {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    min-width: 0;
    margin-top: 0.95rem;
    margin-bottom: 0;
}
.heat-trends-page #plot-results-events-pane .plot-inline-legend-host.plot-inline-legend-host-summary .plot-detail-legend:not(.is-collapsed) .plot-detail-legend-list {
    border-bottom: 0;
    padding-bottom: 0.1rem;
}

/* Summary and detail legends */

.heat-trends-page #plot-results-events-pane #plot-events-summary-legend,
.heat-trends-page #plot-heat-events-card #plot-heat-events-legend,
.heat-trends-page #plot-thresh-card #plot-thresh-legend {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    width: max-content;
    max-width: 100%;
    margin-top: 0;
    padding: 0.86rem 0.82rem 0.72rem;
    border: 1px solid var(--plot-emphasis-shell-border);
    border-radius: 1rem;
    background: var(--plot-emphasis-shell-bg);
    box-shadow: var(--plot-emphasis-shell-shadow);
}
.heat-trends-page #plot-thresh-card #plot-thresh-legend {
    margin-bottom: 0;
}
.heat-trends-page #plot-results-events-pane #plot-events-summary-legend-listwrap,
.heat-trends-page #plot-heat-events-card #plot-heat-events-legend-listwrap,
.heat-trends-page #plot-thresh-card #plot-thresh-legend-listwrap {
    width: auto;
    max-width: 100%;
}
.heat-trends-page #plot-results-events-pane #plot-events-summary-legend-list,
.heat-trends-page #plot-heat-events-card #plot-heat-events-legend-list,
.heat-trends-page #plot-thresh-card #plot-thresh-legend-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.45rem 1rem;
    width: auto;
    max-width: 100%;
    margin: 0;
}
.heat-trends-page #plot-results-events-pane #plot-events-summary-legend-toggle,
.heat-trends-page #plot-heat-events-card #plot-heat-events-legend-toggle,
.heat-trends-page #plot-thresh-card #plot-thresh-legend-toggle {
    width: fit-content;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.42rem;
    padding: 0.18rem 0.78rem;
    margin: -1.5rem auto 0.2rem;
    border: 1px solid var(--plot-emphasis-shell-border);
    border-radius: 5px;
    background: var(--plot-emphasis-fill);
    color: #fff;
}
.heat-trends-page #plot-results-events-pane #plot-events-summary-legend-toggle,
.heat-trends-page #plot-thresh-card #plot-thresh-legend-toggle {
    text-align: center;
}
.heat-trends-page #plot-results-events-pane #plot-events-summary-legend-toggle[aria-expanded="false"],
.heat-trends-page #plot-heat-events-card #plot-heat-events-legend-toggle[aria-expanded="false"],
.heat-trends-page #plot-thresh-card #plot-thresh-legend-toggle[aria-expanded="false"] {
    margin: -1.5rem auto 0.2rem;
}
.heat-trends-page #plot-results-events-pane #plot-events-summary-legend-toggle:hover,
.heat-trends-page #plot-heat-events-card #plot-heat-events-legend-toggle:hover,
.heat-trends-page #plot-thresh-card #plot-thresh-legend-toggle:hover {
    background: var(--plot-emphasis-fill-hover);
}
.heat-trends-page #plot-results-events-pane #plot-events-summary-legend-toggle:hover .plot-detail-legend-title,
.heat-trends-page #plot-heat-events-card #plot-heat-events-legend-toggle:hover .plot-detail-legend-title,
.heat-trends-page #plot-thresh-card #plot-thresh-legend-toggle:hover .plot-detail-legend-title {
    text-decoration: none;
}
.heat-trends-page #plot-results-events-pane #plot-events-summary-legend-toggle:focus-visible,
.heat-trends-page #plot-heat-events-card #plot-heat-events-legend-toggle:focus-visible,
.heat-trends-page #plot-thresh-card #plot-thresh-legend-toggle:focus-visible {
    outline: 2px solid var(--plot-emphasis-focus-ring);
    outline-offset: 2px;
}
.heat-trends-page #plot-results-events-pane #plot-events-summary-legend .plot-detail-legend-title,
.heat-trends-page #plot-heat-events-card #plot-heat-events-legend .plot-detail-legend-title,
.heat-trends-page #plot-thresh-card #plot-thresh-legend .plot-detail-legend-title {
    display: inline-flex;
    align-items: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 1.05rem;
    font-weight: 400;
    line-height: 1;
    margin: 0;
}
.heat-trends-page #plot-results-events-pane #plot-events-summary-legend .plot-detail-legend-chevron,
.heat-trends-page #plot-heat-events-card #plot-heat-events-legend .plot-detail-legend-chevron,
.heat-trends-page #plot-thresh-card #plot-thresh-legend .plot-detail-legend-chevron {
    width: 0.72rem;
    height: 0.72rem;
    position: relative;
    flex: 0 0 auto;
    transform: none;
}
.heat-trends-page #plot-results-events-pane #plot-events-summary-legend .plot-detail-legend-chevron::before,
.heat-trends-page #plot-results-events-pane #plot-events-summary-legend .plot-detail-legend-chevron::after,
.heat-trends-page #plot-heat-events-card #plot-heat-events-legend .plot-detail-legend-chevron::before,
.heat-trends-page #plot-heat-events-card #plot-heat-events-legend .plot-detail-legend-chevron::after,
.heat-trends-page #plot-thresh-card #plot-thresh-legend .plot-detail-legend-chevron::before,
.heat-trends-page #plot-thresh-card #plot-thresh-legend .plot-detail-legend-chevron::after {
    background: transparent;
}
.heat-trends-page #plot-results-events-pane #plot-events-summary-legend .plot-detail-legend-chevron::before,
.heat-trends-page #plot-heat-events-card #plot-heat-events-legend .plot-detail-legend-chevron::before,
.heat-trends-page #plot-thresh-card #plot-thresh-legend .plot-detail-legend-chevron::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-left: 0.24rem solid transparent;
    border-right: 0.24rem solid transparent;
    border-top: 0.34rem solid #fff;
    transform: translate(-50%, -35%);
}
.heat-trends-page #plot-results-events-pane #plot-events-summary-legend .plot-detail-legend-chevron::after,
.heat-trends-page #plot-heat-events-card #plot-heat-events-legend .plot-detail-legend-chevron::after,
.heat-trends-page #plot-thresh-card #plot-thresh-legend .plot-detail-legend-chevron::after {
    content: none;
}
.heat-trends-page #plot-results-events-pane #plot-events-summary-legend-toggle[aria-expanded="false"] .plot-detail-legend-chevron,
.heat-trends-page #plot-heat-events-card #plot-heat-events-legend-toggle[aria-expanded="false"] .plot-detail-legend-chevron,
.heat-trends-page #plot-thresh-card #plot-thresh-legend-toggle[aria-expanded="false"] .plot-detail-legend-chevron {
    transform: none;
}
.heat-trends-page #plot-results-events-pane #plot-events-summary-legend-toggle[aria-expanded="false"] .plot-detail-legend-chevron::before,
.heat-trends-page #plot-heat-events-card #plot-heat-events-legend-toggle[aria-expanded="false"] .plot-detail-legend-chevron::before,
.heat-trends-page #plot-thresh-card #plot-thresh-legend-toggle[aria-expanded="false"] .plot-detail-legend-chevron::before {
    border-top: 0.24rem solid transparent;
    border-bottom: 0.24rem solid transparent;
    border-left: 0.34rem solid #fff;
    border-right: 0;
    transform: translate(-42%, -50%);
}
.heat-trends-page #plot-results-events-pane #plot-events-summary-legend .plot-detail-legend-body,
.heat-trends-page #plot-heat-events-card #plot-heat-events-legend .plot-detail-legend-body,
.heat-trends-page #plot-thresh-card #plot-thresh-legend .plot-detail-legend-body {
    padding: 0.16rem 0 0.02rem;
    align-items: center;
    width: auto;
    max-width: 100%;
}
.heat-trends-page #plot-results-events-pane #plot-events-summary-legend.is-collapsed .plot-detail-legend-body,
.heat-trends-page #plot-heat-events-card #plot-heat-events-legend.is-collapsed .plot-detail-legend-body,
.heat-trends-page #plot-thresh-card #plot-thresh-legend.is-collapsed .plot-detail-legend-body {
    display: none;
}
.heat-trends-page #plot-results-events-pane #plot-events-summary-legend .plot-detail-legend-label,
.heat-trends-page #plot-results-events-pane #plot-events-summary-legend .plot-detail-legend-empty,
.heat-trends-page #plot-heat-events-card #plot-heat-events-legend .plot-detail-legend-label,
.heat-trends-page #plot-heat-events-card #plot-heat-events-legend .plot-detail-legend-empty,
.heat-trends-page #plot-thresh-card #plot-thresh-legend .plot-detail-legend-label,
.heat-trends-page #plot-thresh-card #plot-thresh-legend .plot-detail-legend-empty {
    font-size: 1rem;
}
.heat-trends-page #plot-results-events-pane .plot-events-summary, .heat-trends-page #plot-results-events-pane .plot-events-summary-main {
    padding-right: 0 !important;
    margin-right: 0 !important;
}
.heat-trends-page .plot-events-summary-shell--plain {
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0;
}
.heat-trends-page :is(.plot-card-head, .plot-events-summary-head) {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.9rem 1rem;
    margin-bottom: 0.75rem;
    padding: 0 0 0.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}
.heat-trends-page :is(.plot-card-head-left, .plot-events-summary-left) {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
    min-width: 0;
    padding-top: 0.22rem;
}
.heat-trends-page .plot-card-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.55rem;
    width: 100%;
    min-width: 0;
}
.heat-trends-page :is(.plot-card-title, .plot-events-summary-title) {
    display: block;
    font-family: "Oswald", Arial, Helvetica, sans-serif;
    font-size: 1.2rem;
    line-height: 1.1;
    margin: 0;
    flex: 0 1 auto;
    min-width: 0;
}
.heat-trends-page :is(.plot-card-head, .plot-events-summary-head):is(.plot-card-head-has-actions, .plot-events-summary-head-has-actions) :is(.plot-card-head-left, .plot-events-summary-left) {
    min-width: 0;
}
.heat-trends-page :is(.plot-card-actions, .plot-events-summary-actions) {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 0.45rem;
    flex-wrap: wrap;
    flex: 0 0 auto;
    margin-left: auto;
    min-width: 0;
}
.heat-trends-page :is(.plot-card-actions, .plot-events-summary-actions) .btn {
    font-size: 0.9rem;
    line-height: 1.2;
    white-space: nowrap;
}
.heat-trends-page :is(#plot-results-overview-pane, #plot-results-events-pane, #plot-results-thresholds-pane, #plot-results-graphs-pane) .plot-inline-legend-export-pane .btn {
    color: #3f474f;
    border-color: rgba(63, 71, 79, 0.52);
    background: rgba(27, 94, 32, 0.03);
}
.heat-trends-page :is(#plot-results-overview-pane, #plot-results-events-pane, #plot-results-thresholds-pane, #plot-results-graphs-pane) .plot-inline-legend-export-pane .btn:hover,
.heat-trends-page :is(#plot-results-overview-pane, #plot-results-events-pane, #plot-results-thresholds-pane, #plot-results-graphs-pane) .plot-inline-legend-export-pane .btn:focus-visible {
    color: #fff;
    border-color: #1b5e20;
    background: #1b5e20;
    box-shadow: none;
}
.heat-trends-page :is(.plot-inline-legend-export-pane, .plot-card-actions, .plot-events-summary-actions) .btn.is-export-busy,
.heat-trends-page :is(.plot-inline-legend-export-pane, .plot-card-actions, .plot-events-summary-actions) .btn.is-export-busy:hover,
.heat-trends-page :is(.plot-inline-legend-export-pane, .plot-card-actions, .plot-events-summary-actions) .btn.is-export-busy:focus-visible,
.heat-trends-page :is(.plot-inline-legend-export-pane, .plot-card-actions, .plot-events-summary-actions) .btn.is-export-busy:disabled {
    color: #3f474f;
    border-color: rgba(63, 71, 79, 0.52);
    background: rgba(27, 94, 32, 0.03);
    box-shadow: none;
    opacity: 1;
    cursor: wait;
}
.heat-trends-page :is(.plot-card-subtitle, .plot-card-note, .plot-events-summary-note, .plot-detail-subtitle) {
    color: #6c757d;
    max-width: none;
    font-size: 1.1rem;
    line-height: 1.15;
    font-weight: 400;
    font-family: "Oswald", Arial, Helvetica, sans-serif !important;
    margin: 0;
    display: block;
    flex: 0 1 auto;
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
}
.heat-trends-page .plot-events-summary-shell .plot-metric-plot {
    min-height: 120px;
}
.heat-trends-page .plot-events-summary-shell .plot-metric-plot-layout {
    grid-template-columns: minmax(0, 1fr);
    column-gap: 0;
}
.heat-trends-page .plot-events-summary-shell .plot-metric-axis-label {
    display: block;
    min-height: 0;
    margin: -0.2rem 0 0.14rem;
    font-family: Arial, var(--bs-body-font-family, sans-serif), sans-serif;
    font-size: 0.82rem;
    font-weight: 400;
    line-height: 1.2;
    color: rgba(0, 0, 0, 0.55);
    text-align: center;
    writing-mode: horizontal-tb;
    transform: none;
    letter-spacing: 0;
    text-decoration: none;
}
.heat-trends-page .plot-events-summary-shell .plot-metric-card:not(.plot-thresh-card) .plot-metric-plot-label {
    width: 100%;
    margin: 0;
    padding: 0;
    color: #000;
    font-weight: 700;
    text-decoration: none;
}
.heat-trends-page .plot-events-summary-shell .plot-metric-card:not(.plot-thresh-card) .plot-metric-plot-label-spacer {
    margin-top: 0.5rem;
}
@media (max-width: 1100px) {
    .heat-trends-page #plot-events-summary :is(.plot-card-head, .plot-events-summary-head) {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.6rem;
    }
    .heat-trends-page #plot-events-summary :is(.plot-card-actions, .plot-events-summary-actions) {
        width: 100%;
        margin-left: 0;
        justify-content: flex-start;
        align-items: flex-start;
    }
}
@media (max-width: 992px) {
    .heat-trends-page .plot-events-summary-layout {
        grid-template-columns: 1fr;
    }
    .heat-trends-page :is(.plot-card-head, .plot-events-summary-head) {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.6rem;
    }
    .heat-trends-page :is(.plot-card-actions, .plot-events-summary-actions) {
        margin-left: 0;
        align-items: flex-start;
        justify-content: flex-start;
        width: 100%;
    }
}
@media (max-width: 767.98px) {
    .heat-trends-page .plot-events-about-shell {
        padding: 0.9rem;
    }
    .heat-trends-page .plot-events-about-table-cell {
        padding: 0.72rem 0.85rem !important;
    }
    .heat-trends-page .plot-metric-plot-layout {
        grid-template-columns: 1.45rem minmax(0, 1fr);
        column-gap: 0.3rem;
    }
    .heat-trends-page .plot-metric-axis-label {
        font-size: 0.86rem;
    }
}
@media (max-width: 992px) {
    .heat-trends-page .plot-events-metric-grid > [class*="col-"] {
        border-left: 0;
    }
}
.heat-trends-page .plot-thresholds-sec-body {
    width: 100%;
}
.heat-trends-page :is(#plot-heat-events-card, #plot-nys-adv-card, #plot-nys-warn-card, #plot-nat-adv-card, #plot-nat-warn-card) .plot-detail-toolbar {
    display: grid;
    grid-template-columns: minmax(160px, 1fr) minmax(260px, auto) minmax(200px, 1fr);
    gap: 1.25rem;
    align-items: start;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.heat-trends-page #plot-heat-events-card :is(.plot-card-head, .plot-detail-toolbar) {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.9rem 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}
.heat-trends-page :is(#plot-heat-events-card, #plot-nys-adv-card, #plot-nys-warn-card, #plot-nat-adv-card, #plot-nat-warn-card) .plot-events-summary-detail-left, .heat-trends-page :is(#plot-heat-events-card, #plot-nys-adv-card, #plot-nys-warn-card, #plot-nat-adv-card, #plot-nat-warn-card) .plot-events-summary-detail-center, .heat-trends-page :is(#plot-heat-events-card, #plot-nys-adv-card, #plot-nys-warn-card, #plot-nat-adv-card, #plot-nat-warn-card) .plot-events-summary-detail-right {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    min-width: 0;
}
.heat-trends-page :is(#plot-nys-adv-card, #plot-nys-warn-card, #plot-nat-adv-card, #plot-nat-warn-card) .plot-events-summary-detail-left {
    align-items: flex-start;
}
.heat-trends-page :is(#plot-nys-adv-card, #plot-nys-warn-card, #plot-nat-adv-card, #plot-nat-warn-card) .plot-events-summary-detail-center {
    align-items: center;
    text-align: center;
}
.heat-trends-page :is(#plot-nys-adv-card, #plot-nys-warn-card, #plot-nat-adv-card, #plot-nat-warn-card) .plot-events-summary-detail-right {
    align-items: flex-end;
    text-align: right;
}
.heat-trends-page :is(#plot-nys-adv-card, #plot-nys-warn-card, #plot-nat-adv-card, #plot-nat-warn-card) .plot-events-summary-detail-center .plot-detail-controls-panel, .heat-trends-page :is(#plot-nys-adv-card, #plot-nys-warn-card, #plot-nat-adv-card, #plot-nat-warn-card) .plot-events-summary-detail-right .plot-detail-controls-panel {
    width: 100%;
}
.heat-trends-page :is(#plot-nys-adv-card, #plot-nys-warn-card, #plot-nat-adv-card, #plot-nat-warn-card) .plot-events-summary-detail-right .plot-detail-controls-panel {
    align-items: flex-end;
}
.heat-trends-page :is(#plot-nys-adv-card, #plot-nys-warn-card, #plot-nat-adv-card, #plot-nat-warn-card) .plot-events-summary-detail-right .plot-detail-subopts {
    padding-right: 0.35rem;
}
.heat-trends-page :is(#plot-nys-adv-card, #plot-nys-warn-card, #plot-nat-adv-card, #plot-nat-warn-card) .plot-events-summary-detail-right .plot-detail-subopt-row {
    justify-content: flex-end;
}
.heat-trends-page #plot-heat-events-card .plot-heat-events-title-row {
    align-items: baseline;
}
.heat-trends-page #plot-heat-events-card .plot-heat-events-title-row .plot-heat-events-filter-wrap {
    margin-right: 0.12rem;
    top: -2px;
}
.heat-trends-page #plot-heat-events-card :is(.plot-card-head-left, .plot-events-summary-detail-left) {
    flex: 1 1 auto;
    min-width: 0;
}
.heat-trends-page #plot-heat-events-card :is(.plot-card-actions, .plot-events-summary-actions) {
    margin-left: auto;
    justify-content: flex-end;
    align-self: flex-start;
}
.heat-trends-page #plot-heat-events-card .plot-heat-events-options-stack.plot-detail-options-card, .heat-trends-page #plot-thresh-card .plot-inline-legend-export-row.plot-thresh-options-card {
    display: block;
    margin-bottom: 1rem;
    border-radius: 0.85rem;
}
.heat-trends-page #plot-heat-events-card .plot-heat-events-options-stack.plot-detail-options-card, .heat-trends-page #plot-thresh-card .plot-inline-legend-export-row.plot-thresh-options-card {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    width: 100%;
    border: 0;
    overflow: visible;
    background: transparent;
}
.heat-trends-page #plot-heat-events-card .plot-detail-options-card-body, .heat-trends-page #plot-thresh-card .plot-thresh-options-card .plot-detail-options-card-body {
    padding: 0.3rem 0 0.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    background-color: transparent;
}
.heat-trends-page #plot-heat-events-card .plot-detail-options-card-body {
    align-items: stretch;
    width: 100% !important;
    max-width: none;
    min-width: 0;
    flex: 0 0 auto;
    padding: 0.3rem 0 0.2rem;
    gap: 0.45rem;
}
.heat-trends-page #plot-thresh-card .plot-thresh-options-card .plot-detail-options-card-body {
    align-items: stretch;
    width: 100%;
    max-width: none;
    min-width: 0;
    flex: 0 0 auto;
    gap: 0.95rem;
}
.heat-trends-page #plot-heat-events-card .plot-detail-options-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(14rem, 1fr));
    gap: 0.45rem clamp(0.9rem, 2.4vw, 2.4rem);
    align-items: start;
    justify-content: stretch;
    justify-items: stretch;
    width: 100%;
    max-width: 100%;
    flex: 1 1 auto;
    min-width: 0;
}
.heat-trends-page #plot-heat-events-card .plot-detail-options-row .plot-detail-control-fieldset,
.heat-trends-page #plot-thresh-card .plot-thresh-options-row .plot-detail-control-fieldset {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    gap: 0.42rem;
    width: 100%;
    min-width: 0;
    min-inline-size: 0;
    margin: 0;
    padding: 0.86rem 0.82rem 0.4rem;
    border: 1px solid var(--plot-emphasis-shell-border);
    border-radius: 1rem;
    background: var(--plot-emphasis-shell-bg);
    box-shadow: var(--plot-emphasis-shell-shadow);
    align-self: stretch;
}
.heat-trends-page #plot-heat-events-card .plot-detail-options-row .plot-detail-controls-title,
.heat-trends-page #plot-thresh-card .plot-thresh-options-row .plot-detail-controls-title {
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    display: table;
    white-space: nowrap;
    margin: -1.5rem auto 0.05rem;
    padding: 0;
    border: 0;
    max-width: 100%;
    line-height: 1;
    position: relative;
    z-index: 1;
}
.heat-trends-page #plot-heat-events-card .plot-detail-options-row .plot-detail-controls-title strong,
.heat-trends-page #plot-thresh-card .plot-thresh-options-row .plot-detail-controls-title strong {
    display: inline-flex;
    align-items: center;
    padding: 0.18rem 0.72rem;
    border-radius: 5px;
    border: 1px solid var(--plot-emphasis-shell-border);
    background: var(--plot-emphasis-fill);
    color: #fff;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}
.heat-trends-page #plot-heat-events-card .plot-detail-options-row :is(.plot-detail-metric, .plot-detail-subopts, .plot-detail-view-wrap) {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    max-width: none;
}
.heat-trends-page #plot-heat-events-card .plot-detail-options-row .plot-detail-controls-view {
    justify-content: center;
}
.heat-trends-page #plot-heat-events-card .plot-detail-options-row .plot-detail-controls-view .plot-detail-view-wrap {
    flex: 1 1 auto;
    width: auto;
    min-height: 0;
    justify-content: center;
}
.heat-trends-page #plot-heat-events-card .plot-detail-options-row .plot-detail-metric .plot-detail-subopt-row {
    justify-content: center;
    gap: 0.55rem;
    flex-wrap: nowrap;
}
.heat-trends-page #plot-heat-events-card .plot-detail-options-row .plot-detail-subopt-row {
    justify-content: center;
    gap: 0.75rem;
}
.heat-trends-page #plot-heat-events-card .plot-detail-options-row .plot-detail-metric .form-check, .heat-trends-page #plot-heat-events-card .plot-detail-options-row .plot-detail-subopt-row .form-check, .heat-trends-page #plot-thresh-card .plot-thresh-options-row .plot-thresh-detail-temp .form-check {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.44rem;
}
.heat-trends-page #plot-heat-events-card .plot-detail-options-row .form-check-label, .heat-trends-page #plot-thresh-card .plot-thresh-options-row .plot-thresh-detail-temp .form-check-label {
    font-size: 1rem;
}
.heat-trends-page #plot-heat-events-card .plot-detail-options-row .form-check-input, .heat-trends-page #plot-thresh-card .plot-thresh-options-row .plot-thresh-detail-temp .form-check-input {
    margin-top: 0;
}
.heat-trends-page #plot-heat-events-card .plot-detail-subopts {
    padding-right: 0 !important;
}
.heat-trends-page #plot-heat-events-card .plot-detail-subopt {
    justify-content: center;
}
.heat-trends-page #plot-heat-events-card .plot-detail-view-wrap {
    width: auto;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.heat-trends-page #plot-heat-events-card .plot-detail-view-wrap .plot-detail-subopt-difference {
    width: auto;
    display: flex;
    opacity: 1;
}
.heat-trends-page #plot-heat-events-card .plot-detail-view-wrap .plot-detail-subopt-row-switch {
    width: auto;
    justify-content: center;
    align-items: center;
    gap: 0.35rem;
}
.heat-trends-page #plot-heat-events-card .plot-detail-view-wrap .plot-detail-subopt-row-switch::before {
    content: "Values";
    font-size: 1rem;
    font-weight: 400;
    color: inherit;
}
.heat-trends-page #plot-heat-events-card .plot-detail-view-wrap .plot-detail-subopt-row-switch .switch-form {
    margin-left: 0;
}
.heat-trends-page #plot-heat-events-card .plot-detail-view-wrap .plot-detail-subopt-row-switch .form-check-label {
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: normal;
    color: inherit;
}
.heat-trends-page #plot-heat-events-card .plot-heat-events-options-stack.plot-detail-options-card .plot-inline-legend-host, .heat-trends-page #plot-thresh-card .plot-inline-legend-export-row.plot-thresh-options-card .plot-inline-legend-host {
    margin-top: 0.08rem;
    margin-bottom: 0;
}
.heat-trends-page #plot-heat-events-card .plot-heat-events-options-stack.plot-detail-options-card .plot-inline-legend-host {
    display: flex !important;
    justify-content: center;
    align-items: flex-start;
    align-self: stretch;
    flex: 0 0 auto;
    margin-left: auto;
    margin-right: auto;
    min-width: 0;
    width: 100% !important;
    max-width: none;
    margin-top: 0.95rem;
}
.heat-trends-page #plot-heat-events-card .plot-inline-legend-host .plot-detail-legend:not(.is-collapsed) .plot-detail-legend-list, .heat-trends-page #plot-thresh-card .plot-inline-legend-host .plot-detail-legend:not(.is-collapsed) .plot-detail-legend-list {
    border-bottom: 0;
    padding-bottom: 0.1rem;
}
.heat-trends-page #plot-heat-events-card .plot-inline-legend-host .plot-detail-legend-body, .heat-trends-page #plot-thresh-card .plot-inline-legend-host .plot-detail-legend-body {
    padding-bottom: 0.15rem;
}
@media (max-width: 992px) {
    .heat-trends-page :is(#plot-nys-adv-card, #plot-nys-warn-card, #plot-nat-adv-card, #plot-nat-warn-card) .plot-detail-toolbar {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .heat-trends-page :is(#plot-nys-adv-card, #plot-nys-warn-card, #plot-nat-adv-card, #plot-nat-warn-card) .plot-events-summary-detail-left, .heat-trends-page :is(#plot-nys-adv-card, #plot-nys-warn-card, #plot-nat-adv-card, #plot-nat-warn-card) .plot-events-summary-detail-center, .heat-trends-page :is(#plot-nys-adv-card, #plot-nys-warn-card, #plot-nat-adv-card, #plot-nat-warn-card) .plot-events-summary-detail-right {
        align-items: center;
        text-align: center;
    }
    .heat-trends-page :is(#plot-nys-adv-card, #plot-nys-warn-card, #plot-nat-adv-card, #plot-nat-warn-card) .plot-events-summary-detail-right .plot-detail-controls-panel {
        align-items: center;
    }
    .heat-trends-page :is(#plot-nys-adv-card, #plot-nys-warn-card, #plot-nat-adv-card, #plot-nat-warn-card) .plot-events-summary-detail-right .plot-detail-subopts {
        padding-right: 0;
    }
    .heat-trends-page :is(#plot-nys-adv-card, #plot-nys-warn-card, #plot-nat-adv-card, #plot-nat-warn-card) .plot-events-summary-detail-right .plot-detail-subopt-row {
        justify-content: center;
    }
    .heat-trends-page #plot-heat-events-card :is(.plot-card-head, .plot-detail-toolbar), .heat-trends-page #plot-thresh-card :is(.plot-card-head, .plot-thresh-toolbar) {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.6rem;
    }
    .heat-trends-page #plot-heat-events-card :is(.plot-card-head, .plot-detail-toolbar) .plot-inline-legend-export-pane, .heat-trends-page #plot-thresh-card :is(.plot-card-head, .plot-thresh-toolbar) .plot-inline-legend-export-pane {
        justify-content: flex-start;
    }
}
@media (max-width: 1200px) {
    .heat-trends-page #plot-heat-events-card .plot-detail-options-card-body {
        flex-direction: column;
        align-items: stretch;
        flex-wrap: nowrap;
    }
    .heat-trends-page #plot-heat-events-card .plot-detail-options-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.55rem 1rem;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        flex: 1 1 auto;
    }
    .heat-trends-page #plot-heat-events-card .plot-heat-events-options-stack.plot-detail-options-card .plot-inline-legend-host {
        margin-left: 0;
        min-width: 0;
        width: 100%;
    }
    .heat-trends-page #plot-heat-events-card .plot-detail-options-row .plot-detail-controls-view {
        grid-column: 1 / -1;
    }
    .heat-trends-page #plot-heat-events-card .plot-detail-options-row .plot-detail-metric .plot-detail-subopt-row {
        flex-wrap: wrap;
    }
}
@media (max-width: 768px) {
    .heat-trends-page #plot-heat-events-card .plot-detail-options-row {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 0.9rem;
    }
    .heat-trends-page #plot-heat-events-card .plot-detail-options-row .plot-detail-control-fieldset {
        padding-inline: 0.8rem;
    }
}
.heat-trends-page #plot-thresh-card .plot-detail-body {
    padding-top: 0;
}
.heat-trends-page #plot-thresh-card :is(.plot-card-head-left, .plot-thresh-head-left) {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
    text-align: left;
    min-width: 0;
    flex: 1 1 auto;
}
.heat-trends-page #plot-thresh-card :is(.plot-card-head, .plot-thresh-toolbar) .plot-inline-legend-export-pane {
    padding: 0;
}
.heat-trends-page #plot-thresh-card :is(.plot-card-head, .plot-thresh-toolbar) :is(.plot-thresh-export-png-btn, .plot-thresh-export-csv-btn) {
    padding: 0.25rem 0.5rem;
    margin: 0;
}
.heat-trends-page #plot-thresh-card .plot-thresh-options-row {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 0.45rem clamp(0.9rem, 2.4vw, 2rem);
    align-items: start;
    justify-content: stretch;
    justify-items: stretch;
    width: min(100%, 82rem);
    max-width: 100%;
    margin: 0 auto;
}
.heat-trends-page #plot-thresh-card .plot-thresh-options-row .plot-thresh-detail-temp {
    text-align: center;
    justify-self: end;
    width: min(100%, 28rem);
}
.heat-trends-page #plot-thresh-card .plot-thresh-options-row .plot-thresh-detail-temp .plot-detail-subopts {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    max-width: none;
    padding-right: 0 !important;
}
.heat-trends-page #plot-thresh-card .plot-thresh-options-row .plot-thresh-detail-temp .plot-detail-subopt {
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: 0.32rem;
}
.heat-trends-page #plot-thresh-card .plot-thresh-options-row .plot-thresh-detail-temp .plot-detail-subopt-row {
    justify-content: center;
    gap: 0.38rem 0.75rem;
    flex-wrap: wrap;
    width: 100%;
    margin-bottom: 0;
}
.heat-trends-page #plot-thresh-card .plot-thresh-options-row .plot-thresh-detail-temp .form-check-label {
    white-space: nowrap;
}
.heat-trends-page #plot-thresh-card .plot-thresh-options-row .plot-thresh-detail-temp .plot-thresh-option-wbgt {
    justify-content: center;
}
.heat-trends-page #plot-thresh-card .plot-thresh-options-row .plot-thresh-detail-temp .plot-thresh-health-row {
    gap: 0;
    margin-top: 0.05rem;
}
.heat-trends-page #plot-thresh-card .plot-thresh-options-row .plot-thresh-detail-temp .dock-temp-health-toggle.plot-thresh-health-toggle {
    border: 0;
    background: transparent;
    padding-bottom: 0.5rem;
    color: #1b5e20;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.heat-trends-page #plot-thresh-card .plot-thresh-options-row .plot-thresh-detail-temp .dock-temp-health-toggle.plot-thresh-health-toggle:focus-visible {
    outline: 2px solid rgba(27, 94, 32, 0.5);
    outline-offset: 2px;
}
.heat-trends-page #plot-thresh-card .plot-thresh-options-row .plot-thresh-detail-temp .dock-temp-health-toggle.plot-thresh-health-toggle[disabled],
.heat-trends-page #plot-thresh-card .plot-thresh-options-row .plot-thresh-detail-temp .dock-temp-health-toggle.plot-thresh-health-toggle[aria-disabled="true"] {
    color: #6c757d;
    text-decoration: none;
    cursor: default;
    opacity: 1;
}
.heat-trends-page #plot-thresh-card .plot-thresh-options-row .plot-thresh-detail-stat {
    text-align: center;
    justify-self: center;
    width: min(100%, 20rem);
}
.heat-trends-page #plot-thresh-card .plot-thresh-options-row .plot-thresh-detail-stat .plot-detail-subopt {
    justify-content: center;
}
.heat-trends-page #plot-thresh-card .plot-thresh-options-row .plot-thresh-detail-stat .plot-detail-subopt-row {
    justify-content: center;
    gap: 6px 12px;
    flex-wrap: wrap;
    margin-bottom: 0.15rem;
}
.heat-trends-page #plot-thresh-card .plot-thresh-options-row .plot-thresh-detail-stat .form-check-label {
    white-space: nowrap;
}
.heat-trends-page #plot-thresh-card .plot-thresh-options-row .plot-thresh-detail-thresh {
    text-align: center;
    justify-self: start;
    width: min(100%, 24rem);
}
.heat-trends-page #plot-thresh-card .plot-thresh-options-row .plot-thresh-slider-control-row {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0.9rem;
    width: min(100%, 27rem);
    min-width: 0;
    margin-top: 1rem;
}
.heat-trends-page #plot-thresh-card .plot-thresh-options-row .plot-thresh-slider-current {
    flex: 0 0 auto;
    min-width: 0;
    white-space: nowrap;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.1;
    color: #000;
    margin-top: -0.1rem;
}
.heat-trends-page #plot-thresh-card .plot-thresh-options-row .plot-thresh-slider-wrap {
    flex: 1 1 20rem;
    width: min(20rem, 100%);
    max-width: 20rem;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
    min-width: 0;
    padding-top: 0;
    margin-top: 0;
    transform: none;
}
.heat-trends-page #plot-thresh-card .plot-thresh-options-row #plot-thresh-slider {
    margin: 0;
}
.heat-trends-page #plot-thresh-card .plot-thresh-options-row .plot-thresh-slider-value {
    font-size: inherit;
    font-weight: inherit;
    font-variant-numeric: tabular-nums;
}
.heat-trends-page #plot-thresh-card .plot-thresh-options-row .plot-thresh-slider-extents {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.05rem;
    font-size: 1rem;
    line-height: 1.2;
    color: rgba(0, 0, 0, 0.65);
}
.heat-trends-page #plot-thresh-card .plot-thresh-options-row .plot-thresh-slider-extents :is(.plot-thresh-slider-min, .plot-thresh-slider-max) {
    white-space: nowrap;
}
.heat-trends-page #plot-thresh-card .plot-inline-legend-host.plot-inline-legend-host-threshold {
    display: flex !important;
    justify-content: center;
    align-items: flex-start;
    align-self: stretch;
    flex: 0 0 auto;
    margin-left: auto;
    margin-right: auto;
    min-width: 0;
    width: 100% !important;
    max-width: none;
    margin-top: 0.95rem;
    margin-bottom: 0;
}
.heat-trends-page #plot-results-events-pane .plot-detail-table-toggle, .heat-trends-page #plot-results-thresholds-pane #plot-thresh-card .plot-detail-table-toggle {
    display: flex;
    width: fit-content;
    margin-left: auto;
    align-items: center;
    gap: 0.3rem;
    color: #198754;
    font-weight: 500;
    text-decoration: none;
}
.heat-trends-page #plot-results-events-pane .plot-detail-table-toggle:hover, .heat-trends-page #plot-results-events-pane .plot-detail-table-toggle:focus-visible, .heat-trends-page #plot-results-thresholds-pane #plot-thresh-card .plot-detail-table-toggle:hover, .heat-trends-page #plot-results-thresholds-pane #plot-thresh-card .plot-detail-table-toggle:focus-visible {
    color: #157347;
    text-decoration: underline;
}
.heat-trends-page #plot-results-events-pane #plot-heat-events-card .plot-table-csv-actions[data-scenario] {
    justify-content: space-between;
    gap: 0.75rem;
}
.heat-trends-page #plot-results-events-pane #plot-heat-events-card .plot-table-csv-actions[data-scenario]::before {
    content: "Click a header to sort values.";
    flex: 1 1 220px;
    font-size: 0.78rem;
    font-style: italic;
    color: #6c757d;
}
.heat-trends-page #plot-results-thresholds-pane #plot-thresh-table-fut .plot-table-sort-hint {
    margin-top: 0.35rem;
    text-align: left;
}
@media (max-width: 1200px) {
    .heat-trends-page #plot-thresh-card .plot-thresh-options-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.55rem;
        row-gap: 0.9rem;
        width: min(100%, 32rem);
    }
    .heat-trends-page #plot-thresh-card .plot-thresh-options-row .plot-detail-control-fieldset {
        padding-inline: 0.8rem;
    }
    .heat-trends-page #plot-thresh-card .plot-thresh-options-row .plot-thresh-detail-temp,
    .heat-trends-page #plot-thresh-card .plot-thresh-options-row .plot-thresh-detail-stat,
    .heat-trends-page #plot-thresh-card .plot-thresh-options-row .plot-thresh-detail-thresh {
        justify-self: stretch;
        width: 100%;
    }
    .heat-trends-page #plot-thresh-card .plot-thresh-options-row :is(.plot-thresh-detail-temp, .plot-thresh-detail-stat) .form-check-label {
        white-space: normal;
    }
    .heat-trends-page #plot-thresh-card .plot-thresh-options-row .plot-thresh-slider-control-row {
        width: 100%;
    }
    .heat-trends-page #plot-thresh-card .plot-thresh-options-row .plot-thresh-slider-wrap {
        width: 100%;
        max-width: none;
    }
}
@media (max-width: 992px) {
    .heat-trends-page #plot-thresh-card :is(.plot-card-head-left, .plot-thresh-head-left) {
        flex-wrap: wrap;
        gap: 0.2rem 0.5rem;
    }
}
@media (max-width: 767.98px) {
    .heat-trends-page .plot-card-title-row,
    .plot-heat-events-title-row {
        width: 100%;
        justify-content: flex-start;
        align-items: baseline;
        gap: 0.25rem 0.5rem;
    }
    .plot-heat-events-filter-wrap .plot-heat-events-filter-menu {
        min-width: min(260px, calc(100vw - 2rem));
    }
}
.plot-detail-days-wrap.is-collapsed {
    min-height: 0 !important;
}
.plot-detail-days-wrap.is-collapsed .plot-detail-days-plot, .plot-detail-days-wrap.is-collapsed .plot-detail-days-popovers, .plot-detail-days-wrap.is-collapsed .plot-days-popover-layer {
    display: none !important;
}
.plot-detail-days-wrap.is-collapsed .plot-detail-days-plot {
    min-height: 0 !important;
}
