@import "layout.css";
@import "devextreme-mods.css";
@import "SignalStrength/signalStrength.css";
@import "generic.css";

/**
    All the pages have a fixed top menu bar so sit below that 
*/
html {
    height: 100%;
}

body {
    height: 100%;
    padding-top: 4rem;
}

/**
    Ellab Colours
*/
.ems-dark {
    background-color: rgb(31, 104, 152);
}

.ems-light {
    background-color: rgb(15, 156, 216);
}

.ems-dark-btn {
    color: white;
    background-color: rgba(31, 104, 152, 1);
    border-color: rgb(31, 104, 152);
}

    .ems-dark-btn:hover {
        color: white;
        background-color: rgba(31, 104, 152, 0.8);
    }

/**
    Branding
*/

.emsuite-navbar {
    position: relative;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: justify;
    justify-content: space-between;
    padding: 0.5rem 1rem;
}

a.navbar-brand {
    display: inline-block;
    background-repeat: no-repeat;
    background-position: left;
    background-size: contain;
    padding: 0 0 0.2rem 3.6rem;
}

.brand-white {
    background-image: url('../images/Logo.svg');
    height: 100%;
    width: 150px;
}

.brand-yellow {
    background-image: url('../images/Logo_yellow.svg');
    height: 100%;
    width: 150px;
}

.brand-red {
    background-image: url('../images/ellab-small-red.png');
}

/**
    emsuiteToast
*/
.dx-toast-info {
    background-color: rgb(31, 104, 152) !important;
    color: white
}

.dx-toast-error {
    background-color: rgb(255, 0, 0) !important;
}

/**
    Sites for menu testing only
*/
.ems-site {
    position: relative;
    border: 1px solid gray;
    width: 240px;
    height: 240px;
    color: gray;
    padding: 10px;
}

    .ems-site .image-container {
        width: 100px;
        height: 100px;
        overflow: hidden;
        border-radius: 50%;
    }

    .ems-site img {
        width: 200px;
        height: auto;
        margin-left: -100px;
        margin-top: 0px;
    }

.ems-buttons button {
    padding: 0.1rem;
}

.ems-login {
    min-width: 300px;
    max-width: 400px;
}

/**
    End
*/

/*CARD*/

.card {
    width: 275px;
    height: 325px;
    font-size: 12px !important;
}

.site-name {
    font-size: 16px !important;
    font-weight: bold !important;
    white-space: nowrap;
}

.zone-dropdown {
    width: 180px;
    font-size: 12px;
    height: 30px;
}

.location-icon {
    width: 14px;
    height: 14px;
    padding-top: 1px;
}

.location-name {
    color: #00afdb;
    font-size: 12px;
    padding-top: 1px;
}

.site-img-container {
    text-align: center;
    padding-left: 25px;
    width: 128px;
    height: 128px;
    position: relative;
}

.site-img {
    width: 180px !important;
    height: 180px !important;
    max-height: 180px !important;
    border-radius: 50%;
    border: 3px solid;
    border-color: gray;
    object-fit: cover;
}


.alarm-status-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

    .alarm-status-container button {
        margin-bottom: 5px;
        border-radius: 10px !important;
    }

.alarm-status-item {
    position: relative;
    padding-top: 15px;
    margin-top: 5px;
    display: inline-block;
}

.alarm-status-badge {
    position: absolute;
    left: 25px;
    top: 10px;
    text-align: center;
    padding: 5px 5px;
    font-size: 12px;
}

.button-icon {
    width: 30px;
    height: 30px;
}

.alarm-item {
    display: inline-block;
    vertical-align: top;
    margin: 5px;
}

.zone-view .dx-treeview-node {
    padding-left: 0px !important;
}

.currently-active-item {
    font-weight: bold;
}

.widget-container {
    display: flex;
}

    .widget-container > * {
        padding: 10px;
    }

.tables {
    display: flex;
}

.column:first-child {
    width: 50%;
    padding-right: 15px;
}

.column:last-child {
    width: 50%;
    padding-left: 15px;
}

