/*! HTML5 Boilerplate v8.0.0 | MIT License | https://html5boilerplate.com/ */

/* main.css 2.1.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */



@font-face {
  font-family: 'Roboto';
  src: local('Roboto'),
       url('css/Roboto/Roboto-Light-ttf')
       format('truetype');  
}



/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
  font-family: 'Roboto';
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Vendor-prefixed and regular ::selection selectors cannot be combined:
 * https://stackoverflow.com/a/16982510/7133471
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.sr-only {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
 * Extends the .sr-only class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.sr-only.focusable:active,
.sr-only.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
  content: " ";
  display: table;
}

.clearfix::after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}

@media print,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  /*
   * Printing Tables:
   * https://web.archive.org/web/20180815150934/http://css-discuss.incutio.com/wiki/Printing_Tables
   */
  thead {
    display: table-header-group;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}



.rad{
  opacity: 0;
}
.set {
  display: none;
  opacity: 0;
}
.btn {
  display: inline-block;
  border: 2px inset gray;
  border-radius: 6px;
  padding: 2px 3px;
  cursor: pointer
}

.btn:hover {
  border-color: tomato;
  color: tomato;
  transition: .75s ease;
}

legend {
  font-size: 1.5em
}

/***************************************************************
body stuff:
***************************************************************/

/*
  change the label background on labels
*/
.toggle-a:checked ~ .toggle-a-btn > label,
.toggle-a:not(:checked) ~ .toggle-b-btn > label{
  background-color: #b3b3b3;
}
/*
  toggle the label state too if just toggle-a (checkbox, not radio)
  use only toggle-a-btn_state-a and toggle-a-btn_state-b for single checkboxes
*/
.toggle-a:checked ~ .toggle-a-btn_state-a,
.toggle-a:checked ~ .toggle-b-btn_state-a{
  display:none !important;
}
.toggle-a:not(:checked) ~ .toggle-a-btn_state-b,
.toggle-a:not(:checked) ~ .toggle-b-btn_state-b{
  display:none !important;
}
.toggle-a ~ .toggle-a-content,
.toggle-a ~ .completed,
.toggle-b ~ .toggle-b-content{
  display: none;
}
.toggle-a:checked ~ .toggle-a-content,
.toggle-a:checked ~ .completed,
.toggle-b:checked ~ .toggle-b-content{
  display: block;
  opacity: 1;
}

/***************************************************************
signature stuff:
***************************************************************/
.signature-wrapper {
  position: relative;
  width: 400px;
  height: 200px;
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
  
}

.signature-pad {
  position: absolute;
  left: 0;
  top: 0;
  width:400px;
  height:200px;
  background-color: white;
  border: 2px solid #000;
  border-radius: 5px;
}

/***************************************************************
scope of work page
***************************************************************/

/*
##scope_of_work_form {
  display: flex ;
  flex-direction: column;
  margin: 15px;
}
*/
#scope_of_work_form label.form-label {
  padding-left: 0;
}

.form-label {
  font-size: 1.25em;
}

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type=number] {
  -moz-appearance: textfield;
}

#scope_of_work input ,
#scope_of_work select,
#scope_of_work textarea {
  /* background-color: #999; */
  border: 2px solid #000;
  border-radius: 5px;
  /* color: #fff; */
}

.num-input-sm{
  width:3em;
}
.num-input {
  width:7em;
}

p {
  display: flex;
  flex-wrap: wrap;
  font-size: 12px;
}

body > h1,
body > h2,
body > h3,
body > h4,
body > h5,
body > h6{
  display:inline;
}

input:read-only,
textarea:read-only{
  background-color:#EEE;
  color: #555;
}
select{
  background-color:unset;
}


















/**************************\
  Basic Modal Styles
\**************************/

.modal {
  font-family: -apple-system,BlinkMacSystemFont,avenir next,avenir,helvetica neue,helvetica,ubuntu,roboto,noto,segoe ui,arial,sans-serif;
}

.modal__overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal__container {
  background-color: #fff;
  padding: 30px;
  max-height: 100vh;
  border-radius: 4px;
  overflow-y: auto;
  box-sizing: border-box;
}

.modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal__title {
  margin-top: 0;
  margin-bottom: 0;
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.25;
  color: #00449e;
  box-sizing: border-box;
}

.modal__close {
  background: transparent;
  border: 0;
}

.modal__header .modal__close:before { content: "\2715"; }

.modal__content {
  margin-top: 2rem;
  margin-bottom: 2rem;
  line-height: 1.5;
  color: rgba(0,0,0,.8);
}

.modal__btn {
  font-size: .875rem;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: .5rem;
  padding-bottom: .5rem;
  background-color: #e6e6e6;
  color: rgba(0,0,0,.8);
  border-radius: .25rem;
  border-style: none;
  border-width: 0;
  cursor: pointer;
  -webkit-appearance: button;
  text-transform: none;
  overflow: visible;
  line-height: 1.15;
  margin: 0;
  will-change: transform;
  -moz-osx-font-smoothing: grayscale;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  transition: -webkit-transform .25s ease-out;
  transition: transform .25s ease-out;
  transition: transform .25s ease-out,-webkit-transform .25s ease-out;
}

