a{cursor:pointer;}

.header .search-bar,
.header .search-form {
    overflow: visible;
}

#header-device-search-form {
    position: relative;
    width: 100%;
    max-width: 320px;
}

.header-device-search-input-group {
    position: relative;
    width: 100%;
}

#header-device-search-form button[type="submit"] {
    position: absolute;
    top: 50%;
    right: 0.55rem;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    margin: 0;
    border: 0;
    padding: 0;
    background: transparent;
    z-index: 2;
}

#header-device-search-form button[type="submit"],
#header-device-search-form button[type="submit"]:hover,
#header-device-search-form button[type="submit"]:focus {
    margin: 0 !important;
}

#header-device-search-form button[type="submit"] i {
    color: #5b6f95;
    font-size: 1rem;
}

#header-device-search-input {
    padding-right: 2.6rem;
    border-radius: 8px;
    background: #fff;
}

.header-device-search-results {
    position: absolute;
    top: calc(100% + 0.3rem);
    left: 0;
    width: 100%;
    background: #fff;
    border: 1px solid rgba(1, 41, 112, 0.12);
    border-radius: 10px;
    box-shadow: 0 14px 34px rgba(1, 41, 112, 0.16);
    max-height: min(420px, calc(100vh - 120px));
    overflow-y: auto;
    z-index: 1200;
}

.header-device-search-results[hidden] {
    display: none !important;
}

.header-device-search-empty,
.header-device-search-loading {
    padding: 0.9rem 1rem;
    color: #6c757d;
    font-size: 0.92rem;
}

.header-device-search-result {
    display: block;
    width: 100% !important;
    margin-left: 0 !important;
    padding: 0.8rem 1rem !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(1, 41, 112, 0.08) !important;
    background: transparent !important;
    text-align: left;
    cursor: pointer !important;
    transition: background-color 0.15s ease;
}

.header-device-search-result:last-child {
    border-bottom: 0 !important;
}

.header-device-search-result:hover,
.header-device-search-result:focus,
.header-device-search-result.is-active {
    background: #f5f8ff;
    outline: none;
}

.header-device-search-result__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.header-device-search-result__label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #012970;
    font-weight: 600;
    line-height: 1.25;
}

.header-device-search-result__indicator {
    flex: 0 0 auto;
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: #adb5bd;
}

.header-device-search-result__indicator.is-online {
    background: #198754;
}

.header-device-search-result__indicator.is-offline {
    background: #adb5bd;
}

.header-device-search-result__meta {
    margin-top: 0.18rem;
    color: #6c757d;
    font-size: 0.84rem;
    line-height: 1.35;
}

.ui-help-text {
    display: inline;
    min-height: 0;
    vertical-align: baseline;
    color: #6c757d;
    opacity: 1;
    background: transparent;
    font-size: inherit;
    font-weight: inherit;
}

.ui-help-link {
    display: inline;
    color: #0d6efd;
    cursor: help;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.12em;
}

.ui-help-link:hover,
.ui-help-link:focus {
    color: #0a58ca;
}

.ui-help-link--muted {
    color: #6c757d;
}

.ui-help-link--muted:hover,
.ui-help-link--muted:focus {
    color: #495057;
}

@keyframes ui-row-in-progress-shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

tr.in-progress > td {
    background-image: linear-gradient(
        90deg,
        rgba(255, 243, 205, 0.45) 0%,
        rgba(255, 255, 255, 0.88) 50%,
        rgba(255, 243, 205, 0.45) 100%
    );
    background-size: 200% 100%;
    animation: ui-row-in-progress-shimmer 1.15s linear infinite;
}

.device-location-map {
    min-height: 320px;
    border-radius: 0.5rem;
    overflow: hidden;
    border: 1px solid #dee2e6;
    background: #f8f9fa;
}

.device-location-map__hint {
    color: #6c757d;
    font-size: 0.875rem;
}

.device-metadata-list {
    margin-bottom: 0;
}

.device-metadata-list li + li {
    margin-top: 0.35rem;
}

.card.card-tabs .card-body {
    padding-top: 0;
}

.card.card-tabs .card-body > .nav {
    background: #d6dde5;
    margin: 0 -32px;
    border-radius: 4px 4px 0 0;
    border-bottom: 1px solid #bbc8d7;
}

.card.card-tabs .card-body .tab-content {
    padding-top: 30px;
}

.card.card-tabs a.nav-link i {
    font-size: 18px;
    position: relative;
    top: 2px;
}

.card.card-tabs .tab-pane > div:first-child > div.form-item-type-html:first-child > h5:first-child {
    margin-top: 0;
}

.card.card-tabs .tab-content ul,
.card.card-tabs .tab-content ol {
    padding: 0 10px 20px 10px;
}

