::-webkit-scrollbar {
    width: 5px;
}
::-webkit-scrollbar-track {
    -webkit-box-shadow: none;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb {
    border-radius: 5px;
    background: #ddd;
}

.content-header > .breadcrumb {
    top: 12px;
}

@media (max-width: 991px) {
    .content-header > h1 {
        display: none;
    }
    .content-header > .breadcrumb {
        margin-top: 0px;
        top: 0;
    }
}

body .main-header .logo > img {
    display: none;
    width: 40px;
    margin: 5px 0 0 -10px;
}
body.sidebar-collapse .main-header .logo > img {
    display: block;
}

.btn {
    border-radius: 0;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
    border-width: 1px;
}

.upload-kit .upload-kit-item.image > img {
    min-width: 100px;
    min-height: 100px;
}

.alert-fixed {
    position: fixed;
    top: 10px;
    z-index: 9999;
    border-radius: 0;
}

.login-box, .register-box {
    width: 390px;
    margin: 0 auto;
    padding-top: 7%;
}

.list-group-item:first-child, .list-group-item:last-child {
    border-radius: 0;
}


.form-group.has-success .form-control, .form-group.has-success .input-group-addon, .has-success .form-control {
    border-color: #d2d6de;
    box-shadow: none;
}

.has-success .help-block, .has-success .control-label, .has-success .radio, .has-success .checkbox, .has-success .radio-inline, .has-success .checkbox-inline, .has-success.radio label, .has-success.checkbox label, .has-success.radio-inline label, .has-success.checkbox-inline label {
    color: #333;
}
.form-group.has-success label {
    color: #333;
}
.has-success.select2-container--krajee .select2-dropdown, .has-success .select2-container--krajee .select2-selection {
    border-color: #d2d6de;
}
.has-success .select2-container--open .select2-selection, .has-success .select2-container--krajee.select2-container--focus .select2-selection {
    box-shadow: none;
    border-color: #d2d6de;
}
.has-success.select2-container--krajee .select2-dropdown, .has-success .select2-container--krajee .select2-selection {
    border-color: #d2d6de;
}


.pagination {
    padding: 5px;
    margin: 0;
    display: flex;
    justify-content: center;
}

.pagination > li:first-child > a, .pagination > li:first-child > span,
.pagination > li:last-child > a, .pagination > li:last-child > span {
    border-radius: 0;
}

.content-wrapper, .right-side {
    background-color: #f3f3f4;
}

.error-page {
    width: 650px;
    padding: 150px 0;
    margin: 0 auto;
}

.navbar-nav>.user-menu>.dropdown-menu {
    border-radius: 0;
    padding: 1px 0 0 0;
    border-top-width: 0;
    width: 180px;
}
.navbar-nav>.user-menu>.dropdown-menu>li>a {
    padding: 8px 15px;
}
.navbar-nav>.user-menu>.dropdown-menu>li>a:hover {
    background-color: #f8f8f8;
    color: #333;
}

.navbar .navbar-text-title {
    float: left;
    padding: 0 10px;
    white-space: nowrap;
    text-overflow: ellipsis;
    max-width: 55%;
    overflow: hidden;
}

@media (max-width: 767px) {
    .navbar-nav > .user-menu > a > span {
        display: none;
    }
    .navbar .navbar-text-title {
        max-width: 70%;
    }
}
@media (max-width: 667px) { .navbar .navbar-text-title { max-width: 65%; } }
@media (max-width: 567px) { .navbar .navbar-text-title { max-width: 60%; } }
@media (max-width: 467px) { .navbar .navbar-text-title { max-width: 49%; } }
@media (max-width: 367px) { .navbar .navbar-text-title { max-width: 40%; } }
@media (max-width: 305px) { .navbar .navbar-text-title { display: none; } }

.box {
    /*margin-bottom: 0;*/
    box-shadow: none;
}

.box, .box-body {
    border-radius: 0 !important;
}

.nav-tabs-custom {
    /*box-shadow: none;*/
    border-radius: 0;
}

.upload-kit .upload-kit-input, .upload-kit .upload-kit-item {
    border: none;
}

.input-group-sm > .form-control,
.input-group-sm > .input-group-addon,
.input-group-sm > .input-group-btn > .btn {
    border-radius: 0;
}

.nav-pills > li.active > a, .nav-pills > li.active > a:hover, .nav-pills > li.active > a:focus {
    color: inherit;
    background-color: inherit;
}

.input-sm.select2-container--krajee .select2-selection--single,
.input-group-sm .select2-container--krajee .select2-selection--single {
    border-radius: 0 !important;
    font-size: 14px !important;
    padding: 7px 22px 5px 10px !important;
}

.select2-container--krajee .select2-search--dropdown .select2-search__field {
    border-radius: 0 !important;
}
.select2-container--krajee .select2-selection {
    border-radius: 0;
}
.select2-container .select2-selection--single .select2-selection__rendered {
    margin-top: 0;
}
.select2-results__options {
    max-height: 250px;
    overflow-y: auto;
}

.box .box-absolute-tools {
    position: absolute;
    top: 0;
    right: 15px;
    height: 100%;
    display: flex;
    align-items: center;
}

.box-header.with-back {
    padding-left: 53px;
}
.box-header .box-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 43px;
    height: 40px;
    border-right: 1px solid #f4f4f4;
}