.modal__btn:focus, .modal__btn:hover {
  -webkit-transform: scale(1.05);
  transform: scale(1.05);
}

.modal__btn-primary {
  background-color: #00449e;
  color: #fff;
}



/**************************\
  Demo Animation Style
\**************************/
@keyframes mmfadeIn {
    from { opacity: 0; }
      to { opacity: 1; }
}

@keyframes mmfadeOut {
    from { opacity: 1; }
      to { opacity: 0; }
}

@keyframes mmslideIn {
  from { transform: translateY(15%); }
    to { transform: translateY(0); }
}

@keyframes mmslideOut {
    from { transform: translateY(0); }
    to { transform: translateY(-10%); }
}

.micromodal-slide {
  display: none;
}

.micromodal-slide.is-open {
  display: block;
}

.micromodal-slide[aria-hidden="false"] .modal__overlay {
  animation: mmfadeIn .3s cubic-bezier(0.0, 0.0, 0.2, 1);
}

.micromodal-slide[aria-hidden="false"] .modal__container {
  animation: mmslideIn .3s cubic-bezier(0, 0, .2, 1);
}

.micromodal-slide[aria-hidden="true"] .modal__overlay {
  animation: mmfadeOut .3s cubic-bezier(0.0, 0.0, 0.2, 1);
}

.micromodal-slide[aria-hidden="true"] .modal__container {
  animation: mmslideOut .3s cubic-bezier(0, 0, .2, 1);
}

.micromodal-slide .modal__container,
.micromodal-slide .modal__overlay {
  will-change: transform;
}

.icon-sm {
  object-fit: cover;
  object-position: center; 
  height:3.7rem;
  width:3.7rem;
  border-radius: .25rem;
}
.img-sm{
  max-height:7rem;
  max-width:7rem;
  border-radius: .25rem;
}
.signature-sm{
  max-height:3.5rem;
  max-width:7rem;
}

.past-work-order-child{
}
#formPhotos .photo-gallery img,
#modal-camera .photo-gallery img,
.img-gallery .img-thumbnail {
  width:9em;
}

.img-gallery {
  overflow:hidden;
}
.img-gallery .workorder-attached-image{
  display:inline-block;
  border:1px solid grey;
  border-radius: .3em;
  margin:1px;
  max-width:42%;
}
.slider{
  overflow-y: hidden;
  height:auto;
	transition-property: all;
	transition-duration: 10s;
	transition-timing-function: cubic-bezier(0, 1, 0.5, 1);
}
.closed{
  height:0px;
}
#workorders-table{
  border:1px solid #DDD;
}
#workorders-table thead th{
  border-left:1px solid #DDD;
}
#workorders-table td{
 border-top:1px solid #555;
 border-left:1px solid #DDD;
}
@media (min-width: 1400px) {
  .container.container-xl{
    max-width:1350px;
  }
}

@media (min-width: 1900px) {
  .container.container-xl{
    max-width:1850px;
  }
}

#work_order_list .header{
  background-color: #6c757d;
}
#work_order_list .completed .header{
  background-color: #000;
}

.alternating .elem:nth-child(even),
.alternating .alternating-elem:nth-child(even){
  background-color: #unset;
}
.alternating .elem:nth-child(odd),
.alternating .alternating-elem:nth-child(odd){
  background-color: #f0f0f0;
}
body .bg-light{
  background-color: #f0f0f0 !important;
}
.bg-lighter{
  background-color: #f8f9fa;
}
.bg-pale-green{
  background: rgba(100,255,150, .2) ;
}
.bg-pale-red{
  background: rgba(255,155,100, .2) ;
}
.bg-pale-blue{
  background: rgba(100,155,255, .2) ;
}
.bg-pale-brown{
  background: rgba(141,94,6, .2) ;
}
th {
  text-transform: capitalize;
}



/**************************\
  Loader/Spinner
\**************************/


