.ex1:before, .ex2:before {
    position: absolute;
    font-family: 'FontAwesome';
    font-size: 70px;
    top: 0;
    left: 10px;
    color: #fff;
    opacity: .2;
}

/* general */
body {
    overflow-x: hidden;
    background-color: #ebf4ff;
}

:focus-visible {
    /* disable visible focus outline */
    outline: 0;
}

.dropdown-menu {
    padding: 0.7rem 0;
    box-shadow: 0 0.3rem 1rem rgb(0 0 0 / 25%);
}

.lh-1 {
    line-height: 1 !important;
}

.lh-1_5 {
    line-height: 1.5 !important;
}

.mb-05 {
    margin-bottom: 0.05rem !important;
}

.mb-2rem {
    margin-bottom: 2rem !important;
}

.me-05 {
    margin-right: 0.12rem !important;
}

.va-initial {
    vertical-align: initial !important;
}

.va-middle {
    vertical-align: middle !important;
}

.va-super {
    vertical-align: super !important;
}

.fw-500 {
    font-weight: 500 !important;
}

.fs-1rem {
    font-size: 1rem !important;
}

.fs-1_04rem {
    font-size: 1.04rem !important;
}

.fs-1_4rem {
    font-size: 1.4rem !important;
}

.fs-2rem {
    font-size: 2rem !important;
}

.fs-7p {
    font-size: 7px !important;
}

.fs-8p {
    font-size: 8px !important;
}

.fs-9p {
    font-size: 9px !important;
}

.fs-10p {
    font-size: 10px !important;
}

.fs-11p {
    font-size: 11px !important;
}

.fs-12p {
    font-size: 12px !important;
}

.fs-13p {
    font-size: 13px !important;
}

.fs-16p {
    font-size: 16px !important;
}

.fs-32p {
    font-size: 32px !important;
}

.fs-100p {
    font-size: 100px !important;
}

.fs-150p {
    font-size: 150px !important;
}

.fs-200p {
    font-size: 200px !important;
}

.ls-05 {
    letter-spacing: -0.5px !important;
}

.ws-normal {
    white-space: normal !important;
}

.p-2p {
    padding: 2px !important;
}

.pb-2p {
    padding-bottom: 2px !important;
}

.gap-05 {
    gap: 0.15rem !important
}

.zoomin {
    cursor: zoom-in;
}

.size-xxs {
    max-width: 70px !important;
}

.size-xs {
    max-width: 100px !important;
}

.size-sm {
    max-width: 250px !important;
}

.size-md {
    max-width: 450px !important;
}

.h-10 {
    height: 10px !important;
}

.h-30 {
    height: 30px !important;
    line-height: 20px;
}

.mh-40 {
    max-height: 40px !important;
}

.mh-100 {
    max-height: 100px !important;
}

.mh-200 {
    max-height: 200px !important;
}

.mh-400 {
    max-height: 400px !important;
}

.minh-20 {
    min-height: 20px !important;
}

.minh-33 {
    min-height: 33px !important;
}

.minh-70 {
    min-height: 70px !important;
}

.minh-80 {
    min-height: 80px !important;
}

.minh-200 {
    min-height: 200px !important;
}

.minh-210 {
    min-height: 210px !important;
}

.minh-50v {
    min-height: 50vh !important;
}

.maxw-80 {
    max-width: 80px !important;
}

.maxw-500 {
    max-width: 500px !important;
}

.minw-200 {
    min-width: 200px !important;
}

.minw-100 {
    min-width: 100px !important;
}

.minw-75 {
    min-width: 75px !important;
}

.minw-25 {
    min-width: 25px !important;
}

.minw-30 {
    min-width: 30px !important;
}

.no-minw {
    min-width: unset !important;
}

.vw-25 {
    width: 25vw !important;
}

.w-150 {
    width: 150px !important;
}

.w-90 {
    width: 90px !important;
}

.w-80 {
    width: 80px !important;
}

.w-32 {
    width: 32px !important;
}

.w-15 {
    width: 15px !important;
}

.w-20 {
    width: 20px !important;
}

.w-200 {
    width: 200px !important;
}

.w-300 {
    width: 300px !important;
}

.w-fit {
    width: fit-content !important;
}

.h-fit {
    height: fit-content !important;
}

.mt-1px {
    margin-top: 1px !important;
}

.pt-2px {
    padding-top: 2px !important;
}

.pt-3px {
    padding-top: 3px !important;
}

.pt-7px {
    padding-top: 7px !important;
}

.pt-8px {
    padding-top: 8px !important;
}

.b2px {
    bottom: 2px;
}

.b4px {
    bottom: 4px;
}

.brt-8 {
    border-top-left-radius: 8px !important;
    -webkit-border-top-left-radius: 8px !important;
    -moz-border-top-left-radius: 8px !important;
    -ms-border-top-left-radius: 8px !important;
    -o-border-top-left-radius: 8px !important;
    border-top-right-radius: 8px !important;
    -webkit-border-top-right-radius: 8px !important;
    -moz-border-top-right-radius: 8px !important;
    -ms-border-top-right-radius: 8px !important;
    -o-border-top-right-radius: 8px !important;
}

.text-shadow {
    text-shadow: 1px 0.5px darkgrey;
}

.ellipsis {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.badge-circle {
    width: 35px;
    min-width: 35px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    padding: 0 0.3rem;
    font-size: 18px;
    border-radius: 50%;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -ms-border-radius: 50%;
    -o-border-radius: 50%;
    font-style: normal;
}
.sba-sensor-badge {
    background-color:#ffbc70;
    color: #0a0a0a;
    height: 14px;
    line-height:7px;
    text-align: center;
    padding: 4px 4px;
    font-size: 10px;
    border-radius: 25%;
    font-weight: 700;
    -webkit-border-radius: 25%;
    -moz-border-radius: 25%;
    -ms-border-radius: 25%;
    -o-border-radius: 25%;
}

table td .badge-circle {
    display: inline-block;
    width: 25px;
    min-width: 25px;
    height: 25px;
    line-height: 25px;
    padding: 0 0.1rem;
    font-size: 14px;
}

.badge>.notif {
    position: absolute;
    top: -4px;
    right: -4px;
    font-size: 12px;
    font-weight: 500;
}

.badge-circle>.notif {
    position: absolute;
    top: -2px;
    right: -2px;
    font-size: 12px;
    font-weight: 500;
}

.badge-circle>i.fa {
    color: #fff;
    font-size: 11px;
    line-height: 25px;
    vertical-align: baseline;
}

i.position-relative>.notif, span.position-relative>.notif {
    position: absolute;
    top: -2px;
    right: -6px;
    font-size: 12px;
    font-weight: 500;
    z-index: 2;
}

i.fa-power-off>.notif {
    top: -5px;
    right: -8px;
}

span.badge>.notif {
    top: -5px;
    right: -5px;
}

.nav-tabs>.nav-item>.nav-link>.notif {
    position: absolute;
    top: 4px;
    right: 4px;
    font-size: 12px;
    font-weight: 500;
    z-index: 2;
}

.btn-group .btn>.notif {
    position: absolute;
    top: 4px;
    right: 2px;
    font-size: 12px;
    font-weight: 500;
    z-index: 2;
}

.dropdown-menu .dropdown-item>.notif {
    position: absolute;
    font-size: 12px;
    font-weight: 500;
    top: 4px;
}

i.position-relative>.assoc, span.position-relative>.assoc, div.position-relative>.assoc {
    position: absolute;
    bottom: -6px;
    right: -10px;
    font-size: 12px;
    font-weight: 500;
}

div.position-relative>.notif {
    position: absolute;
    top: -4px;
    right: -4px;
    font-size: 12px;
    font-weight: 500;
}

.widgets-icons-2.position-relative>.notif {
    position: absolute;
    top: -1px;
    right: -1px;
    font-size: 12px;
    font-weight: 500;
    width: 14px;
    height: 14px;
}

.widgets-icons-2.position-relative>.notif.spinner-border {
    top: 0;
    right: 2px;
}

.widgets-icons-2.position-relative>.notif:not(.spinner-border) {
    width: 14px;
    height: 14px;
    /* transform: scale(1.7);
    -webkit-transform: scale(1.7);
    -moz-transform: scale(1.7);
    -ms-transform: scale(1.7);
    -o-transform: scale(1.7); */
}

.notif.border {
    border: 1px solid #d8d8d8 !important;
}

.infraserver-info{
    display: none !important;
}

#deviceCard.sticky-header .widgets-icons-2.position-relative>.notif:not(.spinner-border) {
    width: 10px;
    height: 10px;
    /* top: 0;
    right: 1px;
    transform: scale(1.2);
    -webkit-transform: scale(1.2);
    -moz-transform: scale(1.2);
    -ms-transform: scale(1.2);
    -o-transform: scale(1.2); */
}

.badge>span.fa-stack {
    position: relative;
    top: -2px;
}

html:not(.dark-theme) .bg-success.bg-opacity-25, html:not(.dark-theme) .bg-danger.bg-opacity-25 {
    color: #151515;
}

.bg-selected {
    background-color: #0d6efd22 !important;
}

.bg-opacity-90 {
    --bs-bg-opacity: 0.9 !important;
}

.bg-danger.bg-opacity-25 {
    --bs-bg-opacity: 0.12 !important;
}

.opacity-80 {
    opacity: 0.8 !important;
}

.opacity-85 {
    opacity: 0.85 !important;
}

.opacity-90 {
    opacity: 0.9 !important;
}

.sub-icon {
    position: absolute;
    right: -2px;
    bottom: -2px;
}

/* header */
.topbar .logo {
    max-height: 48px;
}

.topbar .navbar {
    padding-left: 10px;
    padding-right: 10px;
    border-bottom: 1px solid #e4e4e4;
    -webkit-box-shadow: 0 2px 6px 0 rgb(218 218 253 / 65%), 0 0px 6px 0 rgb(206 206 238 / 54%);
    box-shadow: 0 2px 6px 0 rgb(218 218 253 / 65%), 0 0px 6px 0 rgb(206 206 238 / 54%);
}

.topbar-logo-header {
    padding-left: 1rem;
    padding-right: 1rem;
}

.topbar button.client {
    cursor: default;
    display: -webkit-box;
    max-height: 52px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}

.topbar .dropdown-menu {
    min-width: 150px;
    width: auto;
    max-width: 400px;
}

.topbar .dropdown-large .dropdown-menu {
    width: 300px;
}

.dropdown-menu>.mh {
    max-height: 80vh;
    overflow-y: auto;
}

ul#envList {
    min-width: 200px;
}

ul#envList input {
    width: calc(100% - 0.5rem);
    margin: 0.25rem;
}

