@import url(https://fonts.googleapis.com/css?family=Roboto:300,400,700);

/* General structure */
.container > .rof {
    margin-top: 15px;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* 
    End General structure
    General components 
*/

.ecui-transitions {
    /* Use to enable all transitions. Copied from light-bootstrap-dashboard.css. */
    -webkit-transition: all 300ms linear;
    -moz-transition: all 300ms linear;
    -o-transition: all 300ms linear;
    -ms-transition: all 300ms linear;
    transition: all 300ms linear;
}

.btn-success:focus,
.btn-success:hover {
    background-position: initial !important;
}

.btn-success {
    color: white !important;
}

/*.btn.btn-secondary {
    color: #aaa;
    background-color: #eee;
}

.btn.btn-secondary:hover {
    color: white;
}*/

/* 
    End components
    Controllers 
*/

.controller {
    background-color: #eee;
    /*border: 1px solid #ddd;*/
    min-width: 150px;

    margin-bottom: 0.5em;
    padding: 0.5em;

    text-transform: uppercase;
}

.controller-nouppercase {
    background-color: #eee;
    /*border: 1px solid #ddd;*/
    min-width: 150px;

    margin-bottom: 0.5em;
    padding: 0.5em;
}

.controller h1 {
    font-size: 1em;
    font-weight: 100;
    text-transform: uppercase;
    margin: 1em 0;
}

#air-filtered {
    /* GuiComponent_DashBoardComponent_AirFiltered */
    height: 400px;
}

/* 
    End Controllers
    Card headers 
*/

.card .card-header {
    padding: 0;
}

.card.sensors-card .header {
    font-size: 16px;
}

.card .card-header .row {
    margin-top: 0;
}

body.edit-mode a.edit-button,
body.edit-mode a.share-button {
    color: #ddd;
}

body.edit-mode .share-button {
    cursor: not-allowed;
}

input.form-control.editable-text {
    border: none;
    display: inline-block;
    width: auto;
    border: 1px solid transparent;
}

body.edit-mode .editable-text {
    border: 1px solid #AAAAAA !important;
}

.card .card-header .form-control {
    padding: 2px 5px;
    height: auto;
}

.card .card-header .form-control[readonly] {
    background-color: transparent;
    cursor: default;
}

.form-control.title {
    font-size: 22px;
    width: auto;
}

/* 
    End card headers
    Double + Single Value 
*/

.ec-single-value {
    text-align: center;
    margin-bottom: 0.5em;
    padding: 0.5em;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    color: white;
    background-color: #2C906D;
}

.ec-single-value table {
    display: inline-block;
    vertical-align: middle;
}

.ec-single-value table {
    line-height: 50px;
}

.ec-single-value th {
    padding-right: 10px;
    font-weight: normal;
}

.ec-single-value tr.outside td:last-child {
    font-weight: bold;
}

.ec-single-value i {
    display: inline-block;
    width: 40px;
    color: white;
    text-align: center;
    vertical-align: bottom;
    padding-right: 10px;

    /*    color: black;
    background-color: #bfe0d5;
    background-color: #66b59a;*/
}

.ec-single-value .fa {
    font-size: 38px;
    line-height: 48px;
}

.ec-single-value .wi {
    font-size: 38px;
    line-height: 46px;
}

.double-value table,
.single-value table {
    display: inline-block;
    vertical-align: middle;
}

.double-value table {
    line-height: 25px;
}

.single-value table {
    line-height: 50px;
}

.double-value th,
.single-value th {
    padding-right: 10px;
    font-weight: normal;
}

.double-value tr.outside td:last-child,
.single-value tr.outside td:last-child {
    font-weight: bold;
}

.double-value tr.after td:last-child {
    font-weight: bold;
    color: green;
}

.double-value i,
.single-value i {
    display: inline-block;
    width: 40px;
    color: green;
    text-align: center;
    vertical-align: bottom;
}

.double-value .fa,
.single-value .fa {
    font-size: 48px;
}

.double-value .wi,
.single-value .wi {
    font-size: 38px;
    line-height: 46px;
}

/* End Double + Single Value */
/* Legend */

.legend {
    text-transform: none;
    font-size: 16px;
}

.legend.horizontal li {
    display: inline-block;
    margin-right: 15px;
}

.legend ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.legend li * {
    margin-right: 5px;
}

.legend ul i {
    height: 7px;
    width: 20px;
    display: inline-block;
    border-top: 2px solid;
}

.legend label {
    font-weight: initial;
    margin: 0;
}

.legend label.all-none {
    font-weight: 100;
    margin-top: 5px;
}

.red {
    color: red;
}

.green {
    color: green;
}

.blue {
    color: blue;
}

.pink {
    color: pink;
}

/* End Legend */


/* Breadcrumbs */

.ec-breadcrumb {
    margin: 7px 0px;
    padding: 15px 15px;
    list-style: none;
    border-radius: 4px;
}

.ec-breadcrumb > li {
    display: inline-block;
}

.ec-breadcrumb > li + li:before {
    padding: 0 5px;
    color: #ccc;
    content: "/\00a0";
}

.ec-breadcrumb > .active {
    color: #777;
}

/* End breadcrumbs */

/* Clickable rows */
.clickable-row:hover {
    cursor: pointer;
}

.container-full {
    margin: 0 auto;
    width: 100%;
}

/* From old Style.css */

/* Generals */
html {
    position: relative;
    min-height: 100%;
}

.text-muted {
    font-weight: 100;
}

.text-concat,
.graph-box h2 {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.full-width {
    padding-left: 0;
    padding-right: 0;
}

/* End generals
Main page blocks (footer / header / navigation) */

.page-header {
    background-color: #00673e;
    margin: 0;
    padding: 0.8em 1.5em;
}

/* begin: nav */

.navbar {
    border-radius: 0;
    margin-bottom: auto;
    z-index: 123123231;
    padding-right: 1rem;
}

.navbar .collapse .navbar-nav .nav-item .nav-link {
    color: #9a9a9a;
    text-transform: none;
    font-size: 16px;
}

.navbar .btn .fa {
    font-size: 15px !important; /* to override sizing in material dash */
}

.navbar .navbar-nav li:nth-child(2){
    margin-right: 25px;
}


.navbar .dropdown-toggle-split {
    border-left: 1px solid #ddd;
    background-color: #e4e4e4;
}


#navLeft a {
    vertical-align: bottom;
    color: #777;
    padding: 0 5px;
    line-height: 1em;
}

.height-helper {    
    display: inline-block;
    height: 100%;
    vertical-align: middle;
}

#navLeft a.navbar-brand {
    padding: 0;
    height: 41px; /* to match menu */
    margin-right: 5px;
}

