/*
 * The header of Views/Shared/_SiteHeader.cshtml for pages that do not load the LESS stylesheets.
 * Values are the ones Site.less, style-public.less and bootstrap.css compile to for _MainLayout, so the
 * account pages match the signed-in site. Keep the two in step until the header is redesigned.
 */

html {
    overflow-y: scroll;
}

:where(#header, .app-header),
:where(#header, .app-header) * {
    box-sizing: content-box;
}

:where(#header, .app-header) * {
    margin: 0;
    padding: 0;
    font: inherit;
}

#header,
.app-header {
    font-family: "Open Sans", sans-serif;
    font-size: 13px;
    line-height: normal;
    color: #333333;
}

:where(#header) a {
    color: #00679c;
    text-decoration: none;
}

#topBox {
    width: 100%;
    margin: 0;
    float: left;
    min-height: 20px;
    font-size: 13px;
    font-family: "Open Sans", sans-serif;
}

.build-info-box {
    font-size: smaller;
    text-align: left;
    position: relative;
    z-index: 20;
}

.topMenu {
    max-height: 27px;
    overflow: visible;
    float: right;
    z-index: 20;
    margin: 0 8px 10px 10px;
    position: relative;
    background: transparent;
}

.topContent {
    position: relative;
}

.topGradient {
    height: 29px;
    border: 1px solid #dbd4c5;
    border-top: none;
    overflow: hidden;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
    background-color: white;
    background: linear-gradient(to bottom, white, #eeeae2);
}

.topGradient div.top-menu-item {
    background: transparent url("/content/img/vertical_27.png") no-repeat 0% 50%;
    color: #333333;
    float: left;
    font-family: "Open Sans", sans-serif;
    font-size: 13px;
    height: 29px;
    line-height: 29px;
    padding: 0 14px;
}

.topGradient div#menu-item-home {
    font-size: larger;
}

.topGradient a {
    color: #333333;
    text-decoration: none;
}

.topGradient a:hover {
    text-decoration: underline;
}

a.dropdown-toggle {
    white-space: nowrap;
}

.language-sub-menu {
    cursor: pointer;
}

.language-sub-menu .da:after {
    padding-left: 5px;
    content: url('/Content/img/Denmark-icon.png');
    vertical-align: middle;
    position: relative;
    top: 2px;
}

.language-sub-menu .sv:after {
    padding-left: 5px;
    content: url('/Content/img/Sweden-icon.png');
    vertical-align: middle;
    position: relative;
    top: 2px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    display: none;
    float: left;
    min-width: 160px;
    padding: 5px 0;
    margin: 2px 0 0;
    list-style: none;
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    background-clip: padding-box;
}

.language-sub-menu .dropdown-menu {
    left: inherit;
    margin-left: -20px;
}

.open > .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 3px 20px;
    clear: both;
    font-weight: normal;
    line-height: 20px;
    color: #333333;
    white-space: nowrap;
}

.dropdown-menu li > a:hover,
.dropdown-menu li > a:focus {
    text-decoration: none;
    color: #ffffff;
    background-color: #0081c2;
    background-image: linear-gradient(to bottom, #0088cc, #0077b3);
    background-repeat: repeat-x;
}

.ribbon {
    position: absolute;
    height: 8px;
    top: 99px;
    width: 50%;
}

.ribbon.primary {
    left: 0;
}

#header .ribbon {
    bottom: 0;
    width: 75%;
}

#header .localizationRibbon {
    background-color: #0089cf;
}

.logoWrapper {
    height: 107px;
    position: relative;
    background-color: white;
}

.logo {
    background: url('/content/img/geomatic-logo.png') no-repeat 0 0 transparent;
    height: 80px;
    width: 200px;
    left: 42px;
}

.logoWrapper .logo {
    position: absolute;
    bottom: 12px;
    display: block;
}

.logoWrapper > div.siteName {
    left: 250px;
    bottom: 36px;
    position: absolute;
    font-size: 24px;
    color: #676767;
    visibility: hidden;
}

div.app-header {
    background-color: #0089cf;
    display: table;
    width: 100%;
}

div.app-header div {
    height: 43px;
    display: table-cell;
    vertical-align: middle;
    font-weight: 600;
    font-size: 14px;
    color: #000000;
}

div.app-header div.breadcrumb {
    padding-left: 15px;
    text-transform: uppercase;
}

div.app-header div a {
    color: #ffffff;
    text-decoration: none;
}

div.app-header div a:hover {
    text-decoration: underline;
}

/* The signed-in site has no phone layout; this only keeps the top menu clear of the logo on narrow screens. */
@media (max-width: 640px) {
    .logoWrapper {
        height: 125px;
    }
}
