body {
    background: #f0f0f0;
    font-family: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.checkbox input[type=checkbox]:checked + label:after {
    font-family: "Glyphicons Halflings";
    content: "\e013";
}

.checkbox label:after {
    padding-left: 4px;
    padding-top: 2px;
    font-size: 9px;
}

label {
    font-weight: normal; /* Roboto font looks nicer with less weight (Bootstrap default is 700) */
}

.checkbox--inline {
    display: inline-block;
    margin-top: 0;
    margin-bottom: 0;
    margin-left: 3px;
}

/*
 * LAYOUT
 */
.layout__sidebar {
    position: fixed;
    height: 100%;
    z-index: 1000;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto; /* Scrollable contents if viewport is shorter than content. */
    /* background gradient */
    background: rgba(53, 64, 82, 1);
    background: -webkit-linear-gradient(top, rgba(53, 64, 82, 1) 0%, rgba(33, 40, 51, 1) 100%);
    background: linear-gradient(to bottom, rgba(53, 64, 82, 1) 0%, rgba(33, 40, 51, 1) 100%);
}

.layout__main-panel {
    position: fixed;
    right: 0;
    left: 45px;
}

.menu__label {
    display: none;
}

/** Sidebar */

.sidebar__logo--big {
    display: none;
}

.sidebar__logo--small {
    padding-top: 25px;
}

@media (min-width: 1024px) {

    /** Layout */
    .layout__sidebar {
        width: 150px;
    }

    .layout__main-panel {
        left: 150px;
    }

    .menu__label {
        display: inline;
    }

    /** Sidebar */
    .sidebar__logo--big {
        display: inline;
    }

    .sidebar__logo--small {
        display: none;
    }

}

/*
 * Sidebar
 */

.sidebar__logo {
    height: 80px;
    border-bottom: 1px solid #4c5462;
    text-align: center;
    padding-top: 16px;
}

.layout__main-panel--sidebar .glyphicon {
    padding-right: 10px;
}

/* Sidebar navigation */
.nav-sidebar {
    margin-right: -21px; /* 20px padding + 1px border */
    margin-bottom: 20px;
}

.nav-sidebar > li {
    border-bottom: 1px solid #4c5462;
}

.nav-sidebar > li > a {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 24px 14px;
    color: #d9dade;
    border-left: 3px solid transparent;
    font-size: 15px;
    font-weight: normal;
    max-width: 150px;
}

.nav-sidebar > .active > a,
.nav-sidebar > .active > a:focus {
    color: #fff;
    background-color: #151a20;
    border-left: 3px solid #21c1ef;
}

.nav-sidebar > li > a:active,
.nav-sidebar > li > a:focus,
.nav-sidebar > li > a:hover {
    color: #fff;
    background-color: #2a2a2b;
    border-left: 3px solid #54c735;
}

/*
 * Header
 */

.layout__main-panel--header {
    padding: 0 0 0 0;
    top: 0;
    z-index: 1000;
}

.layout__main-panel--subheader {
    border-bottom: 1px solid #bdbbbc;
    padding: 0 0 0 0;
    background: #fff;
    top: 80px;
    z-index: 999;
}

.navbar-default {
    background: #fff;
    border-top: 0;
    border-right: 0;
    border-bottom: 1px solid #bdbbbc;
    border-left: 0;
    border-radius: 0;
    margin: 0;
}

.dropdown-menu a {
    cursor: pointer; /* Fix for links without "href" */
}

.dropdown-menu > .disabled > a,
.dropdown-menu > .disabled > a:focus,
.dropdown-menu > .disabled > a:hover {
    color: #c5c5c5;
}

.flag-icon__language-selection,
.flag-icon__language-selection {
    display: inline-block;
}

.flag-icon__language-selection {
    margin-right: 20px;
}

.language-switch__current-language {
    margin-left: 5px;
}

.alert--header {
    margin: 20px 0;
}

/*
 * Header - notifications
 */

.notifications-icon--badge {
    background: red;
    position: absolute;
    top: 1em;
    left: 1.6em;
}

.notifications {
    min-width: 300px;
    padding-top: 0;
}

.notifications--type {
    list-style: none;
    background: #f0f0f0;
    line-height: 2.5em;
    padding-left: 20px;
    text-transform: uppercase;
}

.notifications--item {
    display: block;
    padding-left: 20px;
    font-size: 1em;
}

.notifications--item__heading {
    padding-left: 20px;
    line-height: 3em;
    font-size: 1.2em;
}

.notifications--item,
.notifications--item__heading,
.notifications-list--item,
.notifications--type {
    list-style: none;
    border-bottom: 1px solid #bdbbbc;
}

.notifications-list--item__expanded {
    border-bottom: none;
}

.notifications-list--row {
    display: table-row;
}

.notifications-list--content,
.notifications-list--icon,
.notifications-list--icon__small {
    display: table-cell;
    vertical-align: middle;
}

.notifications-list--icon {
    width: 2em;
    font-size: 2em;
    line-height: 2em;
    text-align: center;
    padding: 0 0.5em 0 0.5em;
}

.notifications-list--icon__small {
    font-size: 1em;
    text-align: right;
    padding: 0 1em 0 0;
}

.notifications-list--content {
    line-height: 1.5em;
    font-size: 0.75em;
    width: 100%;
}

.notifications-list--items__categories {
    max-height: 250px;
    overflow-y: scroll;

}

.notifications-list--items {
    list-style: none;
    background: #fff;
    padding-left: 0;
}

.notifications--item__footer {
    text-transform: uppercase;
    text-align: center;
    margin-top: 0.35em;
}

.notifications-list--title__unread {
    font-weight: normal;
}

.notification__SUCCESS {
    color: #3c763d;
}

.notification__ERROR {
    color: #a94442;
}

.notification-icon__SUCCESS:before {
    content: "\e084";
}

.notification-icon__ERROR:before {
    content: "\e083";
}

.notification-icon__RUNNING_TASK:before {
    content: "\e030";
}

.notification-icon__RUNNING_TASK {
    -webkit-animation: spin 1500ms infinite linear;
    animation: spin 1500ms infinite linear;
}

@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(359deg);
        transform: rotate(359deg);
    }
}

@keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(359deg);
        transform: rotate(359deg);
    }
}

.dropdown-toggle__notifications {
    color: #888;
}

.header__notifications--small {
    position: relative;
    float: right;
    margin-top: 18px;
    margin-right: 15px;
    margin-bottom: 8px;
    background: transparent none;
    border: 1px solid #ddd;
    border-radius: 4px;
    height: 34px;
    width: 44px;
    text-align: center;
}

.dropdown-toggle__notifications--small {
    display: inline-block;
    height: 34px;
    width: 44px;
    padding-top: 7px;
}

.header__notifications--small:hover {
    background-color: #ddd;
}

/**
 * Main
 */
.layout__main-panel--content {
    position: absolute;
    padding: 120px 20px 20px 20px;
}

.layout__panel-search,
.layout__panel-content,
.boxed-content {
    border: 1px solid #e6e6e6;
    border-radius: 3px;
    background: #fff;
    padding: 1em;
}

.layout__panel-actions {
    margin: 1.4em 0 0 0;
}

.layout__panel-content {
    /*margin: 1em 0 3em 0;*/
}

.layout__panel-search {
    padding: 2em 1em;
    margin: 1em 0 0 0;
}

.layout-dashboard {
    background: inherit;
    border: none;
    padding: 0;
}

/**
 * Buttons
 */

.actions--btn {
    padding: 0.7em 1em;
    margin-right: 0.5em;
    text-transform: uppercase;
}

.actions--glyphicon {
    padding-right: 0.5em;
}

.btn-primary, .btn-primary.active,
.btn-primary:visited {
    background: #00bff0;
    border: 1px solid #00bff0;
}

.btn-primary:active,
.btn-primary:focus,
.btn-primary:hover {
    background: #00b2e0;
    border-color: #00b2e0;
}

.btn-default,
.btn-default:visited {
    background: #fff;
}

.btn-default:active,
.btn-default:focus,
.btn-default:hover {
    background: #f9f9f9;
}

.btn-default__form {
    border: 0;
}

.btn-success,
.btn-success:visited {
    background: #4dc824;
    border: 0;
}

.btn-success:active,
.btn-success:focus,
.btn-success:hover {
    background: #48a123;
    border: 0;
}

.btn-info {
    background: #00bff0;
    border: 0;
}

.btn-info:hover {
    background: #00a2d1;
    border: 0;
}

.btn-plain:active,
.btn-plain:focus,
.btn-plain:hover,
.btn-plain {
    background: transparent;
    border: 0;
}

