/* Override default Flat-UI/Bootstrap */
.panel-default > .panel-heading {
  color: inherit; /* because Flat-UI doesn't override bootstrap's black */
}
.container h1 {
  margin-top: 0;
}
.nav-tabs a {
  cursor: pointer;
}

/* Flat-UI forgot to override some default Bootstrap colors.
 * Colors from https://designmodo.github.io/Flat-UI/
 */
.badge {
  background-color: #1abc9c; /* Flat-UI green */
}

.alert-success {
  background-color: #2ecc71; /* same as Success button */
  color: #ffffff;
}

.alert-danger {
  background-color: #e74c3c; /* same as Danger button */
  color: #ffffff;
}

h1 small, h2 small, h3 small {
  font-size: 50%;
  color: #95a5a6;
}

h4 small {
  color: #95a5a6;
}

/* Needed to fix display of logout button in chrome on 4k displays */
.table-display {
  display: table;
}
@-moz-document url-prefix() {
  .table-display {
     display: inline-table;
  }
}

.navbar-default .navbar-text a {
  color: #16a085; /* links in navbar-text (Hi, Aaron Nagao!) have normal link color (Flat-UI green) */
}

footer {
  margin-top: 40px;
}

/* Helper classes */
.bold {
    font-weight: bold !important;
}
.centered {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}
.clickable {
  cursor: pointer;
  cursor: hand;
}
.noListStyles {  /* overrides browser-default styling on lists */
  padding-left: 0;
  list-style-type: none;
}
.icon-loading {
  background-image: url('../images/loading.gif');
  background-size: 16px;
  display: inline-block;
  height: 16px;
  width: 16px;
}

/* prompts */
div.jqi {
    width: 600px;
    margin-left: -300px;
}
#custom_reason {
    width: 400px;
}
.prompt-explanation {
  font-size: 80%;
  color: #a1a1a1;
}
div.jqi .radio-inline{
  line-height: 1.5;
}
div.jqi .checkbox-inline{
  line-height: 1.4;
}

 div.jqi .checkbox-inline+.checkbox-inline,
 div.jqi .radio-inline+.radio-inline {
  margin-left: 20px;
 }

/* Thumbnails */
/* https://medium.com/@chrisnager/center-and-crop-images-with-a-single-line-of-css-ad140d5b4a87#.nzpcakb9z */
.vl-thumbnail {
    width: 200px;
    height: 150px;
    object-fit: cover;
}

/* Overlay a play icon over thumbnails for videos and audio recordings
 * http://stackoverflow.com/a/18322705
 */
.play-icon-overlay {
  position: relative;
}

.play-icon-overlay:after {
  content: "";
  position: absolute;
  top: -20px;
  left: 72px;

  background: transparent url('../images/play-icon.png') no-repeat center;
  opacity: 0.3;
  width: 64px;
  height: 64px;
  z-index: 100;

  pointer-events: none;
}

.play-icon-overlay:hover:after {
  opacity: 1;
}

/* used to separate individual pieces of metadata (user, date, location)
 * on journey.html, tracking.html, video.html */
p.metadata .glyphicon {
  margin-left: 1em;
}
/* <div> inside of a Google Maps InfoWindow */
.InfoWindowContent {
    /*
    Firefox bugfix: ensure infowindow expands dynamically & never has scrollbar
    http://www.canbike.org/information-technology/2013/11/01/firefox-infowindow-scrollbar-fix-google-maps-api-v3.html
    */
    line-height: 1.35;
    overflow: hidden;
    white-space: nowrap;
}
.InfoWindowContent p {
    margin-bottom: 0;
}

/* -----Alerts----- */
ul.flashes {
    /* no default styling */
    list-style-type: none;
    padding: 0;

    max-width: 50%;
    margin: 0 auto; /* horizontally-centered */
}
ul.flashes > li {
    margin: 0; /* no default styling */
    text-align: center;
}

.navbar-img {
  height: 30px;
  padding-bottom: 5px;
}

#navbar-welcome {
  margin-left: 2px;
}

#navbar-company-img {
  height: 35px;
  margin-right: -10px;
}

#navbar-user-img {
  height: 35px;
  margin-right: -10px;
}

.vl-navbar {
  height: 35px;
  margin-top: -5px;
}

.vl-navbar-anchor {
  padding-right: 15px;
}

.copyright {
  margin-left: 25px;
}

.vl-footer {
  background-color: #e5e9ea;
  line-height: 50px;
}

.vl-footer a {
  color: #666666;
}

.vl-footer a:hover {
  color: #1abc9c;
}

.vl-footer p {
  line-height: 16px;
  font-size: 12px;
  margin-top: -15px;
}

