.jnpf-content-wrapper {
  position: relative;
  display: flex;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius);

  &.jnpf-content-wrapper-form {
    flex-direction: column;
    background-color: var(--component-background);

    .jnpf-content-wrapper-form-body {
      flex: 1;
      overflow: hidden;
    }
  }

  .jnpf-content-wrapper-left {
    display: flex;
    flex-shrink: 0;
    flex-direction: column;
    width: 220px;
    height: 100%;
    margin-right: 10px;
    overflow: hidden;
    background-color: var(--component-background);
    border-radius: var(--radius);
  }

  .jnpf-content-wrapper-center {
    display: flex;
    flex: 1;
    flex-direction: column;
    height: 100%;
    overflow: hidden;

    .jnpf-content-wrapper-search-box {
      flex-shrink: 0;
      padding: 10px 10px 0;
      margin-bottom: 10px;
      overflow: hidden;
      background-color: var(--component-background);
      border-radius: var(--radius);

      .search-form {
        border-radius: 8px;
      }
    }

    .jnpf-content-wrapper-content {
      flex: 1;
      overflow: hidden;
      border-radius: var(--radius);

      .search-form,
      .ant-table-wrapper {
        overflow: hidden;
        border-radius: var(--radius);
      }
    }

    .jnpf-content-wrapper-list {
      display: flex;
      flex-direction: column;
      background-color: var(--component-background);
    }
  }
}

.jnpf-content-wrapper-tabs {
  & > .ant-tabs-nav {
    padding: 0 10px;
    margin-bottom: 0;
  }

  &.ant-tabs-card {
    height: 100%;

    & > .ant-tabs-nav {
      padding: 0;
      margin-bottom: 0;

      .ant-tabs-tab {
        border-top: none;

        &:first-child {
          border-left: none;
        }
      }
    }
  }

  &.tabs-contain {
    height: 100%;

    & > .ant-tabs-content-holder {
      height: 100%;

      & > .ant-tabs-content {
        height: 100%;
        overflow: hidden;

        & > .ant-tabs-tabpane {
          height: 100%;
          overflow: auto;
        }
      }
    }
  }
}

.jnpf-config-wrapper {
  width: 100%;
  height: 100%;
  overflow: auto;
  background: var(--component-background);
  border-radius: var(--radius);
}

