/* table */

.table {
    margin-bottom: 5px;
}

.table th,
.table td {
    line-height: 18px;
}

.table-hover tbody tr:hover>td {
    background-color: #EFF9FF;
}

.table-hover.user-table tbody tr:hover>td {
    background-color: #dff0d8;
}

.table-striped tbody>tr.active>td,
.table-striped tbody>tr.active:hover>td,
.table-striped tbody>tr.active>td>a,
.table-striped tbody>tr.active:hover>td>a {
    background-color: #449d44;
    color: white;
}

tbody {
    word-break: break-all;
}

td.align-center {
    text-align: center;
    vertical-align: middle;
}

td {
    word-break: break-word;
    word-spacing: normal;
    word-wrap: normal;
    white-space: normal;
}

.aps-selectable-table tbody>tr:hover {
    cursor: pointer;
}

.aps-selectable-table tbody>tr.play-selected>td>i {
    display: inline;
    color: white;
}

.no-td-click {
    cursor: auto;
}

.table-editable.caption {
    padding: 0;
}


/* table sorting */

table.table thead .sorting,
table.table thead .sorting_asc,
table.table thead .sorting_desc,
table.table thead .sorting_asc_disabled,
table.table thead .sorting_desc_disabled {
    color: #428bca;
    cursor: pointer;
}

table.table thead .sorting {
    background: url('../img/sort_both.png') no-repeat center right;
}

table.table thead .sorting_asc {
    background: url('../img/sort_asc.png') no-repeat center right;
}

table.table thead .sorting_desc {
    background: url('../img/sort_desc.png') no-repeat center right;
}

table.table thead .sorting_asc_disabled {
    background: url('../img/sort_asc_disabled.png') no-repeat center right;
}

table.table thead .sorting_desc_disabled {
    background: url('../img/sort_desc_disabled.png') no-repeat center right;
}


/* misc formatting */

body {
    font-size: 13px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    font-family: inherit;
    font-weight: bold;
    color: inherit;
    text-rendering: optimizelegibility;
}

.h1block {
    border-bottom: 1px solid #000;
    margin-bottom: 7px;
    min-height: 35px;
}

h4.menu-filter {
    text-align: center;
    margin-bottom: 10px;
}

h5 {
    margin-bottom: 8px;
}

h5.h5user {
    margin-left: -5px;
}

.well {
    padding: 7px;
    margin-bottom: 8px;
}


/* pagination */

.pagination ul>li>a:hover,
.pagination ul>.active>a {
    background-color: #EFF9FF;
}

.pagination {
    margin: 0 0;
}


/* forms */

form {
    margin: 0;
}

.btn-group {
    line-height: 37px;
}

select,
textarea,
.dropdown-menu,
button,
input[type="text"],
input[type="password"],
input[type="datetime"],
input[type="datetime-local"],
input[type="date"],
input[type="month"],
input[type="time"],
input[type="week"],
input[type="number"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="tel"],
input[type="color"],
input[type="button"] {
    margin-bottom: 5px;
    font-size: 13px;
}

.user-form-inputs input {
    margin-bottom: 3px;
}

label,
input,
button,
select,
textarea {
    font-size: 13px;
    font-weight: normal;
    line-height: 18px;
}

.form-horizontal .form-group {
    padding-left: 10px;
    padding-right: 10px;
}

.form-horizontal.form-modal .form-group {
    margin-bottom: 3px;
}

.form-horizontal [class*="col-sm-"] {
    padding-right: 5px;
    padding-left: 5px;
}

.form-horizontal input+.help-block,
.form-horizontal select+.help-block,
.form-horizontal textarea+.help-block {
    margin-top: 0;
    margin-bottom: 3px;
}

textarea {
    resize: vertical;
}

.highlight {
    background-color: #FFC;
}

.form-label {
    padding-top: 6px;
    padding-left: 4px
}

.form-group-label:before {
    content: attr(data-content);
    font-weight: bold;
    color: #bbb;
    text-transform: uppercase;
    letter-spacing: 1px;
}

div.filter-aps {
    width: 100%;
    margin-bottom: 5px;
}

.filter-group {
    margin-bottom: 5px;
}


/* alerts */

div.messages.messages-modal {
    float: left;
}


/* misc */

.clickable {
    cursor: pointer;
}

.update_item {
    color: #5cb85c;
}

.delete_item {
    color: #d9534f;
}

.backup_item {
    color: #428bca;
}

.icon-plus-right {
    padding-top: 5px;
}

.user-disabled,
.record-disabled,
.device-disabled {
    text-decoration: line-through;
    color: #999;
}

.nav-tabs {
    margin-bottom: 5px
}

.margin-top-btm-0px {
    margin-top: 0;
    margin-bottom: 0;
}

.communication-log {
    padding-top: 0;
}

.communication-log>ul>li span {
    word-break: break-all;
}

.communication-log td {
    min-width: 65px;
    text-align: center;
}

.truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.modal-warning {
    color: red;
    font-weight: bold;
}

.bootstrap-select .text {
    word-break: normal;
    word-spacing: normal;
    word-wrap: normal;
    white-space: normal;
}

.scrollable-menu {
    height: auto;
    max-height: calc(100vh - 100px);
    overflow-x: hidden;
}

.messages-fixed {
    overflow: hidden;
    position: fixed;
    z-index: 1030;
    top: 40px;
    width: 45%;
    left: 30%;
    text-align: center;
}

.messages>.alert {
    margin-bottom: 5px;
}

.messages-fixed>div {
    padding: 10px 35px;
}

@media (max-width: 768px) {
    .btn-responsive {
        padding: 7px;
        font-size: 80%;
        line-height: 1;
    }
}

@media (min-width: 768px) {
    .modal-xl {
        width: 90%;
        max-width: 1200px;
    }
}

@media (min-width: 769px) and (max-width: 995px) {
    .btn-responsive {
        padding: 4px 9px;
        font-size: 90%;
    }
}

.borders {
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    margin: -1px;
}

.pulse {
    overflow: visible;
    position: relative;
}

.pulse:before {
    content: '';
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: inherit;
    border-radius: inherit;
    transition: opacity .3s, transform .3s;
    animation: pulse-animation 1s cubic-bezier(0.24, 0, 0.38, 1) infinite;
    z-index: -1;
}

@keyframes pulse-animation {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0;
        transform: scale(1.5);
    }

    100% {
        opacity: 0;
        transform: scale(1.5);
    }
}

.row.display-flex {
    display: flex;
    flex-wrap: wrap;
}

.row.display-flex>[class*='col-'] {
    flex-grow: 1;
}

.unselectable {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

meter {
    width: 100%;
    height: 25px;
    border: 1px solid black;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
}

.state-table>tbody>tr>td,
.state-table>tbody>tr>th,
.state-table>thead>tr>td,
.state-table>thead>tr>th {
    border: none;
    vertical-align: middle;
    padding: 0;
}

.state-table {
    margin-bottom: 0;
}

.noUi-tooltip {
    display: none !important;
}

.noUi-active .noUi-tooltip {
    display: block !important;
    z-index: 5;
}

.noUi-connect {
    background: lightblue !important;
}

.progress-loading {
    height: 20px;
}

@media (min-width: 769px) {
    #task-dropdown-menu {
        min-width: 400px;
    }
}

.progress-bar {
    min-width: 2.5em;
}
