/* ========================================================================== 
  Style Index 
==========================================================================

  - Brand Colour Palette
  - Structure
  - Typography 
  - Primary Navigation
  - Secondary Navigation
  - Breadcrumb
  - Button Groups
  - Reset Bootstrap styles
  - Panels
  - Site Details
  - Historic Data
  - Trending
  - User Admin
  - Map
  - Alert Matrix
  - Footer
  - Media Queries 

============================================================================ 
  Brand Colour Palette 
========================================================================== */

.primary-colour    { color: #70919a; }
.secondary-colour  { color: #e3eef2; }
.accent-colour     { color: #e21608; }



/* ========================================================================== 
  Structure 
========================================================================== */


html {
    position: relative;
    min-height: 100%;
}

body {
    padding-top: 102px;
    background-color: #eee;
    font-family: HelveticaNeue-Light, 'Helvetica Neue Light', 'Helvetica Neue', Helvatica, 'Lato', Arial, sans-serif;
    margin-bottom: 60px; /* Must be same height as footer */
}

main {
     margin-left: 60px;
     margin-bottom: 150px;
}



/* ========================================================================== 
  Typography 
========================================================================== */

@font-face {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 300;
    src: url('/Content/fonts/lato-light.eot');
    src: url('/Content/fonts/lato-light.eot?#iefix') format('embedded-opentype'), 
         url('/Content/fonts/lato-light.woff') format('woff'), 
         url('/Content/fonts/lato-light.ttf') format('truetype'), 
         url('/Content/fonts/lato-light.svg#latolight') format('svg');
}

@font-face {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 400;
    src: url('/Content/fonts/lato-regular.eot');
    src: url('/Content/fonts/lato-regular.eot?#iefix') format('embedded-opentype'), 
         url('/Content/fonts/lato-regular.woff') format('woff'), 
         url('/Content/fonts/lato-regular.ttf') format('truetype'), 
         url('/Content/fonts/lato-regular.svg#latoregular') format('svg');
}

/* Improves text rendering. Warning: Can cause performance issues. Change to 'optimizeSpeed' if necessary. */
h1, h2, h3, h4, li, p, a, label, .btn {
    text-rendering: optimizeLegibility !important;
    -webkit-font-smoothing: antialiased !important;
    text-shadow: 1px 1px 1px 1px rgba(0,0,0,0.005);
}

h1, h2, h3, h4 {
    font-weight: 300;
}

h1 {
    font-size: 30px;
}

a {
    color: #e21608;
    white-space: nowrap;
}

a:hover {
    color: #e21608;
}

label {
    font-weight: 400;
}

.cursor-enlarge {
    cursor: zoom-in;
}

.switch-view {
    font-size: 30px;
    color: #666;
    margin-top: 40px;
}

.switch-view a {
    color: #999;
}

.switch-view a:hover, 
.switch-view a.active {
    color: #666;
}

.battery-life .progress {
    height: 34px;
    margin-bottom: 0;
}
    
.battery-life .progress-bar {
  font-size: 14px;
  line-height: 34px;
}



/* ========================================================================== 
  Primary Navigation 
========================================================================== */

.navbar {
    border-radius: 0;
    background-color: #fff;
    border-top: 3px solid #e21608;
}

.navbar-toggle {
    background-color: #e21608;
    padding: 17px;
    margin: 0;
    border-radius: 0;
}

.navbar-toggle .icon-bar {
    background-color: #fff;
}

.navbar-brand {
    color: #000;
    height: 40px;
}

.navbar-brand > img {
    display: inline-block;
    width: 30px;
    height: 30px;
    margin-top: -5px;
    margin-right: 10px;
}

.navbar-nav > li, 
.logout {
    border-left: 1px solid #eee;
}

.navbar-nav > li > a, 
.logout a {
    padding-top: 15px;
    padding-bottom: 15px;
}

.nav > li > a, 
.logout a {
    color: #333;
    text-transform: uppercase;
}

.nav > li > a:hover {
    background-color: #e3eef2;
}

.navbar-right {
    margin-right: 0;
}

.logout a {
    position: relative;
    display: block;
    padding: 15px;
}

.logout a:hover {
    text-decoration: none;
    background-color: #e3eef2;
}

.nav .dropdown-menu li > a {
    padding: 0px 20px;
}

.nav .dropdown-menu .divider {
    margin: 5px 0px;
}

/* ========================================================================== 
  Secondary Navigation 
========================================================================== */

.secondary-nav-panel {
    background-color: #e6e6e6;
    width: 60px;
    position: fixed;
    top: 77px;
    bottom: 0;
    left: 0;
    border-right: 1px solid #ccc;
    z-index: 999;
}

.secondary-nav {
    list-style: none;
    padding-left: 0;
}

.secondary-nav > li > a {
    display: block;
    border-bottom: 1px solid #eee;
    padding: 10px 0;
    text-align: center;
    font-size: 28px;
    color: #bcbcbc;
}

.secondary-nav > li > a:hover {
    background-color: #eee;
    color: #84a0a8;
}

.secondary-nav b {
    top: 6px;
}

.help {
    position: absolute;
    width: 100%;
    bottom: 71px;
    border-top: 1px solid #eee;
}

.logout {
    /*position: absolute;
    width: 100%;
    bottom: 0;*/
}

.secondary-nav .tooltip {
    font-size: 16px;
}

.secondary-nav-panel .tooltip-inner {
    white-space: nowrap;
}


/* ========================================================================== 
  Breadcrumb 
========================================================================== */

.breadcrumb {
    padding: 4px 15px;
    margin-bottom: 20px;
    list-style: none;
    background-color: #3E474F;
    border-radius: 0;
    position: fixed;
    width: 100%;
    top: 54px;
    left: 0;
    right: 0;
    z-index: 999;
    font-size: 11px;
}

.breadcrumb a {
    color: #fff;
}

.breadcrumb .active {
    color: #ccc;
}

/* ========================================================================== 
  Button Groups 
========================================================================== */

.btn, .btn-lg {
    border-radius: 0;
}

.btn-left {
    text-align: left;
}

.btn-info, 
.btn-info:hover {
    color: #2e5664;
}

.btn-sensor {
    background-color: #ddd;
    border: 1px solid #aaa;
    color: #000;
}

.areas-overview .btn, 
.sites-overview .btn {
    width: 19%;
    margin: 0 .7% 1% 0;
}

.input-sizer {
    display: inline-grid;
    vertical-align: top;
    align-items: center;
    position: relative;
    border: solid 0px;
    &.stacked

{
    padding: .5em;
    align-items: stretch;
    &::after, input, textarea

{
    grid-area: 2 / 1;
}

}

&::after,
input,
textarea {
    width: auto;
    min-width: 1em;
    grid-area: 1 / 2;
    font: inherit;
    margin: 0;
    resize: none;
    background: none;
    appearance: none;
    border: none;
}

span {
    padding: 0.25em;
}

&::after {
    content: attr(data-value) ' ';
    visibility: hidden;
    white-space: pre-wrap;
}

&:focus-within {
    textarea: focus, input:focus

{
    outline: solid 1px black;
    background-color: white;
}

}
}

/* ========================================================================== 
  Reset Bootstrap styles 
========================================================================== */

.page-header {
    margin-top: 0;
    border-bottom: none;
}

.page-title {
    font-size: 18px;
}

.input-group-addon, 
.input-lg {
    border-radius: 0;
}

.carousel-inner>.item>a>img, 
.carousel-inner>.item>img, 
.img-responsive, .thumbnail a>img, 
.thumbnail>img {
    width: 100%;
}

.list-group-item-link {
    background-color: #eee;
}

.badge {
    border-radius: 0;
}

.nav-tabs, 
.nav-tabs.nav-justified > li > a {
    border-bottom: none;
}

.modal-content {
    border-radius: 0;
}

/* ========================================================================== 
  Panels 
========================================================================== */

.panel, 
.panel-heading, 
.panel-footer {
    border-radius: 0;
}

.panel-heading, 
.panel-default > .panel-heading {
    background-color: #70919a;
    color: #fff;
}

.panel-title, 
.panel-toolbar {
    display: table-cell;
    vertical-align: middle;
    width: 1%;
}

h3.panel-title {
    font-size: 20px;
}

.panel-toolbar .btn {
    border-radius: 4px;
    outline: none !important;
}

.collapsed > i.fa-chevron-up:before {
    content: "";
}

.collapsed > i.fa-chevron-up:after {
    content: "\f078" !important;
}

/* ========================================================================== 
  Site Details
========================================================================== */

.sensor-group {
    min-height: 123px;
    padding: 4px 0;
    margin: 25px 0;
}

.sensor-group.track-middle{
    min-height: 60px;
    margin: 15px;
}

.sensor {  
    padding: 7.7px;
    margin: 0;
    position: relative !important;
    left: 0;
    margin: -4.2px;
    border-radius: 3px;
}

.sensor:hover {
    background-color: #ccc;
}

.btn-danger.sensor, 
.btn-warning.sensor {
    text-shadow: 1px 1px 0 #666;
}

.sensor span {
    font-weight: normal;
    text-shadow: none;
}

.no-sensor {
    opacity: .3;
}

.track-data p {
    white-space: nowrap;
    font-size: 13px;
}

.track-top .track-data {
    margin-bottom: 25px;
}   

.track-top .sensor:nth-child(2n+2) {
    position: relative;
    top: 70px;
}

.track-bottom .track-data {
    margin-top: 95px;
} 

.track-bottom .sensor:nth-child(2n+1) {
    position: relative;
    top: 70px;
}

.track-middle .track-data {
    margin-bottom: 25px;
}

.track-middle .sensor:nth-child(2n+1){
    position: relative;
}

.track-middle .sensor{
    padding: 7px 3px 7px 3px;
    margin: 0;
    font-size: 12px;
}

.sensor-data {
    display: block;
    font-size: 10px;
}

.train-track {
    background: url("/Content/css/train-track.png") 0 0 repeat-x;
    background-size: 50px;
    height: 21px;
}

.single-rail{
    background-color: gray;
    border-top: 2px groove black;
    border-bottom: 2px ridge black;
    width: 95%;
    height: 10px;
    float:none;
    margin: auto;
}

#mymap {
    position: absolute;
    top: 77px;
    left: 54px;
    bottom: 0;
    right: 0;
    z-index: -1;
}

.map > div {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.tilt-alert {
    padding: 10px;
}

.tilt-alert span {
    padding: 0 5px 0 15px;
    border-left: 1px solid rgba(255,255,255,0.5);
}

#modalCamera1 .nav, 
#modalCamera2 .nav {
    margin-top: 15px;
}

#GridView {
    width: 100% !important;
}

/* ========================================================================== 
  Historic Data
========================================================================== */

.historic-date-picker {
    position: fixed;
    top: 77px;
    right: 15px;
    width: 512px;
    background-color: #3E474F;
    padding: 0 0 10px 0;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    z-index: 10;
}

.historic-date-picker .form-control {
    width: 100%;
}

#ImageList {
    margin: 0 auto;
}

