


body {
    font-size: 1.3em;
    /*font-family: "Segoe UI", Verdana, Helvetica, Sans-Serif;*/
    color: #232323;
    background-color: #f5f5f5;
}

header, footer, nav, section {
    display: block;
}

.flex {
    display: flex;
    flex-wrap: wrap;
}

.panel-body {
    padding: 12px;
}

.panel-flat > .panel-heading {
    padding: 12px;
}

.summary h2 {
    margin: 10px 0 0 0;
}

.btn-primary {
    color: #fff;
    background-color: #61b7ae;
    border-color: #61b7ae;
}

/* Date and Time picker */
.date .input-group-addon {
    padding-top: 9px;
    padding-bottom: 9px;
    width: 40px;
    float: left;
    display: inline-block;
    background-color: #eee;
}

.date input {
    width: calc(100% - 40px);
    float: left;
}

.date {
    position: relative;
}

.bootstrap-datetimepicker-widget.dropdown-menu {
    width: auto !important;
    width: unset !important;
}
/* Styles for basic forms
-----------------------------------------------------------*/
fieldset {
    border: none;
    padding: 0 1.4em 1.4em 1.4em;
    margin: 0 0 1.5em 0;
    width: 98%;
}

.GlogalSettings fieldset, .Asset fieldset {
    border: 1px solid silver;
}

legend {
    font-size: 1.2em;
    font-weight: bold;
}

textarea {
    min-height: 75px;
}

.editor-label, .display-label {
    margin: 1em 0 0 0;
    float: left;
    clear: left;
    padding: 0 8px 0 0;
}

.editor-field, .display-field {
    float: left;
    clear: right;
}

.editor-field {
    margin: 0.5em 0 0 0;
    min-width: 200px;
}

.display-field {
    margin: 1em 0 0 0;
}

fieldset .editor-label, fieldset .display-label {
    padding-right: 6px;
    min-width: 80px;
}

fieldset > .editor-label, fieldset > .display-label {
    min-width: 150px;
    padding-right: 6px;
}

.sensoreditor fieldset > .editor-label, .sensoreditor fieldset > .editor-field {
    float: left;
    width: 49.5%;
    min-width: 0;
}

    .sensoreditor fieldset > .editor-field > input, .sensoreditor fieldset > .editor-field > select {
        width: 100%;
    }

#AssetSensors, #AssetInputs {
    border-top: 5px solid lightBlue;
    border-bottom: 5px solid lightBlue;
    margin: 2px 0;
    float: left;
    width: 100%;
}
/* Styles for validation helpers
-----------------------------------------------------------*/
.validation-summary-errors + span {
    font-size: 18px;
    font-weight: bold;
    color: red;
    padding: 8px 12px;
    background-color: yellow;
    margin-bottom: 8px;
}

.field-validation-error {
    color: #f00;
}

.field-validation-valid {
    display: none;
}

.input-validation-error {
    border: 1px solid #f00;
    background-color: #fee;
}

.validation-summary-errors {
    font-weight: bold;
    color: #f00;
}

.validation-summary-valid {
    display: none;
}

/*form > div, p,*/
.left > label, .left > div {
    float: left;
}


/*form, table {
    float: left;
    clear: both;
    margin: 6px;
}*/

.navbar-brand {
    padding: 4px 20px;
    line-height: 125px;
    height: auto;
}

    .navbar-brand > img {
        height: 56px;
        width: 240px;
    }

.row {
    clear: both;
}

fieldset > legend {
    border: none;
    padding: 0 8px 0 0;
    font-size: 1.6em;
    width: auto;
}

/*=====login page style====*/
.adminlogin, .userlogin {
    margin: 0 auto;
    width: 600px;
    max-width: 100%;
}

    .adminlogin > h1 {
        background-color: black;
        color: white;
        padding: 8px;
    }

    .userlogin h1 {
        background-color: #5ab0a0;
        color: black;
        font-weight: bold;
        text-align: center;
    }

    .adminlogin > form {
        width: 100%;
    }

.row.center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.input-group > span, .input-group > div, .input-group > select, .input-group > input, editor-label, .input-group[class*=col-] {
    float: left;
}

.input-group > span {
    padding: 0 8px 0 0;
    text-align: right;
}

form > .input-group:last-child > * {
    float: none;
}

.input-group, input-group.radio {
    display: block;
    padding: 0 8px;
    margin: 0;
    float: left;
}

