 body {
    @import url('https://fonts.googleapis.com/css?family=Kanit');
    font-family: 'Kanit';
}
/**** boostrap override ****/
.btn-secondary{
    color: #000;
    background-color: transparent;
    border-color: transparent;
    margin-bottom: 1.5em;
}

#mainHeaderMessage {
    font-weight:bold;font-size:25px;margin-bottom:-0.3em;
}


/**** elements ******/
.dis-block {
    display: inline-block;
}
.col-container{
    display: table;
}
.col{
    display: table-cell;
}

sup {font-size:18px;}

.dashboardMain{
    margin-top: 2em;
    padding-left: 4em;
    padding-right: 4em;
    background-color: white;
}
.textRight{
    text-align: right;
}
.circleGraph .nav.nav-pills li.active {
    padding: 0em;
    width: 4.5em;
    background-color: #ffb164;
    margin-right: 1em;
    border-radius: 10px;
    text-align: center;
    font-size: 1.5em;
}
.circleGraph .nav.nav-pills li {
    padding: 0em;
    width: 4.5em;
    margin-right: 1em;
    border-radius: 10px;
    text-align: center;
    font-size: 1.5em;
}
.circleGraph .btn.btn-primary {
    right: 2.5em;
    margin-top: 1.5em;
    background-color: #9d8b7f;
    color: #fff;
    position: absolute;
    border-color: transparent;
}
.circleGraph .btn.btn-detail {
    right: 2.5em;
    margin-top: 1em;
    background-color: #9d8b7f;
    color: #fff;
    position: absolute;
    border-color: transparent;
}

.circleGraph .nav.nav-pills li.active a {
    display: block;
    color: white;
    font-weight: bold;
    text-decoration: none;
    background-color:#ffb164;
}

.circleGraph .nav.nav-pills li a {
    color: #747474;
    font-weight: bold;
}
/****** donut chart *****/

/**
  * Donut Chart
  * --------------------------------------------------
  */
.donut-chart
{
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;

    position: relative;

    overflow: hidden;

    width: 250px;
    height: 250px;

    border-radius: 50%;
    background-color: #f5f7fa;
    -webkit-box-shadow: 0 0 0 6px rgba(0, 0, 0, .2);
            box-shadow: 0 0 0 6px rgba(0, 0, 0, .2);
}

.outer-circle,
.inner-circle
{
    position: absolute;
    border-radius: 50%;
}

.outer-circle
{
    top: 6%;
    right: 6%;
    bottom: 6%;
    left: 6%;

    background-color: #fff;
    -webkit-box-shadow: inset 0 0 0 6px rgba(0, 0, 0, .2);
            box-shadow: inset 0 0 0 6px rgba(0, 0, 0, .2);
}

.inner-circle
{
    top: 22%;
    right: 22%;
    bottom: 22%;
    left: 22%;

    background-color: #f5f7fa;
    -webkit-box-shadow: 0 0 0 6px rgba(0, 0, 0, .2);
            box-shadow: 0 0 0 6px rgba(0, 0, 0, .2);
}

.inner-circle-label,
.inner-circle-value
{
    position: absolute;
    top: 50%;
    left: 0;

    display: block;

    width: 100%;

    text-align: center;
}

.inner-circle-label
{
    font-size: 18px;
    line-height: 1;

    margin-top: -30px;

    color: #aab2bd;
}

.inner-circle-value
{
    font-size: 42px;
    font-weight: bold;
    line-height: 1;

    margin-top: -12px;

    color: #656d78;
}

.wedge-container,
.wedge,
.wedge-extension,
.wedge-label
{
    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    -webkit-transition: all .4s linear;
            transition: all .4s linear;

    border-radius: 50%;
}

.wedge,
.wedge-extension
{
    -webkit-box-shadow: inset 0 0 0 6px rgba(0, 0, 0, .2);
            box-shadow: inset 0 0 0 6px rgba(0, 0, 0, .2);
}

.wedge-value
{
    font-size: 14px;
    font-weight: bold;
    line-height: 20px;

    position: absolute;
    top: 5%;
    left: 50%;

    display: block;

    width: 30px;
    margin-left: -15px;

    text-align: center;
}

.wedge-extension
{
    z-index: 100;
}

.wedge
{
    z-index: 200;
}

.wedge-label
{
    z-index: 300;
}


/**** start Head Part ******/
.headerSection {
    padding-top: -2em;
}

.headPart img{
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0.5em;
}

.weatherIcon {
    position: absolute;
    max-width: 4em;
    top: -1.5em;
    padding-left: 15em;
} 