.dropdown-menu li>a {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.dropdown-item {
    padding: .3rem .7rem;
}

.dropdown-item.disabled, .dropdown-item:disabled {
    color: var(--bs-dropdown-link-disabled-color) !important;
    pointer-events: auto;
    cursor: not-allowed;
}

.user-box {
    margin-left: 0.5rem;
    padding-left: 0.5rem;
}

/* pace loader indicator */
.pace .pace-activity {
    top: 10px;
    right: 6px;
}

/* nav */
.nav-container {
    display: none;
}

/* footer */
footer.page-footer {
    font-size: 12px;
    padding: 4px 10px 2px;
}

/* content */
.page-wrapper {
    margin-top: 60px;
}

.page-content {
    padding: 0.9rem;
    /* added this to prevent scrollbar flickering (not reaching bottom of browser viewport) */
    /* height: calc(100vh - 60px); */
    /* commented out because it seems to be fixed only by adding margin to the bottom */
    margin-bottom: 99px;
}

.global-env body {
    background-color: #a7caff;
}

html.dark-theme .global-env body {
    background-color: #212a52ad;
}

.bg-samcla-red, .btn-samcla-red {
    color: #ffffff;
    background-color: #e22216 !important;
}

.bg-sensor {
    color: #ffffff;
    background-color: #ba4cfb;
}

.bg-not-resident {
    background: #e75b55;
}

.bg-not-resident-opacity-20 {
    background: #e75b553f;
    color: #212529;
}

.bg-resident {
    background: #39a359;
}

.bg-resident-opacity-20 {
    background: #39a3593f;
    color: #212529;
}

.bg-orange-soft {
    background-color: #ffbc70;
    color: #333333 !important;
}

.bg-blue-soft {
    background-color: #6bd2ed;
    color: #333333 !important;
}

.bg-azure {
    background-color: #1aa3ff;
    color: #ffffff !important;
}

.bg-teal {
    background-color: #92b2ed;
    color: #ffffff !important;
}

.bg-meadow {
    background-color: #27b788;
    color: #ffffff !important;
}

.bg-terracotta {
    background-color: #c4693b;
    color: #ffffff !important;
}

.bg-yellow {
    background-color: #ffd500;
    color: #ffffff !important;
}

.bg-garnet {
    background-color: #9c161d;
    color: #ffffff !important;
}

.bg-gradient-sensor {
    background: linear-gradient(to right, rgb(186, 75, 251), rgb(198, 140, 232)) !important;
}

.bg-gradient-sensor:not(.disabled):hover {
    background: linear-gradient(to right, rgb(168, 30, 249), rgb(185, 123, 228)) !important;
}

.bg-gradient-neutral {
    background: linear-gradient(45deg, #dedede95, #f7f7f7c0) !important;
}

.bg-gradient-cold {
    /*background: linear-gradient(to right, #36a3f7, #7dc3fa) !important;*/
    background: linear-gradient(to right, #36a3f7a5, #36a3f770) !important;
}

.bg-gradient-warm {
    /*background: linear-gradient(to right, #f0491c, #f47c5c) !important;*/
    background: linear-gradient(to right, #f0491ca5, #f0491c70) !important;
}

.bg-gradient-cold-slider {
    /*background: linear-gradient(to right, #36a3f7, #7dc3fa) !important;*/
    background: linear-gradient(#36a3f7c0, #36a3f75f) !important;
}

.bg-gradient-cold-horizontal-slider {
    /*background: linear-gradient(to right, #36a3f7, #7dc3fa) !important;*/
    background: linear-gradient(to right,#36a3f7c0, #36a3f75f) !important;
}


.bg-gradient-warm-slider {
    /*background: linear-gradient(to right, #f0491c, #f47c5c) !important;*/
    background: linear-gradient(#f0491c5f, #f0491cc0) !important;
}

.bg-gradient-warm-horizontal-slider {
    /*background: linear-gradient(to right, #f0491c, #f47c5c) !important;*/
    background: linear-gradient(to right, #f0491c5f, #f0491cc0) !important;
}

.bg-gradient-reverse-cold-slider {
    background: linear-gradient(#36a3f75f, #36a3f7c0) !important;
}

.bg-gradient-reverse-warm-slider {
    background: linear-gradient(#f0491cc0, #f0491c5f) !important;
}

h5, .h5 {
    margin-bottom: 0.4rem;
}

.h5-icon {
    margin: 0;
    height: 23px;
}

html:not(.dark-theme) a.dropdown-toggle:not(.nav-link)>i {
    color: #000;
}

.page-breadcrumb {
    display: flex;
    margin-bottom: 1rem;
}

.breadcrumb-title {
    padding-right: 1rem;
}

.page-breadcrumb>nav {
    padding-top: 4px;
    padding-left: 1rem;
}

ol.breadcrumb {
    margin-bottom: 0;
    padding: 0;
}

.card {
    box-shadow: 0 0 10px #cdcbef;
}

.card .card-header {
    padding: 0.5rem 1rem;
    margin-bottom: 0;
    background-color: rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

.card .card-footer {
    padding: .75rem 1rem;
    margin-bottom: 0;
    background-color: rgba(0, 0, 0, 0.05);
    border-top: 1px solid rgba(0, 0, 0, 0.125);
}

div.help {
    background-color: #ebf4ff;
}

.custom-col-6 {
    display: inline-block;
    width: 49.3%;
}

.city-bkg {
    position: relative;
    /* height: calc(100vh - 82px); */
}

.city-bkg::after {
    /* content: "";
    background: url("/images/city-bkg.webp");
    opacity: 0.4;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    position: fixed;
    z-index: -1; */
}

.text-orange {
    /* color: #ff9200; */
    color: var(--bs-orange);
}

.text-orange-soft {
    color: #ffbc70;
}

.text-purple {
    color: #a6009a;
}

.text-purple-soft {
    color: #b918a1;
}

.text-indigo {
    color: #1C4C96;
}

.text-indigo-soft {
    color: #1b72f9;
}

.text-red {
    color: #f45757;
}

.text-sensor {
    color: #ba4bfb;
}

.text-cold {
    color: #a1d4f9;
}

.text-warm {
    color: #f6a693;
}

.text-neutral {
    color: #dedede;
}

.counters span.text-sensor {
    height: 20px;
    line-height: 20px;
}

.slide-right {
    -webkit-animation: slide-right 3s linear infinite both;
    animation: slide-right 3s linear infinite both;

}

@-webkit-keyframes slide-right {
    0% {
        transform: translate(0vw, 0);
        -webkit-transform: translate(0vw, 0);
        -moz-transform: translate(0vw, 0);
        -ms-transform: translate(0vw, 0);
        -o-transform: translate(0vw, 0);
    }

    75%, 100% {
        transform: translate(400%, 0);
        -webkit-transform: translate(400%, 0);
        -moz-transform: translate(400%, 0);
        -ms-transform: translate(400%, 0);
        -o-transform: translate(400%, 0);
    }

    0%, 75% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }

}

.slide-right-grow {
    -webkit-animation: slide-right-grow 3s linear infinite both;
    animation: slide-right-grow 3s linear infinite both;
}

@-webkit-keyframes slide-right-grow {
    0% {
        transform: translate(0vw, 0);
        -webkit-transform: translate(0vw, 0);
        -moz-transform: translate(0vw, 0);
        -ms-transform: translate(0vw, 0);
        -o-transform: translate(0vw, 0);
    }

    75%, 90% {
        transform: translate(400%, 0);
        -webkit-transform: translate(400%, 0);
        -moz-transform: translate(400%, 0);
        -ms-transform: translate(400%, 0);
        -o-transform: translate(400%, 0);
    }

    100% {
        transform: translate(400%, 0) scale(2);
        -webkit-transform: translate(400%, 0) scale(2);
        -moz-transform: translate(400%, 0) scale(2);
        -ms-transform: translate(400%, 0) scale(2);
        -o-transform: translate(400%, 0) scale(2);
    }

    0%, 75% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }

}




/* custom scroller (only for webkit based browsers like Chrome) */
::-webkit-scrollbar {
    width: 15px;
    border-left: 1px solid #e4e4e4;
    background-color: #FFF;
}

::-webkit-scrollbar-thumb {
    height: 6px;
    border: 4px solid rgba(0, 0, 0, 0);
    background-clip: padding-box;
    -webkit-border-radius: 7px;
    border-radius: 7px;
    background-color: #6e6e6e;
}

/* cursors */
.c-default {
    cursor: default;
}

.c-pointer {
    cursor: pointer;
}

.c-help {
    cursor: help !important;
}

.c-not-allowed {
    cursor: not-allowed !important;
}

.c-copy {
    cursor: copy;
}

.pe-auto {
    pointer-events: auto !important;
}

/* buttons */
button:disabled, .btn:disabled, .btn.disabled {
    cursor: not-allowed;
    pointer-events: auto;
}

button.disabled:focus, button.disabled:active {
    box-shadow: none;
}

.btn-group>.btn {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.btn>i {
    margin: 0 4px 0 0;
    /* vertical-align: initial; */
    vertical-align: middle;
}

html:not(.dark-theme) .dashboard .btn-group>.btn:not(:first-child), html:not(.dark-theme) .dashboard .btn-group>.btn-group>.btn:first-child {
    border-left: 1px solid #ccc;
}

.btn-group:not(.bs-native)>.btn:not(:last-child):not(.dropdown-toggle-split), .btn-group:not(.bs-native)>.btn-group:not(:last-child) {
    border-right: 1px solid #ccc;
}

.btn-primary:not(:active):not(.active):not(:focus):not(:checked):not(.show):hover, .btn-primary:not(:active):not(.active):not(:checked):not(.show):focus {
    background-color: #205083;
    /* lighter blue */
}

.btn-group>.btn-check:not(:checked)+.btn {
    opacity: 0.5;
}

.btn-samcla-red:hover {
    color: #fff;
    background-color: #bd1f19 !important;
    border-color: #b21d17 !important;
}

.btn-check:checked+.btn-samcla-red, .btn-check:active+.btn-samcla-red, .btn-samcla-red:active, .btn-samcla-red.active, .show>.btn-samcla-red.dropdown-toggle {
    color: #fff;
    background-color: #b21d17 !important;
    border-color: #a71b16 !important;
}

.btn-check:checked+.btn-outline-success, .btn-check:active+.btn-outline-success, .btn-outline-success:active, .btn-outline-success.active, .btn-outline-success.dropdown-toggle.show, .btn-outline-success:hover {
    color: #fff;
}

.btn-outline-primary:disabled {
    opacity: 0.33;
}

.btn-xs {
    padding: .1em .2em;
}

.btn-xs:not(:last-child) {
    margin-right: 6px;
}

.btn-xs>i {
    margin: 0;
}

.btn.resident {
    padding-left: 0.35rem;
    padding-right: 0.35rem;
    min-width: 30px;
}

.btn.resident>i, i.resident {
    margin: 0 -2px 0 -1px !important;
}

.btn-outline-sensor {
    --bs-btn-color: #ba4cfb;
    --bs-btn-border-color: #ba4cfb;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #ba4cfb;
    --bs-btn-hover-border-color: #ba4cfb;
    --bs-btn-focus-shadow-rgb: 21, 51, 84;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #ba4cfb;
    --bs-btn-active-border-color: #ba4cfb;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #ba4cfb;
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: #ba4cfb;
    --bs-gradient: none;
}

#btnHideStationsWM {
    padding-top: 2px;
    padding-bottom: 2px;
}

/* tables */
table td {
    vertical-align: middle;
}

table td i {
    /* vertical-align: bottom; */
    vertical-align: middle;
}

table td .btn>i {
    margin: 0;
}

table.dataTable td i.bi-geo-alt {
    cursor: pointer;
}

table td a:hover>i.fa {
    transform: scale(1.3);
}

table td a:hover>i[class^='bi'] {
    font-size: 1.4rem;
}

table:not(#sbp-programs-table) tr td .badge {
    box-sizing: border-box;
    height: 18.5px;
}

table tr td span[class^='badge bg-outline'] {
    padding-top: 0.4em;
    padding-bottom: 0.4em;
    height: 19.5px;
}

table#permissions-table thead tr th:first-child {
    font-weight: 400;
}

table#permissions-table thead tr th:not(:first-child) {
    font-weight: 500;
    text-align: center;
}

table#permissions-table tr.module {
    background-color: #3d648d49;
}

table#permissions-table tr.module>td:first-child {
    font-size: larger;
    font-weight: bolder;
}

table#permissions-table>tbody>tr:not(.module)>td:first-child {
    padding-left: 20px;
    cursor: help;
}

table#permissions-table tr>td:not(:first-child) {
    text-align: center;
}

table#permissions-table .form-check-input {
    margin: 0.12em 0 0;
}

/* modals */
.modal-header {
    padding: .6rem 1rem;
    justify-content: space-between;
}

.modal-header button {
    border-radius: 6px;
    padding: 2px 8px;
}

.modal-body>.content {
    min-height: 200px;
    position: relative;
}

/* modal inside modal (new class upper-modal) */
.modal.show.upper-modal {
    z-index: 1062 !important;
}

.modal-backdrop.show.upper-modal-backdrop {
    z-index: 1061 !important;
}

.modal>form {
    display: unset;
    /* fix modal scrollable when form outside .modal-content */
}

/* charts */
.chart {
    position: relative;
}

.home-piechart {
    height: 240px;
}

.device-piechart {
    width: 100%;
    height: 280px;
}

.piechart-legend {
    height: 100px;
    max-height: 80px;
}

/* highcharts*/
.highcharts-container, .highcharts-container .highcharts-title, .highcharts-root {
    font-family: "Roboto", sans-serif !important;
}

.highcharts-button {
    cursor: pointer !important;
}

.highcharts-menu {
    border: 1px solid #153354 !important;
    padding: 3px 0 !important;
    box-shadow: 0 0 8px #777 !important;
}

.highcharts-menu-item {
    padding: .2em .5em !important;
}

.highcharts-menu hr {
    margin: .2rem 0 !important;
}

.highcharts-data-label tspan.highcharts-text-outline {
    stroke-width: 1px;
}

.highcharts-legend-item text {
    letter-spacing: 0.1px;
}

/* charts v4 */
.chart svg g[opacity][aria-labelledby][filter^=url], .dev-chart svg g[opacity][aria-labelledby][filter^=url], .piechart-legend svg g[opacity][aria-labelledby][filter^=url] {
    /* hide brand icon */
    display: none;
    /* move brand icon to right */
    /* transform: translate(calc(100% - 60px), calc(100% - 8px));
    -webkit-transform: translate(calc(100% - 60px), calc(100% - 8px));
    -moz-transform: translate(calc(100% - 60px), calc(100% - 8px));
    -ms-transform: translate(calc(100% - 60px), calc(100% - 8px));
    -o-transform: translate(calc(100% - 60px), calc(100% - 8px)); */
}

.amcharts-amexport-menu-level-0.amcharts-amexport-left {
    top: 1px !important;
    left: 0 !important;
}

.amcharts-amexport-menu-level-0>.amcharts-amexport-item, .amcharts-amexport-menu-level-0>.amcharts-amexport-item:hover, .amcharts-amexport-menu-level-0>.amcharts-amexport-item.active {
    background-color: transparent !important;
}

.amcharts-amexport-item, .amcharts-amexport-item>a {
    background: #ddedfd !important;
    color: #153354 !important;
    border-radius: 4px !important;
    -webkit-border-radius: 4px !important;
    -moz-border-radius: 4px !important;
    -ms-border-radius: 4px !important;
    -o-border-radius: 4px !important;
}

.amcharts-amexport-item:hover, .amcharts-amexport-item.active, .amcharts-amexport-item:hover>a, .amcharts-amexport-item.active>a {
    background: #c8dcf1 !important;
    color: #0d6efd !important;
}

.amcharts-amexport-item-level-0>.amcharts-amexport-icon {
    padding: 1px !important;
}

.amcharts-amexport-item.amcharts-amexport-item-level-0 {
    width: 18px !important;
    height: 18px !important;
    min-height: auto !important;
}

.amcharts-amexport-icon {
    width: 100% !important;
    height: 100% !important;
    min-width: auto !important;
    min-height: auto !important;
}

.amcharts-amexport-label {
    padding: 0.25em 0.5em !important;
    font-size: .9em;
}



/* dashboard */
.row-flex {
    display: flex;
    flex-wrap: wrap;
}

.row-flex .card {
    height: 100%;
}

.client-col {
    margin-bottom: 1rem;
}

.btn-group.client-btns {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    height: 40px;
}

.client-btns a.btn {
    line-height: 27px;
}

.client-img {
    max-height: calc(100% - 54px);
}

.btn-group.client-btns, .btn-group.devices {
    height: 40px;
}

.btn-group.devices .btn {
    /*line-height: 1.1rem;*/
    padding: .1rem .5rem;
}

.btn-group.devices button.btn>i {
    margin: 0;
}

.btn-group.devices .btn.active {
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
    background-color: #0d6efd;
    color: #ffffff;
}

.btn-group.devices .btn.active+.btn.dropdown-toggle {
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
    background-color: #0d6efd;
    color: #ffffff;
}

.btn-group.devices .btn.active:hover {
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
    background-color: #0d6efd;
    color: #ffffff;
}

.btn-group.devices .btn:hover {
    color: #fff;
}

.btn-group.devices .btn>span.badge {
    font-size: 12px;
    color: #fff;
    background-color: #0d6efd;
}

.btn-group.devices .btn.active>span.badge {
    color: #0d6efd;
    background-color: #fff;
}

.btn-group.devices .btn.active+.btn.dropdown-toggle>span.badge {
    color: #0d6efd;
    background-color: #fff;
}

.btn-group.devices ul>li>a>span.badge {
    font-size: 12px;
    color: #fff;
    background-color: #0d6efd;
}

.btn-group-vertical.devices .btn {
    line-height: 1.6;
    padding: 1rem .3rem;
}

/* user profile */
.account-img {
    width: auto;
    max-width: 90%;
    max-height: 400px;
}

/* device add form */
.devIcon i {
    font-size: 160px;
}

/* device detail */
#deviceCard {
    min-height: 600px;
    position: relative;
}

#deviceCard .devClose, #deviceCard .devReload {
    padding: 4px 6px 2px;
}

