/*
    Sometimes the sub menus get too large for the page and prevent the menu from scrolling, limiting functionality
    A quick fix is to change .side-menu to

    -> position:absolute

    and uncomment the code below.
    You also need to uncomment

    -> <div class="absolute-wrapper"> </div> in the html file

    you also need to tweek the animation. Just uncomment the code in that section
    --------------------------------------------------------------------------------------------------------------------
    If you want to make it really neat i suggest you look into an alternative like http://areaaperta.com/nicescroll/
    This will allow the menu to say fixed on body scoll and scoll on the side bar if it get to large
*/

/*.absolute-wrapper{
    position: fixed;
    width: 300px;
    height: 100%;
    background-color: #f8f8f8;
    border-right: 1px solid #e7e7e7;
}*/
body > .outerContainer {
	margin-left: 0px;
	margin-right: 0px;
}

.content-main {
	margin-left: 340px;
}
.slide-menu-outer {
    padding-left: 0 !important;
}
.side-menu {
    position: fixed;
    width: 310px;
    height: 100%;
    background-color: #f8f8f8;
    border-right: 1px solid #e7e7e7;
	overflow-x: hidden;
	overflow-y: auto;
	z-index: 1000;
    scrollbar-width: thin;
    scrollbar-color: #666666 #cccccc;
}

.side-menu .navbar {
    border: none;
}

.side-menu .navbar-header {
    width: 100%;
    border-bottom: 1px solid #e7e7e7;
}

.side-menu .navbar-nav {
	background: none;
}

.side-menu .navbar-nav .active li > a {
    background-color: transparent;
    margin-right: -1px;
}

.side-menu .navbar-nav li {
    display: block;
    width: 100%;
    border-bottom: 1px solid #e7e7e7;
}

.side-menu .navbar-nav li a:not(.btn) {
    padding: 15px;
	font-size: 12px;
}

.side-menu .btn-task-view-company {
	font-size: 7px;
	position: relative;
	top: -2px;
	margin-right: 2px;
}

.side-menu .ui-datepicker td span, .side-menu .ui-datepicker td a {
	padding: 0.2em !important;
}

.side-menu #eventsData {
	padding: 0px 15px;
	margin-bottom: 15px;
}

.side-menu #eventsData .context-menu-rightHandTasks {
	white-space: normal !important;
}

.side-menu .navbar-nav li a i.fa-lg {
    margin-right: 10px;
}

.side-menu .badge {
	display: inline-block;
    min-width: 10px;
    padding: 3px 7px;
    font-size: 12px;
    font-weight: bold;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    background-color: #666666;
    border-radius: 10px;
	margin-left: 5px;
}

.side-menu #dropdown {
    border: 0;
    margin-bottom: 0;
    border-radius: 0;
    background-color: transparent;
    box-shadow: none;
}

.side-menu #dropdown .caret {
    float: right;
    margin: 9px 5px 0;
}

.side-menu #dropdown .indicator {
    float: right;
}

.side-menu #dropdown > a {
    border-bottom: 1px solid #e7e7e7;
}

.side-menu #dropdown .navbar-nav > li > a {
	padding: 5px 15px;
	font-weight: normal;
}

.side-menu #dropdown .panel-body {
    padding: 0;
    background-color: #f3f3f3;
}

.side-menu #dropdown .panel-body .navbar-nav {
    width: 100%;
}

.side-menu #dropdown .panel-body .navbar-nav li {
    /*padding-left: 15px;*/
    border-bottom: 1px solid #e7e7e7;
}

.side-menu #dropdown .panel-body .navbar-nav li.active > a {
    background: #cccccc;
	color: #666666;
}

.side-menu #dropdown .panel-body .navbar-nav li.active > a:hover {
    background: #666666;
	color: #ffffff;
}

.side-menu #dropdown .panel-body .navbar-nav li:last-child {
    border-bottom: none;
}

.side-menu #dropdown .panel-body .panel > a {
    margin-left: -20px;
    padding-left: 35px;
}

.side-menu #dropdown .panel-body .panel > a.subNav {
	background: var(--cyb-blue);
	color: #fff;
}

