/* OTOBO is a web-based ticketing system for service organisations.

Copyright (C) 2001-2020 OTRS AG, https://otrs.com/
Copyright (C) 2019-2024 Rother OSS GmbH, https://otobo.io/

This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
*/

@media only screen and (max-width: 767px) {

    #oooMobileMenu {
        display: inline-block;
        font-size: 24px;
        line-height: 1;
        color: #fef235;
        color: var(--colHighlight);
        cursor: pointer;
    }

    #oooMobileSignet {
        float: right;
        height: 24px;
        line-height: 1;
    }

    #oooNavigation {
        width: 0px;
    }

    #oooNavigation.oooExpanded {
	    width: 100%;
    }

    #oooNavigation #oooSignet,
    #oooNavBarExpand {
        display: none;
    }

    #oooMobileMenuClose {
        display: inline-block;
        padding-top: 17px;
        padding-left: 17px;
        font-size: 22px;
        line-height: 1;
        color: #fef235;
        color: var(--colHighlight);
        cursor: pointer;
    }

    #oooLogo {
        float: right;
        padding-top: 16px;
        padding-right: 16px;
        height: 24px;
        object-fit: contain;
    }

    #oooNavBarModuleIcons,
    #oooUser {
        max-width: 268px;
    }

    #oooUser .oooLogout > a {
        display: inline-block;
    }

    #oooUser .oooLogout > #oooPrefDesc {
        left: 12px;
    }

    #oooPrefDesc span {
        margin-right: 12px;
        color: #fff !important;
        opacity: 0.4 !important;
    }
}

@media only screen and (min-width: 768px) {

    #oooNavigation {
        width: 56px;
        max-height: 800px;
    }

    #oooNavigation.oooExpanded {
	    width: 268px;
    }

    #oooMobileMenuClose {
        display: none;
    }

    #oooLogo {
        display: none;
        width: 196px;
    }

    #oooNavBarSignet > img {
        position: relative;
        top: 32px;
        left: 12px;
        height: 32px;
        object-fit: contain;
-webkit-transition: left 0.3s ease;
   -moz-transition: left 0.3s ease;
     -o-transition: left 0.3s ease;
        transition: left 0.3s ease;
    }
    #oooNavigation.oooExpanded > #oooNavBarIcons > #oooNavBarSignet > img {
        left: 36px;
    }

    #oooPrefDesc span {
        display: none;
    }
}

#oooNavigation {
    position: fixed;
    overflow: hidden;
    top: 0;
    left: 0;
    height: 100%;
    border-radius: 0px 0px 20px 0px;
    background-color: #00023c;
    background-color: var(--colMainDark);
-webkit-transition: width 0.3s ease;
   -moz-transition: width 0.3s ease;
     -o-transition: width 0.3s ease;
        transition: width 0.3s ease;
}

#oooNavigation > #oooNavBarIcons {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: calc( 100% - 24px );
    display: grid;
    grid-template-columns: 100%;
    grid-template-rows: 65px 1fr auto 1fr 32px;
}

#oooNavBarIcons > div {
    width: 100%;
    height: 100%;
}

/* Logo */
#oooNavBarSignet {
    grid-area: 1 / 1 / 2 / 2;
}

#oooNavigation #oooSignet {
    width: 32px;
}

/* User */
#oooUser {
    grid-area: 5 / 1 / 6 / 2;
    width: 100%;
    display: grid;
    grid-template-columns: 4px 1fr auto;
    align-items: center;
}

#oooUserIcons {
    position: relative;
    top: 0px;
    left: calc( 100% - 44px );
    height: 32px;
    width: 32px;
    border-radius: 16px;
    background-size: cover;
}

#oooPreferences > svg {
    width: 24px;
    height: 24px;
} 

#oooPreferences,
#oooNoPref {
    display: block;
    position: relative;
    top: 1px;
    left: 1px;
    width: 24px;
    height: 24px;
	fill: #fef235;
    fill: var(--colHighlight);
-webkit-transition: top 1s ease, left 0.6s ease;
   -moz-transition: top 1s ease, left 0.6s ease;
     -o-transition: top 1s ease, left 0.6s ease;
        transition: top 1s ease, left 0.6s ease;
    border-radius: 12px;
}

#oooUser:hover #oooPreferences {
    top: 22px;
    left: 22px;
-webkit-transition: top 0.6s ease, left 1s ease;
   -moz-transition: top 0.6s ease, left 1s ease;
     -o-transition: top 0.6s ease, left 1s ease;
        transition: top 0.6s ease, left 1s ease;
}

