html, body {
    font-family: GDS Transport, arial, sans-serif;
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    background-color: #fff !important;
}

.gdl-web-height {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.gdl-footer {
    background-color: #f4f8fb !important;
}

a, .btn-link {
    color: #006bb7;
}


.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #d4351c;
}

.validation-message {
    color: #d4351c;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjY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"An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #b1b4b6;
}

.ccms-loader {
    border: 12px solid #DEE0E2;
    border-radius: 50%;
    border-top-color: #1d70b8;
    width: 40px;
    height: 40px;
    -webkit-animation: spin 2s linear infinite;
    animation: spin 2s linear infinite;
}

@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.dot-one {
    animation: dot-one 2s infinite linear
}

.dot-two {
    animation: dot-two 2s infinite linear
}

.dot-three {
    animation: dot-three 2s infinite linear
}

@keyframes dot-one {
    0% {
        opacity: 0;
    }

    15% {
        opacity: 0;
    }

    25% {
        opacity: 1;
    }

    100% {
        opacity: 1;
    }
}

@keyframes dot-two {
    0% {
        opacity: 0;
    }

    25% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 1;
    }
}

@keyframes dot-three {
    0% {
        opacity: 0;
    }

    50% {
        opacity: 0;
    }

    75% {
        opacity: 1;
    }

    100% {
        opacity: 1;
    }
}

.gdl-button-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

    .gdl-button-row > .govuk-button-group {
        margin-bottom: 0;
    }

/*handle govuk-blazor-components typo*/
.govuk-label-m {
    font-size: 1.5rem !important;
    line-height: 1.25 !important;
    font-weight: bold !important;
}

@media (max-width: 640px) {
    .govuk-label-m {
        font-size: 1.125rem !important;
        line-height: 1.1111111111 !important;
    }
}

button.gdl-toggle-error-details {
    background: none;
    border: none;
    padding: 0;
    margin-top: 5px;
    color: #1d70b8;
    cursor: pointer;
}

.gdl-error-details {
    margin-top: 0.5rem;
}

.gdl-error-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.90);
    z-index: 9999;
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-y: auto;
}

.gdl-error-overlay-button-container {
    margin-top: 1.5rem;
    width: 100%;
}

    .gdl-error-overlay-button-container .govuk-button {
        width: 100%;
    }

.gdl-error-summary-box {
    margin-top: 1.5rem;
    background: #fff;
    border: 5px solid #d4351c;
    padding: 2rem;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.govuk-error-overlay-title {
    font-size: 2rem;
    margin-bottom: 25px;
    font-weight: bold;
}

.gdl-error-overlay .govuk-error-summary__list li {
    margin-bottom: 1rem;
}

@media (min-width: 1020px) {
    .record-wrapper {
        min-width: 900px;
        margin-left: auto;
        margin-right: auto;
    }
}

.record-icon-top {
    color: #1d70b8;
    opacity: 0.2;
    font-size: 10rem;
}

@media (max-width: 768px) {
    .record-icon-top {
        font-size: 7rem;
    }
}

@media (max-width: 600px) {
    .record-icon-top {
        font-size: 5rem;
    }
}

@media (max-width: 400px) {
    .record-icon-top {
        font-size: 3.5rem;
    }
}

.record-icon-individual {
    font-size: 4rem;
    color: #1d70b8;
    opacity: 0.2;
    float: right;
}

@media (max-width: 768px) {
    .record-icon-individual {
        font-size: 3.5rem;
    }
}

@media (max-width: 600px) {
    .record-icon-individual {
        font-size: 2.5rem;
    }
}

.blurry-hr {
    border: none;
    height: 1px;
    background: transparent;
    position: relative;
    margin: 1.5rem 0;
}

    .blurry-hr::before {
        content: "";
        position: absolute;
        top: 0;
        left: 50%;
        width: 60%;
        height: 1px;
        background: rgba(0, 0, 0, 0.4);
        transform: translateX(-50%);
        box-shadow: 0 0 8px rgba(0, 0, 0, 0.2), 0 0 12px rgba(0, 0, 0, 0.15), 0 0 20px rgba(0, 0, 0, 0.1);
    }

.weather-icon-group span {
    display: inline-block;
    margin-right: 0.75rem;
    white-space: nowrap;
}

.weather-icon-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    align-items: center;
}