#deviceCard>.card-header {
    height: 46px;
    transition: all 0.4s;
    -webkit-transition: all 0.4s;
    -moz-transition: all 0.4s;
    -ms-transition: all 0.4s;
    -o-transition: all 0.4s;
}
#deviceCard:not(.sticky-header)>.card-header>.align-items-center {
    padding-top:2px;
}

#deviceCard.sticky-header .deviceContent {
    padding-top: 48px; /* added to prevent scroll flickering */
}

#deviceCard.sticky-header>.card-header {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    max-height: 60px;
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
    overflow: hidden;
    background: #cfe2ff !important;
    border-bottom: 1px solid #e4e4e4;
    z-index: 8;
    /* z-index: 10; */
    -webkit-box-shadow: 0 2px 6px 0 rgb(218 218 253 / 65%), 0 0px 6px 0 rgb(206 206 238 / 54%);
    box-shadow: 0 2px 6px 0 rgb(218 218 253 / 65%), 0 0px 6px 0 rgb(206 206 238 / 54%);
    transition: all 0.4s;
    -webkit-transition: all 0.4s;
    -moz-transition: all 0.4s;
    -ms-transition: all 0.4s;
    -o-transition: all 0.4s;
}

#deviceCard:not(.sticky-header) .headerWidgets {
    display: none;
}

#deviceCard.sticky-header .headerWidgets {
    height: 36px;
    margin-left: 1rem;
    margin-right: 1rem;
}

#deviceCard.sticky-header .headerWidgets .widgets-icons, #deviceCard.sticky-header .headerWidgets .widgets-icons-2 {
    width: 36px;
    height: 36px;
    font-size: 12px;
    position: relative;
}

#deviceCard.sticky-header .headerWidgets .widgets-icons-2 .sba-widget-sort {
    right: 85% !important;
    bottom: 60% !important;
    position: absolute;
    font-size: 16px !important;
}

#deviceCard.sticky-header .headerWidgets .widgets-icons-2 .sba-widget-cutoff {
    right: 85% !important;
    top: 25% !important;
    position: absolute;
    font-size: 16px !important;
}

#deviceCard.sticky-header .headerWidgets .widgets-icons-2 .sba-widget-measure-pending {
    left:92% !important;
    bottom:-15% !important;
    position:absolute;
    display:block!important;
}

#deviceCard.sticky-header .headerWidgets .no-sba-widget-measure-pending {
    display:none!important;
}

#deviceCard.sticky-header .headerWidgets .no-sba-widget-slow {
    display:none!important;
}

#deviceCard.sticky-header .headerWidgets .widgets-icons, #deviceCard.sticky-header .headerWidgets .widgets-icons-2 .sba-widget-value {
    margin-top:5px!important;
}

#deviceCard.sticky-header .headerWidgets .widgets-icons, #deviceCard.sticky-header .headerWidgets .widgets-icons-2 .sba-widget-unit {
    font-size: 0.5rem !important;
}

#deviceCard.sticky-header .headerWidgets .widgets-icons-2 .sba-widget-state {
    left: 85% !important;
    top: 60% !important;
    position: absolute;
    font-size: 16px !important;
}


div[class^="pgm-code"]>.widgets-icons-2 {
    width: 35px;
    height: 35px;
    font-size: 12px;
}

#deviceCard.sticky-header .headerWidgets .h1 {
    font-size: 1.4rem;
}

#deviceCard.sticky-header .headerWidgets .h2 {
    font-size: 1.2rem;
}

#deviceCard.sticky-header .headerWidgets .h4 {
    font-size: 1.02rem;
}

#deviceCard.sticky-header .headerWidgets .fs-3 {
    font-size: 1.2rem !important;
}

#deviceCard.sticky-header .headerWidgets .fs-6 {
    font-size: 0.7rem !important;
}

.devWidgets .widgets-icons-2 .sbr-unit {
    font-size: 10px;
}

#deviceCard.sticky-header .headerWidgets .sbr-unit {
    display: none;
}

div[class^="pgm-code"]>.widgets-icons-2 .fs-6 {
    font-size: 0.65rem !important;
}

#deviceCard>.card-body>.divLoader {
    /* min-height: 700px; */
}

.modal-header .wb-badge {
    min-width: 65px;
}

.wb-header-slider {
    min-width: 150px;
}

.device-img-col {
    text-align: center;
    padding: 1rem;
    border-right: 1px solid #dee2e6;
}

.device-img {
    max-height: 200px;
}

.img-shadow {
    filter: drop-shadow(-10px 5px 10px rgba(0,0,0,.5));
    -webkit-filter: drop-shadow(-10px 5px 10px rgba(0,0,0,.5));
}

.img-thin-shadow {
    filter: drop-shadow(-6px 5px 8px rgba(0,0,0,.4));
    -webkit-filter: drop-shadow(-6px 5px 8px rgba(0,0,0,.4));
}

.icon-sample {
    border-radius: 50%;
    border: 2px solid #111;
    background-color: #FFF;
    padding: 0.3em 0.2em 0.35em 0.3em;
}

#tagIconSample {
    position: relative;
    top: 5px;
    line-height: 0.7em;
}

.icon-alert>p {
    width: calc(100% - 35px);
}

.widgets-icons-2 {
    font-size: 24px;
}

.cutoff-duotone-icon{
    --fa-secondary-color: rgb(var(--bs-danger-rgb));
    --fa-secondary-opacity: .9;
}

.grow {
    transition: all .3s ease-in-out;
    -webkit-transition: all .3s ease-in-out;
    -moz-transition: all .3s ease-in-out;
    -ms-transition: all .3s ease-in-out;
    -o-transition: all .3s ease-in-out;
    box-shadow: rgb(150, 150, 150) 0px 0px 10px;
}