.card.card-tabs .tab-content li {
    margin: 2px 0;
}

.card.card-tabs .tab-content ul li {
    list-style-type: disc;
    list-style-position: outside;
    margin-left: 20px;
}

.card.card-tabs .tab-content table:not(.dataTable) {
    margin: 10px 0;
}

.card.card-tabs .tab-content table:not(.dataTable) th {
    padding: 5px 6px;
    border-bottom: 2px solid #ccc;
}

.card.card-tabs .tab-content table:not(.dataTable) td {
    padding: 5px 6px;
    border: 1px solid #ddd;
    border-width: 0 1px 1px 1px;
    vertical-align: top;
}

.card.card-tabs .card-footer {
    text-align: right;
}

.card.card-tabs.sticky-footer .card-footer {
    position: fixed;
    bottom: 0;
    margin-left: calc(-.5 * var(--bs-gutter-x));
    padding-left: calc(.5 * var(--bs-gutter-x) + 20px);
    background: white;
    z-index: 5;
    box-shadow: 0 -3px 3px rgba(0, 0, 0, 0.05);
}

.card.card-tabs.sticky-footer {
    margin-bottom: 170px;
}

.sidebar-nav .nav-item.download-link {
    position: absolute;
    bottom: 10px;
    width: 80%;
}

.sidebar-nav .nav-content .nav-divider {
    height: 1px;
    margin: 8px 18px 10px 36px;
    background: rgba(1, 41, 112, 0.12);
    list-style: none;
}

.sidebar-nav .nav-content a {
    display: flex;
    align-items: center;
}

.sidebar-nav .nav-content a span {
    min-width: 0;
}

.sidebar-nav .nav-content .nav-subitem-badge {
    margin-left: auto;
    font-size: 11px;
    line-height: 1;
}

tr.group td {
    font-size: 20px;
    background: white;
    padding: 20px 10px 5px !important;
    border-bottom: 1px solid #aaa;
    font-weight: 600;
}

table.dataTable tr.group:hover td, table.dataTable tr.group:hover td:hover {
    background: white !important;
}

table.dataTable th,
table.dataTable td {
    white-space: nowrap;
}

.dataTables_wrapper table.dataTable thead th.dt-column-wrap,
.dataTables_wrapper table.dataTable tbody td.dt-column-wrap {
    white-space: normal !important;
}

.dataTables_wrapper table.dataTable thead th.dt-column-wrap {
    overflow-wrap: normal;
    word-break: normal;
}

.dataTables_wrapper table.dataTable tbody td.dt-column-wrap {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.data-table-scroll {
    overflow-x: auto;
    overflow-y: auto;
    max-width: 100%;
}

.data-table-toolbar,
.data-table-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    width: 100%;
}

.data-table-toolbar {
    margin-bottom: 0.75rem;
}

.data-table-footer {
    margin-top: 0.75rem;
}

.dataTables_wrapper .data-table-toolbar .dataTables_length,
.dataTables_wrapper .data-table-toolbar .dataTables_filter,
.dataTables_wrapper .data-table-toolbar .worksheet-config-modal-btn,
.dataTables_wrapper .data-table-footer .dataTables_info,
.dataTables_wrapper .data-table-footer .dataTables_paginate {
    float: none;
    margin: 0;
}

.dataTables_wrapper .data-table-toolbar .dataTables_length {
    order: 1;
}

.dataTables_wrapper .data-table-toolbar .worksheet-config-modal-btn {
    order: 2;
}

.dataTables_wrapper .data-table-toolbar .dataTables_filter {
    order: 3;
    margin-left: auto;
}

.data-table-wrapper--sticky table.dataTable thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #fff;
}

div.DTCR_pointer {
    width: 3px !important;
    border-radius: 999px;
    background: #4154f1 !important;
    box-shadow: 0 0 0 2px rgba(65, 84, 241, 0.12);
    opacity: 1 !important;
}

button.worksheet-config-modal-btn {
    background: white;
    border: 0px solid;
    margin-top: 0;
}

