/* ###### 3.2 Datepicker ###### */

.ui-datepicker {
  background-color: rgb($white) ;
  border: 1px solid #{$border};
  font-family: inherit;
  font-size: inherit;
  padding: 10px;
  margin: 1px 0 0;
  display: none;
  width: auto !important;
  z-index: 5 !important;
  border-radius:5px;
  box-shadow:0px 4px 7px #{$shadow-color};
  .ui-datepicker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    font-weight: 500;
    font-size: 12px;
    text-transform: uppercase;
    color: #{$default-color};
    padding: 0 0 5px;
    letter-spacing: 1px;
    border: 0;
    background-color: transparent;
    border-start-start-radius: 3px;
    border-start-end-radius: 3px;

    .ui-datepicker-next, .ui-datepicker-prev {
      text-indent: -99999px;
      color: #{$gray-600};
      inset-block-start: 3px;
    }

    .ui-datepicker-next::before, .ui-datepicker-prev::before {
      font-size: 16px;
      font-family: 'Ionicons';
      position: absolute;
      inset-block-start: -2px;
      text-indent: 0;
    }

    .ui-datepicker-next {
      &:hover::before, &:focus::before {
        color: #{$gray-800};
      }
    }

    .ui-datepicker-prev {
      &:hover::before, &:focus::before {
        color: #{$gray-800};
      }
    }

    .ui-datepicker-next {
      order: 3;

      &:before {
        inset-inline-end: 5px;
        content: '\f3d1';
      }
    }

    .ui-datepicker-prev:before {
      inset-inline-start: 5px;
      content: '\f3cf';
    }

    .ui-datepicker-next-hover, .ui-datepicker-prev-hover {
      color: #{$gray-700};
      cursor: pointer;
      inset-block-start: 1px;
      border: 0;
      background-color: transparent;
    }
  }

  .ui-datepicker-title {
    color: #{$gray-800};
    font-weight: 700;
    font-size: 13px;
  }

  .ui-datepicker-calendar {
    margin: 0;
    background-color: transparent;
    border-end-end-radius: 3px;
    border-end-start-radius: 3px;

    th {
      text-transform: uppercase;
      font-size: 12px;
      font-weight: 700;
      letter-spacing: 1px;
      padding: 6px 9px;
      color: #{$gray-800};
    }
  }
}