.grow:hover, .grow-light-shadow:hover {
    transform: scale(1.2);
    -webkit-transform: scale(1.2);
    -moz-transform: scale(1.2);
    -ms-transform: scale(1.2);
    -o-transform: scale(1.2);
    box-shadow: #0d6efd 0px 0px 10px;
}

.grow-light-shadow {
    transition: all .3s ease-in-out;
    -webkit-transition: all .3s ease-in-out;
    -moz-transition: all .3s ease-in-out;
    -ms-transition: all .3s ease-in-out;
    -o-transition: all .3s ease-in-out;
    box-shadow: rgb(200, 200, 200) 0px 0px 10px;
}


.sensor>span>span>i {
    padding: 0;
    line-height: 1;
}

.sensor>i, .sensor>span>i, .sensor>div>i {
    padding: 0;
    font-size: 8px;
    line-height: 1;
}

.glow-green {
    box-shadow: #0cd416 0px 0px 7px;
}

.glow-red {
    box-shadow: #d40c0c 0px 0px 5px;
    --fa-animation-duration: 1.6s;
}

.bg-ambar {
    background-color: #e7a01c;
}

.glow-ambar {
    box-shadow: #e48130 0px 0px 7px;
    --fa-animation-duration: 1.6s;
}

.glow-yellow {
    box-shadow: #f3d946 0px 0px 7px;
}

.glow-info {
    box-shadow: rgb(var(--bs-info-rgb)) 0px 0px 7px;
    --fa-animation-duration: 1.6s;
}

.bg-dark-blooker {
    background-color: #ff8359;
}

.bulb-red-off {
    color: #780202;
}

.glow-red-off {
    box-shadow: #780202 0px 0px 2px;
}

.tab-icon img {
    height: 22px;
}

.icon-ev, .icon-ev-sm {
    width: 30px;
    height: 30px;
    background-image: url('/images/solenoid.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    display: inline-block;
}

.tab-icon .icon-ev, .icon-ev-sm {
    height: 18px;
    min-height: 18px;
    width: 18px;
    min-width: 18px;
}

#deviceProgramsList .card-header>h5 {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

#deviceProgramsList.mode_S .card-header>h5 {
    max-width: 20vw;
}

#deviceCard .progress {
    transition: width 1s ease;
    -webkit-transition: width 1s ease;
    -moz-transition: width 1s ease;
    -ms-transition: width 1s ease;
    -o-transition: width 1s ease;
}

.progress-bar-animated {
    animation-direction: reverse;
}

.pgmRunning i.bi-play-fill, .pgmRunning i.bi-stop-fill {
    position: relative;
    top: 1px;
}

/* nav tabs */
.nav-tabs .nav-link {
    height: 38px;
    padding: .55rem .6rem .4rem;
}

.nav-tabs>.nav-item>.nav-link {
    position: relative;
}

html:not(.dark-theme) .page-content>.nav-tabs .nav-link:not(.active) {
    height: 37px;
    background-color: #ffffff99;
}

.nav-tabs .nav-item:not(:last-child) .nav-link {
    margin-right: 3px;
}

html:not(.dark-theme) .nav-tabs .nav-link:not(.active) {
    color: #7a8693;
}

html:not(.dark-theme) .nav-tabs .nav-link:not(.active):hover {
    color: #555;
}

.nav-tabs .nav-link {
    border-color: #e9ecef #e9ecef transparent #e9ecef;
    border-bottom-left-radius: 2px;
    border-bottom-right-radius: 2px;
}

html:not(.dark-theme) .nav-tabs .nav-link.active {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    background-color: #fff;
}

html:not(.dark-theme) .nav-tabs .nav-link:hover, .nav-tabs .nav-link:focus {
    border-color: #757b85 #757b85 transparent #757b85;
}

html:not(.dark-theme) .nav-tabs.nav-primary {
    border-bottom: 1px solid #153354 !important;
}

html:not(.dark-theme) .tab-content {
    background-color: #fff;
}

html:not(.dark-theme) .tab-content.border.primary {
    border: 1px solid #153354 !important;
}

html:not(.dark-theme) .tab-content.border-top-0 {
    border-top: 0 !important;
}

.nav-primary.nav-tabs .nav-link.active {
    border-color: #153354 #153354 rgb(255 255 255 / 14%);
    color: #153354;
}

.nav-danger.nav-tabs .nav-link.active, .nav-tabs .nav-link.danger.active {
    border-color: #f41127 #f41127 rgb(255 255 255 / 0.14);
}

.nav-tabs .nav-link.danger {
    color: #f41127 !important;
}

.nav-success.nav-tabs .nav-link.active, .nav-tabs .nav-link.success.active {
    border-color: #17a00e #17a00e rgb(255 255 255 / 0.14);
}

.nav-tabs .nav-link.success {
    color: #17a00e !important;
}

.nav-warning.nav-tabs .nav-link.active, .nav-tabs .nav-link.warning.active {
    border-color: #ffc107 #ffc107 rgb(255 255 255 / 0.14);
}

.nav-tabs .nav-link.warning {
    color: #ffc107 !important;
}

.card-body>.tab-content, .card-body>.deviceContent>.tab-content {
    min-height: 50vh;
    background-color: transparent;
}

.tab-content.minh {
    min-height: 33vh;
}

/* maps */
.home-map-wrapper, #home-map, #cgr-map, #home-advanced-map {
    min-height: 400px;
    height: calc(50vh + 157px);
    border-radius: 6px;
    -webkit-border-radius: 6px;
    -moz-border-radius: 6px;
    -ms-border-radius: 6px;
    -o-border-radius: 6px;
}

.home-map-filters-wrapper {
    position: absolute;
    overflow: hidden;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    background-color: transparent;
    pointer-events: none;
}

.home-map-filters-btn-wrapper {
    margin: 10px 10px 0 0;
    pointer-events: auto;
    max-height: 50px;
}

#home-map-filters-btn {
    border: none;
    border-radius: 3px;
    box-shadow: rgba(0, 0, 0, 0.3) 0px 1px 4px;
    cursor: pointer;
    text-align: center;
    color: rgb(25, 25, 25);
    background-color: #fff;
    font-family: "Roboto", Arial, sans-serif;
    font-size: 18px;
    line-height: 38px;
    width: 40px;
    pointer-events: auto;
}

.home-map-filters {
    max-width: 40vw;
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
    background-color: #ebf4ff;
    box-shadow: rgba(0, 0, 0, 0.2) -2px 0px 6px;
    transition: all .3s ease-out;
    -webkit-transition: all .3s ease-out;
    -moz-transition: all .3s ease-out;
    -ms-transition: all .3s ease-out;
    -o-transition: all .3s ease-out;
    -webkit-border-top-right-radius: 6px;
    -moz-border-top-right-radius: 6px;
    -ms-border-top-right-radius: 6px;
    -o-border-top-right-radius: 6px;
    -webkit-border-bottom-right-radius: 6px;
    -moz-border-bottom-right-radius: 6px;
    -ms-border-bottom-right-radius: 6px;
    -o-border-bottom-right-radius: 6px;
    pointer-events: auto;
}

.marker-icon{
    font-size: 1.2em;
}

gmp-advanced-marker .unhighlighted{
    opacity: 0.3;
}
gmp-advanced-marker .unhighlighted div{
    color: #bdbdbd !important;
}

.bounce {
    animation: bounce 2s ease infinite;
    -webkit-animation: bounce 2s ease infinite;
    -moz-animation: bounce 2s ease infinite;
    -o-animation: bounce 2s ease infinite;
}

@-webkit-keyframes bounce {
    0%, 20%, 50%, 80%, 100% {-webkit-transform: translateY(0);}
    40% {-webkit-transform: translateY(-30px);}
    60% {-webkit-transform: translateY(-15px);}
}

@-moz-keyframes bounce {
    0%, 20%, 50%, 80%, 100% {-moz-transform: translateY(0);}
    40% {-moz-transform: translateY(-30px);}
    60% {-moz-transform: translateY(-15px);}
}

@-o-keyframes bounce {
    0%, 20%, 50%, 80%, 100% {-o-transform: translateY(0);}
    40% {-o-transform: translateY(-30px);}
    60% {-o-transform: translateY(-15px);}
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-30px);}
    60% {transform: translateY(-15px);}
}

div.gm-style-mtc>button {
    /* buttons */
    padding: 0 10px !important;
}
.gm-btn:hover {
    background-color: #ebe9e9 !important;
    color: #000 !important;
}
div.gm-style-mtc>ul>li>span img {
    transform: none !important;
    -webkit-transform: none !important;
    -moz-transform: none !important;
    -ms-transform: none !important;
    -o-transform: none !important;
}
/* maps info window */
div.gm-style .gm-style-iw-c {
    padding-left: 12px !important;
    padding-top: 12px !important;
    padding-right: 36px !important;
    transition: all 0.3s ease;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -ms-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    box-shadow: 10px 10px 5px #0003 !important;
}
div.gm-style-iw-chr {
    position: absolute !important;
    top: -2px !important;
    right: -4px !important;
    display: flex;
}
div.gm-style-iw-d p {
    margin-bottom: 0.5em;
}

/* loaders */
#pageLoader {
    position: fixed;
    width: 100%;
    height: 100vh;
    z-index: 999999;
    opacity: 1;
    overflow: visible;
    /*background: #fff url(/images/loader.gif) no-repeat center center;
    */
    background-color: #fff;
    background-image: url(/images/loader.png);
    background-position: 50% calc(50% - 50px);
    background-repeat: no-repeat;
    transition: all 0.6s;
    -webkit-transition: all 0.6s;
    -moz-transition: all 0.6s;
    -ms-transition: all 0.6s;
    -o-transition: all 0.6s;
}

#pageLoader>.loadingMsg {
    position: relative;
    top: calc(50% - 10px);
    left: 0;
    height: 50px;
    width: 100%;
    padding: 0 15px;
    text-align: center;
    font-size: 20px;
    overflow: hidden;
}

.divLoader {
    position: absolute;
    /* width: calc(100% - 2rem); */
    /* height: calc(100% - 1rem); */
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 5;
    opacity: 1;
    overflow: visible;
    /* background: #fff url(/images/loader.gif) no-repeat center center; */
    background-color: #fff;
    background-image: url(/images/loader.png);
    background-position: 50% calc(50% - 30px);
    background-repeat: no-repeat;
    display: none;
}

.divLoader.loaderMsg {
    background-image: none;
}

.divLoader>.loadingMsg {
    position: relative;
    top: calc(50% - 50px);
    left: 0;
    height: 50px;
    width: 100%;
    text-align: center;
    font-size: 20px;
    overflow: hidden;
}

.modal .divLoader {
    width: 100%;
    height: 100%;
}

.sw>.divLoader {
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffffe1;
    border: 1px solid #d3d3d3;
}

/* interwind spinner */
@keyframes load-iw-r {

    0%,
    100% {
        animation-timing-function: cubic-bezier(0.2 0 0.8 0.8)
    }

    50% {
        animation-timing-function: cubic-bezier(0.2 0.2 0.8 1)
    }

    0% {
        transform: rotate(0deg)
    }

    50% {
        transform: rotate(180deg)
    }

    100% {
        transform: rotate(360deg);
        -webkit-transform: rotate(360deg);
        -moz-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
        -o-transform: rotate(360deg);
    }
}