.box-header .box-back > a {
    width: 100%;
    height: 100%;
    display: block;
    text-align: center;
    background-color: white;
    line-height: 41px;
}

.box-widget.box-widget-head {
    margin: 0;
}
.box-widget.box-widget-head .box-header {
    padding: 10px 15px;
}
.box-widget.box-widget-head .box-header .box-tools {
    right: 15px;
}
.box-widget.box-widget-head .box-body {
    padding: 5px 15px;
}
.box-widget.box-widget-head .box-body.nav-tabs-custom {
    padding-bottom: 0;
    margin-bottom: 0;
}

.margin-l-5 {
    margin-left: 5px;
}

.padding-10 {
    padding: 10px;
}

.nav-tabs-custom.flipped > .nav-tabs {
    border: none;
}
.nav-tabs-custom.flipped > .nav-tabs > li {
    border-top: 0;
    border-bottom: 3px solid transparent;
}
.nav-tabs-custom.flipped > .nav-tabs > li.active {
    border-bottom-color: #3c8dbc;
}
.nav-tabs-custom.flipped .nav-tabs > li > a {
    border: none;
}
.nav-tabs-custom.flipped > .nav-tabs > li {
    margin-bottom: 0;
}
.nav-tabs-custom > .nav-tabs > li > a.text-danger {
    color: #a94442;
}

.pagination-sm > li:first-child > a, .pagination-sm > li:first-child > span {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}
.pagination-sm > li:last-child > a, .pagination-sm > li:last-child > span {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.list-model-attributes li {
    border-bottom: 1px solid #f4f4f4;
    padding: 5px 0;
}
.list-model-attributes li:last-child {
    border-bottom: none;
}




.list-group-common {
    margin: 0;
}
.list-group-common > div:first-child {
    border-top: none;
}
.list-group-common > div.empty {
    padding: 20px;
    text-align: center;
    justify-content: center;
    border: none;
}

.list-group-common > div:not(.empty) {
    border-radius: 0;
    padding: 0;
    background-color: #fff;
    border: 1px solid #ddd;
    border-left: none;
    border-right: none;


    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;
    margin-top: -1px;
}

.list-group-common .item-header {
    font-weight: 600;
}
.list-group-common .item-header > div {
    padding: 5px 10px;
}

.list-group-common > div:not(.empty) > div {
    display: flex;
    margin: 0;
    padding: 10px;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.list-group-common > div[data-url]:hover,
.list-group-common > div[data-url]:focus {
    color: #111;
    text-decoration: none;
    background-color: #f5f5f5;
    cursor: pointer;
}

.list-group-common > div:not(.empty) > div:not(:first-child) {
    /*flex-shrink: 0;*/
}
.list-group-common > div:not(.empty) > div:first-child {
    width: 100%;
    flex-shrink: 1;
    justify-content: flex-start;
}
.list-group-common > div:not(.empty) > .actions {

    justify-content: center;
    padding: 0;
}
.list-group-common > div:not(.empty) > .actions > a {
    margin: 0 5px;
    padding: 10px;
}
.list-group-common > div .photo {
    width: 100px !important;
    flex-shrink: 0 !important;;
}
.list-group-common > div .photo img {
    width: 90px;
}
.list-group-common > div .main {
    width: 100%;
    flex-shrink: 1 !important;
    flex-direction: column;
}


#device-tags-tabs a > .label {
    margin-left: 5px;
}
#device-tags-tabs + .tab-content {
    margin-top: 1px;
}

#device-tags-list > div > div:nth-child(2),
#device-tags-list > div > div:nth-child(3),
#device-tags-list > div > div:nth-child(4) {
    width: 120px;
}
#device-tags-list .actions {
    width: 160px !important;
}

#device-tags-list .actions input + label {
    cursor: pointer;
}
#device-tags-list .actions input:disabled + label {
    cursor: default;
}

