﻿html {
    height: 100%;
    width: 100%;
}

body {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
}

header {
    width: 100%;
    min-width: 0 !important;
}

#content {
    margin-left: 10px !important;
    margin-right: 10px !important;
    width: calc(100% - 20px) !important;
    min-width: 0 !important;
}

/* menu as drawer */
#mainMenuWrapper .k-icon.k-i-menu {
    cursor: pointer;
    margin: 10px 0 10px 10px;
    /* use full size icons for the menu */
    width: 32px;
    height: 32px;
    background-size: 680px 672px;
    /* set up the drawer icon */
    background-position: -128px -64px;
}

    #mainMenuWrapper .k-icon.k-i-menu.is-mobile {
        display: block;
    }

#logo {
    max-height: 28px !important;
    margin-top: 12px !important;
}

#MainMenu.is-mobile {
    display: none;
    width: 100%;
}

#MainMenu.visibleMainMenu {
    position: absolute;
    left: 0px;
    right: 0px;
    top: 55px;
    z-index: 10;
    display: flex;
    bottom: 0;
    flex-direction: column;
    overflow: auto;
    flex: 1 1 auto;
}

#mainMenuOverlay {
    display: none;
    position: absolute;
    top: 55px;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: black;
    opacity: 0.5;
    z-index: 9 /*main menu is 10*/;
}

    #mainMenuOverlay.visibleMainMenu {
        display: block;
    }

@media screen and (max-width: 1024px) {
    #mainMenuWrapper .k-icon.k-i-menu:not(.is-mobile) {
        display: block;
    }

    #MainMenu:not(.visibleMainMenu):not(.is-mobile) {
        display: none;
    }
}

#mainMenuWrapper .k-icon.k-i-menu.is-empty {
    display: none !important;
}

@media screen and (max-width: 1366px) and (min-width: 1025px) {

    #MainMenu {
        display: flex;
        flex-wrap: wrap;
    }

        #MainMenu li.k-item > .k-link {
            padding: 20px 10px 20px 10px; /* This makes more menu items fit into that kind of mid-sized screen */
        }
}

@media screen and (min-width: 768px) {
    #MainMenu.visibleMainMenu {
        max-width: 400px; /* This makes the menu visible only on a small part of the left side for screens that are big enough to fit */
    }

    #userMenu > li:first-child > span.k-link {
        max-width: 300px;
    }
}

@media screen and (max-width: 415px) {
    #mainMenuWrapper {
        flex-wrap: wrap; /* For smaller screens (specially for phones on upright position) wrap the logo and user menu*/
    }

    #userMenu > li:first-child > span.k-link {
        max-width: 182px;
        min-width: 80px;
    }

    #userMenu > li > .k-animation-container,
    #userMenu > li > .k-animation-container > .k-group {
        max-width: 220px !important;
    }

    #logoWrapper {
        /* Hide the RtChex part of the logo to gain more space for the userMenu*/
        max-width: 40px;
        overflow: hidden;
    }
}
