* {
  font-family: 'SourceHanSansCN, SourceHanSansCN';
}

/* Safari */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
  * {
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI',
      Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue',
      sans-serif !important;
  }
  #password {
    &::placeholder {
      font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI',
        Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue',
        sans-serif !important;
    }
  }
}

body {
  margin: 0;
  height: 100%;
  zoom: unset !important;
}

.pfm-ant-space-item {
  & > a {
    color: #3377ff !important;
  }
}

textarea {
  border-radius: 4px !important;
  border: 1px solid #cfd7e6 !important;
}

.pfm-ant-btn-primary {
  background: #3377ff;
}
.pfm-ant-btn-primary[disabled] {
  background: #f5f5f5;
}

.pfm-ant-checkbox {
  &.pfm-ant-checkbox-checked {
    .pfm-ant-checkbox-inner {
      background-color: #3377ff;
      background: #3377ff;
    }
  }
  // &.pfm-ant-checkbox-indeterminate {
  //     &.pfm-ant-checkbox-inner {
  //         &::after {
  //             background-color:#3377FF !important;
  //         }
  //     }
  // }
}

.pfm-ant-checkbox-indeterminate .pfm-ant-checkbox-inner::after {
  background-color: #3377ff;
}

.pfm-ant-input-affix-wrapper {
  border-radius: 4px !important;
}

.pfm-ant-input {
  border-radius: 4px;
  // border: 1px solid #CFD7E6 !important;
  &::placeholder {
    color: #99a6bf !important;
  }
}

.pfm-ant-table-cell {
  a {
    color: #3376fe !important;
  }
}

.pfm-ant-input-number {
  border-radius: 4px !important;
}

//Modal

.pfm-ant-modal {
  .pfm-ant-modal-content {
    padding: 16px !important;
    border-radius: 4px !important;
    .pfm-ant-modal-header {
      padding: 0;
      margin-bottom: 16px;
      border-bottom: none;
    }
    .pfm-ant-modal-body {
      max-height: 570px;
      // overflow-y: scroll;
      // overflow-x: hidden;
      padding: 0;

      .pfm-ant-modal-confirm-body-wrapper {
        .pfm-ant-modal-confirm-body {
          .pfm-ant-modal-confirm-title {
            font-size: 16px;
            height: 18px;
          }
          .pfm-ant-modal-confirm-content {
            max-width: 100% !important;
            max-height: 498px;
            overflow-y: scroll;
            overflow-x: hidden;
            margin-block-start: 16px;

            .TableTransfer {
              .pfm-ant-transfer-operation {
                //   align-self: self-end;
                //   margin-bottom: 30px;

                button {
                  //color: #17181A;
                  width: 24px;
                  height: 40px !important;
                  // background: #FAFCFF;
                  border-radius: 4px;
                  border: 1px solid #dae2f2;
                }
              }

              .pfm-ant-transfer-list {
                overflow: hidden;
                border: 1px solid #dae2f2;

                .pfm-ant-transfer-list-header {
                  height: 32px;
                  font-size: 12px;
                  border-bottom: 1px solid #dae2f2;

                  .anticon {
                    color: #99a6bf;
                  }

                  .pfm-ant-transfer-list-header-selected {
                    color: #515866;
                  }
                }

                .pfm-ant-transfer-list-body {
                  .pfm-ant-transfer-list-body-search-wrapper {
                    padding: 8px;

                    .pfm-ant-input-prefix {
                      .anticon-search {
                        color: #99a6bf;
                      }
                    }
                  }

                  .pfm-ant-transfer-list-body-customize-wrapper {
                    .pfmTable {
                      border: none !important;
                      border-radius: 0 !important;
                    }
                  }
                }
              }

              /* 表格样式已统一到 src/components/KCIMTable/style.less */
            }
          }
        }

        .pfm-ant-modal-confirm-btns {
          display: flex;
          flex-direction: row;
          align-items: center;
          justify-content: flex-end;
          margin-top: 16px;

          & > button {
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 0 14px;
            height: 24px;
            border-radius: 4px;

            &.pfm-ant-btn-default {
              border: 1px solid #dae2f2;
              background-color: #fafcff;
            }

            &.pfm-ant-btn-primary {
              background-color: #3376fe;
            }
          }
        }
      }
    }
    .pfm-ant-modal-footer {
      border-top: none;
      padding: 0;
      margin-top: 16px;
      .pfm-ant-btn {
        border-radius: 4px !important;
        height: 24px !important;
        padding: 0 14px !important;
      }
    }
  }

  .pfm-ant-modal-footer {
    margin-top: 0;

    .pfm-ant-space-item {
      & > button {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0 14px;
        height: 24px;
        border-radius: 4px;

        & > span {
        }

        &.pfm-ant-btn-default {
          border: 1px solid #dae2f2;
          background-color: #fafcff;
        }

        &.pfm-ant-btn-primary {
          background-color: #3376fe;
        }
      }
    }
  }
}

