﻿/* Left menu */
.left-menu {
    padding: 0px;
    background-color: #d2d3d5;
    /*border-right: 1px solid #d2d3d5;*/
    position: fixed;
    top: 41px;
    bottom: 70px;
    z-index: 10;
}

@media (min-width: 768px) {
    .left-menu {
        top: 100px;
    }
}

@media (max-width: 480px) {
    .left-menu-hidden {
        display: none;
    }
}

@supports (display: flex) {
    @media (min-width: 480px) {
        .left-menu {
            display: -webkit-box;
            display: -moz-box;
            display: -ms-flexbox;
            display: -moz-flex;
            display: -webkit-flex;
            display: flex;
            -webkit-flex-flow: column nowrap;
            -moz-flex-flow: column nowrap;
            -ms-flex-flow: column nowrap;
            flex-flow: column nowrap;
        }
    }
}

.left-menu .top-menu-spacer {
    height: 50px;
    background-color: #3a3b3b;
}

@media (max-width: 480px) {
    .left-menu .top-menu-spacer {
        background-color: transparent;
        padding-top: 15px;
    }

    .admin-user-switcher-item,
    .ui-version-switcher-container {
        display: none;
    }

    .left-menu-overviews-item,
    .left-menu-agendas-item,
    .left-menu-quickbook-item {
        display: none !important;
    }

    .bottom-navbar-container {
        display: none;
    }
}

.left-menu-item {
    /*height: 100px;*/
    height: -webkit-calc((100% - 50px) / 5);
    height: calc((100% - 50px) / 5);
    max-height: 100px;
    display: table;
    width: 100%;
    cursor: pointer;
}

.left-menu-item.left-menu-group-item {
    cursor: default;
}

.left-menu-item:hover,
.left-menu-item.active {
    background-color: #bdbec1;
}

.left-menu-item.left-menu-quickbook-item {
    color: #999999;
}

@media (min-height: 480px) {
    .left-menu-item.left-menu-quickbook-item {
        position: absolute;
        bottom: 0px;
    }
}

@supports (display: flex) {
    @media (min-width: 480px) {
        .left-menu-item.left-menu-quickbook-item {
            margin: auto 0 0 0;
            position: relative;
            bottom: auto;
        }
    }
}

.left-menu-item.left-menu-quickbook-item:hover,
.left-menu-item.left-menu-quickbook-item:active {
    background-color: #d2d3d5;
}

/*.left-menu-item.left-menu-quickbook-item .quickbook-item-icon-wrapper {
    border-radius: 20px;
    border: 1px solid #999999;
    width: 42px;
    height: 42px;
    padding-left: 5px;
    padding-right: 2px;
    margin: 0 auto;
}

.left-menu-item.left-menu-quickbook-item .quickbook-item-icon-wrapper .glyphicon {
    top: 0px;
}*/

.left-menu-item-icon,
.left-menu-item-icon * {
    font-size: 34px;
}

.left-menu-item-icon {
    display: table-cell;
    vertical-align: middle;
    width: 25%;
}

.left-menu-group-item .left-menu-item-icon {
    width: 100%;
}

.left-menu-item-icon > div {
    text-align: center;
}

.left-menu-item-icon img {
    width: 34px;
    height: 34px;
}

.left-menu-group-item .left-menu-item-icon > div {
    position: relative;
}

.left-menu-group-item .left-menu-item-icon .submenu-icon {
    position: absolute;
    right: 0%;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    display: none;
}

.left-menu-group-item:hover .left-menu-item-icon .submenu-icon {
    display: none;
}

.left-menu-group-item .left-menu-item-icon .second-item-icon {
    position: absolute;
    left: 47%;
    top: 10px;
    background-color: #d2d3d5;
}

.left-menu-group-item:hover .left-menu-item-icon .second-item-icon,
.left-menu-group-item.active .left-menu-item-icon .second-item-icon {
    background-color: #bdbec1;
}

.left-menu-item-name {
    display: none;
}

@media (min-width: 992px) {
    .left-menu-item-name {
        display: table-cell;
        font-size: 20px;
        vertical-align: middle;
        width: 75%;
    }
}

