@import url("./pump_flow.css");

/******   DASHBOARD   **************************************************************************************************/
.dashboardView {
    background-color: #F6F6F6;
}

.webix_view.outerWidgetPanel  {  /* Webix view div */
    /*background: green;*/
    display: flex;
    box-shadow: 2px 2px 4px 3px #eee;
}

div.outerWidgetPanel div.panel_drag_icon  {
    position: absolute;
    visibility: hidden;
    font-size: 14px;
    opacity: 0.7;
    cursor: pointer;
    left: 5px;
    top: 5px;
}

div.outerWidgetPanel div.widgetcfg  {
    position: absolute;
    visibility: hidden;
    font-size: 14px;
    opacity: 0.7;
    cursor: pointer;
    right: 5px;
    top: 5px;
}

div.outerWidgetPanel div.webix_resize_handle  {
    visibility: hidden;
}

div.outerWidgetPanel:hover div.panel_drag_icon  {
    visibility: visible;
}

div.outerWidgetPanel:hover div.widgetcfg  {
    visibility: visible;
}

div.outerWidgetPanel div.widgetcfg:hover  {
    color: #98A820;
}

div.outerWidgetPanel:hover div.webix_resize_handle  {
    visibility: visible;
}

div.widgetPanel  {
    width: 100%;
    height: 100%;
}

div.widgetPanel div.widget  {
    width: 100%;
    height: 100%;
    align-items: center;
    text-align: center;
}

div.widget div.content  {
    overflow: hidden;
    display: flex;
    width: 100%;
    height: calc(100% - 40px);
    align-items: center;
    text-align: center;
}

div.widget div.header, div.widget div.footer  {
    display: flex;
    width: 100%;
    height: 20px;
    justify-content: center;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
}

div.widget div.header  {
    border-bottom: 1px #DDD solid;
}

div.widget div.footer  {
    border-top: 1px #DDD solid;
    bottom: 0;
}

div.webix_chart_legend_item {
    font-size: 0.8em;
}

/******   FIELD VALUE   ******/
.fieldvalue {
    width:  100%;
    height:  100%;
    font-size: 14px;
}

.fieldvalueDesc {
    display: flex;
    margin: 20px 0 0 10px;
    text-align: left;
}

.fieldvalueTop {
    display: flex;
    height: 60%;
}

.fieldvalueLeft {
    display: flex;
    height: 100%;
    flex: 1;
    align-items: center;
    text-align: left;
}

.fieldvalueMiddle {
    display: flex;
    height: 100%;
    align-items: center;
    text-align: center;
    width:100px;
}

.fieldvalueGauge {
    width: 100px;
    height: 100px;
}

.fieldvalueRight {
    display: flex;
    height: 100%;
    align-items: center;
    text-align: right;
}

.fieldvalueValue {
    padding-right: 15px;
    padding-left: 15px;
    font-size:200%;
    overflow-x: hidden;
}

.fieldvalueValue .fieldcontrol {
    background-color: #FFF;
}

.fieldvalueUnit {
    padding-right: 15px;
    text-align: right;
    font-size:80%;
    color: #888;
    overflow-x: hidden;
}

.fieldvalueText {
    padding-left: 15px;
    text-align: left;
    overflow-x: hidden;
}

.fieldvalueBottom {
    width: 100%;
    height: 40%;
}

.fieldvalueBar {
    margin: 10px 15px;
    height: 10px;
    border-radius: 3px;
    background-color: #DDD;
}

.fieldvalueBarFill {
    width: 40%;
    height: 100%;
    transition: width 2s;
    border-radius: 3px;
    background-color: #3f6ad8;
}

.fieldvalueBarLeft {
    margin-left: 15px;
    font-size: 80%;
    color: #888;
    text-align: left;
    flex: 1;
}

.fieldvalueBarRight {
    margin-right: 15px;
    font-size: 80%;
    color: #888;
}

.fieldfreshness .freshnessinner {
  animation-name: fieldfresh-ani;
  animation-duration: 20s;
  animation-direction: normal;
  animation-iteration-count: 1;
  animation-timing-function: linear;
  
  height: 10px;
  background-color: #FF2020;
  width: 3px;
  margin-top: 7px;
  border-radius: 0 3px 3px 0;
}

@keyframes fieldfresh-ani {
  from {
    background-color: #20FF20;
    width: 25px;
  }
  to {
    background-color: #FF2020;
    width: 3px;
  }
}

/******   SUPERWIDGETS   ***********************************************************************************************/
/******   COMPONENTS   ******/
/* CanvasJS History Chart */

