@font-face {
    font-family: 'Atkinson Hyperlegible Next';
    src: url("../fonts/atkinson-hyperlegible-next/AtkinsonHyperlegibleNext-Variable-YUV_eT2.ttf") format('truetype');
    font-display: swap;
    font-style: normal;
    font-weight: 200 800;
}

:root,
[data-bs-theme='light'] {
    --bs-primary: #0a58ca;
    --bs-primary-rgb: 10, 88, 202;
    --bs-primary-text-emphasis: #052c65;
    --bs-primary-bg-subtle: #cfe2ff;
    --bs-primary-border-subtle: #9ec5fe;
    --bs-link-color: #0a58ca;
    --bs-link-color-rgb: 10, 88, 202;
    --bs-link-hover-color: #084298;
    --bs-link-hover-color-rgb: 8, 66, 152;
    --bs-focus-ring-color: rgba(var(--bs-primary-rgb), 0.25);
}

body {
    font-family: 'Atkinson Hyperlegible Next', sans-serif;
}

.btn {
    --bs-btn-font-weight: 500;
}

.btn-primary {
    --bs-btn-bg: var(--bs-primary);
    --bs-btn-border-color: var(--bs-primary);
    --bs-btn-hover-bg: var(--bs-link-hover-color);
    --bs-btn-hover-border-color: var(--bs-link-hover-color);
    --bs-btn-active-bg: var(--bs-link-hover-color);
    --bs-btn-active-border-color: var(--bs-link-hover-color);
    --bs-btn-disabled-bg: var(--bs-primary);
    --bs-btn-disabled-border-color: var(--bs-primary);
}

.btn-outline-primary {
    --bs-btn-color: var(--bs-primary);
    --bs-btn-border-color: var(--bs-primary);
    --bs-btn-hover-bg: var(--bs-primary);
    --bs-btn-hover-border-color: var(--bs-primary);
    --bs-btn-active-bg: var(--bs-link-hover-color);
    --bs-btn-active-border-color: var(--bs-link-hover-color);
}

.form-control:focus,
.form-select:focus,
.form-check-input:focus {
    border-color: var(--bs-primary-border-subtle);
    box-shadow: 0 0 0 0.25rem var(--bs-focus-ring-color);
}

.form-check-input:checked {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.nav-pills {
    --bs-nav-pills-link-active-bg: var(--bs-primary);
}

.authentication-card-column {
    max-width: 54.375rem;
}

.access-step-marker {
    display: block;
    width: 2.5rem;
    height: 2.5rem;
}

.access-mode-selector {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius-lg);
    background: var(--bs-secondary-bg);
}

.access-mode-selector__tab {
    padding: 0.75rem 0.5rem;
    color: var(--bs-body-color);
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-right: 1px solid var(--bs-border-color);
}

.access-mode-selector__tab:last-child {
    border-right: 0;
}

.access-mode-selector__tab:hover,
.access-mode-selector__tab:focus-visible {
    color: var(--bs-primary);
    background: var(--bs-body-bg);
}

.access-mode-selector__tab.is-active {
    position: relative;
    z-index: 1;
    margin: -1px;
    color: var(--bs-primary);
    background: var(--bs-body-bg);
    border: 2px solid var(--bs-primary);
    border-radius: var(--bs-border-radius-lg);
}

@media (max-width: 575.98px) {
    .access-mode-selector__tab {
        padding-inline: 0.25rem;
        font-size: 0.75rem;
        white-space: nowrap;
    }
}

.list-group {
    --bs-list-group-active-bg: var(--bs-primary);
    --bs-list-group-active-border-color: var(--bs-primary);
}

.form-section-step {
    width: 3rem;
    height: 3rem;
}

@media (max-width: 575.98px) {
    .form-section-step {
        width: 2rem;
        height: 2rem;
        font-size: 0.875rem;
    }

    [data-project-answer-table] colgroup {
        display: none;
    }

    [data-project-answer-table],
    [data-project-answer-table] tbody,
    [data-project-answer-table] tr,
    [data-project-answer-table] th,
    [data-project-answer-table] td {
        display: block;
        width: 100%;
    }

    [data-project-answer-table] [data-project-answer-row] > td {
        border-left: 0 !important;
    }
}