.weather{
   padding-right: 29%;
}
.weather label{
    font-size: 1.25em;
}
.weather p{
    font-weight: bold;
    font-size: 1.5em
}
.profile label{
    color: darkgrey;
}

.profile h4{
    margin-top:0em;
}

.btn-warning {
    margin-top:-2em;
}

.btn-light{
    margin-top:-2em;
}

/**** start Energy Status ******/
.spend{
    background-color: #ffb164;
    color: white;
    text-align: center;
    padding: 1.5em;
    border-top-left-radius: 50px;
    border-bottom-right-radius: 50px;
    margin-bottom: 1em;
    margin-top: 1em;
    height: 144px;
	max-height:144px;
}
.spend h5{
    font-size:1.5em;
}
.spend span{
    font-size:1.5em;
}
.spend label{
    font-size: 1.8em;
    font-weight: bold;
    margin-top: 0.2em;
    margin-bottom: -1em;
}
.consumed{
    background-color: #9d8b7f;
    color: white;
    text-align: center;
    padding: 1.5em;
    border-top-left-radius: 50px;
    border-bottom-right-radius: 50px;
    margin-bottom: 1em;
    height: 144px;
	max-height:144px;
}
.consumed h5{
    font-size:1.5em;
}
.consumed span{
    font-size:1.5em;
}
.consumed label{
    font-size: 1.8em;
    font-weight: bold;
    margin-top: 0.2em;
    margin-bottom: -1em;
}
.goal{
    background-color: #f2f3f4;
    padding: 1em;
    padding-left: 3em;
    min-height: 304px;
    max-height: 350px;
    margin-top: 1em;
}
/*
.nav{
    width:100%;
*/
.card-body {
    background-color: transparent;
    border: transparent;
    padding: 1rem;
    margin-top: 1em;
    width: 100%;
    display: block;
}
.goal label{
    margin-left: -4.5em;
    display: inline-flex;
    margin-top: 1em;
    font-size: 2em;
    font-weight: bold;
    color: #596261;
}
.goal span{
    float:right;
    margin-right: 0.5em;
    padding-top:1.8em;
    font-size: 1.5em;
    color: #999d8c;
}

.goal h5 {
    float: left;
    font-size:1.5em;
    font-weight: normal;
    color: #5b6261;
    margin-top:1em;
}

.goal h4{
    float:left;
    font-size:0.7em;
    font-weight: normal;
    color: #5b6261;
    margin-top: 3em;
    margin-right: 8em;
}

.goal #goalPresentValue {
    
}
.goal #goalPreviousValue {
    margin-left:-5.7em;
}
.goal #goalGoalValue {
    color:#f46230;
}
.goal #goalPresentUnit{

}
.goal #goalPreviousUnit{

}
.goal #goalGoalUnit{
    margin-right: 1.1em;
}

.circleGraph{
    background-color: #f2f3f4;
    padding: 1.5em;
    min-height: 304px;
    max-height: 350px;
    margin-top: 1em;
}
.tab-icon img{
    max-width: 2em;
    margin-left: auto;
    margin-right: auto;
}
.tab-iconL img{
    max-width: 2em;
    float: left;
    margin-right: 0.5em;
}
.energyL{
    padding: 1em ;
    color: #747474;
}
.energyR{
    padding: 1em;
    color: #747474;
    text-align: center;
}
.energyL label{
    font-size: 1.5em;
    font-weight: bold;
    margin-left: 0em;
    padding-right: 0.5em;
}
.energyL span {
    font-size:1.45em;
    color: #5b6261;
}
.energyL #energyLUnit1 , #energyLUnit2, #energyLUnit4, #energyLUnit5, #energyLUnit7, #energyLUnit8 {
    float:right;
    margin-right:0.5em;
}
.energyL #energyLUnit3, #energyLUnit6, #energyLUnit9{
    float:right;
    margin-right:1.1em;
    margin-top:0.05em;
}

.energyL #energyLSolar1, #energyLSolar2, #energyLSolar3{
    margin-left:-1.7em;
}

.energyR #ShowDetailButton1, #ShowDetailButton2, #ShowDetailButton3 {
    margin-top:4.5em;
}

.energyR label{
    font-size: 2em;
    font-weight: bold;
}
.energyR span {
    font-size:1.5em;
    color: #5b6261;
}


