﻿@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');


#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }



#page-container {
    position: relative;
    min-height: 100vh;
}

#content-wrap {
    padding-bottom: 2.5rem; /* Footer height */
}

#footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 2.5rem; /* Footer height */
    display: flex;
    align-items: center;
}

.mud-toolbar.mud-table-toolbar > .mud-button{
    margin-left: 10px;
}

/* ---- TherapyTrack brand accents ---- */

body {
    background-color: #F4F6F9;
}

.mud-appbar {
    background: linear-gradient(90deg, #011638 0%, #0B2545 100%) !important;
}

.mud-drawer {
    border-right: none;
}

.mud-nav-link.mud-selected {
    background-color: rgba(122, 217, 196, 0.16);
    border-left: 3px solid #7AD9C4;
}

.mud-nav-link:not(.mud-selected):hover {
    background-color: rgba(255, 255, 255, 0.06);
}

.tt-page-title {
    border-left: 4px solid #7AD9C4;
    padding-left: 12px;
}

.tt-hero {
    background: linear-gradient(135deg, #011638 0%, #0B2545 100%);
    color: #FFFFFF;
    border-radius: 8px;
}

.tt-quick-link {
    transition: transform .15s ease, box-shadow .15s ease;
    text-decoration: none;
    display: block;
}

.tt-quick-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(1, 22, 56, 0.12);
}

/* ---- App-like elevated cards, replacing the old flat-bordered admin-panel look ---- */

.tt-card.mud-expansion-panels,
.tt-card.mud-paper,
.tt-card.mud-table {
    border-radius: 16px !important;
    box-shadow: 0 2px 16px rgba(1, 22, 56, .08) !important;
    border: none !important;
    overflow: hidden;
}

.tt-card .mud-expand-panel {
    border: none !important;
}

.tt-card .mud-expand-panel:not(:last-of-type) {
    border-bottom: 1px solid #EDF1F7 !important;
}

.tt-card .mud-expand-panel-header {
    padding: 18px 24px !important;
}

.tt-card .mud-expand-panel-text .mud-typography-h6 {
    font-weight: 700;
}

.tt-card .mud-expand-panel-content > .mud-expand-panel-gutters {
    padding: 4px 24px 24px !important;
}

/* Section icon badge used inside expansion panel titles - a small tinted circle so each section
   reads as a distinct product area instead of a bare text label in an accordion. */
.tt-section-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #E6F8F6;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tt-section-icon .mud-icon-root {
    color: #011638;
}

/* Stat cards - the load-summary numbers etc. get their own tinted tile instead of floating text. */
.tt-stat-card {
    background: #F7F9FC;
    border-radius: 12px;
    padding: 12px 18px;
    min-width: 128px;
}

.tt-stat-value {
    font-weight: 800 !important;
}

/* Patient profile header - name + initials avatar, replacing the plain left-accented text line. */
.tt-profile-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.tt-avatar {
    width: 56px;
    height: 56px;
    min-width: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #011638 0%, #0B2545 100%);
    color: #7AD9C4;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: .02em;
}

/* Softer, more "product" table styling - lighter stripes, quieter borders, a label-style header
   row instead of MudBlazor's default dense spreadsheet look. */
.mud-table.mud-table-striped .mud-table-row:nth-of-type(odd) {
    background-color: #F7F9FC;
}

.mud-table .mud-table-head .mud-table-cell {
    font-weight: 700;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #5C6B82;
    border-bottom: 2px solid #EDF1F7 !important;
}

.mud-table .mud-table-cell {
    border-bottom: 1px solid #F1F4F8 !important;
}

/* Popovers (date pickers, selects, autocompletes) can open below content that's already near the
   bottom of the viewport - cap their height and let them scroll instead of running off-screen. */
.mud-popover {
    max-height: 90vh;
    overflow-y: auto;
}

/* Dialog content can also exceed a short viewport (e.g. a long form on a laptop screen) - scroll
   within the dialog rather than letting fields/buttons render off-screen. */
.mud-dialog-content {
    max-height: 80vh;
    overflow-y: auto;
}

/* Wraps the <svg> in its own guaranteed-full-width, left-aligned block, so the chart can't
   inherit a narrow or centered rendering width from some ancestor (confirmed live: the SVG was
   rendering ~310px wide and pushed well right of the left-aligned caption above it, on a full,
   non-cropped browser window - a real layout defect, not a sizing miscalibration). */
.tt-line-chart-wrap {
    display: block;
    width: 100%;
    max-width: 560px;
    text-align: left;
    margin: 0;
}

/* Fluid width, scaling every SVG unit (font-size included) with the wrapper via viewBox -
   deliberately paired with a small 360-unit viewBox (TestLineChart.razor.cs) so a typical column
   scales this UP rather than down: it grows to fill spacious layouts while only a genuinely
   narrow column (<360px, rare - a small phone) ever shrinks it below its declared font sizes. */
.tt-line-chart {
    display: block;
    width: 100%;
    height: auto;
}

.tt-line-chart-area {
    fill: rgba(122, 217, 196, 0.12);
    stroke: none;
}

