/*
 * light blue:  #189ad3
 * dark blue:  #223e72
 * beyond grey:  #939598
 */

body {
  font-family: "Open Sans","Helvetica Neue",Helvetica,Arial,sans-serif;
}

*[contenteditable=true]:focus,
*[contenteditable=true]:hover {
  background-color: #ffe;
}

.error_http h1 {
  font-size: 22px;
  line-height: 28px;
  margin-left: 0;
  margin-right: 0;
  white-space: initial;
  max-width: 100%;
}
.error_http .message {
  max-width: initial;
  display: block;
  width: 600px;
  height: 160px;
  -webkit-transform-style: preserve-3d;
  -moz-transform-style: preserve-3d;
  transform-style: preserve-3d;
  margin-left: auto;
  margin-right: auto;
}
.error_http .message > div {
  margin-left: 185px;
}
.error_http img.fixer {
  height: 160px;
  float: left;
}
.error_http a { border-bottom: 1px solid #189ad3; }
.error_http a:hover { border-bottom: 1px solid #223e72; }

.wrapper ::-webkit-input-placeholder { /* WebKit, Blink, Edge */
  color: #ddd;
}
.wrapper :-moz-placeholder { /* Mozilla Firefox 4 to 18 */
 color: #ddd;
 opacity: 1;
}
.wrapper ::-moz-placeholder { /* Mozilla Firefox 19+ */
 color: #ddd;
 opacity: 1;
}
.wrapper :-ms-input-placeholder { /* Internet Explorer 10-11 */
 color: #ddd;
}

button i.fa {
  margin-right: 5px;
}

button.btn-primary {
  background-color: #189ad3;
  border-color: #223e72;
}

button.btn-primary:hover {
  background-color: #223e72;
  border-color: #223e72;
}

button.btn-default {
  background-color: #cfcfcf;
  border-color: #939598;
}

button.btn-default:hover {
  background-color: #939598;
   border-color: #939598;
}

.btn-toolbar {
  display: flex;
  grid-gap: 1em;
}

h1 {
  margin-top: 50px;
  margin-left: auto;
  margin-right: auto;
  max-width: 300px;
  white-space: nowrap;
}
a {
  color: #189ad3;
}

a:hover {
  color: #223e72;
  text-decoration: none;
}

footer {
  font-size: 0.8em;
  color: #939598;
  text-align: right;
}

.hidden { display: none; }
.clear { clear: both; }

ul.draggable {
  list-style: none;
  border: 1px solid #cfcfcf;
  border-radius: 5px;
  padding: 20px;
  background-color: #f8f8f8;
}
.enabled ul.draggable {
  background-color: #F0FFF0;
}
ul.draggable li i {
  margin-right: 5px;
  margin-left: 5px;
}
ul.draggable li {
  cursor: move;
  padding-top: 2px;
  padding-bottom: 2px;
  width: 50%;
  display: inline-block;
}
.enabled ul.draggable li {
  display: block;
}
ul.draggable li:hover {
  background-color: #f0f0f0;
}
.enabled ul.draggable li:hover {
  background-color: #E0FFE0;
}

select.form-control {
  appearance: auto;
}

div.content {
  margin-top: 70px; /* to take into account the nav bar at the top, plus a 24px shadow, plus some margin */
  margin-bottom: 50px;
  min-height: calc(100vh - 150px); /* to ensure the footer is at the bottom */
}

.fullwidth h1 {
  max-width: 100%;
  margin-left: 0px;
  margin-right: 0px;
  margin-top: 0px;
}

.narrow {
  max-width: 975px;
  margin-lefT: auto;
  margin-right: auto;
}
.very-narrow {
  max-width: 300px;
  margin-lefT: auto;
  margin-right: auto;
}

.form-group {
  margin-bottom: 1em;
}

@keyframes spinner {
  0% {
    border-radius: 0;
    border-style: dotted;
    left: 0;
  }
  50% {
    border-radius: 50%;
    border-style: dashed;
    left: 50%;
  }
  100% {
    border-radius: 100%;
    border-style: dotted;
    left: 100%;
  }
}

.vert-middle-wrapper {
  text-align: center;
}
.vert-middle-wrapper .helper {
  display: inline-block;
  height: 100%;
  vertical-align: middle;
}
.vert-middle-wrapper img {
  vertical-align: middle;
  margin-left: auto;
  margin-right: auto;
}
.vert-middle-wrapper img[src^="blob:"] {
  max-height: 128px;
  max-width: 128px;
}

.loginForm, .resetForm {
  border: 1px solid #939598;
  padding: 20px;
  border-radius: 5px;
  background-color: #f6f6f6;
}

.resetForm .submit-row,
.loginForm .submit-row {
  line-height: 40px;
}
.loginForm .submit-row button {
  float: left;
}
.loginForm .forgot {
  float: right;
  line-height: 12px;
  font-size: 12px;
  margin-top: 7px;
}
.loginForm .signup {
  float: right;
  line-height: 14px;
  color: #e30505;
  font-weight: 700;
}
.loginForm .signup:hover {
  color: #189ad3;
}
.login .legal {
  font-size: 12px;
  margin-top: 10px;
  text-align: center;
}
.small {
  font-size: 12px;
}

body.upgrade, div.signup {
  min-height: calc(100vh - 70px);
  background-image: url("/background.jpg");
  background-size: cover;
  padding-top: 70px;
  padding-bottom: 70px;
  margin-bottom: 0 !important;
}

body.userSettings .reportTypesActions {
  text-align: right;
}
body.userSettings .importReport {
  margin-right: 8px;
  float: right;
}

.feedback div.content,
.feedback h1 {
  white-space: normal;;
  max-width: 350px;
}
.feedbackForm #comment {
  height: 120px;
}
.feedbackForm .submit-row {
  margin-bottom: 1em;
}

.surveys .table {
  min-width: 300px;
  width: initial;
  margin-left: 0px;
  margin-top: 20px;
}
.surveys .table th {
  font-weight: bold;
  border-bottom: 1px solid #555;
  position: sticky;
  top: 70px;
  z-index: 10;
}
.surveys .table tr>td {
  vertical-align: middle;
}
.surveys .table tr>td .spinner {
  font-size: 26px;
  margin: 0;
  text-align: center;
  height: 34px;
}
.surveys .table td.photo_count,
.surveys .table td.count {
  text-align: right;
  padding-right: 20px;
}
.surveys .table td.count div.spinner,
.surveys .table td.actions div.spinner {
  text-align: right;
  height: 20px;
}
.surveys .table td.actions { text-align: right; }
.surveys .table td.actions a { padding-left: 8px; }
.surveys .addRow input {
  height: 35px;
  margin-right: 10px;
  padding: 0 10px;
}
.surveys .addRow em {
  display: block;
  font-size: 12px;
  margin-top: 10px;
}

.wrapper {
  color: #555;
  font-weight: 300;
  margin: auto;
}

.fullwidth {
  margin-left: 15px;
  margin-right: 15px;
}

.survey .imageContainer {
  display: inline-block;
  float: left;
  margin-right: 40px;
  margin-bottom: 40px;
  width: 640px;
}
.survey .imageContainer .surveyPicture {
  border: 1px solid #ddd;
  max-width: 100%;
  max-height: 650px;
  display: block;
  margin: auto;
}
.survey table.imagemetadata,
.survey table.lineitems {
  display: inline-block;
  max-width: 560px;
  margin-bottom: 40px;
  vertical-align: top;
}
.survey table.lineitems td {
  white-space: nowrap;
  overflow: hidden;
  max-width: 230px;
}
.survey table.lineitems td.field {
  width: 230px;
}
.surveyForm {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.surveyForm label {
  font-weight: 300;
}
.surveyForm .btn {
  width: 100%;
  margin-top: 20px;
}
.survey table thead tr td {
  vertical-align: middle;
}
.survey table.imagemetadata thead tr td:first-child {
  text-align: left;
  font-weight: bold;
}
.survey table.imagemetadata tr td:first-child {
  color: #939598;
  text-align: right;
  white-space: nowrap;
}
.survey table.imagemetadata tr td:last-child {
  color: #aaa;
  width: 100%;
}

.dropTarget .spinner,
button .spinner {
  font-size: 14px;
  padding-left: 5px;
  margin: 0;
  display: inline;
}

/* the text that appears under the spinner */
.lobby-text .entry-content i { font-size: 20px; font-weight: bold; margin-right: 5px; }
.lobby-text .entry-content {
  color: #189ad3;
  font-size: 16px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.imageCarousel {
  position: relative;
  margin-bottom: 10px;
  background: white;
  min-height: 480px;
}
.imageCarousel.ignored .surveyPicture {
  opacity: 0.3;
}
.imageCarousel.ignored {
  background-color: #E7EAED;
  border: none;
}

.imageCarousel .carouselController button:hover {
  color: #223e72;
}
.imageCarousel .carouselController button {
  z-index: 10;
  width: 100px;
  height: 100%;
  background-color: rgba(255, 255, 255, 0);
  border: 0;
  position: absolute;
  top: 0;
  color: black;
  text-shadow: 0px 0px 10px #fff;
  font-size: 45px;
}
.imageCarousel .carouselController button.previous {
  left: 20px;
}
.imageCarousel .carouselController button.next {
  right: 20px;
}
.imageCarousel .carouselController .total {
  color: #939598;
  margin: auto;
  text-align: center;
  top: 0;
  position: relative;
  z-index: 0;
}
.imageCarousel .filename {
  font-size: 10px;
}
.imageCarousel .filename span {
  margin-left: 5px;
  margin-right: 5px;
}

.lightbox {
  cursor: zoom-in;
}
.lightbox-image {
  max-width: 95%;
  max-height: 95%;
  margin: auto;
  cursor: pointer;
}
.lightbox-image img {
  width: 100%;
  height: auto;
  max-height: 100vh;
  max-width: 100%;
}
#lightbox-overlay {
  z-index: -1;
  position: fixed;
  opacity: 0;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(1,1,1,0.75);
  transition: opacity 0.5s ease-in-out;

}
#lightbox-overlay.lightbox-overlay-open {
  opacity: 1;
  z-index: 10000;
}
.lightbox-carousel-image {
  position: absolute;
  top:0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
  transition: transform 0.25s ease-in, opacity 0.25s ease-in;
  opacity: 1;
  transform: translate3d(0, 0, 0);
  box-shadow: 0 0 40px rgba(25, 25, 25, 0.5);
}
.lightbox-close-wrapper {
  display: inline-block;
  position: relative;
}
.lightbox-close-button {
  background: url("/close.png") top right no-repeat;
  width: 43px;
  height: 42px;
  z-index: 10010;
  position: absolute;
  top: -15px;
  right: -15px;
  display: block;
  cursor: pointer;
}

button.btn {
  border-radius: 2px;
}
div.modal-footer {
  background-color: #eee;
  clear: both;
}
div.modal-header {
  background-color: #189ad3;
  color: white;
}
.close {
  font-size: 30px;
  color: white;
  text-shadow: 0 1px 0 #223e72;
  opacity: 1;
}
.close:hover {
  color: #223e72;
}
.surveyForm .form-group {
  float: left;
  width: 260px;
  margin-left: 10px;
  margin-right: 10px;
}
.surveyForm .dropdown .dropdown-menu {
  margin-top: 0;
}
.surveyForm .form-control {
  width: inital;
}
.surveyForm .form-control.has_data.rw-date-picker input,
.surveyForm .form-control.has_data {
  background-color: #ffe;
}
.surveyForm .form-control.has_data.changed.rw-date-picker input,
.surveyForm .form-control.has_data.changed {
  background-color: #ffc;
}
.surveyForm textarea {
  height: 108px;
  width: 260px;
}
.surveyForm input[type=text] {
  width: 260px;
}
.surveyForm .rw-widget { /* react widgets datepicker */
  padding: 0;
}
.surveyForm .rw-widget input[type=text] { /* react widgets datepicker */
  width: 230px;
}
.surveyFormWrapper .modal-header {
  position: relative;
}
.surveyFormWrapper .modal-title {
  margin-left: 67px;
}
.surveyFormWrapper button.clear {
  float: left;
}
.surveyFormWrapper .modal-header {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}
.surveyFormWrapper .modal-header h4 {
  margin-left: 1rem;
}
.surveyFormThumb {
  max-height: 49px;
  cursor: pointer;
}
.surveyFormWrapper .modal-body {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}
.surveyFormWrapper .surveyFormImage {
  display: none;
  position: relative;
}
.surveyFormWrapper .surveyFormImage img {
  max-width: 100%;
  max-height: 100%;
  cursor: pointer;
}
.surveyFormWrapper .surveyFormImage:hover .next,
.surveyFormWrapper .surveyFormImage:hover .previous {
  opacity: 1;
}
.surveyFormWrapper .surveyFormImage .next,
.surveyFormWrapper .surveyFormImage .previous {
  transition: all 0.25s ease-in-out;
  opacity: 0;
  position: absolute;
  top: 50%;
  left: 0;
  transform: translate(0, -50%);
  width: fit-content;
  background-image: radial-gradient(circle, black, transparent);
  background-color: transparent;
  border: none;
  color: white;
}
.surveyFormWrapper .surveyFormImage .next {
  right: 0;
  left: initial;
}

.surveyFormWrapper .rw-picker-caret { display: none;}

@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {  /* Internet Explorer 10-11 */
  .surveyFormWrapper.fullImageVisible .modal-dialog {
    width: 1200px;
  }
}

.surveyFormWrapper.fullImageVisible .modal-dialog {
  width: fit-content;
  max-width: 100%;
}
.surveyFormWrapper.fullImageVisible .surveyForm {
  width: 560px;
  flex-shrink: 0;
}
.surveyFormWrapper.fullImageVisible .surveyFormImage {
  display: block;
  width: 50%;
  height: 100%;
}

.dropdown-menu li.current>a {
  color: #262626;
  text-decoration: none;
  background-color: #F5F5F5;
}

.surveyThumbs {
  margin: auto;
  display: flex;
  flex-wrap: wrap;
}
.surveyThumbs .surveyImage {
  width: 130px;
  height: 155px;
  display: block;
  padding: 0;
  position: relative;
  margin: 5px;
  border: 1px solid #939598;
  background: #939598;
}
.dropTarget.drag,
.dropTarget:hover,
.surveyThumbs a.surveyImage:hover img {
  opacity: 0.5;
  transition: all 0.25s ease-in-out;
}
.surveyThumbs .surveyImage div.title {
  position: absolute;
  bottom: 0;
  padding-left: 5px;
  padding-right: 5px;
  padding-top: 2px;
  padding-bottom: 2px;
  font-size: 12px;
  white-space: nowrap;
  width: 120px; /* 130 - 10 */
  overflow: hidden;
  color: #ddd;
}
.surveySummary .surveyImage.ignored,
.surveySummary .surveyImage.l0 {
  background-color: #189ad3;
}
.surveySummary .surveyImage .thumbWrapper {
  height: 128px;
  width: 128px;
  vertical-align: top;
  text-align: center;
}

.surveyThumbs .surveyImage .thumbWrapper .spinner {
  color: #555;
  display: inline-block;
  vertical-align: top;
  width: 100%;
}
.surveyThumbs .surveyImage.ignored {
  background-image: none;
  background-color: #E7EAED;
  border: none;
}
.surveyThumbs .surveyImage.ignored img {
  opacity: 0.2;
}

.surveyThumbs .surveyImage.ignored div.title {
  color: #939598;
}
.surveyThumbs .surveyImage.selected {
  background-color: #223e72;
}
.surveyThumbs .surveyImage.selected .lineItemCount {
  background-color: white;
  color: #223e72;
}

.batchEditSelectPage.surveyThumbs .surveyImage {border: 2px solid #939598;}
.batchEditSelectPage .surveyThumbs .surveyImage.lastClicked {border: 2px dotted white;}

.surveySummary h1 {
  margin-left: 5px;
  white-space: normal;
}
.surveySummary .helptext {
  margin: 30px auto;
  max-width: 400px;
  text-align: center;
  color: #189ad3;
  padding: 0.75em;
  border-radius: 10px;
  border: 1px solid grey;
  background-color: #f8f8f8;
}
.surveySummary .lineItemCount {
  position: absolute;
  top: 0;
  left: 0;
  background-color: #223e72;
  height: 16px;
  text-align: center;
  line-height: 12px;
  border-radius: 0 0 10px 0;
  color: white;
  padding-left: 5px;
  padding-right: 5px;
}
.surveySummary .surveyImage.ignored .lineItemCount,
.surveySummary .surveyImage.l0 .lineItemCount {
  display: none;
}
.surveyThumbs a.surveyImage:hover .imageActions { opacity: 1; }
.surveyThumbs a.surveyImage .imageActions div.action:hover { color: #000; text-shadow: 0px 0px 10px #fff; }
.surveySummary .imageActions {
  z-index: 100;
  transition: all 0.25s ease-in-out;
  opacity: 0.35;
  position: absolute;
  top: 0;
  right: 3px;
  text-shadow: 0px 0px 1px #FFF;
}
.surveySummary .spinnerImageOverlay {
  display: inline;
  position: relative;
}
.surveySummary .spinnerImageOverlay .spinner {
  position: absolute;
  top: 0;
  left: 0;
}
.surveySummary .spinnerImageOverlay .lazyPlaceholder .spinner-widget {
  transform: translate(-50%);
}
.surveyThumbs .surveyImage.dropTargetWrapper {
  background-image: none;
  background-color: white;
  border: none;
}
.dropTarget i {
  margin-top: 10px;
}
.dropTarget {
  font-size: 0.9em;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  height: 100%;
  border: 3px dashed #189ad3;
  text-align: center;
  padding: 10px;
  color: #189ad3;
  cursor: pointer;
}
.dropTarget.active {
  background-color: #189ad3;
  border: 3px dashed white;
  color: white;
}
.customFieldsModal .newField * {
  float: left;
}
.customFieldsModal .newField label {
  margin-right: 20px;
  line-height: 34px;
  vertical-align: middle;
}
.customFieldsModal .newField input {
  margin-right: 20px;
  width: 40%;
}
.customFieldsModal .newField button i {
  line-height: 20px;
}

.batchEditSelectPage .surveyImage { cursor: pointer; }

@media (max-width: 1000px) {
  nav.navbar {
    position: initial;
    height: initial;
  }
  .surveySummary .helptext {
    position: initial;
    top: initial;
    clear: both;
  }
}