#device-tags-list .field-is_tracked input {display: none;}
#device-tags-list .field-is_tracked input + label .fa:before {content: "\f070";}
#device-tags-list .field-is_tracked input:checked + label .fa:before {content: "\f06e";}

#devices-list .field-is_tracked input {display: none;}
#devices-list .field-is_tracked input + label .fa:before {content: "\f070";}
#devices-list .field-is_tracked input:checked + label .fa:before {content: "\f06e";}

#device-tags-list .field-log input {
    display: none;
}
#device-tags-list .field-log input + label .fa:before {
    content: "\f10c";
}
#device-tags-list .field-log input:checked + label .fa:before {
    content: "\f111";
}

#device-tags-list .field-is_writable input {
    display: none;
}
#device-tags-list .field-is_writable input + label .fa:before {
    content: "\f177";
}
#device-tags-list .field-is_writable input:checked + label .fa:before {
    content: "\f0ec";
}

/*-------------- SERVER ----------------*/

#server-nodes-list {
    /*margin-top: -1px;*/
}
#server-nodes-list > div:not(.empty) {
    display: flex;
    flex-direction: row;
    border: 1px solid #ddd;
    border-left: 5px solid #dddddd;
    border-right: none;
    /*margin-bottom: -1px;*/
}
#server-nodes-list > div .main {
    display: flex;
    flex-direction: column;
    flex-shrink: 1;
    width: 100%;
}
#server-nodes-list > div .main > div {
    width: 100%;
}
#server-nodes-list > div .main .info {
    display: flex;
}
#server-nodes-list > div .main .info > div:first-child {
    width: 100%;
    flex-shrink: 1;
}
#server-nodes-list > div .main .info > div:not(:first-child) {
    width: 150px;
    flex-shrink: 0;
}
#server-nodes-list > div .main .info,
#server-nodes-list > div .main .console {
    padding: 10px;
    display: flex;
}
#server-nodes-list > div .main .console:empty {
    padding: 0;
}

#server-nodes-list > div .main .console > div:last-child {
    width: 100%;
    flex-shrink: 1;
}
#server-nodes-list > div .main .console > div:not(:last-child) {
    width: 100px;
    flex-shrink: 0;
}

#server-nodes-list > div .state {
    display: flex;
    flex-shrink: 0;
    justify-content: center;
    align-items: center;

    width: 80px;
}
#server-nodes-list > div .actions {
    display: flex;
    flex-shrink: 0;
    justify-content: center;
    align-items: center;
    width: 100px;
}
#server-nodes-list > div:not(.empty):hover {
    color: #111;
    text-decoration: none;
    background-color: #f5f5f5;
    cursor: pointer;
}

#server-nodes-list > div[data-state='0'] {
    border-left: 5px solid #d2d6de;
}
#server-nodes-list > div[data-state='1'] {
    border-left: 5px solid #f39c12;
}
#server-nodes-list > div[data-state='1'][data-is-connected='0'] {
    border-left: 5px solid #dd4b39;
}
#server-nodes-list > div[data-state='1'][data-is-connected='1'] {
    border-left: 5px solid #00a65a;
}

#server-nodes-list > div .status {
    display: none;

    width: 100px !important;
    text-align: center;
}

#server-nodes-list > div[data-is-connected='0'] .status-0 {
    display: block;
}
#server-nodes-list > div[data-is-connected='1'] .status-1 {
    display: block;
}
#server-nodes-list > div[data-state='0'] .status {
    display: none !important;
}

#server-node-view .nav-tabs-devices > .tab-content {
    padding: 0;
}

#server-node-view .nav-tabs-devices .nav-pills > li.active > a,
#server-node-view .nav-tabs-devices .nav-pills > li.active > a:hover,
#server-node-view .nav-tabs-devices .nav-pills > li.active > a:focus {
    color: #444;
    background-color: white;
}

#server-node-view .devices-row {
    margin: 0;
}

#server-node-view .devices-row > div {
    padding: 0;
}

#server-node-view .list-group-header-tags {
    padding: 10px 5px;
}

#server-node-view .list-group-tags .list-group-item {
    padding: 0 5px;
}

#server-node-view .list-group-header-tags > div,
#server-node-view .list-group-tags .list-group-item > div {
    width: 120px;
}

#server-node-view .list-group-header-tags > div:first-child,
#server-node-view .list-group-tags .list-group-item > div:first-child {
    width: 100%;
}

#server-node-view .loading {
    text-align: center;
    display: block;
    white-space: nowrap;
}
#server-node-view .loading .fa-spin {
    margin-right: 10px;
}
#server-node-view .console > div > div {
    padding: 5px;
}



