:root {
    --primary: #0092c8;
    --light-primary: #c3cfe3;
    --lighter-primary: #c9d4e6;
    --text-primary: #e8e8f4;
    --text-light-primary: #141414;
    --secondary: #caba87;
    --light-secondary: #d8c998;
    --lighter-secondary: #9fa19d;
    --tertiary: #E6E8ED;
    --text-secondary: #141414;
    --white: #EEEEEE;
    --dark-grey: #434343;
    --light-grey: #dcdcdc;
    --lighter-grey: #fafafa;
    --green: #40B240;
    --pale-green: #D8FFD8;
    --hover-red: #da4040;
    --red: #e04c4c;
    --light-red: #E67979;
    --pale-red: #FFB0B0;
    --dark-white: #eeeeee;
    --primary-border-style: 2px solid var(--primary);
    --secondary-border-style: 2px solid var(--secondary);
    --dark-grey-border-style: 2px solid var(--dark-grey);
    --light-grey-border-style: 1px solid var(--light-grey);
}

.loading-wheel {
    display: flex;
    justify-content: center;
}

.loading-wheel img, .info-panel .loading-wheel img {
    width: 4.6em;
}

.footer-container {
    margin-top: 1em;
    padding-top: 0.8em;
    border-top: var(--secondary-border-style);
    z-index: 1;
}

.met-charts-tabs {
    margin-bottom: 15px;
    text-align: center;
}

.met-charts-tab-button {
    padding: 8px 15px;
    margin: 0 5px;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.met-charts-tab-button.active {
    background-color: #4472c4;
    color: white;
    border-color: #2e5cb8;
}

.met-chart {
    display: none;
    min-height: 400px;
}

.met-chart.active {
    display: block;
}

/* Centers an element in the remaining space of a .flex-header row, between
   the preceding text and the row's right edge (e.g. the historical-chart
   button, next to Current Readings Summary's title) - auto margins on both
   sides of the last flex child split the leftover space evenly. */
.flex-header-right {
    margin-left: auto !important;
    margin-right: auto !important;
}

.tdl-review-panel {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 1.1rem;
    margin: 0.7rem 0;
    padding: 0.55rem 0;
    font-size: 0.85rem;
    line-height: 1.4;
}
.tdl-review-panel label { display: flex; align-items: center; gap: 0.55rem; font-weight: 600; cursor: pointer; }
.tdl-review-values-toggle {
    appearance: none;
    position: relative;
    width: 2.1rem;
    height: 1.15rem;
    margin: 0;
    border: 1px solid #8c979e;
    border-radius: 1rem;
    background: #c6cdd2;
    cursor: pointer;
    transition: background 0.15s ease;
}
.tdl-review-values-toggle::after {
    content: '';
    position: absolute;
    width: 0.8rem;
    height: 0.8rem;
    top: 0.11rem;
    left: 0.13rem;
    border-radius: 50%;
    background: white;
    transition: transform 0.15s ease;
}
.tdl-review-values-toggle:checked { background: #357086; border-color: #357086; }
.tdl-review-values-toggle:checked::after { transform: translateX(0.91rem); }
.tdl-review-values-toggle:focus-visible { outline: 2px solid #357086; outline-offset: 3px; }
.tdl-review-hint { color: #64717a; font-size: 0.8rem; }
.modal .tdl-review-panel { margin: 0 1rem 0.6rem; }

.tdl-chart-tooltip { padding: 0.65rem 0.8rem; color: #27333c; font-size: 12px; }
.tdl-chart-tooltip-date { color: #64717a; margin-bottom: 0.45rem; font-size: 11px; }
.tdl-chart-tooltip table { border-collapse: collapse; margin: 0; width: auto; background: transparent; }
.tdl-chart-tooltip th { font-size: 10px; font-weight: 500; color: #64717a; text-align: left; }
.tdl-chart-tooltip th, .tdl-chart-tooltip td { padding: 0.2rem 0.5rem; border: 0; background: transparent; white-space: nowrap; }
.tdl-chart-tooltip th:first-child, .tdl-chart-tooltip td:first-child { padding-left: 0; }
.tdl-chart-tooltip th:last-child, .tdl-chart-tooltip td:last-child { padding-right: 0; }
.tdl-chart-tooltip .tdl-tooltip-number { text-align: right; font-variant-numeric: tabular-nums; }
.tdl-tooltip-reading { font-weight: 600; }
.tdl-tooltip-status { color: #64717a; font-size: 11px; }
.tdl-tooltip-status-review { display: inline-block; padding: 0.1rem 0.35rem; border-radius: 3px; background: #f7f0e1; color: #78602f; }
.tdl-chart-tooltip-wind { border-top: 1px solid #edf0f2; color: #64717a; padding-top: 0.4rem; margin-top: 0.4rem; font-size: 11px; }