/**** start Estimated ******/
.previous{
    margin-top: 1em;
}
.previous p {
    font-weight: bold;
    color: #999d8c;
    margin-top:-1em;
}
.estText p{
    color: #979797;
    margin-top: -1em;
}
.estValue{
    float: right;
    margin-top: -5em;
}
.estText label{
    font-size: 2.5em;
    font-weight: bold;
}
.previous h4{
    display: inline-flex;
    margin-right: 1em;
    font-weight:bold;
    font-size:1.8em;
}
.previous label{
    display: inline-flex;
    font-size: 2.5em;
    font-weight: bold;
    margin-right: 0.2em;
}
.bar{
    background-color: #19b7d2;
    -webkit-box-shadow: 3px 4px 5px 0px rgba(224,224,224,1);
    -moz-box-shadow: 3px 4px 5px 0px rgba(224,224,224,1);
    box-shadow: 3px 4px 5px 0px rgba(224,224,224,1);
    margin-top: 1em;
    padding: 2.5em 1em 0;
    margin-left: 0em;
    margin-right: 0.2em;
}
.bar h4{
    color: #fff;
    float: right;
    margin-top: 0.4em;
    margin-bottom: -0.1em;
    padding-bottom:0.5em;
    font-weight: bold;
    position:relative;
}
.bar #spentUnit {
    margin-top: 0.3em;
    margin-left: -0.8em;
    font-size:1.25em;
    color:white;
    vertical-align: middle;
    z-index:1;
    position:inherit;
}
.bar button {
    color:white;
    text-decoration: underline;
}
.bar i{
    color: #ffc107;
}
.bar #mainBar {
    color: #596261;
    width:100%;
}
.progress{
    background-color: #596261;
    border-right: 4px solid red;
}
.DayBar{
    height: 30px;
    position: relative;
    box-sizing: border-box;
    background-color: #596261;
    margin-left: 0em;
    margin-top: 0em;
    max-width:100%;
    width: 100%;
}

.DayBar #todayMark{
    font-size:1.25em;
    float:right;
    position:inherit;
    margin-top: -1.7em;
    color: white;
    z-index:1;
    white-space: nowrap;
}

.TotalDayBar{
    height: 30px;
    position: relative;
    box-sizing: border-box;
    background-color: #596261;
    margin-left: 0em;
    margin-top: 0em;
    width:100%;
}
.ProgressBar{
    height: 30px;
    position: relative;
    box-sizing: border-box;
    background-color: transparent;
    margin-left: -1.5em;
    width:100%;
}
.ProgressBar label{
    font-size:1.25em;
    color:white;
    vertical-align: middle;
    z-index:1;
    position:inherit;
}


.ProgressBar #spentBaht {
    margin-top: 2em;
    margin-right:-10em;
    float:right;
}

.ProgressBar .ProgressBar__indicator {
  
  position: absolute;
  top:0px;
  bottom:0px;
  left:0px;
  height: 30px;
  background-color: #fcba1e;
  max-width: 99.4%;
}

.ProgressBar .ProgressBar__indicator:after {
  
  content: " ";
  position: absolute;
  right: -4em;
  top: 50%;
  transform: translateY(-60%);
  background-image: url(../Images/Monitoring2/t-up.png);
  background-size: contain;
  width: 80px;
  height: 80px;
  background-repeat: no-repeat;
  background-position: center center;
}

.ProgressBar .ProgressBarBad__indicator {
  
  position: absolute;
  top:0px;
  bottom:0px;
  left:0px;
  background-color: #e36b40;
  max-width: 99.4%;
}

.ProgressBar .ProgressBarBad__indicator:after {
  
  content: " ";
  position: absolute;
  right: -4em;
  top: 50%;
  transform: translateY(-40%);
  background-image: url(../Images/Monitoring2/t-down.png);
  background-size: contain;
  width: 80px;
  height: 80px;
  background-repeat: no-repeat;
  background-position: center center;
}

.bar img{
    position: absolute;
    display: block;
    max-width: 6em;
    margin-top: -0.5em;
}
.btn-g{
    border: 1px solid #ddd;
    float: right;
}
button.bg-warning{
    background-color: #ffb164;
    -moz-box-shadow:    inset 0 0 10px #000000;
   -webkit-box-shadow: inset 0 0 10px #000000;
   box-shadow:         inset 0 0 10px #000000;
}
.bg-warning{
    background-color: #ffc107;
    color: #666;
    font-size: 1.5em;
}
.bg-exceed{
    background-color: #f0633a;
    color: #fff;
    font-size: 1.5em;
}
.estText{
    margin-top: 1em;
}

/**** graph-section ****/
.graph-section {
    border: 1px #bbb solid;
    margin: 2em 0.1em;
}
.graph-section label{
    max-width: 5em;
    display: inline;
}

