#header .navbar .nav li.dropdown.gateway .dropdown-menu, #header .navbar .nav li.dropdown.gateway .dropdown-menu {
    width: 310px;
    right: 10px;
}

.gateway_comms, .gateway_notifs, .gateway_tasks {
    width: 310px;
}

.gateway_comms .header, .gateway_notifs .header, .gateway_tasks .header {
    width: 100%;
    background: #606b7d;
    color: white;
    height: 38px;
    line-height: 38px;
    font-size: 14px;
    padding: 0px 10px;
}

.commsTitle, .commsStatus, .commsClear {
    display: inline-block;
}

.toggle_container, .commsClear {
    cursor: pointer;
}

.toggle_container:hover .commsTitle, .commsClear:hover {
    text-shadow: 0px 0px 2px rgba(200, 200, 200, 0.8);
}

.gateway_comms .header .commsStatus.online, .gateway_notifs .header .commsStatus.online, .gateway_tasks .header .commsStatus.online {
    width: 12px;
    height: 12px;
    border-radius: 7px;
    background: #8ec549;
    vertical-align: middle;
    margin-left: 5px;
}

.gateway_comms .header .commsStatus.offline, .gateway_notifs .header .commsStatus.offline, .gateway_tasks .header .commsStatus.offline {
    background: #f48586;
}

.commsClear {
    float: right;
}

#header .search_form li.gateway_cont {
    width: 310px;
    overflow-y: scroll;
    overflow-x: hidden;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
}

/*.gateway_cont {
    max-height: 400px;
}*/

.gateway_cont .cont {
    display: none;
    max-height: 200px;
    overflow-y: scroll;
}

.gateway_item:not(.clone) {
    width: 100%;
    height: 60px;
    background: white;
    display: flex;
}

.gateway_item_type {
    width: 40px;
    height: 40px;
    margin: 10px 7px 7px 7px;
    display: inline-block;
    vertical-align: top;
    border-radius: 50%;
    text-align: center;
}

.gateway_comms .gateway_item_type {
    width: 30px;
    height: 30px;
}

.gateway_item_type span {
    line-height: 38px;
    vertical-align: middle;
}

.gateway_item_content {
    width: 240px;
    color: #546073;
    display: inline-block;
    height: 60px;
}

.gateway_tasks .gateway_item_content {
    width: 240px;
    color: #546073;
    display: inline-block;
    height: 60px;
}

.gateway_item:hover {
    background: #f3f5f6;
}

.gateway_item_content .gTitle {
    font-size: 14px;
    font-weight: 500;
    width: 65%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-top: 11px;
    float: left;
    text-align: left;
}

.gateway_item_content .gText {
    font-size: 12px;
    width: 65%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    float: left;
    text-align: left;
}

.gateway_item_content .gStamp {
    float: right;
    color: #b6bac1;
    font-size: 11px;
    margin-top: 2px;
}

.gateway_item_color {
    width: 5px;
    height: 100%;
    display: inline-block;
}

.gateway_item_color.red {
    background: #eb212e;
}

.gateway_item_color.orange {
    background: #f9ae64;
}

.gateway_item_color.green {
    background: #8ec549;
}

.gActions {
    float: right;
    z-index: -1;
    position: relative;
    top: -5px;
}

.gAction {
    width: 20px;
    height: 20px;
    display: inline-block;
    cursor: pointer;
    margin-top: -15px;
}

.gAction.Comm_map[icon_name="notification_accept"] {
    position: absolute;
    top: -4px;
    right: -10px;
}

.gAction.Comm_map[icon_name="notification_reject"] {
    position: absolute;
    top: 23px;
    right: -10px;
}

.gateway_item:hover .gActions {
    z-index: 1;
}

.gateway_comms .gateway_item_content .gActions .answer_buttons {
    display: none;
}

.gateway_comms .gateway_item div[rel="avatar"] {
    display: none;
}

.header.ghost {
    position: absolute;
    z-index: 100;
}

div[inner_text]:after {
    content: attr(inner_text);
}

.gateway_item {
    -webkit-transition: opacity 0.5s ease-in-out;
    transition: opacity 0.5s ease-in-out;
}

#GatewayNotifications {
    position: absolute;
    z-index: 10;
    top: 100px;
    right: 10px;
}

#GatewayNotifications .notification {
    position: relative;
    margin-top: 5px;
    background: transparent;
    height: 60px;
    width: 320px;
    -webkit-transition: -webkit-transform 1s ease-in-out, opacity 0.5s ease-in-out;
    transition: transform 1s ease-in-out, opacity 0.5s ease-in-out;
    -webkit-transform: translateX(0px);
    transform: translateX(0px);
}

#GatewayNotifications .notification span[rel="avatar_name"] {
    color: #546073;
    line-height: 38px;
    vertical-align: middle;
}

#GatewayNotifications .gateway_item div[rel="avatar"] {
    margin: 10px 5px 5px 5px;
    position: relative;
    width: 40px;
    height: 40px;
    background-size: cover;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    text-align: center;
    background-color: #eceded;
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.1) inset;
    border-radius: 50%;
}

#GatewayNotifications .gateway_item .general_icon {
    display: none;
}

#GatewayNotifications .notification.hidden {
    -webkit-transform: translateX(345px);
    transform: translateX(345px);
}

#GatewayNotifications .notification .gStamp {
    margin-top: 2px;
}

#GatewayNotifications .notification .gateway_item {
    background: rgba(77, 148, 204, 0.9);
    position: absolute;
    color: white;
    border-radius: 5px;
    box-shadow: 2px 1px 18px -6px black;
}

#GatewayNotifications .notification .gateway_item_content {
    color: white;
}

#GatewayNotifications .notification .gActions {
    /*margin: -47px -30px;*/
    height: auto;
    background: transparent;
}

#GatewayNotifications .notification .gActions {
    z-index: 1;
}

#GatewayNotifications .notification .gActions path {
    fill: #fff;
}