.ant-modal.jnpf-full-modal {
  .ant-modal-header {
    padding: 0;

    .ant-modal-title {
      font-weight: normal;
    }

    .jnpf-full-modal-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      height: 60px;
      padding: 0 20px;

      .header-title {
        display: flex;
        align-items: center;
        width: 320px;
        height: 60px;

        .header-logo {
          display: inline-block;
          width: auto;
          height: 36px;
          font-size: 30px;
          vertical-align: top;
          border-radius: 9999px;
        }

        .header-dot {
          position: relative;
          display: inline-block;
          width: 7px;
          height: 7px;
          margin: 0 10px;
          background: rgb(181 215 255 / 40%);
          border-radius: 50%;

          &::after {
            position: absolute;
            top: 2px;
            left: 2px;
            display: block;
            width: 3px;
            height: 3px;
            content: '';
            background: #6a9cfa;
            border-radius: 50%;
          }
        }

        .header-txt {
          display: inline-block;
          max-width: 150px;
          margin: 0;
          overflow: hidden;
          text-overflow: ellipsis;
          font-size: 16px;
          line-height: 60px;
          white-space: nowrap;
          cursor: pointer;
        }
      }

      .options {
        justify-content: flex-end;
        width: 320px;
      }

      .header-steps {
        height: 40px;
        padding-top: 0 !important;
        overflow: hidden;
        background: rgb(255 255 255 / 40%);
        border-radius: 20px;

        &.ant-steps {
          width: auto;

          &.tab-steps {
            .ant-steps-item {
              margin: 0;

              .ant-steps-item-icon {
                display: none;
              }

              .ant-steps-item-container {
                padding: 0 20px;
              }

              &::after {
                display: none;
              }
            }
          }

          .ant-steps-item {
            width: auto;
            padding-inline-start: 0;
            margin: 0 16px;

            &:first-child {
              margin-left: 0;
            }

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

            &::after {
              inset-inline-start: 110%;
              top: 20px;
            }

            &.ant-steps-item-active {
              &::before {
                display: none;
              }

              .ant-steps-item-container {
                background-color: var(--app-main-background);
                border-radius: 20px;
              }
            }

            .ant-steps-item-container {
              display: flex;
              align-items: center;
              padding: 0 15px;
              padding-bottom: 0;
              margin-inline-start: 0;
            }
          }
        }
      }
    }
  }

  .ant-modal-body {
    overflow: hidden;
    background-color: var(--app-main-background);

    & > .scrollbar {
      padding: 10px;
      background-color: var(--app-main-background);

      & > .scrollbar__wrap {
        & > .scrollbar__view {
          height: 100%;
          overflow: hidden;

          & > div {
            height: 100% !important;
          }
        }
      }
    }

    .basic-content {
      height: 100%;
      overflow: hidden;

      .basic-form {
        height: 100%;
        padding: 20px;
        overflow-y: auto;
        background-color: var(--component-background);
        border-radius: 8px;
      }
    }

    .jnpf-basic-table {
      height: auto;
    }
  }
}