.graphRight{
    border-top-left-radius: 20px;
    border-bottom-right-radius: 20px;
    max-width: 34em;
    margin-left: 2em;
    margin-right: auto;
}
.graphLeft{
    border-top-left-radius: 20px;
    border-bottom-right-radius: 20px;
    max-width: 34em;
    margin-left: 2em;
    margin-right: auto;
}

.graphLeft span {
    font-size:0.5em;
    margin-top:0em;
}

.graphLeft img {
    width:20px;height:20px;margin-top:-0.3em;
}

/**** eco-section ****/

.ecoRight{
    background-color: #f2f3f3;
    border-top-left-radius: 30px;
    border-bottom-right-radius: 30px;
    max-width: 37.5em;
    margin-left: 1em;
    margin-right: 1em;
}
.ecoLeft{
    background-color: #f2f3f4;
    border-top-left-radius: 30px;
    border-bottom-right-radius: 30px;
    max-width: 37em;
    margin-left: 1em;
    margin-right: auto;
}

.eco label{
    font-size: 1.5em;
    font-weight: bold;
    padding: 2em;
    margin-left: -0.5em;
    color: #596261;
}
.ecoLeft span {
    font-size: 1.5em;
    margin-left: 1em;
    color: #596261;
}
.ecoLeft label {
    margin-left: -2em;
}
.ecoRight span {
    font-size: 1.5em;
    margin-left: 1em;
    color: #596261;
}
.ecoRight label {
    margin-left: -2em;
}
.eco {
    margin-bottom: 5em;
}
.ecoLeft p{
     padding-left: 7em;
}
.ecoRight p{
     padding-left: 10em;
}
.eco img{
    max-height: 4em;
    margin-left: 2em;
    position: relative;
}

/**** QUERY ****/



/* Large Devices, Wide Screens */
@media only screen and (max-width : 1200px) {
    .spend label {font-size:1.5em;margin-left:-0.3em;}
    .consumed label {font-size:1.5em;margin-left:-0.3em;}
    .eco img{max-height: 3em;}
    .ecoLeft{max-width: 37.4em;}
    .ecoLeft span{font-size:1.2em;}
    .ecoLeft label{font-size:1.2em;margin-left:-1.9em;}
    .ecoRight{max-width: 37.2em;}
    .ecoRight span{font-size:1.2em;margin-left:1em;}
    .ecoRight label{margin-left:-1.9em;font-size:1.2em;}
    .circleGraph{min-height: 305px;}
    .circleGraph .nav.nav-pills li{width: 5.2em;}
    .previous p {margin-top:-0.7em;}
    .energyL label{margin-left: 0em;}
    .energyL #energyLUnit1 , #energyLUnit2, #energyLUnit4, #energyLUnit5, #energyLUnit7, #energyLUnit8 {
        float:right;
        margin-right:0.5em;
    }
    .energyL #energyLUnit3 , #energyLUnit6 , #energyLUnit9 {
        margin-right:1em;
    }
    .energyR label {font-size:1.5em;}
    .energyR #ShowDetailButton1, #ShowDetailButton2, #ShowDetailButton3 { margin-top:5.5em; }

    .dis-block{display: block;}
    .weatherIcon {margin-left: 1em;}
    .circleGraph .btn.btn-primary { margin-bottom: -1em; }
    .previous label{font-size: 1.8em;}
    .ProgressBar .ProgressBar__indicator {max-width: 100%;}
    .ProgressBar label{margin-left:10%;}
    .graphLeft{margin-left: 0em;}
    .graphRight{margin-left: 0em;}
    
    .goal label {font-size:1.6em;}
    .goal h4 {margin-right: 8em;}
    .goal #goalPresentValue {margin-top:1.5em;margin-left:-5.25em;}
    .goal #goalPreviousValue {margin-top:-1em;margin-left:1em;}
    .goal #goalGoalValue {margin-top:1.5em;margin-left:-5em;}
    .goal #goalPresentUnit{margin-top:-0.2em;}
    .goal #goalPreviousUnit{margin-top:-2.1em;}
    .goal #goalGoalUnit{margin-top:-0.1em;margin-right:1.1em;}
}   

