.ant-select-single.ant-select-sm:not(.ant-select-customize-input) .ant-select-selector {
  height: 32px;
  padding: 3px 7px;
}

.ant-select-single.ant-select-sm:not(.ant-select-customize-input):not(.ant-select-customize-input) {
  .ant-select-selection-search-input {
    height: 32px;
  }
}

.ant-btn > .anticon.anticon-loading {
  position: absolute;
  top: calc(50% - 9px);
  left: calc(50% - 9px);
  font-size: 18px;
  margin: 0 !important;
  line-height: 0;
}

.ant-btn > .anticon.anticon-loading + span {
  margin-left: 0px;
}

.ant-btn > .anticon,
.ant-btn .ng-fa-icon {
  vertical-align: middle;
}

.ant-btn > .anticon + span,
.ant-btn > span + .anticon {
  margin-left: 5px;
}

.ant-btn.ant-btn-loading:not(.ant-btn-circle):not(.ant-btn-circle-outline):not(.ant-btn-icon-only) {
  .anticon:not(:last-child) {
    margin-left: -20px;
  }
}

.anticon.ant-notification-notice-icon {
  margin-left: 0px;
  font-size: 17px;
  padding-top: 3px;
}

.ant-notification-notice-with-icon .ant-notification-notice-message {
  margin-left: 24px;
}

.ant-notification-notice-with-icon .ant-notification-notice-description {
  margin-left: 2px;
}

.ant-notification-notice {
  padding: 10px;
}

.ant-notification-notice-close {
  right: 10px;
  top: 7px;

  &:hover {
    color: rgba(255, 0, 0, 1);
  }
}

.ant-tooltip-inner {
  padding: 4px 8px 3px;
  min-height: auto;
  border-radius: 2px;
}

.ant-tabs-bar {
  border-bottom: 1px solid #dcdfe6;
}

.ant-tabs.ant-tabs-card .ant-tabs-card-bar .ant-tabs-tab {
  border: 1px solid #dcdfe6;
}

.ant-tabs.ant-tabs-card .ant-tabs-card-bar .ant-tabs-tab-active {
  border-color: #dcdfe6;
  border-bottom: 1px solid #fff;
}

.ant-tabs-nav .ant-tabs-tab {
  margin: 0px 1px 0px 0px;
}

.ant-tabs-nav-wrap {
  margin-bottom: 1px;
}

.reuse-tab__line .ant-tabs-nav .ant-tabs-tab .reuse-tab__name {
  border-radius: 3px;
  background: #f1f1f1;
  border: 1px solid #ddd;
  padding: 7px 30px 7px 10px;
}

.reuse-tab__line .ant-tabs-nav .ant-tabs-tab.ant-tabs-tab-active .reuse-tab__name {
  background: #fff;
}

.reuse-tab__line .ant-tabs-nav .ant-tabs-tab .reuse-tab__op {
  top: 13px;
  right: 10px;

  &:hover {
    color: #f5222d;
  }
}

.reuse-tab__line .ant-tabs-ink-bar {
  display: none !important;
}

.reuse-tab__cm {
  .ant-menu {
    border-radius: 3px;
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.15);
    padding: 1px;
    min-width: 100px;

    .ant-menu-item {
      height: 30px;
      line-height: 30px;
      margin-top: 0px;
      margin-bottom: 0px;
      padding: 0px 10px;
      transition: none;

      &:not(.ant-menu-item-disabled):hover {
        color: rgba(0, 0, 0, 0.65);
        background-color: #f0faff;
      }
    }
  }
}

