/* V7 governed-diagnostic resource details; loaded after the compact base stylesheet. */
.diagnostic-summary {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: #e6edef;
}

.diagnostic-summary div {
  min-width: 0;
  border: 0;
  background: #fff;
}

.diagnostic-summary div:last-child {
  border: 0;
}

.diagnostic-summary strong {
  overflow-wrap: anywhere;
}

.diagnostic-severity {
  display: inline-flex;
  width: max-content;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 13px !important;
}

.severity-normal {
  color: #25643b;
  background: #e0f3e5;
}

.severity-warning {
  color: #7b5711;
  background: #fff1c8;
}

.severity-critical {
  color: #922d2d;
  background: #fde5e5;
}

.diagnostic-result-form {
  width: min(760px, calc(100vw - 48px));
}

.diagnostic-assessment {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 7px 14px;
  margin-bottom: 18px;
  padding: 16px;
  border-radius: 12px;
  background: #f3f8f8;
}

.diagnostic-assessment span {
  color: #60777c;
  font-size: 13px;
}

.diagnostic-assessment strong {
  align-self: center;
}

.diagnostic-assessment p {
  grid-column: 1 / -1;
  margin: 0;
  color: #415b61;
}

.diagnostic-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.diagnostic-detail-grid div {
  min-width: 0;
  padding: 13px;
  border: 1px solid #dce5e7;
  border-radius: 10px;
  background: #fafcfc;
}

.diagnostic-detail-grid .wide {
  grid-column: 1 / -1;
}

.diagnostic-detail-grid dt {
  margin-bottom: 6px;
  color: #66777c;
  font-size: 12px;
}

.diagnostic-detail-grid dd {
  margin: 0;
  font-weight: 700;
  overflow-wrap: anywhere;
}

@media (max-width: 520px) {
  .diagnostic-detail-grid {
    grid-template-columns: 1fr;
  }

  .diagnostic-detail-grid .wide {
    grid-column: auto;
  }
}
