.branding_border {
    background-image: var(--branding-border);
    display: block;
    width: 100%;
    height: var(--branding-border-height);
}

.header_item_margin {
    padding: 24px 21px 21px;
}

.logo {
    max-width: 100%;
    object-fit: contain;
    object-position: left;
    height: 50px;
}

.logo-link {
    display: inline-block;
    height: 50px;
    margin: 33px 0 15px 0;
}

.logo-link img {
    height: 50px;
    transition: height 1s ease;
}

.logo-container {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    display: flex;
}

.l-page_header .logo-container {
    border-bottom: 1px solid var(--divider-color-1);
}

.logo-container-text {
    text-transform: uppercase;
    font-size: var(--font-xxsmall);
    color: var(--color-gray);
    letter-spacing: 0.5px;
    line-height: 14px;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 150px;
    margin: 0 0 29px 0;
    transition: all 1s ease;
}

@media screen and (max-width: 720px) {
    .logo-link {
        display: inline-block;
        height: 50px;
        margin: 15px 0;
    }

    .logo-container {
        max-height: calc(var(--header-height) - 20px);
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        border: none;
        flex: 1 0 100%;
        padding: 0 30px;
    }

    .logo-container-text {
        margin: 15px;
    }
}

.page_header-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    overflow: auto;
    scrollbar-width: none;
}

.l-page_header:hover .page_header-arrow_expand_collapse {
    opacity: 1;
}

.page_header-arrow_expand_collapse {
    position: fixed;
    left: calc(var(--main-inset-left) - 15px);
    bottom: 100px;
    background-color: var(--bubble-background);
    width: 29px;
    height: 29px;
    border-radius: 50%;
    border: 4px solid var(--containers-background);
    cursor: pointer;
    opacity: 0;
    text-align: center;
    transition: left 1s ease, opacity 1s ease;
}

.page_header-arrow_expand_collapse-arrow {
    border: solid white;
    border-width: 0 3px 3px 0;
    display: inline-block;
    padding: 3px;
    transform: rotate(135deg);
    -webkit-transform: rotate(135deg);
    -ms-transform: rotate(135deg);
    transition: all 0.65s ease-in-out;
    position: relative;
    left: 1px;
}

.header-collapsed .page_header-arrow_expand_collapse-arrow {
    transform: rotate(-45deg);
    -webkit-transform: rotate(-45deg);
    -ms-transform: rotate(-45deg);
    left: -2px;
}

@media screen and (max-width: 720px) {
    .page_header-wrapper {
        overflow: hidden;
    }

    .l-page_header-open>.page_header-wrapper {
        overflow: auto;
    }

    .logo-container {
        max-height: var(--header-height);
    }

    .page_header-arrow_expand_collapse {
        display: none;
    }
}