.jnpf-device-switch {
  display: flex;
  align-items: center;
  height: 32px;
  padding: 2px;
  overflow: hidden;
  background: #f7f8fa;
  border-radius: 16px;

  .jnpf-device-switch-item {
    height: 28px;
    padding: 0 16px;
    line-height: 28px;
    cursor: pointer;
    border-radius: 14px;

    &.jnpf-device-switch-item--active {
      background-color: var(--component-background);

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

    .icon-ym {
      font-size: 20px;
      color: var(--text-color-secondary);
    }
  }
}

.action-bar {
  position: relative;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 42px;
  padding: 0 15px;
  text-align: center;
  border-bottom: 1px solid var(--border-color-base1);

  .action-bar-left,
  .action-bar-right {
    display: flex;
    align-items: center;
  }

  .action-bar-btn {
    width: 30px !important;
    padding: 0 !important;
    margin-left: 10px;
    text-align: center;

    i {
      font-size: 20px;

      &.icon-ym-ai-form,
      &.icon-ym-save,
      &.icon-ym-redo,
      &.icon-ym-undo {
        font-size: 14px;
      }
    }
  }

  .action-bar-divider {
    top: 1px;
    height: 16px;
    margin: 0 6px;

    & + .action-bar-btn {
      margin-left: 0;
    }
  }
}

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

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

    .ant-tabs-tab {
      flex: auto;
      padding: 10px 0;

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

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

.drag-handler {
  font-size: 20px;
  cursor: move;
}

.ant-table {
  .ant-table-tbody .ant-table-wrapper .ant-table {
    margin: 0 !important;
  }

  .ant-table-placeholder {
    .ant-table-cell {
      border-bottom: none !important;

      .ant-table-expanded-row-fixed {
        &::after {
          border-right: none !important;
        }
      }
    }
  }

  .ant-table-expanded-row-fixed {
    padding: 10px !important;
  }

  .ant-select {
    width: 100%;
  }

  .ant-btn.action-btn {
    padding: 0;
  }

  .ant-table__empty-text {
    padding: 30px 0;
    line-height: 30px;
  }
}

.table-add-action {
  margin-top: 10px;
  text-align: center;
  cursor: pointer;
  border: 1px dashed var(--border-color-base);
}

.table-btn-launch {
  display: flex;
  flex-flow: column;
  padding: 10px 0;

  .table-btn-event {
    display: flex;
  }
}

.link-text {
  color: var(--primary-color);
  cursor: pointer;
  user-select: none;

  &.link-text-disabled {
    color: var(--text-color-secondary);
    cursor: not-allowed;
  }
}

.jnpf-sub-table.jnpf-vxe-table {
  &.jnpf-sub-table-full {
    .ant-form {
      width: 100% !important;
    }
  }

  .ant-form {
    position: absolute;
    top: 4px;
    left: 0;
    z-index: 1;
    width: calc(100% - 90px) !important;
  }
}

.ant-tabs.common-left-tabs {
  flex-shrink: 0;
  height: 100%;
  margin-right: 10px;

  & > .ant-tabs-nav > .ant-tabs-nav-wrap > .ant-tabs-nav-list {
    width: 160px;
    padding-top: 10px;

    & > .ant-tabs-tab {
      padding: 12px 24px;

      .icon-ym {
        margin-right: 8px;
        font-size: 14px;
      }

      & + .ant-tabs-tab {
        margin-top: 2px;
      }

      &.ant-tabs-tab-active {
        background: hsl(var(--primary-100));
      }
    }
  }

  .ant-tabs-content-holder {
    width: 0;
  }
}

.jnpf-common-search-box {
  position: relative;
  flex-shrink: 0;
  padding-top: 10px;

  &.jnpf-common-search-box-modal {
    padding: 10px 10px 0;
  }

  .jnpf-common-search-box-right {
    position: absolute;
    top: 15px;
    right: 10px;

    .jnpf-common-search-box-right-icon {
      margin-left: 10px;

      svg {
        width: 1.3em;
        height: 1.3em;
      }
    }
  }
}

.edit-row-action {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 24px;

  &:hover {
    .edit-row-index {
      display: none;
    }

    .ym-custom {
      display: block;
    }
  }

  .ym-custom {
    display: none;
    cursor: pointer;
  }
}

.vxe-cell {
  & > .ant-rate {
    white-space: normal;
  }
}

.child-table-box {
  padding: 0 !important;
  vertical-align: top !important;

  .vxe-cell {
    padding: 0 !important;
    overflow: hidden;
  }
}

.child-table-column {
  .child-table__row {
    display: flex;
    align-items: center;
    min-height: 39px;
    background: transparent;
    border-bottom: 1px solid var(--border-color-base1);

    td {
      flex-shrink: 0;
      border: none !important;

      &.td-flex-1 {
        flex: 1;
      }

      .cell {
        min-height: 23px !important;
        padding: 8px;
        white-space: wrap;

        &.ellipsis {
          overflow: hidden;
          text-overflow: ellipsis;
          white-space: nowrap;
        }
      }
    }

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

  .expand-more-btn {
    height: 39px;
    padding-top: 4px;
    text-align: center;
  }
}

.condition-main {
  &.condition-main-bordered {
    padding: 8px;
    border: 1px solid var(--border-color-base);
    border-radius: var(--radius);
  }

  &.condition-main-compact {
    .ant-select-selector {
      padding: 0 5px;
    }

    .ant-select-selection-search {
      inset-inline: 5px;
    }
  }

  .condition-item {
    margin-bottom: 10px;
    overflow: hidden;
    background-color: var(--app-content-background);
    border-radius: var(--radius);

    .condition-item-title {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 10px;
      font-size: 14px;
      line-height: 40px;
      border-bottom: 1px solid var(--border-color-base);

      .icon-ym {
        font-size: 14px;
        cursor: pointer;
      }
    }

    .condition-item-content {
      padding: 0 18px 10px;

      .condition-item-cap {
        display: flex;
        align-items: center;
        height: 40px;
      }
    }
  }

  .condition-list {
    margin-bottom: 10px;
    overflow: hidden;

    .ant-row {
      width: 100%;
    }
  }

  .icon-ym-btn-clearn {
    font-size: 18px;
    line-height: 32px;
    color: var(--error-color);
    cursor: pointer;
  }

  .ant-select,
  .ant-picker {
    width: 100%;
  }

  .jnpf-color-picker {
    display: block !important;
  }
}

.dynamic-form {
  & > .ant-form {
    width: 100%;
  }

  .ant-form-item-label {
    white-space: normal;
    overflow: unset;
  }
}

.input-table-footer-btn {
  display: flex;
  flex-wrap: wrap;
  padding-top: 10px;
}

.ant-form-item-control-input-content {
  > div {
    > div {
      max-width: 100%;
    }
  }

  .ant-picker {
    width: 100%;
  }
}

.vxe-table {
  .ant-select {
    width: 100%;
  }

  .ant-btn.action-btn {
    padding: 0;
  }
}

.short-link-wrapper {
  padding-bottom: 20px;

  &.short-link-wrapper-list {
    padding-bottom: 0;
  }

  .short-link-main {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 80%;
    height: 100%;
    margin: 0 auto;
  }

  .short-link-header {
    flex-shrink: 0;
    height: 60px;
    font-size: 16px;
    line-height: 60px;
    color: #fff;
    text-align: center;
    background-color: var(--primary-color);
  }

  .icon-qrcode {
    position: absolute;
    top: 5px;
    right: -50px;
    width: 50px;
    height: 50px;
    font-size: 50px;
    line-height: 50px;
    color: var(--text-color-base);
    cursor: pointer;
  }

  .short-link-content {
    flex: 1;
    overflow: hidden;

    &.short-link-form {
      padding: 10px;
      overflow: auto;
      background-color: var(--component-background);
    }
  }

  .short-link-footer {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: flex-end;
    height: 60px;
    padding: 0 10px;
    background-color: var(--component-background);
  }

  .short-link-lock-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
  }

  .short-link-lock-form {
    .ant-input-affix-wrapper {
      width: 220px;
    }
  }
}

.login-type-box {
  display: flex;
  align-items: center;

  .circle-box {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 6px;
    border-radius: 50%;
  }

  .circle-box-primary {
    background-color: var(--primary-color);
  }

  .circle-box-error {
    background-color: var(--error-color);
  }
}

.required-sign {
  color: var(--error-color);
}

.socials-list-justAuth {
  padding: 0 40px;

  .socials-item {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color-base);
  }

  .socials-item-main {
    display: flex;
    align-items: center;
    height: 100px;
    padding: 10px;
    border-radius: 10px;

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

    .item-img {
      display: block;
      flex-shrink: 0;
      width: 80px;
      height: 80px;
      margin-right: 14px;
    }

    .item-txt {
      flex: 1;
      height: 80px;

      .item-name {
        margin-bottom: 16px;
        font-size: 16px;
        font-weight: 600;
        line-height: 22px;
      }

      .item-desc {
        font-size: 12px;
        line-height: 18px;
        color: var(--text-color-label);
      }
    }

    .item-btn {
      flex-shrink: 0;
      width: 70px;
      text-align: right;
    }
  }
}

.portal-toggle-drawer {
  &.collect-menus-drawer {
    .ant-tabs {
      .ant-tabs-nav {
        padding-left: 20px;
        margin-bottom: 0;
      }
    }

    .main {
      height: calc(100% - 78px);
    }

    .main .item .item-list {
      .item-list-item {
        display: flex;
        align-items: center;
        height: 56px;
        padding: 0 16px;
        margin-bottom: 10px;
        overflow: hidden;
        color: var(--text-color-base);
        border-radius: 8px;

        .item-list-item-icon {
          display: flex;
          flex-shrink: 0;
          align-items: center;
          justify-content: center;
          width: 32px;
          height: 32px;
          margin-right: 10px;
          overflow: hidden;
          color: #fff;
          border-radius: 50%;
        }

        .icon-ym-header-star-fill {
          display: none;
          flex-shrink: 0;
          margin-left: 10px;
          font-size: 14px;
          color: #f8af4b;
        }

        .item-list-item-text {
          flex: 1;
          min-width: 0;
          font-size: 16px;
          line-height: 22px;

          .item-list-item-title {
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
          }

          .item-list-item-desc {
            margin-top: 2px;
            overflow: hidden;
            text-overflow: ellipsis;
            font-size: 12px;
            line-height: 18px;
            color: var(--text-color-label);
            white-space: nowrap;
          }
        }

        &:hover {
          background-color: var(--app-main-background);

          .icon-ym-header-star-fill {
            display: block;
          }
        }
      }
    }
  }

  .tool {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    border-bottom: 1px solid var(--border-color-base1);

    .ant-input-search {
      .ant-input-affix-wrapper {
        border: none !important;
        border-radius: 0;

        &.ant-input-affix-wrapper-focused {
          box-shadow: unset;
        }
      }

      .ant-btn {
        height: 31px;
        border: none !important;
        border-radius: 0;
      }
    }
  }

  .main {
    height: calc(100% - 40px);
    padding: 10px 20px;
    overflow: auto;
    overflow-x: hidden;

    .item {
      .item-title {
        font-size: 12px;
        line-height: 30px;
        color: #999;
      }

      .item-list {
        font-size: 14px;
        color: #707070;

        .item-list-item {
          display: flex;
          align-items: center;
          justify-content: space-between;
          height: 45px;
          cursor: pointer;

          .icon-left {
            padding-right: 10px;
            font-size: 16px;
          }

          .icon-right {
            font-size: 18px;
            color: #bdbdbd;
          }

          .item-list-item-name {
            flex: 1;
            margin-right: 10px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;

            .icon-ym {
              margin-right: 10px;
              font-size: 14px;
              vertical-align: 0;
            }
          }

          &.active .icon-right {
            color: var(--primary-color);
          }
        }
      }
    }

    .noData-txt {
      padding-top: 10px;
      font-size: 14px;
      line-height: 20px;
      color: #909399;
      text-align: center;
    }
  }
}

.app-icon-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-top: 10px;
  color: #fff;
  border-radius: 8px;

  i {
    font-size: 34px;
  }
}