@media (max-width: 1200px) {
    .input-group {
        width: 50%;
    }
}

@media (max-width: 540px) {
    .input-group {
        width: 100%;
    }
}



.input-group > span {
    width: 25%;
    margin-top: 8px;
}

.input-group > select, .input-group > input[type="text"] {
    width: 75%;
}

.editor-field > input, .editor-field > select, .input-group > select, .input-group > input[type="text"],
.input-group > input[type="checkbox"], .input-group > input[type="date"], .input-group > input[type="time"] {
    margin-bottom: 12px;
    box-shadow: none;
    height: 36px;
    min-width: 24px;
    padding: 7px 12px;
    border-radius: 3px;
    transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
    font-size: 13px;
    line-height: 1.5384616;
    color: #333;
    display: block;
    background-image: none;
    outline: 0;
}

input + input.btn, input + a.btn {
    margin-left: 30px;
}

.clearleft {
    clear: left;
}

.editor-field > input[type=text] {
    width: 100%;
}

.editor-field > input[type=checkbox] {
    width: 24px;
    height: 24px;
    clear: left;
}

.editor-field > * {
    float: left;
}

.editor-field > input + span {
    padding: 5px 8px;
}

.radio label {
    padding: 0px 6px 2px 24px;
    position: relative;
}

    .radio label > input {
        width: 22px;
        height: 100%;
    }

    .radio label > span {
        padding: 8px 0 0;
        display: block;
    }

#OverviewTable td {
    border: 1px solid #bbb;
    position: relative;
    overflow: visible;
    /*text-shadow: 0 0 16px #fff;*/
}

    #OverviewTable td > ul.hover-menu {
        display: none;
        position: absolute;
        top: 10px;
        left: 10px;
        z-index: 10;
        list-style: none;
        text-align: left;
        border: 1px solid black;
        background-color: rgba(255,255,255,0.7);
        padding: 0;
    }

        #OverviewTable td > ul.hover-menu > li {
            padding: 3px;
            border: 1px solid black;
        }

    #OverviewTable td:hover > ul.hover-menu {
        display: block;
    }



    #OverviewTable td.normal {
        background-color: #66BB6A;
    }

    #OverviewTable td.CriticalHigh, #OverviewTable td.CriticalLow, #OverviewTable td.failed {
        background-color: red;
        color: white;
        font-weight: bold;
    }

    #OverviewTable td.CautionHigh, #OverviewTable td.CautionLow {
        background-color: pink;
    }


    #OverviewTable td.High {
        background-color: yellow;
    }

#OverviewTable thead .row2 td:nth-last-child(-n+13), #OverviewTable tbody td:nth-last-child(-n+13) {
    text-align: center;
}

.overview td.safe {
    background-color: #66BB6A;
}

#OverviewTable td.Temperature:before, #OverviewTable td.Humidity:after {
    content: ' ';
    position: absolute;
    right: 0;
    top: 0%;
    height: 100%;
    width: 100%;
    background-image: url(/Assets/Images/icon_temperature.png);
    background-size: auto;
    background-size: unset;
    /*transform:translateY(-50%);*/
    opacity: 0.2;
    background-repeat: no-repeat;
    background-position: right center;
}

#OverviewTable td.Humidity:after {
    background-image: url(/Assets/Images/icon_humidity.png);
}

.table > tbody > tr > td, .table > tbody > tr > th, .table > tfoot > tr > td, .table > tfoot > tr > th, .table > thead > tr > td, .table > thead > tr > th {
    padding: 6px 8px;
}

.datatable-scroll-wrap {
    padding-bottom: 50px;
}

.MNote > * {
    float: none;
}

td > .btn {
    margin-top: 4px;
    line-height: 1.2;
}

.chart, .chart-container {
    height: 100%;
}

.navigation > li.active > a, .navigation > li:focus > a, .navigation > li:hover > a {
    background-color: #26A69A;
    color: #fff;
}

.reportoption {
    float: left;
    padding: 0 8px;
    background: white;
}

    .reportoption:last-of-type {
        border-right: 0;
    }

    .reportoption p {
        float: none;
    }

    .reportoption .select-item {
        border: 1px solid silver;
    }

.navbar-inverse {
    background-color: #3d4850;
    border-color: #3d4850;
}