//message

.pfm-ant-message {
  .ant-message-notice-success {
    .pfm-ant-message-notice-content {
      .anticon-check-circle {
        & > svg {
          color: #52c41a;
        }
      }
    }
  }
}

//Form

.pfm-ant-form {
  &.pfm-ant-form-vertical {
    .pfm-ant-form-item {
      margin-bottom: 16px;

      .pfm-ant-form-item-label {
        padding: 0 !important;
        height: 15px;
        margin-bottom: 8px;
        line-height: 15px;
      }

      .pfm-ant-form-item-control-input {
        min-height: 24px;
      }
    }
  }
}

// .pfm-ant-form-item-label {
//     padding: 0;
//     //height: 15px;
//     line-height: 15px;
//     margin-bottom: 5px;

//     .pfm-ant-form-item-required {
//       &::before {
//         margin-right: 0 !important;
//       }
//     }
// }

.pfm-ant-input-affix-wrapper {
  padding: 0px 8px !important;
  border-radius: 4px;
  border: 1px solid #cfd7e6 !important;

  & > input {
    &::placeholder {
      font-size: 14px;
      font-family: SourceHanSansCN-Normal, SourceHanSansCN;
      font-weight: 400;
      color: #99a6bf;
    }
  }
}

.pfm-ant-input-disabled {
  &::placeholder {
    color: #7a8599 !important;
  }
}

.pfm-ant-input-affix-wrapper-disabled {
  background: #f0f2f5 !important;
}

// //proContsiner 标题样式覆盖
// .pfm-ant-page-header .pfm-ant-page-header-heading-title {
//      height: 17px !important;
//      font-size: 16px !important;
//      line-height: 17px !important;
// }

.pfm-ant-page-header {
  .pfm-ant-page-header-heading-title {
    font-size: 16px !important;
  }
}

.pfm-ant-page-header .pfm-ant-page-header-heading-left {
  margin-block: 0 !important;
}

.pfm-ant-pro .pfm-ant-pro-layout .pfm-ant-pro-sider-fixed {
  position: absolute !important;
  // min-width:230px !important;
  // width: 230px !important;
}

//避免logo区域的层级过高，影响父容器
.pfm-ant-pro .pfm-ant-pro-layout .pfm-ant-pro-sider-fixed {
  height: calc(100vh - 48px) !important;
  z-index: 0 !important;
}

.pfm-ant-pro-base-menu
  .pfm-ant-pro-base-menu-submenu-has-icon
  > .pfm-ant-menu-sub {
  padding-inline-start: 0 !important;
}

.pfm-ant-menu-item-selected {
  background-color: #f2f6ff !important;
  &:hover {
    color: #3376fe !important;
  }
}
.pfm-ant-menu-light:not(.pfm-ant-menu-horizontal)
  .pfm-ant-menu-item:not(.pfm-ant-menu-item-selected):hover {
  background-color: #f0f2f5 !important;
}

.pfm-ant-menu-light:not(.pfm-ant-menu-horizontal)
  .pfm-ant-menu-submenu-title:hover {
  background-color: #f0f2f5 !important;
}

.pfm-ant-tree.pfm-ant-tree-directory .pfm-ant-tree-treenode:hover::before {
  background: #f0f2f5 !important;
  border-radius: 4px;
}

.pfm-EditableProTable {
  .pfm-ant-pro-card-body {
    padding-inline: 0 !important;
    padding-block: 0 !important;

    .pfm-ant-table {
      border: 1px solid #cfd7e6 !important;
      overflow: hidden;

      .pfm-ant-table-content {
        .pfm-ant-table-thead {
          & > tr > th {
            height: 15px;
            line-height: 15px;
            font-size: 14px;
            padding: 12px 16px !important;
            font-family: SourceHanSansCN-Medium, SourceHanSansCN;
            // font-weight: 500;

            color: #17181a;
            border-bottom: 1px solid #cfd7e6 !important;
            background: rgb(238 243 250 / 100%) !important;

            &::before {
              display: none !important;
            }
          }
        }

        .pfm-ant-table-tbody {
          .pfm-ant-table-row {
            .pfm-ant-table-cell {
              height: 15px;
              line-height: 15px;
              font-size: 14px;
              padding: 8px 8px !important;
              font-family: SourceHanSansCN-Medium, SourceHanSansCN;
              color: #17181a;

              & > div {
                justify-content: flex-start !important;
              }
            }

            &:last-child {
              & > td {
                border-bottom-color: none !important;
              }
            }
          }
        }
      }
    }
  }
}

