html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 40px;
    color: #193157;
}

.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 40px;
    background-color: #e8edf0;
}

body > .container, body > .container-fluid {
    padding: 70px 15px 0;
}

body > .container > .row, body > .container-fluid > .row {
    margin-top: 20px;
}

[ng-cloak] {
    display: none !important;
}

a {
    color: #183158;
}

.mr-5 {
    margin-right: 5px;
}

.mb-10 {
    margin-bottom: 10px;
}

.nav .open > a, .nav .open > a:focus, .nav .open > a:hover {
    background: none;
}

.dropdown-menu > li > a:focus, .dropdown-menu > li > a:hover {
    background: none;
    color: #65B12E;
}

.panel, .panel-heading {
    border-radius: 0;
}

.fixed-height-col {
    position: fixed;
    top: 70px;
    bottom: 40px;
    left: 0;
    right: 0;
    display: block;
    overflow: auto;
}

.sidebar {
    position: fixed;
    top: 70px;
    bottom: 40px;
    left: 0;
    right: 0;
    display: block;
    padding: 15px;
    overflow: auto;
    background-color: #183158;
    color: #fff;
}

.sidebar a {
    color: #fff;
}

.sidebar a:hover, .sidebar a:focus, .sidebar li.active a {
    color: #183158;
    background-color: #e8edf0;
}

.selected_item {
    background-color: #e8edf0;
}

.fixed-height-col > .panel {
    position: absolute;
    left: 15px;
    top: 0;
    right: 15px;
    bottom: 0;
}

.fixed-height-col > .panel > .panel-heading {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 41px;
}

.fixed-height-col > .panel > .panel-body {
    position: absolute;
    left: 0;
    right: 0;
    top: 41px;
    bottom: 30px;
    overflow: auto;
}

.tab-body {
    position: absolute;
    top: 41px;
    left: 15px;
    right: 15px;
    border: 1px solid;
    padding: 0 15px 5px;
    bottom: 20px;
    overflow: auto;
}

.tab-body.device-info-tab {
    top: 105px;
}

.tab-body > iframe {
    margin-top: -1px;
    width: 100%;
    height: calc(100% - 5px);
}

.tab-body > iframe.tagged {
    margin-top: 39px;
    height: calc(100% - 45px);
}

.footer > .container .text-muted {
    margin: 10px 0;
    color: rgba(24, 49, 88, 0.8);
}

.footer > .container {
    padding-right: 15px;
    padding-left: 15px;
}

.footer > .container .text-muted a {
    color: rgba(24, 49, 88, 0.8);
}

.navbar-nadeks {
    background: #fff;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.8);
    padding: 8px;
}

.navbar-nadeks ul.nav > li > a {
    font-size: 16px;
    color: #183158;
}

.navbar-nadeks ul.nav > li > a:hover, .navbar-nadeks ul.nav > li.active > a {
    text-decoration: none;
    color: #65B12E;
    background-color: transparent;
}

.navbar-nadeks ul.nav > li.active > a {
    pointer-events: none;
}

.panel-nadeks, .panel-nadeks > .panel-heading {
    border-color: #183158;
}

.panel-nadeks > .panel-heading {
    color: #fff;
    background-color: #183158;
}

.panel-nadeks > .panel-heading > * {
    color: #fff;
}

.alert-container {
    z-index: 1100;
    position: fixed;
    right: 20px;
    top: 20px;
    width: 300px;
}

.btn {
    border-radius: 0;
}

.btn-nadeks {
    color: #fff;
    background-color: #2461bf;
    border-color: #4075c7;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, .2);
    -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 1px 1px rgba(0, 0, 0, .075);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 1px 1px rgba(0, 0, 0, .075);
}

.btn-nadeks:hover {
    color: #fff;
    background-color: #154692;
    border-color: #4075c7;
}

.table-fields input, .table-fields select {
    width: calc(100% - 28px);
}