#search-button-wrapper {
    width: 150px;
}

#search-button-wrapper .magnify-icon {
    padding: 0;
    margin: 0;
    height: 41px; /* to match menu */
    border-bottom-left-radius: 0;
    border-top-left-radius: 0;
}

#search-box {
    padding: 0 10px;
}

#search-button-wrapper .form-control {
    height: 41px; /*to match menu */
    text-align: center;
    border: 1px solid #eee;
    border-right: none;
    background: border-box 0;
    border-top-left-radius: 0.2rem;
    border-bottom-left-radius: 0.2rem;
}

#navLeft,
#navCenter,
#navRight {
    display: flex;
    flex-wrap: nowrap;
}
#navLeft {
    align-items: flex-end;
    
}
#navLeft img {
    vertical-align: bottom;
}
#navCenter,
#navRight {
    align-items: center;
}

/*.ec-device-card .dropdown-menu {
    transform-origin: initial!important;
    
    top: 0!important;
    left: 0!important;
}*/

/* mega menu: https://www.bootply.com/g53fBbpDYE */

.megamenu-1col > .dropdown-menu {
    left:-160px;
    min-width: 500px;
}

.megamenu-2col > .dropdown-menu {
    left:-360px;
    min-width: 900px;
}

.megamenu-3col > .dropdown-menu {
    left:-560px;
    min-width: 1300px;
}

.megamenu-4col > .dropdown-menu {
    left:-35vw;
    min-width: 80vw;
}
.megamenu-header {
    padding-top: 0.5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    margin: 0 0.3125rem;
    border-bottom: 1px solid #ccc;
}

.megamenu-column {
    max-height: 80vh;
    overflow-x: hidden;
    overflow-y: auto;
}

.dropdown-menu.container.show .row {
 /*   display: block;
    flex-wrap: initial;*/
}

/* end: nav */


.right { /* todo: replace with bootstraps left-right-align*/
    float: right;
}

/* End main page blocks */



/* Graphs and Graph overview */
#diagrams-matrix {
    margin-top: 20px;
}

.graph-box {
    background-color: #f8f8f8;
    border-radius: 5px;
    border: 1px solid #efefef;
    padding: 10px;
    margin-bottom: 20px;
    width: 100%;
    height: 100%;

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 1px 5px rgba(0, 0, 0, .075);
    /*background-image: linear-gradient(to bottom,#fff 0,#f8f8f8 100%);*/
}

.graph-box h2 {
    font-size: 1.1em;
    font-weight: 100;
    padding-top: 0;
    padding-bottom: 5px;
    margin: 0;
}

.graph-box figcaption {
    margin-top: 5px;
    font-size: 95%;
}