/* Large Devices, Wide Screens */
@media only screen and (max-width : 1024px) {
    .weatherIcon {margin-left: -3em;}
    .ecoLeft {max-width:30em;}
    .ecoRight {max-width:30em;}

    .ecoRight label{font-size:1.2em;}
    .ecoRight span{font-size:1.2em;margin-left:1em;}

    .goal h4 {margin-right:1em;}
    .goal #goalPresentValue {margin-top:1.5em;margin-left:-6em;}
    .goal #goalPreviousValue {margin-top:1.5em;margin-left:-7.4em;}
    .goal #goalGoalValue {margin-left:-5.8em;}
    .goal #goalPresentUnit{margin-top:-0.1em;margin-right:0em;}
    .goal #goalPreviousUnit{margin-top:-2.1em;margin-right:0em;}
    .goal #goalGoalUnit{margin-right:0.6em;}
    
}

/* Medium Devices, Desktops */
@media only screen and (max-width : 991px) {
    .goal{
        padding: 0;
        padding-left: 17em;
        padding-top: 2em;
        margin-left: -0.5em;
        margin-right: -0.5em;
    }
    .goal h4 {margin-right:23em;}
    .goal h5 {margin-left:-2.5em;}
    
    .goal #goalPresentValue {margin-top:1.5em;margin-left:-5.5em;}
    .goal #goalPreviousValue {margin-top:1.5em;margin-left:-7em;}
    .goal #goalGoalValue {margin-left:-5.4em;}
    .goal #goalPresentUnit{margin-top:-0.3em;margin-right:9em;}
    .goal #goalPreviousUnit{margin-top:-0.2em;margin-right:9em;}
    .goal #goalGoalUnit{margin-right:9.6em;}

    .spend{
        padding: 0.8em;
        border-top-left-radius: 30px;
        border-bottom-right-radius: 30px;
    }
    .spend label {font-size:2em;}
    .consumed{
        padding: 0.8em;
        border-top-left-radius: 30px;
        border-bottom-right-radius: 30px;
    }
    .consumed h5{
        margin-top: 0.8em;
        font-size: 1.5em;
    }
    .circleGraph .nav.nav-pills li.active{
        width: 5em;
        margin-right: 1em;
    }
    .circleGraph .nav.nav-pills li{
        width: 5em;
        margin-left: 0em;
        margin-right: 1em;
    }
    .energyL{
        padding: 1em 0;
    }
    .card-body{
        margin-top: 0.5em;
    }
    .previous h4{
        font-size: 1em;
    }
    .eco label{
        margin-left: 0.2em;
        margin-top: 0em;
        font-size: 2em;
        padding: 0;
    }
    .ecoRight span{
        font-size: 1.6em;
        margin-left: 0.5em;
    }
    .ecoLeft span{
        font-size: 1.6em;
        margin-left: 0.5em;
    }
    .eco img{
        max-width: 4em;
        float: left;
        margin-right: 1em;
    }
    .ecoLeft img{
        margin-top: 0em;
    }
    .ecoRight img{
        margin-top: 0em;
    }
    .ecoLeft{
        padding: 2em 0;
        max-width: 45.5em;
        margin-right: 1em;
    }
    .ecoRight{
        margin-top: 1em;
        padding: 2em 0;
        max-width: 45.5em;
    }
    .profile h4{
        font-size: 1.4em;
    }

    .previous h4{
        font-size:1.8em;
    }

    .previous p {
        margin-top:-0.5em;
    }

    .weather{
        padding-right: 6em;
    }
    .weatherIcon {margin-left: 25em;}
    .ProgressBar label {font-size:18px;margin-top:-1.9em;}
    .graphLeft{margin-left: 5em;}
    .graphRight{margin-top:2em;margin-left: 5em;}
    
    .energyL #energyLUnit3 , #energyLUnit6 , #energyLUnit9 {margin-right:1.1em;}
}
/* Small Devices, Tablets */
@media only screen and (max-width : 768px) {
    .ecoRight{
        max-width: 45.5em;
        margin-top: 1em;
    }
    .ecoLeft{
        max-width: 45.5em;
        margin-top: 1em;
    }
    .dis-block{
        display: inline-block;
        padding-right: 0.5em;
    }
    .tab-iconL img{
        margin-top: 0.4125;
    }
    .previous h4{
        font-size: 1.5em;
    }
    .eco label{
        font-size: 1.5em;
    }
    .ecoLeft span{
        font-size: 1.5em;
    }.ecoRight span{
        font-size: 1.5em;
    }
    .eco img{
        max-width: 4em;
    }
    .consumed h5{
        font-size: 1.5em;
    }
    .spend h5{
        font-size: 1.5em;
    }
    .previous p{
        margin-top: -0.5em;
    }
    .circleGraph .nav.nav-pills li.active{
        width: 5em;
        margin-right: 1em;
    }
    .circleGraph .nav.nav-pills li{
        width: 5em;
        margin-right: 1em;
    }
    .weather{
        padding-right: 7em;
    }
    .weatherIcon {margin-left: 25em;}
    .ProgressBar .ProgressBar__indicator {max-width: 100%;}
    .graphLeft{margin-left: 2em;}
    .graphRight{margin-top:2em;margin-left: 2em;}
   
    .card-body {margin-top: -0.5em;}

    .bar h4 {margin-top:0.6em;}
    .goal{padding-left: 10em;}
    .goal h4 {margin-right:29em;}
    .goal h5 {padding-left: 4em;}
    .goal #goalPresentValue {margin-left:-4.5em;}
    .goal #goalPreviousValue {margin-left:-6em;}
    .goal #goalGoalValue {margin-left:-4.4em;}
    .goal #goalPresentUnit{margin-right:10em;margin-top:-0.1em;}
    .goal #goalPreviousUnit{margin-right:10em;}
    .goal #goalGoalUnit{margin-right:10.6em;}
}
/* Extra Small Devices, Phones */
@media only screen and (max-width : 480px) {
    .ecoLeft {max-width: 33.2em;font-size:0.8em;}
    .ecoRight {max-width: 33.2em;font-size:0.8em;}
    .card-body {margin-top: -1.5em;}
    .circleGraph .nav.nav-pills li.active{margin-left:1em;width: 4em;}
    .circleGraph .nav.nav-pills li{margin-left:1em;width: 3.5em;}
    .circleGraph .nav.nav-pills li.active a {font-size:0.8em;}
    .circleGraph .nav.nav-pills li a{font-size:0.8em;}
    .previous p {margin-top: -0.5em;}
    .bar h4 {font-size:1em;margin-top:1em;padding-bottom:1em;}
    .bar #spentUnit {font-size: 1em;margin-top:0.8em;}
    .ProgressBar .ProgressBar__indicator {max-width: 100%;}
    .ProgressBar label {margin-top:0em;font-size:0.8em;}
    .ProgressBar #todayMark {margin-top:-2.5em;font-size:0.8em;}
    .ProgressBar #spentBaht {margin-top:3.6em;}
    .ProgressBar .ProgressBarBad__indicator {max-width: 98.5%;}

    .graphLeft{margin-left: 0em;}
    .graphRight{margin-top:2em;margin-left: 0em;}
    .weatherIcon {margin-left: 5.5em;}
    
    .energyL #energyLUnit1 , #energyLUnit2, #energyLUnit4, #energyLUnit5, #energyLUnit7, #energyLUnit8 {
        float:right;
        margin-right:0.5em;
        margin-top:0.7em;
    }
    .energyL #energyLUnit3 , #energyLUnit6 , #energyLUnit9 {
        margin-right:1em;
        margin-top:0.2em;
    }
    .energyL #energyLElectrical1, #energyLElectrical2 ,#energyLElectrical3 {
        margin-left:-1em;
        margin-top:0.5em;
    }
    .energyL #energyLSolar1, #energyLSolar2, #energyLSolar3{
        margin-left:-1em;
        margin-top:0.5em;
    }
    .energyL #energyLSaving1, #energyLSaving2, #energyLSaving3 {
        margin-left:1em;
    }
    .energyL{margin-left:1em;max-width:13em;}
    .energyL span{font-size:1em;} 
    .energyL label{font-size:1.2em;} 
    .energyL img {margin-top:-0.5em;}

    .energyR #ShowDetailButton1, #ShowDetailButton2 ,#ShowDetailButton3 {
        margin-top:4.2em;
    }

    .energyR{margin-left:1em;}
    .energyR span{font-size:1em;} 
    .energyR label{font-size:1.2em;} 
    .btn-primary {margin-top:-4em;}
    
    .goal {margin-left: 0em;max-width:368px;} 
    .goal h4 {margin-right:11em;}
    .goal h5 {margin-left:-8em;}
    .goal #goalPresentValue {margin-left:-5.5em;}
    .goal #goalPreviousValue {margin-left:-7em;}
    .goal #goalGoalValue {margin-left:-5.4em;}
    .goal #goalPresentUnit{margin-top:-0.2em;margin-right:4em;}
    .goal #goalPreviousUnit{margin-top:-0.2em;margin-right:4em;}
    .goal #goalGoalUnit{margin-right:4.6em;}
}