.small, .help{font-size:80%;}
.help{color:#777; cursor:help;}

span.prefix, span.suffix{display:inline-block; padding:0 3px 0 0; opacity:0.7; font-size:90%;}
span.suffix{padding:0 0 0 3px;}
td.align-right {text-align: right;}
tr.subrecord td {font-size: 85%; background:#fafafa; border-color:#eee !important; padding-top:3px !important; padding-bottom:3px !important;}
tr.subrecord td:first-child {border-left:3px solid #ddd !important;}


#device-details-task-manager thead th:not(:nth-child(2)) {
    text-align: right !important; margin:0 0 0 0 !important;
    padding-right:15px;
}
#device-details-task-manager thead tr:first-child th{
    padding-right:10px; font-weight:normal; font-size:110%;
    border-bottom:0px solid white;
    padding-bottom:0; margin-bottom:0;
    position:relative; bottom:-10px; opacity:0.8;
}
#device-details-task-manager thead th:before,
#device-details-task-manager thead th:after{right:0 !important;}
#device-details-modal .modal-footer .status-msg {position: absolute; left: 30px; font-size: 80%; color: #888;}
.ui-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.1;
}
.ui-status-badge i {
    font-size: 0.5rem;
}
.ui-status-badge--enabled,
.ui-status-badge--online {
    color: #146c43;
    background: #d1e7dd;
}
.ui-status-badge--disabled,
.ui-status-badge--offline {
    color: #842029;
    background: #f8d7da;
}
.ui-status-badge--neutral {
    color: #495057;
    background: #e9ecef;
}
.data-table-shell .users-toolbar {
    margin-bottom: 1rem;
}
.ui-action-card {
    height: 100%;
}
.ui-action-card .card-body {
    display: flex;
    flex-direction: column;
}
.ui-action-card__button {
    margin-top: auto;
}


span.timeline-slice-wrapper {
    display: block;
    width: 100%;
    background: pink;
    min-width: 500px;
    position: relative;
    min-height: 20px;
}
span.timeline-slice-wrapper{margin:-10px; height:36px;
    display: block;
    width: 100%;
    background: rgba(0, 0, 0, 0.05);
    min-width: 500px;
    position: relative;}
span.timeline-slice-wrapper a{
    display:inline-block; position:absolute; height:36px; background:green;
    width:0.34722%; cursor:help; z-index:2;
}

span.timeline-slice-wrapper a:hover{box-shadow:0 0 3px red inset;}
span.timeline-slice-wrapper a span.tooltip{
    display:none; font-size:11px; color:#111;
}
span.timeline-slice-wrapper a span.tooltip:before{
    display:block; content:"";
    bottom:-10px; right:0px; position:absolute; width:0; height:0;
    border-right:10px solid transparent; border-top:10px solid #eee5b3;
    border-left:10px solid transparent;
}
span.timeline-slice-wrapper a:hover span.tooltip{
    display:block !important; position:absolute;
    bottom:35px; top:auto; right:-9px; left:auto; width:200px; height:auto;
    z-index:1000000 !important; visibility:visible; opacity:1;
    background:#fff4c0 !important;
    box-shadow:0 0 10px 0 rgba(0, 0, 0, 0.1) inset, 3px 3px 5px rgba(0, 0, 0, 0.3);
    border-radius:5px 5px 0 5px; padding:5px 7px;
}

span.timeline-slice-wrapper a.score-30{background:red;}
span.timeline-slice-wrapper a.score-50{background:#ff6a00;}
span.timeline-slice-wrapper a.score-70{background:#ffa400;}
span.timeline-slice-wrapper a.score-90{background:#4c9e00;}

span.timeline-slice-headers {
    display: block;
    position: relative;
    margin: -10px;
    width: 100%;
    bottom:0px;
    height:20px;
    left:0;
    right:0;
}
span.timeline-slice-headers span{
    display:inline-block; position:absolute; font-weight:normal;
    font-size:10px; border-left:1px solid #ccc; padding: 0 2px 2px 3px;
    margin:10px 0 -10px 0; min-width:2px; min-height:3px; bottom:0;
    background:white; line-height:15px;
}
span.timeline-slice-headers span[data-label]:after{content:attr(data-label);}
span.timeline-slice-wrapper .timeline-line{
    display:inline-block; position:absolute; border-left:1px solid #eaeaea;min-width:2px; min-height:40px;
    z-index:1;
}



tr.subheader td{
    vertical-align: middle;
    border-top: none;
    font-weight: bold;
    background-color: white !important;
    text-align: left;
    font-size:18px;
    padding-top:20px !important;
    padding-bottom:7px !important;
    border-bottom:1px solid #ccc !important;
    border-top:1px solid #eee !important;
}

table td{
    border-top:1px solid #ddd !important;
    border-bottom:0px solid white !important;
}


#ws-devices tbody tr td:first-child{position:relative; padding-left:20px;}
#ws-devices tbody tr td:first-child:before {
    content: "";
    width: 10px;
    height: 10px;
    display: block;
    background: #ccc;
    position: absolute;
    left: 2px;
    top: 50%;
    margin-top:-5px;
    border-radius:2px;
    box-shadow:0 0 2px; rgba(0, 0, 0, 0.3);
}
#ws-devices tbody tr.online td:first-child:before{background:#01ff01;}
#ws-devices tbody tr.recently-online td:first-child:before{background:#ffc801;}
#ws-devices tbody tr.online-last-24-hours td:first-child:before{background:#ffcc80;}
#ws-devices tbody tr.offline td:first-child:before{background:#f4c1c1;}
