﻿/* Move down content because we have a fixed navbar that is 50px tall */
body {
    padding-top: 50px;
    padding-bottom: 20px;
}

/* Override the default bootstrap behavior where horizontal description lists 
   will truncate terms that are too long to fit in the left column 
*/
.dl-horizontal dt {
    white-space: normal;
}

/* Set widths on the form inputs since otherwise they're 100% wide */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"],
input[type="select"] {
    max-width: 280px;
}

.center {
    text-align: center !important;
}

.left {
    text-align: left !important;
}

.cbtn {
    height: 48px;
    color: white;
    font-weight: bold;
    font-size: 16px;
}

.cbtn.f img, .cbtn.g img {
    float: left;
    width: 28px;
    margin-top: 2px;
    margin-left: 4px;
}

.cbtn.f p, .cbtn.g p {
    float: left;
    margin: 0;
    margin-top: 5px;
    margin-left: 18px;
}

.cbtn.f {
    background-color: #4267b2;
    border: #4267b2;
}

.cbtn.f:hover {
    background-color: #10299c;
    border: #10299c;
}

.cbtn.g {
    border: thin solid #888;
    background-color: #fff;
    color: #444;
}

.cbtn.g:hover {
    border: thin solid #888;
    background-color: #eee;
    color: #444;
}

/* */

.aquastat .menu > div {
    display: inline-block;
    cursor: pointer;
    border: 1px solid lightblue;
    padding: 0 10px;
}

.aquastat .menu > div:hover, .aquastat .menu > div.active {
    text-decoration: underline;
    background: aliceblue;
}

.table {
    margin-bottom: 5px;
}

.table, .table td, .table th {
    border: none !important;
}

.table-align td:first-child, .table-align th:first-child {
    padding-left: 0px !important;
}

.table-align td:last-child, .table-align th:last-child {
    padding-right: 0px !important;
}

.table-gen td, .table-gen th {
	text-align: center;
    border-top: 1px !important;
    border: 1px solid black !important;
}

.table-striped>tbody>tr:nth-of-type(odd) {
    background-color: #e6e6e6;
}

.aquastat .table tr:first-child, 
.search .table tr:first-child, 
.list1 .table tr:first-child, 
.refs .table tr:first-child {
    background-color: #507CD1;
    color: white;
}

.list .table tr:first-child {
    background-color: #3d9850;
    color: white;
}

.aquastat .table td:first-child {
    width: 200px;
    background-color: #507CD1;
    color:white;
}

.aquastat .charts {
    width: 100%;
}

/* Popup */

.pp-overlay {
    width: 100%;
    height: 100%;
    background-color: rgb(0, 0, 0);
    filter: alpha(opacity=22);
    background-color: rgba(0, 0, 0, 0.22);
    position: fixed;
    top: 0;
    left: 0;
    cursor: pointer;
}
.gallery .pp-overlay {
    filter: alpha(opacity=70);
    background-color: rgba(0, 0, 0, 0.7);
}

.pp-overlay.pp-hidden, .pp-gallery-overlay.pp-hidden {
    background-color:transparent;
}

.pp-content {
    background-color: white;
    position: fixed !important;
    overflow-y: auto;
    overflow-x: auto;
    padding: 10px;
    border: 1px solid darkgrey;
    box-shadow: 0 4px 6px rgba(0,0,0,.25);
    border-radius:4px;
}
.pp-content:focus {    
    border: 1px solid darkgrey;
    outline-style: none;
}
.pp-content.pp-hidden {
    background-color: transparent;
}

.pp-btn-close {
    position: fixed;
    background-color: #0033a0;
    cursor: pointer;
    margin-top: -10px;
    width: 32px;
    height: 32px;
    text-align: center;
    color: white;
    line-height: 26px;
    font-size: 20px;
}

.pp-btn-close:hover {
    color: lightgrey;
}
.pp-btn-float-close {
    position: fixed;
    cursor: pointer;
    margin-top: -10px;
    width: 32px;
    height: 32px;
    text-align: center;
    color: #565B5D;
    line-height: 26px;
    font-size: 20px;
    /z-index: 1;
}

.pp-btn-float-close:hover {
    color: lightgrey;
}
.pp-header {
    position: fixed;
    margin-top: -10px;
    margin-left: -10px;
    background-color: #0033a0;
    font-size: 13px;
    line-height: 32px;
    color: #efeeee;
    height: 32px;
}

.pp-header span{
    margin-left: 10px;
}

.color-red {
    color: red;
}

#collapse-menu {
    max-height: calc(100vh - 50px);
}

@media screen and (min-width: 768px) {
    .container {
        padding: 0;
    }
}

/* Responsive: Portrait tablets and up */
@media (max-width: 600px) {
    .jumbotron {
        margin-top: 20px;
    }
    .container {
        padding-left: 5px;
        padding-right: 5px;
    }
}

/* Responsive: menu, considering long login name, rewrite bootstrap styles */
@media (max-width: 991px) {
  .navbar-header {
      float: none;
  }
  .navbar-left,.navbar-right {
      /*float: none !important;*/
  }
  .navbar-toggle {
      display: block;
  }
  .navbar-collapse {
      border-top: 1px solid transparent;
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
  }
  .navbar-fixed-top {
      top: 0;
      border-width: 0 0 1px;
  }
  .navbar-collapse.collapse {
      display: none!important;
  }
  .navbar-nav {
      /*float: none!important;
      margin-top: 7.5px;*/
  }
  .navbar-nav>li {
      float: none;
  }
  .navbar-nav>li>a {
      padding-top: 10px;
      padding-bottom: 10px;
  }
  .collapse.in{
      display:block !important;
  }
}
