:root {
    /* Brand colours */
    --tdt-color-primary:        #24323A;
    --tdt-color-primary-hover:  #1a262d;
    --tdt-color-secondary:      #4D7F71;
    --tdt-color-tertiary:       #98b8ad;
    --tdt-color-olive:          #898f65;

    /* Surface colours */
    --tdt-color-surface:        #f9fafb;
    --tdt-color-surface-accent: #f9fafb;
    --tdt-color-surface-info:   #edf7f8;

    /* Text colours */
    --tdt-color-text:           #24323A;
    --tdt-color-text-muted:     #6B7580;
    --tdt-color-text-strong:    #24323A;

    /* Border */
    --tdt-color-border:         #DDDDDD;

    /* Border radii */
    --tdt-radius-sm:            4px;
    --tdt-radius-md:            6px;
    --tdt-radius-lg:            10px;

    /* Shadows */
    --tdt-shadow-card:          0 2px 8px rgba(0, 0, 0, 0.12);
}

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f9fafb;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.k-button:focus-visible,
.k-input:focus-within {
    outline: 3px solid #1d4ed8;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* roboto-latin-ext */
@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('/fonts/roboto/roboto-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* roboto-latin */
@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('/fonts/roboto/roboto-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA9NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}


/* TestSelection action button on parent grid rows */
.selection-action-btn-wrap {
    margin-left: 14px;
    display: inline-block;
}

.selection-action-btn.k-button {
    background-color: #4D7F71 !important;
    border-color: #4D7F71 !important;
    color: #FFFFFF !important;
    font-weight: 700 !important;
}

.selection-action-btn.k-button:hover {
    background-color: #3a5f57 !important;
    border-color: #3a5f57 !important;
    color: #FFFFFF !important;
}

.selection-action-btn.k-button:focus-visible {
    outline: 2px solid #4D7F71;
    outline-offset: 2px;
}

.selection-drawer-link + .selection-drawer-link {
    margin-top: 0;
}

.selection-drawer-lab-id-inline {
    font-size: 14px;
    font-weight: 400;
    color: #24323A;
    margin-left: 2px;
}

.selection-drawer-link {
    white-space: normal;
    word-break: break-word;
}

.selection-drawer-link--embedded {
    width: auto;
    padding: 0;
    margin-top: 8px;
    border-bottom: 0;
}

.selection-drawer-link:focus-visible {
    position: relative;
    z-index: 1;
}

.child-tests-grid .k-table-th:first-child,
.child-tests-grid .k-table-td:first-child {
    text-align: left;
}

.performing-location-cell {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* =========================================================
   Print styles — reveal all tab panels so every section
   is included when the user prints the TestView page.
   ========================================================= */
@media print {
    /* Hide navigation/chrome that has no value on paper */
    .home-hero,
    .title-section,
    .back-link-section,
    .print-button,
    .apcyto-backdrop,
    .apcyto-panel {
        display: none !important;
    }

    /* Remove card shadows and decorative backgrounds */
    .summary-shell,
    .section-box,
    .alert-banner {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }

    /* Hide the Telerik TabStrip navigation bar (tab headers) */
    .test-tabstrip .k-tabstrip-items-wrapper {
        display: none !important;
    }

    /* Show every tab panel regardless of active state.
       Telerik hides inactive panels with display:none — override that. */
    .test-tabstrip .k-tabstrip-content,
    .test-tabstrip .k-tab-panel {
        display: block !important;
        visibility: visible !important;
        overflow: visible !important;
        height: auto !important;
    }

    /* Keep each tab section together where possible */
    .tab-content,
    .section-box {
        break-inside: avoid;
    }

    /* Avoid page breaks right after a section heading */
    .section-box-title {
        break-after: avoid;
    }

    /* Collapse spacing between the summary card and the first section panel.
       In normal view these gaps are needed for the sticky header + tab bar;
       on paper there is no sticky element or tab bar, so zero them out. */
    .summary-shell {
        padding-bottom: 0 !important;
    }

    .main-content-section {
        padding-top: 0 !important;
    }

    .tabstrip-host {
        padding-top: 0 !important;
    }

    .test-tabstrip {
        margin-top: 0 !important;
    }

    /* Remove the border that Telerik renders above the content area —
       it is only meaningful when tab headers are visible. */
    .test-tabstrip .k-tabstrip-content {
        border-top: none !important;
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
}