.pfm-ant-table-wrapper {
  .pfm-ant-table:not(.pfm-ant-table-bordered)
    .pfm-ant-table-tbody
    > tr.pfm-ant-table-row.pfm-ant-table-row-selected
    > td:first-child {
    border-radius: 0 !important;
  }

  .pfm-ant-table-content {
    .pfm-ant-table-thead {
      tr {
        &:last-child {
          .pfm-ant-table-cell {
            // border-top: 1px solid #dae2f2;
          }
        }
      }
    }
  }
}

.pfm-ant-table-wrapper
  .pfm-ant-table:not(.pfm-ant-table-bordered)
  .pfm-ant-table-tbody
  > tr.pfm-ant-table-row:hover
  > td:first-child {
  border-start-start-radius: 0 !important;
  border-end-start-radius: 0 !important;
}

.pfm-ant-table-wrapper
  .pfm-ant-table:not(.pfm-ant-table-bordered)
  .pfm-ant-table-tbody
  > tr.pfm-ant-table-row:last-child:hover
  > td {
  border-bottom-color: #dae2f2 !important;
}

.pfm-ant-table-wrapper
  .pfm-ant-table:not(.pfm-ant-table-bordered)
  .pfm-ant-table-tbody
  > tr.pfm-ant-table-row:last-child
  > td {
  border-bottom-color: #dae2f2 !important;
}

.pfm-ant-table-wrapper
  .pfm-ant-table:not(.pfm-ant-table-bordered)
  .pfm-ant-table-tbody
  > tr.pfm-ant-table-row:hover
  > td:last-child {
  border-end-end-radius: 0 !important;
  border-start-end-radius: 0 !important;
}

.pfm-ant-pro .pfm-ant-pro-layout .pfm-ant-pro-layout-bg-list {
  background: #f7f9fc !important;
}

// .pfm-ant-message-notice .pfm-ant-message-success .anticon {
//     color: #52c41a !important;
// }
.ant-message-success {
  .anticon .anticon-check-circle {
    color: #52c41a !important;
  }
}

/**
    Select
**/
.pfm-ant-select {
  .pfm-ant-select-selector {
    height: 24px !important;
    padding: 0 8px !important;
    border-radius: 4px !important;
    border: 1px solid #cfd7e6 !important;

    .pfm-ant-select-selection-item {
      line-height: 24px !important;
    }

    .pfm-ant-select-selection-search-input {
      height: 24px !important;
    }

    .pfm-ant-select-selection-placeholder {
      line-height: 22px !important;
      font-size: 14px;
      font-family: SourceHanSansCN-Normal, SourceHanSansCN;
      font-weight: 400;
      color: #99a6bf;
    }

    .pfm-ant-select-selection-overflow {
      .pfm-ant-select-selection-overflow-item {
        .pfm-ant-select-selection-item {
          height: 22px !important;
          line-height: 22px !important;
          margin-top: 0 !important;
          margin-bottom: 7px !important;
        }
      }
    }
  }

  .pfm-ant-select-arrow {
    color: #cfd7e6;
  }

  &.pfm-ant-select-disabled {
    .pfm-ant-select-selector {
      border: 1px solid #dadee6 !important;

      .pfm-ant-select-selection-placeholder {
        color: #7a8599;
      }
    }

    .pfm-ant-select-arrow {
      color: #7a8599;
    }
  }
}

.pfm-ant-tabs {
  .pfm-ant-tabs-tab {
    padding: 5px 0 !important;
    padding-top: 12px !important;
  }
  .pfm-ant-tabs-nav {
    &::before {
      border-bottom: none !important;
    }
  }
}

.pfm-ant-table-wrapper {
  overflow: hidden;
}

.pfm-ant-pro-layout .pfm-ant-pro-layout-container {
  flex: 1;
  background: #f7f9fc !important;
}

//页面全局底色
.pfm-ant-pro .pfm-ant-pro-layout .pfm-ant-pro-layout-bg-list {
  background: rgb(247 249 252 / 100%);
}