.side-menu #dropdown .panel-body .panel > a.subNav .caret {
	border-top-color: #fff;
	border-bottom-color: #fff;
}

.side-menu #dropdown .panel-body .panel-body {
    margin-left: -15px;
}

.side-menu #dropdown .panel-body .panel-body li {
    padding-left: 30px;
}

.side-menu #dropdown .panel-body .panel-body li:last-child {
    border-bottom: 1px solid #e7e7e7;
}

.side-menu #search-trigger {
    background-color: #f3f3f3;
    border: 0;
    border-radius: 0;
    position: absolute;
    top: 0;
    right: 0;
    padding: 15px 18px;
}

.side-menu .brand-name-wrapper {
    min-height: 50px;
}

.side-menu .brand-name-wrapper .navbar-brand {
    display: block;
	padding: 10px 0px;
	float: none;
}

.side-menu .brand-name-wrapper .navbar-brand .headerLogo {
    width: 185px;
    height: 30px;
    display: block;
	margin: 0px auto;
}

.side-menu .headerLinks {
    padding-left: 10px;
}

.side-menu .headerLinks .loginContainer {
	text-align: center;
}

.side-menu .headerLinks .loginInfo {
	font-weight: normal;
	font-size: 16px;
	margin-bottom: 10px;
	display: inline-block;
	margin: 0;
}

.side-menu .headerLinks .siteSelect {
	display: inline-block;
	margin-left: 10px;
}

.side-menu .headerLinks .siteSelect #switchSite {
	height: 25px;
	padding: 0px;
}

.side-menu .headerLinks .userOptions, .side-menu .headerLinks .userLinks, .side-menu .headerLinks .startTicketContainer {
	margin-bottom: 10px;
}

.side-menu .headerLinks .userOptions {
    display: flex;
    justify-content: space-evenly;
    margin-left: -10px;
}

.side-menu .headerLinks .userOptions .btn {
	color: var(--cyb-blue);
}

.side-menu .headerLinks .userOptions .fa-lg {
	padding-right: 5px;
}

.side-menu .headerLinks .userLinkContainer, .side-menu .headerLinks .startTicketContainer {
	padding-left: 0px;
}

.side-menu .headerLinks .userLinks .btn {
	border-right: 1px solid #7f8c8d;
	font-size: 10px;
}

.side-menu .headerLinks .userLinks .btn:last-child {
	border-right: none;
}

.side-menu #search {
    position: relative;
    z-index: 1000;
}

.side-menu #search .panel-body {
    padding: 0;
}

.side-menu #search .panel-body .navbar-form {
    padding: 0;
    padding-right: 50px;
    width: 100%;
    margin: 0;
    position: relative;
    border-top: 1px solid #e7e7e7;
}

.side-menu #search .panel-body .navbar-form .form-group {
    width: 100%;
    position: relative;
}

.side-menu #search .panel-body .navbar-form input {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    width: 100%;
    height: 50px;
}

.side-menu #search .panel-body .navbar-form .btn {
    position: absolute;
    right: 0;
    top: 0;
    border: 0;
    border-radius: 0;
    background-color: #f3f3f3;
    padding: 15px 18px;
}

