.flex {
  display: flex;
}

.alignCenter {
  align-items: center;
}

.flexCol {
  flex-direction: column;
}

.justifyCenter {
  justify-content: center;
}

.gap4 {
  gap: 4px;
}

.Node {
  border: 1px solid var(--Color-neutral-300);
  background: #fff;
  box-shadow: 0 10px 20px 0 rgba(37, 37, 37, 0.10);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  border-radius: 12px;

  &__install {
    gap: 24px;
  }

  &.installing {
    .c-connect__desc {
      color: #D69D00;
    }
  }

  &__hr {
    width: 100%;
    height: 2px;
    margin: 0;
    background: var(--Color-neutral-200);
  }

  &Title {
    display: flex;
    font-weight: bold;
    flex-direction: column;

    &.master {
      color: var(--Color-primary-base);
    }
  }

  &Desc {
    margin: 0;
    font-size: 12px;
    line-height: 16px;
    font-weight: 500;

    &Stop {
      color: var(--Color-base-Error);
    }

    &Working {
      color: var(--Color-base-Success);
    }

    &NetworkDisconnected {
      color: var(--Color-base-Highlight);
      margin-top: 5px;
    }

    &Compleated {
      span,
      button {
        color: var(--Color-base-Success);
      }
    }

    &Installing {
      color: #D69D00;
    }

    &Failed {
      span,
      button {
        color: var(--Color-base-Error);
      }
    }

    button {
      font-weight: 700;
      background: transparent;
      box-shadow: unset;
      outline: unset;
      border: none;
      padding: 0;
    }
  }

  &Header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
  }

  &Action {
    display: flex;
    gap: 12px;

    &Between {
      justify-content: space-between;
    }

    &Delete {
      display: flex;
      justify-content: flex-end;
    }

    &Item {
      align-items: center;
      cursor: pointer;
      display: inline-flex;
      flex-direction: column;
      font-size: 12px;
      gap: 8px;
      position: relative;
      background: transparent;
      border: none;
      outline: unset;
      box-shadow: unset;
      padding: 0;

      &Installing {
        cursor: not-allowed;
      }

      &Loading {
        width: 42px;
        height: 42px;
      }

      &Info {
        position: absolute;
        top: -8px;
        right: -8px;

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

  &Click {
    background: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 24px;
    border-radius: 8px;
    border: 1px solid;
    height: 40px;
    box-shadow: 0px 1px 2px -1px rgba(17, 12, 34, 0.08);
    padding: 8px 12px;
    position: relative;

    &Stop {
      color: var(--Color-base-Error);
      border-color: var(--Color-base-Error);
      background: #fff;
    }

    &Start {
      color: var(--Color-base-Success);
      border-color: var(--Color-base-Success);
    }

    &StartTraining {
      border-color: #F8F8FD;
      background-color: #F8F8FD;
      color: #2D2D41;
    }

    &StopTraining {
      border-color: #F9C88C;
      background-color: #FEF3E6;
      color: #F28705;
    }

    &JoinMaster {
      border-color: #73E2A4;
      background-color: #E6FAEE;
      color: var(--Color-base-Success);
    }

    &RejectMaster {
      border-color: #F9C88C;
      background-color: #FEF3E6;
      color: #F28705;
    }

    &Dashboard {
      color: #14142A;
      background: var(--main-bg);
      border-color: var(--Color-neutral-300);
    }

    &Delete {
      color: var(--Color-base-Error);
    }

    &Cancel {
      color: black;
    }

    &Reset {
      color: var(--Color-primary-base);
      border-color: var(--Color-primary-base);
      background: #F1F5FF;
    }
  }

  &NodeDetail {
    min-width: 1114px;
  }

  &Body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--Color-neutral-50);
    padding: 7px;
    border-radius: 6px;

    &Item {
      display: flex;
      align-items: center;
      gap: 12px;

      &Icon {
        border: 1px solid var(--Color-neutral-200);
        width: 48px;
        height: 48px;
        background: var(--Color-neutral-100);
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 6px;
      }

      &Content {
        font-size: 14px;
        font-weight: 600;
        line-height: 24px;
        color: #2D2D41;
      }
    }
  }

  &Config {
    display: grid;
    align-items: center;
    margin-bottom: 24px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin-top: -24px;

    button {
      padding: 8px;
      height: auto;
      min-width: auto;
    }

    button:not(:first-child) {
      border-top-left-radius: 0;
      border-bottom-left-radius: 0;
      border-left: none;
    }

    button:not(:last-child) {
      border-top-right-radius: 0;
      border-bottom-right-radius: 0;
    }

    &Tab {
      font-size: 12px;
      line-height: 16px;
      font-weight: 600;
      border-radius: 8px;
      border: 1px solid var(--Color-neutral-300);
      color: #14142A;
      background: var(--main-bg);

      &Active {
        border-color: var(--Color-primary-base);
        background-color: var(--Color-primary-base);
        color: white;
      }
    }
  }

  &ModelConfig,
  &ArgsModel {
    .c-modal__body,
    .c-modal__footer {
      margin-top: 0;
    }
  }
}

.TrainingConfig {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