.tt-line-chart-line {
    fill: none;
    stroke: #7AD9C4;
    stroke-width: 2;
    stroke-linejoin: round;
    stroke-linecap: round;
}

.tt-line-chart-point {
    fill: #7AD9C4;
    stroke: #FFFFFF;
    stroke-width: 2;
    cursor: pointer;
    transition: r .1s ease;
}

.tt-line-chart-point:hover {
    r: 9;
}

.tt-line-chart-legend-item {
    cursor: pointer;
}

.tt-line-chart-legend-item.tt-line-chart-legend-hidden {
    opacity: 0.35;
}

.tt-line-chart-line.tt-series-right {
    stroke: #7AD9C4;
}

circle.tt-series-right {
    fill: #7AD9C4;
}

.tt-line-chart-line.tt-series-left {
    stroke: #F2994A;
}

circle.tt-series-left {
    fill: #F2994A;
}

.tt-line-chart-line.tt-series-neutral {
    stroke: #9B9B9B;
}

circle.tt-series-neutral {
    fill: #9B9B9B;
}

.tt-line-chart-legend {
    font-size: 14px;
    font-weight: 600;
    fill: #152238;
}

.tt-line-chart-benchmark-band {
    fill: rgba(1, 22, 56, 0.08);
    stroke: rgba(1, 22, 56, 0.35);
    stroke-width: 1;
    stroke-dasharray: 3 2;
}

.tt-line-chart-benchmark-line {
    stroke: rgba(1, 22, 56, 0.5);
    stroke-width: 1.5;
    stroke-dasharray: 4 3;
}

.tt-line-chart-axis {
    font-size: 14px;
    fill: #5C6B82;
}

.tt-line-chart-tooltip {
    pointer-events: none;
}

.tt-line-chart-tooltip rect {
    fill: #0B2545;
    opacity: 0.94;
}

.tt-line-chart-tooltip text {
    fill: #FFFFFF;
    font-size: 14px;
    font-weight: 600;
}

.tt-coverage-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 8px 0;
}

.tt-coverage-label {
    width: 240px;
    flex-shrink: 0;
    font-size: 13px;
    color: #152238;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
}

.tt-coverage-label:hover {
    color: #7AD9C4;
    text-decoration: underline;
}

.tt-coverage-track {
    flex: 1;
    height: 10px;
    background: #E6F8F6;
    border-radius: 6px;
    overflow: hidden;
}

.tt-coverage-fill {
    height: 100%;
    background: linear-gradient(90deg, #7AD9C4, #0B2545);
}

.tt-coverage-count {
    width: 56px;
    text-align: right;
    font-size: 12px;
    color: #5C6B82;
    flex-shrink: 0;
}

.tt-rank-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 6px 0;
}

.tt-rank-label {
    width: 200px;
    flex-shrink: 0;
    font-size: 13px;
    color: #152238;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tt-rank-track {
    flex: 1;
    height: 14px;
    background: #F4F6F9;
    border-radius: 6px;
    overflow: hidden;
}

.tt-rank-fill {
    height: 100%;
    background: #7AD9C4;
    border-radius: 6px;
}

.tt-rank-fill.tt-rank-fill-left {
    background: #0B2545;
}

.tt-rank-value {
    width: 70px;
    text-align: right;
    font-size: 12px;
    font-weight: 600;
    color: #152238;
    flex-shrink: 0;
}

.tt-lsi-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0;
}

.tt-lsi-label {
    width: 190px;
    flex-shrink: 0;
    font-size: 13px;
    color: #152238;
}

.tt-lsi-category-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
}

.tt-lsi-track {
    flex: 1;
    height: 16px;
    display: flex;
    background: #F4F6F9;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.tt-lsi-track::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: #5C6B82;
}

.tt-lsi-half {
    flex: 1;
    display: flex;
    height: 100%;
}

.tt-lsi-half.left {
    justify-content: flex-end;
}

.tt-lsi-bar {
    height: 100%;
    border-radius: 3px;
}

.tt-lsi-bar.good {
    background: #7AD9C4;
}

.tt-lsi-bar.warn {
    background: #D98E1C;
}

.tt-lsi-bar.bad {
    background: #C1443C;
}

.tt-lsi-value {
    width: 64px;
    text-align: right;
    font-size: 12px;
    font-weight: 600;
    color: #152238;
    flex-shrink: 0;
}

.tt-lsi-empty {
    margin: auto;
    color: #9AA5B8;
    font-size: 11px;
    font-style: italic;
}

.tt-lsi-raw {
    font-size: 11px;
    color: #5C6B82;
    margin: -4px 0 8px 0;
    padding-left: 2px;
}

.tt-radar-svg {
    width: 100%;
    max-width: 340px;
    height: auto;
    overflow: visible;
    display: block;
    margin: 0 auto;
}

.tt-radar-grid {
    fill: none;
    stroke: #E3E8F0;
    stroke-width: 1;
}

.tt-radar-axis-line {
    stroke: #D2D9E8;
    stroke-width: 1;
}