/*
 * Datepicker for Bootstrap
 * Copyright 2012 Stefan Petre
 * Licensed under the Apache License v2.0
 * http://www.apache.org/licenses/LICENSE-2.0
 */
.datepicker {
  top: 0;
  left: 0;
  padding: 4px;
  margin-top: 1px;
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  border-radius: 4px;
}
.datepicker:before {
  content: '';
  display: inline-block;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 7px solid #ccc;
  border-bottom-color: rgba(0, 0, 0, 0.2);
  position: absolute;
  top: -7px;
  left: 6px;
}
.datepicker:after {
  content: '';
  display: inline-block;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid #ffffff;
  position: absolute;
  top: -6px;
  left: 7px;
}
.datepicker > div {
  display: none;
}
.datepicker table {
  width: 100%;
  margin: 0;
}
.datepicker td,
.datepicker th {
  text-align: center;
  width: 20px;
  height: 20px;
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  border-radius: 4px;
}
.datepicker td.day:hover {
  background: #eeeeee;
  cursor: pointer;
}
.datepicker td.day.disabled {
  color: #eeeeee;
}
.datepicker td.old,
.datepicker td.new {
  color: #999999;
}
.datepicker td.active,
.datepicker td.active:hover {
  color: #ffffff;
  background-color: #006dcc;
  background-image: -moz-linear-gradient(top, #0088cc, #0044cc);
  background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#0088cc), to(#0044cc));
  background-image: -webkit-linear-gradient(top, #0088cc, #0044cc);
  background-image: -o-linear-gradient(top, #0088cc, #0044cc);
  background-image: linear-gradient(to bottom, #0088cc, #0044cc);
  background-repeat: repeat-x;
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff0088cc', endColorstr='#ff0044cc', GradientType=0);
  border-color: #0044cc #0044cc #002a80;
  border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
  *background-color: #0044cc;
  /* Darken IE7 buttons by default so they stand out more given they won't have borders */

  filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
  color: #fff;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
}
.datepicker td.active:hover,
.datepicker td.active:hover:hover,
.datepicker td.active:focus,
.datepicker td.active:hover:focus,
.datepicker td.active:active,
.datepicker td.active:hover:active,
.datepicker td.active.active,
.datepicker td.active:hover.active,
.datepicker td.active.disabled,
.datepicker td.active:hover.disabled,
.datepicker td.active[disabled],
.datepicker td.active:hover[disabled] {
  color: #ffffff;
  background-color: #0044cc;
  *background-color: #003bb3;
}
.datepicker td.active:active,
.datepicker td.active:hover:active,
.datepicker td.active.active,
.datepicker td.active:hover.active {
  background-color: #003399 \9;
}
.datepicker td span {
  display: block;
  width: 47px;
  height: 54px;
  line-height: 54px;
  float: left;
  margin: 2px;
  cursor: pointer;
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  border-radius: 4px;
}
.datepicker td span:hover {
  background: #eeeeee;
}
.datepicker td span.active {
  color: #ffffff;
  background-color: #006dcc;
  background-image: -moz-linear-gradient(top, #0088cc, #0044cc);
  background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#0088cc), to(#0044cc));
  background-image: -webkit-linear-gradient(top, #0088cc, #0044cc);
  background-image: -o-linear-gradient(top, #0088cc, #0044cc);
  background-image: linear-gradient(to bottom, #0088cc, #0044cc);
  background-repeat: repeat-x;
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff0088cc', endColorstr='#ff0044cc', GradientType=0);
  border-color: #0044cc #0044cc #002a80;
  border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
  *background-color: #0044cc;
  /* Darken IE7 buttons by default so they stand out more given they won't have borders */

  filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
  color: #fff;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
}
.datepicker td span.active:hover,
.datepicker td span.active:focus,
.datepicker td span.active:active,
.datepicker td span.active.active,
.datepicker td span.active.disabled,
.datepicker td span.active[disabled] {
  color: #ffffff;
  background-color: #0044cc;
  *background-color: #003bb3;
}
.datepicker td span.active:active,
.datepicker td span.active.active {
  background-color: #003399 \9;
}
.datepicker td span.old {
  color: #999999;
}
.datepicker th.switch {
  width: 145px;
}
.datepicker th.next,
.datepicker th.prev {
  font-size: 21px;
}
.datepicker thead tr:first-child th {
  cursor: pointer;
}
.datepicker thead tr:first-child th:hover {
  background: #eeeeee;
}
.input-append.date .add-on i,
.input-prepend.date .add-on i {
  display: block;
  cursor: pointer;
  width: 16px;
  height: 16px;
}

/* ========================================================================== 
  Trending
========================================================================== */

.chart-place-holder {
    float: left;
    width: 95%;
    height: 650px;
}

.choices-placeholder-1 {
    float: left;
    width: 90%;
}

.choices-placeholder-2 {
    float: left;
    width: 100%;
}

/* ========================================================================== 
 User Admin
========================================================================== */

.roleTemplate {
    padding: 5px;
    font-family: FontAwesome, "Open Sans", Verdana, sans-serif;
    font-style: normal;
    font-weight: normal;
    text-decoration: inherit;
}

/* ========================================================================== 
  Map
========================================================================== */

#outstation {
    color: #fff;
    position: relative;
    overflow: visible !important;
    background: #333;
    background: rgba(0,0,0,.95);
    padding: 8px 12px;
    margin-top: 30px;
}

#outstation:before {
    content: " ";
    position: absolute;
    width: 0;
    height: 0;
    border-bottom: 7px solid rgba(0,0,0,.9);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    text-indent: -999px;
    top: -6px;
    left: 73%;
    margin-left: -5px;
    margin-top: -1px;
}

.olPopupCloseBox {
    background: none !important;
    right: 10px !important;
    top: 10px !important;
}

.olPopupCloseBox:hover {
    color: #eee;
}

.olPopupCloseBox:before {
    content: "x";
    font-size: 16px;
    font-weight: bold;
}

#outstation_FrameDecorationDiv_0,
#outstation_FrameDecorationDiv_1,
#outstation_FrameDecorationDiv_2,
#outstation_FrameDecorationDiv_3, 
#outstation_FrameDecorationDiv_4 {
    display: none;
    visibility: hidden;
}

.olFramedCloudPopupContent {
    left: 0 !important;
    width: 100% !important;
}

.outstation-details {
     height: 60px;
     width: 100%;
     padding: 0 15px;
     text-align: center;
}

/* ========================================================================== 
  Alert Matrix
========================================================================== */

.maintenance {
    background-color: #8e44ad;
    color: #fff;
}

.sensor.maintenance {
    border: 1px solid #5c2c70;
}

.maintenance:hover {
    background-color: #b37bcb;
    color: #fff;
}
 
.unacknowledged-return {
    background-color: #2980b9;
    color: #fff;
}
.alarm-acknowledged {
    background-color: #000;
    color: #fff;
}
.sensor.unacknowledged-return {
    border: 1px solid #1a5073;
}

.unacknowledged-return:hover {
    background-color: #5ca9db;
    color: #fff;
}

.warning {
    background-color: #ec971d;
    color: #fff;
}

.sensor.warning {
    border: 1px solid #ec971d;
}

.warning:hover {
    background-color: #f7d19c;
    color: #fff;
}

.alarm {
    background-color: #FE2E2E;
    color: #fff;
}

.sensor.alarm {
    border: 1px solid #FE2E2E;
}

.alarm:hover {
    background-color: #FE2E2E;
    color: #fff;
}
 
.no-alarm {
    background-color: #5CB85C;
    color: #fff;
}

.sensor.no-alarm {
    border: 1px solid #3f913f;
}

.no-alarm:hover {
    background-color: #8bcd8b;
    color: #fff;
}

.offline {
    background-color: #FEF91D;
    color: #000;
}

.sensor.offline {
    border: 1px solid #000;
}

.low-battery {
    background-color: #eee;
    border: 1px solid #333;
    color: #666;
}

.low-battery:hover {
    background-color: #ccc;
    color: #666;
}

.offline:hover {
    background-color: #FEF91D;
    color: #000;
}

.alert-maintenance {
    background-color: #b37bcb;
    border: 1px solid #8e44ad;
    color: #fff;
}

.alert-alarm-acknowledged {
    background-color: #000;
    border: 1px solid #000;
    color: #fff;
}

.alert-alarm-inhand {
    background-color: #FE2E2E;
    border: 1px solid #FE2E2E;
    color: #fff;
}
.alert-unacknowledged-return {
    background-color: #5ca9db;
    border: 1px solid #1a5073;
    color: #e7f2fa;
}

.alert-high {
    background-color: #ec971d;
    border: 1px solid #ec971d;
    color: #794b0a;
}

.alert-offline {
    background-color: #FEF91D;
    border: 1px solid #fff;
    color: #000;
}

.sensor.alert-high:hover {
    background-color: #fbe7cb;
    color: #333;
}

.alert-high-high {
    background-color: #FE2E2E;
    border: 1px solid #FE2E2E;
    color: white;
}

.sensor.alert-high-high {
    background-color: #FE2E2E;
    border: 1px solid #FE2E2E;
    color: #fff;
}

.sensor.alert-high-high:hover {
    background-color: #FE2E2E;
    border: 1px solid #FE2E2E;
    color: #fff;
}

.alert-no-alarm {
    background-color: #8bcd8b;
    border: 1px solid #5CB85C;
    color: #f6fbf6;
}

.svg-maintenance {
    fill: #b37bcb;
    stroke: #8e44ad;
    stroke-width: 1;
    stroke-opacity: 1
}

.svg-text-maintenance {
    fill: #ffffff;
    text-anchor: middle;
    font-size: 10px
}

.svg-alert-alarm-acknowledged {
    fill: #000;
    stroke: #000;
    stroke-width: 1;
    stroke-opacity: 1
}

.svg-alert-alarm-inhand {
    fill: #FE2E2E;
    stroke: #FE2E2E;
    stroke-width: 1;
    stroke-opacity: 1
}

.svg-alert-unacknowledged-return {
    fill: #5ca9db;
    stroke: #1a5073;
    stroke-width: 1;
    stroke-opacity: 1
}

.svg-alert-high {
    fill: #ec971d;
    stroke: #ec971d;
    stroke-width: 1;
    stroke-opacity: 1
}

.svg-offline {
    fill: #FEF91D;
    stroke: #FEF91D;
    stroke-width: 1;
    stroke-opacity: 1
}

.svg-text-offline {
    fill: #000000;
    text-anchor: middle;
    font-size: 10px
}

.svg-alert-high-high {
    fill: #FE2E2E;
    stroke: #FE2E2E;
    stroke-width: 1;
    stroke-opacity: 1
}

.svg-text-alert-high-high {
    fill: #ffffff;
    text-anchor: middle;
    font-size: 10px
}

.svg-alert-m1 {
    fill: orange;
    stroke: orange;
    stroke-width: 1;
    stroke-opacity: 1
}

.svg-text-alert-m1 {
    fill: white;
    text-anchor: middle;
    font-size: 10px
}

.svg-alert-m2 {
    fill: #FE2E2E;
    stroke: #FE2E2E;
    stroke-width: 1;
    stroke-opacity: 1
}

.svg-text-alert-m2 {
    fill: #ffffff;
    text-anchor: middle;
    font-size: 10px
}

.svg-no-alarm {
    fill: #5CB85C;
    stroke: #5CB85C;
    stroke-width: 1;
    stroke-opacity: 1
}

.svg-text-no-alarm {
    fill: #ffffff;
    text-anchor: middle;
    font-size: 10px
}

.svg-no-alarm:hover {
    fill: #8bcd8b;
    stroke: #5CB85C;
    stroke-width: 1;
    stroke-opacity: 1
}

.svg-text-no-alarm:hover {
    fill: #ffffff;
    text-anchor: middle;
    font-size: 10px
}

.svg-low-battery {
    fill: #eee;
    stroke: #333;
    stroke-width: 1;
    stroke-opacity: 1
}

.svg-text-low-battery {
    fill: #000000;
    text-anchor: middle;
    font-size: 10px
}

.logger-camera-icon {
    fill: #000000;
    stroke: #ffffff;
    stroke-width: 0.5px
}

.logger-camera-text {
    fill: #ffffff;
    font-size: 14px
}

.fileformat {
    text-align: left;
    color: #547C87;
    font-size: 14px;
    padding: 15px;
    font-weight: bold;
    background-color: white;
    border-bottom: 2px groove #ccc;
    border-right: 2px groove #ccc;
    border-top: 2px groove #ccc;
}

.table-striped > tbody > tr:nth-of-type(odd) {
    background-color: #f9f9f9;
}

.table-hover > tbody > tr:hover {
    background-color: #f5f5f5;
}

.tableheadings {
    text-align: left;
    color: #547C87;
    font-size: 14px;
    padding: 15px;
    font-weight: bold;
    background-color: white;
    font-family: Verdana;
    border-bottom: 2px groove #ccc;
}

/* ========================================================================== 
  Footer 
========================================================================== */

footer {
    position: absolute;
    width: 100%;
    height: 60px; /* Must be same height as margin on body */
    bottom: 0;
    left: 0;
    color: #aaa;
    padding: 15px 15px 15px 75px;
    font-size: 13px;
}

footer a {
    color: #aaa;
}

footer a:hover {
    color: #666;
}

.copyright {
    text-align: right;
}

@media only screen and (min-width: 320px) and (max-width: 480px) {
    footer {
        padding-left: 15px;
        text-align: center;
    }

    .copyright {
        text-align: center;
    }
}

/* ========================================================================== 
  Internet Explorer
========================================================================== */

.lt-ie9 .sensor-group {
    height: 123px;
}

.lt-ie9 .train-track {
    background: url("/Content/css/train-track.gif") 0 0 repeat-x;
}

.lt-ie9 .panel-title, .panel-toolbar {
    margin-right: 10px !important;
}

/* ========================================================================== 
  Media Queries 
========================================================================== */

@media only screen and (min-width: 320px) and (max-width: 480px) {
    main {
        margin: 0 0 150px 0 !important;
    }
    
    .list-inline > li {
        display: block;
        padding: 5px 0;
        text-align: center;
        float: none !important;
    }
    
    .navbar {
        padding: 0;
    }
    
    .secondary-nav-panel {
        top: inherit;
        width: 100%;
        border-top: 1px solid #ccc;
    }
    
    .secondary-nav {
        margin-bottom: 0;
    }

    ul.secondary-nav {
        text-align: center;
    }
    
    .secondary-nav > li {
        display: inline-block;
        border-right: 1px solid #eee;
        margin: 0;
        padding: 0;
    }
    
    .secondary-nav > li a {
        padding: 7px 6.5px;
        font-size: 22px;
    }

    .secondary-nav > li:first-child {
        border-left: 1px solid #eee;
    }

    .sensor-group {
        margin: 0;
        padding: 0;
    }

    .sensor:nth-child(4n+4) {
        margin-right: 0;
    }

    .panel-toolbar .dropdown-menu {
        left: -134px;
    }
    
    .train-track {
        height: 31px;
    }

    .track-data p {
        text-align: center;
    }

    footer {
        bottom: 75px;
    }
}

@media only screen and (min-width: 320px) and (max-width: 768px) {
    .sensor {
        position: static !important;
        top: inherit;
        width: 21%;
        margin: 0 10px 10px 0;
    }
}

@media only screen and (min-width: 768px) {
    .sensor-group {
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
    }
}