﻿@media (min-width: 1024px) {
    body #header1.app-desktop-header {
        position: relative;
        display: flex;
        align-items: center;
        gap: 14px;
        min-height: var(--waker-desktop-header-height);
        padding: 0 18px 0 0;
        border: 0;
        background: var(--waker-color-header);
        box-shadow: none;
        box-sizing: border-box;
    }

    body #header1.app-desktop-header #logo {
        align-self: stretch;
        display: flex;
        align-items: flex-end;
        padding: 0;
        max-width: var(--waker-desktop-header-logo-max-width);
        font-size: 0;
        font-style: normal;
        font-weight: 700;
        line-height: 0;
        color: transparent;
        text-shadow: none;
    }

    body #header1.app-desktop-header .app-desktop-header__logo {
        display: block;
        width: auto;
        max-width: 100%;
        max-height: var(--waker-desktop-header-height);
        height: auto;
        object-fit: contain;
        object-position: left bottom;
    }

    .nav-main {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-left: 8px;
    }

    .nav-main-punkt,
    .butt {
        margin: 0;
        border: 1px solid var(--waker-color-header-border);
        border-radius: 7px;
        background: var(--waker-color-header-surface);
        box-shadow: inset 0 1px 0 var(--waker-color-header-surface);
    }

    .nav-main-punkt a,
    .hdr-logout-button {
        display: inline-flex;
        align-items: center;
        gap: 9px;
    }

    .nav-main-punkt a {
        padding: 9px 14px;
        color: var(--waker-color-header-link);
        text-decoration: none;
    }

    .nav-main-punkt:hover,
    .butt:hover,
    .butt_ico:hover,
    .hdr-logout-button:hover,
    .hdr-logout-button:focus-visible {
        background: var(--waker-color-header-control-hover);
    }

    .nav-main-sel {
        background: var(--waker-gradient-primary);
        border-color: var(--waker-color-mobile-header-surface);
    }

    .nav-main-icon,
    .hdr-logout-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 17px;
        height: 17px;
        flex: 0 0 auto;
    }

    .nav-main-icon svg,
    .hdr-logout-icon svg {
        width: 100%;
        height: 100%;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.85;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .nav-main-icon .ti,
    .hdr-user-menu__icon .ti {
        font-size: 22px;
        line-height: 1;
    }

    #hdr_logout {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        margin-left: auto;
        margin-right: 0;
        padding: 5px 8px;
        border: 1px solid var(--waker-color-header-border);
        border-radius: 8px;
        background: var(--waker-color-header-surface);
        color: var(--waker-color-header-text);
        box-shadow: none;
        float: none;
    }

    #user_name {
        margin-right: 4px;
        font-size: inherit;
        font-weight: 600;
        line-height: 1.2;
        color: var(--waker-color-surface);
        background: transparent;
        border: 0;
        box-shadow: none;
        -webkit-text-fill-color: var(--waker-color-surface);
    }

    .hdr-logout-button,
    .hdr-logout-button span,
    .hdr-logout-button .hdr-logout-icon {
        color: var(--waker-color-surface);
        -webkit-text-fill-color: var(--waker-color-surface);
    }

    .hdr-logout-button {
        justify-content: flex-start;
        min-height: 0;
        padding: 7px 12px;
        border: 1px solid var(--waker-color-header-border);
        border-radius: 6px;
        background: var(--waker-color-header-control);
        box-shadow: inset 0 1px 0 var(--waker-color-header-surface);
        cursor: pointer;
        transition: background 0.14s ease, border-color 0.14s ease;
        appearance: none;
        -webkit-appearance: none;
    }
}
/* desktopcompactnav1: compact borderless desktop navigation. */
@media (min-width: 1024px) {
    body #header1.app-desktop-header {
        gap: 10px;
        padding-right: 12px;
    }

    body #header1.app-desktop-header #logo {
        flex: 0 0 auto;
        max-width: 238px;
    }

    body #header1.app-desktop-header .nav-main {
        flex: 1 1 auto;
        flex-wrap: nowrap;
        align-items: center;
        gap: 3px;
        min-width: 0;
        margin-left: 2px;
    }

    body #header1.app-desktop-header .nav-main-punkt {
        flex: 0 0 auto;
        border: 0 !important;
        border-radius: 8px;
        background: transparent !important;
        box-shadow: none !important;
    }

    body #header1.app-desktop-header .nav-main-punkt a {
        min-height: 38px;
        padding: 0 9px;
        gap: 6px;
        border-radius: 8px;
        color: rgba(255, 255, 255, 0.78);
        font-size: 13px;
        font-weight: 600;
        line-height: 1;
        white-space: nowrap;
        transition: background 0.14s ease, color 0.14s ease, box-shadow 0.14s ease;
    }

    body #header1.app-desktop-header .nav-main-punkt:hover a,
    body #header1.app-desktop-header .nav-main-punkt a:focus-visible {
        background: rgba(255, 255, 255, 0.08);
        color: #fff;
        outline: none;
    }

    body #header1.app-desktop-header .nav-main-sel {
        background: transparent !important;
        border-color: transparent !important;
    }

    body #header1.app-desktop-header .nav-main-sel a {
        background: var(--waker-gradient-primary);
        color: #fff;
        box-shadow: 0 8px 18px rgba(37, 99, 235, 0.22);
    }

    body #header1.app-desktop-header .nav-main-icon {
        width: 15px;
        height: 15px;
    }

    body #header1.app-desktop-header #hdr_logout {
        flex: 0 0 auto;
        gap: 6px;
        padding: 4px 6px;
        border: 0;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.08);
    }

    body #header1.app-desktop-header #user_name {
        max-width: 96px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 13px;
    }

    body #header1.app-desktop-header .hdr-logout-button {
        min-height: 34px;
        padding: 0 10px;
        border: 0;
        border-radius: 7px;
        background: rgba(255, 255, 255, 0.07);
        font-size: 13px;
    }
}