#oooLogoutIcon {
    display: block;
    position: relative;
    top: -20px;
    left: 4px;
    width: 24px;
    height: 24px;
    background-color: #00023c;
    background-color: var(--colMainDark);
    border-radius: 12px;
}

#oooLogoutIcon > svg {
    position: relative;
    top: 2px;
    left 2px;
    width: 20px;
    height: 20px;
	fill: #fef235;
    fill: var(--colHighlight);
}

#oooAvatar {
    display: block;
    position: relative;
    top: -48px;
    height: 32px;
    width: 32px;
    border-radius: 16px;
    opacity: 1;
-webkit-transition: opacity 0.5s ease;
   -moz-transition: opacity 0.5s ease;
     -o-transition: opacity 0.5s ease;
        transition: opacity 0.5s ease;
}

#oooUser:hover #oooAvatar {
    opacity: 0.2;
}

#oooAvatar > img {
    height: 32px;
    width: 32px;
    object-fit: contain;
    border-radius: 16px;
}

#oooAvatar > .Initials {
    height: 32px;
    line-height: 32px;
    width: 32px;
    border-radius: 16px;
}

#oooUser > .oooLogout {
	width: 0px;
    max-height: 32px;
-webkit-transition: width 0.3s ease;
   -moz-transition: width 0.3s ease;
     -o-transition: width 0.3s ease;
        transition: width 0.3s ease;
}
#oooNavigation.oooExpanded > #oooNavBarIcons > #oooUser > .oooLogout {
	width: 188px;
}

#oooPrefDesc {
    position: relative;
    left: 8px;
}

/* Modules */
#oooNavBarModuleIcons {
    grid-area: 3 / 1 / 4 / 2;
    position: relative;

    display: grid;
    grid-template-columns: 100%;
    grid-auto-rows: 40px;
    grid-row-gap: 38px;
}
#oooNavBarModuleIcons > a {
	display: grid;
	grid-template-columns: 4px 1fr auto;
    align-items: center;
}

#oooUser > .oooNavBarHighlight,
#oooNavBarModuleIcons > a > .oooNavBarHighlight {
	width: 100%;
	height: 100%;
	border-radius: 2px;
	background-color: #fef235;
    background-color: var(--colHighlight);
	opacity: 0;
-webkit-transition: opacity 0.12s ease;
   -moz-transition: opacity 0.12s ease;
     -o-transition: opacity 0.12s ease;
        transition: opacity 0.12s ease;
}
#oooUser:hover > .oooNavBarHighlight,
#oooNavBarModuleIcons > a:hover > .oooNavBarHighlight {
	opacity: 1;
}

#oooNavBarModuleIcons > a > .oooIconContainer {
	width: 100%;
	height: 100%;
}
#oooNavBarModuleIcons > a > .oooIconContainer > svg {
	position: relative;
	top: 9px;
	left: calc(100% - 39px);
	width: 22px;
	height: 22px;
    fill: #fff;
    opacity: 0.4;
-webkit-transition: opacity 0.12s ease, fill 0.12s ease;
   -moz-transition: opacity 0.12s ease, fill 0.12s ease;
     -o-transition: opacity 0.12s ease, fill 0.12s ease;
        transition: opacity 0.12s ease, fill 0.12s ease;
}

#oooNavBarModuleIcons > a > .oooNavBarDescription {
	width: 0px;
-webkit-transition: width 0.3s ease;
   -moz-transition: width 0.3s ease;
     -o-transition: width 0.3s ease;
        transition: width 0.3s ease;
}
#oooNavigation.oooExpanded > #oooNavBarIcons > #oooNavBarModuleIcons > a > .oooNavBarDescription {
	width: 188px;
}

#oooNavBarModuleIcons > a > .oooNavBarDescription > h3 {
    display: none;
}

/* Expand Button */
#oooNavBarExpand {
    position: fixed;
    top: 102px;
    left: 44px;
    width: 24px;
    height: 24px;
    border-radius: 12px;
    box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.16);
    background-color: rgba(255, 255, 255, 255);
    cursor: pointer;
-webkit-transition: left 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
   -moz-transition: left 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
     -o-transition: left 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
        transition: left 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}
#oooNavigation.oooExpanded > #oooNavBarExpand {
    left: 256px;
    box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0);
    background-color: rgba(255, 255, 255, 0);
}

#oooNavBarExpand > i {
    position: relative;
    top: 3.5px;
    left: 4.5px;
    font-size: 16px;
    line-height: 16px;
    color: #001bff;
    color: var(--colMainLight);
    opacity: 1;
-webkit-transition: opacity 0.3s ease;
   -moz-transition: opacity 0.3s ease;
     -o-transition: opacity 0.3s ease;
        transition: opacity 0.3s ease;
}
#oooNavigation.oooExpanded > #oooNavBarExpand > img {
    opacity: 0;
}

