@import "../theme/variable";
@import "../theme/mixins";
@import "typography";

.qms-date {
  font-family: Open Sans;

  .mat-calendar-body-selected {
    background-color: theme-apply($primary);
  }

  .mat-calendar-body-in-range {
    &:before {
      background-color: theme-apply($primary-light-32-opacity);
    }

    .mat-calendar-body-cell-content,
    .mat-date-range-input-separator {
      font-weight: 600;
    }
  }

  .mat-calendar-body-label {
    opacity: 0;
  }

  .mat-calendar-body-label[colspan="7"] {
    display: none;
  }

  .mat-calendar-period-button {
    font-weight: 700;
    font-size: 1rem;
    color: theme-apply($default-color);
  }

  .mat-calendar-period-button {
    text-transform: lowercase;

    &::first-letter {
      text-transform: uppercase;
    }
  }

  .mat-calendar-table-header th {
    font-size: 0.75rem;
    color: black(0.6);
  }

  .mat-calendar-arrow {
    margin: 0 0 0 15px;
  }

  .mat-calendar-body-today {
    &:not(.mat-calendar-body-selected) {
      border-color: #c2c2c2;
    }
  }

  .mat-calendar-body-cell {
    &:not(.mat-calendar-body-disabled) {
      &:hover {
        > .mat-calendar-body-cell-content {
          &:not(.mat-calendar-body-selected) {
            &:not(.mat-calendar-body-comparison-identical) {
              background-color: theme-apply($primary-light-12-opacity);
              color: theme-apply($primary);
            }
          }
        }
      }
    }
  }
  .cdk-keyboard-focused {
    .mat-calendar-body-active {
      > .mat-calendar-body-cell-content {
        &:not(.mat-calendar-body-selected) {
          &:not(.mat-calendar-body-comparison-identical) {
            background-color: theme-apply($primary-light-12-opacity);
            color: theme-apply($primary);
          }
        }
      }
    }
  }
  .cdk-program-focused {
    .mat-calendar-body-active {
      > .mat-calendar-body-cell-content {
        &:not(.mat-calendar-body-selected) {
          &:not(.mat-calendar-body-comparison-identical) {
            background-color: white;
          }
        }
      }
    }
  }
}