#server-node-tags-list > div > div:nth-child(2),
#server-node-tags-list > div > div:nth-child(3) {
    width: 120px;
}

#server-node-tags-list .value-change {
    color: #3c8dbc;
    text-decoration: underline dotted;
    cursor: pointer;
}

#server-node-tags-list > div .btn-read-tag {
    display: none;
}
#server-node-tags-list > div:hover .btn-read-tag {
    display: block;
}

.popover.change-tag-value {
    width: 200px;
}
.popover.change-tag-value .popover-content {
    text-align: center;
}

.objects-index .list-group-common > div .main .main-row {
    /*padding: 5px;*/
    display: flex;
    width: 100%;
}

.filter {
    padding: 10px;
    display: none;
}
.filter.open {
    display: block;
}


.list-group-common.tags-list > div > .tag-value {
    position: relative;
}
.list-group-common.tags-list > div > .tag-value.tag-value-writable > .value {
    color: #337ab7;
    cursor: pointer;
    width: 100%;
    padding: 0 15px;
    text-align: center;
}
.list-group-common.tags-list > div > .tag-value .btn-read {
    position: absolute;
    right: 5px;
    display: none;
}
.list-group-common.tags-list > div:not(.item-header):hover {
    background: #fafafa;
}
.list-group-common.tags-list > div:not(.item-header):hover .btn-read {
    display: block;
}
.list-group-common.tags-list > div:not(.item-header) > .tag-value.tag-value-writable > .value:hover {
    text-decoration: underline dotted;
}

[data-notify="container"][class*="alert-node-"] {
    background-color: white;
    border-width: 0px;
    border-left: 5px solid white;
    border-radius: 0px;
    box-shadow: 0px 0px 5px rgba(51, 51, 51, 0.3);
    font-family: 'Old Standard TT', serif;
    letter-spacing: 1px;
    padding: 10px 10px 10px 5px;
}

[data-notify="container"][class*="alert-node-"] .notify-body {
    display: flex;
}
[data-notify="container"][class*="alert-node-"] .notify-icon {
    width: 40px;
    display: flex;
    flex-grow: 0;
    justify-content: center;
    align-items: center;
}
[data-notify="container"][class*="alert-node-"] .notify-content {
    margin-left: 5px;
}

[data-notify="container"][class*="alert-node-"] [data-notify="message"] {
    color: grey;
}

[data-notify="container"][class*="alert-node-"] [data-notify="progressbar"] {
    margin-bottom: 0;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
}

[data-notify="container"][class*="alert-node-"] [data-notify="progressbar"] .progress-bar {
    background: #c1c1c1;
}

[data-notify="container"].alert-node-info {
    border-left-color: #a9c5ff;
}
[data-notify="container"].alert-node-warning {
    border-left-color: #ffda55;
}
[data-notify="container"].alert-node-danger {
    border-left-color: #ff7171;
}
[data-notify="container"][class*="alert-node-"] > [data-notify="title"] {
    color: rgb(80, 80, 57);
    display: block;
    font-weight: 700;
    margin-bottom: 5px;
}
[data-notify="container"][class*="alert-node-"] > [data-notify="message"] {
    font-weight: 400;
}


.events-log-list > div {
    cursor: pointer;
}
.events-log-list > [data-is-active='1'] .event-icon {
    border-left: 5px solid #dd4b39;
}
.events-log-list > [data-is-active='1'] .event-state {
    font-weight: bold;
}
.events-log-list > div[data-type='2'][data-is-active='1'] {
    background-color: #e0f1ff;
}
.events-log-list > div[data-type='3'][data-is-active='1'] {
    background-color: #fffced;
}
.events-log-list > div[data-type='4'][data-is-active='1'] {
    background-color: #fbefef;
}

.events-log-list > div:not(.empty) > .event-object {
    width: 200px;
    justify-content: center;
    flex-direction: column;
    align-items: flex-start;
}
.events-log-list > div:not(.empty) > .event-object > div {
    width: inherit;
}
.events-log-list > div:not(.empty) > .event-object > div > a {
    width: inherit;
    display: inline-block;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}
.events-log-list > div:not(.empty) > .event-state {
    width: 260px;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}
.events-log-list > div:not(.empty) > .event-info {
    flex-direction: column; align-items: flex-start; width: 100%; flex-shrink: 1;
}
.events-log-list > div:not(.empty) > .event-info .event-when {
    margin-top: 5px;
}
.events-log-list > div:not(.empty) > div.event-icon:first-child {
    width: 40px; flex-shrink: 0; justify-content: center
}
.events-log-list > div > div.event-code {
    font-weight: bold;
}
.table-event-tags {
    margin-bottom: 0;
}