#oooNavigation + #oooCustomerNotifications {
    display: none;
}

/* Text and svg colors */
#oooUser > .oooLogout h3 {
    opacity: 0.8;
}

#oooNavBarModuleIcons > a > .oooNavBarDescription > h3,
#oooUser h3,
#oooPrefDesc > p {
    display: none;
    color: #fff;
    opacity: 0.4;
    white-space: nowrap;
-webkit-transition: opacity 0.12s ease, color 0.12s ease;
   -moz-transition: opacity 0.12s ease, color 0.12s ease;
     -o-transition: opacity 0.12s ease, color 0.12s ease;
        transition: opacity 0.12s ease, color 0.12s ease;
}

#oooNavBarModuleIcons > a:hover > .oooNavBarDescription > h3,
#oooUser a:hover > h3,
#oooUser a:hover > p,
#oooUser > .oooLogout .Highlight {
	opacity: 1;
    color: #fef235;
    color: var(--colHighlight);
}

#oooNavBarModuleIcons > a:hover > .oooIconContainer > svg {
	opacity: 1;
    fill: #fef235;
    fill: var(--colHighlight);
}

/* IE */
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {

    #oooNavigation > #oooNavBarIcons {
        display: -ms-grid;
        -ms-grid-columns: 100%;
        -ms-grid-rows: 65px 1fr auto 1fr 32px;
    }

    /* Logo */
    #oooNavBarSignet {
        -ms-grid-row: 1;
        -ms-grid-row-span: 1;
        -ms-grid-column: 1;
        -ms-grid-column-span: 1;
    }

    /* User */
    #oooUser {
        -ms-grid-row: 5;
        -ms-grid-row-span: 1;
        -ms-grid-column: 1;
        -ms-grid-column-span: 1;

        display: -ms-grid;
        -ms-grid-columns: 4px 1fr auto;
    }

    #oooUser .oooNavBarHighlight {
        -ms-grid-column: 1;
        -ms-grid-row-align: center;
    }

    #oooNavBarAvatar {
        -ms-grid-column: 2;
        -ms-grid-row-align: center;
    }

    #oooUser .oooLogout {
        -ms-grid-column: 3;
        -ms-grid-row-align: center;
    }

    /* Modules */
    #oooNavBarModuleIcons {
        -ms-grid-row: 3;
        -ms-grid-row-span: 1;
        -ms-grid-column: 1;
        -ms-grid-column-span: 1;

        display: -ms-grid;
        -ms-grid-columns: 100%;
        -ms-grid-rows: 78px;
    }

    #oooNavBarModuleIcons > a {
        display: -ms-grid;
        -ms-grid-columns: 4px 1fr auto;

        -ms-grid-row-align: center;
        margin-top: 19px;
        margin-bottom: 19px;
    }

    #oooNavBarModuleIcons > a:nth-child(1) {
        -ms-grid-row: 1;
    }
    #oooNavBarModuleIcons > a:nth-child(2) {
        -ms-grid-row: 2;
    }
    #oooNavBarModuleIcons > a:nth-child(3) {
        -ms-grid-row: 3;
    }
    #oooNavBarModuleIcons > a:nth-child(4) {
        -ms-grid-row: 4;
    }
    #oooNavBarModuleIcons > a:nth-child(5) {
        -ms-grid-row: 5;
    }
    #oooNavBarModuleIcons > a:nth-child(6) {
        -ms-grid-row: 6;
    }
    #oooNavBarModuleIcons > a:nth-child(7) {
        -ms-grid-row: 7;
    }

    #oooNavBarModuleIcons .oooNavBarHighlight {
        -ms-grid-column: 1;
        -ms-grid-row-align: center;
    }

    #oooNavBarModuleIcons .oooIconContainer {
        -ms-grid-column: 2;
        -ms-grid-row-align: center;
    }

    #oooNavBarModuleIcons .oooNavBarDescription {
        -ms-grid-column: 3;
        -ms-grid-row-align: center;
    }

    #oooNavBarModuleIcons > a > .oooIconContainer > svg {
        top: 4px;
    }

    @supports (display: grid) {
        #oooNavigation > #oooNavBarIcons {
            display: grid;
        }
        #oooUser {
            display: grid;
        }
        #oooNavBarModuleIcons {
            display: grid;
        }
        #oooNavBarModuleIcons > a {
            display: grid;
            margin-top: 0px;
            margin-bottom: 0px;
        }
        #oooNavBarModuleIcons > a > .oooIconContainer > svg {
            top: 9px;
        }
    }

}
