/* Utility */

.utilityContainer {
  margin-left: auto;
  margin-right: auto;
  max-width: 60rem;
  min-height: 100vh;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

@media (min-width: 640px) {
  .utilityContainer {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

.utilityContainer-withBackground::before {
  background-position: center center;
  background-image: url("/assets/backgrounds/exposure_tablet-2c103780.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  bottom: 0px;
  content: "";
  filter: blur(1px);
  left: 0px;
  opacity: 0.1;
  position: absolute;
  right: 0px;
  top: 0px;
  z-index: -1;
}

.utilityFooter {
  margin: none;
}

.utilityHeader {
  align-items: center;
  display: grid;
  grid-template-columns: repeat(1, auto);
  padding: 0.8rem 0 3rem 0;
}

@media screen and (min-width: 640px) {
  .utilityHeader {
    grid-template-columns: repeat(2, auto);
  }
}

.utilityHeader-image {
  position: relative;
  right: 40px;
}

.utilityButtons {
  display: flex;
  justify-content: flex-end;
}

.utilityButton {
  border: solid 1px #432b78;
  border-radius: 3px;
  color: #432b78;
  font-size: 1.2rem;
  padding: 10px 20px;
  margin: 5px;
  text-wrap: nowrap;
}

.utilityButton-secondary {
  background-color: #432b78;
  border: solid 1px #432b78;
  border-radius: 3px;
  color: #fff;
  font-size: 1.2rem;
  padding: 10px 20px;
  margin: 5px;
  text-wrap: nowrap;
}

footer {
  background-color: #e9e9e9;
  padding: 0;
}

@media screen and (min-width: 1200px) {
  footer {
    padding: 0 6rem;
  }
}

.footerLink {
  color: #4d64d3;
  text-decoration: underline;
}

.generalTable {
  border-width: 1px;
  margin: 1rem 0;
  table-layout: fixed;
  width: 100%;
}

.generalTable-head {
  background-color: rgb(52 5 96);
  color: rgb(255 255 255);
}

.generalTable-body tr:nth-child(odd) {
  background-color: #f9f9f9;
}

.generalTable-body > tr {
  border-bottom: 1px solid #e5e7eb;
  font-size: 0.8rem;
}

.generalTable-body a {
  color: #428bca;
}

th,
td {
  font-weight: 500;
  padding: 0.5rem 1rem;
  text-align: left;
}

.generalTable-termColumn {
  width: 20%;
}

.generalTable-multiItemColumn {
  display: grid;
  gap: 0.5rem;
}

h2.subHeading {
  font-size: 1.4rem;
  font-weight: 600;
}

h3.subHeading {
  font-weight: 600;
}

.informationList > h2 {
  margin-bottom: 1rem;
}

.informationList > h3 {
  margin-bottom: 0.3rem;
}

.informationList > p {
  margin-bottom: 1.25rem;
}

.informationList-termsAndConditions-row {
  display: grid;
  grid-template-columns: 10% 90%;
  padding-bottom: 0.8rem;
}

.informationList-termsAndConditions-rowHeading {
  font-weight: 600;
  font-size: 1.4rem;
}

.informationList-termsAndConditions-rowSubHeading {
  font-weight: 600;
}

.informationList-termsAndConditions-rowHeading-text {
  text-decoration: underline;
}

.informationList-termsAndConditions-rowLabel {
  margin-right: 1rem;
  text-align: right;
}

/* USER INVITES */
.userInvite-wrapper {
  display: flex;
  min-height: 100%;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
}

.userInvite-container {
  width: 100%;
  max-width: 28rem;
}

.userInvite-header {
  margin-top: 1.5rem;
  font-size: 1.875rem;
  line-height: 2.25rem;
  color: rgb(17, 24, 39);
}

.userInvite-form {
  margin-top: 2rem;
}

.userInvite-form > :not([hidden]) ~ :not([hidden]) {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.userInvite-input {
  background-color: rgb(245, 245, 245);
  border-radius: 0.25rem;
  display: block;
  width: 100%;
  appearance: none;
  border: 2px solid rgb(209, 213, 219);
  padding: 0.5rem 0.75rem;
  color: rgb(17, 24, 39);
}

.userInvite-input::placeholder {
  color: rgb(107, 114, 128);
}

.userInvite-input:focus {
  background-color: white;
  outline: none;
}

.userInvite-accept {
  display: flex;
  width: 100%;
  justify-content: center;
  border-radius: 0.25rem;
  background-color: rgb(131, 102, 194);
  padding: 0.625rem 1.5rem;
  font-size: 0.75rem;
  line-height: 1.25rem;
  color: white;
  cursor: pointer;
  text-transform: uppercase;
  box-shadow: 0 0 #0000, 0 0 #0000, 0 10px 15px -3px rgb(0 0 0 / 0.1),
    0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.userInvite-accept:focus {
  outline: none;
}

@media (min-width: 640px) {
  .userInvite-wrapper {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .userInvite-input {
    font-size: 0.875rem;
    line-height: 1.25rem;
  }
}

@media (min-width: 1200px) {
  .userInvite-wrapper {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.greyButton {
  align-items: center;
  border: solid 1px #989898;
  border-radius: 5px;
  color: #989898;
  display: flex;
  font-size: 0.875rem;
  padding: 0.5rem 0.8rem;
}

.greyButton:hover {
  background-color: #f7f7f7;
  color: #727272;
}

/* Sensor test */

.sensorTest-form {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  justify-content: space-between;
  margin: 1rem 0;
}

.sensorTest-form > input {
  flex: 1;
}

.sensorTest-form > input[type="text"] {
  background-color: #f5f5f5;
  border: 2px solid #ccc;
  border-radius: 0.25rem;
  line-height: 1.4;
  padding: 6px 12px;
}

.sensorTest-form > input[type="text"]:focus {
  background: #fff;
}

.sensorTest-form > input[type="submit"] {
  background: #8266c2;
  border-radius: 0.25rem;
  color: #fff;
  cursor: pointer;
  padding: 0.75rem 2rem;
}

.sensorStatus {
  background: #ebeff1;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  padding: 1rem;
}

.sensorStatus-heading {
  align-items: center;
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.sensorStatus-heading > h3 {
  font-size: 1.1rem;
  font-weight: bold;
  white-space: nowrap;
}

.sensorStatus-indicator {
  border-radius: 50%;
  height: 1.25rem;
  width: 1.25rem;
}

.sensorStatus-indicator.success {
  background: green;
}

.sensorStatus-indicator.warning {
  background: orange;
}

.sensorStatus-indicator.error {
  background: red;
}

.sensorStatus-indicator.failure {
  background: black;
}

.inviteRequest-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 3rem;
}

.inviteRequest-submit {
  margin-top: 2rem;
}

/* Devices */

.devices-filterOptions {
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
}

.devices-tabbedNavbar {
  border-bottom: 1px solid #ddd;
  display: flex;
  flex-wrap: wrap;
  gap: 0.1rem;
  margin: 1rem 0 2rem;
}

.devices-tabbedNavbar-button {
  align-items: flex-end;
  border-radius: 4px 4px 0 0;
  display: flex;
  gap: 0.4rem;
  padding: 0.6rem 1rem;
}

.devices-filterOptions-label {
  cursor: pointer;
}

.devices-tabbedNavbar-button-active {
  border: 1px solid #ddd;
  border-bottom-color: white;
  font-weight: 600;
  margin-bottom: -1px;
}

.devices-tabbedNavbar-button-link {
  display: flex;
  font-size: 0.9rem;
}

.devices-tabbedNavbar-icon {
  width: 1rem;
}

.devices-tableWrapper {
  overflow: auto;
  width: 100%;
}

.devices-table {
  margin: 1rem 0 3rem;
}

.devices-table-row {
  border-bottom: 1px solid #e5e7eb;
}

.devices-table-row > th {
  font-size: 0.8rem;
  padding: 0.5rem 1rem;
  text-align: center;
}

.devices-table-row > td {
  font-size: 0.8rem;
  padding: 1rem;
  text-align: center;
}

.devices-table-row > td.bold {
  font-weight: bold;
}

.generalTable-desktopColumn {
  display: none;
}

.devices-table-link {
  text-decoration: underline;
}

.devices-loadingSpinner {
  display: none;
  justify-content: center;
  margin: 1.3rem 0 2rem;
}

.devices-loadingSpinner > img {
  width: 2rem;
}

@media screen and (min-width: 640px) {
  .generalTable-desktopColumn {
    display: table-cell;
  }
}

.icon {
  display: inline;
  margin-right: 0.5rem;
  width: 0.75rem;
}

.eaSelect {
  appearance: none;
  background-color: #f5f5f5;
  border-color: #d1d5db;
  border-radius: 0.25rem;
  border-width: 2px;
  color: #111827;
  display: block;
  padding: 0.5rem 0.75rem;
  position: relative;
  width: 100%;
}

@media (min-width: 640px) {
  .eaSelect {
    font-size: 0.875rem;
    line-height: 1.25rem;
  }
}

.eaSelect:focus {
  background-color: #ffffff;
  border-color: #e59700;
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.eaSelect::-moz-placeholder {
  color: #6b7280;
}

.eaSelect::placeholder {
  color: #6b7280;
}

.eaSave {
  background-color: rgb(131 102 194);
  border-radius: 0.25rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  color: #ffffff;
  cursor: pointer;
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.625rem 1.5rem;
  line-height: 1.25;
  text-transform: uppercase;
  width: 100%;
}

/* Sensor map builder */
.mapImageUpload-label {
  align-items: center;
  border: 2px solid #d7d7d7;
  border-radius: 0.25rem;
  cursor: pointer;
  display: flex;
  font-size: 0.875rem;
  gap: 0.5rem;
  justify-content: center;
  padding: 0.5rem 0.75rem;
  text-align: center;
}

.mapImageUpload-input {
  display: none;
}

.mapCreator-containerHidden {
  display: none;
}

.mapCreator-sensorTemplate {
  display: none;
}

.mapCreator-container {
  margin-top: 20px;
}

.mapCreator-canvasContainer {
  margin-top: 20px;
  overflow-x: auto;
}

.mapCreator-labelContainer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 10px;
}

@media screen and (min-width: 640px) {
  .mapCreator-labelContainer {
    align-items: end;
    flex-direction: row;
  }
}

.mapCreator-labelContainer p {
  font-weight: 300;
}

.mapCreator-howToBtn {
  align-items: center;
  border: 2px solid #d7d7d7;
  border-radius: 0.25rem;
  cursor: pointer;
  color: #989898;
  display: flex;
  font-size: 0.875rem;
  gap: 0.5rem;
  justify-content: center;
  padding: 0.5rem 0.75rem;
  text-align: center;
}

.mapCreator-howToModal {
  background-color: rgba(255, 255, 255, 0.9);
  height: 100%;
  left: 0;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 200;
}

.mapCreator-howToModal-content {
  background-color: white;
  border-left: 1px solid rgba(0, 0, 0, 0.2);
  bottom: 0;
  display: flex;
  position: absolute;
  flex-direction: column;
  height: 100vh;
  margin-right: -100%;
  max-width: 400px;
  right: 0;
  top: 0;
  width: 100%;
}

.mapCreator-howToModal-header {
  background: #340d5e;
  color: #fff;
  min-height: 48px;
  padding: 15px;
  position: relative;
}

.mapCreator-howToModal-header > p {
  font-weight: bold;
  line-height: 1.42857143;
  margin: 0;
}

.mapCreator-howToModal-body {
  flex: 1 0 auto;
  overflow-y: auto;
  padding: 15px;
  position: relative;
}

.mapCreator-howToModal-body h5 {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 1em;
}

.mapCreator-howToModal-body ul {
  list-style-type: circle;
  padding-left: 1.5em;
}

.mapCreator-howToModal-body li {
  font-size: 14px;
  margin-bottom: 1em;
}

.mapCreator-howToModal-footer {
  border-top: 1px solid #e5e5e5;
  padding: 15px;
  text-align: right;
}

.mapCreator-howToModal-footer button {
  background-color: #fff;
  background-image: none;
  border: 1px solid transparent;
  border-color: #ccc;
  border-radius: 4px;
  color: #333;
  display: inline-block;
  font-size: 14px;
  line-height: 1.42857;
  margin-bottom: 0;
  padding: 6px 12px;
}

.mapCreator-howToModal-footer button:hover {
  background-color: #e6e6e6;
  border-color: #adadad;
  color: #333;
}

.mapCreator-slideIn {
  animation: slideIn 0.5s forwards;
}

.mapCreator-slideOut {
  animation: slideOut 0.5s forwards;
}

.mapCreator-fadeIn {
  animation: fadeIn 0.5s forwards;
}

.mapCreator-fadeOut {
  animation: fadeOut 0.5s forwards;
}

@keyframes slideIn {
  from {
    margin-right: -100%;
  }
  to {
    margin-right: 0;
  }
}

@keyframes slideOut {
  from {
    margin-right: 0;
  }
  to {
    margin-right: -100%;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    pointer-events: none;
  }
  to {
    opacity: 1;
    pointer-events: auto;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
    pointer-events: auto;
  }
  to {
    opacity: 0;
    pointer-events: none;
  }
}

.mapCreator-howToModal-message {
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 14px;
  margin: 0 0 14px;
  padding: 10px 16px;
}

.mapCreator-howToModal-message img {
  display: inline;
  margin-right: 3px;
  width: 0.75rem;
}

.message-info {
  background-color: #d9edf7;
  border-color: #bce8f1;
  color: #3a87ad;
}

.message-warn {
  background-color: #fcf8e3;
  border-color: #faebcc;
  color: #c09853;
}

.mapCreator-exports {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mapCreator-exports-btns {
  display: flex;
  gap: 10px;
}

.checkbox {
  appearance: none;
  background-color: #f5f5f5;
  border: 2px solid #d7d7d7;
  border-radius: 0.25rem;
  display: inline-grid;
  height: 1.8rem;
  margin-left: 10px;
  place-content: center;
  width: 1.8rem;
}

.checkbox::before {
  box-shadow: inset 1em 1em #432b78;
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
  content: "";
  height: 0.8rem;
  transform: scale(0);
  transition: 120ms transform ease-in-out;
  width: 0.8rem;
}

.checkbox:checked::before {
  transform: scale(1);
}
