@mixin dashboard-style(
  $dashboard-background-color,
  $default-button-color,
  $active-button-color,
  $button-font-color,
  $background-img,
  $background-img-header
) {
    background-color: $dashboard-background-color;
    background-image: url($background-img);
    background-size: 610px;
    background-position: top left;
    height: 100vh;
    width: 100%;
    position: fixed;
  @include breakpoint(br-1280 up) {
      width: 360px;
    }
    .link-list {
      padding: (16em / 16) (16em / 16) (15em / 16) (16em / 16);
      text-align: left;
      position: relative;
      display: block;
      &:last-child {
        margin-bottom: 13px;
      }

      &:hover {
        .link {
          color: $honey;
        }
      }

      &.active,
      &:active,
      &:focus {
        padding: (16em / 16) (16em / 16) (15em / 16) (40em / 16);
        .icon {
          font-size: 20px;
        }
        .link {
          color: $honey;
        }
      }
      .icon {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        color: $honey;
        font-size: 0;
        left: 16px;
      }
      .link {
        color: $white;
        font-weight: 600;
        line-height: (19em / 16);
        font-size: (16em / 16);
        text-align: left;
      }
    }

    .menu-scrollbar-hider {
      position: relative;
      width: 100%;
      height: 100%;
      overflow: hidden;

      .menu-block {
        transition: opacity 0.3s ease;
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        background: transparent;
        overflow-y: scroll;
        padding: 4em 0px 100px 16px;
        @include breakpoint(br-1280 up) {
          top: 0;
          right: 36px;
          padding: (148em / 16) 16px 0 16px;
          scrollbar-width: none;
          -ms-overflow-style: none;
        }
        &::-webkit-scrollbar {
          width: 0;
          height: 0;
        }

        ////SMARTPHONES AND TOUCHSCREENS
        //@media (hover:none) and (pointer: coarse) {
        //  right: 0;
        //}
        ////Stylus screens
        //@media (hover: none) and (pointer: fine) {
        //  right: 0;
        //}

        .menu-header {
          padding: 4.375em 3.1875em 4.3125em 3.1875em;
          top: 10px;
          display: block;
          padding: (22em / 16) (51em / 16) (69em / 16) (51em / 16);
          position: fixed;
          left: 0;
          z-index: 100;
          width: 324px;
          background-size: 610px;
          background-position: top left;
          background-image: url($background-img-header);
          @include breakpoint(medium up) {
            top: 40px;
          }
          img, svg {
            visibility: hidden;
            cursor: pointer;
            width: 171px;
            height: 32px;
          }
          @include breakpoint(br-1280 up) {
            padding: (22em / 16) (51em / 16) (69em / 16) (51em / 16);
            top: 0;
            img, svg {
              visibility: visible;
              width: 171px;
              height: 32px;
            }
          }
        }
        .heading {
          color: $white;
          text-align: left;
          font-weight: 600;
          text-transform: uppercase;
          margin-bottom: (16em / 16);
        }
        .dashboard-button-container {
          margin-bottom: (12em / 16);
          .notification-dot {
            border-radius: 50%;
            width: 8px;
            height: 8px;
            position: absolute;
            border: 1px solid white;
            background-color: $rose;
            right: 44px;
            top: 26px;
          }
        }
        .dashboard-button {
          text-align: left;
          position: relative;
          background: $default-button-color;
          text-transform: capitalize;
          color: $button-font-color;
          padding: (21em / 16) (16em / 16) (20em / 16) (54em / 16);
          margin-bottom: (0em / 16);
          width: 260px;
          @include breakpoint(br-1280 up) {
            width: 100%;
          }
          &.active,&:active, &:hover {
            color: $default-button-color;
            background: $active-button-color;
            .icon {
              &.right {
                color: $default-button-color;
              }
            }
          }
          &[disabled] {
            &.active,&:active, &:hover {
              background-color: $default-button-color;
              color: $button-font-color;
            }
          }
          .icon {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            &.left {
              font-size: 30px;
              left: 16px;
            }
            &.right {
              color: $active-button-color;
              right: 16px;
            }
          }
        }
      }
    }
}