.lead { /* confirm prompt */
  margin-bottom: 0px;
}

.red {
  color: red;
}

.orange {
  color: orange;
}

.green {
  color: #1abc9c;
}

.orange {
	color: orange;
}

.select2-container {
  width: 100%;
}

.start-finish-flag {
  max-height: 1.5em;
}

/* Pagination/sorting overrides */
.table > thead > tr > th.sorting_asc {
    border-bottom: 5px solid #48c9b0;
}

.table > thead > tr > th.sorting_desc {
    border-bottom: 5px solid #48c9b0;
}

.pagination > li > a {
    color: #16a085;
}

.pagination > li > span {
    color: #16a085;
}

.pagination>.active>a, .pagination>.active>span, .pagination>.active>a:hover, .pagination>.active>span:hover, .pagination>.active>a:focus, .pagination>.active>span:focus {
    background-color: #48c9b0;
    border-color: #48c9b0;
}

/* Spinner */
#global-spinner {
    margin: auto;
    position: absolute;
    top: 0; left: 0; bottom: 0; right: 0;
    width: 200px;
    height: 200px;
    z-index: 100;
    display: none;
}

/* Datepicker overrides */
select.ui-datepicker-month, select.ui-datepicker-year {
    color: black;
}

#footage-mark-to-purge, #footage-freeze, #footage-unfreeze {
  margin-top: 5px;
  margin-bottom: 5px;
}

/* Expired/expiring/fresh color codes */
.expired {
	color: red;
}
.expiring {
	color: #CCCC00; /* dark yellow */
}
.fresh {
	color: green;
}
.frozen {
  color: #5bc0de
}
.black {
  color: black;
}


/* https://stackoverflow.com/questions/21324395/bootstrap-3-flush-footer-to-bottom-not-fixed*/

html {
  position: relative;
  min-height: 100%;
}

body {
  /* Margin bottom by footer height */
  margin-bottom: 120px;
}

.vl-footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  /* Set the fixed height of the footer here */
  height: 90px;
  background-color: #f5f5f5;
}

.no-wrap {
  white-space: pre-line; /* for \n rendering (https://stackoverflow.com/questions/4535888/jquery-text-and-newlines) */
}

td.checkbox-cell .checkbox .icons {
  left: unset;
}

td.checkbox-cell .checkbox {
  display: flex;
}

/* Custom VL DataTable styling */

/* classes defined in base.js */
.datatable-odd {
  background-color: #F4F7FC; /* very light blue */
}

.footer-img {
  max-height: 20px;
  margin-left: 5px;
  margin-right: 5px;
}

#mourning-badge {
  max-height: 20px;
}

/* to allow larger screens for dispatch page */
@media (min-width:1400px) {
  .container {
    width: 1370px;
  }
}

@media (min-width:1600px) {
  .container {
    width: 1560px;
  }
}
@media (min-width:1800px) {
  .container {
    width: 1750px;
  }
}
@media (min-width:2000px) {
  .container {
    width: 1955px;
  }
}

/* Fix for WebKit web browsers not showing overflow scrollbars by default. */
/* https://stackoverflow.com/questions/7492062/css-overflow-scroll-always-show-vertical-scroll-bar */
/* https://css-tricks.com/custom-scrollbars-in-webkit/ */
::-webkit-scrollbar {
  -webkit-appearance: none;
  width: 7px;
}
::-webkit-scrollbar-thumb:vertical {
  border-radius: 4px;
  background-color: rgba(0,0,0,.5);
  -webkit-box-shadow: 0 0 1px rgba(255,255,255,.5);
}

/* for camera assignment icon that shows up on various pages*/
.camera-assignment-icon {
  width: 40px;
}

/* for profile pictures that appear on the site */
.prof-pic {
  height: 1.5em;
  border-radius: 0.4em; /* curved edges about 1/4 size */
  margin-right: 3px;
}

.prof-pic-lg {
  height: 200px;
  width: 200px;
}

@font-face {
  font-family: 'ArticulatCF';
  src: url('../fonts/ArticulatCF/ArticulatCF-Normal.woff') format('woff');
  font-weight: 900;
  font-style: normal;
}

@font-face {
  font-family: 'ArticulatCF';
  src: url('../fonts/ArticulatCF/ArticulatCF-DemiBold.woff') format('woff');
  font-weight: DemiBold;
  font-style: normal;
}

@font-face {
  font-family: 'publico-headline-light';
  src: url('../fonts/PublicoHeadline-Light-Web-Type/PublicoHeadline-Light-Web.woff2') format('woff2');
  font-style: normal;
}