.table-fields select.thin, .table-fields div.searchable_select, .table-fields div.ui-select-container {
    width: calc(100% - 56px) !important;
}

.table-fields div.ui-select-container {
    display: inline-block;
    padding-bottom: 2px;
}

.table-fields a {
    margin-left: 10px;
    text-decoration: none;
}

.table-fields .table {
    margin-left: 10px;
}

.table-fields .table td {
    padding-right: 0;
}

.table-fields input[type=search] {
    width: 100% !important;
    padding: 1px;
    height: 26px;
}

.table-fields .ui-select-bootstrap .ui-select-choices-row > span {
    padding: 3px 5px;
}

.table-fields .ui-select-bootstrap > .ui-select-match > .btn {
    height: 21px;
    padding: 0 8px;
}

/* Tabs */
.tab-scroll-arrow {
    border: 1px solid #183158;
    color: #183158;
    cursor: pointer;
    float: left;
    font-size: 12px;
    height: 42px;
    margin-bottom: -1px;
    padding-left: 2px;
    padding-top: 13px;
    width: 17px;
}

.tabs-fixed-container {
    float: left;
    height: 42px;
    overflow: hidden;
}

.tabs-movable-container {
    position: relative;
}

li.uib-tab a.nav-link {
    background-color: #e8edf0;
    color: #183158;
    border-radius: 0;
    border: 1px solid #fff;
}

li.uib-tab a.nav-link:hover {
    background-color: #dee5e9;
    color: #183158;
}

li.uib-tab a.nav-link a {
    color: #183158;
}

li.uib-tab.active a.nav-link {
    background-color: #183158;
    color: #fff;
    border: 1px solid #183158;
}

li.uib-tab.active a.nav-link a {
    color: #fff;
}

li.uib-tab.active a.nav-link:hover, li.uib-tab.active a.nav-link:focus {
    color: #fff;
    background-color: #1b3876;
}

li.uib-tab a.nav-link a:hover {
}

.full-height {
    height: 100%;
}

/**/
.buffer {
    position: absolute;
    bottom: 40px;
    right: 10px;
    border: 1px solid #e4e7e8;
    background-color: rgba(232, 237, 240, 0.3);
    padding: 4px 15px;
    color: rgba(24, 49, 88, 0.4);
}

.buffer > h5 {
    margin: 0;
}

.buffer h6 {
    margin-top: 5px;
    margin-bottom: 5px;
}

.buffer > a {
    position: absolute;
    top: 5px;
    right: 5px;
    color: rgba(24, 49, 88, 0.4);
}

.buffer > a:hover {
    color: rgba(24, 49, 88, 0.8);
}

ul.dnd-group {
    height: 350px;
    overflow-y: auto;
}

li.empty-list-group-item {
    color: #19315750;
}

ul.dnd-group .dndDraggingSource {
    display: none;
}

ul.dnd-group .dndPlaceholder {
    background-color: #ddd;
    display: block;
    min-height: 42px;
}

.external-editor-text-area {
    width: 100%;
    resize: vertical;
    min-height: 300px;
    max-height: 500px;
}

.limit-modal-body-height {
    max-height: 500px;
    overflow: auto;
}

.file-dialog-body table tr td:nth-child(1),
.file-dialog-body table tr th:nth-child(1) {
    width: 30px;
}

.file-dialog-body table tr td:nth-child(3),
.file-dialog-body table tr td:nth-child(4),
.file-dialog-body table tr th:nth-child(3),
.file-dialog-body table tr th:nth-child(4) {
    width: 150px;
}

.file-dialog-body table tr:hover td {
    cursor: pointer;
}

.file-dialog-body td {
    -webkit-user-select: none; /* webkit (safari, chrome) browsers */
    -moz-user-select: none; /* mozilla browsers */
    -ms-user-select: none; /* IE10+ */
    user-select: none;
}