a,
.ant-switch,
.ant-switch-loading-icon,
.ant-switch::after,
.ant-tabs-bar,
.alain-default__aside,
.alain-default__header-logo,
.sidebar-nav__item-icon,
.sidebar-nav__sub-arrow,
.sidebar-nav__sub-arrow:before,
.sidebar-nav__sub-arrow:after,
.ant-dropdown-menu-item,
.ant-dropdown-menu-title,
.ant-select-dropdown-menu-item,
.ant-select-selection,
.ant-spin-container,
.ant-tabs-nav .ant-tabs-tab,
.ant-tabs .ant-tabs-top-content > .ant-tabs-tabpane,
.ant-tabs .ant-tabs-bottom-content > .ant-tabs-tabpane,
.ant-tabs .ant-tabs-top-content.ant-tabs-content-animated,
.ant-tabs .ant-tabs-bottom-content.ant-tabs-content-animated,
.ant-select-arrow .ant-select-arrow-icon svg,
.cdk-overlay-backdrop,
.ant-collapse > .ant-collapse-item > .ant-collapse-header,
.ant-btn,
.ant-btn > i,
.ant-btn > span {
  transition: none;
}

.ant-form-vertical {
  .ant-form-item {
    padding-bottom: 0px;
  }

  .ant-form-item-label,
  .ant-col-24.ant-form-item-label,
  .ant-col-xl-24.ant-form-item-label {
    padding: 0 0 3px;
  }
}

.ant-form-item-explain,
.ant-form-item-extra {
  min-height: 20px;
  font-size: 12px;
  margin-top: -2px;
}

.ant-form-item-required::before {
  margin-right: 3px;
  vertical-align: middle;
}

.ant-modal {
  top: 60px;
}

.ant-modal-confirm .ant-modal-body {
  padding: 12px;
}

.ant-modal-confirm-body > .anticon {
  padding-right: 10px;
  margin-top: -12px;
  font-size: 17px;
  margin-left: -12px;
  padding-left: 10px;
  padding-top: 2px;
  background: #fff;
  margin-right: 0px;
  height: 40px;
  line-height: 40px;
  width: 37px;
  border-bottom: 1px solid #f0f0f0;
}

.ant-modal-confirm-body .ant-modal-confirm-title {
  display: inline-block;
  line-height: 38px;
  margin-top: -12px;
  background: #fff;
  padding-left: 12px;
  height: 40px;
  width: calc(100% + 24px);
  margin-right: -12px;
  border-bottom: 1px solid #f0f0f0;
  margin-left: -12px;
}

.ant-modal-confirm-body > .anticon + .ant-modal-confirm-title + .ant-modal-confirm-content {
  margin-left: 0px;
  margin-top: 2px;
}

.ant-modal-header {
  padding: 8px 13px 9px;
  border-radius: 0px;
  border-bottom: 1px solid #f0f0f0;
}

.ant-modal-content {
  border: 1px solid #f0f0f0;
}

.ant-modal-footer {
  padding: 10px;
  border-top: 1px solid #f0f0f0;
}

.ant-modal-close-x {
  width: 40px;
  height: 40px;
  line-height: 40px;
  font-size: 14px;
  color: #c0c4cc;
}

.ant-modal-body {
  padding: 12px 16px;
}

.ant-table-small {
  border: 1px solid #dcdfe6;
}

/* prettier-ignore */
.ant-table-small > .ant-table-content > .ant-table-header > table > .ant-table-tbody > tr > td,
.ant-table-small > .ant-table-content > .ant-table-body > table > .ant-table-tbody > tr > td,
.ant-table-small > .ant-table-content > .ant-table-scroll > .ant-table-header > table > .ant-table-tbody > tr > td,
.ant-table-small > .ant-table-content > .ant-table-scroll > .ant-table-body > table > .ant-table-tbody > tr > td,
.ant-table-small > .ant-table-content > .ant-table-fixed-left > .ant-table-header > table > .ant-table-tbody > tr > td,
.ant-table-small > .ant-table-content > .ant-table-fixed-right > .ant-table-header > table > .ant-table-tbody > tr > td,
.ant-table-small > .ant-table-content > .ant-table-fixed-left > .ant-table-body-outer > .ant-table-body-inner > table > .ant-table-tbody > tr > td,
.ant-table-small > .ant-table-content > .ant-table-fixed-right > .ant-table-body-outer > .ant-table-body-inner > table > .ant-table-tbody > tr > td {
  padding: 6px 6px 5px;
}

