.compact-header {
    height: 64px;
    color: #354052;
}

.compact-header > div {
    position: relative;
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
}

.flex-row {
    display: flex;
    height: 40px;
    align-items: center;
}
.menu-container {
	position: absolute;
	top: 10px;
	left: 7px;
	right: 0;
    font-family: "Open Sans", Tahoma, sans-serif;
    line-height: normal;
}

.header-links,
.lang-block,
.login-block {
    font-size: 13px;
}

.header-links {
    display: grid;
    flex-grow: 1;
    grid-template-columns: 40px 55px 1fr;
    align-items: center;
}

.header-links-item {
    display: inline-block;
    color: white;
	text-decoration: none;
}

.header-links > .header-links-item {
    grid-column: 3;
    justify-self: start;
}

.lang-block, .login-block {
	position: relative;
}
.lang-block {
    margin-right: 55px;
}
.login-block {
    flex: 0 0 120px;
    margin-right: 10px;
    text-align: left;
}

.login-block.authenticated {
    flex-basis: 220px;
}

.login-block .header-links-item {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.context-menu-select {
    align-items: center;
    background: transparent;
    border: 0;
    color: inherit;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    height: auto;
    margin-left: 55px;
    padding: 0;
    text-align: left;
}

.menu-container .context-menu-select:hover,
.menu-container .context-menu-select:active {
    background: transparent;
}

.context-menu-select::after {
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    content: "";
    flex: none;
    margin-left: 7px;
}

.cur-login {
    margin-left: 0;
    max-width: 100%;
}

.cur-login span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.menu-container button:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.context-menu {
	box-shadow: 0px 5px 13px 0px rgba(07, 140, 235, .13);
	background-color: #ffffff;
	width: 128px;
	display: none;
	z-index: 10;
	position: absolute;
	right: 0;
    margin-top: 5px;
    padding: 7px 0;
}
.context-menu-item {
	color: #363636;
	padding: 7px 20px;
	display: block;
	text-decoration: none;
}
.context-menu button.context-menu-item {
    background: transparent;
    border: 0;
    box-sizing: border-box;
    color: #363636;
    font: inherit;
    height: auto;
    text-align: left;
    width: 100%;
}
.context-menu button.context-menu-item:hover,
.context-menu button.context-menu-item:active,
.context-menu-item:hover {
	background-color: rgb(242, 249, 254);
	cursor: pointer;
}

.menu-home {
    display: block;
    width: 40px;
    height: 40px;
    grid-column: 1;
}

.compact-header .context-menu-select {
    color: #078ceb;
}

.compact-header .header-links-item {
    color: #354052;
}

.compact-header .header-links-item:hover {
    color: #078ceb;
}

@media only screen and (max-width: 1000px) {
    .menu-container {
        left: 14px;
    }
}

@media only screen and (max-width: 560px) {
    .header-links {
        grid-template-columns: 40px 10px 1fr;
    }

    .context-menu-select {
        margin-left: 10px;
    }

    .lang-block {
        margin-right: 10px;
    }

    .login-block {
        flex-basis: 100px;
    }

    .login-block.authenticated {
        flex-basis: 130px;
    }

    .cur-login {
        margin-left: 0;
    }
}
