::ng-deep .customCDKpanel {
  transform: none !important;
}

::ng-deep .qms-paginator {
  display: block;
  .qms-paginator-outer-container {
    display: flex;
  }
  .mat-paginator-container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 8px;
    flex-wrap: wrap-reverse;
    width: 100%;
    .qms-btn-icon {
      width: 40px;
      height: 40px;
      line-height: 40px;
    }
    .mat-mdc-select {
      /* TODO(mdc-migration): The following rule targets internal classes of select that may no longer apply for the MDC version. */
      .mat-select-arrow {
        margin-top: 20px;
      }
    }
    .qms-total-result {
      margin-right: 24px;
      margin-bottom: 21px;
      span {
        font-family: Open Sans;
        font-weight: normal;
        font-size: 14px;
        line-height: 22px;
        color: rgba(0, 0, 0, 0.6);
      }
    }
    .qms-paginator-page-size {
      margin-right: 24px;
      display: flex;
      align-items: baseline;
      .qms-pagesize-label {
        font-weight: normal;
        font-size: 14px;
        line-height: 22px;
        color: #323232;
        font-family: Open Sans;
        font-style: normal;
        margin-right: 8px;
      }
      .qms-form-page-size {
        /* TODO(mdc-migration): The following rule targets internal classes of form-field that may no longer apply for the MDC version. */

        .mat-mdc-text-field-wrapper {
          width: 70px;
        }
      }
      .qms-form-select-page-size {
        /* TODO(mdc-migration): The following rule targets internal classes of form-field that may no longer apply for the MDC version. */
        .mat-mdc-text-field-wrapper {
          width: 60px;
          padding-left: 9px;
          padding-right: 5px;
        }
      }
      .jump-page {
        /* TODO(mdc-migration): The following rule targets internal classes of form-field that may no longer apply for the MDC version. */
        /* TODO(mdc-migration): The following rule targets internal classes of form-field that may no longer apply for the MDC version. */
        .mat-form-field-wrapper {
          /* TODO(mdc-migration): The following rule targets internal classes of form-field that may no longer apply for the MDC version. */

          width: 55px;
        }
      }
      /* TODO(mdc-migration): The following rule targets internal classes of form-field that may no longer apply for the MDC version. */
      /* TODO(mdc-migration): The following rule targets internal classes of form-field that may no longer apply for the MDC version. */
      .mat-form-field-flex {
        height: 40px;
        /* TODO(mdc-migration): The following rule targets internal classes of form-field that may no longer apply for the MDC version. */
        .mat-form-field-infix {
          padding-top: 4px;
          border-top: 0px;
          padding-bottom: 0px;
          height: 25px;
        }
      }
    }
    .qms-paginator-range-actions {
      display: flex;
      align-items: center;
      margin-bottom: 15px;
      .selected {
        background-color: #e5eefb;
        color: #1954a9;
      }
      .qms-3d {
        font-weight: 600;
        font-size: 14px;
        line-height: 22px;
        color: #323232;
      }
      button:not(.qms-btn-disabled) {
        .qms-btn-icon-wrapper {
          color: #323232;
        }
      }

      .nav-list-pagination {
        display: -webkit-box;
        display: -webkit-flex;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-flex-wrap: wrap;
        -webkit-flex-wrap: wrap;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
        -webkit-align-items: center;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        padding: 0;
        margin: 0;
        list-style: none;

        .nav-item {
          button.qms-btn-icon {
            line-height: 1.43;
            letter-spacing: 0.01071em;
            border-radius: 20px;
            text-align: center;
            box-sizing: border-box;
            min-width: 40px;
            width: unset;
            height: 40px;
            padding: 0 5px;
          }
        }
      }
    }
  }
  /* TODO(mdc-migration): The following rule targets internal classes of paginator that may no longer apply for the MDC version. */
  /* TODO(mdc-migration): The following rule targets internal classes of paginator that may no longer apply for the MDC version. */
  /* TODO(mdc-migration): The following rule targets internal classes of paginator that may no longer apply for the MDC version. */
  .mat-paginator-container-mobile {
    .mat-mdc-select {
      /* TODO(mdc-migration): The following rule targets internal classes of select that may no longer apply for the MDC version. */
      .mat-select-arrow {
        margin-top: 20px;
      }
    }
    .qms-total-result {
      margin-bottom: 16px;
      span {
        font-family: Open Sans;
        font-style: normal;
        font-weight: normal;
        font-size: 12px;
        line-height: 16px;
        color: rgba(0, 0, 0, 0.6);
      }
    }
    .mat-paginator-container {
      justify-content: flex-start;
    }
    .qms-paginator-page-size {
      margin-right: 24px;
      display: flex;
      align-items: baseline;
      .qms-pagesize-label {
        font-weight: normal;
        font-size: 12px;
        line-height: 22px;
        color: #323232;
        font-family: Open Sans;
        font-style: normal;
        margin-right: 8px;
      }
      .qms-form-page-size {
        /* TODO(mdc-migration): The following rule targets internal classes of form-field that may no longer apply for the MDC version. */

        .mat-mdc-text-field-wrapper {
          width: 70px;
        }
      }
      .qms-form-select-page-size {
        /* TODO(mdc-migration): The following rule targets internal classes of form-field that may no longer apply for the MDC version. */
        .mat-mdc-text-field-wrapper {
          width: 60px;
          padding-left: 9px;
          padding-right: 5px;
        }
      }
      .jump-page {
        /* TODO(mdc-migration): The following rule targets internal classes of form-field that may no longer apply for the MDC version. */
        /* TODO(mdc-migration): The following rule targets internal classes of form-field that may no longer apply for the MDC version. */
        .mat-form-field-wrapper {
          /* TODO(mdc-migration): The following rule targets internal classes of form-field that may no longer apply for the MDC version. */
          .mat-form-field-flex {
            width: 55px;
          }
        }
      }
      /* TODO(mdc-migration): The following rule targets internal classes of form-field that may no longer apply for the MDC version. */
      /* TODO(mdc-migration): The following rule targets internal classes of form-field that may no longer apply for the MDC version. */
      .mat-form-field-flex {
        height: 40px;
        /* TODO(mdc-migration): The following rule targets internal classes of form-field that may no longer apply for the MDC version. */
        .mat-form-field-infix {
          padding-top: 4px;
          border-top: 0px;
          padding-bottom: 0px;
          height: 25px;
        }
      }
    }
  }
  .size-small {
    .mat-mdc-paginator-container {
      justify-content: flex-start;
    }
  }
  .mr-b-size-small {
    margin-bottom: 17px !important;
  }
}

::ng-deep div.mat-mdc-select-panel {
  min-width: fit-content !important;
}