@media only screen and (max-width : 425px) {
    
    .weatherIcon {margin-left: 1.5em;}
    .card-body {margin-top: 0em;}
    .circleGraph .nav.nav-pills li.active{margin-left:1em;width: 3em;}
    .circleGraph .nav.nav-pills li{margin-left:1em;width: 2em;}
    .circleGraph .nav.nav-pills li.active a {font-size:0.8em;}
    .circleGraph .nav.nav-pills li a{font-size:0.8em;}
    .ProgressBar #spentBaht {font-size:0.7em;margin-top:4.2em;}
    .ProgressBar #todayMark {margin-top:-2.6em;}
    .ProgressBar .ProgressBarBad__indicator {max-width: 98%;}
    .previous p {margin-top: -0.2em;}
    .bar h4 {font-size:1em;padding-bottom:1em;}
    .goal h4 {margin-right:1.5em;width:100%;}
    .goal h5 {margin-left:-8.5em;}
    .goal #goalPresentValue {margin-left:-5.5em;}
    .goal #goalPreviousValue {margin-left:-7em;}
    .goal #goalGoalValue {margin-left:-5.4em;}
    .goal #goalPresentUnit{margin-top:-0.2em;margin-right:2em;}
    .goal #goalPreviousUnit{margin-top:-0.2em;margin-right:2em;}
    .goal #goalGoalUnit{margin-right:2.6em;}
    .energyL #energyLSaving1, #energyLSaving2, #energyLSaving3 {margin-left: 1.1em;}
    .energyR {margin-top:-12em;}
    .energyR #ShowDetailButton1, #ShowDetailButton2 ,#ShowDetailButton3 {font-size:0.9em;margin-top:3.2em;}
}

