/* UNIVERSAL SELECTORS */

body {
  background-color: #1552a4;
  -webkit-print-color-adjust: exact;
  /* overflow: auto; */
}

.container {
  padding: 25px;
  background-color: white;
  margin-top: 50px;
  margin-bottom: 50px;
}

.alert-container {
  display: block;
  padding: 0;
  margin: 0;
  background-color: transparent;
  animation-name: fadeFromTop;
  animation-duration: 5s;
  animation-timing-function: ease-in-out;
  animation-fill-mode: forwards;
}
.loader-container {
  position: fixed;
  left: 15px;
  bottom: 15px;
}

.loader {
  border: 8px solid #f3f3f3; /* Light grey */
  border-top: 8px solid #3498db; /* Blue */
  border-radius: 50%;
  width: 40px;
  height: 40px;
  -webkit-animation: spin 0.5s linear infinite; /* Safari */
  animation: spin 0.5s linear infinite;
}

.microsoft-login {
  background-color: #ffffff;
  border: 1px solid #8c8c8c;
  font-family: 'Segoe UI';
  font-weight: 600;
  font-size: 15px;
  height: 40px;
  padding-right: 12px;
  padding-left: 12px;
  vertical-align: middle;
}

.microsoft-login img {
  padding-right: 12px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* -------------------------------------------------- */
/* INVALID INPUT CSS                                  */
/* -------------------------------------------------- */

input.invalid {
  border-color: #900;
  background-color: #fdd;
}

input.invalid:focus {
  border-color: #900;
  background-color: #fdd;
  box-shadow: 0 0 0 0.2rem rgb(154 0 2 / 25%);
}

select.invalid {
  border-color: #900;
  background-color: #fdd;
}

select.invalid:focus {
  border-color: #900;
  background-color: #fdd;
  box-shadow: 0 0 0 0.2rem rgb(154 0 2 / 25%);
}

.form-check-input.invalid {
  -webkit-box-shadow: 0px 0px 5px 2px rgba(255, 0, 0, 1);
  -moz-box-shadow: 0px 0px 5px 2px rgba(255, 0, 0, 1);
  box-shadow: 0px 0px 5px 2px rgba(255, 0, 0, 1);
}

/* UTILITIES */

.hidden {
  display: none;
}

.invisible {
  visibility: hidden;
}

caption {
  caption-side: top;
}

#status-bar-background {
  width: 100%;
  background-color: #ddd;
}

#status-bar-fill {
  width: 1%;
  height: 30px;
  background-color: #4caf50;
}

.sync-modal-init .fa-sync-alt {
  color: green;
}

.fa-sync-alt {
  color: gray;
}

@keyframes fadeFromTop {
  0% {
    opacity: 0;
    transform: translateY(-100px);
  }
  10% {
    opacity: 1;
    transform: translateY(10);
  }
  15% {
    transform: translateY(0);
  }
}

/* --------------------------------------------------------------- */
/* CSS FOR SHOW CUSTOMER PAGE                                      */
/* --------------------------------------------------------------- */

.address-image {
  position: relative;
  text-align: right;
}

.address-image img {
  max-width: 100%;
}

/* .estimate-list td:nth-child(2) {
  max-width: 400px;
}

.estimate-list td:nth-child(6) {
  min-width: 232px;
} */

.estimate-list a:hover {
  text-decoration: none;
  cursor: pointer;
}

.delete-icon {
  color: red;
  padding: 0px 2px;
}

.edit-icon {
  padding: 0px 2px;
  color: rgb(148, 148, 148);
}

.view-icon {
  padding: 0px 2px;
}

.sync-icon {
  padding: 0px 2px;
  color: #28a744;
}

.delete-button {
  background-color: none;
  padding: 0px;
  margin: 0px;
}

.delete-form {
  display: flex;
}

.btn-block {
  min-width: 100px;
  /* margin-top: 10px; */
}

i {
  margin: 0 5px;
}

/* --------------------------------------------------------------- */
/* MAP PAGE                                                        */
/* --------------------------------------------------------------- */
#map {
  height: 600px;
}

/* ------------------------------------------------------------------- */
/* LOGIN PAGE                                                          */
/* ------------------------------------------------------------------- */

/* Change to .narrow-container */
.login-form {
  max-width: 600px;
  margin-top: 50px;
}

.login-form .password-reset-link {
  padding-top: 15px;
  float: right;
}

/* ------------------------------------------------------------/
/  AUTOCOMPLETE CSS                                            /
/------------------------------------------------------------ */

.autocomplete {
  position: relative;
  display: inline-block;
}

.autocomplete-items {
  position: absolute;
  border: 1px solid #d4d4d4;
  border-bottom: 1px solid #d4d4d4;
  border-top: none;
  z-index: 99;
  /*position the autocomplete items to be the same width as the container:*/
  top: 100%;
  left: 0;
  right: 0;
  margin-left: 15px;
  margin-right: 15px;
  max-height: 300px;
  overflow-x: hidden;
  overflow-y: auto;
}

.autocomplete-items div {
  padding: 10px;
  cursor: pointer;
  background-color: #fff;
  border-bottom: 1px solid #d4d4d4;
}

/*when hovering an item:*/
.autocomplete-items div:hover {
  background-color: #e9e9e9;
}

/*when navigating through the items using the arrow keys:*/
.autocomplete-active {
  background-color: DodgerBlue !important;
  color: #ffffff;
}

/* ------------------------------------------------------------/
/  USER INDEX PAGE                                             /
/------------------------------------------------------------ */
.search-results {
  min-height: 150px;
  max-height: 400px;
  overflow-y: scroll;
  border: 1px solid lightgray;
  padding: 25px;
  border-radius: 5px;
  margin-bottom: 25px;
}

.customer-search tbody tr {
  cursor: pointer;
}

.customer-search tbody tr:hover {
  background-color: gainsboro;
}

.users-list i {
  font-size: 1.15em;
  padding: 0 3px;
}

.users-list a:hover {
  text-decoration: none;
  cursor: pointer;
}

/* ------------------------------------------------------------/
/  ESTIMTATE PAGE                                              /
/------------------------------------------------------------ */

.top-row-border {
  background-color: #f8811f;
  height: 35px;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  margin-top: 10px;
  color: white;
  font-size: 24px;
  text-align: center;
  margin-right: 0px;
  margin-left: 0px;
}

.form-section {
  border-left: 1px solid #f8811f;
  border-right: 1px solid #f8811f;
  border-bottom: 1px solid #f8811f;
  padding: 15px 15px 25px 15px;
  width: 100%;
  border-bottom-right-radius: 15px;
  border-bottom-left-radius: 15px;
  box-shadow: 0 4px 14px 0 rgba(0, 0, 0, 0.2);
  margin-bottom: 35px;
}

/* Used at location address toggle */
.custom-switch {
  margin-bottom: 30px;
}

.price-display {
  position: fixed;
  right: 0;
  bottom: 25px;
  background-color: #fff;
  border-top: 4px #f9801e solid;
  border-left: 4px #f9801e solid;
  border-bottom: 4px #f9801e solid;
  padding: 5px 15px;
  border-bottom-left-radius: 15px;
  border-top-left-radius: 15px;
  z-index: 100;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

#vendor-modal .modal-body .card .card-header {
  background-color: #f9801e;
  text-align: center;
  color: white;
  /* padding: 0;
  margin-bottom: 0; */
}

#vendor-modal .modal-body .card td {
  line-height: 1;
}
