.header-area-inner-wrapper {
    align-items: center;
    display: flex;
    justify-content: center;
    width: 100%;
}

@media(min-width: 1250px){
    .header-area-inner-wrapper {
        padding-left: 85px;
        padding-right: 30px;
    }
}
@media(max-width: 1250px){
    .header-area-inner-wrapper {
        padding-left: 85px;
        padding-right: 30px;
    }
}

@media(min-width: 530px) and (max-width: 1250px){
    .header-content-area {
        justify-content: right;
        width: calc(79vw - 60px)  !important;
    }
}
@media(max-width: 530px){
    .header-content-area {
        justify-content: right;
        width: calc(80vw - 60px)  !important;
    }
}

@media(max-width: 650px){
    .header-logo-wrapper img {
        width: 160px;
    }
    .header-logo-wrapper {
        padding-left: 15px;
    }
}



.header-area-wrapper {
    align-items: center;
    background-color: var(--hn-header-background-color);
    box-shadow: var(--hn-header-box-shadow);
    display: flex;
    height: 97px;
    justify-content: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 10;
}

.header-language-switcher-area-wrapper {
    display: flex;
    width: 10%;
}

.header-login-area-wrapper,
.header-user-settings-area-wrapper{
    display: flex;
    max-width: 110px;
    justify-content: center;
    padding-right: 5px;
}
.header-login-area-wrapper{
    width: 7%;
    min-width: 90px;
}
.header-user-settings-area-wrapper{
    width: 65px;
    min-width: 65px;
}

.header-logo-wrapper {
    align-items: center;
    display: flex;
    justify-content: center;
    width: 12%;
}

.header-logo-wrapper img {
    width: 180px;
}

.header-menu-area-wrapper {
    align-items: center;
    display: flex;
    justify-content: end;
    width: 63%;
}

.language-switcher-flag img {
    max-width: var(--hn-switcher-flag-width) !important;
    width: var(--hn-switcher-flag-width);
    height: var(--hn-switcher-flag-height);
    cursor: pointer;
    padding: 5px;
    position: relative;
    top: -2px;
}

.language-switcher-flag{
    display: flex;
    flex-direction: column;
    align-items: center;
}
.language-switcher-item {
    align-items: center;
    display: flex;
    justify-content: center;
    min-width: 50px;
    width: var(--hn-switcher-flag-width);
}

.login-switcher-item {
    align-items: center;
    display: flex;
    justify-content: center;
    min-width: 50px;
}

.language-switcher-item,
.login-switcher-item a {
    display: block;
    text-align: center;
    padding: 12px;
}

.language-switcher-text {
    font-size: var(--hn-switcher-font-size);
    font-family: Arial, sans-serif;
}

.language-switcher-wrapper {
    display: flex;
    flex-direction: column;
}

.menu-wrapper li {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: var(--hn-menu-font-size);
    list-style-type: none;
    margin: 0;
    padding: 0;
    width: 80px;
}
.menu-wrapper ul {
    display: flex;
    margin: auto;
}
.menu-switcher-flag img {
    max-width: var(--hn-menu-icon-width) !important;
    width: var(--hn-menu-icon-width);
    height: var(--hn-menu-icon-height);
}

.menu-item-flag img {
    max-width: var(--hn-menu-icon-width) !important;
    width: var(--hn-menu-icon-width);
    height: var(--hn-menu-icon-height);
}
.menu-user-icon img {
    width: 45px;
    position: relative;
    display: inline-block;

}

.menu-item {
    align-items: center;
    display: flex;
    justify-content: center;
    min-width: 50px;
    /*width: calc(var(--hn-menu-icon-width) * 2.7);*/
}

.menu-switcher-item a {
    display: block;
    text-align: center;
}
.default-table-action-icon-column{
    display: flex;
    justify-content: start;
    align-items: center;
}

.menu-item-text {
    font-size: var(--hn-menu-font-size);
    font-family: Arial, sans-serif;
}

.menu-item-text:hover {
    color: #252323 !important;
}

a {
    text-decoration: none;
    color: var(--hn-link-color);
}
a:hover {
    text-decoration: none;
    background-color: var(--hn-header-background-color) ;
    color: var(--hn-link-color);
}

.header-content-area {
    align-items: center;
    display: flex;
    justify-content: right;
    width: 88%;
}
.hamburger-area img{
    cursor: pointer;
}

.language-switcher-dropdown{
    width: 70px;
    flex-direction: column;
    box-shadow: var(--hn-universal-box-shadow);
    background-color: #F2F3F5;
    justify-content: center;
    align-items: center;
    position: relative;
    top: 32px;
    left: -10px;
    padding-top: 9px;
    padding-bottom: 9px;
}
.language-switcher-dropdown .language-switcher-item{
    height: 24px;
    margin-top: 9px;
    margin-bottom: 9px
}
.language-switcher-dropdown .language-switcher-item a:hover{
    background: none;
}