@media only screen and (max-width : 414px) {
    .ProgressBar label {font-size: 0.8em;margin-top:4em;}
    .ProgressBar #todayMark {font-size: 0.8em;}
    .ecoLeft span {margin-left:0em;}
    .ecoRight span {margin-left:0em;}
}

/* Custom, iPhone Retina */
@media only screen and (max-width : 375px) {
    
    .bar {margin-right:0.1em;}
    .bar h4 {font-size:1em;margin-top:1em;}
    .bar #spentUnit {font-size: 1em;margin-top:0.8em;}
    .ProgressBar label {font-size:0.5em;}
    .ProgressBar #spentBaht {font-size:0.7em;margin-top:4em;margin-right:-1em;}
    .ProgressBar #todayMark {font-size: 0.8em;}
    .ProgressBar .ProgressBarBad__indicator {max-width: 97%;}
    .ecoLeft {font-size:0.8em;margin-left:1.45em;margin-right:1.3em;}
    .ecoRight {font-size:0.8em;margin-left:1.45em;}
    .weatherIcon {margin-left: -2em;}
    .card-body {margin-top: -3em;}
    .circleGraph {width: 264px;max-width:275px;}
    .circleGraph .nav.nav-pills li.active{margin-left:1em;width: 3em;}
    .circleGraph .nav.nav-pills li{margin-left:0.5em;width: 2em;}
    .circleGraph .nav.nav-pills li.active a {font-size:0.5em;}
    .circleGraph .nav.nav-pills li a{font-size:0.5em;}
    .energyL{margin-left:2em;max-width:9em;}
    .energyL span{font-size:0.7em;} 
    .energyL label{margin-left:-1em;font-size:0.7em;}
    .energyL img{width:20px;height:20px;margin-top:-0.2em;} 
    .energyL #energyLElectrical1, #energyLElectrical2 ,#energyLElectrical3 {
        margin-left:1em;
        font-size:0.8em;
    }
    .energyL #energyLSolar1, #energyLSolar2, #energyLSolar3{
        margin-left:1em;
        font-size:0.8em;
    }
    .energyL #energyLSaving1, #energyLSaving2, #energyLSaving3 {
        margin-left:1em;
        font-size:0.8em;
    }
    .energyL #energyLUnit1 , #energyLUnit2, #energyLUnit4, #energyLUnit5, #energyLUnit7, #energyLUnit8 {
        margin-top:0.7em;
    }
    .energyL #energyLUnit3 , #energyLUnit6 , #energyLUnit9 {
        margin-top:0.4em;
    }

    .energyR{margin-left:-1em;margin-top:0em;}
    .energyR span{font-size:0.8em;} 
    .energyR label{font-size:0.8em;padding-top:0.3em;} 
    .energyR img{width:20px;height:20px;} 

    .energyR #ShowDetailButton1, #ShowDetailButton2, #ShowDetailButton3{
        font-size:0.8em;
        margin-top:4.5em;
    }

    .goal {max-width:270px;}
    .goal h4 {margin-right:1.5em;}
    .goal img {width:25px;height:25px;}
    .goal #goalPresentValue {margin-left:-6.2em;font-size:1.3em;}
    .goal #goalPreviousValue {margin-left:-8em;font-size:1.3em;}
    .goal #goalGoalValue {margin-left:-6.3em;font-size:1.3em;}
    .goal #goalPresentUnit{margin-top:0.2em;font-size:1.1em;margin-right:2em;}
    .goal #goalPreviousUnit{margin-top:-2.2em;margin-right:2em;font-size:1.1em;}
    .goal #goalGoalUnit{margin-top:0.1em;font-size:1.1em;margin-right:2.5em;}
    
}