.page_header-content {
    scrollbar-width: none;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.menu_mobile_link {
    display: none;
    font-size: var(--font-xxxlarge);
    flex-direction: column;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    outline: none;
}

.menu_mobile_link:hover {
    opacity: 0.6;
}

@media screen and (max-width: 720px) {
    .menu_mobile_link {
        display: flex;
    }
}

.main_menu {
    margin: 0;
    padding: 0;
    width: 100%;
}

.main_menu-item {
    background: none;
    width: 100%;
    border-left: 7px solid transparent;
    padding: 18px 27px;
    display: grid;
    grid-template-columns: 34px 1fr;
    align-items: center;
    cursor: pointer;
}

.main_menu-list_item {
    line-height: 1;
}

.main_menu-item:hover {
    background: var(--containers-background-contrast);
    border-left: 7px solid var(--divider-color-2);
    text-decoration: none;
}

.is-main_menu-item-active {
    background: var(--containers-background-contrast);
    border-left: 7px solid #f4965e;
}

.is-main_menu-item-active:hover {
    border-left: 7px solid #f4965e;
}

.main_menu-item_name {
    opacity: 1;
    transition: opacity 1s ease;
}

.main_menu-item_link {
    color: var(--text-color);
    text-decoration: none;
}

.main_menu-item_icon {
    padding-right: 16px;
    font-size: var(--font-xlarge);
    text-align: center;
}

@media screen and (min-width: 720px) {
    .header-collapsed .logo-link img {
        height: 40px;
    }

    .header-collapsed .logo-container:not(.printable-header .logo-container) {
        min-height: 108px;
    }

    .header-collapsed .logo-container-text {
        height: 0;
        margin: 0;
        opacity: 0;
    }

    .header-collapsed .main_menu-item_name {
        opacity: 0;
        /* Fix for long item names */
        max-height: 23px;
        overflow: hidden;
    }

    .header-collapsed .main_menu-item_name.beta_label::after {
        opacity: 0;
    }

    .header-collapsed .main_menu-item {
        padding: 18px 23px;
    }

    .header-collapsed .search-lower {
        opacity: 0;
    }

    .header-collapsed .sidebar-timer {
        opacity: 0;
    }
}

.main_menu-item-inset {
    padding-left: 60px;
}

.main_menu-item_name.beta_label::after {
    opacity: 1;
    transition: opacity 1s ease;
}

.beta_label::after {
    content: 'BETA';
    font-size: 0.7em;
    color: inherit;
    position: relative;
    vertical-align: baseline;
    top: -0.8em;
    margin-left: 0.4em;
    display: inline-block;
}

.beta_label:hover::after {
    text-decoration: none;
}

.search {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
}

.search-input {
    width: 100%;
    padding: 11px 18px;
    border-radius: 29px;
    border: solid 1px var(--divider-color-1);
    font-size: var(--font-small);
    -webkit-appearance: none;
    appearance: none;
}

.search-input::-webkit-search-cancel-button {
    display: none;
}

.search-input::placeholder {
    color: var(--color-gray);
}

.search-icon {
    position: absolute;
    font-size: var(--font-base);
    right: 23px;
    cursor: pointer;
}

.search-label {
    margin-left: 0;
    margin-bottom: 4px;
    text-transform: uppercase;
    display: none;
}

.search-label-right {
    margin-right: 25px;
    text-align: right;
}

.search-mascot {
    position: absolute;
    max-width: 60%;
    bottom: 100%;
    left: 23px;
}

.search-lower {
    margin-top: 70px;
    opacity: 1;
    transition: opacity 1s ease;
}

.search-results-table {
    margin: 20px;
}

.header-bottom_item {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.user_info-cards {
    width: 340px;
    padding-right: 16px;
    overflow-wrap: break-word;
}

.top_bar {
    display: flex;
    flex-direction: column;
    position: fixed;
    padding: 0;
    margin-bottom: 10px;
    z-index: 888;
    left: var(--main-inset-left);
    right: 0;
    background-color: var(--top-bar-background);
    top: 0;
    transition: left 1s ease;
}

.top_bar::after {
    content: "";
    position: absolute;
    width: 100%;
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0) 100%);
    opacity: 0.06;
    height: 20px;
    top: 100%;
    pointer-events: none;
}

.top_bar-item {
    padding: 15px 12px;
}

