.bimdata-datepicker {
  position: relative;
  text-align: left;
  box-sizing: border-box;
  & > div {
    display: flex;
    position: relative;
    &.not-empty {
      label {
        top: -22px;
        color: var(--color-primary);
        font-size: 10px;
      }
    }
  }
  label {
    position: absolute;
    left: 0;
    top: 0;
    font-size: 12px;
    transform: translateY(8px);
    transition: 0.2s ease all;
    color: var(--color-granite-light);
    cursor: pointer;
  }
  input {
    width: 100%;
    height: 31.5px;
    border: none;
    border-bottom: 1px solid var(--color-silver);
    color: var(--color-primary);
    background-color: transparent;
    z-index: 2;
    &:focus-visible {
      outline: none;
    }
    &.required {
      border-bottom: 1px dashed red;
    }
  }
  &__calendar {
    width: 280px;
    box-shadow: var(--box-shadow);
    background: #fff;
    position: absolute;
    z-index: 10000;
    > div {
      width: 100%;
      background: #fff;
    }
    * {
      box-sizing: border-box;
    }
    &__calendar--inline {
      position: static;
    }
    &.bottom-right {
      right: 0;
    }
    &.bottom-left {
      left: 0;
    }
    &.top,
    &.top-left,
    &.top-right {
      bottom: 32px;
    }
    &.top-right {
      right: 0;
    }
    button {
      background: inherit;
      text-align: center;
      color: var(--color-primary);
      cursor: pointer;
      &:disabled {
        color: var(--color-granite-light);
      }
      &:focus-visible {
        outline: none;
      }
    }
    header {
      display: flex;
      height: 40px;
      justify-content: space-between;
      border-bottom: 1px solid var(--color-silver);
      cursor: pointer;
      button {
        border: none;
        flex: 1;
        color: var(--color-primary);
        &:hover:not(:disabled) {
          background-color: #e6eeff;
        }
        &__up {
          color: var(--color-primary);
          flex-grow: 5;
        }
      }
      .doublePrev,
      .doubleNext,
      .prev,
      .next {
        padding: 0;
        max-height: 39px;
        max-width: 32px;
      }
      .prev {
        &:disabled {
          .default {
            &:after {
              border-right: 10px solid #ddd;
            }
          }
        }
      }
      .next {
        &:disabled {
          .default {
            &:after {
              border-left: 10px solid #ddd;
            }
          }
        }
      }
    }
    .cell {
      height: 40px;
      border: 1px solid transparent;
      cursor: pointer;
      &.day:not(.disabled),
      &.month:not(.disabled),
      &.year:not(.disabled) {
        &:hover {
          background-color: #e6eeff;
          border-radius: 2px;
        }
        &:focus {
          z-index: 1;
        }
      }
      &.day {
        padding: 0;
        height: 33px;
        width: 22px;
        flex: 33px;
        color: var(--color-granite-light);
        &.today {
          color: var(--color-primary);
          font-weight: bold;
          position: relative;
          &::after {
            width: 12px;
            background-color: currentcolor;
            bottom: 6px;
            content: "";
            height: 1px;
            left: 50%;
            position: absolute;
            transform: translateX(-50%);
          }
        }
      }
      &.day.highlighted {
        &.highlight-end {
          background-color: #e1ebff;
        }
      }
      &.day,
      &.month,
      &.year {
        &.selected {
          background-color: var(--color-primary);
          color: var(--color-white);
          border-radius: 2px;
          &:hover {
            background-color: var(--color-primary-light);
            color: var(--color-white);
          }
          &.highlighted {
            background-color: var(--color-primary-light);
          }
        }
      }
      &.highlighted {
        background-color: #f0f5ff;
        &.disabled {
          color: #accad2;
        }
      }
      &.muted {
        color: var(--color-silver);
        &.disabled:not(.selected) {
          color: #ddd;
          &.highlighted {
            color: #e2ebfa;
          }
        }
        &.disabled.highlighted {
          background-color: transparent;
        }
      }
    }
    .day-header {
      padding: 0 12px;
      display: flex;
      gap: 0;
      color: var(--color-primary);
      span {
        height: 40px;
        width: 36.5px;
        display: inline-block;
        font-size: 75%;
        line-height: 40px;
        padding: 0;
        text-align: center;
        vertical-align: middle;
        white-space: nowrap;
      }
    }
    .month,
    .year {
      width: 29.9%;
    }
    .cells-wrapper {
      padding: 6px 12px 14px;
      overflow: hidden;
      position: relative;
      .picker-cells {
        display: flex;
        flex-wrap: wrap;
        transition: all 250ms ease-in-out;
      }
    }
  }
  &__calendar-button {
    border: none;
    font-style: normal;
    &.input-group-prepend,
    &.input-group-append {
      padding: 0;
    }
  }
}