.side-menu .navbar-default .navbar-nav > li > a {
    color: #666666;
	font-weight: bold;
}
.side-menu .navbar-default .navbar-nav > li > a .caret {
	border-top-color: #666666;
	border-bottom-color: #666666;
}
.side-menu .navbar-default .navbar-nav > li > a:hover .caret,
.side-menu .navbar-default .navbar-nav > li > a:focus .caret,
.side-menu .navbar-default .navbar-nav > li.active > a .caret {
	border-top-color: #ffffff;
	border-bottom-color: #ffffff;
}
.side-menu .navbar-default .navbar-nav > .active > a,
.side-menu .navbar-default .navbar-nav > .active > a:hover,
.side-menu .navbar-default .navbar-nav > .active > a:focus,
.side-menu .navbar-default .navbar-nav > li > a:hover,
.side-menu .navbar-default .navbar-nav > li > a:focus {
	color: #ffffff;
	background: #666666;
}
.side-menu .navbar-default .navbar-nav > .active > a .badge,
.side-menu .navbar-default .navbar-nav > .active > a:hover .badge,
.side-menu .navbar-default .navbar-nav > .active > a:focus .badge,
.side-menu .navbar-default .navbar-nav > li > a:hover .badge,
.side-menu .navbar-default .navbar-nav > li > a:focus .badge {
	color:  #666666;
	background: #ffffff;;
}
#cybernetMessageIcon {
	color: var(--cyb-blue);
	cursor: pointer;
}
/* #cybernetMessageIcon .fa-layers-counter {
	top: 85%;
} */
#cybernetNotifications {
	position: fixed;
	top: 89px;
	right: 0;
	width: 20vw;
	transition: transform 0.5s ease;
	transform: translateX(20vw);
	z-index: 1050;
	height: 92vh;
	background: #efefef;
	-webkit-box-shadow: inset 0 5px 5px -5px rgba(0,0,0,.25);
    -moz-box-shadow: inset 0 5px 5px -5px rgba(0,0,0,.25);
    box-shadow: inset 0 5px 5px -5px rgba(0,0,0,.25);
	padding: 10px 0 10px 20px;
}
#cybernetNotifications.open {
	transform: translateX(0);
}
#cybernetNotifications h2 {
	margin-top: 0;
	border-bottom: 2px solid #ccc;
	display: inline-block;
}
#cybernetNotifications .notificationsHeader {
	padding-right: 20px;
	position: relative;
}
#cybernetNotifications .notificationsHeader .manageNotifications {
	position: absolute;
	right: 20px;
	top: 0;
}
#cybernetNotifications .notificationsInner {
	height: 77vh;
	overflow-y: auto;
	overflow-x: hidden;
	padding-right: 20px;
}
#cybernetNotifications .notificationBubble,
#bottomNewNotification {
	padding: 10px 20px;
	margin-top: 20px;
	background: #2c3e50;
	color: #fff;
	border-radius: 10px;
	position: relative;
}
#cybernetNotifications .notificationBubble.noNotifications {
    background: none;
    color: #2c3e50;
    padding: 10px 0;
	margin-top: 0;
}
#cybernetNotifications .notificationBubble h3 {
	font-size: 18px;
	margin: 0;
}
#cybernetNotifications .notificationBubble h3 [class*=fa-] {
	margin-right: 10px;
}
#cybernetNotifications .notificationBubble .btn-dismiss {
	position: absolute;
	top: -15px;
	right: -15px;
	background: #1a2632;
	color: #fff;
	border-radius: 20px;
}
#cybernetNotifications .notificationBubble .newFlag {
	position: absolute;
	top: -12px;
	left: 30px;
	background: #ff253a;
	color: #fff;
	padding: 2px 10px;
	font-weight: 800;
	border-radius: 0 0 5px 5px;
}
#cybernetNotifications .notificationBubble .newFlag:before {
	content: '';
	position: absolute;
	top: 0;
	left: -12px;
	border-left: 12px solid transparent;
	border-bottom: 12px solid #ac1726;
}
#cybernetNotifications .notificationBubble .notificationContent[data-link]:not([data-link=""]) {
	cursor: pointer;
}
#cybernetNotifications .notificationFooter {
	position: absolute;
	bottom: 5vh;
	left: 0;
	text-align: center;
	width: 20vw;
}
#bottomNewNotification {
	position: fixed;
	bottom: 20px;
	right: -400px;
	width: 400px;
	transition: all 0.5s ease;
}
#bottomNewNotification.show {
	right: 20px;
}
#staffAlertArea {
	overflow-y: auto;
}
#staffAlertArea .modal-dialog {
	width: 800px;
}
#staffAlertArea .modal-content {
	background: transparent;
	-webkit-box-shadow: none;
	box-shadow: none;
}
#staffAlertArea .modal-body {
	padding: 0;
}
#staffAlertArea .modal-body h3 {
	font-size: 36px;
	margin: 0 0 20px;
	padding: 15px;
	color: #fff;
	background-color: var(--cyb-blue);
	border-radius: 4px;
	-webkit-box-shadow: 0 5px 15px rgb(0 0 0 / 50%);
	box-shadow: 0 5px 15px rgb(0 0 0 / 50%);

}
#staffAlertArea .alert {
	-webkit-box-shadow: 0 5px 15px rgb(0 0 0 / 50%);
	box-shadow: 0 5px 15px rgb(0 0 0 / 50%);
	position: relative;
	border: none;
}
#staffAlertArea .alert-message {
	font-size: 1.5em;
}
#staffAlertArea .alert-footer {
	margin-top: 10px;
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
}
#staffAlertArea .alert-meta-info {
	font-size: 0.9em;
	opacity: 0.5;
}
#staffAlertArea .alert-action .btn:not(:last-child) {
	margin-right: 10px;
}
#staffAlertArea .alert-action .dropdown-menu {
	padding: 0;
}
#staffAlertArea .alert-action .dropdown-menu li + li {
	border-top: 1px solid #e9ecef;
}
#staffAlertArea .alert-action .dropdown-menu .btn {
	text-align: left;
	padding: 5px 10px;
	color: #666;
}
#staffAlertArea .alert-action .dropdown-menu .btn:hover,
#staffAlertArea .alert-action .dropdown-menu .btn:active,
#staffAlertArea .alert-action .dropdown-menu .btn:focus,
#staffAlertArea .alert-action .dropdown-menu .btn:active:focus {
	background-color: #ccc;
	font-weight: 800;
	text-decoration: none;
}
#staffAlertArea .alert .snooze-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0,0,0,0.75);
	border-radius: 4px;
	color: #fff;
	font-size: 24px;
	z-index: 1;
	display: flex;
	justify-content: center;
	align-items: center;
	opacity: 0;
}