.top_bar-item-centered {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.top_bar-button {
    padding: 10px;
    cursor: pointer;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.top_bar-login_button {
    max-height: var(--header-height);
}

.top_bar-button-selected {
    border-radius: 15px;
    background-color: #000000;
    color: #fff;
    z-index: 1001;
}

.top_bar-button-chevron_down {
    display: block;
    padding-left: 12px;
}

.top_bar-button-chevron_up {
    display: none;
    padding-left: 12px;
}

.top_bar-button-selected .top_bar-button-chevron_down {
    display: none;
}

.top_bar-button-selected .top_bar-button-chevron_up {
    display: block;
}

.top_bar-item-button {
    padding: 5px 10px;
}

.top_bar-item-right {
    border-left: 1px solid var(--divider-color-1);
}

.top_bar-item-left {
    border-right: 1px solid var(--divider-color-1);
}

.top_bar-item-left:last-child {
    border-right: none;
}

.top_bar-item-button-user {
    flex: 1;
    font-size: var(--font-xsmall);
    padding: 5px 0;
}

.top_bar-content-wrapper {
    padding: 0 20px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin: 0;
    width: 100%;
}

.top_bar-section {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.top_bar-section-large {
    flex: 99999999 1 auto;
}

.top_bar-section-small {
    flex: 1 1 auto;
}

.top_bar-section-right {
    padding-left: 16px;
}

.top_bar .task-counter p {
    font-size: var(--font-base);
    padding: 0 24px;
}

@media screen and (max-width: 720px) {
    .top_bar {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
        margin: 0 0 27px;
        z-index: 10;
    }

    .top_bar .top_bar-content-wrapper {
        box-shadow: 0 1px 20px 0 rgba(0, 0, 0, 0.08);
    }

    .top_bar .branding_border {
        display: none;
    }

    .top_bar::after {
        content: none;
    }

    .top_bar-item-left,
    .top_bar-item-right {
        border: none;
    }
}

.breadcrumb {
    font-size: var(--font-xsmall);
    color: var(--breadcrumb-color);
    display: flex;
    align-items: center;
}

.breadcrumb-link {
    font-size: var(--font-xsmall);
    color: var(--breadcrumb-color);
}

.breadcrumb-current {
    font-size: var(--font-xsmall);
    color: var(--text-color);
}

.breadcrumb-divider {
    padding: 0 4px;
    color: var(--divider-color-2);
}

.timer {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    font-size: var(--font-xsmall);
}

.sidebar-timer {
    padding: 0;
    position: relative;
    top: 6px;
    opacity: 1;
    transition: opacity 1s ease;
}

.timer-content,
.timer-content>div:first-child {
    margin: -10px 0;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    position: relative;
}

.timer-item {
    margin: 10px 0;
}

.timer-label {
    font-size: var(--font-xsmall);
}

.timer-bar {
    flex: 1;
    background-color: var(--divider-color-2);
    border-radius: 4px;
    height: 7px;
    width: 160px;
    max-width: 100%;
    position: relative;
    top: 1px;
    margin: 0 6px;
}

.timer-bar-fill {
    width: 50%;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    bottom: 0;
    background-color: var(--color-green);
    border-radius: 4px;
}

.timer-counter {
    min-width: 50px;
    text-align: right;
    /*  background: var(--divider-color-1);
      border-radius: 4px;
      padding: 4px 6px;*/
}

.timer-text {
    font-size: var(--font-xsmall);
}

.progress_bar {
    background-color: var(--divider-color-2);
    border-radius: 4px;
    height: 7px;
    width: 100%;
}

.progress_bar-fill {
    width: 0%;
    height: 100%;
    background-color: var(--color-success);
    border-radius: 4px;
}

.challenge-theme-progress .progress_bar-fill {
    /* Uncompleted theme card: rounder corners on bottom (edge of the card), and on the right. */
    border-radius: 0 4px 4px 4px;
}

.challenge-theme-card-completed .challenge-theme-progress .progress_bar-fill {
    /* Completed theme card: we don't want rounded borders on top as it should be flush with the card */
    border-radius: 0 0 4px 4px;
}

.progress_bar-discrete {
    display: flex;
    background: transparent;
    height: auto;
}

.progress_bar-discrete-fill {
    background: var(--divider-color-2);
    min-height: 8px;
    height: auto;
    margin: 0 1px;
    width: 100%;
    color: var(--gray-link-color);
    text-align: center;
}

.progress_bar .progress_bar-discrete-fill:first-child {
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

.progress_bar .progress_bar-discrete-fill:last-child {
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

.progress_bar-discrete-fill.is-answered {
    background: var(--color-success);
    opacity: 0.5;
    color: var(--bright-text-color);
}

.progress_bar-discrete-fill.is-current {
    background: var(--color-success);
    color: var(--bright-text-color);
}

.progress_bar-discrete-fill.is-skipped {
    background: var(--color-warning);
    color: #000;
}

.test-top_bar {
    width: 100%;
    background-color: var(--top-bar-background);
    display: grid;
    grid-template-columns: 10ch 1fr 5ch;
    padding: 0 var(--test-top_bar-margin);
    align-items: center;
    box-shadow: 0 1px 20px 0 rgb(0 0 0 / 8%);
}

.test-top_bar-close {
    text-align: right;
    color: var(--text-color);
}

.cognitive_test-timer {
    --timer-height-margin: 10px;
    margin: var(--timer-height-margin) 0 0 var(--test-top_bar-margin);
    font-size: var(--font-small);
    width: fit-content;
}

.cognitive_test-timer.is-low_time {
    --low-time-padding: 5px;
    padding: var(--low-time-padding);
    margin: calc(var(--timer-height-margin) - var(--low-time-padding)) 0 0 calc(var(--test-top_bar-margin) - var(--low-time-padding));
    border-radius: 3px;
    background-color: var(--color-error);
    color: #ffffff;
}

.test-padding {
    padding-left: var(--test-top_bar-margin);
    padding-right: var(--test-top_bar-margin);
}

@media (max-width: 720px) {
    .test-top_bar .progress_bar-discrete {
        grid-row-start: 2;
        grid-column: 1 / span 3;
        margin-bottom: 15px;
    }

    .test-top_bar .progress_bar-discrete-fill span {
        display: none;
    }

    .test-top_bar-close {
        grid-column-start: 3;
    }
}