@keyframes load-iw-s {

    0%,
    100% {
        animation-timing-function: cubic-bezier(0.2 0 0.8 0.8)
    }

    50% {
        animation-timing-function: cubic-bezier(0.2 0.2 0.8 1)
    }

    0% {
        transform: translate(-22px, -22px) scale(0)
    }

    50% {
        transform: translate(-22px, -22px) scale(1)
    }

    100% {
        transform: translate(-22px, -22px) scale(0)
    }
}

.load-iw>div {
    transform: translate(0px, -11px)
}

.load-iw>div>div {
    animation: load-iw-r 1.25s linear infinite;
    transform-origin: 50px 50px;
}

.load-iw>div>div>div {
    position: absolute;
    transform: translate(50px, 36.8px);
}

.load-iw>div>div>div>div {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #e22216;
    animation: load-iw-s 1.25s linear infinite;
}

.load-iw>div>div:last-child {
    animation-delay: -0.625s;
}

.load-iw>div>div:last-child>div>div {
    animation-delay: -0.625s;
    background: #212a52;
}

.loading-interwind {
    width: 80px;
    height: 80px;
    display: inline-block;
    overflow: hidden;
    background: none;
}

#pageLoader .loading-interwind, .divLoader .loading-interwind {
    /* position: relative; */
    position: absolute;
    top: calc(50% + 10px);
    left: calc(50% - 40px);
}

#pageLoader .loading-interwind {
    top: calc(50% + 30px);
}

.load-iw {
    width: 100%;
    height: 100%;
    position: relative;
    transform: translateZ(0) scale(0.8);
    backface-visibility: hidden;
    transform-origin: 0 0;
}

.load-iw div {
    box-sizing: content-box;
}

/* infinite spinner */
.overlay-loader {
    display: none;
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 4;
    opacity: 0;
    overflow: visible;
    background: #ffffffdd;
    top: 0;
    left: 0;
}

.overlay-loader>span {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 4;
    opacity: 1;
    overflow: visible;
    background: transparent url(/images/infinite.gif) no-repeat center center;
}

/* radio spinner */
@keyframes radio-spinner {
    0% {
        opacity: 0
    }

    20% {
        opacity: 1
    }

    100% {
        opacity: 1
    }
}

.radio-spinner div {
    position: absolute;
    animation: radio-spinner 1.3s linear infinite;
    box-sizing: border-box !important;
}

.radio-spinner div:nth-child(1) {
    width: 22px;
    height: 22px;
    left: 18px;
    top: 67px;
    border-radius: 50%;
    background: #212a52;
}

.radio-spinner div:nth-child(2) {
    width: 34px;
    height: 34px;
    left: 28px;
    top: 44px;
    border-radius: 0 34px 0 0;
    border: 11px solid #456caa;
    background: none;
    animation-delay: 0.1s;
    border-bottom: 0;
    border-left: 0
}

.radio-spinner div:nth-child(3) {
    width: 59px;
    height: 59px;
    left: 28px;
    top: 19px;
    border-radius: 0 59px 0 0;
    border: 11px solid #88a2ce;
    background: none;
    animation-delay: 0.25s;
    border-bottom: 0;
    border-left: 0
}

.radio-spinner {
    width: 100px;
    height: 100px;
    position: absolute;
    background: none;
    left: calc(50% - 50px);
    top: calc(50% - 50px);
    z-index: 5;
    /*  transform: translateZ(0) scale(1);
    backface-visibility: hidden;
    transform-origin: 0 0; */
}

.radio-spinner div {
    box-sizing: content-box;
}


/* datatables */
.dataTables_scroll table.dataTable {
    margin-top: 0 !important;
}

.dataTables_scroll .dataTables_scrollHead {
    border-bottom: 1px solid #999 !important;
}

table.dataTable {
    position: relative;
}

table.dataTable>thead>tr>th {
    border: 0;
}

table.dataTable>thead>tr:last-child>th {
    font-weight: 700 !important;
    padding: 0.25rem 0.5rem 0.1rem;
}

table.dataTable>thead>tr:first-child>th {
    padding: 0.7rem 0.5rem 0;
}

/* column header filters */
table.dataTable>thead>tr>th select.form-select, table.dataTable>thead>tr>th input.form-control {
    display: block;
    max-width: 100%;
    margin-bottom: 0.3rem;
}

table.dataTable tr td {
    padding: 0.35rem 0.45rem;
}

table.dataTable.mh tbody tr {
    height: 42px;
    /* height for tr/td works like min-height */
}

table.dataTable tr.selected {
    background-color: #15335418;
}

table.dataTable tr.current td {
    background-color: #0d6efd33 !important;
    font-weight: 500;
}

table.dataTable.selectable tbody tr:not(.ns) {
    cursor: pointer;
}

table.dataTable.selectable tbody td.noclick {
    cursor: default;
}

table.dataTable tr td>i:not(:first-child) {
    margin-left: 0.3rem;
}

table.dataTable tr td i.text-warning, i.text-warning {
    /* text-shadow: 0 0 2px #333; */
}

table.dataTable.u-printable th u, table.dataTable.u-printable td u {
    text-decoration: none;
    display: none;
}

table.dataTable tr.text-danger td>i {
    color: rgba(var(--bs-danger-rgb), var(--bs-text-opacity)) !important;
}

body table.dataTable>thead>tr>th:not(.sorting_disabled), body table.dataTable>thead>tr>td:not(.sorting_disabled) {
    padding-right: 20px;
}

table.dataTable tr td .btn {
    margin: 0.25rem 0.2rem;
}

table.dataTable tr:not(.deleted) td .restore {
    display: none;
}

table.dataTable tr.deleted td .deactivate {
    display: none;
}

table.dataTable tr.deleted td:not(.nolinethrough) {
    text-decoration: line-through;
    color: rgb(119, 0, 0);
}

table.dataTable td img.logo {
    max-width: 150px;
    max-height: 35px;
}

div.dataTables_wrapper div.dataTables_info {
    padding: 0.4em;
}

.dt-buttons button, .massjob-btns button {
    padding: 0.2rem 0.5rem;
    height: 28px;
    line-height: 1;
}

.dt-buttons>button.btn {
    padding-left: 0.4rem;
    padding-right: 0.4rem;

}

.dt-buttons button.buttons-copy i {
    color: #012f63;
}

.dt-buttons button.buttons-copy:hover {
    background-color: #012f63;
}

.dt-buttons button.buttons-copy:hover i {
    color: #fff;
}

.dt-buttons button.buttons-excel i, .dt-buttons button.buttons-csv i {
    color: #096301;
}

.dt-buttons button.buttons-excel:hover, .dt-buttons button.buttons-csv:hover {
    background-color: #096301;
}

.dt-buttons button.buttons-excel:hover i, .dt-buttons button.buttons-csv:hover i {
    color: #fff;
}

.btn-pdf {
    border-color: #9b0000;
}

.dt-buttons button.buttons-pdf i, .btn-pdf i {
    color: #9b0000;
}

.dt-buttons button.buttons-pdf:hover, .btn-pdf:hover {
    background-color: #9b0000;
    color: #fff;
}

.dt-buttons button.buttons-pdf:hover i, .btn-pdf:hover i {
    color: #fff;
}

.dt-buttons button.buttons-print i {
    color: #444;
}

.dt-buttons button.buttons-print:hover {
    background-color: #444;
}

.dt-buttons button.buttons-print:hover i {
    color: #fff;
}

.dt-buttons button.btn i {
    margin: 0;
}

div.dataTables_wrapper {
    position: relative;
    min-height: 200px;
}

.modal-body div.dataTables_wrapper {
    position: relative;
    min-height: 160px;
}

.modal-body div.dataTables_wrapper table tbody tr, div.dataTables_wrapper table.lh tbody tr {
    line-height: 1.5rem;
}

.modal-body div.dataTables_wrapper table tbody td input[type=checkbox], .dataTable:not(#linkedDevices-table) tbody td input[type=checkbox]:not(.xl) {
    position: relative;
    top: 2px;
}

div.dataTables_wrapper div.dataTables_filter {
    /* margin-top: 4px; */
}

div.dataTables_wrapper div.dataTables_filter input {
    margin-right: 0;
}

div.dataTables_wrapper .dataTables_filter label>i {
    position: relative;
    top: 2px;
}

.dataTables_info {
    font-size: 12px;
    font-style: italic;
}

.dataTables_info .select-info>span {
    margin-left: 6px;
}

div.dataTables_wrapper div.dataTables_paginate ul.pagination {
    margin-bottom: 0;
}

.dataTables_paginate .page-item.disabled .page-link {
    color: #c5c5c5;
}

div.dataTables_wrapper div.dataTables_processing {
    width: calc(100% - 1rem);
    top: 0.5rem;
    left: 0.5rem;
    height: calc(100% - 1rem);
    min-height: 170px;
    margin: 0;
    z-index: 4;
    box-shadow: 0 0 16px #a7a7a7;
    background-color: #ffffffaa;
}

.dataTables_processing .divLoader {
    display: flex;
    width: calc(100% - 1rem);
    left: 0.5rem;
    top: 0.5rem;
    background-color: #ffffff99;
}

.dataTable th .filter {
    margin-bottom: 5px;
}

.dataTable th label {
    color: #212529;
}

.dataTable tr .form-check-input {
    margin: 0;
}

.dataTable tr .form-switch {
    padding: 0;
}

/* log datatable */
table.log-table tbody td {
    vertical-align: middle;
}

table.log-table td>i.fa, table.log-table td>i.bi {
    font-size: 16px;
    line-height: 1;
}

table.log-table td>i.fa-check, table.log-table td>i.fa-times {
    position: relative;
    top: -1px;
}

table.log-table td>i.fa-check {
    top: -2px;
}

/* forms */
label {
    color: #707070;
    position: relative;
}

label.col-form-label {
    padding-bottom: 0.1rem;
}

label>input {
    margin: 0 .15rem;
    position: relative;
    top: 1px;
}

input[type=radio]:not(:disabled), input[type=checkbox]:not(:disabled), select:not(:disabled) {
    cursor: pointer;
}

.form-control:disabled, .form-control[readonly] {
    background-color: #e9ecef;
}

.form-check-input {
    margin-top: 0.05em;
}

.form-check .form-check-input {
    margin-top: 1px;
}

.form-check-input.xl {
    width: 1.25em;
    height: 1.25em;
}

.form-control {
    padding-left: 0.6rem;
    padding-right: 0.6rem;
}

.form-control-sm {
    padding-left: 0.3rem;
    padding-right: 0.3rem;
}

.form-select-sm {
    padding-left: 0.3rem;
}

.form-control:valid.manual.is-invalid {
    border-color: #de241d !important;
    padding-right: calc(1.3em + 0.75rem) !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23de241d'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23de241d' stroke='none'/%3e%3c/svg%3e") !important;
}

.form-select:valid.manual.is-invalid, .form-select:invalid[multiple]+div.dropdown, .form-select.is-invalid[multiple]+div.dropdown, .form-check-input:valid.manual.is-invalid {
    border-color: #de241d !important;
}

.form-select:valid.manual.is-invalid:not([multiple]):not([size]), .form-select:valid.manual.is-invalid:not([multiple])[size="1"] {
    padding-right: 4.125rem !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e"), url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23de241d'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23de241d' stroke='none'/%3e%3c/svg%3e") !important;
    background-position: right 0.75rem center, center right 2.25rem !important;
    background-size: 16px 12px, calc(0.65em + 0.375rem) calc(0.65em + 0.375rem) !important;
}

