/*
 * Style tweaks
 * --------------------------------------------------
 */

html,
body {
    overflow-x: hidden;
    /* Prevent scroll on narrow devices */
}

.widget-subtitle {
   font-size: 1.0rem;
   font-weight: bold;
   margin-top: 4px;
   color: #3078B0;
   display: block;
}

.center-card {
   display: flex;
   justify-content: center;
   flex-wrap: wrap;
}

.device {
   background-color: white;
   cursor: pointer;
}

.device-group[id^="accordion-group-"] .device:hover {
   background-color: #5bb5f329 !important;
}

.device:hover {
   background-color: #5dd2a029;
}

.device-group-count {
   font-size: 1.0rem;
}

.balanceTooltipValue {
   font-weight: bold;
   font-size: 1.0rem;
}

.device-group[id^="accordion-group-"] .card-header {
   background: linear-gradient(to right, #3078B0, rgb(8, 64, 112));
}

.chevron {
   display: flex;
   flex-direction: column;
   justify-content: center;
   height: 60px;
   position: absolute;
   top: 155px;
   color: rgba(0, 0, 0, 0.25);
}

.chevron:hover {
   background-color: #eeeeee;
}

.chevron.left {
   left: 2px;
}

.chevron.right {
   right: 2px;
}

.yes-cancel {
   width: 100px;
   margin-right: 10px;
   margin-top: 10px;
}

.less-padding {
   padding: 1px 6px;
}

.loader-icon {
   animation: spin 1.6s linear infinite;
}

.fa-chevron-up {
   -moz-transition: all 2s linear;
    -webkit-transition: all 2s linear;
    transition: all 400ms linear;
}

.invert-icon {
   -ms-transform: rotate(180deg);
   -moz-transform: rotate(180deg);
   -webkit-transform: rotate(180deg);
   transform: scaleY(-1);
}

.not-enough {
   font-style: italic;
   font-size: 1.0rem;
   color: grey;
}

.reportrange {
   display: inline-block;
}

#energyDateRangePicker .minuteselect:before {
   content: "00";
}

#energyDateRangePicker .minuteselect {
   display: none;
}

.resolution-note {
   font-size: 0.75rem;
   font-style: italic;
   display: inline-block;
   text-align: center;
}

.timespan {
   display: flex;
   justify-content: center;
   flex-direction: column;
   margin-top: 5px;
   font-weight: bold;
   color: #3078B0;
   margin-left: 15px;
   margin-right: 15px;
   margin-top: 5px;
}

@media screen and (min-width: 576px) {
   .resolution-note {
      text-align: right;
   }
   
   .resolution-details:before { 
      content: '\A'; 
   }
   
   .timespan {
      flex-direction: row;
      justify-content: space-between;
      margin-top: 15px;
   }
}

.resolution-details {
   white-space:pre;
}

#nothing-selected {
   position: relative;
   top: -50px;
}

.main-card {
   padding-left: 0px;
   padding-right: 0px;
   background-color: transparent;
   
   border-radius: 4px;
}

.main-page {
   padding-left: 0px;
   padding-right: 0px;
}

.widget-column {
   padding-left: 0px;
   padding-right: 0px;
}

@media screen and (min-width: 768px) {
   .main-card {
      padding-left: 15px;
      padding-right: 15px;
      background-color: white;
   }

   .main-page {
      padding-left: 15px;
      padding-right: 15px;
   }

   .widget-column {
      padding-left: 15px;
      padding-right: 15px;
   }
}

.instructions {
   font-size: 2.5rem;
   font-weight: bold;
   font-style: italic;
   margin-top: 200px;
}

.parameter-details table {
   font-size: 1rem;
}

.bg-gradient {
    /*    background: linear-gradient(to bottom, #000, #215349);*/
    background: linear-gradient(to right, #106957, #215349);
}

body {
    background-color: #ecf0f1;
}

foreignObject {
   
}

.content-title {
   margin-bottom: 0;
}

.content-title-details {
   font-style: italic;
}

.dashed {
   stroke-dasharray: 5,5;
}

.ago {
   font-style: normal;
}

.ago.concerned {
   font-weight: bold;
   color: #FF4060;
}

.ago.unconcerned {
   font-weight: bold;
   color: rgb(0, 165, 80);
}

#liveEnergy {
   padding: 15px;
   display: none;
}