.buttons-panel {
    padding-bottom: 30px;
}

.filter-panel {
    padding: 30px;
    border: 1px solid #e6e6e6;
    background: #fff;
    margin-bottom: 30px;
}

.nav-secondary {
    padding-left: 2em;
}

.nav-secondary .nav-secondary-item,
.nav-secondary {
    white-space: nowrap;
}

.nav-secondary .nav-secondary-item {
    display: inline-block;
    float: none;
}

.nav-secondary .dropdown-menu .nav-secondary-item {
    display: block;
    float: left;
    width: 100%;
}

.vertical-layout--icon-bar {
    display: block;
    height: 22px;
    border-radius: 1px;
    background-color: #888;
    float: left;
    margin: 0 1px;
}

.btn-vertical-layout__active .vertical-layout--icon-bar {
    background-color: #393939;
}

.vertical-layout--icon-bar__half {
    width: 8px;
}

.vertical-layout--icon-bar__third {
    width: 6px;
}

.vertical-layout--icon-bar__quarter {
    width: 4px;
}

.btn-vertical-layout {
    background: none;
    padding: 6px 4px;
}

.nav-secondary-item .nav-secondary-link {
    padding: 7px 25px;
    border-radius: 0;
    border-bottom: 3px solid #fff;
    color: gray;
}

.nav-secondary-item .nav-secondary-link--toggle {
    padding: 7px 10px;
}

.nav-secondary-item .nav-secondary-link:focus,
.nav-secondary-item .nav-secondary-link:active,
.nav-secondary-item .nav-secondary-link:hover {
    border-bottom: 3px solid #54c735;
}

.nav-secondary-item.active .nav-secondary-link {
    background: none;
    color: inherit;
    font-weight: bold;
    border-bottom: 3px solid #21c1ef;
    border-radius: 0;
}

.nav-secondary-item.active .nav-secondary-link:focus,
.nav-secondary-item.active .nav-secondary-link:active,
.nav-secondary-item.active .nav-secondary-link:hover {
    border-bottom: 3px solid #21c1ef;
    background: none;
    color: inherit;
}

.breadcrumb {
    background: none;
    margin-bottom: 0;
    white-space: nowrap;
}

.breadcrumb__item,
.breadcrumb a {
    color: inherit;
    font-size: inherit;
    line-height: 2.5em;
}

.breadcrumb li {
    font-size: 1.6em;
}

.breadcrumb > li + li:before {
    content: "\276F";
    font-size: 80%;
}

.navbar-default .dropdown:not(:last-child) {
    border-right: 1px solid #b8b7b7;
    border-left: 1px solid #b8b7b7;
}

.container-fluid--header {
    padding-right: 0;
}

@media (max-width: 992px) {
    .breadcrumb > li + li:before {
        display: none;
    }
}

@media (max-width: 768px) {
    .breadcrumb {
        height: 79px;
    }

    .navbar-collapse .nav .open > a,
    .navbar-collapse .nav .open > a:focus,
    .navbar-collapse .nav .open > a:hover {
        border-color: #b8b7b7;
    }

    .navbar-nav > li > a,
    .navbar-nav .open .dropdown-menu {
        /*border-bottom: 1px solid #b8b7b7;*/
    }

    .navbar-nav > li.navbar-link-xs--last > a {
        border-bottom: none;
    }

    .navbar-collapse .dropdown:not(:last-child) {
        border-right: none;
    }
}

.navbar-default .dropdown {
    font-size: 1.2em;
}

.navbar-default .navbar-nav > li > a {
    line-height: 49px;
}

.navbar-default .dropdown-menu > li > a {
    font-size: 1.2em;
}

.dropdown-menu--header > li > a {
    padding: 8px 20px;
}

.navbar-default {
    border-color: #b8b7b7;
}

#bootstrap-overrides .navbar-user-profile {
    line-height: 1;
    display: table-row;
    height: 79px;
}

.navbar-user-profile__column {
    display: table-cell;
    vertical-align: middle;
    padding: 0 0 2px 0;
}

.navbar-user-profile__column--first {
    padding-left: 15px;
    padding-right: 15px;
}

.navbar-user-profile__column--last {
    padding-left: 7px;
    padding-right: 15px;
}

.navbar-default--ysoft .dropdown .dropdown-menu > li > a,
.navbar-default--ysoft .dropdown {
    font-size: 1.1em;
}

