.rw-sr {
  @extend .sr-only !optional;
}

.date-picker {
  display: inline-block;
  position: relative;
  margin: inherit 0;
}


.date-picker-calendar {
  .rw-header {
    border-bottom: 1px solid $gray-lighter;
    margin: 10px 0;
    overflow: hidden;
    padding: 0 10px 10px;
  }

  .popover {
    display: block;
  }

  .rw-calendar {
    outline: none;
  }
}

.date-picker-calendar {
  .rw-calendar-grid {
    margin: 10px;
    border: none;

    th {
      font-size: 0.9em;
      font-weight: normal;
      padding-bottom: 10px;
      text-align: center;
      text-transform: uppercase;
      border: none;
    }

    td {
      height: 28px;
      width: 28px;
      padding: 0;
      border: none;
    }

    tr {
      border: none;
    }

    .rw-btn {
      height: 100%;
      width: 100%;
      border-radius: 0;
    }
  }

  .rw-btn-view {
    border: none;
    color: $black;
    float: left;
    font-size: $base-unit;
    text-transform: uppercase;
    width: 60%;
  }

  .rw-btn-left,
  .rw-btn-right {
    @extend .fa !optional;
    float: left;
    line-height: 20px;
    width: 20%;

    &[disabled] {
      color: $gray-light;
    }
  }

  .rw-btn-left {
    @extend .fa-angle-left !optional;
  }

  .rw-btn-right {
    @extend .fa-angle-right !optional;
  }

  .rw-btn {
    background: transparent;
    border: none;
    color: $black;
    display: inline-block;

    &.rw-off-range {
      color: $gray-light;
    }
  }

  .rw-state-selected {
    background: $brand-success;
    border-radius: 3px;
    color: #fff;
  }
}

.date-picker-calendar .popover {
  box-shadow: none;
  display: block;
  left: 0;
  min-width: 200px;
  right: auto;
  top: 40px;
  z-index: 1;

  .arrow {
    border-bottom-color: rgba(0, 0, 0, 0.25);
    left: 10%;
    right: auto;
  }

  .popover-content {
    padding: 0;
  }
}
