@import "../common/var";

@include b(quarter-table) {
  font-size: 12px;
  margin: -1px;
  border-collapse: collapse;
  .el-icon {
    color: $--datepicker-icon-color;
  }

  td {
    padding: 0;
    cursor: pointer;
    &:first-child .cell {
      // margin-right: 20px;
      border-radius: 2px 0 0 2px;
    }
    &:nth-child(2) .cell {
      border-radius: 0 2px 2px 0;
    }

    .cell {
      width: 80px;
      display: inline-block;
      text-align: center;
      // line-height: 32px;
      padding: 8px 0px;
      color: $--datepicker-font-color;
      margin-bottom: 10px;

      .quarter-value {
        font-size: 16px;
        font-weight: 500;
      }
      &:hover {
        color: $--datepicker-hover-font-color;
      }

      & p {
        line-height: 22px;
        margin: 0;
      }

      &.today {
        position: relative;
        ::after {
          left: 48px;
          top: 8px;
          position: absolute;
          display: block;
          content: '';
          width: 8px;
          height: 8px;
          border-radius: 50%;
          background: $--color-primary;
        }
      }
      
      &.current {
        color: $--datepicker-cell-today;
        background: $--color-primary;
        border-radius: $--border-radius-base;
        position: relative;
      }

      &.disabled {
        background-color: $--background-color-base;
        cursor: not-allowed;
        color: $--color-text-placeholder;
        border-radius: $--border-radius-base;
        &:hover {
          color: $--color-text-placeholder;
        }
      }

      &.in-range {
        background-color: $--datepicker-inrange-background-color;
        &:hover {
          color: $--datepicker-active-color;
        }
      }

      &.start-date {
        color: $--datepicker-cell-today;
        background: $--color-primary;
        border-radius: $--border-radius-base;
        &:hover {
          color: $--datepicker-cell-today;
        }
      }      

      &.end-date {
        color: $--datepicker-cell-today;
        background: $--color-primary;
        border-radius: $--border-radius-base;
        &:hover {
          color: $--datepicker-cell-today;
        }
      }
    }
    
  }
}