.ant-modal.transfer-modal {
  &.member-modal {
    .ant-modal-body > .scrollbar {
      padding: 10px;

      .transfer__body .transfer-pane {
        width: 100%;
      }
    }
  }

  .ant-modal-body {
    padding: 20px 10px;

    & > .scrollbar {
      padding: 20px 10px;
    }

    .scrollbar .scrollbar__wrap {
      margin-bottom: 0 !important;
    }

    .transfer__body {
      display: flex;
      justify-content: space-around;
      height: 400px;
      line-height: 32px;
    }

    .transfer-pane {
      width: 360px;

      &.left-pane {
        .selected-item {
          justify-content: flex-start;
          cursor: pointer;
        }

        .selected-item-user {
          cursor: pointer;
        }
      }

      .transfer-pane__tool {
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: 32px;
        margin-bottom: 8px;

        .remove-all-btn {
          color: var(--error-color);
          cursor: pointer;
        }
      }

      .transfer-pane__body {
        position: relative;
        width: 100%;
        height: calc(100% - 40px);
        overflow: auto;
        overflow-x: hidden;
        font-size: 14px;
        border: 1px solid var(--border-color-base);
        border-radius: var(--radius);

        &.transfer-pane__body-tab {
          display: flex;
          flex-direction: column;
          overflow: hidden;

          .ant-tabs {
            .ant-tabs-nav {
              margin-bottom: 0;
            }

            .ant-tabs-nav-list {
              width: 100%;
            }

            .ant-tabs-tab {
              flex: auto;

              .ant-tabs-tab-btn {
                width: 100%;
                text-align: center;
              }
            }
          }

          .tree-main {
            flex: 1;
            overflow: auto;
          }

          .pane-tabs {
            flex-shrink: 0;

            &.pane-tabs-single {
              .ant-tabs-tab {
                flex: none;
                width: 25%;
              }
            }

            .ant-tabs-nav-operations {
              display: none !important;
            }
          }
        }
      }

      .ant-tree {
        .ant-tree-treenode {
          &.ant-tree-treenode-selected {
            background-color: var(--selected-hover-bg);
          }
        }
      }

      .custom-title {
        height: 38px;
        padding: 0 12px;
        font-size: 14px;
        line-height: 38px;
        border-bottom: 1px solid var(--border-color-base);
      }

      .selected-item {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 0 12px;

        &.selected-item-user {
          .selected-item-main {
            box-sizing: border-box;
            display: flex;
            align-items: center;
            width: 100%;
            height: 50px;
            border-bottom: 1px solid var(--border-color-base1);
          }

          .selected-item-headIcon {
            flex-shrink: 0;

            &.icon {
              width: 36px;
              height: 36px;
              text-align: center;

              i {
                font-size: 22px;
                line-height: 36px;
              }
            }
          }

          .selected-item-text {
            flex: 1;
            min-width: 0;
            margin-left: 10px;

            .name {
              height: 20px;
              margin-bottom: 2px;
              overflow: hidden;
              text-overflow: ellipsis;
              font-size: 14px;
              line-height: 20px;
              white-space: nowrap;
            }

            .organize {
              height: 17px;
              overflow: hidden;
              text-overflow: ellipsis;
              font-size: 12px;
              line-height: 17px;
              color: #999;
              white-space: nowrap;
            }
          }
        }

        &:hover {
          background-color: var(--selected-hover-bg);
        }

        span {
          max-width: 90%;
          overflow: hidden;
          text-overflow: ellipsis;
          white-space: nowrap;
        }

        .delete-btn:hover {
          color: var(--error-color);
          cursor: pointer;
        }
      }

      .selected-item-user-multiple {
        position: relative;
        padding: 0 12px;

        .selected-item-title {
          display: flex;
          align-items: center;
          font-size: 14px;

          span {
            padding-left: 6px;
          }
        }

        .selected-item-user {
          padding: 0 15px;

          &:last-child {
            border-bottom: 1px solid var(--border-color-base1);

            .selected-item-main {
              border-bottom: none;
            }
          }

          .selected-item-main {
            box-sizing: content-box;
          }
        }

        .selected-item-icon {
          width: 36px;
          height: 36px;
          font-size: 14px;
          line-height: 36px;
          color: #fff;
          text-align: center;
          background: linear-gradient(193deg, #a7d6ff 0%, #1990fa 100%);
          border-radius: 50%;
        }
      }
    }
  }
}

.ant-modal.form-script-modal {
  .ant-modal-content.is-modal-resized {
    .ant-modal-body {
      height: auto;
    }
  }

  .ant-modal-body {
    height: 70vh;

    & > .scrollbar {
      height: 100%;
      padding: 0;

      .scrollbar__view {
        height: 100%;
        overflow: hidden;

        & > div {
          height: 100%;
          max-height: 100% !important;
          overflow: hidden;
        }

        .form-script-modal-body {
          box-sizing: border-box;
          display: flex;
          min-width: 0;
          height: 100%;
          min-height: 0;
          padding: 20px;
          overflow: hidden;

          .left-board {
            flex-shrink: 0;
            width: 220px;
            height: 100%;
            margin-right: 10px;
            overflow: hidden auto;
          }

          .main-board {
            display: flex;
            flex: 1;
            flex-direction: column;
            min-width: 0;
            height: 100%;
            min-height: 0;

            .main-board-editor {
              flex: 1;
              min-width: 0;
              min-height: 0;
              overflow: hidden;
              border: 1px solid var(--border-color-base1);
            }

            .main-board-tips {
              flex-shrink: 0;
              padding: 8px 16px;
              margin-top: 20px;
              background-color: hsl(var(--primary-100));
              border-left: 5px solid var(--primary-color);
              border-radius: 4px;

              p {
                line-height: 24px;
                color: var(--text-color-help-dark);

                span {
                  display: inline-block;
                  padding-right: 10px;
                }
              }
            }
          }
        }
      }
    }
  }
}

.ant-modal.formula-modal {
  .ant-modal-body {
    & > .scrollbar {
      padding: 20px;
    }
  }

  .formula-modal-body {
    .code-editor-area {
      height: 250px;
      margin-bottom: 10px;
      overflow: hidden;
      border: 1px solid var(--border-color-base1);
      border-radius: 6px;
    }

    .operation-area {
      display: flex;
      height: 250px;

      .area-item {
        width: 220px;
        height: 250px;
        overflow: hidden;
        border: 1px solid var(--border-color-base1);
        border-radius: 6px;

        &.formula-area {
          margin: 0 20px;
        }

        &.formula-desc-area {
          width: 280px;

          .area-content {
            padding: 10px;
          }
        }

        .area-title {
          height: 34px;
          padding: 0 10px;
          line-height: 34px;
          border-bottom: 1px solid var(--border-color-base1);
        }

        .area-content {
          height: 216px;
          overflow: hidden auto;

          .formula-desc-wrapper {
            overflow-y: auto;
            color: #5e6d82;

            & > li {
              margin-bottom: 4px;
              font-size: 12px;
              line-height: 18px;
              word-break: break-all;
              word-wrap: break-word;
              list-style-type: none;
            }

            .formula-name {
              color: var(--primary-color);
            }
          }
        }
      }
    }
  }
}

.ant-modal.jnpf-list-modal {
  .ant-modal-body {
    height: 70vh;
    overflow: hidden;

    & > .scrollbar {
      padding: 0;

      & > .scrollbar__bar {
        display: none !important;
      }

      .scrollbar__wrap {
        .scrollbar__view {
          height: 100%;
          overflow: hidden;

          & > div {
            height: 100% !important;
            max-height: 100% !important;
          }
        }
      }
    }
  }
}

.ant-modal.jnpf-add-modal {
  &.jnpf-preview-modal {
    .add-main {
      .add-item {
        background: #f0fff7;

        &.add-item-left {
          background: #edfbfd;

          .add-icon {
            color: #3399fa;
            background: #d6f0ff;
          }
        }

        .add-icon {
          color: #36ac6c;
          background: #ccf7e0;
        }

        .add-txt {
          height: auto;
        }
      }
    }
  }

  .ant-modal-body {
    overflow: hidden;

    & > .scrollbar {
      padding: 20px;

      .scrollbar__bar {
        display: none !important;
      }
    }
  }

  .add-main {
    display: flex;
    align-items: center;
    justify-content: space-between;

    .add-item {
      display: flex;
      align-items: center;
      width: 270px;
      height: 136px;
      padding-left: 20px;
      cursor: pointer;
      background: #fef3e6;

      &:hover {
        opacity: 0.9;
      }

      &.add-item-left {
        background: #f1f5ff;

        .add-icon {
          color: #537eff;
          background: #ccd9ff;
        }
      }

      .add-icon {
        flex-shrink: 0;
        width: 56px;
        height: 56px;
        margin-right: 10px;
        font-size: 30px;
        line-height: 56px;
        color: #ea986c;
        text-align: center;
        background: #fce1bf;
        border-radius: 10px;
      }

      .add-txt {
        height: 56px;

        p {
          line-height: 28px;
        }

        .add-title {
          font-size: 18px;
        }

        .add-desc {
          font-size: 12px;
          color: var(--text-color-secondary);
        }
      }
    }
  }
}

.jnpf-release-modal {
  .ant-modal-body > .scrollbar {
    padding: 12px 55px !important;
  }

  .release-main {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;

    .release-item {
      width: 220px;
    }

    .top-item {
      position: relative;
      display: flex;
      align-items: center;
      justify-content: center;
      width: 220px;
      height: 70px;
      color: #606266;
      text-align: center;
      cursor: pointer;
      user-select: none;
      border: 1px solid var(--border-color-base);
      border-radius: 6px;

      &.active {
        color: var(--primary-color);
        border-color: var(--primary-color);
        box-shadow: 0 0 6px rgb(6 58 108 / 10%);

        .item-icon {
          border-color: var(--primary-color);
        }

        .icon-checked {
          display: block;
        }
      }

      .item-icon {
        display: inline-block;
        width: 28px;
        height: 28px;
        margin-right: 10px;
        font-size: 16px;
        line-height: 26px;
        text-align: center;
        border: 1px solid #606266;
        border-width: 1px;
        border-radius: 50%;
      }

      .item-title {
        font-size: 16px;
        font-weight: 400;
      }

      .icon-checked {
        position: absolute;
        right: 0;
        bottom: 0;
        display: none;
        width: 18px;
        height: 18px;
        border: 18px solid var(--primary-color);
        border-top: 18px solid transparent !important;
        border-left: 18px solid transparent !important;
        border-bottom-right-radius: 4px;

        .anticon {
          position: absolute;
          top: 1px;
          left: 0;
          font-size: 14px;
          color: #fff;
        }
      }
    }

    .released {
      width: 220px;
      min-height: 30px;
      max-height: 120px;
      padding: 5px 10px;
      overflow: auto;
      line-height: 30px;
      background: var(--app-main-background);
      border-radius: 4px;
    }
  }
}

.jnpf-parameter-modal {
  .ant-modal-body > .scrollbar {
    height: 50vh;
    padding: 0;
  }

  .ant-tabs {
    flex-shrink: 0;

    .ant-tabs-nav {
      padding: 0 10px;
      margin-bottom: 0;
    }
  }
}

.jnpf-super-query-modal {
  .super-query-main {
    .query-noData {
      padding: 20px 0;
      text-align: center;

      .noData-img {
        display: inline-block;
        width: 160px;
        margin-bottom: 10px;
      }

      .noData-txt {
        color: var(--text-color-secondary);
      }
    }
  }
}

.jnpf-condition-modal {
  .ant-modal-body > .scrollbar {
    padding: 20px !important;
  }
}

.jnpf-export-modal {
  &.ant-modal .ant-modal-body > .scrollbar {
    padding: 20px;
  }

  .ant-form-item {
    margin-bottom: 20px;
  }

  .export-line {
    margin-bottom: 5px;
    line-height: 32px;
    border-bottom: 1px solid var(--border-color-base1);

    .export-label {
      width: 100%;
      font-size: 18px;
      font-weight: bold;

      span {
        margin-left: 10px;
        font-size: 14px;
        font-weight: normal;
      }
    }
  }

  .ant-checkbox-wrapper {
    line-height: 32px;
  }

  .options-list {
    width: 100%;

    .ant-checkbox-wrapper {
      width: calc(33.33% - 8px);

      .ant-checkbox + span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      & + .ant-checkbox-wrapper {
        margin-left: 0;
      }
    }
  }

  .footer-tip {
    float: left;
    line-height: 32px;
    color: var(--text-color-secondary);
  }
}

.jnpf-import-modal {
  .import-main {
    position: relative;
    height: 480px;
    margin: 20px 0;

    .import-preview-table {
      .child-table-column .child-table__row td {
        flex: unset !important;
      }
    }

    .upload {
      display: flex;
      margin-bottom: 25px;
      border: 1px solid var(--border-color-base);

      &.error-show {
        margin-top: 10px;
        margin-bottom: 15px;

        .up_left {
          height: 120px;
        }

        .up_right {
          padding-top: 20px;
          font-size: 16px;
        }
      }

      .up_left {
        display: flex;
        flex-shrink: 0;
        align-items: center;
        justify-content: center;
        width: 126px;
        height: 140px;
        background: #f9f9f9;

        img {
          width: 80px;
          height: 80px;
        }
      }

      .up_right {
        flex: 1;
        padding-top: 30px;
        margin-left: 30px;
        font-size: 14px;

        .title {
          font-size: 18px;
          font-weight: bold;
        }

        .tip {
          margin: 15px 0;
          line-height: 16px;

          &.success-tip span {
            color: #67c23a;
          }

          &.error-tip span {
            color: var(--error-color);
          }
        }

        .ant-btn-link {
          padding: 0 !important;
        }
      }

      .upload-area {
        display: flex;
        padding-right: 200px;

        .ant-upload-select {
          flex-shrink: 0;
          margin-right: 50px;
        }

        .ant-upload-list {
          flex: 1;
        }

        .ant-upload-list-item:first-child {
          margin-top: 5px;
        }
      }
    }

    .success {
      display: flex;
      flex-direction: column;
      align-items: center;
      padding-top: 110px;

      .success-title {
        margin: 20px 0;
        font-size: 18px;
        font-weight: bold;
      }
    }

    .conTips {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 15px;

      .ant-btn-link {
        padding: 0 !important;
      }
    }
  }
}

.ant-modal.jnpf-modal-portal {
  .ant-modal-body {
    height: 60vh;

    > .scrollbar {
      padding: 0 !important;
    }
  }
}

.jnpf-sso-modal {
  .scrollbar {
    padding: 0 !important;
    overflow: hidden;

    .scrollbar__view {
      height: 600px !important;

      & > div {
        height: 600px !important;
        max-height: 600px !important;
      }
    }
  }
}

.jnpf-tenant-social-modal {
  .ant-modal-header {
    display: none;
  }

  .scrollbar {
    padding: 0 !important;
  }

  .other-main {
    width: 100%;
    height: 500px;
    padding-top: 10px;
    overflow: hidden;
    background: url('@/assets/images/other-login-bg.png') no-repeat center;
    background-size: auto 100%;

    .other-title {
      display: flex;
      align-items: center;
      justify-content: center;
      height: 50px;
      line-height: 50px;

      .other-icon {
        width: 24px;
        height: 24px;
        line-height: 24px;
        text-align: center;
        border: 2px solid var(--primary-color);
        border-radius: 50%;

        i {
          font-size: 16px;
          color: var(--primary-color);
        }
      }

      .other-text {
        height: 24px;
        margin: 0 5px;
        font-size: 18px;
        font-weight: bold;
        line-height: 24px;
      }
    }

    .other-body {
      width: 100%;
      height: 440px;
      padding: 20px;
      overflow: hidden auto;

      .other-login-card {
        margin-bottom: 20px;
        font-size: 12px;
        cursor: pointer;
        background-color: var(--component-background);
        border-left: 5px solid #9dc8fa;
        border-radius: 5px;

        &:hover {
          border-color: var(--primary-color);

          i {
            color: #fff;
          }
        }
      }

      .other-login-des {
        width: 100%;
        margin-top: 12px;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 14px;
        line-height: 20px;
        white-space: nowrap;

        &.other-login-title {
          margin-top: 0;
          margin-bottom: 20px;
          font-size: 16px;
          font-weight: 600;
        }
      }
    }
  }
}

.ant-modal.jnpf-flow-user-list-modal {
  .ant-modal-body > .scrollbar {
    padding: 20px 0;
  }

  .flow-user-list {
    height: 360px;

    .user-item-main {
      position: relative;
      display: flex;
      align-items: center;
      height: 70px;
      padding: 0 20px;
      margin: 0 100px 15px;
      cursor: pointer;
      border: 1px solid var(--border-color-base1);
      border-radius: 4px;

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

      .user-avatar {
        flex-shrink: 0;
        margin-right: 20px;
      }

      .user-text {
        flex: 1;
        min-width: 0;
        font-size: 14px;
        line-height: 24px;

        .user-organize {
          overflow: hidden;
          text-overflow: ellipsis;
          font-size: 12px;
          color: #999;
          word-break: break-all;
          white-space: nowrap;
        }
      }
    }
  }
}
