:root {
  --lightBlue: #e1e5ea;
  --brightBlue: #0099ff;
  --semiBlue: #95a3b7;
  --midBlue: #3c4858;
  --darkBlue: #1a2035;
  --foreground: #ffffff;
}

html,
body {
  max-width: 100vw;
  overflow-x: hidden;
}

a {
  color: var(--brightBlue) !important;
  text-decoration: underline !important;
}

div#__next {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body {
  display: flex;
  flex-direction: column;
  color: var(--darkBlue);
  background: var(--lightBlue);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.header {
  flex: 0 1;
  flex-direction: column;
  align-items: center;
  position: relative;
  background: url('/public/img/header-tile.jpg') top center #000;
  color: var(--lightBlue);

  div.top {
    flex-wrap: nowrap !important;
    align-items: center !important;
    height: 70px;
    padding-right: 1rem;

    .fwfLogo:hover {
      cursor: pointer;
    }

    .infoIcon:hover {
      cursor: pointer;
    }

    .userInfo {
      color: var(--lightBlue);
      font-size: 1rem;
      white-space: nowrap;
    }

    .userInfo:hover {
      cursor: pointer;
    }
  }

  div.info {
    background: #000;
    height: 30px;
    align-items: center;
  }
}

.text-right {
  text-align: right !important;
}

.mainNavigation {
  display: flex;
  position: relative;
  color: var(--lightBlue);

  .hamburger:hover {
    cursor: pointer;
  }

  .hamburger svg {
    padding: 0.75rem;
  }

  .darkBg > svg {
    background: #000;
  }

  ul.topLevelNav {
    position: absolute;
    top: 65px;
    left: -12px;
    list-style: none;
    background-color: #fff;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 200;
    display: flex;
    justify-content: left;
    border-top: 2px solid #1f8cf7;
    filter: drop-shadow(0 4px 4px rgba(50, 50, 50, 0.4));

    li {
      padding: 0 !important;
      white-space: nowrap;
      min-width: 100px !important;
      color: #000;

      span {
        display: block;
        height: 40px;
        padding: 0.5rem;
        background: #000;
        color: #fff;
        font-weight: bold;
      }

      ul.subNav {
        list-style: none;
        margin: 0 !important;
        padding: 0 !important;
        height: calc(100% - 40px);

        &:hover {
          background: #eee;
        }

        li {
          padding: 0.5rem 1.5rem 0.5rem 0.5rem !important;

          &:hover {
            cursor: pointer;
            text-decoration: underline;
          }
        }

        li.divider {
          border-top: 1px solid #ccc;
          padding: 0 0 4px 0 !important;
          height: 2px !important;
          width: 85% !important;
          margin: 4px 0 0 8px;
        }
      }
    }
  }
}

.userInfo {
  .userNav {
    position: absolute;
    top: 58px;
    right: 1.5rem;
    list-style: none;
    background-color: var(--darkBlue);
    margin: 0 !important;
    padding: 0 !important;
    z-index: 101;

    li {
      padding: 0.5rem;
      white-space: nowrap;
    }

    li:hover {
      cursor: pointer;
      background-color: var(--midBlue);
    }
  }
}

.container {
  flex: 1 1 auto;
}

.footer {
  flex: 0 1 40px;
  padding: 0.5rem;
  background: #333;
  color: #fff;
  font-size: 0.8em;

  .version,
  .releaseDate {
    color: #fff;
  }
}

.inputs-grid {
  display: grid !important;
  row-gap: 10px;
  padding-top: 10px;
  margin-right: 20px;
}

.col-inline {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  width: 50%;

  label {
    padding: 0 12px;
  }
  input {
    margin-top: 0.25rem;
  }
}

.col-inline:first-child {
  padding: 0 10px 0 0;
}

.col-inline:last-child {
  padding: 0 0 0 10px;
}

.inputs-container {
  background: #fff;
  padding: 1rem 0 1.5rem 1rem;
  border-radius: 6px;
  border: 1px solid #999;

  .row {
    padding-bottom: 10px;
  }
}

.booking-details {
  background: #fff;
  padding: 1.5rem;
  border-radius: 6px;
  border: 1px solid #999;

  .row {
    padding: 1rem 0 !important;
    border-bottom: 1px solid #ccc;
    white-space: nowrap;
  }
}

.brokeredInputs {
  padding: 20px 10px 20px 30px;

  div.row {
    border-left: 2px solid #999;
    border-right: 2px solid #999;
  }

  div.row:first-child {
    padding-top: 20px;
    border-top: 2px solid #999;
  }

  div.row:last-child {
    padding-bottom: 20px;
    border-bottom: 2px solid #999;
  }
}