.loader {
  font-size: 10px;
  margin: 50px auto;
  text-indent: -9999em;
  width: 11em;
  height: 11em;
  border-radius: 50%;
  background: #cccccc;
  background: -moz-linear-gradient(left, #cccccc 10%, rgba(255, 255, 255, 0) 42%);
  background: -webkit-linear-gradient(left, #cccccc 10%, rgba(255, 255, 255, 0) 42%);
  background: -o-linear-gradient(left, #cccccc 10%, rgba(255, 255, 255, 0) 42%);
  background: -ms-linear-gradient(left, #cccccc 10%, rgba(255, 255, 255, 0) 42%);
  background: linear-gradient(to right, #cccccc 10%, rgba(255, 255, 255, 0) 42%);
  position: relative;
  -webkit-animation: load3 1.4s infinite linear;
  animation: load3 1.4s infinite linear;
  -webkit-transform: translateZ(0);
  -ms-transform: translateZ(0);
  transform: translateZ(0);
}
.loader:before {
  width: 50%;
  height: 50%;
  background: #cccccc;
  border-radius: 100% 0 0 0;
  position: absolute;
  top: 0;
  left: 0;
  content: '';
}
.loader:after {
  background: #fff;
  width: 75%;
  height: 75%;
  border-radius: 50%;
  content: '';
  margin: auto;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
}
@-webkit-keyframes load3 {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
@keyframes load3 {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
.img-caption{
  position:absolute;
  bottom:0px;
  background-color: rgba(33, 44, 39, 0.6);
  width:100%;
  color: #fff;
  font-weight: bold;
  padding-left:.3em;

}




.image_gallery_compressed{
  position: relative;
  flex-basis: 300px;
  max-height:10em;
  overflow: hidden;
  margin-bottom: 1em;
}
.image_gallery_compressed .fullsize-image{
  display:none;
}
.image_gallery_compressed.expanded{
  cursor:unset;
  max-height:unset;
  overflow: unset;
  padding-bottom: 3em;
}
.image_gallery_compressed .gallery-expand-link{
  cursor:pointer;
  position:absolute;
  bottom:0px;
  width:100%;
  background-color: rgba(255, 255, 255, 0.8);
}
.image_gallery_compressed.expanded .gallery-expand-link{
  display: none;
}

.image_gallery_compressed.expanded.carousel{
  position: fixed;
  background-color: #FFF;
  top: 2em;
  left: 2em;
  height: calc(100% - 4em);
  width: calc(100% - 4em);
  overflow: hidden;
  z-index:1;
}

.image_gallery_compressed .carousel-controls{
  display:none;
}
.image_gallery_compressed.expanded.carousel .carousel-controls{
  position: absolute;
  display: block;
  bottom: 0px;
  right: 0px;
}

.image_gallery_compressed .comment{
  display: inline-block;
}
.image_gallery_compressed .image-box{
  display: flex;
}
.image_gallery_compressed.expanded.carousel .image-box{
  display: block;
}
.image_gallery_compressed.expanded.carousel .comment{
  display: block;
}
.image_gallery_compressed.expanded.carousel .thumbnail-image{
  display:none;
}
.image_gallery_compressed.expanded.carousel .fullsize-image{
  display:block;
  max-width:100%;
}
.contact-title{
  display:inline-block;
}
.contact-title::after {
  content: ": ";
}
.max-300{
  max-width: 300px;
}

html .bg-info{
  color:white;
  padding-left:.25rem;
  background-color: rgba(94,0,0,.79) !important;
}
html, body {
  height:97%;
  background: #CCC !important;
}
.container.main-container{
  background: #FFF;
  min-height: 94%;
  padding-bottom:4em;
  border-radius: 0 0 1em 1em;
}
.icon-new{
  position: relative;
}
.icon-new::before{
  content: "";
  background-image: url("/img/new.ltblue.svg");
  background-size:contain;
  opacity:.7;
  background-repeat:no-repeat;
  background-position:center;
  position:absolute;
  left: 0px;
  top: 0px;
  right: 0px;
  bottom:0px;
}
.icon-new > *{
  opacity: .9;
}
@media (min-width: 992px) {
  .navbar-expand-lg .navbar-nav{
    flex-direction: row-reverse;
  }
}
.nav-item{
  display:flex;
  justify-content:flex-end;
}
.nav-link{
  align-self:flex-end;
}
.no-closed-work .hide-if-no-closed-work{
  display:none;
}

.slideshow-fullscreen{
  position: fixed;
  top: 0px;
  left: 0px;
  height: 100vh;
  width: 100vw;
  background-color: white;
  z-index:10;
}
.slideshow-fullscreen-show, 
.slideshow-fullscreen .slideshow-fullscreen-hide{
  display:none;
}
.slideshow-fullscreen .slideshow-fullscreen-show, 
.slideshow-fullscreen-hide{
  display:block;
}

.carousel-control-next, .carousel-control-prev {
    width: 10%;
}
.journal-entries-small{
  position:relative;
  z-index: 1;
  max-height:40vh;
  overflow-y: auto;
}
.thumbnail-image{
  width:9.4rem;
}



#googleLoginButton {
  display: inline-block;
  background: white;
  color: #444;
  width: 190px;
  border-radius: 5px;
  border: thin solid #888;
  box-shadow: 1px 1px 1px grey;
  white-space: nowrap;
}
#googleLoginButton:hover {
  cursor: pointer;
}
#googleLoginButton span.label {
  font-family: serif;
  font-weight: normal;
}
#googleLoginButton span.icon {
  background: url('/img/sign-in/g-normal.png') transparent 5px 50% no-repeat;
  display: inline-block;
  vertical-align: middle;
  width: 42px;
  height: 42px;
}
#googleLoginButton span.buttonText {
  display: inline-block;
  vertical-align: middle;
  font-size: 14px;
  font-weight: bold;
  /* Use the Roboto font that is loaded in the <head> */
  font-family: 'Roboto', sans-serif;
}

.max100{
  max-height: 100%;
  max-width: 100%;
}
.icon-sm{
  object-fit: contain;
}