.table-event-tags > tbody > tr > td {
    border: none;
    vertical-align: middle;
    padding: 5px 5px 5px 0;
}

.objects-list a {
    position: relative;
}
.objects-list a > .label {
    position: absolute;
    top: 9px;
    right: 7px;
    text-align: center;
    font-size: 9px;
    padding: 2px 3px;
    line-height: .9;
}




.nav-tabs-custom-swapped .nav-stacked>li>a {
    border-left: none;
    border-right: 3px solid transparent;
}

.nav-tabs-custom-swapped .nav-stacked>li.active>a,
.nav-tabs-custom-swapped .nav-stacked>li.active>a:hover {
    border-right-color: #3c8dbc;
}

hr {
    margin-top: 10px;
    margin-bottom: 10px;
}

.content-sidebar {
    position: fixed;
    width: 250px;
    height: 100%;
    background: white;
}
.content-sidebar + .content {
    margin-left: 250px;
}

@media (max-width: 1023px) {
    .content-sidebar {
        display: none;
    }
    .content-sidebar + .content {
        margin-left: 0;
    }
}

@media (max-width: 767px) {
    body.sidebar-collapse .main-header .logo > img {
        display: none;
    }
}

.grid-stack>.grid-stack-item>.ui-resizable-e {
    width: 4px;
    right: 2px;
    top: 5px;
    bottom: 5px;
    height: initial;
}
.grid-stack>.grid-stack-item>.ui-resizable-s {
    height: 4px;
    left: 5px;
    bottom: 0px;
    right: 5px;
    width: initial;
}
.grid-stack>.grid-stack-item>.ui-resizable-w {
    width: 4px;
    left: 3px;
    top: 5px;
    bottom: 5px;
    height: initial;
}
.grid-stack>.grid-stack-item>.ui-resizable-se {
    width: 20px;
    height: 20px;
    right: 0;
    bottom: 0;
}

.objects-index .box-header .box-tools .input-group {
    max-width: 250px;
}

@media (max-width: 450px) {
    .objects-index .box-header {
        display: flex;
        flex-direction: column;
    }

    .objects-index .box-header .box-title {
        display: block;
    }
    .objects-index .box-header .box-tools {
        margin-top: 5px;
        display: flex;
        position: initial;
    }
    .objects-index .box-header .box-tools .input-group {
        max-width: initial;
    }
}

@media (max-width: 600px) {
    .box-widget-object-dashboard .nav > li > a {
        padding: 5px 10px;
        font-size: 0;
    }
    .box-widget-object-dashboard .nav > li > a .fa {
        font-size: 14px;
        margin-right: 0;
    }
    .box-widget-object-dashboard .nav > li > a .label {
        position: absolute;
        top: -5px;
        right: -5px;
        padding: 2px 4px;
        font-size: 12px;
        line-height: 12px;
    }
}


.device-tags-list-header {
    display: flex;
    list-style: none;
    margin: 5px 160px 5px 0;
    padding-left: 10px;
}
.device-tags-list-header li {
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.device-tags-list-header li:first-child {
    width: 100%;
    flex-shrink: 1;
    justify-content: flex-start;
}
.device-tags-list-header li:nth-child(2) {
    width: 120px;
}
.device-tags-list-header li:nth-child(3) {
    width: 120px;
}
.device-tags-list-header li:nth-child(4) {
    width: 120px;
}
.device-tags-list-header li:nth-child(2) a,
.device-tags-list-header li:nth-child(3) a,
.device-tags-list-header li:nth-child(4) a {
    text-align: center;
    width: 100%;
    display: inline-block;
}
.device-tags-list-header .asc:after,
.device-tags-list-header .desc:after {
    font: normal normal normal 14px/1 FontAwesome;
    margin-left: 5px;
}
.device-tags-list-header .asc:after {
    content: "\f0de";
}
.device-tags-list-header .desc:after {
    content: "\f0dd";
}

.device-tags-list-filter form {
    display: flex;
    margin: 5px 160px 5px 0;
    padding-left: 5px;
}
.device-tags-list-filter form > div {
    flex-shrink: 0;
    display: inline-block;
    padding: 0 5px;
}
.device-tags-list-filter form > div.input-group-name {
    width: 100%;
    flex-shrink: 1;
}
.device-tags-list-filter form > div.input-group-address {
    width: 120px;
}
.device-tags-list-filter form > div.input-group-type {
    width: 120px;
}
.device-tags-list-filter form > div.input-group-interval {
    width: 120px;
}


::-ms-clear {
    display: none;
}

.form-control-clear {
    z-index: 10;
    pointer-events: auto;
    cursor: pointer;
}

