html[data-theme='dark'] {
  .ant-pagination {
    .ant-pagination-prev,
    .ant-pagination-next,
    .ant-pagination-item {
      background-color: rgb(255 255 255 / 4%) !important;

      a {
        color: #8b949e !important;
      }
    }

    .ant-select-arrow {
      color: @text-color-secondary !important;
    }

    .ant-pagination-item-active {
      background-color: @primary-color !important;
      border: none;
      border-radius: none !important;

      a {
        color: @white !important;
      }
    }
  }
}

.ant-pagination {
  align-items: center;
  color: #999 !important;

  .ant-pagination-prev,
  .ant-pagination-next {
    font-size: 12px;
    color: #999;
    border: 1px solid;

    .ant-pagination-item-link {
      background-color: transparent;
      border: none;
      border-radius: 0;
    }
  }

  .ant-pagination-prev:hover,
  .ant-pagination-next:hover,
  .ant-pagination-item:focus,
  .ant-pagination-item:hover {
    a {
      color: @primary-color;
    }
  }

  .ant-pagination-prev,
  .ant-pagination-next,
  .ant-pagination-item {
    margin: 0 4px;
    border: 1px solid #ccc;
    min-width: 32px;
    height: 32px;
    line-height: 32px;
    border-radius: 6px;

    a {
      color: #999;
    }

    &:last-child {
      margin-right: 0;
    }
  }

  .ant-pagination-item-active {
    background-color: @primary-color !important;
    border: 1px solid @primary-color !important;
    border-radius: none !important;

    a {
      color: @white !important;
    }
  }

  .ant-pagination-options {
    margin-left: 12px;

    .ant-select {
      color: #999;
    }
  }

  .ant-select:not(.ant-select-customize-input) .ant-select-selector {
    border: 1px solid #ccc;
    height: 32px;
    border-radius: 6px;

    .ant-select-selection-item {
      line-height: 32px;
    }
  }

  .ant-pagination-options-quick-jumper input {
    height: 32px !important;
    margin: 0 6px;
    line-height: 32px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 6px;
  }

  .ant-select-arrow {
    color: @border-color-shallow-dark;
  }

  &-disabled {
    display: none !important;
  }
}