a[disabled] {
    color: #1831584d;
}

.dropdown-menu > li > a[disabled] {
    color: #3333334d;
}

.active-row {
    background-color: rgba(101, 177, 46, 0.1);
}

.simple-filter, .expression-filter, .id-filter, .tid-filter {
    position: absolute;
    left: 16px;
    top: 41px;
    z-index: 1;
    background: #e8edf0;
    box-shadow: 0 5px 10px rgba(82, 98, 108, 0.3);
}

.simple-filter {
    width: 450px;
    padding: 15px;
}

.expression-filter {
    width: 650px;
    padding: 0 15px 15px;
    max-height: 450px;
    overflow-y: auto;
}

.expression-filter input[type=text] {
    width: 100%;
}

.expression-filter .left-bordered-column {
    border-right: 1px solid #ddd;
}

.expression-filter .right-bordered-column {
    border-left: 1px solid #ddd;
    margin-left: -1px;
}

.expression-filter .bottom-border {
    border-bottom: 1px solid #ddd;
}

.id-filter, .tid-filter {
    width: 300px;
    padding: 15px;
}

.panel-tree-footer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 5px;
    background-color: #e8edf0;
    text-align: center;
    color: rgba(25, 49, 87, 0.5);
}

.filter-title {
    padding: 0 1px;
}

.filter-title:hover {
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 0;
}

.certificate-table th {
    width: 20%;
}

table.device-history-table tr th:nth-child(1),
table.device-history-table tr td:nth-child(1) {
    width: 8%;
}

table.device-history-table tr th:nth-child(2),
table.device-history-table tr td:nth-child(2) {
    width: 8%;
}

table.device-history-table tr th:nth-child(3),
table.device-history-table tr td:nth-child(3) {
    width: 12%;
}

table.device-history-table tr th:nth-child(4),
table.device-history-table tr td:nth-child(4) {
    width: 13%;
}

table.device-history-table tr th:nth-child(5),
table.device-history-table tr td:nth-child(5) {
    width: 13%;
}

table.device-history-table tr th:nth-child(6),
table.device-history-table tr td:nth-child(6) {
    width: 13%;
}

table.device-history-table tr th:nth-child(7),
table.device-history-table tr td:nth-child(7) {
    width: 13%;
}

.modal-650 {
    width: 650px;
}

.modal-360 {
    width: 360px;
}

/* CSS Loader */
.lds-ellipsis {
    display: inline-block;
    position: relative;
    width: 64px;
    height: 64px;
}

.lds-ellipsis div {
    position: absolute;
    top: 27px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #65B12E;
    animation-timing-function: cubic-bezier(0, 1, 1, 0);
}

.lds-ellipsis div:nth-child(1) {
    left: 6px;
    animation: lds-ellipsis1 0.6s infinite;
}

.lds-ellipsis div:nth-child(2) {
    left: 6px;
    animation: lds-ellipsis2 0.6s infinite;
}

.lds-ellipsis div:nth-child(3) {
    left: 26px;
    animation: lds-ellipsis2 0.6s infinite;
}

.lds-ellipsis div:nth-child(4) {
    left: 45px;
    animation: lds-ellipsis3 0.6s infinite;
}

@keyframes lds-ellipsis1 {
    0% {
        transform: scale(0);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes lds-ellipsis3 {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(0);
    }
}

@keyframes lds-ellipsis2 {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(19px, 0);
    }
}

.label-success-nadeks {
    background-color: #65b12e;
}

.table.tagged {
    margin-top: 38px;
}

.tag-container {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 35px;
    background: #e8edf0;
    box-shadow: 0 5px 10px rgba(82, 98, 108, 0.3);
    padding: 5px;
    overflow-x: hidden;
    white-space: nowrap;
}