.liveEnergyValue {
   font-weight: bold;
   color: #3078B0;
   font-size: 2.5rem;
   text-align: center;
   margin-left: auto;
   margin-right: auto;
   display: block;
}

.liveEnergyDivider {
   font-size: 0.75rem;
   border-bottom: 1px solid black;
   display: block;
   text-align: left;
   display: flex;
   justify-content: space-between;
}

.liveEnergyDividerWarning {
   font-weight: bold;
   font-style: italic;
   color: #ceb80d;
   visibility: hidden;
}

.liveEnergyValue + .liveEnergyDivider {
   margin-top: 15px;
}

.live-energy-loader {
   /* display: none; */
}

.nvd3 g.nv-groups path.nv-line {
  stroke-width: 3.0px;
  stroke-opacity: 0.6;
}

.soft-link {
   cursor: pointer;
}

.donut-title {
   font-size: 1.0rem;
   font-weight: bold;
   font-variant: small-caps;
}

.donut-time {
   font-size: 0.75rem;
   font-weight: bold;
   font-variant: small-caps;
   fill: gray;
}

.nv-pie-title {
   fill: black !important;
   font-weight: bold !important;
}

.parameter-details-box {
   height: 200px;
   position: relative;
}

.parameter-details-box svg {
   display: inline-block !important;
   height: 200px !important;
   width: 200px !important;
}

.parameter-chart {
   height: 200px;
}

.parameter-details {
   height: 200px;
   display: inline-block;
}

.parameter-details-label {
   font-weight: bold;
   font-size: 0.80rem;
   /*width: 100px;*/
}

.parameter-details-value {
   font-weight: bold;
   text-align: right;
   font-size: 0.80rem;
}

.legend-circle.phase-a {
   background-color: #084070;
}

.legend-circle.phase-b {
   background-color: #3078B0;
}

.legend-circle.phase-c {
   background-color: #70B0E0;
}

.legend-circle.phase-d {
   background-color: #FF0000;
}

.legend-circle.phase-e {
   background-color: #00FF00;
}

.legend-circle.phase-f {
   background-color: #0000FF;
}

.legend-circle.phase-g {
   background-color: #FFFF00;
}

.legend-circle.phase-h {
   background-color: #FF00FF;
}

.legend-circle.phase-i {
   background-color: #00FFFF;
}

.legend-circle.phase-j {
   background-color: "#808080";
}

.legend-circle
{
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0px solid;
  opacity: 0.7;
  display: inline-block;
  margin-right: 5px;
}

.unit {
   font-size: 50%;
}

#livePower {
   /*width: 200px;*/
   height: 200px;
   display: inline-block;
}

#liveCurrent {
   /*width: 200px;*/
   height: 200px;
   display: inline-block;
}

#liveVoltage {
   /*width: 200px;*/
   height: 200px;
   display: inline-block;
}

#energyChart {
   
}

#energyChart svg {
   
}

#powerChart svg {
   
}

.chart-tooltip {
   padding: 5px;
   max-width: 500px;
}

.nvd3.nv-line .nvd3.nv-scatter .nv-groups .nv-point {
	stroke-width: 6px;
	fill-opacity: 1;
	stroke-opacity: 0.7;
}

.device-details-1, .device-details-2 {
   
}

.device-name {
   font-weight: bold;
   font-style: normal;
}

.model-number {
   font-size: 75%;
   color: grey;
   font-weight: normal;
}

.abbreviated-id {
   font-size: 75%;
}

.device-group-name .abbreviated-id {
   font-size: 75%;
}

.device-details-1 .abbreviated-id {
   font-size: 75%;
}

.abbreviated-id {
   font-weight: normal;
   color: grey;
   border-bottom: 1px dashed grey;
}

.embeddedName .unique-name {
   position: inherit !important;
}

.embeddedName td {
  white-space: nowrap;
}

.embeddedName body {
   background-color: inherit;
   font-size: 1.00rem;
}

.nv-legend {
  opacity: 0;
}

.nv-legend-text {
   visibility: hidden;
   opacity: 0;
}

.timespan-instance {
   cursor: pointer;
   text-decoration: underline;
}

.timespan-instance.selected {
   cursor: default;
   text-decoration: none;
}

