<div class="text-center"><h1>LATEST STROKE</h1></div>
<div class='row row-flex box-me'>
  <div class='col-xs-4 text-center'>
    <h2>Pump Fill</h2>
    <div class="gauge-box">
        <div data-labelheight="10" style="height: 170px; background: transparent; margin: 0 auto;" id="gauge-fillage_percent" data-chart="solidgauge" data-nodename="poc.fillage_percent" data-units="%" data-min="0" data-max="100" data-colors="0.1:#DF5353,0.5:#DDDF0D,0.9:#55BF3B" data-valuefontsize="18px"></div>
        <span data-timeupdate="fillage_percent"><%= channels["poc.fillage_percent"].timestamp %></span>
    </div>
  </div>
  <div class='col-xs-8'>
    <div style="height:300px" id="chart-fillage_percent" data-chart="chart" data-nodename1="poc.fillage_percent" data-datalabel1="Fill" data-daysofhistory="2"  data-chartlabel="" data-ylabel="" data-xlabel="Date" data-units="%"></div>
  </div>
</div>

<div class='row row-flex box-me'>
  <div class='col-xs-4 text-center'>
    <h2>Fluid Level</h2>
    <div class="gauge-box">
        <div data-labelheight="10" style="height: 170px; background: transparent; margin: 0 auto;" id="gauge-fluid_above_pump" data-chart="solidgauge" data-nodename="poc.fluid_above_pump" data-units="ft." data-min="0" data-max="10000" data-colors="0.1:#DF5353,0.5:#DDDF0D,0.9:#55BF3B" data-valuefontsize="18px"></div>
        <span data-timeupdate="fluid_above_pump"><%= channels["poc.fluid_above_pump"].timestamp %></span>
    </div>
  </div>
  <div class='col-xs-8'>
    <div style="height:300px" id="chart-fluid_above_pump" data-chart="chart" data-nodename1="poc.fluid_above_pump" data-datalabel1="Fluid Level" data-daysofhistory="2"  data-chartlabel="" data-ylabel="" data-xlabel="Date" data-units="ft."></div>
  </div>
</div>

<div class='row row-flex box-me'>
  <div class='col-xs-4 text-center'>
    <h2>Stroke Speed</h2>
    <div class="gauge-box">
        <div data-labelheight="10" style="height: 170px; background: transparent; margin: 0 auto;" id="gauge-SPM" data-chart="solidgauge" data-nodename="poc.SPM" data-units="SPM" data-min="0" data-max="12" data-colors="0.1:#DF5353,0.5:#DDDF0D,0.9:#55BF3B" data-valuefontsize="18px"></div>
        <span data-timeupdate="SPM"><%= channels["poc.SPM"].timestamp %></span>
    </div>
  </div>
  <div class='col-xs-8'>
    <div style="height:300px" id="chart-SPM" data-chart="chart" data-nodename1="poc.SPM" data-datalabel1="Speed" data-daysofhistory="2"  data-chartlabel="" data-ylabel="" data-xlabel="Date" data-units="SPM"></div>
  </div>
</div>

<div class='row row-flex box-me'>
  <div class='col-xs-4 text-center'>
    <h2>Pump HP</h2>
    <div class="gauge-box">
        <div data-labelheight="10" style="height: 170px; background: transparent; margin: 0 auto;" id="gauge-pump_hp" data-chart="solidgauge" data-nodename="poc.pump_hp" data-units="HP" data-min="0" data-max="10" data-colors="0.1:#DF5353,0.5:#DDDF0D,0.9:#55BF3B" data-valuefontsize="18px"></div>
        <span data-timeupdate="pump_hp"><%= channels["poc.pump_hp"].timestamp %></span>
    </div>
  </div>
  <div class='col-xs-8'>
    <div style="height:300px" id="chart-pump_hp" data-chart="chart" data-nodename1="poc.pump_hp" data-datalabel1="HP" data-daysofhistory="2"  data-chartlabel="" data-ylabel="" data-xlabel="Date" data-units="HP"></div>
  </div>
</div>

<div class='row row-flex box-me'>
  <div class='col-xs-4 text-center'>
    <h2>Fluid Load</h2>
    <div class="gauge-box">
        <div data-labelheight="10" style="height: 170px; background: transparent; margin: 0 auto;" id="gauge-downhole_fluid_load" data-chart="solidgauge" data-nodename="poc.downhole_fluid_load" data-units="lbs." data-min="0" data-max="10000" data-colors="0.1:#DF5353,0.5:#55BF3B,0.9:#DF5353" data-valuefontsize="18px"></div>
        <span data-timeupdate="pump_hp"><%= channels["poc.downhole_fluid_load"].timestamp %></span>
    </div>
  </div>
  <div class='col-xs-8'>
    <div style="height:300px" id="chart-downhole_fluid_load" data-chart="chart" data-nodename1="poc.downhole_fluid_load" data-datalabel1="Fluid Load" data-daysofhistory="2"  data-chartlabel="" data-ylabel="" data-xlabel="Date" data-units="lbs."></div>
  </div>
