.api-keys > :not(:last-child) {
  margin-bottom: 8px;
}

.api-keys .api-keys .loading {
  width: 32px;
  height: 32px;
  flex-grow: 0;
  align-self: center;
}

.api-keys .error-container {
  background: #ffcdd2;
  padding: 16px;
  border-radius: 8px;
}

.api-keys .api-keys-list {
  padding: 8px 0;
}

.api-keys .api-keys-list > :not(:last-child) {
  margin-bottom: 8px;
}

.api-keys .api-key-list-item {
  display: flex;
  align-items: baseline;
  min-height: 40px;
}

.api-keys .api-key-list-item button {
  flex-shrink: 0;
}

.api-keys .api-key-label,
.api-keys .api-key-capabilities {
  display: flex;
  align-self: stretch;
  align-items: center;
}

.api-keys .api-key-label {
  font-weight: 600;
}

.api-keys .api-key-capabilities {
  white-space: nowrap;
  overflow-x: hidden;
  width: 0;
  max-width: 192px;
  flex-basis: 192px;
  flex-shrink: 0;
}

.api-keys .untitled-key {
  color: #757575;
}

.api-keys .api-key-label,
.api-keys .api-key-value {
  width: 0;
  display: flex;
}

.api-keys .api-key-label {
  flex-basis: 224px;
  flex-grow: 1;
  flex-shrink: 1;
}

.api-keys .api-key-value {
  box-sizing: border-box;
  width: fit-content;
  flex-shrink: 0;
}

.api-keys .api-key-label > span {
  flex-grow: 1;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-align: left;
  overflow-x: hidden;
}

.api-keys .api-key-value {
  font-family: monospace;
  font-size: 12px;
  background: #eee;
  border-radius: 8px;
  padding-left: 16px;
  padding-right: 4px;
  align-self: stretch;
  display: flex;
  align-items: center;
  white-space: nowrap;
  overflow-x: hidden;
}

.api-keys .api-key-value .display-value {
  margin-right: 4px;
}

.api-keys .api-key-value button {
  width: 32px;
  height: 32px;
  border-color: transparent;
  min-height: initial;
}

.api-keys .api-key-label svg,
.api-keys .api-key-value svg {
  width: 16px;
  height: 16px;
}

.api-keys .api-key-label svg {
  margin-right: 8px;
}

.api-keys .api-key-label svg {
  margin-right: 0px;
}

.api-keys .api-key-list-item {
  padding-bottom: 8px;
  border-bottom: 1px solid #eee;
  max-width: 816px;
}

.api-keys .api-key-list-item > :not(:last-child) {
  margin-right: 8px;
}

.api-keys-form .field-container {
  display: flex;
  flex-direction: column;
}

.api-keys-form .field-container:not(:last-child) {
  margin-bottom: 16px;
}

.api-keys-form .field-container > :not(:last-child) {
  margin-bottom: 4px;
}

.api-keys-form .checkbox-row {
  display: flex;
  align-items: center;
}

.api-keys-form .field-description {
  color: #444;
}

.api-keys-form label {
  user-select: none;
}

.api-keys-form input[type="checkbox"],
.api-keys-form input[type="radio"] {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  user-select: none;
  margin-right: 8px;
}

.api-keys-delete-modal .delete-modal-key-label {
  font-weight: 700;
}

.api-keys-delete-modal .delete-modal-key-value {
  font-family: monospace;
  font-size: 15px;
  background: #eee;
  padding: 4px 8px;
  border-radius: 4px;
}

.api-keys .no-api-keys-message {
  background: #e1f5fe;
  padding: 16px;
  border-radius: 8px;
}
