.result-checkbox-label {
  display: inline-block;
  margin-right: 1em;
}

.result-checkbox-label label {
  position: relative;
  padding-left: 1.5em;
  cursor: default;
  font-size: 0.875em;
  line-height: 1.25em;
  vertical-align: middle;
}

.activity-indicator {
  line-height: 1.25em;
  margin: 0;
  padding-top: 0.5em;
  vertical-align: middle;
}

.version-label {
  font-size: 0.875em;
  line-height: 1.25em;
  margin: 0;
  padding-top: 0.35em;
  vertical-align: middle;
}

.progress-label {
  font-size: 0.875em;
  line-height: 1.25em;
  margin: 0;
  vertical-align: top;
}

.version-release-notes-row {
  margin-top: 0.25rem;
}

.version-release-notes-link {
  display: inline-block;
  font-size: 0.875em;
  line-height: 1.25em;
  padding-top: 0.25em;
}

.result-checkbox-label label::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 1px solid rgba(0, 0, 0, .25);
  background-color: white;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 0.25em;
}

.result-checkbox-label label.red-cross::before,
capacity-indicator .capacity-error-cross {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-x' viewBox='0 0 16 16'%3e%3cpath d='M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 1 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: center;
  background-color: red;
  font-size: 0.875em;
  font-weight: bold;
}

.result-checkbox-label label.green-tick::before {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='white' class='bi bi-check' viewBox='-1 -1 16 16'%3e%3cpath d='M13.485 1.89a.75.75 0 0 1 0 1.06l-8.25 8.25a.75.75 0 0 1-1.06 0l-4-4a.75.75 0 0 1 1.06-1.06L5 9.44l7.715-7.715a.75.75 0 0 1 1.06 0z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: center;
  background-color: green;
  font-size: 0.875em;
  font-weight: bold;
}

#healthCheckDialog,
#healthCheckBlade {
    min-width: 287px;
    width: 575px;
    max-width: 80%;
}

/* Capacity stays in the right version column and owns no request lifecycle. */
#healthCheckBlade .version-release-notes-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(max-content, 1fr);
    align-items: center;
}
capacity-indicator {
    display: block;
    font-size: 0.875em;
}
capacity-indicator .capacity-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 24px;
    color: inherit;
    cursor: help;
    white-space: nowrap;
}
capacity-indicator .capacity-status:focus-visible {
    outline: 2px solid #008cba;
    outline-offset: 3px;
}
capacity-indicator .capacity-icon-row {
    display: grid;
    flex: 0 0 44px;
    width: 44px;
    grid-template-columns: 24px 16px;
    align-items: center;
    gap: 4px;
    height: 24px;
    color: #343a40;
    transition: color 180ms ease;
}
capacity-indicator .capacity-stack,
capacity-indicator .capacity-loading,
capacity-indicator .capacity-failure {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    grid-column: 1;
    grid-row: 1;
}
capacity-indicator .capacity-stack svg {
    width: 24px;
    height: 24px;
    overflow: visible;
}
capacity-indicator .capacity-arrow,
capacity-indicator .capacity-confirmed {
    grid-column: 2;
    grid-row: 1;
}
capacity-indicator .capacity-arrow svg,
capacity-indicator .capacity-confirmed svg {
    width: 16px;
    height: 16px;
}
capacity-indicator .capacity-arrow,
capacity-indicator .capacity-confirmed,
capacity-indicator .capacity-loading,
capacity-indicator .capacity-failure,
capacity-indicator [data-capacity="CHECKING"] .capacity-stack,
capacity-indicator [data-capacity="UNAVAILABLE"] .capacity-stack {
    display: none;
}
capacity-indicator [data-capacity="CHECKING"] .capacity-loading,
capacity-indicator [data-capacity="UNAVAILABLE"] .capacity-failure,
capacity-indicator [data-capacity="SCALING_UP"] .capacity-arrow,
capacity-indicator [data-capacity="ENHANCED"] .capacity-confirmed {
    display: inline-flex;
}
capacity-indicator [data-capacity="STANDARD"] .capacity-third-platter {
    opacity: 0;
}
capacity-indicator [data-capacity="SCALING_UP"] .capacity-icon-row {
    color: #008cba;
}
capacity-indicator [data-capacity="ENHANCED"] .capacity-icon-row {
    color: #008000;
}
capacity-indicator [data-capacity="SCALING_UP"] .capacity-third-platter {
    animation: health-capacity-platter 2.4s ease-in-out infinite;
}
capacity-indicator [data-capacity="SCALING_UP"] .capacity-arrow svg {
    animation: health-capacity-arrow 2.4s ease-in-out infinite;
}
capacity-indicator .capacity-spinner {
    width: 16px;
    height: 16px;
    padding: 0;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: health-capacity-spinner 0.75s linear infinite;
}
capacity-indicator .capacity-error-cross {
    width: 16px;
    height: 16px;
    border: 1px solid rgba(0, 0, 0, .25);
    border-radius: 3.5px;
}
@keyframes health-capacity-platter {
    0%, 15% { transform: translateY(5px); opacity: 0; }
    50%, 76% { transform: translateY(0); opacity: 1; }
    93%, 100% { transform: translateY(0); opacity: 0; }
}
@keyframes health-capacity-arrow {
    0%, 15% { transform: translateY(3px); opacity: 0.55; }
    50%, 76% { transform: translateY(-3px); opacity: 1; }
    93%, 100% { transform: translateY(-3px); opacity: 0; }
}
@keyframes health-capacity-spinner {
    to { transform: rotate(360deg); }
}
@media (max-width: 460px) {
    capacity-indicator { font-size: 12px; }
    #healthCheckBlade .version-release-notes-row > .col { padding-inline: 6px; }
}
@media (prefers-reduced-motion: reduce) {
    capacity-indicator .capacity-icon-row { transition: none; }
    capacity-indicator .capacity-spinner,
    capacity-indicator [data-capacity="SCALING_UP"] .capacity-third-platter,
    capacity-indicator [data-capacity="SCALING_UP"] .capacity-arrow svg { animation: none; }
}