.graph-box figcaption p {
    font-style: italic;
    overflow: hidden;
    line-height: 1.15em;
    height: 2.3em;
}

.graph-box img {
    width: 100%;
    border: 1px solid #ccc;
}

#diagrams-matrix a {
    color: #555;
}

#diagrams-matrix a:hover {
    text-decoration: none;
}

.graph-box:hover {
    background-color: #efefef;
}

.bootstrap-select:not([class*=col-]):not([class*=form-control]):not(.input-group-btn) {
    width: 100%;
}

.grapharea-ratio-box {
    height: 0;
    min-width: 160px;
    min-height: 100px;
    overflow: hidden;
    position: relative;
}

.grapharea-fit-parent {
    width: 100%;
    height: 100%;
}

.grapharea-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* End Graphs and Graph overview */

/* EULA */

.eula table,
.eula th,
.eula td {
    border: 1px solid #545454;
    padding: 2px 2px 2px 2px;
}

.eula table {
    border-collapse: collapse;
    border-bottom: 0;
    border-left: 0;
}

.eula td,
.eula th {
    vertical-align: top;
    border-top: 0;
    border-right: 0;
}

/* Search box */

.typeahead,
.tt-query,
.tt-hint {
    width: 396px;
    height: 30px;
    padding: 8px 12px;
    font-size: 24px;
    line-height: 30px;
    border: 2px solid #ccc;
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    border-radius: 8px;
    outline: none;
}

.typeahead {
    background-color: #fff;
}

.typeahead:focus {
    border: 2px solid #0097cf;
}

.tt-query {
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
    -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
}

.tt-hint {
    color: #999
}

.tt-menu {
    width: 422px;
    margin: 12px 0;
    padding: 8px 0;
    background-color: #fff;
    border: 1px solid #ccc;
    border: 1px solid rgba(0, 0, 0, 0.2);
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    border-radius: 8px;
    -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, .2);
    -moz-box-shadow: 0 5px 10px rgba(0, 0, 0, .2);
    box-shadow: 0 5px 10px rgba(0, 0, 0, .2);
}

.tt-suggestion {
    padding: 3px 20px;
    /*  font-size: 16px; */
    line-height: 24px;
}

.tt-suggestion:hover {
    cursor: pointer;
    color: #fff;
    background-color: #0097cf;
}

.tt-suggestion.tt-cursor {
    color: #fff;
    background-color: #0097cf;
}

.tt-suggestion p {
    margin: 0;
}

/* Edit controls */
.edit-controls {
    font-size: 26px;
    float: right;
    padding: 15px;
    z-index: 5;
}

body.edit-mode .editable-text {
    border: 1px solid #AAAAAA !important;
}

body.edit-mode .button {
    cursor: not-allowed;
}

/* ec-widgets */
/*.ec-widget {
    font-size: calc(1em + 1vw);
}*/
.ec-zoomable {
    /*transition: transform .2s;
    -webkit-transition:width 300ms ease-in-out, height 300ms ease-in-out;
    -moz-transition:width 300ms ease-in-out, height 300ms ease-in-out;
    -o-transition:width 300ms ease-in-out, height 300ms ease-in-out;
    transition:width 300ms ease-in-out, height 300ms ease-in-out;*/
    cursor: zoom-in;
}

/*.ec-zoomable:hover {
    z-index: 9999;
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    -webkit-transition:width 300ms ease-in-out, height 300ms ease-in-out;
    -moz-transition:width 300ms ease-in-out, height 300ms ease-in-out;
    -o-transition:width 300ms ease-in-out, height 300ms ease-in-out;
    transition:width 300ms ease-in-out, height 300ms ease-in-out;

    transform: scale(1.02);
    position: absolute;
    width: 104%;
    height: 104%;
    top: -2%;
    left: -2%;

    z-index: 10;

    border: 1px solid #000000 !important;
}*/

/*
 * Maps
 */

.ec-map-sensor-leaflet > div {
    transform: translate(-50%, -100%)
}

.ec-map-sensor-cluster-table > tbody {
    vertical-align: top;
    padding-left: 2px;
    padding-right: 2px;
}

.ec-map-sensor-cluster hr {
    margin-top: 2px;
    margin-bottom: 2px;
}

.ec-map-sensor-cluster {
    position: absolute;
    border-radius: .4em;
    /*    width: 140px;

    height: 300px;*/
    margin: 0;
    background-color: white;
    /*    position: fixed;*/
    z-index: 100;
    font-size: 12px;
    font-weight: 100;
    line-height: normal;
    color: #999;
    padding: 5px 5px;

    opacity: 0.8;
}
/*
.ec-map-sensor table td {
    height: 42px;
    vertical-align: middle;
}*/

.ec-map-sensor-image {
    height: 42px;
    padding: 3px 3px 3px 3px;
}