/* Custom, iPhone Retina */
@media only screen and (max-width : 320px) {
    
    #mainHeaderMessage {font-size:20px;}
    .ecoLeft {font-size:0.5em;}
    .ecoRight {font-size:0.5em;}
    .circleGraph{width: 210px;max-width: 275px;}
    .circleGraph .btn-primary {margin-top:-3em;}
    .circleGraph .nav.nav-pills li.active{margin-left:0.4em;width: 2em;}
    .circleGraph .nav.nav-pills li{margin-left:0.4em;width: 2em;}
    .circleGraph .nav.nav-pills li.active a {font-size:0.5em;}
    .circleGraph .nav.nav-pills li a{font-size:0.5em;}
    
    .card-body {margin-top: -3em;}
    .weatherIcon {margin-left: -5.7em;margin-top:2em;}

    .bar h4 {font-size:0.7em;margin-top:1em;}
    .bar #spentUnit {font-size: 0.7em;margin-top:0.8em;}
    .ProgressBar label {font-size:0.6em;margin-top:0em;}
    .ProgressBar #todayMark {font-size:0.6em;margin-top:-3em;}
    .ProgressBar #spentBaht {font-size:0.6em;margin-top:5em;margin-right:-2em;}
    
    .goal {width:216px;}
    .goal h4{margin-right:6em;font-size:0.5em;margin-top:2.7em;width:13em;}
    .goal h5{font-size:1em;margin-left:-12em;}
    .goal #goalPresentValue {font-size:1.1em;margin-left:-7em;}
    .goal #goalPreviousValue {font-size:1.1em;margin-left:-7em;margin-top:1.3em;}
    .goal #goalGoalValue {font-size:1.1em;margin-left:-7em;margin-top:1em;}
    .goal #goalPresentUnit{margin-top:0.25em;font-size:0.9em;margin-right:3em;}
    .goal #goalPreviousUnit{margin-top:0em;font-size:0.9em;margin-right:3em;}
    .goal #goalGoalUnit{margin-top:-0.3em;font-size:0.9em;margin-right:3.5em;}
    
    .energyL #energyLElectrical1, #energyLElectrical2 ,#energyLElectrical3 {
        margin-left:0em;
        font-size:0.7em;
    }
    .energyL #energyLSolar1, #energyLSolar2, #energyLSolar3{
        margin-left:0em;
        font-size:0.7em;
    }
    .energyL #energyLSaving1, #energyLSaving2, #energyLSaving3 {
        margin-left:0em;
        font-size:0.7em;
    }
    .energyL #energyLUnit1 , #energyLUnit2, #energyLUnit4, #energyLUnit5, #energyLUnit7, #energyLUnit8 {
        margin-top:0.5em;
        margin-right:3em;
    }
    .energyL #energyLUnit3 , #energyLUnit6 , #energyLUnit9 {
        margin-top:0.5em;
        margin-right:3.5em;
    }
    
    .energyL img {margin-top:0em;}
    
    .energyR {margin-top:-11em;}
    .energyR #ShowDetailButton1 ,#ShowDetailButton2, #ShowDetailButton3 {font-size:0.6em;margin-top:6em;}

}

/*** GRAPH ***/
#todayEnergyUsage {
    width: 100%;
    height: 300px;
}

#todayEnergyENUsage {
    width: 100%;
    height: 300px;
}

#energyPieGraph {
    width: 100%;
    height: 220px;
    font-size: 11px;
}

#energyPieENGraph {
    width: 100%;
    height: 220px;
    font-size: 11px;
}

#pastEnergyUsage {
    width: 100%;
    height: 300px;
}

#pastEnergyENUsage {
    width: 100%;
    height: 300px;
}

tspan, .amcharts-balloon-div {
    @import url('https://fonts.googleapis.com/css?family=Kanit');
    font-family: 'Kanit',sans-serif;
    font-size:1.05em;
}
