.bg-white {
  background-color: @component-background !important;
}

html[data-theme='light'] {
  .text-secondary {
    color: rgb(0 0 0 / 45%);
  }

  .ant-alert-success {
    background-color: #f6ffed;
    border: 1px solid #b7eb8f;
  }

  .ant-alert-error {
    background-color: #fff2f0;
    border: 1px solid #ffccc7;
  }

  .ant-alert-warning {
    background-color: #fffbe6;
    border: 1px solid #ffe58f;
  }

  :not(:root):fullscreen::backdrop {
    background-color: @layout-body-background !important;
  }
}

[data-theme='dark'] {
  .text-secondary {
    color: #8b949e;
  }

  .ant-card-grid-hoverable:hover {
    box-shadow: 0 3px 6px -4px rgb(0 0 0 / 48%), 0 6px 16px 0 rgb(0 0 0 / 32%),
      0 9px 28px 8px rgb(0 0 0 / 20%);
  }

  .ant-card-grid {
    box-shadow: 1px 0 0 0 #434343, 0 1px 0 0 #434343, 1px 1px 0 0 #434343, 1px 0 0 0 #434343 inset,
      0 1px 0 0 #434343 inset;
  }

  .ant-calendar-selected-day .ant-calendar-date {
    color: rgb(0 0 0 / 80%);
  }

  .ant-select-tree li .ant-select-tree-node-content-wrapper.ant-select-tree-node-selected {
    color: rgb(0 0 0 / 90%);
  }
}
// 全局 Notification 通知提醒框  样式修改
.ant-notification-center {
  right: calc(50vw - 220px) !important;
  top: 160px !important;

  .ant-notification-notice {
    border-radius: 16px !important;
    color: #333;
  }

  .anticon.ant-notification-notice-icon-warning {
    background-color: #f70;
    border-radius: 50%;
    line-height: 0;
    color: #fff;

    path:first-child {
      color: transparent;
    }
  }

  .anticon.ant-notification-notice-icon-success {
    color: #27c07a;
    background-color: #27c07a;
    border-radius: 50%;
    line-height: 0;

    path:first-child {
      color: #fff;
    }
  }

  .anticon.ant-notification-notice-icon-error {
    color: #ff5461;
    background-color: #ff5461;
    border-radius: 50%;
    line-height: 0;

    path:first-child {
      color: #fff;
    }
  }

  .ant-notification-notice-with-icon .ant-notification-notice-message {
    font-weight: bold;
    font-size: 16px;
    color: #333;
  }
}
//全局  Modal ant-modal-confirm
.ant-modal-confirm {
  .ant-modal-confirm-body {
    padding: 24px;

    .anticon-exclamation-circle {
      width: 20px;
      height: 20px;
      background: #f70;
      border-radius: 50%;
      color: #f70;

      path {
        color: #fff;
      }

      path:first-child {
        color: transparent;
      }
    }
  }

  .ant-modal-confirm-btns {
    border-top: 1px solid rgb(238 238 238 / 93%);
    width: 100%;
    padding-top: 10px;
    align-items: flex-end;
    display: flex;
    justify-content: flex-end;
    padding-right: 24px;
    padding-bottom: 10px;
    margin-top: 0;
  }
}

.ant-btn,
.ant-picker {
  border-radius: 4px;
}

.ant-collapse {
  .ant-collapse-item {
    border-bottom: 1px solid #eee !important;

    .ant-collapse-header .ant-collapse-arrow {
      border: 1px solid #c3c8cf;
      border-radius: 50%;
      padding: 3px;
      width: 15px;
      height: 15px;
      color: #c3c8cf;
      font-size: 7px !important;
    }
  }

  .ant-collapse-content {
    border-top: 1px solid #eee;
  }
}

.ant-tag-green {
  color: #27c07a !important;
  background: #eefaf4 !important;
  border-color: #27c07a !important;
}
// 子级页面 modal弹窗中table为直角
.ant-modal-body {
  .ant-table.ant-table-middle .ant-table-thead > tr > th:first-child {
    border-radius: 0 !important;
  }

  .ant-table.ant-table-middle .ant-table-thead > tr > th:last-child {
    border-radius: 0 !important;
  }

  .ant-table.ant-table-middle .ant-table-header .ant-table-thead tr th:nth-last-child(2) {
    border-radius: 0;
  }
  // modal弹窗中 选项卡 tab
  .ant-tabs-tab {
    padding: 16px !important;
    margin: 0 16px 0 0 !important;
  }

  .ant-tabs-tab-active .ant-tabs-tab-btn {
    font-weight: bold;
  }
}

// form表单中 必填选项 * 加粗
.ant-form-item-label
  > label.ant-form-item-required:not(.ant-form-item-required-mark-optional)::before {
  margin-right: 0 !important;
  font-weight: bold;
}

.ant-dashed-dangerous {
  color: #ed6f6f;
  border-color: #ed6f6f;
  text-shadow: none;
  border-style: solid;
}

.ant-dashed-dangerous:focus,
.ant-dashed-dangerous:hover {
  color: #ed6f6f;
  border-color: #ed6f6f;
  text-shadow: none;
  border-style: solid;
}