@media (max-width: 768px) {
    .side-menu {
        position: relative;
        width: 100%;
        height: 0;
        border-right: 0;
        border-bottom: 1px solid #e7e7e7;
    }
    .side-menu .brand-name-wrapper .navbar-brand {
        display: inline-block;
    }
    /* Slide in animation */
    @-moz-keyframes slidein {
        0% {
            left: -300px;
        }
        100% {
            left: 10px;
        }
    }
    @-webkit-keyframes slidein {
        0% {
            left: -300px;
        }
        100% {
            left: 10px;
        }
    }
    @keyframes slidein {
        0% {
            left: -300px;
        }
        100% {
            left: 10px;
        }
    }
    @-moz-keyframes slideout {
        0% {
            left: 0;
        }
        100% {
            left: -300px;
        }
    }
    @-webkit-keyframes slideout {
        0% {
            left: 0;
        }
        100% {
            left: -300px;
        }
    }
    @keyframes slideout {
        0% {
            left: 0;
        }
        100% {
            left: -300px;
        }
    }
    /* Slide side menu*/
    /* Add .absolute-wrapper.slide-in for scrollable menu -> see top comment */
    .side-menu-container > .navbar-nav.slide-in {
        -moz-animation: slidein 300ms forwards;
        -o-animation: slidein 300ms forwards;
        -webkit-animation: slidein 300ms forwards;
        animation: slidein 300ms forwards;
        -webkit-transform-style: preserve-3d;
        transform-style: preserve-3d;
    }
    .side-menu-container > .navbar-nav {
        /* Add position:absolute for scrollable menu -> see top comment */
        position: fixed;
        left: -300px;
        width: 300px;
        top: 43px;
        height: 100%;
        border-right: 1px solid #e7e7e7;
        background-color: #f8f8f8;
        -moz-animation: slideout 300ms forwards;
        -o-animation: slideout 300ms forwards;
        -webkit-animation: slideout 300ms forwards;
        animation: slideout 300ms forwards;
        -webkit-transform-style: preserve-3d;
        transform-style: preserve-3d;
    }
    /* Uncomment for scrollable menu -> see top comment */
    /*.absolute-wrapper{
        width:285px;
        -moz-animation: slideout 300ms forwards;
        -o-animation: slideout 300ms forwards;
        -webkit-animation: slideout 300ms forwards;
        animation: slideout 300ms forwards;
        -webkit-transform-style: preserve-3d;
        transform-style: preserve-3d;
    }*/
    @-moz-keyframes bodyslidein {
        0% {
            left: 0;
        }
        100% {
            left: 300px;
        }
    }
    @-webkit-keyframes bodyslidein {
        0% {
            left: 0;
        }
        100% {
            left: 300px;
        }
    }
    @keyframes bodyslidein {
        0% {
            left: 0;
        }
        100% {
            left: 300px;
        }
    }
    @-moz-keyframes bodyslideout {
        0% {
            left: 300px;
        }
        100% {
            left: 0;
        }
    }
    @-webkit-keyframes bodyslideout {
        0% {
            left: 300px;
        }
        100% {
            left: 0;
        }
    }
    @keyframes bodyslideout {
        0% {
            left: 300px;
        }
        100% {
            left: 0;
        }
    }
    /* Slide side body*/
    .side-body {
        margin-left: 5px;
        margin-top: 70px;
        position: relative;
        -moz-animation: bodyslideout 300ms forwards;
        -o-animation: bodyslideout 300ms forwards;
        -webkit-animation: bodyslideout 300ms forwards;
        animation: bodyslideout 300ms forwards;
        -webkit-transform-style: preserve-3d;
        transform-style: preserve-3d;
    }
    .body-slide-in {
        -moz-animation: bodyslidein 300ms forwards;
        -o-animation: bodyslidein 300ms forwards;
        -webkit-animation: bodyslidein 300ms forwards;
        animation: bodyslidein 300ms forwards;
        -webkit-transform-style: preserve-3d;
        transform-style: preserve-3d;
    }
    /* Hamburger */
    .navbar-toggle {
        border: 0;
        float: left;
        padding: 18px;
        margin: 0;
        border-radius: 0;
        background-color: #f3f3f3;
    }
    /* Search */
    #search .panel-body .navbar-form {
        border-bottom: 0;
    }
    #search .panel-body .navbar-form .form-group {
        margin: 0;
    }
    .navbar-header {
        /* this is probably redundant */
        position: fixed;
        z-index: 3;
        background-color: #f8f8f8;
    }
    /* Dropdown tweek */
    #dropdown .panel-body .navbar-nav {
        margin: 0;
    }
}