.tt-radar-category-arc {
    fill: none;
    stroke-width: 4;
    stroke-linecap: round;
    opacity: 0.85;
}

.tt-radar-axis-label {
    font-size: 9px;
    fill: #5C6B82;
}

.tt-radar-poly {
    stroke-width: 2;
    fill-opacity: 0.18;
}

.tt-radar-poly.tt-series-right {
    stroke: #7AD9C4;
    fill: #7AD9C4;
}

.tt-radar-poly.tt-series-left {
    stroke: #F2994A;
    fill: #F2994A;
}

.tt-radar-legend {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-top: 6px;
    font-size: 12px;
    color: #5C6B82;
}

.tt-radar-legend span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.tt-radar-legend i {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    display: inline-block;
}

.tt-flag-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: 8px;
    margin-bottom: 6px;
    font-size: 13px;
    border-left: 4px solid #5C6B82;
}

.tt-flag-item.bad {
    background: #FBEAE8;
    border-left-color: #C1443C;
}

.tt-flag-item.warn {
    background: #FCF3E1;
    border-left-color: #D98E1C;
}

.tt-flag-none {
    color: #1D7A4C;
    font-weight: 600;
    font-size: 14px;
}

.tt-battery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

.tt-battery-card {
    background: #FFFFFF;
    border: 1px solid #D2D9E8;
    border-radius: 10px;
    border-top: 5px solid #7AD9C4;
    padding: 14px 16px;
}

.tt-battery-card.cut {
    border-top-color: #C1443C;
}

.tt-battery-card.reconsider {
    border-top-color: #D98E1C;
}

.tt-battery-verdict {
    display: inline-block;
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: .4px;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 20px;
    margin-bottom: 8px;
    background: #EAF4EE;
    color: #1D7A4C;
}

.tt-battery-card.cut .tt-battery-verdict {
    background: #FBEAE8;
    color: #C1443C;
}

.tt-battery-card.reconsider .tt-battery-verdict {
    background: #FCF3E1;
    color: #D98E1C;
}

.tt-battery-card h4 {
    margin: 0 0 6px;
    font-size: 14.5px;
    color: #0B2545;
}

.tt-battery-card p {
    font-size: 12.5px;
    color: #5C6B82;
    line-height: 1.45;
    margin: 0;
}

.tt-corr-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.tt-corr-label {
    width: 260px;
    flex-shrink: 0;
    font-size: 12.5px;
    color: #152238;
}

.tt-corr-track {
    flex: 1;
    height: 14px;
    background: #F4F6F9;
    border-radius: 6px;
    overflow: hidden;
}

.tt-corr-fill {
    height: 100%;
    border-radius: 6px;
}

.tt-corr-val {
    width: 46px;
    text-align: right;
    font-size: 12px;
    font-weight: 600;
    color: #152238;
    flex-shrink: 0;
}

.tt-tz-card {
    background: #FFFFFF;
    border: 1px solid #D2D9E8;
    border-left: 6px solid #D2D9E8;
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 12px;
}

.tt-tz-card.aeroob {
    border-left-color: #6BAA75;
}

.tt-tz-card.drempel {
    border-left-color: #F2B705;
}

.tt-tz-card.vo2max {
    border-left-color: #E07A2F;
}

.tt-tz-card.sprint {
    border-left-color: #C1443C;
}

.tt-tz-card-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
}

.tt-tz-card-head h4 {
    margin: 0;
    font-size: 15px;
    color: #0B2545;
    text-transform: uppercase;
    letter-spacing: .3px;
}

.tt-tz-range {
    font-family: 'Roboto Mono', monospace;
    font-size: 14px;
    font-weight: 700;
    color: #152238;
}

.tt-tz-meta {
    font-size: 12.5px;
    color: #5C6B82;
    margin-top: 6px;
    line-height: 1.5;
}

.tt-tz-empty {
    font-size: 12.5px;
    color: #9AA5B8;
    font-style: italic;
    margin-top: 6px;
}

.tt-tz-slider {
    width: 100%;
    margin: 8px 0;
}

.tt-tz-mode-btn {
    font-size: 11.5px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 14px;
    border: 1.3px solid #C1443C;
    background: #fff;
    color: #C1443C;
    cursor: pointer;
    margin-right: 6px;
}

.tt-tz-mode-btn.active {
    background: #C1443C;
    color: #fff;
}

.tt-tz-phase-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 20px 0 14px;
}

.tt-tz-phase-tabs button {
    font-size: 12.5px;
    font-weight: 600;
    padding: 9px 14px;
    border-radius: 20px;
    border: 1.5px solid #0B2545;
    background: #fff;
    color: #0B2545;
    cursor: pointer;
}

.tt-tz-phase-tabs button.active {
    background: #0B2545;
    color: #fff;
}

.tt-tz-legend {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 12px;
    color: #5C6B82;
    margin-bottom: 12px;
}

.tt-tz-legend span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.tt-tz-legend i {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    display: inline-block;
}

.tt-tz-stack {
    display: flex;
    height: 34px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
}

.tt-tz-seg {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11.5px;
    font-weight: 700;
    color: #fff;
}