.expand-dashboard-button {
  position: absolute;
  width: 37px;
  height: 37px;
  margin: 0;
  padding: 0;
  z-index: 1;
  left: -8px;
  @include breakpoint(br-768 up) {
    z-index: 3;
  }

  &__stays {
    transition: transform .45s ease;
    top: 165px;
    &.active {
      transform: translate3d(279px,0,0);
    }
  }
  &__scrolls {
    top: 65px;
  }

  @include breakpoint(medium up) {
    left: 40px;
  }
  @include breakpoint(br-1280 up) {
    display: none;
  }
}

.dashboard-content-area {
  background: white;
  border-top-left-radius: 36px;
  border-bottom-left-radius: 36px;
  vertical-align: middle;
  position: absolute;
  left: 16px;
  right: 0;
  min-height: 100%;
  top: 98px;
  padding: 10px 16px 0 16px;
  transition: transform .45s ease;
  scrollbar-width: none;
  -ms-overflow-style: none;
  &::-webkit-scrollbar {
    width: 0;
    height: 0;
  }

  // Fis IOS safari bug on border radius
  &:before {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 36px;
    display: block;
    background-color: white;
    z-index: 0;
    content: "";
  }

  &.is-open {
    transform: translate3d(279px,0,0);
    //pointer-events: all;
  }
  @include breakpoint(medium up) {
    padding: 10px 24px 0 93px;
  }
  @include breakpoint(br-768 up) {
    min-height: unset;
    bottom: 0;
    overflow: scroll;
  }
  @include breakpoint(br-1280 up) {
    top: 0;
    left: 20.25em;
    overflow: hidden;
    min-height: unset;
    padding: 1em (90em / 16) (36em / 16) (78em / 16);
  }
}

.z-index-2 {
  z-index: 2 !important;
}