.left-submenu-group {
    display: none;
    background-color: #bdbec1;
    position: absolute;
    z-index: 100;
    white-space: nowrap;
}

.left-menu-group-item:hover .left-submenu-group {
    display: block;
}

.left-submenu-item {
    padding: 15px 10px;
    cursor: pointer;
}

.left-submenu-item:hover {
    font-weight: bold;
}

.left-submenu-item-name {
    width: -webkit-calc(100% - 20px);
    width: calc(100% - 20px);
}

.left-submenu-item-name::after {
    display: block;
    color: transparent;
    overflow: hidden;
    visibility: hidden;
    height: 1px;
    font-weight: bold;
    content: attr(title);
}

.left-menu-notification-badge {
    position: absolute;
    font-size: 15px;
}

/* notifications menu item */
.left-menu-item.notifications-menu-item {
    /*display: none;*/
}

.notifications-menu-item .left-menu-item-icon > div {
    display: flex;
    justify-content: center;
}

.notifications-menu-item .left-menu-item-icon .menuitem-icon-wrapper {
    width: 34px;
    height: 34px;
    display: flex;
    position: relative;
}

.notifications-menu-item .left-menu-item-icon .menuitem-icon-wrapper.showcounter::after {
    content: attr(data-unreadmessages);
    position: absolute;
    left: calc(100% - 10px);
    top: -5px;
    min-width: 10px;
    border-radius: 10px;
    padding: 3px 7px;
    font-size: 12px;
    font-weight: bold;
    background-color: red;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-content: center;
    align-items: center;
    animation-name: unreadmessagespulse;
    animation-duration: 2s;
    animation-timing-function: ease-in-out;
    animation-delay: 0;
    animation-direction: normal;
    animation-iteration-count: 5;
    animation-fill-mode: none;
    animation-play-state: running;
}

@keyframes unreadmessagespulse {
    0% {
        transform: scale(1.0);
    }

    50% {
        transform: scale(1.5);
    }

    100% {
        transform: scale(1.0);
    }
}


/* bottom menu */
.bottom-menu-left,
.bottom-menu-right {
    padding: 0px;
    height: 50px;
}

@media (min-width: 768px) {
    .bottom-menu-left,
    .bottom-menu-right {
        height: 70px;
    }
}

.bottom-menu-left,
.bottom-menu-left * {
    color: #999998;
}

.bottom-menu-left {
    background-color: #d2d3d5;
    border-right: 0px solid #d2d3d5;
}

.bottom-menu-left-item {
    height: 100%;
    width: 100%;
    display: table;
}

.mainmenu-search-button {
    cursor: pointer;
}

.bottom-menu-left-item .menu-item-icon {
    display: table-cell;
    width: 25%;
    /*vertical-align: middle;*/
}

.bottom-menu-left-item .menu-item-icon > div {
    text-align: center;
    font-size: 34px;
    padding-top: 10px;
}

.bottom-menu-left-item .menu-item-name {
    display: none;
    /*vertical-align: middle;*/
    width: 75%;
}

@media (min-width: 768px) {
    .bottom-menu-left-item .menu-item-name {
        display: table-cell;
    }
}

.bottom-menu-left-item .menu-item-name > div {
    font-size: 20px;
}

.bottom-menu-right .navbar-collapse {
    padding-right: 0px;
}

@media (min-width: 768px) {
    .bottom-menu-right .navbar-collapse {
        padding-right: 15px;
    }
}

#bottom-menu-right-navbar {
    height: 100% !important;
}

#bottom-menu-right-navbar .navbar-nav {
    height: 100%;
    padding-left: 10px;
}

#bottom-menu-right-navbar .navbar-right {
    padding-right: 30px;
}

#bottom-menu-right-navbar .navbar-nav li {
    height: 100%;
}

#bottom-menu-right-navbar .navbar-nav button {
    background-color: #ffffff;
    height: 50px;
    padding-bottom: 0px;
    padding-top: 0px;
    border-radius: 0px;
}

#bottom-menu-right-navbar .navbar-nav .bottom-menu-item:hover,
#bottom-menu-right-navbar .navbar-nav .bottom-menu-item-active,
#bottom-menu-right-navbar .navbar-nav .bottom-menu-item.active {
    -webkit-box-shadow: none;
    box-shadow: none;
}