.ant-table-small > .ant-table-content > .ant-table-body {
  margin: 0px;
}

.ant-table-small .ant-table-tbody > tr:hover:not(.ant-table-expanded-row) > td,
.ant-table-small .ant-table-tbody > tr.selected:not(.ant-table-expanded-row) > td {
  background-color: #f0faff !important;
}

.ant-table-placeholder {
  border: 1px solid #e8e8e8;
  border-top: none;
}

.ant-table-row-filter th {
  padding: 2px !important;
  text-align: center !important;

  .ant-table-header-column {
    width: 100% !important;

    .ant-select {
      width: 100% !important;
    }

    .ant-input-number {
      width: 100% !important;
    }

    .ant-calendar-picker {
      width: 100% !important;
      text-align: left !important;
    }

    .ant-calendar-picker-icon {
      z-index: 0 !important;
    }
  }
}

.ant-popover-inner-content {
  padding: 8px 12px 8px;
}

.sidebar-nav__group-title {
  display: none;
}

.sidebar-nav__floating-container {
  .sidebar-nav {
    &.sidebar-nav__sub {
      background: #000c17;
    }

    .sidebar-nav__item {
      border-left: none;
    }

    .sidebar-nav__item-link:hover {
      background-color: rgba(24, 144, 255, 0.7);
    }

    .sidebar-nav__item:hover,
    .sidebar-nav__item.sidebar-nav__open {
      > .sidebar-nav__item-link {
        color: #fff;

        > i {
          color: #fff;
        }

        > .sidebar-nav__sub-arrow::before,
        > .sidebar-nav__sub-arrow::after {
          background-image: none;
        }

        > .sidebar-nav__item-text {
          color: #fff;
        }
      }

      .sidebar-nav__sub {
        background: #000c17;
      }
    }

    .sidebar-nav__item-link {
      color: rgba(255, 255, 255, 0.65);
      padding: 6.5px 12px 6px;
      font-size: 14px;
    }

    .sidebar-nav__selected {
      background-color: transparent;

      .sidebar-nav__item-link {
        color: #fff;
        background-color: #1890ff;
      }
    }
  }
}

.ant-switch:not(.ant-switch-disabled):active::before,
.ant-switch:not(.ant-switch-disabled):active::after {
  width: 18px;
}

.ant-table-pagination.ant-pagination {
  margin: 10px 0;
  width: 100%;
  text-align: right;

  .ant-pagination-total-text {
    float: left;
  }
}

.ant-pagination-options-quick-jumper input {
  margin-right: 0;
}

.ant-pagination.mini .ant-pagination-total-text,
.ant-pagination.mini .ant-pagination-simple-pager {
  height: 32px;
  line-height: 30px;
}

.ant-pagination.mini .ant-pagination-item {
  min-width: 32px;
  height: 32px;
  margin-right: 8px;
  line-height: 30px;
}

.ant-pagination.mini .ant-pagination-item:not(.ant-pagination-item-active) {
  background: #fff;
  border-color: #d9d9d9;
}

.ant-pagination.mini .ant-pagination-prev,
.ant-pagination.mini .ant-pagination-next {
  min-width: 32px;
  height: 32px;
  margin-right: 8px;
  line-height: 32px;
}

.ant-pagination.mini .ant-pagination-prev .ant-pagination-item-link,
.ant-pagination.mini .ant-pagination-next .ant-pagination-item-link {
  background-color: #fff;
  border: 1px solid #d9d9d9;
}

.ant-pagination.mini .ant-pagination-prev .ant-pagination-item-link::after,
.ant-pagination.mini .ant-pagination-next .ant-pagination-item-link::after {
  height: 32px;
  line-height: 32px;
}

.ant-pagination.mini .ant-pagination-jump-prev,
.ant-pagination.mini .ant-pagination-jump-next {
  height: 32px;
  margin-right: 8px;
  line-height: 32px;
}

.ant-pagination.mini .ant-pagination-options {
  margin-left: 0px;
}

