.pika-button {
  text-align: center;
  .border-radius(999px);
  padding: 6px !important;
  line-height: 16px !important;
  height: 2rem !important;
  width: 2rem !important;
  box-shadow: none !important;
  font-style: normal !important;
  border: 1px solid @white !important;
  background: @white !important;

  &:hover {
    color: @text-default !important;
    background: @white !important;
    border: 1px solid @blue !important;
    box-shadow: none !important;
    .border-radius(999px) !important;
  }
}

.pika-prev {
  box-shadow: none !important;
  margin-left: auto;
  &:hover {
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAeCAYAAAAsEj5rAAAAUklEQVR42u3VMQoAIBADQf8Pgj+OD9hG2CtONJB2ymQkKe0HbwAP0xucDiQWARITIDEBEnMgMQ8S8+AqBIl6kKgHiXqQqAeJepBo/z38J/U0uAHlaBkBl9I4GwAAAABJRU5ErkJggg==');
  }
}
.pika-next {
  box-shadow: none !important;
  &:hover {
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAeCAYAAAAsEj5rAAAAU0lEQVR42u3VOwoAMAgE0dwfAnNjU26bYkBCFGwfiL9VVWoO+BJ4Gf3gtsEKKoFBNTCoCAYVwaAiGNQGMUHMkjGbgjk2mIONuXo0nC8XnCf1JXgArVIZAQh5TKYAAAAASUVORK5CYII=');
  }
}

.range-picker__input {
  display: inline-block;
  width: 100%;
  max-width: 350px;
  outline: none;
}

.range-picker {
  position: relative;
  outline: none;

  .icon-calendar {
    cursor: pointer;
    .disabled& {
      color: @gray-6;
      cursor: auto;
    }
  }

  .is-startrange .pika-button {
    background: @blue !important;
    font-weight: normal;
    .border-radius(999px);
  }

  .is-endrange .pika-button {
    background: @blue !important;
    font-weight: normal;
    .border-radius(999px);
  }

  .is-startrange.is-endrange .pika-button {
    background: @blue;
    font-weight: normal;
    .border-radius(999px);
  }

  .is-inrange .pika-button {
    background: #F1F5F8 !important;
    color: @text-default;
  }
}

.range-picker__picker-adjust-wrapper {
  margin-bottom: 10px;
}

.range-picker__picker-adjust--add,
.range-picker__picker-adjust--sub {
  display: flex;
  justify-content: space-around;
}

.range-picker__picker-adjust-label {
  text-align: center;
  color: @gray-5;
  margin-bottom: 3px;
}

.range-picker__picker-adjust--add {
  padding: 0 15px;
}

.range-picker__picker-adjust--sub {
  padding: 0 0 0 29px;
}

.range-picker__trigger {
  border: 2px solid @blue-2;
  padding: 3px 5px 2px 7px;
  font-size: @font-size-base;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  width: 100%;
  max-width: 350px;
  height: 31px;
  background: @blue-1;
  outline: none;

  .icon-calendar {
    margin-right: 0.375rem;

    .disabled& {
      cursor: auto;
      color: @gray-6;
    }
  }

  &.size-md {
    height: 2.5rem;
  }
  
  &.size-sm {
    height: 2rem;
  }

  .icon-close {
    height: 100%;
    position: relative;
    margin-right: 0.375rem;
    display: grid;
    place-items: center;
    color: @gray-7;
  }

  &.is-active {
    border: 2px solid @blue;
  }

  &.disabled {
    color: @gray-6;
    border-color: @gray-3;
    background-color: @gray-1;
    cursor: auto;
  }
}

.range-picker__placeholder {
  color: @gray-4;
}

.range-picker__menu {
  position: absolute;
  z-index: 4000;
  right: 0;
  top: 2.5rem;
  background: @white;
  width: 700px;
  border: 1px solid @gray-3;
  overflow: hidden;
  .clearfix();
  .border-radius(6px);
  box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1), 0px 1px 2px rgba(0, 0, 0, 0.06);
}

.range-picker__tab-trigger {
  width: 0 !important;
  height: 0 !important;
  border: none !important;
  position: absolute !important;
  left: -9999px !important;
}

.range-picker__pickers {
  .clearfix();
  height: 100%;
  display: flex;
}

.range-picker__select-controls {
  display: flex;
  justify-content: flex-end;
  .clearfix();
  border-top: 1px solid @gray-3;
  padding: 10px;

  .select-button {
    outline: 2px solid transparent;
    border: none;
    .border-radius(6px);
    background-color: #def3e9;
    font-size: 0.875rem;
    height: 2rem;
    min-width: 2rem;
    font-weight: 600;
    color: @text-default;
    padding: 0 1rem;
    box-shadow: none;

    &:hover {
      background-color: #BDE7D2;
      cursor: pointer;
      &:active {
        background-color: #9BDABC
      }
    }
  }
}

.range-picker__quick-select {
  width: 180px;
  float: left;
  border-left: 1px solid @gray-3;
  font-size: @font-size-base;

  ul {
    padding-inline-start: 0px;
  }

  .selectors > * + * {
    margin-top: .25rem;
  }

  .selectors {
    padding: .5rem;
    margin: 0;
    list-style: none;

    .quarters {
      display: flex;
      justify-content: space-evenly;
    }

    li {
      border-radius: 4px;
      padding: 0.375rem;
      cursor: pointer;
      color: @blue;

      &.is-active {
        background: @blue;
        color: white;
      }

      &:hover {
        background: @blue-hover;

        &.is-active {
          background: @blue;
          color: white;
        }
      }

      &.quarter {
        display: grid;
        place-items: center;
        width: 25%;
      }
    }
  }
}

.range-picker__start-picker,
.range-picker__end-picker {
  width: 260px;
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.range-picker__start-picker {
  border-right: 1px solid @gray-3;
}

.range-picker__step {
  font-size: @font-size-xsmall;
  color: @blue;
  cursor: pointer;
  margin-right: 10px;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.range-picker__step-label {
  font-size: @font-size-xsmall;
  display: inline-block;
  width: 70px;
  margin-left: 10px;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}
