@import "../common/var";

@include b(month-table) {
  font-size: 12px;
  margin: -1px;
  border-collapse: collapse;

  td {
    text-align: center;
    padding: 8px 0px;
    cursor: pointer;
    & div {
      height: 48px;
      padding: 6px 0;
      box-sizing: border-box;
    }
    &.today {
      .cell {
        font-weight: $--font-weight-base;
        border:1px solid transparent;
        @include date-today-border-color;
        @include theme-font-color;
      }
      &.start-date .cell,
      &.end-date .cell {
        color: $--color-white;
      }
    }

    &.disabled .cell {
      background-color: $--color-text-disabled;
      cursor: not-allowed;
      color: $--input-placeholder-color;

      &:hover {
        color: $--input-placeholder-color;
      }
    }

    .cell {
      width: 37px;
      display: block;
      line-height: 36px;
      color: $--color-black-65;
      margin: 0 auto;
      border-radius: $--border-radius-base - 2px;
      line-height: 25px;
      &:hover {
        border-radius: $--border-radius-2;
        @include date-available-hover-bg-color;
        @include date-available-hover-font-color;
      }
    }

    &.start-date .cell,
    &.end-date .cell {
      color: $--color-white;
      background-color: red;
    }

    &.start-date div {
      border-top-left-radius: 24px;
      border-bottom-left-radius: 24px;
    }

    &.end-date div {
      border-top-right-radius: 24px;
      border-bottom-right-radius: 24px;
    }

    &.current:not(.disabled) .cell {
      border-radius: $--border-radius-2;
      color: $--color-white;
      @include theme-bg-color;
    }
  }
}