.language-switcher-dropdown .language-switcher-item img{
    filter: grayscale(40%);
}

.language-switcher-dropdown .language-switcher-item img:hover{
    filter: grayscale(0%);
}

.header-area-inner-wrapper a:hover{
    background: #E7E9EC;
    color: #252323 !important;
}



.menu-item a{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 12px;
}

.user-header-area{
    max-width: 250px;
    overflow: hidden;
    white-space: nowrap;
    display: flex;
}
.user-icon-column{
    width: 41px;
    display: flex;
    align-items: center;
}
.user-data-column{
    margin-top: -3px;
    margin-left: 15px;
    display: flex;
    flex-direction: column;
    justify-content: start;
    font-size: var(--hn-menu-font-size);
}
.user-data-column p{
    height: 0;
    margin-bottom: 16px;
    margin-top: 3px;
}
.header-user-area-wrapper{
    width: 20%;
    display: flex;
    padding-right: 12px;
    padding-left: 12px;
    justify-content: end;
    max-width: 230px;
}
.menu-user-icon{
    padding: 5px;
    cursor: pointer;
}

@media(min-width: 1100px){
    .hamburger-area{
        display: none;
    }
    .show-on-big-screen{
        display: flex;
    }
    .show-on-small-screen{
        display: none;
    }
}
@media(max-width: 1250px){
    .hamburger-area{
        display: block;
        margin-top: 4px;
        position: relative;
        top: 3px;
    }
    .show-on-big-screen{
        display: none;
    }
    .menu-hamburger{
        width: 41px;
    }
    .menu-user-icon img {
        width: 26px;
        position: relative;
        top: 0px;
        left: 0px;
    }
    .menu-item-flag img {
        width: 30px;
        position: relative;
        top: -2px;
    }
    .language-switcher-flag img {
        max-width: 30px;
        width: 30px;
        cursor: pointer;
        position: relative;
    }
    .header-language-switcher-area-wrapper {
        width: 52px;
    }
    .header-login-area-wrapper,
    .header-user-settings-area-wrapper {
        width: 32px;
        min-width: 32px;
    }
    .language-switcher-item {
        min-width: 32px;
    }
    .header-user-area-wrapper{
        width: 20%;
        display: flex;
        padding-right: 0;
        top: 3px;
        justify-content: end;
        position: relative;
        max-width: 230px;
    }
    .header-area-inner-wrapper a:hover {
        background: none;
    }
    .language-switcher-item {
        position: relative;
        top: 3px;
    }
    .show-on-small-screen{
        display: flex;
    }
    .menu-user-icon:hover img{
        position: relative;
        top: -1px;
    }
    .menu-item-flag:hover img{
        position: relative;
        top: -3px;
    }
    .language-switcher-flag:hover img{
        position: relative;
        top: -3px;
    }
}



/* #####################   SMALL SCREEN MENU   ######################## */

.small-screen-menu-area{
    position: absolute;
    top: 100px;
    left: 10px;
}
.small-screen-menu-wrapper{
    width: 65vw;
    min-width: 300px;
    max-width: 330px;
    min-height: 200px;
    background: var(--hn-header-background-color);
    position: relative;
    left: 0;
    box-shadow: var(--hn-header-box-shadow);
    padding: 20px;
}
@media(max-width: 1250px){
    .small-screen-menu-area .menu-item a.menu-item-wrapper{
        flex-direction: row;
    }
   .small-screen-menu-area .menu-wrapper ul {
        display: flex;
        justify-content: start;
        flex-direction: column;
        margin: initial;
        padding-left: 0px;
    }
   .small-screen-menu-area .header-menu-area-wrapper{
        width: 100%;
        justify-content: left;
       padding-left: 0px;
    }
   .small-menu-area-wrapper{
       display: flex;
       flex-direction: column;
   }
   .small-screen-menu-area .menu-wrapper{
        display: flex;
        justify-content: start;
    }
   .small-screen-menu-area .menu-item{
        justify-content: start;
        width: 100%;
    }
    .small-screen-menu-area img{
        width: 22px;
        height: 22px;
    }
    .small-screen-menu-area  .menu-item-text{
        padding-left: 10px;
    }
    .menu-item-flag{
        display: flex;
        align-items: center;
    }
    .menu-item-wrapper:hover img{
        position: relative;
        right: -2px;
    }
    .small-manu-cross-row{
        display: flex;
        justify-content: end;
    }
    .small-manu-cross-row:hover img{
        position: relative;
        top: -1px;
        right: -1px;
    }

}