.left {
    float: left;
    width: 20%;
    min-height: 720px;
    max-height: 1000px;
    background: #ffffff;
    margin-left: 25px;
    margin-top: 5px;
    border: #ccc 1px solid;
    font-size: 12px;
    display: block;
    overflow: auto;
    border-radius: 5px 0px 0px 5px;
}

.right {
    overflow: hidden;
    width: 77%;
    min-height: 720px;
    float: left;
    margin: 5px 0px;
    border: #ccc 1px solid;
    border-left: 0px;
    border-radius: 0px 5px 5px 0px;
}

.tab-content {
    margin-top: 25px;
}

.left #zoneList .dx-list-group-header {
    color: #f05b41;
    font-weight: normal;
    font-size: 18px;
}

.left #zoneList .list-item {
    float: left;
}

    .left #zoneList .list-item .name {
        font-weight: bold;
    }

.right .header {
    height: 70px;
}

#gridContainer {
    max-width: 1000px !important;
}

#treeview {
    display: inline-block;
    width: 30%;
    max-height: 1000px !important;
}

.treePanel {
    float: left;
    margin: 5px;
    border: #ccc 1px solid;
    width: 30%;
    background: #ffffff;
    font-size: 12px;
    min-height: 720px;
    max-height: 1000px;
    display: block;
    overflow: auto;
}

.gridContainerPanel {
    float: left;
    margin: 5px 0px 2px 2px;
    border: #ccc 1px solid;
    width: 65%;
    min-height: 720px;
}

#dataControls {
    display: inline-block;
}

    #dataControls.disabledDiv {
        pointer-events: none;
        /* for "disabled" effect */
        opacity: 0.5;
        background-color: #ffffff;
    }


.form-container {
    padding: 20px;
}

.myEmsuiteDashboardSelect {
    margin-left: 50px;
}

.myEmsuiteDashboardBtn {
    margin-left: 120px;
    color: #ffffffcc;
}

    .myEmsuiteDashboardBtn:hover {
        color: #ffffff;
        text-decoration: none;
    }

/*Loading overlay for when the user selectes a dashboard from the dropdown*/
#loadingOverlay {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255,255,255,0.8);
    z-index: 2000;
    cursor: pointer;
    display: none;
}

#loadingOverlayContent {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2001;
    padding: 32px;
    transform: translate(-50%,-50%);
    -ms-transform: translate(-50%,-50%);
}

/*Special version form calibration*/
#loadingOverlayCalibration {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255,255,255,0.8);
    z-index: 2000;
    cursor: pointer;
    display: block;
}

#loadingOverlayContentCalibration {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2001;
    padding: 32px;
    transform: translate(-50%,-50%);
    -ms-transform: translate(-50%,-50%);
}

/*-----------------------------------------------------------------------------------------------*/

.loader {
    position: relative;
    margin: 0 auto;
    width: 50px;
}

    .loader:before {
        content: "";
        display: block;
        padding-top: 100%;
    }

.circular {
    -webkit-animation: rotate 2s linear infinite;
    animation: rotate 2s linear infinite;
    height: 100%;
    transform-origin: center center;
    width: 100%;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
}

.path {
    stroke-dasharray: 1, 200;
    stroke-dashoffset: 0;
    -webkit-animation: dash 1.5s ease-in-out infinite, color 6s ease-in-out infinite;
    animation: dash 1.5s ease-in-out infinite, color 6s ease-in-out infinite;
    stroke-linecap: round;
}

@-webkit-keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

@-webkit-keyframes dash {
    0% {
        stroke-dasharray: 1, 200;
        stroke-dashoffset: 0;
    }

    50% {
        stroke-dasharray: 89, 200;
        stroke-dashoffset: -35px;
    }

    100% {
        stroke-dasharray: 89, 200;
        stroke-dashoffset: -124px;
    }
}

@keyframes dash {
    0% {
        stroke-dasharray: 1, 200;
        stroke-dashoffset: 0;
    }

    50% {
        stroke-dasharray: 89, 200;
        stroke-dashoffset: -35px;
    }

    100% {
        stroke-dasharray: 89, 200;
        stroke-dashoffset: -124px;
    }
}

@-webkit-keyframes color {
    100%, 0% {
        stroke: #1B5C8D;
    }

    40% {
        stroke: #1B5C8D;
    }

    66% {
        stroke: #4D6F97;
    }

    80%, 90% {
        stroke: #4D6F97;
    }
}