.form-select:invalid[multiple]+div.dropdown, .form-select.is-invalid[multiple]+div.dropdown {
    padding-right: 4.125rem !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23de241d'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23de241d' stroke='none'/%3e%3c/svg%3e") !important;
    background-position: right 0.75rem center, center right 2.25rem !important;
    background-size: 16px 12px, calc(0.65em + 0.375rem) calc(0.65em + 0.375rem) !important;
}

form .invalid-feedback {
    display: block;
}

form.was-validated .invalid-feedback {
    display: none;
}

.feedback {
    color: #6b6b6b;
    font-size: .8rem;
    font-style: italic;
    padding: 2px 0 4px;
}

.form-select {
    padding-right: 1.75rem;
    background-position: right 0.4rem center;
}

.form-select.placeholder-shown {
    color: #c7c7c7;
}

.form-select.placeholder-shown>option {
    color: #212529;
}

.row-options .row-option {
    border-color: #aaa !important;
}

.row-option:not(:last-child) {
    margin-bottom: 0.5rem;
}

.row-option-help {
    font-style: italic;
    padding-top: 30px;
}

#tagFormRows .tag-form-row {
    margin: 0.5rem 0;
}

html:not(.dark-theme) #tagFormRows .tag-form-row {
    background-color: #ffffffcc;
}

#tagFormRows .tag-form-row:not(.row-fixed) {
    cursor: grabbing;
}

#tagFormRows .tag-form-row:first-child {
    margin-top: 0;
}

#tagFormRows .row-fixed .del-row, #tagFormRows .row-fixed .handle {
    display: none;
}

#tagFormRows .ui-state-highlight {
    min-height: 180px;
    border: 1px solid #3c5979;
    background: #b7d6f7;
    border-radius: 6px;
    -webkit-border-radius: 6px;
    -moz-border-radius: 6px;
    -ms-border-radius: 6px;
    -o-border-radius: 6px;
}

.tag-form-row .tfr-btns {
    margin-left: auto;
    text-align: right;
    min-width: 90px;
}

.tfr-btns .handle {
    position: relative;
    top: 2px;
}

.tag-form-row.row-fixed .row-options .btn {
    visibility: hidden;
}

#sensors-group-draggable {
    list-style-type: none;
}

#sensors-group-draggable .ui-state-highlight {
    border: 1px solid #3c5979;
    background: #b7d6f7;
    border-radius: 6px;
    height: 100%;
    width: 100%;
    -webkit-border-radius: 6px;
    -moz-border-radius: 6px;
    -ms-border-radius: 6px;
    -o-border-radius: 6px;
}

#sensors-group-draggable li.list-group-item {
    cursor: grabbing;
}

.clearable {
    position: relative;
}

.clearable .clear {
    position: absolute;
    top: 1px;
    right: 1px;
    background-color: #f8fafc;
    color: #aaa;
    height: calc(100% - 2px);
    padding: 0.25rem 0.3rem;
    border-radius: 0.2rem;
    -webkit-border-radius: 0.2rem;
    -moz-border-radius: 0.2rem;
    -ms-border-radius: 0.2rem;
    -o-border-radius: 0.2rem;
}

.clearable .clear:hover {
    color: #000;
}

#startTimes input[type=time] {
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
}

#deviceCard input.ui-spinner-input {
    width: 20px;
}

.ui-spinner-button {
    width: 1.5em;
}

div.weekDays>div {
    min-width: 22px;
}

#cycleDurations div.cycle {
    min-height: 81px;
}

#rspModal .select2-container .select2-selection {
    font-weight: 500;
}

#rspModal .select2-container .select2-selection__placeholder {
    font-weight: normal;
}

#rspModal .select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background-color: #bbb;
}

#dev-img-container{
    width: 100%;
}

#dev-img-container.h-fit-viewport{
    height: calc(100vh - 180px);
}

#dev-img-container img{
    height: auto;
    cursor: zoom-out;
}

#dev-img-container.h-fit-viewport img{
    max-height: 100%;
    cursor: zoom-in;
}

#dev-img {
    transform-origin: top left;
    /* IE 10+, Firefox, etc. */
    -webkit-transform-origin: top left;
    /* Chrome */
    -ms-transform-origin: top left;
    /* IE 9 */
}

#dev-img.rotate90, #dev-img.rotate-270 {
    padding: 10% 0;
    transform: rotate(90deg) translateY(-100%);
    -webkit-transform: rotate(90deg) translateY(-100%);
    -ms-transform: rotate(90deg) translateY(-100%);
}

#dev-img.rotate180, #dev-img.rotate-180 {
    transform: rotate(180deg) translate(-100%, -100%);
    -webkit-transform: rotate(180deg) translate(-100%, -100%);
    -ms-transform: rotate(180deg) translateX(-100%, -100%);
}

#dev-img.rotate270, #dev-img.rotate-90 {
    padding: 10% 0;
    transform: rotate(270deg) translateX(-100%);
    -webkit-transform: rotate(270deg) translateX(-100%);
    -ms-transform: rotate(270deg) translateX(-100%);
}

/* daterangepicker */
.calendar-table th {
    color: #010101;
}

.calendar-table td.available {
    color: #121212;
    font-weight: 500;
}

.daterangepicker .calendar-table td.disabled, .datepicker .calendar-table td.disabled {
    color: #d5d5d5;
    font-weight: normal;
}

/* select 2 */
.select2-container {
    width: auto !important;
    min-width: 193px;
    max-width: 100% !important;
}

.form-select.size-md+.select2.select2-container {
    max-width: 450px !important;
    min-width: 250px;
}

.select2-container ::-webkit-scrollbar-thumb {
    border: none;
}

.select2-container--default .select2-selection--single {
    /* height: 32px; */
    height: 32.7px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 30px;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    background-color: #f8fafc;
    border-radius: 0.25rem;
    -webkit-border-radius: 0.25rem;
    -moz-border-radius: 0.25rem;
    -ms-border-radius: 0.25rem;
    -o-border-radius: 0.25rem;
}

.select2-selection--multiple:before {
    content: "";
    position: absolute;
    right: 7px;
    top: 42%;
    border-top: 5px solid #888;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
}

.select2-selection__choice__remove {
    display: none !important;
}

.sensors+.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #153354;
    color: #fff;
    border: 0;
    border-radius: 4px;
    display: inline-block;
    margin-left: 3px;
    margin-top: 5px;
    padding: 0;
    padding-left: 0px;
    position: relative;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: bottom;
    white-space: nowrap;
    line-height: 1.2rem;
    font-size: 13px;
    font-weight: 100;
}

.sensors+.select2-container--default .select2-selection--multiple .select2-selection__choice .select2-selection__choice__display {
    cursor: default;
    padding-left: 3px;
    padding-right: 3px;
}

table.dataTable td .select2-container .select2-search--inline .select2-search__field{
    margin-top: 2px;
    height: 21px;
}

/* BS tooltip */
.bs-tooltip-end .tooltip-arrow, .bs-tooltip-auto[data-popper-placement^=right] .tooltip-arrow,
.bs-tooltip-start .tooltip-arrow, .bs-tooltip-auto[data-popper-placement^=left] .tooltip-arrow {
    /* transform: translate(0px, 10px) !important;
    -webkit-transform: translate(0px, 10px) !important;
    -moz-transform: translate(0px, 10px) !important;
    -ms-transform: translate(0px, 10px) !important;
    -o-transform: translate(0px, 10px) !important; */
}

.tooltip-inner {
    max-width: 320px;
}

.tooltip {
    --bs-tooltip-zindex: 9999999 !important;
}

.tooltip-introjs {
    --bs-tooltip-zindex: 9999999 !important;
}


/* device charts */
.dev-chart {
    height: 35vh;
    min-height: 280px;
    width: 100%;
}

.gantt-chart {
    min-height: 100px;
    width: 100%;
}

/* RF tracking tools */
.tracking-chart {
    height: 40vh;
    min-height: 300px;
    max-height: 700px;
    width: 100%;
}
.text-free-band{
    color: #1faff7 !important;
}
.text-foreign{
    color: #a01fdf !important;
}
.text-correct{
    color: #db630b !important;
}
.text-undetermined{
    color: #969696 !important;
}

/* BS popover */

.popover-danger {
    --bs-popover-border-color: var(--bs-danger);
    --bs-popover-header-bg: var(--bs-danger);
    --bs-popover-header-color: var(--bs-white);
}

.popover-primary {
    --bs-popover-border-color: var(--bs-primary);
    --bs-popover-header-bg: var(--bs-primary);
    --bs-popover-header-color: var(--bs-white);
}

/* 3D slider */
.slider-3D {
    position: relative;
    width: 500px;
    height: 60px;
    margin: 2rem auto 1.4rem;
    -webkit-transform-style: preserve-3d;
    -moz-transform-style: preserve-3d;
    -ms-transform-style: preserve-3d;
    -o-transform-style: preserve-3d;
    transform-style: preserve-3d;
    -webkit-perspective: 400px;
    -moz-perspective: 400px;
    -ms-perspective: 400px;
    -o-perspective: 400px;
    perspective: 400px;
}

.slider-3D .a, .slider-3D .b, .slider-3D .c, .slider-3D .d {
    position: absolute;
    width: 50%;
    height: 100%;
    left: 0px;
    z-index: 22;
}

.slider-3D .a:before, .slider-3D .b:before, .slider-3D .c:before, .slider-3D .d:before, .slider-3D .a:after, .slider-3D .b:after {
    content: '';
    position: absolute;
    top: 0px;
    left: 0px;
    width: 500px;
    height: 60px;
}

.slider-3D .a:before, .slider-3D .b:before, .slider-3D .c:before, .slider-3D .d:before {
    z-index: 11;
}

.slider-3D .a:after, .slider-3D .b:after {
    z-index: 33;
}

.slider-3D .b {
    top: 0px;
    -webkit-transform: rotateX(75deg) translateY(-60px);
    -moz-transform: rotateX(75deg) translateY(-60px);
    -o-transform: rotateX(75deg) translateY(-60px);
    -ms-transform: rotateX(75deg) translateY(-60px);
    transform: rotateX(75deg) translateY(-60px);
    -webkit-transform-origin: 0% 0%;
    -moz-transform-origin: 0% 0%;
    -o-transform-origin: 0% 0%;
    -ms-transform-origin: 0% 0%;
    transform-origin: 0% 0%;
}

.slider-3D .c {
    top: 0px;
    -webkit-transform: rotateX(75deg);
    -moz-transform: rotateX(75deg);
    -o-transform: rotateX(75deg);
    -ms-transform: rotateX(75deg);
    transform: rotateX(75deg);
    -webkit-transform-origin: 100% 100%;
    -moz-transform-origin: 100% 100%;
    -o-transform-origin: 100% 100%;
    -ms-transform-origin: 100% 100%;
    transform-origin: 100% 100%;
}

.slider-3D .d {
    -webkit-transform: translateZ(-60px) translateY(-15px);
    -moz-transform: translateZ(-60px) translateY(-15px);
    -o-transform: translateZ(-60px) translateY(-15px);
    -ms-transform: translateZ(-60px) translateY(-15px);
    transform: translateZ(-60px) translateY(-15px);
}

/* colors */
.slider-3D .a, .slider-3D .b {
    background-image: -webkit-gradient(linear, left top, left bottom, from(rgba(72, 136, 219, 0.8)), to(rgba(72, 136, 219, 0.8)));
    background-image: -webkit-linear-gradient(top, rgba(72, 136, 219, 0.8), rgba(72, 136, 219, 0.8));
    background-image: -moz-linear-gradient(top, rgba(72, 136, 219, 0.8), rgba(72, 136, 219, 0.8));
    background-image: -o-linear-gradient(top, rgba(72, 136, 219, 0.8), rgba(72, 136, 219, 0.8));
    background-image: linear-gradient(to bottom, rgba(72, 136, 219, 0.8), rgba(72, 136, 219, 0.8));
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-position: 0% 0%;
}