.side-menu::-webkit-scrollbar-track {
	border-radius: 10px;
	background-color: #cccccc;
}

.side-menu::-webkit-scrollbar {
	width: 5px;
	background-color: #cccccc;
	z-index: 1;
}

.side-menu::-webkit-scrollbar-thumb {
	border-radius: 10px;
	box-shadow: inset 0 0 6px rgba(0,0,0,.3);
	-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,.3);
	background-color: #666666;
}

.collapseNav {
	position: fixed;
	left: 310px;
	width: 10px;
	height: 100%;
	min-height: 100% !important;
	background: #e7e7e7;
	display: flex;
	flex-direction: column;
	justify-content: center;
	z-index: 1000;
}

.collapseNav .arrowContainer {
	overflow: hidden;
	position: absolute;
	width: 30px;
	height: 60px;
}

.collapseNav .arrowContainer .arrowInner {
	position: relative;
	left: -30px;
	width: 60px;
	height: 60px;
	border-radius: 60px;
	background: #e7e7e7;
	text-align: right;
	line-height: 60px;
}

.collapseNav .arrowContainer a {
	font-size: 18px;
	padding: 10px 8px;
	color: #666666;
}

.row.topSearches {
	padding: 10px 10px 20px 0;
	border-bottom: 1px solid #eeeeee;
	position: fixed;
	top: 0px;
	background: #ffffff;
	z-index: 3;
	width: 83%;
    display: flex;
    justify-content: space-between;
}

.topSearches .input-group .input-group-addon {
	display: table-caption;
	width: 100%;
	height: auto;
	background: #f1f4f7;
}

.topSearches .input-group .input-group-addon a {
	font-size: inherit;
	color: #2c3e50;
	font-family: 'Lato', Helvetica, Arial, sans-serif;
}

.topSearches .input-group .btn {
	border-radius: 0px;
}

.topSearches .searchBlock {
	position: relative;
	padding-left: 10px;
	padding-right: 10px;
	min-height: 1px;
}

.mainContent {
	margin-right: 20px;
	margin-top: 100px;
	margin-bottom: 30px;
	position: relative;
}

.cfdebug {
	margin-left: 340px;
}