.role-content-wrapper-left,
.resource-content-wrapper-left {
  .jnpf-content-wrapper-tabs {
    width: 100% !important;
    line-height: 26px;
  }

  .jnpf-basic-caption {
    padding: 0;
  }

  .jnpf-basic-caption-border {
    border-bottom: unset !important;
  }

  .jnpf-basic-caption__action {
    margin-left: 0;
  }

  &.resource-content-wrapper-left {
    .ant-tabs-nav::before {
      border-bottom: 1px solid var(--border-color-base);
    }

    .jnpf-basic-caption__action {
      height: 50px;
      padding-right: 10px;
      line-height: 50px;
      border-bottom: 1px solid var(--border-color-base);
    }
  }
}

.field-table-box {
  display: flex;
  flex: 1;
  flex-direction: column;
  margin-bottom: 10px;
  overflow: hidden;
  border: 1px solid var(--border-color-base);
  border-radius: 4px;

  .title {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: space-between;
    height: 38px;
    padding: 0 10px;
    font-size: 14px;
    line-height: 38px;
    color: var(--text-color-label);
  }

  .table-actions {
    flex-shrink: 0;
    text-align: center;
    border-top: 1px dashed var(--border-color-base);
  }

  .list {
    display: flex;
    flex: 1;
    flex-direction: column;
    overflow: hidden;

    .icon-ym-btn-edit {
      font-size: 16px;
      color: var(--primary-color);
      cursor: pointer;
    }

    .icon-ym-delete {
      font-size: 16px;
      color: var(--error-color);
      cursor: pointer;
    }
  }
}