.row {
  label {
    padding-left: 0 !important;
  }

  div input[type='checkbox'] {
    margin-left: 10px;
  }

  input.under-checkbox {
    margin-top: 10px;
  }
}

.customerData {
  min-width: 1280px !important;
  max-width: 103% !important;
  overflow-x: scroll;

  table {
    width: auto;

    thead tr th {
      white-space: nowrap;
    }

    tbody tr td {
      white-space: nowrap;
    }
  }
}

.rowEditIcon {
  position: sticky;
  right: 0;

  svg {
    width: 20px !important;
    height: 20px !important;
  }
}

.rowEditIcon:hover svg {
  cursor: pointer;
  filter: invert(33%) sepia(52%) saturate(6749%) hue-rotate(212deg)
    brightness(100%) contrast(99%);
}

.no-resize {
  resize: none !important;
}

.dataTable {
  width: 100% !important;
  max-height: 800px;
  overflow: scroll;

  thead > tr {
    position: sticky;
    top: 0;
    white-space: nowrap;
  }

  td {
    white-space: nowrap;
  }
}

div.pagination {
  display: flex;
  flex-direction: row !important;
  align-items: center;
  margin-bottom: 0 !important;
  margin-top: 10px;

  .pagination-count {
    flex: 1 150px;
  }

  ul.pagination {
    margin-bottom: 0 !important;
  }

  .pagination-buttons {
    flex: 1;
    margin-left: 0 !important;
    padding-left: 0 !important;
  }

  li.page-item {
    a.page-link {
      text-decoration: none !important;
      color: #0d6efd !important;
      padding: 5px 0;
      width: 50px;
      text-align: center;

      &.previous {
        width: 70px;

        &:hover {
          cursor: pointer;
        }
      }

      &.next {
        width: 70px;

        &:hover {
          cursor: pointer;
        }
      }

      &.active {
        color: #fff !important;
        background: #0d6efd !important;
      }
    }
  }
}

.arrow-back:hover {
  cursor: pointer;
}

.typeahead {
  position: relative !important;

  .typeahead-selector {
    position: absolute !important;
    background: #fff;
    min-width: 200px;
    margin: 0 0 0 5px;
    padding: 0;
    border: 1px solid #eee;
    border-top: unset !important;
    border-radius: 0 0 6px 6px;
    z-index: 200;

    .list-group {
      border-radius: unset;
      padding: 0.5em 1em;
      border-bottom: 1px solid #eee;

      &:hover {
        background: #efefef !important;

        a {
          text-decoration: underline !important;
        }
      }

      a {
        text-decoration: none !important;
      }
    }
  }
}

#filterPanel {
  position: relative;

  .icon-wrapper.active svg {
    fill: var(--brightBlue);
  }
  .icon-wrapper svg:hover {
    fill: var(--brightBlue);
    cursor: pointer;
  }
  .filter-values {
    position: absolute;
    min-width: 1000px;
    min-height: 100px;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #ccc;
    z-index: 100;
    right: 0;
    top: 38px;
    filter: drop-shadow(0 4px 4px rgba(50, 50, 50, 0.4));
  }
}

/* =============== loadingOverlay =============== */
.loadingOverlay {
  position: fixed;
  left: 0;
  top: 0;
  overflow-x: hidden;
  width: 100vw;
  height: 100vh;
  background: rgba(10, 10, 10, 0.7);
  transition: 0.5s;
  z-index: 999;

  .spinner {
    position: absolute;
    left: 50%;
    top: 45%;
    height: 60px;
    width: 60px;
    margin: 0 auto;
    -webkit-animation: rotation 0.6s infinite linear;
    -moz-animation: rotation 0.6s infinite linear;
    -o-animation: rotation 0.6s infinite linear;
    animation: rotation 0.6s infinite linear;
    border-left: 6px solid rgba(255, 255, 255, 0.15);
    border-right: 6px solid rgba(255, 255, 255, 0.15);
    border-bottom: 6px solid rgba(255, 255, 255, 0.15);
    border-top: 6px solid rgba(255, 255, 255, 0.8);
    border-radius: 100%;
  }
}
@-webkit-keyframes rotation {
  from {
    -webkit-transform: rotate(0deg);
  }
  to {
    -webkit-transform: rotate(359deg);
  }
}
@-moz-keyframes rotation {
  from {
    -moz-transform: rotate(0deg);
  }
  to {
    -moz-transform: rotate(359deg);
  }
}
@-o-keyframes rotation {
  from {
    -o-transform: rotate(0deg);
  }
  to {
    -o-transform: rotate(359deg);
  }
}
@keyframes rotation {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(359deg);
  }
}

@media (min-width: 1400px) {
  .container-xxl,
  .container-xl,
  .container-lg,
  .container-md,
  .container-sm,
  .container {
    max-width: 95%;
  }
}
