﻿.dk_options {
    width: inherit !important;
}

table thead th {
    text-transform: none !important;
}

.dataTables_processing {
    background-color: #1a6ba8 !important;
    z-index: 9999 !important;
    color: #ffffff !important;
}


table tbody, .tooltip-inner {
    color: black;
}

.form-pdf {
    display: inline;
}

.datatable.display th,
.datatable.display td {
    white-space: nowrap;
}

/* CSS for User/Index.cshtml */
.list-group {
    margin: 0px;
    overflow-y: auto !important;
}

.container-small {
    padding-top: 1em !important;
    padding-bottom: 1em !important;
    padding-left: 2em;
    padding-right: 2em;
}

/* Mobile friendly layout of User Overview Page */
@media (max-width: 767px) {
    .pane-left {
        width: 100%;
    }
    .pane-right {
        width: 0%;
        display: none;
    }
}

/* CSS for TemplateNew.cshtml */
.template-table .icon-arrow-up,
.template-table .icon-arrow-down,
.template.table .icon-remove,
#dialog-print .icon-edit,
#dialog-print .icon-remove {
    margin-left: 4px;
    margin-right: 4px;
}

.template-table .icon-arrow-up:hover,
.template-table .icon-arrow-down:hover,
.template-table .icon-remove:hover {
    cursor: pointer;
}

.template-table th:first-child,
.template-table td:first-child {
    width: 95px;
}

.thumbnail-template {
    padding: 10px 15px;
    height: 190px;
}

.thumbnail-template:hover, .thumbnail-template.selected {
    border: 1px solid black;
}

.thumbnail-template:not(.selected) {
    opacity: 0.8;
}

/* Disable read-only styling for time-input field. */
.time-input:read-only,
.template-startdate:read-only,
.template-enddate:read-only {
    color: #34495e;
    background-color: white;
}

/* CSS for jQuery UI dialog */
.dialog-list {
    overflow-y: scroll;
    height: 285px;
}
.dialog-row {
    width: inherit;
}

.dialog-row.dialog-row-last {
    position: absolute;
    bottom: 0px;
    right: 0px;
    left: 0px;
}

.loading-data {
    align-content: center;
    margin-bottom: 15px;
    width: 100%;
    height: 500px;
}

.filter-dialog {
    width: 75%
}

/* CSS for footer */
.wrapper {
    min-height: 100%;
    height: auto !important;
    height: 100%;
    margin: 0 auto -37.5833px;
}

.footer-container, .push {
    height: 37.5833px;
}

.footer-container {
    margin-top: 0;
}

/* Fix for alignment issues with labels in measurement / alarms filters */
@media (min-width: 768px) {
    .form-horizontal .control-label {
        padding-top: 11px;
        padding-bottom: 10px;
    }
}

.highcharts-credits {
    display: none !important;
}

pre {
    margin: 0;
    padding: 0
}

/*
 * Styling for notifications
 */
.notification-bar {
    z-index: 10000;
}
.notification-bar-error {
    background: rgb(244, 67, 54) !important;
}

input.inline-edit-control {
    border-color: transparent !important;
    padding: 1px 0px;
    width: 100%;
}

input.inline-edit-control:focus {
    outline: none !important;
}

/*
 * Styling for highlighting updated values in the Overview tab
 */
.highlight {
    animation-name: highlightframes;
    animation-duration: 3s;
}

@keyframes highlightframes {
    0% { font-weight: bold }
    100% { font-weight: normal }
}


.icons-nav-overview {
    background-image: url("../images/icon_home.png");
    height: 30px;
    width: 30px;
    background-size: 30px 30px;
}

/*
 * Slightly lighter color for current item in datatable paginator
 */
a.paginate_button.current {
    background-color: #7bb1d9;
}

/*
 * Splitview
 */
/* Hide for mobile, show later */
.sidebar {
    display: none;
}