.navbar-right > li {
    position: relative;
}

    .navbar-right > li > ul {
        position: absolute;
        top: 100%;
        right: 0;
        overflow: hidden;
        max-height: 0;
        /*min-width:300px;*/
        white-space: nowrap;
        margin: 0;
        padding: 0;
        list-style: none;
        transition: max-height linear 0.1s;
        background-color: white;
        z-index: 300;
    }

        .navbar-right > li > ul > li {
            border-top: 1px solid silver;
        }

            .navbar-right > li > ul > li > a {
                /*font-size:16px;*/
                padding: 6px 12px;
                display: inline-block;
            }

    .navbar-right > li:active > ul, .navbar-right > li:hover > ul {
        max-height: 300vh;
    }

.actions {
    position: relative;
}

    .actions > ul {
        display: none;
        position: absolute;
        top: 0;
        list-style: none;
        padding: 0;
        z-index: 111;
        width: 150px;
    }

    .actions:not(.right) > ul {
        left: 0;
    }

    .actions.right > ul {
        right: 0;
    }

    .actions > ul > li {
        padding: 2px 4px;
        border-bottom: 1px solid #ccc;
        background-color: #f7f7f7;
    }

        .actions > ul > li > a {
            padding: 4px 8px;
            display: inline-block;
            font-size: 14px;
        }

    .actions:active > ul, .actions:focus > ul, .actions:hover > ul {
        display: block;
        background-color: #f7f7f7;
        border: solid 1px #ccc;
        border-bottom: none;
    }

.overview table {
    border: 1px solid #bbb;
}

.action2 {
    overflow: hidden;
}

.action2 td .menublock{
    display:block;
    overflow:hidden;
    width:100%;
    height:100%;
    position: relative;

}

    .action2 .hover-menu {
        position: absolute;
        bottom: 200%;
        left: 24px;
        transform: translateY(0);
        transition: all ease-in-out 0.7s;
        min-width: 360px;
        /*display: grid;
        grid-template-rows: repeat(2,50px);
        grid-auto-flow: column;
        column-gap: 1px;
        row-gap: 1px;*/
        display:flex;
        flex-wrap:nowrap;
        /*opacity:0;*/
    }

.hover-menu > .ui-menu-item {
    border: 1px solid silver;
    padding: 4px 8px;
    background: #ffff80c0;
    width: 25%;
    display: flex;
    
    align-items: center;
}

.action2:focus td .menublock, .action2:focus-within td .menublock, .action2:hover td .menublock, .action2:active td .menublock {
    overflow: visible;
}
    .action2:focus .hover-menu, .action2:focus-within .hover-menu, .action2:hover .hover-menu, .action2:active .hover-menu {
       
        bottom: 50%;
        transform: translateY(50%);
    }



@media(max-width: 992px) {
    body {
        font-size: 1.5em;
    }

    .navbar-collapse.in {
        overflow: visible;
    }

    .container, .content {
        padding-left: 5px;
        padding-right: 5px;
    }

        .container .row, .content .row {
            margin-left: -5px;
            margin-right: -5px;
        }

    table.assetListTable {
        border: none;
    }

        table.assetListTable tr {
            display: flex;
            flex-wrap: wrap;
            border-bottom: 2px solid silver;
        }

        table.assetListTable thead {
            display: none;
        }

        table.assetListTable tr > td, table.assetListTable tr > th {
            width: 33.3%;
        }

        table.assetListTable tr > td {
            display: block;
        }

            table.assetListTable tr > td:before {
                content: attr(title);
                font-weight: bold;
                display: block;
                width: 100%;
                /*padding: 8px 12px;*/
            }

        table.assetListTable .actions > ul, table.assetListTable .actions:not(.right) > ul {
            top: calc(100% - 10px) !important;
        }

    fieldset {
        margin: 0;
        padding: 0 8px;
    }

    .sensoreditor fieldset > .editor-label, .sensoreditor fieldset > .editor-field {
        width: 100%;
    }

    #alertIcon {
        position: relative;
    }

        #alertIcon > i:after {
            content: none;
            display: none;
        }

        #alertIcon > i.alerting:after {
            content: attr(count);
            display: block;
            position: absolute;
            z-index: 3;
            padding: 6px 12px;
            border-radius: 5px;
            background: white;
            color: red;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
        }
}

@media(max-width:450px) {
    body {
        font-size: 2em;
    }

    .navbar-header {
        display: flex;
    }

    .input-group > span {
        width: 100%;
        text-align: left;
    }
}