.slider-3D .c, .slider-3D .d {
    background-image: -webkit-gradient(linear, left top, left bottom, from(rgba(72, 136, 219, 0.5)), to(rgba(72, 136, 219, 0.5)));
    background-image: -webkit-linear-gradient(top, rgba(72, 136, 219, 0.5), rgba(72, 136, 219, 0.5));
    background-image: -moz-linear-gradient(top, rgba(72, 136, 219, 0.5), rgba(72, 136, 219, 0.5));
    background-image: -o-linear-gradient(top, rgba(72, 136, 219, 0.5), rgba(72, 136, 219, 0.5));
    background-image: linear-gradient(to bottom, rgba(72, 136, 219, 0.5), rgba(72, 136, 219, 0.5));
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-position: 0% 0%;
}

.slider-3D .c:before {
    -webkit-box-shadow: 0px 30px 20px -20px rgba(0, 0, 0, 0.4),
        0px 40px 15px -15px rgba(0, 0, 0, 0.25);
    -moz-box-shadow: 0px 30px 20px -20px rgba(0, 0, 0, 0.4),
        0px 40px 15px -15px rgba(0, 0, 0, 0.25);
    box-shadow: 0px 30px 20px -20px rgba(0, 0, 0, 0.4),
        0px 40px 15px -15px rgba(0, 0, 0, 0.25);
}

.slider-3D .a:before, .slider-3D .b:before, .slider-3D .c:before, .slider-3D .d:before {
    background-color: rgba(0, 0, 0, 0.05);
}

.slider-3D .a:after {
    background-image: -webkit-gradient(linear, left top, left bottom, from(rgba(0, 0, 0, 0.07)), to(rgba(0, 0, 0, 0)));
    background-image: -webkit-linear-gradient(top, rgba(0, 0, 0, 0.07), rgba(0, 0, 0, 0));
    background-image: -moz-linear-gradient(top, rgba(0, 0, 0, 0.07), rgba(0, 0, 0, 0));
    background-image: -o-linear-gradient(top, rgba(0, 0, 0, 0.07), rgba(0, 0, 0, 0));
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.07), rgba(0, 0, 0, 0));
}

.slider-3D .b:after {
    background-image: -webkit-gradient(linear, left top, left bottom, from(rgba(255, 255, 255, 0.1)), to(rgba(255, 255, 255, 0.25)));
    background-image: -webkit-linear-gradient(top, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.25));
    background-image: -moz-linear-gradient(top, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.25));
    background-image: -o-linear-gradient(top, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.25));
    background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.25));
}



/* jQuery stuff */
.slider-3D .range {
    position: absolute;
    width: 94%;
    left: 3%;
    top: 27px;
    margin: 0px;
    z-index: 99;
}

.slider-3D .ui-slider {
    height: 5px;
    border: none;
    background: rgba(0, 0, 0, 0.1);
    -webkit-box-shadow: 0px 2px 2px rgba(255, 255, 255, 0.25),
        inset 0px 1px 3px rgba(0, 0, 0, 0.3);
    -moz-box-shadow: 0px 2px 2px rgba(255, 255, 255, 0.25),
        inset 0px 1px 3px rgba(0, 0, 0, 0.3);
    box-shadow: 0px 2px 2px rgba(255, 255, 255, 0.25),
        inset 0px 1px 3px rgba(0, 0, 0, 0.3);
}

.slider-3D .ui-slider:before, .slider-3D .ui-slider:after {
    content: 'IIIIIIIIIII';
    position: absolute;
    left: 24px;
    width: 100%;
    font-family: sans-serif;
    font-size: 1.2rem;
    font-weight: 300;
    color: rgba(0, 0, 0, 0.3);
    letter-spacing: 36px;
    text-shadow: 1px 1px 0px rgb(255 255 255 / 20%);
    top: 4px;
}

.slider-3D .ui-slider:before {
    top: -1.4rem;
}

.slider-3D .ui-slider:after {
    bottom: -1.4rem;
}

.slider-3D .ui-slider-range {
    background: transparent;
}

.slider-3D .ui-slider .ui-slider-handle {
    top: -8px;
    width: auto;
    height: 20px;
    margin-left: -15px;
    padding-left: 4px;
    border: none;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 2px;
    text-align: center;
    font-family: sans-serif;
    font-size: 1.2rem;
    line-height: 20px;
    color: rgba(0, 0, 0, 0.5);
    text-decoration: none;
    letter-spacing: 3px;
    cursor: pointer;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 1);
    -webkit-box-shadow: 1px 1px 8px rgba(0, 0, 0, 0.3);
    -moz-box-shadow: 1px 1px 8px rgba(0, 0, 0, 0.3);
    box-shadow: 1px 1px 8px rgba(0, 0, 0, 0.3);
}

.slider-3D .ui-slider .ui-slider-handle:focus {
    outline: none;
}

/* color-picker */
i.color-display {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    text-shadow: #000 0 0 3px;
    line-height: 1;
    font-size: 20px;
}

.color-picker-dropdown {
    width: 400px;
    max-width: 80vw;
}

.color-picker>div {
    display: inline-block;
    width: 25px;
    height: 25px;
    margin: 0 5px 5px;
}

.color-picker label {
    width: 100%;
    height: 100%;
    display: inline-block;
    margin: 0 1em 6px 0;
    padding: 0;
    background-color: transparent;
    border-radius: 50%;
    text-align: center;
    border: 1px solid #ced4da;
    color: #FFF;
    line-height: 25px;
    cursor: pointer;
    transition: all .3s;
    -webkit-transition: all .3s;
    -moz-transition: all .3s;
    -ms-transition: all .3s;
    -o-transition: all .3s;
}

.color-picker label:hover {
    scale: 0.8;
}

.color-picker label input {
    display: none;
}

.color-picker label i {
    visibility: hidden;
}

.color-picker label.selected {
    border: 1px solid #ced4da;
}

.color-picker label input:checked+i {
    visibility: visible;
    line-height: 1;
    font-size: 18px;
    text-shadow: #000 1px 0px 5px;
    vertical-align: text-bottom;
}

.text-shadow-none {
    text-shadow:none !important;
}

/* wizard */
ul.done-disabled>li>a.done {
    cursor: not-allowed !important;
}

.sw .toolbar button.disabled, .sw .toolbar button:disabled {
    visibility: hidden;
}

/* mass jobs modal */
.mj-label {
    text-wrap: nowrap;
    text-overflow: ellipsis;
    max-width: 80%;
    overflow: hidden;
}

.mj-progress:hover>div {
    --bs-bg-opacity: 1 !important;
}

.mj-progress>div {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    /* flex-fill */
    height: 18px;
    line-height: 18px;
    color: #FFF;
    font-weight: 500;
    font-size: 13px;
    text-align: center;
    min-width: 30px;
}

.mj-progress>div:first-child {
    border-bottom-left-radius: var(--bs-border-radius-sm) !important;
    border-top-left-radius: var(--bs-border-radius-sm) !important;
}

.mj-progress>div:last-child {
    border-bottom-right-radius: var(--bs-border-radius-sm) !important;
    border-top-right-radius: var(--bs-border-radius-sm) !important;
}

.mj-details .d-table {
    font-size: 13px;
    margin-left: 0.25rem;
    margin-right: 0.25rem;
    width: calc(100% - 0.5rem);
}

html:not(.dark-theme) .mj-details .d-table-row:nth-child(odd) {
    background-color: #f9f9f9;
}

.mj-details .d-table-row:not(:last-child) div[class*="table-cell"] {
    border-bottom: 1px solid #dee2e6;
}

.mj-details .d-table-row div[class*="table-cell"]:not(.ellipsis) {
    width: 1%;
    white-space: nowrap;
}

.mj-details .d-table-row div[class*="table-cell"]:first-child {
    padding-left: 0.5rem !important;
}

.mj-details .d-table-row div[class*="table-cell"]:last-child {
    padding-right: 0.5rem !important;
}

.mj-details .d-table-row div[class*="table-cell"].ellipsis {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 150px;
}

.circular-progress-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: radial-gradient(closest-side, white 79%, transparent 85% 100%), conic-gradient(#39a359 80%, #d3d3d3 0);
    font-size: 11px;
    padding-top: 2px;
    font-weight: bold;
}

.warning-highlight {
    -webkit-box-shadow: 0px 0px 0px 5px #e7a01caa;
    box-shadow: 0px 0px 0px 5px #e7a01caa;
}

.option>.subtle-text {
    color: #6c757d;
}

/* FontAwesome */
.fa-beat-fade {
    --fa-animation-duration: 1.6s;
    --fa-fade-opacity: 0.6;
}

/* noUiSlider */
.noUi-pips {
    color: #707070 !important;
}

.noUi-value-sub {
    color: #a9a8a8 !important;
    font-size: 10px;
}

.noUi-target.noUi-horizontal {
    height: 5px;
    border: none !important;
    /*box-shadow: none;*/

}

/* handler shape */
.noUi-target.noUi-horizontal .noUi-handle {
    width: 24px;
    height: 14px;
    right: -12px;
    top: -5px;
    border-radius: 12px;
    border: none;
    background-color: #153354;
    box-shadow: inset 0 0 1px #FFF, inset 0 1px 1px #EBEBEB, 0 3px 6px -3px #BBB;
}

.noUi-target.noUi-horizontal .noUi-handle:hover {
    background-color: #45668d;
}

.noUi-target.noUi-horizontal .noUi-handle:before, .noUi-handle:after {
    display: none;
}

.noUi-pips-horizontal .noUi-value-horizontal {
    margin-top: 5px !important;
}

.noUi-pips-horizontal .noUi-value-large {
    top: 25% !important;
}

.noUi-pips-horizontal .noUi-value-sub {
    top: 15% !important;
}


.noUi-target.noUi-horizontal .noUi-handle::before {
    display: none;
}

.noUi-target.noUi-horizontal .noUi-handle::after {
    display: none;
}

.noUi-target.noUi-vertical {
    height: 150px;
    width: 15px;
}

.noUi-target.noUi-vertical .noUi-handle {
    width: 24px;
    height: 24px;
    margin-bottom: 6px;
    border-radius: 50%;
    outline: none
}

.noUi-target.noUi-vertical .noUi-handle::before {
    display: none;
}

.noUi-target.noUi-vertical .noUi-handle::after {
    display: none;
}


.noUi-target.m-nouislider.m-nouislider--connect-brand .noUi-connect {
    background: #716aca;
}

.noUi-target.m-nouislider.m-nouislider--handle-brand .noUi-handle {
    border: 0;
    background: #716aca;
    -webkit-box-shadow: 0 3px 6px -3px #716aca;
    box-shadow: 0 3px 6px -3px #716aca;
}

.noUi-target.m-nouislider.m-nouislider--connect-metal .noUi-connect {
    background: #c4c5d6;
}

.noUi-target.m-nouislider.m-nouislider--handle-metal .noUi-handle {
    border: 0;
    background: #c4c5d6;
    -webkit-box-shadow: 0 3px 6px -3px #c4c5d6;
    box-shadow: 0 3px 6px -3px #c4c5d6;
}

.noUi-target.m-nouislider.m-nouislider--connect-light .noUi-connect {
    background: #fff;
}

