

.over-flow-wrapper {
  position: absolute;
  //top: 0;
  z-index: 2;
}

.at-date-input-wrapper {
  position: relative;
  &:hover {
    .at_date_picker_clear {
      opacity: 1 !important;
    }
  }
}

.at_date_picker_clear {
  opacity: 0;
  position: absolute;
  top: 50%;
  margin-top: -5px;
  font-size: 10px;
  cursor: pointer;
  &:hover {
    opacity: 1;
  }
}

@mixin date-header() {
  position: absolute;
  top: 0;
  color: $black-900;
  padding: 0 5px;
  font-size: 16px;
  display: inline-block;
  line-height: 40px;
}

@mixin date-select() {
  padding: 0 2px;
  font-weight: 700;
  display: inline-block;
  color: $black-600;
  line-height: 40px;
}

.at-datepicker {
  position: relative;
  outline: none;
  width: 285px;
  border: 1px solid #fff;
  list-style: none;
  font-size: 14px;
  text-align: left;
  background-color: #fff;
  border-radius: 4px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, .2);
  background-clip: padding-box;
  line-height: 1.5;
  a {
    &:hover {
      color: $brand-color;
    }
  }
  &--footer {
    padding: 8px 12px;
  }

  &--panel {
    position: relative;
    &--header {
      height: 40px;
      line-height: 40px;
      text-align: center;
      -webkit-user-select: none;
      -moz-user-select: none;
      -ms-user-select: none;
      user-select: none;
      border-bottom: 1px solid $grey-50;
      .pre-year-btn {
        left: 7px;
        @include date-header();
        &:after {
          font-family: feather;
          content: '\E849'
        }
      }
      .pre-month-btn {
        left: 29px;
        @include date-header();
        &:after {
          font-family: feather;
          content: "\E843";
        }
      }

      .current-select-label {
        .month-select {
          @include date-select;
          &:hover {
            color: $brand-color;
          }
        }
        .year-select {
          @include date-select;
          &:hover {
            color: $brand-color;
          }
        }

      }

      .next-year-btn {
        @include date-header();
        right: 7px;
        &:after {
          font-family: feather;
          content: "\E847";
        }
      }
      .next-month-btn {
        @include date-header();
        right: 29px;
        &:after {
          font-family: feather;
          content: "\E844";
        }

      }

    }

    &--body {
      padding: 8px 12px;
      border-bottom: 1px solid #F7F7F7;
      .at-calendar-table {
        border-collapse: collapse;
        max-width: 100%;
        background-color: transparent;
        width: 100%;
        table-layout: fixed;
        td {
          border: 0;
        }
        thead {
          .column-header {
            line-height: 18px;
            width: 33px;
            padding: 6px 0;
            text-align: center;
            &-inner {

            }
          }
        }

        tbody {
          tr {
            line-height: 1.5;
          }
          .at-date-cell, .at-month-cell {
            text-align: center;
            padding: 4px 0;
            .at-date {
              display: inline-block;
              margin: 0 auto;
              color: $black-500;
              border-radius: 2px;
              line-height: 18px;
              border: 1px solid transparent;
              background: transparent;
              padding: 2px 4px;
              text-align: center;
              cursor: pointer;
              transition: background .3s ease;
              &:hover {
                background: $primary-100;
                cursor: pointer;
              }
            }
            &--last-month {
              .at-date {
                color: $grey-500;
              }
            }
            &--next-month {
              .at-date {
                color: $grey-500;
              }
            }
            &--today {
              .at-date {
                border: 1px solid $brand-color;

              }
            }
            &--selected {
              .at-date {
                background: $brand-color;
                color: white;
                &:hover {
                  background: $brand-color !important;
                }
              }
            }
            &--disabled {
              cursor: not-allowed;
              color: $grey-500;
              background: $grey-100;
              .at-date {
                cursor: not-allowed;
                &:hover {
                  cursor: not-allowed;
                  background: $grey-100;
                }
              }
            }

          }
          .at-month-cell {
            line-height: 50px;
            text-align: center;
            .at-date {

            }
          }
        }
      }

    }
  }

}
