.md-drppicker {
  display: flex;
  text-align: center;
  font-family: Open Sans !important;
  padding: 0 !important;
  margin-top: 4px !important;
  .calendar {
    margin: 0 !important;
  }
  tbody {
    font-size: 12px;
  }

  border-top: 2px solid var(--themePrimButtonsBg-color);

  .week-days {
    margin-top: 10px;
  }
}
.md-drppicker.ltr .calendar.right {
  margin-left: 0;
}
.md-drppicker.double {
  .ranges {
    order: 1;
  }
}

div.md-drppicker.ltr .ranges {
  font-size: 14px !important;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
div.md-drppicker.ltr .calendar.left .calendar-table {
}
div.md-drppicker td.available.next:hover,
.md-drppicker th.available.next {
  margin: 15px 0 0 0 !important;
  &:hover {
    margin: 15px 0 0 0 !important;
  }
}
div.md-drppicker td.available.prev:hover,
.md-drppicker th.available.prev {
  margin: 15px 0 0 0 !important;
  &:hover {
    margin: 15px 0 0 0 !important;
  }
}
div.md-drppicker.shown {
  transition: unset;
}
.buttons {
  width: 100%;
  border-top: 1px solid var(--neutral-outline-variant-color);
  margin: 0 !important;
}
.md-drppicker.double {
  min-width: 705px;
}
.md-drppicker.ltr .ranges {
  float: right !important;
  padding-left: 12px;
  padding-right: 12px;
  padding-top: 12px;
  width: 216px;
  ui {
    li {
      margin-right: 30px;
    }
  }
}
.md-drppicker.ltr.double .ranges {
  border-left: 1px solid var(--neutral-outline-variant-color);
}

.calendar-table table.table-condensed {
  border-collapse: separate;
  margin-top: -7px;
}

td.available:not(.today) td.disabled {
  width: 36px !important;
  height: 36px !important;
  margin: 0 !important;
  border: 0 !important;
  color: var(--on-surface-light);

  span {
    &:hover {
      background: var(--surface-light-8pct) !important;
    }
  }
}

div.md-drppicker .calendar th,
.md-drppicker .calendar td {
  min-width: 36px;
  height: 36px;
  margin-bottom: 10px;
}

div.md-drppicker .calendar tbody td:not(.active) {
  color: var(--neutral-on-main-neutral-color);
}

div.md-drppicker td.disabled {
  text-decoration: none;
}

div.md-drppicker td.start-date.end-date:not(.off),
div.md-drppicker td.start-date.available:not(.off),
div.md-drppicker td.end-date.available:not(.off) {
  background: transparent !important;
  span {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;
    gap: 10px;
    flex-shrink: 0;
    border-radius: 100px;
    background: var(--themePrimButtonsBg-color) !important;
    &:before {
      content: '';
      position: absolute;
      width: 34px;
      height: 32px;
      border-radius: 2em 0 0 2em;
      background: var(--themePrimButtonsBg-12-color) !important;
      left: 2px;
    }
    &:hover {
      background-color: transparent !important;
    }
  }
}
div.md-drppicker td.end-date.available:not(.off) {
  span {
    &:before {
      left: 0;
      border-radius: 0 2em 2em 0;
    }
  }
}
div.md-drppicker td.end-date.start-date.available:not(.off) {
  span {
    &:before {
      left: 0;
      border-radius: 0;
      display: none;
    }
  }
}

div.md-drppicker
  .calendar.left
  tbody
  tr.empty-week-row:has(td.empty-week-column:nth-of-type(1)):has(td.empty-week-column:nth-of-type(7)),
div.md-drppicker
  .calendar.right
  tbody
  tr.empty-week-row:has(td.empty-week-column:nth-of-type(1)):has(td.empty-week-column:nth-of-type(7)) {
  td.empty-week-column {
    display: none;
  }
}

div.md-drppicker td.in-range,
div.md-drppicker td.active :not(.start-date) {
  background: transparent !important;
  text-align: center;
  font-style: normal;
  font-weight: 400;
  outline: 1px solid inherit;

  span {
    &:before {
      content: '';
      position: absolute;
      width: 36px;
      height: 32px;
      background: var(--themePrimButtonsBg-12-color) !important;
    }
  }

  &:hover {
    border-radius: 0;
    span {
      background: var(--themePrimButtonsBg-color) !important;
      color: white;
    }
  }
}

div.md-drppicker td.available.active.in-range.start-date:not(.off):hover {
  border-radius: 2em 0 0 2em;
}

div.md-drppicker td.available.active.in-range.end-date:not(.off):hover {
  border-radius: 0 2em 2em 0;
}

div.md-drppicker td.active.off {
  color: var(--on-surface-light);
  background: transparent !important;
  span {
    background: transparent !important;
  }
}

div.md-drppicker td.available:hover,
.md-drppicker th.available:hover {
  background-color: transparent;
  span {
    background: var(--light-surface-primary-on-surface-opacity-8, rgba(26, 28, 30, 0.08));
  }
}

div.md-drppicker td.available,
.md-drppicker th.available {
  span {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;
    margin-left: 2px;
    gap: 10px;
    flex-shrink: 0;
    border-radius: 100px;
  }
}

div.md-drppicker td.off {
  color: var(--neutral-on-disable-color) !important;
  &:hover {
    color: var(--neutral-on-disable-color);

    span {
      background: transparent;
    }
  }
}

div.md-drppicker td.start-date.end-date.start-date.available {
  background: transparent !important;
}

div.md-drppicker td.available:focus,
.md-drppicker th.available:focus {
  background-color: transparent;
}

div.md-drppicker td.available:focus,
.md-drppicker th.available:focus {
  background-color: transparent;
  span {
    background: var(--themePrimButtonsBg-12-color);
  }
}
.ranges li {
  padding: 0;
}
div.md-drppicker .ranges ul li {
  &:hover {
    background: transparent;
  }
  border-bottom: 4px;
  button {
    height: 36px;
    width: 100%;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 4px;

    &:hover {
      background: var(--themePrimButtonsBg-8-color);
    }
    &.active {
      padding: 7px 12px 8px 12px;
      line-height: 21px;
      font-weight: 600;
      background: var(--themePrimButtonsBg-16-color);
      color: var(--on-surface-light);
    }
  }
}

.md-drppicker th.month {
  color: var(--on-surface-light);
  text-align: center;
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  line-height: 21px;
  height: 64px !important;
}

div.md-drppicker th {
  color: var(--outline-light);
  text-align: center;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 21px;
}

div.md-drppicker .button.button-primary {
  margin: 12px 12px 12px 8px;
}
div.md-drppicker .button.button-outlined {
  margin-left: 12px;
}
td.available.previous-range:not(.off) {
  background: var(--success-light-12pct) !important;
  border-radius: 0;
}
.previous-limit-start:not(.off),
.previous-limit-end:not(.off) {
  width: 32px !important;
  height: 32px !important;
  span {
    width: 32px !important;
    height: 32px !important;
    background: var(--success-light) !important;
    color: var(--themePrimButtonsTxt-color, #fff);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 2em;
  }
}
.previous-limit-start {
  border-radius: 0 2em 2em 0 !important;
}

.previous-limit-end {
  border-radius: 2em 0 0 2em !important;
}
.previous-limit-start.previous-limit-end {
  border-radius: 2em !important;
}

.compare-date {
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 21px;
  font-family: Open Sans;
  margin-bottom: 19.5px;
  display: flex;
  gap: 8px;
  margin-top: 36px;
  input {
    margin: 0;
  }
  label {
    margin: 0;
  }
}
td.available.today:not(.active) {
  span {
    color: var(--themePrimButtonsBg-color);
    border: 1px solid var(--themePrimButtonsBg-color);
    width: 32px !important;
    height: 32px !important;
    border-radius: 2em;
    &:hover {
      border: 1px solid;
      width: 30px !important;
      height: 29px !important;
      border-color: var(--themePrimButtonsBg-color) !important;
      background-color: var(--themePrimButtonsBg-8-color) !important;
    }

    &:hover {
      background-color: var(--primary-light-8pct) !important;
    }
    &:focus {
      background-color: var(--themePrimButtonsBg-12-color) !important;
    }
  }
}
td.available.today {
  span {
    background: transparent !important;
    width: 32px !important;
    height: 32px !important;
    border: 0;
  }
}