.pfm-ant-pro-page-container-children-content {
  padding-inline: 0 !important;
  padding-block: 0 !important;
}

.pfm-ant-pro-sider-actions {
  display: none !important;
}

.pfm-ant-pro-sider-collapsed-button {
  top: 95% !important;
  right: 17px !important;
}

.pfm-ant-menu .pfm-ant-menu-submenu-title .anticon {
  transition: none !important;
}

.pfm-ant-menu .pfm-ant-menu-item .anticon + span {
  transition: none !important;
}

.pfm-ant-menu .pfm-ant-menu-item .anticon {
  transition: none !important;
}

.pfm-ant-menu .pfm-ant-menu-item {
  transition: none !important;
}

.pfm-ant-menu .pfm-ant-menu-submenu-title .anticon + span {
  transition: none !important;
}

.pfm-ant-tabs .pfm-ant-tabs-tab + .pfm-ant-tabs-tab {
  margin: 0 0 0 24px !important;
}

.menuCollapseIcon {
  & > svg {
    width: 24px;
    height: 24px;
  }
}

.pfm-ant-pro-form > div:not(.pfm-ant-pro-form-light-filter) .pro-field-lg {
  width: 100% !important;
}

.pfm-ant-select {
  .pfm-ant-select-selector {
    border: 1px solid #cfd7e6 !important;
    // color: #99A6BF !important;

    .pfm-ant-select-selection-placeholder {
      color: #99a6bf !important;
    }
  }

  .pfm-ant-select-arrow {
    color: #99a6bf !important;
  }
}

.pfm-ant-input-number-input {
  border-radius: 4px;
  &::placeholder {
    color: #99a6bf !important;
  }
}

.pfm-ant-select-disabled {
  .pfm-ant-select-selector {
    border: 1px solid #dadee6 !important;
    background: #f0f2f5 !important;

    .pfm-ant-select-selection-placeholder {
      color: #7a8599 !important;
    }
  }

  .pfm-ant-select-arrow {
    color: #7a8599 !important;
  }
}

.pfm-ant-input-number {
  border: 1px solid #cfd7e6 !important;
  // color: #99A6BF !important;
  border-radius: 4px;
  box-shadow: none !important;
  .pfm-ant-input-number-input {
    height: 22px !important;
    line-height: 22px !important;
  }
}

.pfm-ant-input-number-disabled {
  border: 1px solid #dadee6 !important;
  background: #f0f2f5 !important;

  .pfm-ant-input-number-input {
    color: #7a8599 !important;
  }
}

.pfm-ant-input-affix-wrapper-disabled {
  border: 1px solid #dadee6 !important;
}

.pfm-ant-picker {
  border-radius: 4px !important;
  border: 1px solid #cfd7e6 !important;
  height: 24px;
  .pfm-ant-picker-input {
    & > input {
      &::placeholder {
        color: #99a6bf !important;
      }
    }
    .pfm-ant-picker-suffix {
      color: #99a6bf !important;
    }
  }
}

.pfm-ant-picker-panel-container {
  .pfm-ant-picker-panel {
    .pfm-ant-picker-month-panel {
      .pfm-ant-picker-body {
        .pfm-ant-picker-content {
          tr {
            td {
              &.pfm-ant-picker-cell-selected {
                .pfm-ant-picker-cell-inner {
                  background: #3377ff;
                }
              }
            }
          }
        }
      }
    }
  }
}

.pfm-ant-picker-input > input[disabled] {
  color: #7a8599 !important;
}

.pfm-ant-picker-disabled {
  background: #f0f2f5 !important;
  border: 1px solid #dadee6 !important;

  .anticon-swap-right,
  .anticon-calendar {
    color: #7a8599 !important;
  }
}

/* 查核项管理页面 - 更多操作下拉菜单样式 */
.ant-dropdown.check-item-dropdown {
  .ant-dropdown-menu {
    border-radius: 4px !important;
    overflow: hidden !important;
    padding: 4px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
  }

  .ant-dropdown-menu-item {
    border-radius: 4px !important;
    padding: 8px 12px !important;
    margin: 0 !important;
    font-size: 14px !important;
    line-height: 1.4 !important;

    &:hover {
      background: rgba(51, 119, 255, 0.08) !important;
      color: #17181a !important;
    }

    &.ant-dropdown-menu-item-selected {
      background: rgba(51, 119, 255, 0.08) !important;
      color: #17181a !important;
    }

    // 删除项特殊样式
    &:last-child {
      &:hover {
        background: rgba(255, 77, 79, 0.08) !important;
      }
    }
  }
}