.ant-pagination.mini .ant-pagination-options-quick-jumper {
  height: 32px;
  line-height: 32px;
}

.ant-pagination.mini .ant-pagination-options-quick-jumper input {
  height: 32px;
  padding: 4px 11px;
  line-height: 32px;
  width: 50px;
}

.ant-pagination.mini {
  .ant-select-sm .ant-select-selection__rendered {
    line-height: 30px;
  }

  .ant-select-sm .ant-select-selection--single {
    height: 32px;
  }
}

.ant-table-filter-dropdown-btns {
  .ant-table-filter-dropdown-link {
    height: 32px;
    padding: 0 15px;
    font-size: 14px;
    border-radius: 3px;
    line-height: 30px;
    border: 1px solid #d9d9d9;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.015);

    &.clear {
      margin-left: 8px;
    }

    &.confirm {
      color: #fff;
      background-color: #1890ff;
      border-color: #1890ff;
      text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.12);
      box-shadow: 0 2px 0 rgba(0, 0, 0, 0.045);
    }
  }
}

.ant-btn {
  padding: 0 9px;
}

div[nz-option-container] {
  border-radius: 3px;
}

.ant-card-bordered {
  border: 1px solid #dcdfe6;
}

.ant-card-head {
  border-bottom: 1px solid #dcdfe6;
  font-size: 16px;
}

.ant-card-head,
.ant-tabs {
  color: #303133;
}

.ant-table,
.ant-form-item-label > label {
  color: #606266;
}

nz-table.table-responsive {
  height: calc(100% - 131px);

  & .ant-spin-nested-loading {
    height: 100%;

    & .ant-spin-container {
      height: 100%;

      & .ant-table {
        height: 100%;

        & .ant-table-container {
          height: 100%;

          & .ant-table-content {
            height: 100%;

            & .ant-table-body {
              height: calc(100% - 35px);

              .ant-table-placeholder {
                border: none;

                td {
                  border: none;
                }
              }
            }
          }
        }
      }
    }
  }
}

nz-table.table-responsive.ant-table-empty {
  & .ant-spin-nested-loading {
    & .ant-spin-container {
      & .ant-table {
        & .ant-table-container {
          & .ant-table-content {
            & .ant-table-body {
              height: 0px;
            }
          }
        }
      }
    }
  }
}

.modal-header {
  margin: -12px -16px 12px -16px;
}

.modal-footer {
  margin: 12px -16px -12px -16px;
}

.nz-resizable-handle-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ant-modal-confirm-btns {
  button {
    min-width: 80px;
  }
}

/* stylelint-disable selector-pseudo-class-no-unknown */
.scrollbar::-webkit-scrollbar,
.ant-dialog-wrap::-webkit-scrollbar,
.ant-drawer-body::-webkit-scrollbar,
.ant-drawer-wrapper-body::-webkit-scrollbar,
.ant-anchor-wrapper::-webkit-scrollbar,
textarea.ant-input::-webkit-scrollbar {
  &:vertical {
    width: 17px;
  }

  &:horizontal {
    height: 17px;
  }
}

.scrollbar::-webkit-scrollbar-thumb,
.ant-dialog-wrap::-webkit-scrollbar-thumb,
.ant-drawer-body::-webkit-scrollbar-thumb,
.ant-drawer-wrapper-body::-webkit-scrollbar-thumb,
.ant-anchor-wrapper::-webkit-scrollbar-thumb,
textarea.ant-input::-webkit-scrollbar-thumb {
  background-color: #c1c1c1;
  outline: none;
}

.scrollbar::-webkit-scrollbar-track,
.ant-dialog-wrap::-webkit-scrollbar-track,
.ant-drawer-body::-webkit-scrollbar-track,
.ant-drawer-wrapper-body::-webkit-scrollbar-track,
.ant-anchor-wrapper::-webkit-scrollbar-track,
textarea.ant-input::-webkit-scrollbar-track {
  box-shadow: none;
  background: #f1f1f1;
}

/* stylelint-enable selector-pseudo-class-no-unknown */