@media (max-width: 991.98px) {
    [data-mobile-page-actions] {
        flex-direction: column;
        width: 100%;
    }

    [data-mobile-page-actions] > * {
        width: 100%;
        justify-content: center;
    }

    [data-mobile-page-actions] > [data-mobile-action-order='1'] {
        order: 1;
    }

    [data-mobile-page-actions] > [data-mobile-action-order='2'] {
        order: 2;
    }

    [data-mobile-page-actions] > [data-mobile-action-order='3'] {
        order: 3;
    }

    [data-mobile-evaluation-actions] {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr);
        width: 100%;
        gap: 0.5rem !important;
        justify-content: stretch !important;
    }

    [data-mobile-evaluation-action-group] {
        display: contents !important;
    }

    [data-mobile-evaluation-actions] > a,
    [data-mobile-evaluation-action-group] > * {
        width: 100%;
        justify-content: center;
    }

    [data-mobile-evaluation-actions] [data-mobile-action-order='1'] {
        order: 1;
    }

    [data-mobile-evaluation-actions] [data-mobile-action-order='2'] {
        order: 2;
    }

    [data-mobile-evaluation-actions] [data-mobile-action-order='3'] {
        order: 3;
    }

    [data-mobile-evaluation-actions] [data-mobile-action-order='4'] {
        order: 4;
    }

    [data-project-administration-actions] {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr);
        width: 100%;
        gap: 0.5rem !important;
        margin-left: 0 !important;
        justify-content: stretch !important;
    }

    [data-mobile-project-admin-actions-group] {
        display: contents !important;
    }

    [data-project-administration-actions] a,
    [data-project-administration-actions] button,
    [data-mobile-project-admin-more] {
        width: 100%;
        justify-content: center;
    }

    [data-mobile-project-admin-menu] {
        width: 100%;
        min-width: 100%;
    }

    [data-mobile-card-surface] {
        overflow: visible !important;
        border: 0;
        background: transparent;
        box-shadow: none !important;
    }

    [data-mobile-card-table-wrapper] {
        overflow: visible;
    }

    [data-mobile-card-table] {
        display: block;
        width: 100%;
        margin: 0;
        background: transparent;
    }

    [data-mobile-card-table] thead {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        white-space: nowrap;
        border: 0;
        clip: rect(0, 0, 0, 0);
    }

    [data-mobile-card-table] tbody,
    [data-mobile-card-table] tfoot {
        display: grid;
        width: 100%;
        gap: 1rem;
    }

    [data-mobile-card-table] tbody + tbody,
    [data-mobile-card-table] tbody + tfoot {
        margin-top: 1.5rem;
    }

    [data-mobile-card-table] tbody > tr,
    [data-mobile-card-table] tfoot > tr {
        display: flex;
        flex-direction: column;
        width: 100%;
        overflow: hidden;
        background: var(--bs-body-bg);
        border: var(--bs-border-width) solid var(--bs-border-color);
        border-radius: var(--bs-border-radius-lg);
        box-shadow: var(--bs-box-shadow-sm);
    }

    [data-mobile-card-table] tbody > tr > td,
    [data-mobile-card-table] tfoot > tr > td {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        width: 100%;
        gap: 1rem;
        padding: 0.75rem 1rem !important;
        color: var(--bs-body-color);
        text-align: right !important;
        white-space: normal !important;
        overflow-wrap: anywhere;
        background: transparent;
        border-right: 0;
        border-bottom: var(--bs-border-width) solid var(--bs-border-color);
        border-left: 0;
        order: 3;
    }

    [data-mobile-card-table] [data-mobile-card-label]::before {
        flex: 0 0 auto;
        color: var(--bs-secondary-color);
        font-weight: 400;
        text-align: left;
        content: attr(data-mobile-card-label);
    }

    [data-mobile-card-table] [data-mobile-card-title],
    [data-mobile-card-table] [data-mobile-card-stack],
    [data-mobile-card-table] [data-mobile-card-actions] {
        display: block;
        text-align: left !important;
    }

    [data-mobile-card-table] [data-mobile-card-title] {
        padding-top: 1rem !important;
        font-size: 1.125rem;
        font-weight: 600;
        order: 1;
    }

    [data-mobile-card-table] [data-mobile-card-priority] {
        order: 2;
    }

    [data-mobile-card-table] [data-mobile-card-stack]::before {
        display: block;
        margin-bottom: 0.25rem;
    }

    [data-mobile-card-table] [data-mobile-card-actions] {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
        border-bottom: 0;
        order: 4;
    }

    [data-mobile-card-table] tbody > tr > td:last-child,
    [data-mobile-card-table] tfoot > tr > td:last-child,
    [data-mobile-card-table] [data-mobile-card-last] {
        border-bottom: 0;
    }

    [data-mobile-card-actions-group] {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr);
        width: 100%;
        gap: 0.5rem !important;
        justify-content: stretch !important;
    }

    [data-mobile-card-actions] > form,
    [data-mobile-card-actions-group] > form,
    [data-mobile-card-actions] button,
    [data-mobile-card-actions] a,
    [data-mobile-card-actions-group] button,
    [data-mobile-card-actions-group] a {
        width: 100%;
        justify-content: center;
    }

    .modal-footer:not([data-mobile-modal-actions]),
    [data-mobile-modal-actions='split'] {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        gap: 0.5rem !important;
    }

    .modal-footer:not([data-mobile-modal-actions]) > button,
    .modal-footer:not([data-mobile-modal-actions]) > a,
    .modal-footer:not([data-mobile-modal-actions]) > form,
    [data-mobile-modal-actions='split'] > button,
    [data-mobile-modal-actions='split'] > a,
    [data-mobile-modal-actions='split'] > form {
        width: 100%;
        margin: 0 !important;
        justify-content: center;
    }

    .modal-footer:not([data-mobile-modal-actions]) > form > button,
    [data-mobile-modal-actions='split'] > form > button {
        width: 100%;
        justify-content: center;
    }

    [data-mobile-modal-actions='stack'] {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr);
        width: 100%;
        gap: 0.5rem !important;
    }

    [data-mobile-modal-actions='stack'] > button,
    [data-mobile-modal-actions='stack'] > a,
    [data-mobile-modal-actions='stack'] > form,
    [data-mobile-modal-actions='stack'] > form > button {
        width: 100%;
        margin: 0 !important;
        justify-content: center;
    }

    [data-mobile-card-table] [data-mobile-card-empty] {
        display: block;
        padding: 2rem 1rem !important;
        text-align: center !important;
        border-bottom: 0;
    }

    [data-mobile-card-table] [data-mobile-card-hidden] {
        display: none;
    }

    [data-mobile-card-table] [data-mobile-card-group-title] {
        overflow: visible;
        background: transparent;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    [data-mobile-card-table] [data-mobile-card-group-title] > th {
        display: block;
        width: 100%;
        padding: 0 0 0.25rem !important;
        color: var(--bs-primary);
        background: transparent;
        border: 0;
    }

    [data-mobile-card-table] [data-mobile-card-total] {
        background: var(--bs-secondary-bg);
    }

    [data-mobile-card-table] [data-mobile-card-grand-total] {
        background: var(--bs-primary-bg-subtle);
        border-color: var(--bs-primary-border-subtle);
    }
}
