.p-my-computes-compute {
  border: 1px solid #DEDEEC;
  border-radius: 16px;
  box-sizing: border-box;
  max-width: 1200px;
  transition: linear background, box-shadow 250ms;
  width: 100%;

  &__inner {
    border-radius: 16px;
    background-color: #F4F5F9;
    font-size: 12px;
    padding: 24px;
    transition: linear background 250ms;
  }

  &:hover {
    background-image: linear-gradient(to right, #5555FF, #F3A2CF);
    border: none;
    box-shadow: 0 12px 24px 0 rgba(37, 37, 37, 0.10);
    padding: 3px;
  }

  &:hover &__inner {
    background-color: white;
    border-radius: 13px;
    padding: 22px;
  }

  .badges {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
  }

  .badge {
    border-radius: 67px;
    border: 1px solid #DEDEEC;
    background: #FFF;
    box-shadow: 0 1px 2px -1px rgba(17, 12, 34, 0.08);
    font-size: 12px;
    padding: 8px 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;

    &.clickable {
      cursor: pointer;
    }

    &--green {
      background-color: #27BE69;
      border: none;
      color: white;
    }

    &--purple {
      background-color: #9E7DFF;
      border: none;
      color: white;
    }

    &--black {
      background-color: #40405B;
      border: none;
      color: white;
    }

    &--semi-blue {
      background-color: #EEF;
      border-color: #5050FF;
      color: #5050FF;
    }
  }

  .columns {
    display: grid;
    grid-template-columns: 1.5fr repeat(2, minmax(0, 200px)) 140px;
    gap: 24px;
  }

  .column {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;

    &--gpu {
      margin-right: 48px;

      .name {
        background-color: #fff;
        border: 1px solid #DEDEEC;
        border-radius: 8px;
        color: #5050FF;
        font-size: 20px;
        font-weight: 700;
        padding: 0 16px;
        height: 42px;
        line-height: 42px;
        text-overflow: ellipsis;
        white-space: nowrap;
        overflow: hidden;
      }

      .split {
        align-items: flex-end;
        display: flex;
        justify-content: space-between;
        margin-top: 16px;
      }

      .tflops strong {
        color: #5050FF;
        font-size: 20px;
        font-weight: 700;
      }

      .gpu-ram, .gpu-bw {
        color: #5050FF;
        font-weight: 700;
      }

      .cuda, .gpu-bw {
        margin-top: 4px;
      }
    }

    &--cpu {
      .motherboard, .cpu {
        font-weight: 700;
      }

      .cpu {
        margin-top: 16px
      }

      .pcie, .cpu-ram {
        margin-top: 8px;
      }
    }

    &--network {
      .upload, .download, .duration, .reliability, .image {
        margin-top: 12px;

        svg {
          transform: translateY(2px);
        }
      }
      .image {
        display: flex;
        align-items: center;
        gap: 5px;
        strong {
          text-overflow: ellipsis;
          white-space: nowrap;
          overflow: hidden;
        }
      }
    }

    &--status {
      align-items: flex-end;
      box-sizing: border-box;
      text-align: right;

      .actions {
        box-sizing: border-box;
        display: flex;
        justify-content: space-between;
        gap: 16px;
        margin-bottom: 16px;
        width: 140px;
        flex-wrap: wrap;
      }

      .btn {
        background: #FFF;
        border-radius: 8px;
        border: 1px solid #DEDEEC;
        box-shadow: 0 1px 2px -1px rgba(17, 12, 34, 0.08);
        flex: 1;
        min-width: auto;
        box-sizing: border-box;

        &:hover {
          background: #f8f8f8;
        }

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

      .text {
        background: #EEF;
        border-radius: 8px;
        box-shadow: 0 1px 2px -1px rgba(17, 12, 34, 0.08);
        box-sizing: border-box;
        font-size: 14px;
        font-weight: 600;
        padding: 8px 12px;
        text-align: center;
        width: 140px;

        &--blue {
          border: 1px solid #5050FF;
          color: #5050FF;
        }

        &--red {
          border: 1px solid #F2415A;
          color: #F2415A;
        }
      }
    }

    &--logs {
      text-align: left;
      color: red;
      margin-top: -10px;
      padding-bottom: 10px;
    }
  }
  .c-skeleton-box {
    background-color: #DEDEEC;
    border-radius: 80px;
    height: 24px;
  }
}

@media screen and (max-width: 1080px) {
  .p-my-computes-compute {
    .columns {
      grid-template-columns: 1fr 1fr;
    }
    .column {
      &--gpu {
        margin-right: 0;
      }
    }
  }
}