@keyframes color {
    100%, 0% {
        stroke: #1B5C8D;
    }

    40% {
        stroke: #1B5C8D;
    }

    66% {
        stroke: #4D6F97;
    }

    80%, 90% {
        stroke: #4D6F97;
    }
}

.showbox {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 5%;
}


/*-----------------------------------------------------------------------------------------------*/
#loadingOverlayUserMsg {
    position: absolute;
    top: 120%;
    left: 0%;
    white-space: nowrap;
    font-size: 18px;
    color: #4D6F97;
}

/**dragabled windows topbar*/
.dragableWinTopBar {
    background: #1F6898;
    background: linear-gradient(90deg, #62C5E3 20%, #A0B8DC 50%,#1F6898 90%);
}

.noConnectionBlob {
    background: #a0a0a0;
    border-radius: 50%;
    margin: 10px;
    height: 12px;
    width: 12px;
}

.noConnectionAttensionBlob {
    background: #ff0000;
    border-radius: 50%;
    margin: 10px;
    height: 12px;
    width: 12px;
}

.noAttensionBlob {
    background: rgba(0,255,0,1);
    border-radius: 50%;
    margin: 10px;
    height: 12px;
    width: 12px;
    box-shadow: 0 0 0 0 rgba(0, 255, 0, 1);
    transform: scale(1);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 255, 0, 0.9);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(0, 255, 0, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 255, 0, 0);
    }
}

.attensionBlobT1 {
    background: rgba(225, 0, 0, 1);
    border-radius: 50%;
    margin: 10px;
    height: 12px;
    width: 12px;
    box-shadow: 0 0 0 0 rgba(255, 0, 0, 1);
    transform: scale(1);
    animation: pulse1 1s infinite;
}

@keyframes pulse1 {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.9);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(255, 0, 0, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0);
    }
}

.custom-icon {
    width: 18px;
    height: 18px;
    background-position: 0 0;
    background-size: 18px 18px;
    padding: 0;
    font-size: 18px;
    text-align: center;
    line-height: 18px;
}

@keyframes globalAlarmPulse {
    10% {
        font-size: 2.9em;
    }

    20% {
        font-size: 2.7em;
    }
}

div.edit-container {
    display: flex;
    flex-direction: row;
}

.time-span-edit {
    display: flex;
    flex-direction: row;
}

.time-splitter {
    display: inline-block;
    line-height: 100%;
    padding: 0 3px 0 3px;
    margin: auto 0 auto 0;
    font-size: 1.2em;
}

.iconEmsuiteToastId {
    width: 44px;
    height: 22px;
}

.errorToastCloseBtn {
    width: 26px;
    height: 26px;
    position: absolute;
    right: 15px;
    top: 12px;
    cursor: pointer;
}

.toastDivStyle {
    width: 100%;
    height: auto;
    min-height: 45px;
    position: relative;
    z-index: 99999999;
    border-radius: 5px;
    font-size: 15px;
    color: #333333;
    font-weight: 400;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 0px;
}
.toastDivStyleMapviewer {
    width: 100%;
    height: 10px;
    min-height: 65px;
    position: relative;
    z-index: 99999999;
    border-radius: 5px;
    font-size: 15px;
    color: #333333;
    font-weight: 400;
    padding-top: 10px;
    padding-bottom: 0px;
    padding-left: 0px;
}

#emsuiteToastId {
    left: 50%;
    top: 115px;
    transform: translate(-50%, -50%);
    display: none;
    width: 60%;
    height: auto;
    min-height: 45px;
    position: fixed;
    z-index: 99999999;
    border-radius: 5px;
    font-size: 15px;
    color: #333333;
    font-weight: 400;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 10px;
}

.toastMessageSpanContainer {
    display: inline;
    margin-top: 15px;
}

.toastMessageSpan {
    margin-left: 10px !important;
}
.toastMessageSpanMapviewer {
    margin-left: 10px !important;
    width: 90%;
    position: relative;
    top: -23px;
    left: 35px;
}


#emsuiteToastWrapperId, #zonePlacementErrorsID {
    position: fixed;
    top: 10%;
    left: 30%;
    width: 900px;
    height: auto;
    z-index: 99999
}

