// Add Compute
.c-add-compute-container {
  padding: 0 20px;
  position: relative;
  min-height: calc(100vh - 96px);
  &::before {
    position: absolute;
    content: "";
    top: 74px;
    width: 100%;
    height: 1px;
    background: #dedeec;
    left: auto;
    right: 50%;
    transform: translate(50%, 0);
  }

  .c-add-compute-content {
    position: relative;
    display: flex;
    gap: 20px;
    justify-content: flex-start;
    margin-top: 20px;
  }

  .c-add-compute {
    width: 32%;
    display: flex;
    flex-direction: column;
    gap: 24px;

    &-title {
      text-align: center;
      margin-top: 20px;
      font-weight: 600;
      font-size: 16px;
    }

    &__heading {
      font-size: 32px;
      font-weight: 600;
      line-height: normal;
      letter-spacing: 1px;
      margin: 0;
    }

    &__error {
      color: red;
    }

    &__upload {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    &__content {
      display: flex;
      flex-direction: column;
      gap: 16px;

      .c-input-base__field,
      .c-select {
        opacity: 1;
      }

      form {
        display: flex;
        flex-direction: column;
        gap: 24px;

        .c-select__label {
          font-size: 14px;
          font-weight: 400;
          color: #252525;
          line-height: normal;
        }

        .c-label,
        label {
          span {
            font-size: 14px;
          }
        }
      }
    }

    &__actions {
      display: flex;
      justify-content: center;
      gap: 16px;

      &--next {
        height: 48px;
        border-radius: 32px;
        background: linear-gradient(90deg, #ff71e8 0.03%, #3838ff 99.8%);
      }
    }

    &__select {
      padding: 0;

      .c-select__item.last {
        margin-bottom: 0;
      }

      .c-select__item {
        padding: 0 0 0 20px;
      }

      .c-select__content {
        height: 52px;
      }
    }

    &-date {
      overflow-x: auto;
      max-width: 1024px;
      min-width: 760px;
      width: 100%;

      &-title {
        font-size: 12px;
        font-weight: 500;
        color: #40405b;
        margin-bottom: 8px;
      }

      &-time {
        border: solid 1px #10284817;
        border-radius: 8px;
        padding: 16px;

        .rdrDateRangePickerWrapper {
          width: 100%;
        }

        .rdrDefinedRangesWrapper,
        .rdrDateDisplayWrapper {
          display: none;
        }

        .rdrCalendarWrapper {
          flex: 1;
        }

        .rdrMonths {
          gap: 16px;
        }

        .rdrMonth {
          flex: 1;
        }

        &-range {
          display: flex;
          gap: 20px;
          &__item {
            position: relative;
            width: calc(50% - 10px);
            &-checkbox {
              margin-top: 10px;
            }
            &-current {
              position: absolute;
              color: #4db050;
              font-size: 14px;
              right: 0;
              cursor: pointer;
            }
          }
        }
        .default-date {
          .rdrDayToday {
            .rdrDayNumber {
              span {
                color: #1d2429;
                &::after {
                  background-color: #3d91ff;
                }
              }
            }
          }
        }
      }
    }

    &-group-btn {
      text-align: center;
      margin-top: 20px;
      margin-bottom: 20px;
      display: flex;
      justify-content: center;
      gap: 10px;

      button {
        width: 122px;
        height: 40px;
        color: #fff;
        font-size: 14px;
        font-weight: 600;
        border-radius: 8px;
        outline: none;
        cursor: pointer;
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;

        svg {
          margin-right: 5px;
        }
      }

      .create,
      .edit {
        background-color: #27be69;
      }

      .back {
        background-color: #14142a;
      }

      .delete {
        background-color: #f2415a;
      }
    }
  }

  &-add-host {
    .compute-form-add-host {
      margin-top: 0;
    }
  }
}

.computes-delete-modal {
  .c-modal {
    &--cancel {
      button {
        min-width: 80px;
        border-radius: 6px;
        border: 1px solid #cfd6dd;
        background-color: #fff;
        box-shadow: 0 1px 2px 0 rgba(27, 36, 44, 0.12);
        color: #4a545e;
        font-size: 14px;
        font-weight: 500;
      }
    }

    &__body {
      line-height: 25px;
    }

    &__footer {
      & > button {
        min-width: 87px;
        background-color: #e2323a;
        font-size: 14px;
        font-weight: 500;
        color: #fff;
        box-shadow: 0 1px 2px 0 rgba(27, 36, 44, 0.12);
        border-radius: 6px;
        border: 1px solid #e2323a;
      }
    }

    &__title {
      display: flex;
      align-items: center;

      svg {
        margin-right: 10px;
      }
    }
  }
}