.navbar-toggle--ysoft {
    margin-top: 18px;
    margin-right: 30px;
}

@media (min-width: 768px) {
    .dropdown-menu__scrollable {
        height: auto;
        max-height: 400px;
        overflow-x: hidden;
    }
}

/*
Tables
*/

.table > thead > tr > th,
.table > tbody > tr > th {
    background: #e6faff;
    border-top: 0;
    border-bottom: 1px solid #b8b7b7;
    font-weight: 500;
}

.table > tbody > tr > td {
    border-bottom: 1px solid #edf0f2;
    border-top: 0;
    vertical-align: middle;
}

.table-striped > tbody > tr:nth-child(odd) {
    background-color: #f5f8fa;
}

.table > tbody > tr > td .btn {
    font-size: 1em;
}

/*
Alerts
*/

.alert-danger {
    color: #fb4a45;
    background-color: #ffedec;
    border-color: #c73938;
}

.alert-info {
    color: #fff;
    background-color: #33ccf3;
    border-color: #33a8cf;
}

/* Pager */

.pagination--wrapper {
    overflow: hidden;
}

.pagination--wrapper .pagination {
    margin: 0;
}

#bootstrap-overrides .pagination > li > a, .pagination > li > span {
    /*color: #333;*/
}

/* Forms */

.input--inner-addon {
    position: relative;
}

.input-inner-addon__input {
    padding-right: 35px;
}

.input-inner-addon__icon {
    position: absolute;
    right: 0;
    top: 0;
    padding: 7px 10px;
    cursor: pointer;
}

#bootstrap-overrides .text-medium {
    font-weight: 500;
}

#bootstrap-overrides .text-light {
    font-weight: 300;
}

.visible-lg-table-cell {
    display: none !important;
}

@media (min-width: 1200px) {
    .visible-lg-table-cell {
        display: table-cell !important;
    }
}

/** change the color of inline icon when WebKit sets the yellow background after the autocomplete was applied
(see https://code.google.com/p/chromium/issues/detail?id=46543) */
.input-inner-addon__input:-webkit-autofill + .input-inner-addon__icon {
    color: #000;
}

/* Entity list */

.entity-list .entity-list__header--not-last {
    border-bottom: 1px solid #ddedf1;
}

.entity-list .entity-list__header {
    vertical-align: middle;
}

.entity-list__header--icon {
    width: 20px;
}

.entity-list__fakelink,
.entity-list__header--fakelink {
    cursor: pointer;
}

.entity-list__header--fakelink:hover {
    text-decoration: underline;
}

.entity-list__column--subitem {
    background-color: #f5f8fa;
}

.entity-list__column--subitem-even {
    background-color: #f0f3f5;
}

.entity-list__column-selected {
    background-color: #edf0f2;
}

.entity-list .entity-list__column--actions {
    padding: 0;
}

.entity-list__link--actions,
.entity-list__actions {
    padding: 0 5px;
}

.entity-list__actions {
    border-left: 1px solid #edf0f2;
    display: inline-block;
    vertical-align: middle;
}

.entity-list__link--actions,
.entity-list__link--actions:active,
.entity-list__link--actions:visited,
.entity-list__link--actions:hover {
    color: #4e515e;
    text-decoration: none;
}

.entity-list__link--actions {
    text-transform: uppercase;
    color: #4e515e;
    display: inline-block;
    font-weight: 500;
    margin: 8px 0;
    height: 24px;
    line-height: 24px;
}

.entity-list__link--actions:hover {
    background-color: #d1d4d6;
}

.entity-list_search-button {
    padding-left: 0;
}

/* Device list */

.device-list__device-group-field {
    display: inline-block;
    color: #00bff0;
    font-weight: 500;
}

.entity-list .device-list__device-name {
    font-weight: 500;
}

.hidden--soft {
    display: none;
}

.device-list__tree-actions:hover,
.device-list__tree-actions:active,
.device-list__tree-actions:focus,
.device-list__tree-actions {
    color: #333;
    text-decoration: none;
}

.device-list__selected-count {
    font-weight: 500;
}

/* Filter panel */

.input-group .form-control--time-field {
    width: 40%;
    margin-right: 5%;
}

.input-group .form-control--date-field {
    width: 55%;
    margin-right: 0;
}

.input-group-addon--break-chain-set {
    border-left: 0;
}

.btn--search {
    text-transform: uppercase;
}