.emsuiteToast-success {
    margin-top: 5px;
    background-color: #BDEFD5;
    border: 1px solid #00BE5B;
}

.emsuiteToast-warning {
    margin-top: 5px;
    background-color: #FFEEC3;
    border: 1px solid #FFA800;
}

.emsuiteToast-info {
    margin-top: 5px;
    background: #E6F3FF;
    border: 1px solid #4D9CE4;
}

.emsuiteToast-error {
    margin-top: 5px;
    background-color: #FFABB5;
    border: 1px solid #F8465C;
}

.profileToggleMenu {
    box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.1);
    border-radius: 3px;
    width: 220px;
    height: auto;
    background-color: #ffffff;
    padding-top: 10px;
    padding-bottom: 10px;
}

.profileMenuContent {
    width: 200px;
    height: 35px;
    margin: 5px 10px;
    border-radius: 3px;
    background-color: #ffffff;
    position: relative;
    cursor: pointer;
}

    .profileMenuContent:hover {
        background-color: #EAEFF6;
    }

.profileMenuIcon {
    width: 18px;
    height: 18px;
    position: absolute;
    top: 9px;
    left: 10px;
}

.profileMenuTextLink {
    color: #404040;
    font-size: 16px;
    position: absolute;
    top: 5px;
    left: 41px;
    display: inline-block;
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden !important;
    text-overflow: ellipsis;
}

/*left empty content purpose -> used for queryselector*/
.alarmcounter-dropdown-marker {
}

.tableStyle {
    font-size: 14px;
    text-align: left;
    margin-left: 10px;
    padding-top: 20px;
}

    .tableStyle tr {
        padding: 3px;
    }

    .tableStyle td {
        padding: 2px;
    }

.alignBtnRight {
    float: right;
}

    .alignBtnRight .dx-button-content {
        padding-top: 5px !important;
    }

/*.afterTriangle::after {
    content: url("/images/icons/Polygon10.svg");
    position: relative;
    top: -4px;
    left: 10px;
}*/

.afterTriangle {
    width: 10px;
}
.profileName {
    display: inline-block;
    max-width: 130px;
    white-space: nowrap;
    overflow: hidden !important;
    text-overflow: ellipsis;
}

.cutBorderRightTopBar {
    border-right: 1px solid #FFFFFF2C;
    top: 6%;
    bottom: 6%;
    width: 2px;
    height: 40px;
    position: absolute;
    top: -1px;
    right: 9px;
}

/* Button Style - From Design 04-05-2023 */
button.btn-standard {
    border-radius: 5px;
    border: 1px solid #CCCCCC;
    background-color: white;
    font-size: 16px;
    font-weight: 400;
    line-height: 19px;
    padding: 7px 15px;
}

    button.btn-standard.active {
        border: 0 none white;
        background-color: #4D9CE4;
        color: white;
        padding: 8px 16px;
    }

        button.btn-standard.active:hover,
        button.btn-standard:hover {
            background-color: #EAEFF6;
            color: rgb(64, 64, 64);
        }

    button.btn-standard i {
        width: 20px;
        height: 20px;
    }

        button.btn-standard i.ico-plus,
        button.btn-standard.active:hover i.ico-plus {
            display: inline-block;
            background-image: url("../images/icons/plus.svg");
            background-position: center center;
            background-repeat: no-repeat;
            height: 12px;
            width: 20px;
        }

        button.btn-standard.active i.ico-plus {
            background-image: url("../images/icons/plus-icon-white.svg");
        }

button.btn-standard-small {
    border-radius: 5px;
    border: 0 none white;
    font-size: 14px;
    font-weight: 400;
    line-height: 16px;
    padding: 5px 10px;
    background-color: #fff;
}

    button.btn-standard-small:hover {
        background-color: #EAEFF6;
    }

    button.btn-standard-small.active {
        border: 0 none white;
        background-color: #4D9CE4;
        color: white;
    }


.menuOverFlow {
    position: relative;
    left: -50px;
    float: right;
    width: 150px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.menuOverFlowSubMenu {
    position: relative;
    left: -34px;
    float: right;
    width: 150px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}