</div>

<div class="text-center"><h1>TODAY'S TOTALS</h1></div>
<div class='row row-flex'>
  <div class='col-xs-4 text-center box-me'>
    <h2>Percent Run</h2>
    <div class="gauge-box">
              <div data-labelheight="10" style="height: 170px; background: transparent; margin: 0 auto;" id="gauge1" data-chart="solidgauge" data-nodename="poc.dt_percent_run" data-units="%" data-min="0" data-max="100" data-colors="0.1:#DF5353,0.5:#DDDF0D,0.9:#55BF3B"></div>
              <span data-timeupdate="dt_percent_run"><%= channels["poc.dt_percent_run"].timestamp %></span>
          </div>
  </div>
  <div class='col-xs-4 text-center box-me'>
    <h2>Average Speed</h2>
    <div class="gauge-box">
              <div data-labelheight="10" style="height: 170px; background: transparent; margin: 0 auto;" id="gauge2" data-chart="solidgauge" data-nodename="poc.dt_average_spm" data-units="SPM" data-min="0" data-max="20" data-colors="0.1:#DF5353,0.5:#DDDF0D,0.9:#55BF3B" data-decimals="2"></div>
              <span data-timeupdate="dt_average_spm"><%= channels["poc.dt_average_spm"].timestamp %></span>
          </div>
  </div>
  <div class='col-xs-4 text-center box-me'>
    <h2>Calculated Production</h2>
    <div class="gauge-box">
              <div data-labelheight="10" style="height: 170px; background: transparent; margin: 0 auto;" id="gauge3" data-chart="solidgauge" data-nodename="poc.dt_calculated_production" data-units="BBL" data-min="0" data-max="1000" data-colors="0.1:#DF5353,0.5:#DDDF0D,0.9:#55BF3B"></div>
              <span data-timeupdate="dt_calculated_production"><%= channels["poc.dt_calculated_production"].timestamp %></span>
          </div>
  </div>
  <div class='col-xs-4 text-center box-me'>
    <h2>Projected Production</h2>
    <div class="gauge-box">
              <div data-labelheight="10" style="height: 170px; background: transparent; margin: 0 auto;" id="gauge4" data-chart="solidgauge" data-nodename="poc.dt_projected_production" data-units="HP" data-min="0" data-max="1000" data-colors="0.1:#DF5353,0.5:#DDDF0D,0.9:#55BF3B"></div>
              <span data-timeupdate="dt_projected_production"><%= channels["poc.dt_projected_production"].timestamp %></span>
          </div>
  </div>
  <div class='col-xs-4 text-center box-me'>
    <h2>Pump Intake Pressure</h2>
    <div class="gauge-box">
              <div data-labelheight="10" style="height: 170px; background: transparent; margin: 0 auto;" id="gauge5" data-chart="solidgauge" data-nodename="poc.dt_pump_intake_pressure" data-units="PSI" data-min="0" data-max="2000" data-colors="0.1:#DF5353,0.5:#DDDF0D,0.9:#55BF3B"></div>
              <span data-timeupdate="dt_pump_intake_pressure"><%= channels["poc.dt_pump_intake_pressure"].timestamp %></span>
          </div>
  </div>
  <div class='col-xs-4 text-center box-me'>
    <h2>Energy Consumed</h2>
    <div class="gauge-box">
              <div data-labelheight="10" style="height: 170px; background: transparent; margin: 0 auto;" id="gauge6" data-chart="solidgauge" data-nodename="poc.dt_kWh" data-units="kWh" data-min="0" data-max="200" data-colors="0.1:#DF5353,0.5:#DDDF0D,0.9:#55BF3B"></div>
              <span data-timeupdate="dt_kWh"><%= channels["poc.dt_kWh"].timestamp %></span>
          </div>
  </div>
</div>



<style>
  .box-me {
      position: relative;
      padding: 0.5em;
      padding-bottom: 1.5em;
      border: 1px solid #eee;
      /*margin: 1em 0;*/
  }
  .box-me .gauge-box {
      margin-top: -0.25em;
  }

  .pad15 {
      margin: 15px 15px;
  }

  .box-me h2 {
      text-transform: uppercase;
      font-size: 14px;
      color: #666;
      font-weight: 400;
      letter-spacing: 1px;
      z-index: 100;
  }
  .dynamic-chart-form {
      background-color: whiteSmoke;
      padding: 1em 0.5em;
      margin-top: 1em;
  }

  .row-flex {
      display: -webkit-box;
      display: -webkit-flex;
      display: -ms-flexbox;
      display:         flex;
      flex-wrap: wrap;
  }
  .row-flex > [class*='col-'] {
      display: flex;
      flex-direction: column;
  }

  #systemStatusTimelineContainer h2 {
      text-transform: uppercase;
      font-size: 14px;
      color: #666;
      font-weight: 400;
      letter-spacing: 1px;
      z-index: 100;
  }

</style>