.nv-legend .unique-name {
   
}

.nv-legend .details-tooltiptext {
   
}

.nv-legend .details-tooltip {
   
}

.nv-legend .model-name {
}

.unique-name {
   position: relative;
   display: inline-block;
}

.details-tooltiptext:after, .details-tooltiptext:before {
   right: 100%;
	top: 13px;
	border: solid transparent;
	content: " ";
	height: 0;
	width: 0;
	position: absolute;
	pointer-events: none;
}

.details-tooltiptext:before {
	border-color: rgba(194, 225, 245, 0);
	border-right-color: rgba(0, 0, 0, 0.7);
	border-width: 13px;
	margin-top: -13px;
}

.unique-name .details-tooltiptext {
    visibility: hidden;
    display: inline;
    
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    border-radius: 0px 6px 6px 0px;
    padding: 5px 7px 5px 7px;
    
    font-family: monospace, monospace;
    font-size: 1rem;
    font-weight: normal;
    line-height: 1.0;
    font-variant: normal;
    text-transform: none;
    text-align: left;
    
    /* Position the tooltip */
    position: absolute;
    left: calc(100% + 15px);
    top: 0px;
    z-index: 1;
}

.details-tooltiptext table {
   color: #fff;
}

.details-tooltip:hover .details-tooltiptext {
   visibility: visible
}

.group-loader {
   border: 3px solid #106957;
   border-top: 3px solid #f3f3f3;
   border-radius: 50%;
   width: 30px;
   height: 30px;
   animation: spin 1.6s linear infinite;
   left: 50%;
   padding: 0px;
}

.tagline {
    color: white;
}

.template {
    display: none !important;
}

footer {
    padding: 30px 0;
}

.sticky {
    position: fixed;
    top: 50px !important;
}

.sticky-bottom {
    position: fixed;
    bottom: 50px !important;
}


.divider {
    height: 60px;
    margin-top: 60px;
}

.btn-cursor {
    cursor: pointer;
}

.has-error .form-control,
.help-block.error {
    color: #a94442;
    border-color: #a94442 !important;
}

.has-success .form-control {
    color: #215349;
    border-color: #215349 !important;
}

.shadow-1 {
      box-shadow: 0 6px 10px 0 rgba(0,0,0,0.24), 0 1px 18px 0 rgba(0,0,0,0.22), 0 3px 5px -1px rgba(0,0,0,0.4);
}

.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #215349;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1.6s linear infinite;
    left: calc(50% - 20px);
    position: absolute;
}

.energy-chart-loader {
   top: calc(50% - 20px);
}

.power-chart-loader {
   top: calc(50% - 20px);
}

.compact-table th, .compact-table td {
   padding: 0;
}

.dropdown-item {
   display: block;
   padding: 0.5rem 1.5rem;
   margin-bottom: 0;
   font-size: 0.875rem;
   white-space: nowrap;
}

.dropdown-title {
   display: block;
   padding: 0.5rem 1.5rem;
   margin-bottom: 0;
   font-weight: bold;
   font-size: 1.000rem;
   white-space: nowrap;
   text-decoration: underline;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/*
 * Off Canvas
 * --------------------------------------------------
 */

@media screen and (max-width: 992px) {
    .row-offcanvas {
        position: relative;
        transition: all .25s ease-out;
    }
    .tagline {
        display: none !important;
    }
    .row-offcanvas-right {
        left: 0;
    }

    .row-offcanvas-left {
        right: 0;
    }

    .row-offcanvas-right .sidebar-offcanvas {
        left: -100%;
        /* 12 columns */
    }

    .row-offcanvas-right.active .sidebar-offcanvas {
        left: -84%;
        /* 6 columns */
    }

    .row-offcanvas-left .sidebar-offcanvas {
        right: -100%;
        /* 12 columns */
    }

    .row-offcanvas-left.active .sidebar-offcanvas {
        right: -90%;
        /* 6 columns */
    }

    .row-offcanvas-right.active {
        left: 90%;
        /* 6 columns */
    }

    .row-offcanvas-left.active {
        right: 80%;
        /* 6 columns */
    }

    .sidebar-offcanvas {
        position: absolute;
        top: 0;
        width: 80%;
        /* 6 columns */
    }
}