@media (min-width: 1024px) and (max-width: 1500px) {
    body #header1.app-desktop-header #logo {
        max-width: 210px;
    }

    body #header1.app-desktop-header .nav-main-punkt a {
        padding: 0 7px;
        gap: 5px;
        font-size: 12px;
    }

    body #header1.app-desktop-header .nav-main-icon {
        width: 14px;
        height: 14px;
    }

    body #header1.app-desktop-header #user_name {
        max-width: 76px;
        font-size: 12px;
    }

    body #header1.app-desktop-header .hdr-logout-button {
        padding: 0 8px;
        font-size: 12px;
    }
}
/* desktopnarrownav1: keep the desktop header inside the 1024px breakpoint edge. */
@media (min-width: 1024px) and (max-width: 1199px) {
    body #header1.app-desktop-header #logo {
        max-width: var(--waker-desktop-header-compact-logo-max-width, 176px);
    }

    body #header1.app-desktop-header .nav-main {
        gap: 3px;
    }

    body #header1.app-desktop-header .nav-main-punkt a {
        justify-content: center;
        width: var(--waker-desktop-header-compact-nav-size, 38px);
        min-width: var(--waker-desktop-header-compact-nav-size, 38px);
        padding: 0;
        gap: 0;
    }

    body #header1.app-desktop-header .nav-main-icon {
        width: var(--waker-desktop-header-compact-nav-icon-size, 20px);
        height: var(--waker-desktop-header-compact-nav-icon-size, 20px);
    }

    body #header1.app-desktop-header .nav-main-label {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        clip-path: inset(50%);
        white-space: nowrap;
        border: 0;
    }

    body #header1.app-desktop-header .hdr-user-menu__summary {
        padding-right: 7px;
        padding-left: 7px;
    }

    body #header1.app-desktop-header #user_name {
        max-width: 72px;
    }
}
/* desktopuserdropdown1: user dropdown for secondary desktop navigation. */
@media (min-width: 1024px) {
    body #header1.app-desktop-header #hdr_logout.hdr-user-menu {
        position: relative;
        display: block;
        flex: 0 0 auto;
        min-width: 0;
        margin-left: auto;
        margin-right: 0;
        padding: 0;
        border: 0;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.08);
        box-shadow: none;
        color: var(--waker-color-surface);
        float: none;
    }

    body #header1.app-desktop-header .hdr-user-menu__summary {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        min-height: 38px;
        padding: 0 11px;
        border-radius: 8px;
        color: var(--waker-color-surface);
        cursor: pointer;
        user-select: none;
        list-style: none;
        transition: background 0.14s ease, color 0.14s ease;
    }

    body #header1.app-desktop-header .hdr-user-menu__summary::-webkit-details-marker {
        display: none;
    }

    body #header1.app-desktop-header .hdr-user-menu__summary::marker {
        content: "";
    }

    body #header1.app-desktop-header .hdr-user-menu__summary:hover,
    body #header1.app-desktop-header .hdr-user-menu__summary:focus-visible,
    body #header1.app-desktop-header .hdr-user-menu[open] .hdr-user-menu__summary,
    body #header1.app-desktop-header .hdr-user-menu--active .hdr-user-menu__summary {
        background: rgba(255, 255, 255, 0.12);
        outline: none;
    }

    body #header1.app-desktop-header .hdr-user-menu__chevron {
        display: inline-flex;
        width: 14px;
        height: 14px;
        color: currentColor;
        transition: transform 0.14s ease;
    }

    body #header1.app-desktop-header .hdr-user-menu[open] .hdr-user-menu__chevron {
        transform: rotate(180deg);
    }

    body #header1.app-desktop-header .hdr-user-menu__chevron svg,
    body #header1.app-desktop-header .hdr-user-menu__icon svg {
        width: 100%;
        height: 100%;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.9;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    body #header1.app-desktop-header .hdr-user-menu__panel {
        position: absolute;
        top: calc(100% + 8px);
        right: 0;
        z-index: 1000;
        display: grid;
        gap: 3px;
        min-width: 210px;
        padding: 7px;
        border: 1px solid var(--waker-border-soft);
        border-radius: 12px;
        background: var(--waker-color-surface);
        box-shadow: 0 18px 38px rgba(15, 23, 42, 0.18);
    }

    body #header1.app-desktop-header .hdr-user-menu__item {
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
        min-height: 38px;
        padding: 0 10px;
        border: 0;
        border-radius: 8px;
        background: transparent;
        color: var(--waker-color-text);
        font: inherit;
        font-size: 13px;
        font-weight: 600;
        line-height: 1;
        text-align: left;
        text-decoration: none;
        box-sizing: border-box;
        cursor: pointer;
    }

    body #header1.app-desktop-header .hdr-user-menu__item:hover,
    body #header1.app-desktop-header .hdr-user-menu__item:focus-visible,
    body #header1.app-desktop-header .hdr-user-menu__item.is-active {
        background: var(--waker-color-surface-soft);
        color: var(--waker-color-primary);
        outline: none;
    }

    body #header1.app-desktop-header .hdr-user-menu__icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 16px;
        height: 16px;
        flex: 0 0 auto;
        color: currentColor;
    }

    body #header1.app-desktop-header .hdr-user-menu__logout {
        color: var(--waker-color-danger);
    }

    body #header1.app-desktop-header .hdr-user-menu__logout:hover,
    body #header1.app-desktop-header .hdr-user-menu__logout:focus-visible {
        background: #fff1f2;
        color: var(--waker-color-danger);
    }
}