.dashboard-page-header {
  position: relative;
  z-index: 1;
  padding-left: 38px;
  padding-bottom: 14px;
  margin-top: 40px;
  border-bottom: 2px solid $off-white;
  &.mobile-header-fixed {
    position: absolute;
    top: 0;
    bottom: 0;
    left: -16px;
    right: -16px;
    padding-left: 16px;
    padding-right: 16px;
    margin-bottom: 187px;
  }
  &.booking-detail-page {
    margin-top: 53px;
    padding-bottom: 26px;
    z-index: 0;
    .user-details {
      padding-top: 6px;
      width: 100%;
      @include breakpoint(medium up) {
        width: unset;
      }
      .sub-text {
        @include breakpoint(large up) {
          margin-bottom: 0;
        }
      }
    }

    @include breakpoint(br-768 up) {
      margin-top: 44px;
    }
    @include breakpoint(br-1280 up) {
      margin-top: 40px;
    }
  }
  @include breakpoint(medium up) {
    padding-left: unset;
    padding-bottom: 28px;
  }
  h1 {
    margin-bottom: 0;
    &.has-floating-right-content{
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
  }
  .message-sort-wrapper {
    display: inline-block;
    color: $grey;
    font-size: 14px;
    line-height: 17px;
    font-weight: 600;
    position: relative;
    width: 160px;
    height: 20px;
    text-align: right;
    .chosen-filter {
      margin-left: 4px;
      display: inline-block;
      color: $charcoal;
    }
    .option-list {
      @include breakpoint(medium up) {
        display: inline-block;
      }
      vertical-align: middle;
      z-index: 2;
      &.open {
        position: absolute;
        top: 0;
        right: 0;
        background-color: white;
        border-radius: 4px;
        box-shadow: 0 0 12px 0 rgba(0, 0, 0, 0.1);
      }
    }
    .option-list-item {
      padding: 11px 12px;
      text-align: center;
      color: $charcoal;
      position: relative;
      &:first-child {
        border-top-left-radius: 4px;
        border-top-right-radius: 4px;
      }
      &:last-child {
        border-bottom-left-radius: 4px;
        border-bottom-right-radius: 4px;
      }
      &:not(:last-child) {
        margin-bottom: 1px;
        &::after {
          content: "";
          position: absolute;
          bottom: -1px;
          left: 0;
          right: 0;
          height: 1px;
          background-color: $light-grey;
        }
      }
      &:hover {
        background-color: $dark-mint;
        color: white;
      }
    }
  }
}

.dashboard-page-body {
  position: relative;
  z-index: 1;
  @include breakpoint(br-1280 up) {
    position: absolute;
    bottom: 0;
    top: 165px;
    left: 78px;
    right: 90px;
    &.booking-detail-page {
      top: 156px;
    }
    &.alternative {
      bottom: 0;
      top: 0;
      left: 0;
      min-height: 100vh;
      right: 0;
      .margin-bottom-100-moz {
        &:after {
          height: 200px;
        }
      }
    }
  }
}

.dashboard-page-body-padding {
  padding-top: 20px;
  @include breakpoint(medium up) {
    padding-top: 25px;
  }
}

.margin-bottom-100-moz {
  &:after {
    content: "";
    display: block;
    height: 100px;
  }
}

.dashboard-page-scroller {
  scrollbar-width: none;
  -ms-overflow-style: none;
  &::-webkit-scrollbar {
    width: 0;
    height: 0;
  }
  @include breakpoint(br-1280 up) {
    left: -16px;
    right: -16px;
    padding-left: 16px;
    padding-right: 16px;
    overflow-y: scroll;
    position: absolute;
    top: 0;
    bottom: 0;
  }
}

.dashboard-menu-closed {
  .guest-dashboard-menu,
  .host-dashboard-menu {
    .menu-block {
      opacity: 0;
      @include breakpoint(br-1280 up) {
        opacity: 1;
      }
    }
  }
}
.dashboard-menu-open {
  .guest-dashboard-menu,
  .host-dashboard-menu {
    .menu-block {
      opacity: 1;
    }
  }
}

.guest-dashboard-menu {
  @include dashboard-style(
    $dashboard-background-color: $dark-mint,
    $default-button-color: $white,
    $active-button-color: $charcoal,
    $button-font-color: $dark-mint,
    $background-img: '/images/bg-mint-guest-sm.png',
    $background-img-header: '/images/bg-mint-guest-sm-header.png'
  )
}

.host-dashboard-menu {
  @include dashboard-style(
    $dashboard-background-color: $charcoal,
    $default-button-color: $white,
    $active-button-color: $dark-mint,
    $button-font-color: $charcoal,
    $background-img: '/images/bg-black-host-sm.png',
    $background-img-header: '/images/bg-black-host-sm-header.png'
  )
}
.hide-overflow {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  overflow-x: hidden;
  overflow-y: scroll;

  &.active {
    //pointer-events: none;
  }

  @include breakpoint(br-1280 up) {
    position: unset;
  }
}
.heading-back-link {
  text-align: right;
  vertical-align: middle;
  font-size: 14px;
  cursor: pointer;
  font-weight: bold;
  @include breakpoint(medium up) {
    position: absolute;
    right: 0;
    bottom: 0;
  }
  button {
    font-weight: bold;
    &:first-child {
      margin-right: 30px;
    }
  }
  i {
    margin-right: 4px;
    vertical-align: middle;
  }
  .message-thread-action-button {
    vertical-align: middle;
    border-bottom: none !important;
    &.has-tip {
      margin-bottom: 2px;
      .material-icons {
        &:focus {
          outline: none;
        }
      }
    }
  }
  .splitter {
    margin-left: 6px;
    margin-right: 6px;
    display: inline-block;
    width: 1px;
    height: 30px;
    vertical-align: middle;
    background-color: $light-grey;
  }
}
.unread-message-dashboard-notifier {
  font-size: 13px;
  text-align: center;
  line-height: 24px;
  font-weight: 600;
  color: $dark-mint;
  background-color: white;
  position: absolute;
  right: 12px;
  top: 13px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  box-shadow: 0 2px 0 0 rgba(0, 0, 0, 0.06);
}
.empty-block-state-wrapper {
  padding: 40px 24px;
  .title {
    font-size: 1.375em;
    line-height: 1.2727272727em;
    font-weight: bold;
  }
  .divider {
    margin-top: 24px;
    margin-bottom: 22px;
  }
  .text {
    color: $charcoal;
    font-size: 1em;
    line-height: 1.5em;
    font-weight: 600;
    margin-bottom: 1.25em;
  }
}

.small-split-50-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  div {
    width: 49%;
  }
  @include breakpoint(large up) {
    display: inline-flex;
    justify-content: unset;
    align-items: unset;
    div {
      width: unset;
    }
    &:last-child {
      flex: 1;
      justify-content: space-between;
    }
  }
}

.large-display-flex {
  @include breakpoint(large up) {
    display: flex !important;
  }
}