// you can add global styles to this file, and also import other style files

* {
  outline: none !important;
}

.no-select {
  user-select: none !important;
}

body {
  font-family: '微软雅黑', 'Microsoft YaHei', '宋体', 'SimSun', -apple-system, BlinkMacSystemFont, 'Segoe UI',
    'PingFang SC', 'Hiragino Sans GB', 'Helvetica Neue', Helvetica, Arial, sans-serif, 'Apple Color Emoji',
    'Segoe UI Emoji', 'Segoe UI Symbol';
}

//region ng-alain

.alain-default {
  height: 100%;
  overflow: hidden;
}

.alain-default__nav {
  & > li {
    height: 50px;
    line-height: 50px;

    .alain-default__nav-item {
      height: 50px;
      line-height: 50px;
      border-radius: 0px;

      & > i {
        vertical-align: super;
        margin-top: 8px;
      }
    }
  }
}

.alain-default__content {
  margin: 0 0 0 300px;
  padding: 10px;
  height: calc(100% - 86.5px);
  overflow-y: scroll;
}

.alain-default__fixed .alain-default__content {
  margin-top: 86.5px;
}

//region scrollbar

*::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

*::-webkit-scrollbar-track {
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
}

*::-webkit-scrollbar-thumb {
  background-color: #6e6e6e;
  outline: 1px solid #333;
}

//endregion

@media (max-width: 767px) {
  .alain-default__content {
    padding-top: 0px;
    margin-left: 0px;
    margin-top: 50px !important;
    height: calc(100% - 50px) !important;
    width: calc(100% - 300px) !important;
  }

  .alain-default__collapsed {
    .alain-default__content {
      width: 100% !important;
    }
  }

  .alain-default__fixed .reuse-tab {
    margin-top: 0px;
    margin-bottom: 8px;
  }

  .alain-default__aside,
  .alain-default__content {
    transition: none;
  }
}

.ant-dropdown-menu {
  padding: 1px;
}

.ant-select-dropdown-menu {
  padding: 1px;
}

.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;
}

.reuse-tab {
  padding: 1px;
}

.reuse-tab__op.anticon-close {
  display: inline-block !important;
}

@media (min-width: 768px) {
  .alain-default__collapsed .alain-default__content {
    margin-left: 64px;
  }

  .alain-default__fixed .reuse-tab + router-outlet {
    height: 0px;
  }

  .full-content__opened {
    .alain-default__fixed .reuse-tab + router-outlet {
      height: 0px;
    }
  }
}

.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: #e6f7ff;
      }
    }
  }
}

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-required::before {
  margin-right: 3px;
  vertical-align: middle;
}

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

.ant-modal-confirm-body .ant-modal-confirm-title {
  line-height: 22px;
}

.ant-modal-confirm-body > .anticon {
  margin-right: 8px;
  margin-top: 3px;
  font-size: 17px;
}

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

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

.ant-modal-content {
  border: 2px 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;
}

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

.full-content {
  overflow: visible;
}

.full-content__body {
  .alain-default__content {
    router-outlet + * {
      height: calc(100% - 40px);
    }
  }
}

.full-content__opened {
  .alain-default__content {
    margin: 0 !important;
    padding: 8px !important;
    height: 100%;

    router-outlet + * {
      height: 100%;
    }
  }
}

.ant-table-thead > tr > th {
  background-color: #fafafa !important;
}

/* 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;

  & > table > .ant-table-thead > tr > th {
    background-color: #fafafa !important;
  }
}

.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: #e6f7ff !important;
}

.ant-table-small > .ant-table-content > .ant-table-scroll > .ant-table-header > table > .ant-table-thead > tr > th {
  background-color: #fafafa !important;

  &.ant-table-th-right-sticky,
  &.ant-table-th-left-sticky {
    background-color: #fafafa !important;
  }
}

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

.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;
      }
    }
  }
}

.alain-default .page-header {
  margin-top: -10px;
  padding: 10px 10px 0 10px;

  .ant-breadcrumb {
    margin-bottom: 10px;
  }

  .ant-tabs {
    margin: 0 0 0px 0px;
  }
}

.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;
}

.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;
}

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-content {
          height: 100%;

          & > .ant-table-scroll {
            height: 100%;

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

              & > table {
                border-bottom: 1px solid #e8e8e8;
              }
            }
          }
        }
      }
    }
  }
}

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

//endregion

//region @delon/theme

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

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

.m-10 {
  margin: 10px !important;
}

.mt-10 {
  margin-top: 10px !important;
}

.mr-10 {
  margin-right: 10px !important;
}

.mb-10 {
  margin-bottom: 10px !important;
}

.ml-10 {
  margin-left: 10px !important;
}

.mx-10 {
  margin-right: 10px !important;
  margin-left: 10px !important;
}

.my-10 {
  margin-top: 10px !important;
  margin-bottom: 10px !important;
}

.p-10 {
  padding: 10px !important;
}

.pt-10 {
  padding-top: 10px !important;
}

.pr-10 {
  padding-right: 10px !important;
}

.pb-10 {
  padding-bottom: 10px !important;
}

.pl-10 {
  padding-left: 10px !important;
}

.px-10 {
  padding-right: 10px !important;
  padding-left: 10px !important;
}

.py-10 {
  padding-top: 10px !important;
  padding-bottom: 10px !important;
}

.btn-outline-primary {
  color: #1890ff;
  border-color: #1890ff;

  &:hover,
  &:focus {
    color: #fff;
    border-color: #1890ff;
    background-color: #1890ff;
  }
}

.btn-outline-success {
  color: #389e0d;
  border-color: #389e0d;

  &:hover,
  &:focus {
    color: #fff;
    border-color: #389e0d;
    background-color: #389e0d;
  }
}

.btn-outline-warning {
  color: #faad14;
  border-color: #faad14;

  &:hover,
  &:focus {
    color: #fff;
    border-color: #faad14;
    background-color: #faad14;
  }
}

.btn-outline-error {
  color: #f5222d;
  border-color: #f5222d;

  &:hover,
  &:focus {
    color: #fff;
    border-color: #f5222d;
    background-color: #f5222d;
  }
}

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

//endregion

// region angular-gridster2

gridster .gridster-column,
gridster .gridster-row {
  transition: none !important;
}

gridster-item {
  transition: none !important;
}

// endregion