.msg-parameter-box {
  display: flex;

  .icon-ym-btn-edit {
    font-size: 16px;
    color: var(--primary-color);
    cursor: pointer;
  }

  .icon-ym-delete {
    font-size: 16px;
    color: var(--error-color);
    cursor: pointer;
  }

  .left-pane {
    display: flex;
    flex-shrink: 0;
    flex-direction: column;
    width: 350px;
    height: 420px;
    margin: 0 10px 18px 20px;
    overflow: hidden;

    .left-pane-list {
      display: flex;
      flex: 1;
      flex-direction: column;
      overflow: hidden;
      border: 1px solid var(--border-color-base);
      border-radius: 4px;

      .list {
        display: flex;
        flex: 1;
        flex-direction: column;
        overflow: hidden;

        .header {
          display: flex;
          background-color: var(--app-content-background);

          &.detail-header {
            span {
              width: 170px;
            }
          }

          span {
            display: inline-block;
            width: 134px;
            padding: 8px;
            font-size: 14px;
            line-height: 23px;
            color: var(--text-color-label);
          }

          .operation {
            flex: 1;
          }
        }

        .search-box {
          border-bottom: 1px solid var(--border-color-base1);

          .search {
            width: calc(100% - 20px);
            margin: 10px;
          }
        }
      }
    }

    .table-add-action {
      margin-top: 0;
      border-width: 1px 0 0;
    }
  }

  .right-pane {
    display: flex;
    flex: 1;
    flex-direction: column;

    .msg-pane {
      display: flex;
      flex: 1;
      flex-direction: column;
      margin: 0 0 18px 10px;

      .list {
        flex: 1;
      }
    }

    .tox-tinymce {
      height: 370px !important;
    }
  }
}

.result-modal {
  .ant-modal-body > .scrollbar {
    padding: 0 !important;
  }

  .error-result {
    color: var(--error-color);
  }
}

.form-script-editor {
  height: 260px;
  border: 1px solid var(--border-color-base1);
}

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

