.header {
  display: flex;
  flex-grow: 1;
  align-items: center;
  
  .copyIcon,
  .metricsIcon {
    margin-left: 4px;
    font-size: 0.75rem;
    opacity: 0.3;
    transition: opacity 0.3s ease;

    &:hover {
      opacity: 1;
    }
  }
}

.details {
  padding: 0px 40px 16px 35px;
}

.node {
  width: 100%;

  .nodeId {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
  }

  .label {
    color: var(--text-secondary);
    text-transform: uppercase;
    font-size: 0.75rem;
    margin-right: 4px;
  }

  .value {
    padding: 2px 6px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    font-size: 0.75rem;

    &:hover {
      background: rgba(var(--base-rgb), 0.2);
      cursor: pointer;
    }
  }

  .tableHeader {
    color: var(--text-secondary);
    text-transform: uppercase;
    font-size: 0.75rem;
    border-bottom: 1px solid rgba(var(--contrast-rgb), 0.1);
  }
}

.nodeUsage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 32px;
}

.tableHeader,
.tableRow {
  display: flex;
  padding: 4px 0;

  .scheme,
  .host,
  .port {
    flex: 2;
  }

  &:last-child {
    border-bottom: 0;
  }

  > div {
    flex: 1;
    display: flex;
    justify-items: center;
    flex-direction: column;
  }
}

.tableRow {
  .key {
    span {
      padding-left: 4px;
    }
  }
  &:nth-child(even) {
    background: rgba(var(--default-rgb), 0.15);
  }
}

.nodeSettings {
  display: flex;
  flex-wrap: wrap;
}

.cell {
  display: flex;
  flex-direction: column;
  white-space: nowrap;
  margin-bottom: 32px;

  &:not(:last-child) {
    padding-right: 4%;
  }

  label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    line-height: 1;
  }

  .nodeInfoLabel {
    margin-right: 4px;
  }
}

.totalCapacity {
  display: flex;
  align-items: center;
  width: 100%;
  height: 13px;
  border-radius: 4px;
  background: rgba(var(--contrast-rgb), 0.1);
  margin: 4px 0 32px;

  .totalInUse {
    height: 13px;
    border-radius: 4px 0 0 4px;
    background: rgba(var(--primary-rgb), 0.7);
  }

  .unknownCapacity {
    font-size: 10px;
    line-height: 13px;
    margin-left: 8px;
  }
}

.metricsLink {
  margin-top: 32px;
}

[data-theme='dark'] {
  .tableRow {
    &:nth-child(even) {
      background: rgba(var(--base-rgb), 0.1);
    }
  }
}