@media (min-width: 1024px) and (max-width: 1500px) {
    body #header1.app-desktop-header .hdr-user-menu__summary {
        min-height: 34px;
        padding: 0 9px;
        gap: 5px;
    }
}
/* desktopheaderdropdownfix1: remove header top gap and make user dropdown dark. */
@media (min-width: 1024px) {
    html,
    body {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    body #header1.app-desktop-header {
        margin-top: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        border-top: 0 !important;
        top: 0;
    }

    body.page-dialup #header1.app-desktop-header,
    body.page-alerts_new #header1.app-desktop-header,
    body.page-alerts-new #header1.app-desktop-header {
        padding: 0 12px 0 0 !important;
    }

    body #header1.app-desktop-header .hdr-user-menu__panel {
        top: calc(100% + 6px);
        min-width: 220px;
        width: max-content;
        max-width: 280px;
        min-height: 0 !important;
        padding: 8px;
        border: 1px solid rgba(160, 182, 219, 0.24);
        border-radius: 12px;
        background: var(--waker-color-header) !important;
        box-shadow: 0 18px 38px rgba(2, 33, 95, 0.32);
    }

    body #header1.app-desktop-header .hdr-user-menu__item {
        min-height: 38px;
        color: rgba(255, 255, 255, 0.82) !important;
        -webkit-text-fill-color: rgba(255, 255, 255, 0.82);
    }

    body #header1.app-desktop-header .hdr-user-menu__item:hover,
    body #header1.app-desktop-header .hdr-user-menu__item:focus-visible,
    body #header1.app-desktop-header .hdr-user-menu__item.is-active {
        background: rgba(255, 255, 255, 0.10) !important;
        color: #fff !important;
        -webkit-text-fill-color: #fff;
    }

    body #header1.app-desktop-header .hdr-user-menu__logout {
        color: #ffb4b4 !important;
        -webkit-text-fill-color: #ffb4b4;
    }

    body #header1.app-desktop-header .hdr-user-menu__logout:hover,
    body #header1.app-desktop-header .hdr-user-menu__logout:focus-visible {
        background: rgba(255, 255, 255, 0.10) !important;
        color: #ffd2d2 !important;
        -webkit-text-fill-color: #ffd2d2;
    }
}