@media (min-width: 701px) {
    .weather-icon-group {
        flex-direction: row;
        justify-content: flex-start;
    }
}

@media (max-width: 700px) {
    .weather-icon-group {
        align-items: center;
    }
}

@media (max-width: 400px) {
    .record-wrapper h2,
    .record-wrapper .card-title,
    .record-wrapper .fw-bold {
        font-size: 0.8em;
        word-break: normal;
    }

    .supervisor-text
    {
        font-size: 0.7em;
        word-wrap: normal !important;
    }

    .weather-icon-group span {
        margin-bottom: 1rem;
    }

    .weather-icon-group i {
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 400px) {
    .card-title {
        font-size: 0.8em !important;
        word-break: keep-all !important;
    }

    .module-toggle {
        font-size: 0.8em !important;
    }

    .module-toggle-icon {
        font-size: 0.8em !important;
    }
}

.gdl-weather-section {
    min-width: 42.5rem;
}

@media (max-width: 700px) {
    .gdl-weather-section {
        min-width: 0 !important;
    }
}

.icon-night {
    color: #003078;
}

.icon-yellow {
    color: #ffdd00;
}

.icon-blue {
    color: #5694ca;
}

.icon-grey {
    color: #b1b4b6;
}

.icon-teal {
    color: #28a197;
}

.icon-green {
    color: #85994b;
}

.icon-darkgreen {
    color: #00703c;
}

.icon-red {
    color: #d4351c;
}

.icon-purple {
    color: #4c2c92;
}

.pill-red {
    background-color: #B10E1E;
}

.pill-orange {
    background-color: #D13F08;
}

.pill-green {
    background-color: #00703c;
}

.pill-blue {
    background-color: #005EA5;
}

.pill-darkblue {
    background-color: #003078;
}

.pd-pill {
    font-size: 0.8rem;
}

@media (max-width: 400px) {
    .pd-pill {
        font-size: 0.6rem;
        padding: 0.1rem 0.4rem;
    }
}

.hidden {
    display: none !important;
}

.search-wrapper {
    display: flex;
    align-items: stretch;
    position: relative;
    padding-bottom: 2rem;
}

.search-with-clear {
    flex: 1;
    padding-right: 2.5rem;
    box-sizing: border-box;
    z-index: 2;
}

    .search-with-clear:focus {
        z-index: 3;
    }

.clear-search-btn {
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: none;
    font-size: 18px;
    cursor: pointer;
    color: #0b0c0c;
    z-index: 2;
}

    .clear-search-btn:hover,
    .clear-search-btn:focus {
        color: #1d70b8;
    }

.govuk-search__button--compact {
    padding: 0.5rem;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #1d70b8;
    color: #fff;
    margin-left: -1px;
    min-height: calc(2.25rem + 2px);
    z-index: 1;
}

@media (max-width: 480px) {
    .clear-search-btn {
        right: 45px;
    }

    .govuk-search__button--compact {
        padding: 0.4rem;
        min-width: 36px;
    }
}

.heading-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

    .heading-toggle-row .slider-toggle {
        margin-bottom: 0;
    }

@media (max-width: 640px) {
    .slider-toggle {
        max-width: 160px;
        width: 100%;
    }

    .slider-toggle-btn {
        min-height: 44px;
        padding: 0.6rem 1rem;
        -webkit-tap-highlight-color: transparent;
    }

        .slider-toggle-btn i {
            font-size: 1.25rem;
            line-height: 1;
        }
}

.post-dec-card-left {
    border-left: 4px solid #1d70b8;
}

.recordsWidth {
    max-width: 900px;
}

@media screen and (max-width: 400px) {
    .recordsWidth {
        max-width: none;
    }
}

.right-aligned {
    position: absolute;
    right: 0;
    top: 0;
}

.module-content img,
.module-content video,
.module-content iframe {
    max-width: 100%;
    height: auto;
    display: block;
}

/* govuk overrides */

@media (min-width:1020px) {
    .govuk-width-container {
        width: 960px;
        margin-right: auto;
        margin-left: auto;
    }
}

@media (min-width:40.0625em) {
    .govuk-accordion__section-button {
        font-size: 1.1rem;
        line-height: 1.25;
    }
}

.govuk-frontend-supported .govuk-accordion__section-content {
    display: none;
    padding-top: 0;
    padding-bottom: 0;
}

@media (min-width:40.0625em) {
    .govuk-frontend-supported .govuk-accordion__section-content {
        padding-bottom: 0;
    }
}

@media (min-width:40.0625em) {
    .govuk-frontend-supported .govuk-accordion__show-all {
        font-size: 1rem;
        line-height: 1.3157894737;
    }
}

@media (min-width:40.0625em) {
    .govuk-frontend-supported .govuk-accordion__section-button {
        padding-bottom: 0;
    }
}

.govuk-frontend-supported .govuk-accordion__section--expanded .govuk-accordion__section-button {
    padding-bottom: 0;
    border-bottom: 0;
}

@media (min-width:40.0625em) {
    .govuk-frontend-supported .govuk-accordion__section--expanded .govuk-accordion__section-button {
        padding-bottom: 0;
    }
}

@media (min-width:40.0625em) {
    .govuk-frontend-supported .govuk-accordion__section-toggle {
        font-size: 1rem;
        line-height: 1.3157894737;
    }
}

.govuk-character-count__message::after {
    content: "";
}

.govuk-notification-banner__content .govuk-notification-banner__heading,
.gdl-notification-banner--warning .govuk-notification-banner__content .govuk-notification-banner__heading {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.govuk-notification-banner__heading p,
.gdl-notification-banner--warning .govuk-notification-banner__heading p {
    margin: 0 0 0.5rem;
    width: 100%;
}

/* Govuk Spinner */
p.govuk-body:has(> .govuk-tag) {
    display: none;
}

.govuk-main-wrapper:has(.ccms-loader) {
    display: grid;
    place-items: center;
    min-height: 60vh;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.govuk-main-wrapper .ccms-loader {
    display: inline-block;
}

#app:has(> .ccms-loader) {
    display: grid;
    place-items: center;
    min-height: 60dvh;
}

#app > .ccms-loader {
    display: inline-block;
}

.govuk-button-small {
    font-family: GDS Transport, arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-weight: 400;
    font-size: 0.7rem;
    line-height: 0.83125;
    box-sizing: border-box;
    display: inline-block;
    position: relative;
    margin: 0 0 7px;
    padding: 5.6px 7px 4.9px;
    border: 2px solid transparent;
    border-radius: 0;
    color: #fff;
    background-color: #00703c;
    box-shadow: 0 2px 0 #002d18;
    text-align: center;
    vertical-align: top;
    cursor: pointer;
    -webkit-appearance: none;
}

@media print {
    .govuk-button-small {
        font-family: sans-serif;
    }
}

@media (min-width:40.0625em) {
    .govuk-button-small {
        font-size: 0.9rem;
        line-height: 0.7;
        margin-bottom: 10px;
    }
}

@media print {
    .govuk-button-small {
        font-size: 9.8pt;
        line-height: 13.3px;
    }
}

.govuk-button-small:active, .govuk-button-small:hover, .govuk-button-small:link, .govuk-button-small:visited {
    color: #fff;
    text-decoration: none;
}

.govuk-button-small::-moz-focus-inner {
    padding: 0;
    border: 0;
}

.govuk-button-small:hover {
    background-color: #005a30;
}

.govuk-button-small:active {
    top: 2px;
}

.govuk-button-small:focus {
    border-color: #fd0;
    outline: 3px solid transparent;
    box-shadow: inset 0 0 0 1px #fd0;
}

    .govuk-button-small:focus:not(:active):not(:hover) {
        border-color: #fd0;
        color: #0b0c0c;
        background-color: #fd0;
        box-shadow: 0 2px 0 #0b0c0c;
    }

.govuk-button-small:before {
    content: "";
    display: block;
    position: absolute;
    top: -2px;
    right: -2px;
    bottom: -4px;
    left: -2px;
    background: transparent;
}

.govuk-button-small:active:before {
    top: -4px;
}

.govuk-button-small[disabled] {
    opacity: .5;
}

    .govuk-button-small[disabled]:hover {
        background-color: #00703c;
        cursor: not-allowed;
    }

    .govuk-button-small[disabled]:active {
        top: 0;
        box-shadow: 0 2px 0 #002d18;
    }

.govuk-button-small--secondary {
    background-color: #f3f2f1;
    box-shadow: 0 2px 0 #929191;
}

    .govuk-button-small--secondary, .govuk-button-small--secondary:active, .govuk-button-small--secondary:hover, .govuk-button-small--secondary:link, .govuk-button-small--secondary:visited {
        color: #0b0c0c;
    }

        .govuk-button-small--secondary:hover {
            background-color: #dbdad9;
        }

            .govuk-button-small--secondary:hover[disabled] {
                background-color: #f3f2f1;
            }

.govuk-button-small--warning {
    background-color: #d4351c;
    box-shadow: 0 2px 0 #55150b;
}

    .govuk-button-small--warning, .govuk-button-small--warning:active, .govuk-button-small--warning:hover, .govuk-button-small--warning:link, .govuk-button-small--warning:visited {
        color: #fff;
    }

        .govuk-button-small--warning:hover {
            background-color: #aa2a16;
        }

            .govuk-button-small--warning:hover[disabled] {
                background-color: #d4351c;
            }

.govuk-button-small--inverse {
    background-color: #fff;
    box-shadow: 0 2px 0 #144e81;
}

    .govuk-button-small--inverse, .govuk-button-small--inverse:active, .govuk-button-small--inverse:hover, .govuk-button-small--inverse:link, .govuk-button-small--inverse:visited {
        color: #1d70b8;
    }

        .govuk-button-small--inverse:hover {
            background-color: #e8f1f8;
        }

            .govuk-button-small--inverse:hover[disabled] {
                background-color: #fff;
            }

.govuk-button-small--start {
    font-weight: 700;
    font-size: 1.125rem;
    line-height: 1;
    display: inline-flex;
    min-height: auto;
    justify-content: center;
}

@media (min-width:40.0625em) {
    .govuk-button-small--start {
        font-size: 1.5rem;
        line-height: 1;
    }
}

@media print {
    .govuk-button-small--start {
        font-size: 18pt;
        line-height: 1;
    }
}

.govuk-button-small__start-icon {
    margin-left: 5px;
    vertical-align: middle;
    flex-shrink: 0;
    align-self: center;
    forced-color-adjust: auto;
}

@media (min-width:48.0625em) {
    .govuk-button-small__start-icon {
        margin-left: 10px;
    }
}

.gdl-notification-banner--warning {
    border-color: #d13f08 !important;
}

    .gdl-notification-banner--warning .govuk-notification-banner__header {
        background-color: #d13f08 !important;
        border-color: #d13f08 !important;
    }

    .gdl-notification-banner--warning .govuk-notification-banner__title {
        color: #ffffff !important;
    }

    /* Optional: content box border to match */
    .gdl-notification-banner--warning .govuk-notification-banner__content {
        border-color: #d13f08 !important;
    }

/* govuk overrides - mobile view */
@media (max-width: 640px) {
    /* Govuk back link touch target for mobiles */
    .govuk-back-link.gdl-back-link--touch {
        position: relative;
        display: inline-flex;
        align-items: center;
        padding: 10px 12px;
        min-height: 44px;
        line-height: 1.4;
        font-size: 1.0625rem;
        -webkit-tap-highlight-color: transparent;
    }

    /* Govuk button small touch targets for mobiles */
    .gdl-accordion-section .govuk-table .govuk-table__button-cell .govuk-button-small,
    .gdl-accordion-section .govuk-table .govuk-table__button-cell .govuk-button-small--warning {
        width: 80%;
        min-height: 40px;
        padding: 10px 12px;
        line-height: 1.2;
        font-size: 1rem;
        margin-left: 1rem;
    }

    /* Adjust table cell text to match button tweak above*/
    .gdl-accordion-section .govuk-table .govuk-table__cell,
    .gdl-accordion-section .govuk-table .govuk-table__header {
        font-size: 1rem;
    }
}