@media (min-width: 768px) {
    .sidebar {
        position: absolute;
        top: 116px;
        bottom: 0;
        left: 0;
        z-index: 500;
        display: block;
        padding: 10px;
        overflow-x: hidden;
        overflow-y: auto; /* Scrollable contents if viewport is shorter than content. */
        background-color: #eceff1;
        border-right: 1px solid #eee;
    }
}

/*
 * CSS for react-datepicker
*/
.react-datepicker-popper {
    z-index: 1000 !important;
}

/*
 * Service dashboard
 */
.dashboard-plc-status {
    width: 300px;
    height: 200px;
    margin: 10px;
    float: left;
}

.panel-body {
    padding: 10px !important;
}

.spinner-wrapper {
    margin: auto;
    width: max-content;
    width: -moz-max-content;
}

.alert-dismissable .close, .alert-dismissible .close {
    right: 0;
}

.subwrapper {
    padding: 10px;
    border-top: solid 1px #ced4da;
    position: relative;
  }

.subwrapper:first-of-type {
    border-top: none;
}

.subwrapper:last-of-type {
    height: 85px;
}


/* ::-webkit-scrollbar {
    width: 0px;
  }

::-webkit-scrollbar-thumb {
    background: #bfbfbf;
    border-radius: 5px;
} */

.plc-summary {
    border: 1px solid #c8c8c8;
    border-radius: 8px;
    margin: 3px;
    padding: 5px;
    margin-top: 10px;
    position: relative;
    background-color: white;
    display: flex;
    flex-direction: column;
}

.plc-summary-header {
    display: flex;
    font-size: calc(1vh + 1vw);
    -webkit-align-items: flex-start;
    -webkit-box-align: flex-start;
    -ms-flex-align: flex-start;
    align-items: flex-start;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    -ms-flex-pack: justify;
    justify-content: space-between;
}

.plc-summary-title {
    height: calc(2vh + 3vw);
    font-size: 15px;
    font-weight: bold;
}

.plc-summary-connection-status {
    border-radius: calc(0.4vh + 0.4vw);
    margin: 0 3px;
    padding: 6px;
    /* max-height: calc(0.5vh + 0.5vw); */
    font-size: calc(0.5vh + 0.5vw);
}

.plc-summary-connection-status-connected {
    background-color: #C0EBC0;
    color: #5CB85C;
}

.plc-summary-connection-status-disconnected {
    background-color: lightgray;
    color: gray;
}

.plc-summary-section-status {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
}

.plc-summary-section-status-title {
    font-size: calc(0.8vh + 0.8vw);
    color: #b4b4b4;
}

.plc-summary-section-status-alarms {
    width: 100%;
    height: 4vh;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: space-around;
    -webkit-justify-content: space-around;
    -ms-flex-pack: space-around;
    justify-content: space-around;
}

.plc-summary-section-status-row {
    width: 100%;
    height: 20px;
    margin-bottom: 10px;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: space-around;
    -webkit-justify-content: space-around;
    -ms-flex-pack: space-around;
    justify-content: space-around;
}

.plc-summary-section-status-detail {
    height: 100%;
    width: 100%;
    margin: 2px;
    border-radius: 3px;
    cursor: pointer;
}

.plc-summary-section-status-detail-success {
    background-color: #C0EBC0;
}

.plc-summary-section-status-detail-error {
    background-color: #FF0000;
}

.plc-summary-section-footer-last-seen {
    font-size: 12px;
    color: #b4b4b4;
}

.plc-summary-section-body {
    font-size: 12px;
}

/* Format DateRange from react-date-range */
.rdrCalendarWrapper {
    width: 100%;
}

.rdrMonthAndYearPickers select {
    padding: 0 !important;
}

.rdrMonth {
    width: initial !important;
}

.react-datepicker-wrapper {
    width: 100px;
}

.ball-grid-pulse > div {
  background-color: #0061aa;
}

@media (max-width: 768px) {
    .navbar-custom-mobile-margins {
        margin-left: inherit;
        margin-right: inherit;
        padding-left: inherit;
        padding-right: inherit;
    }
}

.list-group-item.active, .list-group-item.active:focus, .list-group-item.active:hover {
    z-index: initial;
}