.jnpf-content-detail-extra {
  width: 100%;
  height: calc(100% - 46px);
  padding-top: 10px;
  overflow: hidden auto;

  .extra-empty {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    margin-block: unset !important;
  }
}

.custom-draggable-dropdown-menu {
  max-height: 400px;
  overflow: auto;
}

.table-grid-box {
  width: 100%;
  margin-bottom: 18px;
  table-layout: fixed;
  border-collapse: collapse;

  & > tbody {
    & > tr {
      & > td {
        height: 50px;
        padding: 18px 18px 0;
        overflow: hidden;
        background-color: var(--backgroundColor);
        border: var(--borderWidth) var(--borderType) var(--borderColor);
      }
    }
  }
}

.interface-template-json-modal {
  .ant-modal-body {
    height: 40vh;
  }
}

.flow-com-title {
  position: relative;
  height: 60px;
  margin-bottom: 10px;
  line-height: 60px;
  text-align: center;

  h1 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
  }

  .number {
    position: absolute;
    right: 0;
    bottom: 0;
    height: 30px;
    font-size: 14px;
    line-height: 30px;
  }
}

.permission-trigger-btn {
  display: flex;
  margin-left: 5px;
  cursor: pointer;

  svg {
    width: 16px;
    height: 16px;
  }
}

.word-form {
  margin-bottom: 20px;
  border-top: 1px solid var(--border-color-base);
  border-left: 1px solid var(--border-color-base);

  &.word-form-detail {
    .ant-col-item {
      & > .ant-form-item {
        .ant-form-item-label + .ant-form-item-control {
          padding: 5px 10px;
        }
      }
    }
  }

  .table-grid-box {
    margin-bottom: 0;

    td {
      padding-top: 0;
    }
  }

  .ant-row {
    margin: 0 !important;
  }

  .ant-col-item {
    padding: 0 !important;
    border-right: 1px solid var(--border-color-base);
    border-bottom: 1px solid var(--border-color-base);

    & > .ant-form-item {
      margin-bottom: 0;

      .ant-form-item-label {
        padding: 5px 0;
        border-right: 1px solid var(--border-color-base);
      }

      .ant-form-item-label + .ant-form-item-control {
        padding: 5px 0;
      }

      .ant-input,
      .ant-input-number,
      .ant-select,
      .ant-select-selector,
      .ant-input-affix-wrapper,
      .ant-picker {
        border: 0 !important;

        &:focus,
        &-focused {
          box-shadow: unset !important;
        }
      }

      .ant-select-focused {
        .ant-select-selector {
          box-shadow: unset !important;
        }
      }

      .tox-tinymce {
        border: none !important;
      }
    }
  }

  .jnpf-basic-caption {
    border-bottom: 0 !important;
  }

  .ant-collapse {
    .ant-collapse-header {
      border-right: 1px solid var(--border-color-base);
      border-bottom: 1px solid var(--border-color-base);
    }

    .ant-collapse-content-box {
      padding: 0 !important;
    }
  }

  .ant-card {
    border: none !important;

    &:hover {
      box-shadow: unset !important;
    }

    .ant-card-head {
      border-right: 1px solid var(--border-color-base);
    }

    .ant-card-body {
      padding: 0;
    }
  }

  .ant-tabs {
    .ant-tabs-nav {
      margin-bottom: 0;
      border-right: 1px solid var(--border-color-base);
    }
  }

  .ant-steps {
    border-right: 1px solid var(--border-color-base);
  }

  .ant-rate,
  .ant-radio-group,
  .ant-checkbox-group,
  .upload-file-container,
  .upload-img-container {
    padding: 0 11px;
  }

  .ant-switch,
  .jnpf-color-picker,
  .ant-slider {
    margin: 0 11px;
  }

  .ant-table {
    td {
      background-color: var(--component-background) !important;
    }

    .ant-switch,
    .jnpf-color-picker,
    .ant-slider {
      margin: 0;
    }

    .ant-table-tbody {
      .ant-table-placeholder,
      .ant-table-placeholder .ant-table-cell {
        border-right: none !important;
      }
    }
  }

  .table-add-action {
    margin-top: 0;
    border: none;
  }
}

.jnpf-ai-create-modal {
  .ai-textarea {
    position: relative;
    margin-bottom: 35px;

    .ai-button {
      position: absolute;
      right: 8px;
      bottom: 3px;
    }
  }

  .icon-selected {
    color: var(--primary-color) !important;
  }

  .text-tips {
    margin: 10px 20px 20px 0;
    color: var(--text-color-label);
  }
}
