.k8s-upgrade-plan-version {
  display: inline-block;
  font-weight: 600;
  font-family: SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono',
    monospace;
  color: #0958d9;
  background: rgba(255, 255, 255, 0.9);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid #91caff;
  line-height: 1.4;
}

.k8s-upgrade-plan-table {
  .k8s-upgrade-plan-actions {
    .ant-btn-link {
      padding: 0 4px;
      height: auto;
    }
  }
}

.k8s-upgrade-plan-detail-modal {
  .ant-modal-header {
    padding: 16px 24px 12px;
    border-bottom: 1px solid #f0f0f0;
  }

  .ant-modal-body {
    padding: 0 24px 20px;
    max-height: calc(100vh - 220px);
    overflow-y: auto;
  }

  .ant-modal-footer {
    padding: 12px 24px 16px;
    border-top: 1px solid #f0f0f0;
  }
}

.k8s-upgrade-plan-detail {
  &__title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding-right: 24px;
  }

  &__title-id {
    display: block;
    font-size: 12px;
    margin-bottom: 2px;
  }

  &__title-name {
    margin: 0 !important;
    line-height: 1.35;
  }

  &__title-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex-shrink: 0;
    padding-top: 4px;
  }

  &__highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 4px;
  }

  &__highlight {
    padding: 12px 14px;
    border-radius: 8px;
    background: linear-gradient(180deg, #fafafa 0%, #f5f5f5 100%);
    border: 1px solid #f0f0f0;
  }

  &__highlight-value {
    margin-top: 6px;
    min-height: 28px;
    display: flex;
    align-items: center;
  }

  &__highlight-date {
    font-size: 16px;
    font-weight: 600;
    color: #262626;
    font-variant-numeric: tabular-nums;
  }

  &__highlight-number {
    font-size: 22px;
    font-weight: 600;
    color: #0958d9;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
  }

  &__divider {
    margin: 16px 0;
  }

  &__section {
    & + & {
      margin-top: 20px;
    }
  }

  &__section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #262626;

    .anticon {
      color: #1890ff;
    }
  }

  &__field {
    min-height: 52px;
  }

  &__label {
    display: block;
    font-size: 12px;
    margin-bottom: 4px;
  }

  &__value {
    font-size: 14px;
    color: #262626;
    word-break: break-word;
  }

  &__mono {
    font-family: SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono',
      monospace;
    font-size: 13px;
  }

  &__link {
    font-weight: 500;
  }

  &__time {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #595959;

    .anticon {
      color: #8c8c8c;
    }
  }

  &__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
  }

  &__footer-actions {
    flex: 1;
    min-width: 0;
  }
}

@media (max-width: 576px) {
  .k8s-upgrade-plan-detail {
    &__highlights {
      grid-template-columns: 1fr;
    }

    &__title {
      flex-direction: column;
      padding-right: 0;
    }
  }
}