.noUi-target.m-nouislider.m-nouislider--handle-light .noUi-handle {
    border: 0;
    background: #fff;
    -webkit-box-shadow: 0 3px 6px -3px #fff;
    box-shadow: 0 3px 6px -3px #fff;
}

.noUi-target.m-nouislider.m-nouislider--connect-accent .noUi-connect {
    background: #00c5dc;
}

.noUi-target.m-nouislider.m-nouislider--handle-accent .noUi-handle {
    border: 0;
    background: #00c5dc;
    -webkit-box-shadow: 0 3px 6px -3px #00c5dc;
    box-shadow: 0 3px 6px -3px #00c5dc;
}

.noUi-target.m-nouislider.m-nouislider--connect-focus .noUi-connect {
    background: #9816f4;
}

.noUi-target.m-nouislider.m-nouislider--handle-focus .noUi-handle {
    border: 0;
    background: #9816f4;
    -webkit-box-shadow: 0 3px 6px -3px #9816f4;
    box-shadow: 0 3px 6px -3px #9816f4;
}

.noUi-target.m-nouislider.m-nouislider--connect-primary .noUi-connect {
    background: #5867dd;
}

.noUi-target.m-nouislider.m-nouislider--handle-primary .noUi-handle {
    border: 0;
    background: #5867dd;
    -webkit-box-shadow: 0 3px 6px -3px #5867dd;
    box-shadow: 0 3px 6px -3px #5867dd;
}

.noUi-target.m-nouislider.m-nouislider--connect-success .noUi-connect {
    background: #34bfa3;
}

.noUi-target.m-nouislider.m-nouislider--handle-success .noUi-handle {
    border: 0;
    background: #34bfa3;
    -webkit-box-shadow: 0 3px 6px -3px #34bfa3;
    box-shadow: 0 3px 6px -3px #34bfa3;
}

.noUi-target.m-nouislider.m-nouislider--connect-info .noUi-connect {
    background: #36a3f7;
}

.noUi-target.m-nouislider.m-nouislider--handle-info .noUi-handle {
    border: 0;
    background: #36a3f7;
    -webkit-box-shadow: 0 3px 6px -3px #36a3f7;
    box-shadow: 0 3px 6px -3px #36a3f7;
}

.noUi-target.m-nouislider.m-nouislider--connect-warning .noUi-connect {
    background: #ffb822;
}

.noUi-target.m-nouislider.m-nouislider--handle-warning .noUi-handle {
    border: 0;
    background: #ffb822;
    -webkit-box-shadow: 0 3px 6px -3px #ffb822;
    box-shadow: 0 3px 6px -3px #ffb822;
}

.noUi-target.m-nouislider.m-nouislider--connect-danger .noUi-connect {
    background: #f4516c;
}

.noUi-target.m-nouislider.m-nouislider--handle-danger .noUi-handle {
    border: 0;
    background: #f4516c;
    -webkit-box-shadow: 0 3px 6px -3px #f4516c;
    box-shadow: 0 3px 6px -3px #f4516c;
}

.noUi-target.m-nouislider.m-nouislider--handle-grey .noUi-handle {
    border: 0;
    background: #ededed;
    -webkit-box-shadow: 0 3px 6px -3px #ededed;
    box-shadow: 0 3px 6px -3px #555;
}

.noUi-target {
    border: 1px solid #ebedf2 !important;
    background: #fafbfc;
    -webkit-box-shadow: none;
    box-shadow: none;
}

.noUi-target .noUi-connect {
    background: #716aca;
}

.noUi-target .noUi-handle {
    border: 1px solid #dfe2ea;
    -webkit-box-shadow: 0 3px 6px -3px #9ea7c0;
    box-shadow: 0 3px 6px -3px #9ea7c0;
}


/* bootstrap accordion */
.accordion-button:not(.collapsed) {
    /*color: #0c63e4;*/
    /* background-color: #cfe2ff; */
    background-color: --bs-body-bg;
}

.accordion-body {
    /*color: #0c63e4;*/
    /* background-color: #ffffff; */
    background-color: --bs-body-bg;
}

/* modal general sizes */
.modal-xxl {
    max-width: 90vw !important;
}

.modal-xxxl {
    max-width: 95vw !important;
}

/* media queries*/

/* smaller than xxs */
@media (max-width: 360px) {

    .home-piechart {
        height: 200px;
    }

    .device-piechart {
        height: 240px;
    }

    .btn-group.devices .btn {
        font-size: .7rem;
        padding: .2rem .1rem;
    }

    .btn-group.devices .btn:hover {
        color: #0d6efd;
    }

    .btn-group.devices .btn>span.badge {
        font-size: 11px;
        padding: .2rem;
    }
}

/* smaller than sm */
@media (max-width: 575px) {
    body {
        font-size: 12px;
        letter-spacing: -0.5px;
    }

    h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6 {
        letter-spacing: -1px;
    }

    hr {
        margin: 0.6rem 0;
    }

    .mb-3 {
        margin-bottom: 0.5rem !important;
    }

    .mb-4 {
        margin-bottom: 1rem !important;
    }

    .p-2 {
        padding: 0.4rem !important;
    }

    .p-3 {
        padding: 0.7rem !important;
    }

    .lh-sm-1 {
        line-height: 1 !important;
    }

    .page-content {
        padding: 0.5rem;
    }

    .page-breadcrumb {
        display: block;
        margin-bottom: 0.5rem;
    }

    .page-breadcrumb .breadcrumb-title, .page-breadcrumb>nav {
        width: 100%;
        padding-right: 0;
        padding-left: 0;
    }

    .breadcrumb-title {
        border-right: none;
        padding-bottom: 0.1rem;
    }

    .card .card-header, .card .card-body, .card .card-footer, .modal .modal-header, .modal .modal-body, .modal .modal-footer {
        padding: 0.5rem;
    }

    div.help {
        font-size: 0.9em;
    }

    .lobibox-notify-wrapper {
        width: 80%;
    }

    .lobibox-notify-wrapper>.lobibox-notify {
        width: 90% !important;
    }

    .lobibox-notify-icon-wrapper {
        display: none;
    }

    .lobibox-notify .lobibox-notify-body {
        margin-left: 10px
    }

    .lobibox-notify .lobibox-notify-title {
        font-size: 18px;
    }

    .lobibox-notify {
        font-size: 13px;
    }

    .home-piechart {
        height: 240px;
    }

    .device-piechart {
        height: 280px;
    }

    .btn-group.devices .btn {
        font-size: .8rem;
        padding: .2rem .1rem;
    }

    .device-img-col {
        border: none;
    }

    .device-img {
        max-height: 220px;
    }

    .devIcon i {
        font-size: 90px;
    }

    div.dataTables_wrapper .dataTables_filter label>i {
        display: none;
    }

    footer.page-footer {
        font-size: 11px;
        padding: 2px 6px 0;
    }

    .back-to-top {
        width: 30px;
        height: 30px;
        line-height: 30px;
        font-size: 20px;
        bottom: 6px;
    }

    .slider-3D {
        width: 90vw;
    }

    .slider-3D .a:before, .slider-3D .b:before, .slider-3D .c:before, .slider-3D .d:before, .slider-3D .a:after, .slider-3D .b:after {
        width: 90vw
    }

    .slider-3D .ui-slider:before, .slider-3D .ui-slider:after {
        content: '';
    }

    .form-control.size-xxs {
        max-width: 60px !important;
    }

    .form-control.size-xs {
        max-width: 80px !important;
        padding-left: 5px;
    }

    .form-control.size-xs:not(.text-end) {
        padding-right: 5px;
    }

    #deviceCard.sticky-header .headerWidgets {
        display: none;
    }

    .modal-title {
        line-height: calc(var(--bs-modal-title-line-height) * 0.7);
    }

    .modal-title {
        font-size: medium;
    }
}

/* smaller than md */
@media (max-width: 767px) {

    body {
        font-size: 13px;
        letter-spacing: -0.3px;
    }

    h4, .h4 {
        font-size: calc(1.20rem + 0.12vw);
    }

    .row-option-help {
        font-style: italic;
        padding-top: 4px;
    }

    #deviceCard .widgets-icons-2 {
        width: 36px !important;
        height: 36px !important;
        font-size: 12px !important;
    }

    #deviceCard .widgets-icons-2 .h1 {
        font-size: 1.4rem !important;
    }

    #deviceCard .widgets-icons-2 .h2 {
        font-size: 1.2rem !important;
    }

    #deviceCard .widgets-icons-2 .h4 {
        font-size: 1.02rem !important;
    }

    #deviceCard .widgets-icons-2 .fs-3 {
        font-size: 1.2rem !important;
    }

    #deviceCard .widgets-icons-2 .fs-6 {
        font-size: 0.7rem !important;
    }

    .dropdown-xxl .dropdown-menu {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 60vw !important;
    }

    .badge-circle {
        width: 25px;
        min-width: 25px;
        height: 25px;
        line-height: 25px;
        padding: 0 0.1rem;
        font-size: 14px;
    }

}

/* sm and larger */
@media (min-width: 576px) {

    .gap-sm-1 {
        gap: 0.25rem !important;
    }

    /* datatables search input */
    div.dataTables_wrapper div.dataTables_filter {
        text-align: right;
    }
}

/* md and larger */
@media (min-width: 768px) {
    body {
        font-size: 13px;
    }

    .topbar .navbar {
        padding-left: 0;
        padding-right: 20px;
    }

    footer.page-footer>.row>div:first-child {
        text-align: left;
    }

    footer.page-footer>.row>div:last-child {
        text-align: right;
    }

    div.dataTables_wrapper div.dataTables_length, div.dataTables_wrapper div.dataTables_info {
        display: inline-block;
    }

    div.dataTables_wrapper div.dataTables_length {
        margin-right: 0.3rem;
    }

    div.dataTables_wrapper div.dataTables_info {
        padding-top: 0.85em;
    }

    .modal-xl {
        max-width: 720px;
    }

    .gap-md-2 {
        gap: 0.5rem !important;
    }

    .wb-header-slider {
        min-width: 200px;
    }
}

/* lg and larger */
@media (min-width: 992px) {
    body {
        font-size: 14px;
    }

    .client-col {
        margin-bottom: 0;
    }

    .client-col .card-body {
        max-height: 240px;
        display: flex;
    }

    .client-col .card-body .client-img {
        max-height: calc(100%);
    }

    .home-piechart {
        height: 220px;
    }

    .device-piechart {
        height: 260px;
    }

    .modal-xl {
        max-width: 940px;
    }

    .wb-header-slider {
        min-width: 250px;
    }

    table.dataTable>thead>tr>th {
        white-space: nowrap;
        /* prevent multi-line headers */
    }
}

/* xl and larger */
@media (min-width: 1200px) {
    .home-piechart {
        height: 210px;
    }

    .device-piechart {
        height: 250px;
    }

    .modal-xl {
        max-width: 1150px;
    }

    .infraserver-info{
        display: flex !important;
    }
}

/* xxl and larger */
@media (min-width: 1400px) {
    .modal-xl {
        max-width: 1350px;
    }
}

/* custom */
@media only screen and (min-device-width: 1400px) and (max-device-width: 1600px) {
    .client-btns .btn {
        padding-left: .4rem;
        padding-right: .4rem;
    }
}

/* print */
@media print {
    h1 {
        font-size: 20px;
        text-align: center;
        padding-top: 10px;
    }

    table.dataTable.span-printable th u, table.dataTable.span-printable td u {
        display: inline-block;
    }

    table.dataTable th input, table.dataTable th select {
        display: none;
    }

    table.dataTable th i, table.dataTable td i {
        display: none;
    }
}