#user-role-list-dropdown{
    position: absolute;
    top: 80px;
    display: flex;
    flex-direction: column;
    background: #F2F3F5;
    padding: 10px 25px;
    box-shadow: var(--hn-header-box-shadow);
}
.user-role-item-dropdown{
    margin-top: 7px;
    font-size: var(--hn-menu-font-size);
    font-family: Arial, sans-serif;
    cursor: pointer;
    position: relative;
}


@media(min-width: 1250px){
    .submenuWrapper{
        padding-top: 15px;
        padding-bottom: 20px;
        position: absolute;
        top: 80px;
        flex-direction: column;
        background: #F2F3F5;
        box-shadow: var(--hn-header-box-shadow);
        width: 180px;
        margin-left: 100px;
    }
    a.submenu-item-wrapper{
        display: flex;
        flex-direction: row;
        align-items: center;
        width: calc(100% - 25px);
        padding: 5px 5px 2px 20px;
        justify-content: start;
    }
    .submenu-icon{
        width: 30px;
    }
    .submenu-item{
        width: 100%;
        display: flex;
        justify-content: start;
    }
    .submenu-menu-item-flag{
        padding-right: 10px;
        padding-top: 3px;
    }
}


.user-role-item-dropdown a {
    display: flex;
    width: calc(100% + 31px);
/**    margin-left: -26px;
    padding-left: 18px;
    */
}

@media(max-width: 1250px){
    .submenuWrapper{
        display: flex;
        opacity: 0;
        flex-direction: column;
        align-items: start;
        transition: opacity 0.3s ease;
    }
    .submenu-item-wrapper{
        display: flex;
        flex-direction: row;
        align-items: center;
        width: calc(100% - 25px);
        padding: 5px 5px 2px 30px
    }
    .submenu-icon{
        width: 30px;
    }
    .submenu-item{
        width: 100%;
    }
    .submenu-item-wrapper:hover img{
        position: relative;
        right: -3px;
    }
    .submenu-menu-item-flag{
        padding-top: 3px;
    }
    .menu-hamburger{
        width: 37px;
    }
    .header-area-wrapper{
     box-shadow: initial;
    }
    .menu-item{
        cursor: pointer;
    }
    .menu-chevron{
        position: relative;
        left: 10px;
    }

    .small-screen-menu-area{
        position: absolute;
        top: 97px;
        left: 8px;
        box-shadow: var(--hn-header-box-shadow);
    }
    .small-manu-cross-row img{
        cursor: pointer;
        position: relative;
        left: -16px;
    }

    .small-screen-menu-wrapper{
        width: 120vw;
        min-height: 200px;
        background: var(--hn-header-background-color);
        position: relative;
        left: 0;
        box-shadow: initial;
        padding: 0;
        max-height: 78vh;
        overflow: auto;
    }

    .small-manu-cross-row {
        display: flex;
        justify-content: end;
        padding-top: 15px;
        padding-right: 15px;
        width: 90%;
    }
    .header-menu-area-wrapper ul {
        padding-left: 25px;
    }

    .ajax-sub-table-header-icons{
        min-width: initial;
        display: flex;
        width: 100%;
        position: absolute;
    }
}

.user-settings-header-wrapper{
    display: flex;
    .user-settings-header{
        margin-top: 5px;
        justify-content: center;
        display: flex;
        flex-direction: column;
        .menu-item-flag, .menu-item-text {
            justify-content: center;
            text-align: center;
            line-height: 17px;
        }
    }
}

.role-submenu {
    position: absolute;
    top: 0;
    left: 110%;
    margin-left: 10px;
    background: #F2F3F5;
    padding: 8px 16px;
    display: none;
    flex-direction: column;
    border-radius: 2px;
    min-width: 160px;
    z-index: 1001;
    box-shadow: var(--hn-header-box-shadow);

}

.role-submenu a {
    font-size: var(--hn-menu-font-size);
    font-family: Arial, sans-serif;
    color: #252323;
    text-decoration: none;
    padding: 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
}

.role-submenu a:hover {
    text-decoration: underline;
}

.submenu-trigger {
    position: relative; /* důležité pro správné umístění submenu */
}



.user-role-item-dropdown.submenu-trigger {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.menu-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    /* případně přidat šířku, pokud chceš fixní velikost */
    width: 36px;
    margin-top: -3px;
}

.role-text {
    /* můžeš přidat odsazení, font-size apod. */
    width: 100%;
    white-space: nowrap; /* zabrání zalomení */
    padding-left: 10px;
}

.role-arrow {
    width: 20px; /* pevná šířka */
    text-align: center;
    user-select: none; /* aby se neoznačovalo při kliknutí */
}
.base-icon {
    width: 100%;
    height: auto;
    display: block;
}

.overlay-icon {
    position: absolute;
    top: 15px;
    left: -20px; /* tady budeme menit pozici sipecky */
    width: 20px !important;
    height: auto;
    object-fit: contain;
    pointer-events: none;
}