#bottom-menu-right-navbar .navbar-nav .bottom-menu-item:hover .bottom-menu-item-icon,
#bottom-menu-right-navbar .navbar-nav .bottom-menu-item-active .bottom-menu-item-icon {
    background-color: #bdbec1;
    color: #ffffff;
    -webkit-box-shadow: none;
    box-shadow: none;
}

#bottom-menu-right-navbar .navbar-nav .bottom-menu-item.active .bottom-menu-item-icon {
    background-color: #bdbec1;
    color: #333333;
    -webkit-box-shadow: none;
    box-shadow: none;
}

#bottom-menu-right-navbar .navbar-nav .bottom-menu-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 20px;
    background-color: #ffffff;
    border: 1px solid #60c4ba;
    color: #60c4ba;
    font-size: 22px;
    padding-left: 2px;
    padding-top: 6px;
    display: inline-block;
}

.bottom-menu-item-icon .glyphicon-question-sign,
.bottom-menu-item-icon .glyphicon-user,
.bottom-menu-item-icon .glyphicon-wrench,
.bottom-menu-item-icon .glyphicon-envelope {
    left: -1px;
}

.bottom-menu-item-label {
    position: relative;
    top: -4px;
}

/* main submenu */
.main-submenu {
    background-color: #f7f9f9;
    width: -webkit-calc(100% - 60px);
    width: calc(100% - 60px);
    border: 1px solid #e7e7e8;
    overflow-y: auto;
    margin-left: 30px;
    margin-right: 30px;
    position: relative;
    top: 40px;
    max-height: -webkit-calc(100% - 115px);
    max-height: calc(100% - 115px);
    /* below: floating menu */
    /*width: 100%;
    float: right;
    z-index: 1000;
    position: absolute;
    bottom: 10px;
    right: 30px;
    max-width: 500px;
    box-shadow: -3px -3px 10px 1px #cccccc;
    background-color: #f7f9f9;*/
}

.main-submenu-hidden,
.main-submenu-group-hidden {
    display: none;
}

.main-submenu-group {
    background-color: #f7f9f9;
    /*background-color: #d2d3d5;*/
}

.main-submenu-group.panel-group {
    margin-bottom: 0px;
}

.main-submenu-group .panel {
    border-radius: 0px;
    /*min-height: 50px;*/
    border: 0px;
    background-color: #f7f9f9;
    /*background-color: #d2d3d5;*/
    margin-top: 0px !important;
    border-top: 0px;
    border-left: 0px;
    border-right: 0px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    box-shadow: none;
}

.main-submenu-group .panel:last-child {
    border-bottom: 0px;
}

.main-submenu-group .panel-heading {
    background-color: #f7f9f9;
    /*background-color: #d2d3d5;*/
    /*min-height: 50px;*/
    cursor: pointer;
    font-weight: bold;
}

.main-submenu-group .panel-heading > div {
    display: table;
    width: 100%;
    min-height: 30px;
}

.main-submenu-group .panel-heading > div > div {
    display: table-cell;
    vertical-align: middle;
}

.main-submenu-group .panel-body {
    padding: 0px;
    border-color: #e7e7e8 !important;
}

.main-submenu-item {
    margin-left: 0px;
    margin-right: 0px;
    /*min-height: 50px;*/
    border-top: 1px solid #e7e7e8;
    cursor: pointer;
    background-color: #ffffff;
}

.main-submenu-item:first-child {
    border-top: 0px;
}

.main-submenu-item:hover,
.main-submenu-item.active {
    background-color: #d2d3d5;
}

.main-submenu-item .main-submenu-item-label,
.main-submenu-item .main-submenu-item-icon {
    height: 100%;
    /*min-height: 50px;*/
    padding-top: 10px;
    padding-bottom: 10px;
}

.main-submenu-item .main-submenu-item-label > div,
.main-submenu-item .main-submenu-item-icon > div {
    display: table;
    width: 100%;
    /*min-height: 50px;*/
}

.main-submenu-item .main-submenu-item-label > div > div,
.main-submenu-item .main-submenu-item-icon > div > div {
    display: table-cell;
    vertical-align: middle;
    padding-left: 20px;
}
