.basic-flow-parser {
  .header-title {
    max-width: 40vw;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 16px;
    white-space: nowrap;
  }

  .flow-urgent-value {
    position: relative;
    padding-left: 12px;
    font-size: 14px;
    line-height: 23px;
    cursor: pointer;

    &.urgent1 {
      color: #409eff;

      &::before {
        background: #409eff;
      }
    }

    &.urgent2 {
      color: #e6a23c;

      &::before {
        background: #e6a23c;
      }
    }

    &.urgent3 {
      color: #f56c6c;

      &::before {
        background: #f56c6c;
      }
    }

    &::before {
      position: absolute;
      top: 8px;
      left: 0;
      display: block;
      width: 7px;
      height: 7px;
      content: '';
      background: #333;
      border-radius: 50%;
    }
  }

  .header-options {
    .ant-btn {
      margin-left: 10px;
    }
  }

  .header-btn {
    .ant-btn {
      width: 32px;
      padding: 0;
    }

    .header-cancel-btn {
      width: auto;
      padding: 0 15px;
    }

    .flow-detail-custom-btn {
      width: auto;
      margin-right: 10px;
      padding: 0 15px;
    }
  }

  .approve-result {
    position: absolute;
    top: 100px;
    right: 10px;
    z-index: 100;
    width: 100px;
    height: 100px;
    opacity: 0.7;

    .approve-result-img {
      width: 100%;
      height: 100%;
      background-size: 100% !important;

      &.doing {
        background: url('@/assets/images/flowStatus/doing.png') no-repeat;
      }

      &.adopt {
        background: url('@/assets/images/flowStatus/adopt.png') no-repeat;
      }

      &.reject {
        background: url('@/assets/images/flowStatus/reject.png') no-repeat;
      }

      &.cancel {
        background: url('@/assets/images/flowStatus/cancel.png') no-repeat;
      }

      &.pause {
        background: url('@/assets/images/flowStatus/pause.png') no-repeat;
      }

      &.revoking {
        background: url('@/assets/images/flowStatus/revoking.png') no-repeat;
      }

      &.revoke {
        background: url('@/assets/images/flowStatus/revoke.png') no-repeat;
      }

      &.back {
        background: url('@/assets/images/flowStatus/back.png') no-repeat;
      }

      &.recall {
        background: url('@/assets/images/flowStatus/recall.png') no-repeat;
      }
    }
  }

  .flow-parser-tabs {
    height: 100%;

    &.no-head-margin > .ant-tabs-nav {
      margin-bottom: 0;
    }

    &.ant-tabs-card {
      & > .ant-tabs-nav > .ant-tabs-nav-wrap {
        padding: 0;

        & > .ant-tabs-nav-list {
          & > .ant-tabs-tab + .ant-tabs-tab {
            margin-left: 2px;
          }
        }
      }

      & > .ant-tabs-content-holder > .ant-tabs-content {
        & > .ant-tabs-tabpane {
          padding: 0;
        }
      }
    }

    & > .ant-tabs-nav > .ant-tabs-nav-wrap {
      padding: 0 20px;

      & > .ant-tabs-nav-list {
        & > .ant-tabs-tab + .ant-tabs-tab {
          margin-left: 40px;
        }
      }
    }

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

      & > .ant-tabs-tabpane {
        box-sizing: border-box;
        height: 100%;
        padding: 0 10px 10px;
        overflow: auto;
      }
    }
  }

  .flow-parser-container {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    overflow-x: hidden;

    .flow-top-container {
      display: flex;
      flex-shrink: 0;
      align-items: center;
      height: 42px;
      padding: 0 10px;
      border-bottom: 1px solid var(--border-color-base);

      .item {
        display: flex;
        align-items: center;
        width: 25%;
        color: var(--text-color-base);
        white-space: nowrap;

        .content {
          margin-left: 8px;
        }

        .content,
        .text {
          flex: 1;
          padding-right: 12px;
          overflow: hidden;
          text-overflow: ellipsis;
          line-height: 42px;
          white-space: nowrap;
        }
      }
    }

    .flow-form-container {
      flex: 1;
      padding: 10px 10px 0;
      overflow: hidden auto;
    }

    .flow-approval-form {
      position: relative;
      z-index: 99;
      width: 100%;
      background-color: var(--component-background);

      .opinion-btn {
        position: relative;
        padding: 20px 17.5px 0;
        cursor: pointer;
        border-top: 1px solid var(--border-color-base);

        .cover-btn {
          position: absolute;
          top: 0;
          left: 0;
          width: 100%;
          height: 100%;
        }
      }

      .ant-drawer-content-wrapper {
        border-top: 1px solid var(--border-color-base);
        box-shadow: unset;

        .approval-form {
          height: 100%;
          padding: 10px 15px;
          overflow-y: auto;
          background-color: var(--component-background);

          .arrow-icon {
            position: absolute;
            top: 5px;
            right: 7.5px;
            padding: 10px;
            font-size: 16px;
            cursor: pointer;
          }
        }

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

    .flow-btn-container {
      z-index: 1500;
      box-sizing: border-box;
      display: flex;
      flex-shrink: 0;
      align-items: center;
      justify-content: space-between;
      height: 60px;
      padding: 0 10px;
      background-color: var(--component-background);
      border-top: 1px solid var(--border-color-base);

      .flow-btn {
        flex-shrink: 0;

        .ant-btn {
          margin-left: 10px;
        }
      }
    }
  }

  .process-flow-container {
    .scale-slider {
      right: 10px;
    }
  }
}

.flow-file {
  position: absolute;
  top: 0;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background-color: rgb(240 242 245 / 40%);
}

.task-flow-status {
  display: flex;
  flex: 1;
  align-items: center;

  .icon {
    display: inline-block;
    width: 28px;
    height: 28px;
    padding: 2px;
    color: #fff;
    text-align: center;
    border-radius: 50%;
    transform: scale(0.6);
  }

  .icon-ym-fail {
    background-color: #ff4d4d;
  }

  .icon-ym-success {
    background-color: #55d187;
  }

  .icon-ym-recovery {
    background-color: #f09437;
  }
}

.stop-status {
  .icon-ym-fail,
  .icon-ym-success {
    background-color: #cbcbcc !important;
  }
}

.flex-flow-column {
  display: flex;
  flex-flow: column;
}

.free-modal-form {
  .ant-form-item-label {
    text-align: start;
  }

  .countersign-label {
    font-weight: bold;
  }

  .countersign-cell {
    display: flex;
    gap: 10px;
    align-items: center;
  }

  .free-radio-label {
    width: 160px;
    text-align: center;
  }
}

.dark,
.dark[data-theme='custom'],
.dark[data-theme='default'] {
  .flow-file {
    background-color: rgb(0 0 0 / 45%);
  }
}