.canvas_color_1  {  color: #5899DA;  }
.canvas_color_2  {  color: #E8743B;  }
.canvas_color_3  {  color: #19A979;  }
.canvas_color_4  {  color: #ED4A7B;  }
.canvas_color_5  {  color: #945ECF;  }
.canvas_color_6  {  color: #13A4B4;  }
.canvas_color_7  {  color: #525DF4;  }
.canvas_color_8  {  color: #BF399E;  }
.canvas_color_9  {  color: #6C8893;  }
.canvas_color_10  {  color: #EE6868;  }
.canvas_color_11  {  color: #2F6497;  }

.historychart {
    height: 100%;
}

.historychart .chartnav {
    font-size: 11px;
    margin-right: 20px;
    text-align: right;
}

.historychart .chartnav .selected {
    text-decoration: underline;
}

.historychart .chartnav span {
    cursor: pointer;
}

.chart  {
    width:  100%;
    height:  calc(100% - 23px);
}

/* State Control SubWidget */
.stateControl  {
    position: relative;
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
}

.stateControl .title, .stateControl .status  {
    position: absolute;
    font-size: .9em;
    white-space: nowrap;
    width: 100%;
}

.stateControl .title  {
    top: calc(50% - 38px);
}

.stateControl .status  {
    top: calc(50% + 20px);
}

.stateControl .status .pending {
    font-size: .8em;
    font-weight: normal;
}

.statecontrolbox  {
    font-size: 3.2em;
}

.statecontrolbox, .statuscontainer  {
    position: absolute;
    width: 100%;
    top:50%;
    transform: translateY(-50%);
}

.statecontrolbox span:hover  {
    text-shadow: 2px 2px 4px #CCCCCC;
}

.stateControl .spinner  {
    height: 4em;
    width: 4em;
}

/* Spinner Animation */
.spinner {
    margin: 0 auto;
    border-left: 8px solid rgba(0,0,0,0);
    border-right: 8px solid rgba(0,0,0,0);
    border-top: 8px solid rgba(0,174,239,.8);
    border-bottom: 8px solid rgba(0,174,239,.8);
    border-radius: 50%;
    height:1.3em;
    width:1.3em;
}

.clockwise {
    animation: rotation .6s infinite linear;
}

@keyframes rotation {
    from {transform: rotate(0deg);}
    to {transform: rotate(359deg);}
}

.counterclockwise {
    animation: revrotation .6s infinite linear;
}

@keyframes revrotation {
    from {transform: rotate(0deg);}
    to {transform: rotate(-359deg);}
}

/******   Irrigation View   ******/
#irrigationLegend  {
    height: 137px;
    width: 195px;

    margin-top: 10px;
    /*margin-right: 10px;*/
    background-color: rgba(255, 255, 255, 0.3);
    background-repeat: no-repeat;
    background-position: center;
    background-size: auto;
    background-image: url("/src/images/irrlegend_small.png");
    border-radius: 4px;
    background-position-x: center;
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
}

#timeControls  {
    height: 50px;
    margin-top: 10px;

    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
}

#buttonLeft, #buttonRight  {
    cursor: pointer;
    text-align: center;
    width: 50px;
    height: 50px;
}

#buttonLeftText, #buttonRightText  {
    color: #FFFFFF;
    text-shadow: 0px 2px 6px #000000AA;
    font-size: 35px;
    line-height: 50px;
    padding: 0 3px;
    justify-items: center;
}

#buttonLeftText:before  {
    content: "◄";
    width: 100%;
    margin-left: 2px;
    margin-right: 5px;
}

#buttonRightText:before  {
    content: "►";
    width: 100%;
    margin-left: 5px;
    margin-top: 4px;
}

#dateText  {
    display: inline-block;
    font-size: 24px;
    text-shadow: 0px 0px 4px #FFFFFF;
}

/******   PUMP DETAIL SUPERWIDGET *****/
.pumpDetail  {
    width: 100%;
    height: 100%;
    font-size: 14px;
}

.pumpDetail .top {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-evenly;
    height: 120px;
}

.pumpDetail .top .right, .pumpDetail .top .middle {
    height: 100%;
    min-width: 120px;
}

.pumpDetail .top .left  {
    display: flex;
    flex-direction: column;
    min-width: 120px;
}

.pumpDetail .top .left .topleft  {
    width: 100%;
    height: calc(100% - 2.8em);
}

.pumpDetail .top .left .centerleft, .pumpDetail .top .left .bottomleft  {
    height: 1.2em;
    font-size: .8em;
}

.pumpDetail .bottom  {
    height:  calc(100% - 120px);
}

.pumpDetail .centerleft .htmlTemplate  {
    overflow: hidden;
    white-space: nowrap;
}

.pumpDetail .centerleft .htmlTemplate .fieldUnit  {
    margin-left:  3px;
}

/******   VALVE DETAIL SUPERWIDGET *****/
.valveDetail  {
    width: 100%;
    height: 100%;
    font-size: 14px;
}

.valveDetail .top {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-evenly;
    height: 120px;
}

.valveDetail .top .right, .valveDetail .top .left {
    height: 100%;
    width: 120px;
    margin: auto;
}

.valveDetail .top .middle  {
    display: flex;
    flex-direction: column;
    min-width: 120px;
    margin-top: 15px;
}

.valveDetail .top .middle .topmiddle  {
    width: 100%;
    height: calc(100% - 2.8em);
}

.valveDetail .top .middle .bottommiddle  {
    height: 1.2em;
    font-size: .8em;
    margin-top: 7px;
}

.valveDetail .bottom  {
    height:  calc(100% - 120px);
}

.valveDetail .bottommiddle .htmlTemplate  {
    overflow: hidden;
    white-space: nowrap;
}

/******   SENTEK DND SUPERWIDGET   ******/
.sentekDND  {
    width: 100%;
    height: 100%;
    font-size: 14px;
}

.sentekDND .top, .sentekDND .middle, .sentekDND .bottom  {
    height: 33%;
    display: flex;
    flex-wrap: nowrap;
}

.sentekDND .top .left, .sentekDND .middle .left, .sentekDND .bottom .left  {
    height: 100%;
    width: calc(100% - 150px);
}

.sentekDND .right .htmlTemplate  {
    margin-top: 10px;
}

.sentekDND .right .fieldUnit  {
    margin-left: 5px;
}

/******   TABLE VIEW WIDGET   ******/
div.tableview .group  {
    font-weight: 700;
    font-size: 1.1em;
    background-color: #f4f4f4;
}

div.tableview .group .tab-1  {
    margin-left: calc(8px * 0);
}

div.tableview .group .tab-2  {
    margin-left: calc(8px * 1);
}

div.tableview .group .tab-3  {
    margin-left: calc(8px * 2);
}

div.tableview .group .tab-4  {
    margin-left: calc(8px * 3);
}

div.tableview .group .tab-5  {
    margin-left: calc(8px * 4);
}

div.tableview .group .tab-6  {
    margin-left: calc(8px * 5);
}

div.tableview .group .tab-6  {
    margin-left: calc(8px * 6);
}

div.tableview .ezeio .tab-ezeio  {
    margin-left: 65px;
}

div.tableview .tab-device  {
    margin-left: 95px;
}

div.tableview .fieldValue  {
    font-size: 0.9rem;
    font-weight: 700;
}

div.tableview .fieldUnit  {
    margin-left: 5px;
    font-size: 0.9em;
}

div.tableview .badge {
    display: inline-block;
    padding: .25em .4em;
    border-radius: .25rem;
    font-size: 65%;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
}

div.tableview .badge-na {
    background-color: #DDD;
    color: #FFF;
}

div.tableview .badge-err {
    background-color: #E06828;
    color: #FFF;
}

div.tableview .badge-warn {
    background-color: #ffc107;
    color: #000;
}

div.tableview .badge-ok {
    background-color: #98A820;
    color: #FFF;
}

/******   WEATHER STATION SUPERWIDGET   ******/
.weatherStation  {
    width:  100%;
    height:  100%;
    font-size:  14px;
}

.weatherStation .top, .weatherStation .middle, .weatherStation .bottom  {
    height: 33%;
    display: flex;
    flex-wrap: nowrap;
}

.weatherStation .top .temp, .weatherStation .top .humidity, .weatherStation .top .solarRad,
.weatherStation .middle .windSpeed, .weatherStation .middle .windDirection, .weatherStation .middle .windGust,
.weatherStation .bottom .rainRate, .weatherStation .bottom .dailyRain, .weatherStation .bottom .monthlyRain  {
    position: relative;
    width: 33%;
    display: flex;
}

.weatherStation div div .chartdiv  {
    position: absolute;
    height: 100%;
    width: 100%;
}

.weatherStation div div .value  {
    position: absolute;
    margin-left: 40px;
    font-size: 1.2em;
    font-weight: 700;
}

/******   TENSOIMETER   ******/
.tensiometer  {
    width:  100%;
    height:  100%;
    font-size:  14px;
}

.tensiometer .top  {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-evenly;
}

.tensiometer .top, .tensiometer .top .left, .tensiometer .top .right  {
    height:  100%;
}

.tensiometer .top .right  {
    width: 150px;
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.tensiometer .top .right .htmlTemplate div  {
    margin-bottom: 10px;
}

.tensiometer .top .right .fieldUnit  {
    margin-left: 5px;
}

.tensiometer .top .left  {
    width: calc(100% - 150px);
}

/******   HS WATER SOURCE   ******/
.hSWaterSource  {
    width:  100%;
    height:  100%;
    font-size: 14px;
}

.hSWaterSource .top {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-evenly;
    height: 130px;
}

.hSWaterSource .top .left, .hSWaterSource .top .right  {
    height: 100%;
    width: 50%;
}

.hSWaterSource .top .left .topleft  {
    width: 100%;
    height: 120px;
}

.hSWaterSource .top .left .bottomleft  {
    width: 100%;
    height: 30px;
    font-size: .8em;
    margin-top: -11px;
}

.hSWaterSource .top .left .bottomleft .htmlTemplate .fieldUnit,
.hSWaterSource .top .right .htmlTemplate .fieldUnit  {
    margin-left:  3px;
}

.hSWaterSource .top .right .htmlTemplate  {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.hSWaterSource .top .right .htmlTemplate div  {
    margin: auto 0;
}

.hSWaterSource .top .right .htmlTemplate .label  {
    font-size: .8em;
    font-weight: 700;
    color: #7f7f7f;
    width: 100%;
    text-align: left;
    margin-left: 20%;
}

.hSWaterSource .top .right .htmlTemplate .value  {
    font-size: 1.8em;
    font-weight: 700;
    color: #3f3f3f;
    margin-top: -7px;
}

.hSWaterSource .top .right .htmlTemplate .value .fieldUnit  {
    font-size: .5em;
    font-weight: 400;
}

.hSWaterSource .bottom  {
    height:  calc(100% - 130px);
}

/******   CHILL ACCUMULATION   ******/
.chillAccumulation  {
    width:  100%;
    height:  100%;
    font-size:  14px;
}

.chillAccumulation .top  {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-evenly;
    height: 200px;
}

.chillAccumulation .top .left, .chillAccumulation .top .left .htmlTemplate  {
    height: 100%;
    width: 160px;
}

.chillAccumulation .top .left .htmlTemplate  {
    border-right: 3px solid #bfbfbf;
}

.chillAccumulation .accheader  {
    font-size: 15px;
    font-weight: 700;
    height: 58px;
    background-color: #E0E0E0;
    text-align: center;
    line-height: 58px;
}

.chillAccumulation .accheader span.vcenter  {
    display: inline-block;
    vertical-align: middle;
    line-height: normal;
}

.chillAccumulation .accbody  {
    height: calc(100% - 58px);
}

.chillAccumulation .accbody div  {
    height: 33%;
    width: 100%;
}

.chillAccumulation .accbody div div  {
    display: table;
    width: 50%;
    height: 100%;
    float: left;
    line-height: 100%;
}

.chillAccumulation .accbody div div span  {
    display: table-cell;
    vertical-align: middle;
    font-weight: 700;
    font-size: 16px;
}

.chillAccumulation .accbody div div .value  {
    font-size: 18px;
}

.chillAccumulation .top .right  {
    height: 100%;
    width: calc(100% - 165px);
}

.chillAccumulation .middle  {
    height: 30px;
    text-align: right;
    margin-top: 13px;
    margin-right: 20px;
    margin-bottom: -10px;
}

.chillAccumulation .bottom  {
    height:  calc(100% - 230px);
}

/******   FILTER STATION   ******/
.filterStation  {
    width: 100%;
    height: 100%;
    font-size: 14px;
}

.filterStation .top {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-evenly;
    height: 130px;
}

.filterStation .top .left, .filterStation .top .right  {
    height: 100%;
    width: 50%;
}

.filterStation .top .left .topleft  {
    width: 100%;
    height: 120px;
}

.filterStation .top .left .bottomleft  {
    width: 100%;
    height: 30px;
    font-size: .8em;
    margin-top: -11px;
}

.filterStation .top .left .bottomleft .htmlTemplate .fieldUnit,
.filterStation .top .right .htmlTemplate .fieldUnit  {
    margin-left:  3px;
}

.filterStation .top .right .htmlTemplate  {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.filterStation .top .right .htmlTemplate div  {
    margin: auto 0;
}

.filterStation .top .right .htmlTemplate .label  {
    font-size: .8em;
    font-weight: 700;
    color: #7f7f7f;
    width: 100%;
    text-align: left;
    margin-left: 20%;
}

.filterStation .top .right .htmlTemplate .value  {
    font-size: 1.8em;
    font-weight: 700;
    color: #3f3f3f;
    margin-top: -7px;
}

.filterStation .top .right .htmlTemplate .value .fieldUnit  {
    font-size: .5em;
    font-weight: 400;
}

.filterStation .bottom  {
    height:  calc(100% - 130px);
}

/******   FIELD GAUGE WIDGET   ******/
.fieldgauge .webix_gage_range_info {
    font-size: 0.7em;
}

.fieldgauge .webix_gage_label {
    font-size: 0.6em;
    color: #888;
}

.fieldgauge .webix_gage_value {
    font-size: 1.7em;
    padding-top: 10px;
}

/******   MANUAL SCHEDULE   ******/
.manualSchedule div[data-section-id="chart"]  {
    height: 200px !important;
    /*width: calc(100% - 145px) !important;*/
}

.manualSchedule .chart  {
    height: 200px !important;
    width: calc(100% - 5px) !important;
}

.manualSchedule .chart div {
    border: none;
    background-color: transparent;
}

.manualSchedule .blocked_gray {
    background-color: rgba(201, 201, 201, 0.21);
}

.manualSchedule .deleteButton  {
    width:  100px;
}

.manualSchedule .saveButton, .manualSchedule .pasteButton, .manualSchedule .deleteButton  {
    pointer-events: none;
    background-color: #dfdfdf;
    border-radius: 5px;
    color: #cfcfcf;
}

.manualSchedule .saveButton.active, .manualSchedule .pasteButton.active, .manualSchedule .deleteButton.active  {
    pointer-events: inherit;
    cursor: pointer;
    color: white;
    text-shadow: none;
}

.manualSchedule .saveButton.active  {
    background-color: green;
}

.manualSchedule .pasteButton.active  {
    background-color: orange;
}

.manualSchedule .deleteButton.active  {
    background-color: orangered;
}

.manualSchedule .copyButton, .manualSchedule .pasteButton  {
    margin-right: 7px;
    border-radius: 5px;
}

.manualSchedule .pasteButton, .manualSchedule .deleteButton  {
    margin-right: 14px;
}

.manualSchedule .copyButton  {
    background-color: blue;
    color: white;
}

.manualSchedule .exportButton  {
    background-color: yellow;
    border-radius: 5px;
    margin-right: 14px;
}

.manualSchedule .dhx_cal_event_line {
    line-height: 22px;
    font-size: 11px;
}

/******   IRRIGATION SUMMARY   ******/
.irrigationSummary .divchart  {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: 50% 50%;
}

.irrigationSummary .divchart .neg  {
    background-color: #ffff66;
    height: 82%;
    /*width: 88%;*/
    margin-top: 4%;
    margin-left: auto;
    border-right: 1px dashed darkgrey;
}

.irrigationSummary .divchart .pos  {
    background-color: #ffc766;
    height: 82%;
    /*width: 47%;*/
    margin-top: 4%;
    margin-right: auto;
    border-left: 1px dashed darkgrey;
}

.irrigationSummary .match  {
    background-color: #66ff66;
}

.irrigationSummary .under  {
    background-color: #ffff66;
}

.irrigationSummary .over  {
    background-color: #ffc766;
}

/******   TANK LEVEL   ******/
.tanklevel  {
    width:  100%;
    height:  100%;
    vertical-align: center;
    text-align: center;
    font-size: 14px;
}

.tanklevel h4.warning  {
    margin-top: 10px;
    margin-bottom: 5px;
}

.tanklevel .warning  {
    margin-left: 7%;
    margin-right: 7%;
}

.tankcurrent  {
    width:  100%;
    height:  50%;
}

.tank  {
    display: flex;
    justify-content: center;
    align-items: center;
    float: left;
    width: 25%;
    height: 100%;
    text-align: center;
    border-right: 1px solid lightgray;
}

.tankgaugecontainer  {
    width:  85%;
    height:  85%;
    display: flex;
    justify-content: center;
}

.tankgauge  {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    align-content: center;
    z-index: 2;
    float: left;
    position: relative;
    box-sizing: border-box;
    width:  100%;
    height:  100%;
    border: 7px #808080 solid;
    border-top: none;
    font-weight: 700;
    border-radius: 15px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1), 3px 3px 6px rgba(0, 0, 0, 0.1);
}

.tanklevelpercent  {
    width:  100%;
    font-size:  1.5em;
}

.tanklevelvalue  {
    margin-right:  5px
}

.currenttanklevel  {
    z-index: -1;
    position: absolute;
    bottom: 0;
    width:  100%;
    background: rgba(0, 255, 0, 0.25);
    border-top: none;
}

.tankalarmlevels  {
    z-index: 1;
    margin-left: -100% !important;
    position: relative;
    float: left;
    width: 100%;
    height:  calc(100% - 7px);
    color: #fff;
    font-weight: 700;
    font-size: 0.8em;
}

.tankhighalarm, .tanklowalarm  {
    display: flex;
    color: black;
    justify-content: center;
    border-top: none;
}

.tankhighalarm  {
    height: 0%;
    width: 100%;
    border-radius: 15px 15px 0px 0px;
    background: rgba(255, 0, 0, 0);
    border-bottom: 1px solid #808080;
    align-items: flex-end;
}

.tanklowalarm  {
    position: absolute;
    bottom: 0;
    height: 0%;
    width: 100%;
    border-radius: 0px 0px 15px 15px;
    border-top: 1px solid #808080;
    background: rgba(255, 0, 0, 0);
}

.tanktemp  {
    float: left;
    width:  23%;
    height:  100%;
    border-left: 1px solid lightgray;
}

/***   Thermometer SubWidget   ***/
.tg-thermometer {
    width: 100px;
    position: relative;
    height: calc(100% - 30px);
    margin: 15px auto;
    color: black;
}

.tg-thermometer .statistics {
    position: absolute;
    left: 0;
    z-index: 1;
    top: 0;
    height: 100%;
    text-shadow: 1px 1px #fff;
}

.tg-thermometer .statistics .percent {
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    text-align: right;
    position: absolute;
    width: 65px;
}

.tg-thermometer .statistics .percent.percent-a {
    bottom: calc(100% - 2px);
}

.tg-thermometer .statistics .percent.percent-b {
    bottom: calc(75% - 2px);
}

.tg-thermometer .statistics .percent.percent-c {
    bottom: calc(50% - 2px);
}

.tg-thermometer .statistics .percent.percent-d {
    bottom: calc(25% - 2px);
}

.tg-thermometer .statistics .percent.percent-e {
    bottom: calc(0% - 2px);
}

.tg-thermometer .meter {
    width: 10px;
    margin: auto;
    left: 0;
    right: 0;
    height: calc(100% - 58px);
    top: 12px;
    position: absolute;
    background-color: #d6d6d6;
    border-radius: 10px 10px 0 0;
    z-index: 1;
}

.tg-thermometer .meter .mercury {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #f44336;
    border-radius: 10px 10px 0 0;
    background: linear-gradient(0deg, #f44336, #3f51b5);
    transition: all .5s ease-in-out;
    height: 0;
}

.tg-thermometer .meter .mask {
    position: absolute;
    bottom: 0;
    overflow: hidden;
    width: 10px;
    height: 100%;
    border-radius: 10px 10px 0 0;
}
.tg-thermometer .meter .bg-color {
    position: absolute;
    width: 10px;
    height: calc(200px - 57px);
    background: linear-gradient(#2196F3, #8BC34A, #F44336);
    bottom: 0;
}
.tg-thermometer .meter .percent-current {
    position: absolute;
    left: 0;
    top: 4px;
    transform: translateX(calc(-100% - 8px)) translateY(-50%);
    background-color: #fff;
    padding: 2px 4px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1), 3px 3px 6px rgba(0, 0, 0, 0.1);
    border-radius: 2px;
    font-weight: 500;
    font-size: 1.2em;
    color: #333;
    width: 2.7em;
}

.tg-thermometer .meter .percent-current .tempunit  {
    font-size: 1em;
}

.tg-thermometer .meter .percent-current:after {
    border-left: 8px solid white;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    content: "";
    position: absolute;
    right: 0;
    transform: translateX(calc(100% - 2px));
    top: 0;
    bottom: 0;
    margin: auto;
    width: 0;
    height: 0;
}

.tg-thermometer .meter .percent-current:before {
    border-left: 7px solid rgba(0, 0, 0, 0.2);
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    content: "";
    position: absolute;
    right: 0;
    transform: translateX(calc(100% - 0px));
    top: 0;
    bottom: 0;
    margin: auto;
    width: 0;
    height: 0;
}

.tg-thermometer .draw-a {
    background-color: #fff;
    height: calc(100% - 20px);
    width: 30px;
    margin: auto;
    position: relative;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05), 1px 1px 5px rgba(0, 0, 0, 0.2);
}

.tg-thermometer .draw-a:before {
    width: 100%;
    bottom: 0px;
    left: 0;
    position: absolute;
    height: 50px;
    background-color: #fff;
    content: "";
    z-index: 1;
}

.tg-thermometer .draw-a:after {
    content: "";
    width: 50px;
    height: 50px;
    position: absolute;
    background-color: #fff;
    left: -10px;
    bottom: -20px;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05), 1px 1px 5px rgba(0, 0, 0, 0.2);
}

.tg-thermometer .draw-b {
    position: absolute;
    width: 60px;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    height: 50px;
    z-index: 1;
}
.tg-thermometer .draw-b:after {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    width: 24px;
    height: 24px;
    background-color: #f44336;
    content: "";
    border-radius: 50%;
}

.tg-thermometer .draw-b:before {
    position: absolute;
    left: 0;
    right: 0;
    width: 10px;
    top: 0;
    margin: auto;
    height: 20px;
    background-color: #f44336;
    content: "";
    border-radius: 10px 10px 0 0;
}

.centered {
    position: absolute !important;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    width: 300px;
    height: 300px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tankdata  {
    display: flex;
    justify-content: center;
    align-items: center;
    float: left;
    width:  52%;
    height: 100%;
}

.tankDataText  {
    display: grid;
    grid-template-columns: auto 25% auto 25%;
    text-align: left;
    height: 90%;
    width: 95%;
    line-height: 1.35em;
}

.tankDataText div  {
    white-space: nowrap;
    overflow: hidden;
}

.tankDataText .statusHeader  {
    grid-column: 1 / 5;
    font-size: 1.2em;
    font-weight: 700;
    text-align: center;
    border-bottom: 1px solid lightgray;
    margin-top: -6px;
}

.tankDataText .gridHeader  {
    grid-column: 1 / 5;
    font-size: 1.2em;
    font-weight: 700;
    text-align: center;
    margin-top: -6px;
}

.tankDataText .badge  {
    display: inline-block;
    margin-bottom: 4px;
}

.tankDataText .infoHeader  {
    font-weight: 700;
}

.tankdata-standalone  {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 10px;
    gap: 10px;
}

.tankdata-metrics  {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 12px;
}

.tankdata-metric  {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tankdata-label  {
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.75;
}

.tankdata-value  {
    font-size: 1.1em;
    font-weight: 600;
}

.tankdata-current  {
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid #cccccc80;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tankdata-current-value  {
    font-size: 1.6em;
    font-weight: 700;
}

div.infowindow  {
    line-height: 1.35;
    overflow: hidden;
    white-space: nowrap;
}

.gm-style-iw div, .gm-style-iw {
    /*overflow: hidden !important;*/
    max-width: 9999px !important;
    max-height: 9999px !important;
}

.tanklevel .bottom  {
    height:  50%;
}

.tank-gauge  {
    --tank-font: 12px;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    padding: 12px;
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
    font-size: var(--tank-font);
    align-self: flex-start;
    margin-right: auto;
    text-align: left;
}

.tank-gauge-body  {
    display: grid;
    grid-template-columns: 0.5fr 1.4fr 1.6fr;
    gap: 4px;
    flex: 1;
    min-height: 0;
    padding: 8px;
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
}

.tank-scale  {
    position: relative;
    height: 100%;
    width: 100%;
}

.tank-config  {
    position: absolute;
    left: 0;
    bottom: 0;
    padding: 4px;
}

.tank-pump-icon  {
    display: inline-block;
    margin-left: 6px;
    vertical-align: middle;
    font-size: 1em;
    color: #1f5160;
}

.tank-pump-icon.is-on  {
    color: #1f5160;
}

.tank-pump-icon.is-off  {
    color: #7a7a7a;
}

.tank-pump-icon.icn-spinner  {
    animation: spin-animation 1.5s infinite;
    
}

@keyframes spin-animation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(359deg);
    }
}

.tank-gauge .tank-config-btn  {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 22px;
    height: 22px;
    border: 0;
    background: transparent;
    color: #1f5160;
    padding: 0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
}

.tank-gauge .tank-config-btn:hover  {
    background: rgba(0, 0, 0, 0.08);
}

.tank-gauge-header  {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    padding: 0 6px;
    box-sizing: border-box;
}

.tank-gauge-header .widgetName  {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tank-config-icon  {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.tank-config-btn.is-disabled,
.tank-config-btn:disabled  {
    opacity: 0.5;
    cursor: not-allowed;
}

.tank-config-error  {
    color: #b00000;
    font-weight: 600;
    padding-top: 4px;
}

.tank-scale-ticks  {
    position: absolute;
    inset: 0;
}

.tank-marker-label.is-alarm  {
    color: #b00000;
}

.tank-marker-label.is-ok  {
    color: #2f8f3a;
}

.tank-tick  {
    position: absolute;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    transform: translateY(-50%);
    gap: 2px;
    justify-content: flex-end;
}

.tank-tick-label  {
    min-width: 42px;
    text-align: right;
    font-weight: 600;
    white-space: nowrap;
}

.tank-scale-right .tank-tick-label  {
    visibility: hidden;
    min-width: 0;
}

.tank-scale-right .tank-tick  {
    justify-content: flex-start;
}

.tank-tick-line  {
    width: 24px;
    height: 2px;
    background: #2b6f7d;
    opacity: 0.8;
}

.tank-scale-left .tank-tick-line  {
    margin-right: -4px;
}

.tank-scale-right .tank-tick-line  {
    margin-left: -4px;
}

.tank-visual  {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    gap: 8px;
}

.tank-shell  {
    position: relative;
    flex: 1;
    width: 100%;
    border: 2px solid #1f5160;
    border-radius: 16px;
    overflow: hidden;
    background: #ffffff;
    box-sizing: border-box;
}

.tank-water  {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 0%;
    background: #4db2e6;
    border-top: 2px solid #1f5160;
    transition: height 0.2s ease;
}

.tank-current-label  {
    position: absolute;
    left: 8px;
    right: 8px;
    text-align: center;
    font-size: 0.95em;
    font-weight: 700;
    color: #1f5160;
    background: #ffffffcc;
    border-radius: 10px;
    padding: 2px 6px;
    pointer-events: none;
    transform: translateY(50%);
}

.tank-current  {
    padding: 6px 8px;
    font-size: 1.1em;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
    display: none;
}

.tank-status-note  {
    margin-top: 4px;
    text-align: center;
    font-size: 0.9em;
    color: #a00000;
}

.tank-scale-right  {
    position: relative;
    height: 100%;
}

.tank-marker  {
    position: absolute;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    transform: translateY(-50%);
    gap: 6px;
    min-width: 0;
}

.tank-marker-line  {
    width: 10px;
    height: 2px;
    background: #2b6f7d;
    opacity: 0.8;
}

.tank-marker-box  {
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    text-align: left;
    font-weight: 600;
    color: #1f5160;
    background: transparent;
    box-shadow: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tank-marker-label  {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.tank-marker[data-field="pump_on"] .tank-marker-label  {
    overflow: visible;
    text-overflow: clip;
}


/******   NOTE WIDGET   ******/
.noteWidgetBody {
    padding: 10px;
    text-align: left;
    width:100%;
    height:100%;
    position: relative;
}

.noteWidgetBody.noteWidgetBody--map {
    position: relative;
    padding: 0;
}

.noteWidgetBody.noteWidgetBody--map p,
.noteWidgetBody.noteWidgetBody--map span {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    position: relative;
    margin: 0 !important;
    padding: 0 !important;
}

.noteWidgetMap {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
}

.noteWidgetMapContainer {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
}

.noteWidgetBody.noteWidgetBody--map .noteWidgetMap {
    position: absolute;
    inset: 0;
}

.noteWidgetBody p {
    display: block;
    margin-top: 1em;
    margin-bottom: 1em;
    margin-left: 0;
    margin-right: 0;
}

/******   SWITCH, BUTTON   ******/
.switch  {
    position: relative;
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
}

.buttonbox, .switch .statuscontainer  {
    position: absolute;
    width: 100%;
    top:50%;
    transform: translateY(-50%);
}

.buttonbox span:hover  {
    text-shadow: 2px 2px 4px #CCCCCC;
}

/****** BAR CHART ******/
.barChartWrapper {
    text-align: left;
}

.barChart {
    
}

/***** Application Rate Analysis *****/

.appRateTreeTable div.webix_column div.webix_cell {
    text-align:right;
}

.appRateTreeTable div.webix_column:first-child div.webix_cell {
    text-align:left;
}

/***** filled Cylider graphics *****/

.cylinder {
	position: relative;
	overflow: hidden;
	margin: 0 auto;
	width: 60px;
	height: 200px;
	border-radius: 50px/25px;
	background-color: rgba(160, 160, 160, 0.5);
}

.cylinder:before {
	position: absolute;
	left: 0;
	top: 0;
	width: 60px;
	height: 30px;
	border-radius: 50px/25px;
	background-color: rgba(160, 160, 160, 0.2);
	content: '';
}

.cylinder:after {
	position: absolute;
	left: 0;
	bottom: 0;
	width: 60px;
	height: 30px;
	border-radius: 50px/25px;
	background-color: rgba(160, 160, 160, 0.4);
	content: '';
}

.water {
	position: absolute;
	left: 0;
	bottom: 0;
	width: 60px;
	height: 0;
	padding-top: 30px;
	border-radius: 50px/25px;
	background-color: rgba(0, 160, 160, 0.5);
	transition: 0.3s linear;
}

.water:before {
	position: absolute;
	left: 0;
	top: 0;
	width: 60px;
	height: 30px;
	border-radius: 50px/25px;
	background-color: rgba(0, 160, 160, 0.2);
	content: '';
}

.water:after {
	position: absolute;
	left: 0;
	bottom: 0;
	width: 60px;
	height: 30px;
	border-radius: 50px/25px;
	background-color: rgba(0, 160, 160, 0.4);
	content: '';
}