.tag-container-grad {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 25px;
    width: 25px;
    background: linear-gradient(to left, #e8edf0 10px, rgba(232, 237, 240, 0.3));
}

.tag-container-expand {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: 25px;
    background: #e8edf0;
    line-height: 2.5em;
    text-align: center;
}

.tag {
    font-weight: 400;
    font-size: 80%;
    letter-spacing: 0.05em;
    margin-right: 5px;
}

.expression-filter .dndPlaceholder, .tag-container .dndPlaceholder {
    display: inline-block;
    width: 100px;
    background: #ccc;
    height: 18px;
    vertical-align: bottom;
    margin-right: 5px;
}

.bootstrap-select > .dropdown-toggle {
    padding-left: 8px;
    padding-top: 0px;
    padding-bottom: 0px;
}

.form-control {
    border-radius: 0;
}

.bs-searchbox .form-control {
    border-radius: 0;
    padding: 5px;
    line-height: inherit;
    height: 24PX;
}

.bootstrap-select.btn-group .dropdown-menu li a {
    padding-left: 0;
    padding-right: 0;
}

.btn-group-sm > .btn, .btn-sm {
    border-radius: 0;
}

.filters-list li:hover {
    background-color: #e8edf0;
}

.exception-message {
    display: none;
}

.has-exception > .exception-message {
    display: inline;
}

.exception-message, .has-exception .control-label {
    color: #ea1a17;
}

.has-exception .form-control {
    border-color: #ea1a17;
}

.filter-tag {
    border-radius: 4px;
    background-repeat: repeat-x;
    border: 1px solid #f5e79e;
    background-image: linear-gradient(to bottom, #fcf8e3 0, #f8efc0 100%);
    padding: 5px;
    display: inline-block;
    margin: 0 15px 10px 0;
    white-space: nowrap;
}

.filter-tag a {
    text-decoration: none;
    color: #66512c;
    font-weight: 700;
}

.filter-tag a:hover {
    text-decoration: none;
}

.filter-tag .close {
    font-size: 17px;
    margin-left: 10px;
}

.filters-row {
    background: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
    padding: 15px 15px 0;
    z-index: 1;
}

.sortable-handler {
    touch-action: none;
}

.map-modal {
    display: none;
    width: 640px;
    height: 480px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1055;
    padding: 16px;
    border: 2px solid #000;
}

.map-modal-close {
    position: relative;
    color: #000;
    float: right;
    font-size: 16px;
    font-weight: bold;
    z-index: 1060;
    text-decoration: underline;
}

.map-modal-close:hover,
.map-modal-close:focus {
    color: red;
    text-decoration: underline;
    cursor: pointer;
}

.map-modal-glass {
    display: none;
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    background: #000;
    opacity: .2;
    z-index: 1050;
}
/*scroll css firefox*/
/*.reconciliations {
    scrollbar-color: #acabab #eee;     !* «цвет ползунка» «цвет полосы скроллбара» *!
    scrollbar-width: 8px;  !* толщина *!
}*/
::-webkit-scrollbar-track {
    border: 1px solid #eee;
    padding: 2px 0;
    background-color: #eee;
}
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-thumb {
    border-radius: 10px;
    box-shadow: inset 0 0 6px rgba(0,0,0,.3);
    background-color: #737272;
    border: 1px solid #eee;
}
/* у родителя обязательно должен быть style="position: relative;"*/
.loader-mask {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 2000;
    background-color: hsla(0,0%,100%,.9);
    margin: 0;
    transition: opacity .3s;
}
.loader {
    border: 4px solid #f3f3f3;
    border-radius: 50%;
    border-top: 4px solid #737272;
    width: 40px;
    height: 40px;
    -webkit-animation: spin 2s linear infinite;
    animation: spin 2s linear infinite;
    margin:auto;
    left:0;
    right:0;
    top: 0;
    bottom:0;
    position: absolute;
}
@-webkit-keyframes spin {
    0% { -webkit-transform: rotate(0deg); }
    100% { -webkit-transform: rotate(360deg); }
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}