.ec-map-sensor-image img {
    width: 40px;
    height: 40px;
    vertical-align: middle;
}

.ec-map-sensor-circle {
    height: 42px;
    padding: 3px 3px 3px 5px;
    vertical-align: middle;
}

.ec-map-sensor-circle-circle {
    /*    margin: 10px 10px 10px 10px;*/
    height: 20px;
    width: 20px;
    border-radius: 50%;
    display: inline-block;
    border: 1px solid;
}

.ec-map-sensor-value {
    height: 42px;
    padding: 1px 1px 1px 1px;
    min-width: 28px;
    text-align: right;
    font-size: 24px;
    font-weight: bold;
}

.ec-map-sensor-unit {
    height: 42px;
    padding: 1px 1px 1px 3px;
    font-size: 10px;
    font-weight: normal;
}

.ec-map-sensor-filterstatus {
    padding: 1px 1px 1px 1px;
    min-width: 28px;
    text-align: center;
    font-size: 14px;
}

.ec-map-sensor-title {
    width: 138px;
    font-size: 14px;

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

.ec-map-legend-colormap {
    width: 400px;
    height: 50px;
    margin-bottom: 10px;
    margin-left: 20px;
}

.ec-map-legend-colormap p {
    font-size: 12px;
    font-weight: normal;
    margin: 2px;
}

.ec-map-legend-colormap-scale {
    display: block;
    height: 100%;
}

.ec-map-legend-colormap-scale section {
    width: 100%;
    height: 20px;
}

.ec-map-legend-colormap-scale span {
    display: inline-block;
    height: 100%;
    font-size: 10px;
}

.ec-map-legend-colormap-scale-gradient {
    border: 1px solid black;
    opacity: 0.8;
}

.ec-map-legend-colormap-scale section > span:nth-child(1) {
    width: 15%;
}

.ec-map-legend-colormap-scale section > span:nth-child(2) {
    width: 35%;
}

.ec-map-legend-colormap-scale section > span:nth-child(3) {
    width: 35%;
}

.ec-map-legend-colormap-scale section > span:nth-child(4) {
    width: 15%;
}

.ec-map-legend-colormap-scale-gradient > span:nth-child(1) {
    background-image: linear-gradient(to right, #fff, #00ff00);
}

.ec-map-legend-colormap-scale-gradient > span:nth-child(2) {
    background-image: linear-gradient(to right, #00ff00, #ffff00);
}

.ec-map-legend-colormap-scale-gradient > span:nth-child(3) {
    background-image: linear-gradient(to right, #ffff00, #ff0000);
}

.ec-map-legend-colormap-scale-gradient > span:nth-child(4) {
    background-image: linear-gradient(to right, #ff0000, #000);
}

.ec-map-sensor {
    padding: 2px;
}

.ec-map-sensor:hover {
    padding: 1px;
    border: 1px dashed #ccc;
}

.ec-map-sensorwrapper {
    margin: 2px;
}


/* Ola
.ec-headercontent.row {
    border-bottom-left-radius: 0 !important;
    border-top-left-radius: 0 !important;
}*/


.ec-map-clusterwrapper:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 0;
    border: 16px solid transparent;
    border-top-color: white;
    border-bottom: 0;
    margin-left: -16px;
    margin-bottom: -14px;
}

.ec-sensor-marker {
    padding: 2px 7px;
    color: white;
    font-size: 10px;
    border-width: 1px;
    border-radius: 30px;
    background-color: #2C906D;
    line-height: 1.3;
    display: inline-block;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    /*    border: 1px solid black;
 */
}

/*
 * EcLog Device
 * views: mini, small, row, full
 */

.ec-component {
    text-align: left;
    font-size: 14px;
    font-weight: 400;
    font-family: "Roboto", "Helvetica", "Arial", sans-serif;
    margin: 0;
    padding: 0;
}

.ec-component a {
    color: #777;
}

.ec-component a:visited {
    color: #777;
}

.ec-component a:hover {
    color: #999;
}

.ec-component h1 {
    font-size: 24px;
}


/* Cards v2: MapLarge */
.ec-device-maplarge {
    display: flex;
    flex-direction: row;
    background-color: white;

    border-radius: 3px;
/*    border-top-left-radius: 0;*/

    min-height: 48px;
    opacity: 0.8;
}

.ec-device-maplarge-icon-wrapper {
    background: linear-gradient(60deg, #66bb6a, #43a047);
    width: 48px;
    height: 48px;
    box-shadow: none;
    margin: 0;
    padding: 0;
    border-radius: 3px;
}

.ec-device-maplarge-icon {
    width: 48px;
    height: 48px;
}

.ec-device-maplarge-infoarea {
    display: flex;
    flex-direction: column;

    width: 160px;
    padding: 4px 6px;
    font-size: 14px;
    font-weight: 300;
    color: #3C4858;
}

.ec-device-maplarge-title {
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.ec-device-maplarge-valuetable {
    color: #999;
}

/* Nytt för Kartzoom */

/* begin: mini card */

/*.ec-device-card-mini .card-title-description-column,
.ec-device-card-mini .ec-device-title,*/


.ec-device-card-mini .card.ec-device-card {
    background-color: transparent;
}
.ec-device-card-mini .ec-headercontent.row {
    flex-direction: column;
    background-color: white;

    padding: 4px 6px;

    border-radius: 3px;
    border-top-left-radius: 0;

    min-height: 48px;
    width: 160px;
}

.ec-device-card-mini .ec-device-title {
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ec-device-card-mini .ec-device-body,
.ec-device-card-mini .ec-device-card-footer,
.ec-device-card-mini .ec-device-description,
.ec-device-card-mini .close-modal {
    display: none !important;
}

.ec-device-card-mini .ec-device-title,
.ec-device-card-mini .card-content-column,
.ec-device-card-mini .card-title-description-column {
    flex: none;
    max-width: none;

    padding: 0;
}

.ec-device-card-mini table.float-lg-right {
    float: none!important;
}

.ec-device-card-mini h4,
.ec-device-card-mini td {
    font-size: 14px;
    font-weight: normal;
}

.ec-device-card-mini .card.ec-device-card .card-focus-data td {
    padding: 0;
}

.ec-device-card-mini .ec-device-card-name-mini {
    display: block;
}

.ec-device-card-small .ec-device-card-name-mini,
.ec-device-card-list .ec-device-card-name-mini,
.ec-device-card-full .ec-device-card-name-mini {
    display: none;
}

/*#fullscreen-map .ec-device-card-offline .card .card-content-column {
    display: none!important;
}*/
/*.ec-device-card-offline .card .card-icon {
    background: none;
    background-color: lightgray;
    border-bottom-right-radius:3px!important;
    border-top-right-radius:3px!important;

    box-shadow: 0 4px 20px 0px rgba(0, 0, 0, 0.14), 0 7px 10px -5px rgba(156, 156, 156, 0.4);
}*/

.ec-device-card-offline .card-icon {
    filter: brightness(0.8);
}

.ec-device-card-mini .ec-device-card,
.ec-device-card-mini .ec-device-card .card-header,
.ec-device-card-mini .ec-headercontent,
.ec-device-card-mini .card .card-icon {
    margin: 0;
    box-shadow: none;
    padding: 0;
}

.ec-device-card-mini .ec-device-card {
    border-radius: 3px;
}

.ec-device-card-mini .card .card-icon {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.ec-device-card-mini .card .card-icon .ec-device-icon {
    width: 48px;
    height: 48px;
}

.ec-device-card-list .card-focus-data {
    margin-top: 8px;
}

.ec-device-card-list table.card-focus-data * {
    font-size: 16px!important;
}

.ec-device-card-mini .card.ec-device-card .card-focus-data .card-focus-unit {
    font-size: 14px;
    margin-left: 0;
}

/* end: mini card */

.content-list {
    margin: 5px 5px 5px 5px;
}

.ec-device-card {  
    margin-bottom: 16px;
}

.ec-device-card-icon {
    background: linear-gradient(60deg, #2D9774, #008357);
}

.ec-device-card-small {
    width: 360px;
    overflow: visible !important;
}

.ec-device-card-full {
    width: 100%;
}

.ec-device-card-small .ec-device-card:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 0;
    border: 16px solid transparent;
    border-top-color: white;
    border-bottom: 0;
    margin-left: -16px;
    margin-bottom: -16px;

    opacity: 0.8;
}

.ec-device-card-full .card-focus-data {
    text-align: right;
    color: blue;
}

/* .ec-device-icon */

.ec-device-icon {
    transition: all 0.4s ease-out 0s;
}

.ec-device-card-small .ec-device-icon {
    width: 32px;
    height: 32px;
}

.ec-device-card-list .ec-device-icon {
    width: 48px;
    height: 48px;
}

.ec-device-card-full .ec-device-icon {
    width: 128px;
    height: 128px;
}

/* .ec-device-body */

.ec-device-body {
    margin:15px;
}


.ec-device-card-small .ec-device-body {
    width: 800px;
    height: 0px;
    transform-origin: top;
    /*    transform: scaleY(0);*/
    overflow: hidden;
    margin-bottom: 5px;
    
    display: none; 
}

.ec-device-card-list .ec-device-body {
    display: none;
    /*width: 800px;
    height: 0px;
    transform-origin: top;
    overflow: hidden;*/
}

.ec-device-card-full .ec-device-body {
    margin-bottom: 30px;
}

/* .ec-device-title */

.ec-device-title {
    color: #3C4858;
    transition: all 0.4s ease-out 0s;
}

.ec-device-card-small .ec-device-title {
    font-size: 16px;
    margin-top: 8px;
    margin-bottom: 0;

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

.ec-device-card-list .ec-device-title {
    font-size: 16px;
    margin-top: 8px;
}

.ec-device-card-full .ec-device-title {
    font-size: 28px;
    margin-top: 20px;

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

/* .ec-device-description */

.ec-device-description {
    transition: all 0.4s ease-out 0s;
    color: #999;

}

.ec-device-card-small .ec-device-description {
    font-size: 12px;

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

.ec-device-card-list .ec-device-description {
    font-size: 12px;
}

.ec-device-card-full .ec-device-description {
    font-size: 20px;
}


/* .ec-device-alarm */
@keyframes ec-device-alarm-pulse {
    from { transform: scale(1); }
    50% { transform: scale(0.95); }
    to { transform: scale(1); }
}

.ec-device-alarm-active .ec-device-alarm-container {
    animation-name: ec-device-alarm-pulse;
    animation-duration: 3s;
    animation-iteration-count: infinite;
}
.ec-device-alarm-active .ec-device-alarm-container:hover,
.ec-device-alarm-active .ec-device-alarm-container:focus {
    animation-name: unset;
}


.ec-device-alarm-active {
    border: #888 1px solid;
    padding: 5px;
}

.ec-device-card-small .ec-device-alarm
.ec-device-card-list .ec-device-alarm
.ec-device-card-mini .ec-device-alarm
{
    display: none !important;
}

.ec-device-card-full .ec-device-alarm {
    font-size: 28px;
    margin-top: 20px;

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


.ec-device-alarm-header-icon {
    width: 28px;
    height: 28px;
    overflow: hidden;
    padding: 0;
}

.ec-device-alarm-active .ec-device-alarm-header-text {
    font-weight: 700;
}

.ec-device-alarm-active .ec-device-alarm-header-icon {
    font-weight: 700;
    background-color: #D98092;
}

.ec-device-alarm-header-icon {
    background-color: #80D98F;
}


/* .ec-device-focus-value */

.ec-device-focus-value {
    transition: all 0.4s ease-out 0s;
}

.ec-device-card-small .ec-headercontent {
    display: block;
}

.ec-device-card-small .ec-headercontent.row div[class|="col"]{
    max-width: none;
}

.ec-device-card-small .ec-headercontent.row div[class|="col"].text-right{
    text-align: left!important;
}

.ec-device-card-small .ec-device-focus-value {
    font-size: 25px;
}
.ec-device-card-full .ec-device-focus-value {
    font-size: 35px;
}

.ec-device-card-small .card-focus-data {
    margin-left: 77px;
}

.ec-device-card-list .ec-device-focus-value,
.ec-device-card-full .ec-device-focus-value {
    line-height: normal;
    margin-left: 5px;
    margin-right: 5px;
}

.ec-device-card-small .close-modal{ 
    display: none;
}

.ec-device-card-full .close-modal{ 
    display: block;
    margin-top: 5px;
    margin-right: -5px;
}


/* Sensor card start */


.ec-device-card a {
    color: #777;
}

.ec-device-card a:visited {
    color: #777;
}

.ec-device-card a:hover {
    color: #999;
}


.ec-device-card-small .card.ec-device-card .card-header {
    margin-bottom: 10px;
}

.card.ec-device-card .card-header.card-header-icon i img {
    max-width: 100%;
}

.card.ec-device-card .card-header .card-title {
    font-size: 28px;
    margin-top: 20px;
}

.card.ec-device-card .card-header .card-description {
    color: #999;
    font-size: 20px;
}

.ec-device-card-full .card.ec-device-card .card-focus-data {
    margin-top: 30px;
    margin-right: 15px;
}

.card.ec-device-card .card-focus-data * {
    color: #3C4858;
}

.card.ec-device-card .card-focus-data td { 
    padding-left: 3px; 
    padding-right: 3px; 
}

.card.ec-device-card .card-focus-data .card-focus-description,
.card.ec-device-card .card-focus-data .card-focus-unit,
.card.ec-device-card .card-focus-data sup {
    color: #999;
}

.ec-device-card-small .card.ec-device-card .card-focus-data .card-focus-description,
.ec-device-card-full .card.ec-device-card .card-focus-data .card-focus-description {
/*    text-transform: uppercase;*/
    font-size: 25px;
}

.ec-device-card-mini .card.ec-device-card .card-focus-data .card-focus-description
{
    padding-right: 5px;
}

.ec-device-card-mini .card.ec-device-card .card-focus-data .ec-device-focus-value
{
    padding-right: 5px;
}

.chart-data
{
    min-width: 1.5em;
}

.ec-device-focus-value
{
    min-width: 1.5em;
}

.chart-data .wa-value-changed
{
    animation: newValueFlash 1s;
}

.ec-device-focus-value .wa-value-changed
{
    animation: newValueFlash 1s;
}

@keyframes newValueFlash {
    0%      {   background-color: transparent; }
    10%     {   background-color: #43a047;     }
    100%    {   background-color: transparent; }
}


.card.ec-device-card .card-focus-data .card-focus-unit {
    font-size: 30px;
}

.card.ec-device-card .ec-device-card-footer {
    border-top: 1px solid #eee;
    margin-top: 20px;

    margin: 20px 15px 10px 15px;
    margin-top: 0;
    padding: 10px;
    padding-bottom: 0;
    
    margin:0;
    
    font-size: 12px;
}

.ec-device-card-full .card.ec-device-card .ec-device-card-footer {
    font-size: 14px;
    
    margin-right: 0;
}


.card.ec-device-card .ec-device-card-footer {
    padding: 10px 10px;
    box-sizing: border-box;
}

.card.ec-device-card .ec-device-card-footer div {
    box-sizing: border-box;
}

.card.ec-device-card .ec-device-card-footer .footer-left-menu a {
    margin-right: 3px;
    padding: 5px 2px;
    box-sizing: border-box;
    white-space: nowrap;
}

.card.ec-device-card .ec-device-card-footer .text-right a {
    padding-right: 5px;
    padding-left: 10px;
}

.ec-device-card-footer > .row > div:first-child {
    padding-left: 5px;
}

.ec-device-card-footer > .row > div:last-child {
    padding-right: 5px;
}

.ec-device-card-full .card.ec-device-card .ec-device-card-footer {
    background-color: white;
    padding-left: 1em;
}


.ec-device-card-full .card-header.card-header-success.card-header-icon { 
    cursor: default!important; /*todo ajn remove in js*/
}

.airimage .sensor-card .card-header-success .card-icon {
    background: linear-gradient(60deg, #2D9774, #008357);
}

.card.sensor-card .card-header.card-header-icon i {
    width: 128px;
    height: 128px;

}

.card.sensor-card .card-header.card-header-icon i img {
    max-width: 100%;
}

.card.sensor-card .card-header .card-title {
    font-size: 28px;
    margin-top: 20px;
}

.card.sensor-card .card-header .card-description {
    color: #999;
    font-size: 20px;
}

.card.sensor-card .card-focus-data {
    margin-top: 45px;

}

.card.sensor-card .card-focus-data * {
    color: #3C4858;
}

.card.sensor-card .card-focus-data .card-focus-description,
.card.sensor-card .card-focus-data .card-focus-unit,
.card.sensor-card .card-focus-data sup {
    color: #999;
}

.card.sensor-card .card-focus-data .card-focus-description {
    text-transform: uppercase;
    font-size: 20px;

}

.card.sensor-card .card-focus-data .card-focus-value {
    font-size: 56px;
}

.card.sensor-card .card-focus-data .card-focus-unit {
    font-size: 20px;
    margin-left: 5px;
}

.card.sensor-card .sensor-card-footer {
    border-top: 1px solid #eee;
    margin-top: 20px;

    margin: 20px 15px 10px 15px;
    padding: 10px;
    padding-bottom: 0;
}

.card.sensor-card .sensor-card-footer a {
    margin-right: 5px;
}

.card.sensor-card .sensor-card-footer .text-sm-right a {
    margin-right: 0;
}
.property-status-symbol-wrapper {
    line-height: 20px;
}
.property-status-symbol {
    height: 20px;
    width: 20px;
    border: 1px solid #999;
    border-radius: 50%;
    display: inline-block;
}

.ec-device-card-small .property-status-symbol,
.ec-device-card-full .property-status-symbol {
    line-height: 25px;
    font-size: 25px !important;
}

.status-green {
    color: green!important;
}
.status-yellow {
    color: yellow!important;
}

#mini-warning-box {
    display: none;
}

.ec-device-card-mini #mini-warning-box {
    display: block;
    color: rgb(199, 84, 55);
    font-size: 20px;
}

/* Period selector */

.ec-periodselector > div > button {
    height: 32px;
}

.ec-periodselector-row1 {
    display: flex;
    padding: 0;
}

.ec-periodselector-row1 > * {
    flex: 1 1 0px;
    text-align: center;
}

.ec-periodselector-row2 {
    display: flex;
}

.ec-periodselector-row2 > * {
    flex: 1 1 0px;
    text-align: center;
}

.ec-periodselector-row3 {
    display: flex;
}

.ec-periodselector-row3 > * {
    flex: 1 1 0px;
    text-align: center;
}


/*.ec-periodselector-row2 > button {
    flex: 1 1 0px;
    text-align: center;
    margin-right: 5px;
}

.ec-periodselector-row2 > input {
    flex: 2 1 0px;
    text-align: center;
    margin-right: 5px;
    margin-left: 5px;
}*/



.btn.ec-periodselector-active {
    color: #fafafa;
    background-color: #008357;
    border-color: #adadad;
}

/* Sensor card end */
/* Sensor full page chart grid */

.chart-grid-data-column {
    overflow: hidden;
}

.chart-grid-legend-column table {
    font-size: 18px;
    font-weight: 100;
    width: 100%;
    border-spacing: 1px;
    border-collapse: separate;
}

#chart-grid-legend-list .chart-data-type {
    width: 100%;
}

#chart-grid-info-list {
    margin-top: 35px;
}

.chart-grid-legend-column table .chart-icon {
    width: 28px;
    height: 28px;
    overflow: hidden;
}

.chart-grid-legend-column .chart-data-type,
.chart-grid-legend-column .chart-unit,
.chart-grid-legend-column td {
    color: #999;
}

.chart-grid-legend-column table td:nth-child(2),
.chart-grid-legend-column table .chart-unit {
    padding-left: 5px;
}

.chart-grid-legend-column table img {
    max-width: 28px;
}

.chart-grid-legend-column table tr:hover {
    cursor: pointer;
}

.chart-grid-legend-column .chart-data,
.chart-grid-legend-column table tr:hover td,
.chart-grid-legend-column table tr.inactive:hover {
    color: #333;
    opacity: 1;
}

.chart-grid-legend-column table .inactive {
    opacity: 0.4;
}
.chart-grid-legend-column table tr,
.chart-grid-legend-column table td {
    transition: 0.7s;
}

.chart-grid-ppm1-legend .chart-icon{ background-color: #66bb6a; }
.chart-grid-ppm25-legend .chart-icon{ background-color: #69BAD1; }
.chart-grid-ppm10-legend .chart-icon{ background-color: #9F8BC7; }
.chart-grid-temp-legend .chart-icon{ background-color: #D1C569; }
.chart-grid-humid-legend .chart-icon{ background-color: #C78C63; }
.chart-grid-sensor-status-legend .chart-icon{ background-color: #49d967; }
.chart-grid-filter-status-legend .chart-icon{ background-color: orange; }

/* END - Sensor full page chart grid */


.btnSmallPadding {
    padding: 12px 12px;
}

.chart-grid-legend-column table img {
    max-width: 28px;
}

.chart-grid-legend-column table tr:hover {
    cursor: pointer;
}

.chart-grid-legend-column .chart-data,
.chart-grid-legend-column table tr:hover td,
.chart-grid-legend-column table tr.inactive:hover {
    color: #333;
    opacity: 1;
}

.chart-grid-legend-column table .inactive {
    opacity: 0.4;
}
.chart-grid-legend-column table tr,
.chart-grid-legend-column table td {
    transition: 0.7s;
}

.chart-grid-ppm1-legend .chart-icon{ background-color: #66bb6a; }
.chart-grid-ppm25-legend .chart-icon{ background-color: #69BAD1; }
.chart-grid-ppm10-legend .chart-icon{ background-color: #9F8BC7; }
.chart-grid-temp-legend .chart-icon{ background-color: #D1C569; }
.chart-grid-humid-legend .chart-icon{ background-color: #C78C63; }
.chart-grid-sensor-status-legend .chart-icon{ background-color: #49d967; }
.chart-grid-filter-status-legend .chart-icon{ background-color: orange; }

/* END - Sensor full page chart grid */


.btnSmallPadding {
    padding: 12px 12px;
}

.col-form-label,
.label-on-right {
    padding: 17px 5px 0 0;
    text-align: right;
}




#W_0_0_0_MapWrapper>div {
    margin: 1px;
}

.ec-headercontent.row {
    border-bottom-left-radius: 0 !important;
    border-top-left-radius: 0 !important;
}

/**/

/*#PeriodSelect1,
#PeriodSelect2 {
    overflow: hidden;
}
*/
/*#PeriodSelect1 button.btn {
    padding: 0;
}

#PeriodSelect2 button.btn {
    padding: 0 0.8em;
}
*/
/*
input.form-control {
    word-wrap: break-word;
    word-break: break-all;
    overflow-wrap: break-word;
	height: 80px;
}*/

/**/

#ec-device-alarm-table div {
    font-size: 16px;
    margin-left: 34px; /* todo: remove colspan instead */ }




