.application-detail-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 4px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  background: #fff;
}

.application-detail-fact {
  display: grid;
  grid-template-columns: minmax(96px, 28%) minmax(0, 1fr);
  min-height: 48px;
  border-top: 1px solid #edf2f7;
  border-left: 1px solid #edf2f7;
}

.application-detail-fact:nth-child(-n + 2) {
  border-top: 0;
}

.application-detail-fact:nth-child(2n + 1) {
  border-left: 0;
}

.application-detail-fact > span,
.application-detail-fact > strong {
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 11px 14px;
  line-height: 1.5;
}

.application-detail-fact > span {
  background: #f8fafc;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.application-detail-fact strong {
  border-left: 1px solid #edf2f7;
  color: #0f172a;
  font-size: 13px;
  font-weight: 750;
  gap: 8px;
  overflow-wrap: anywhere;
}

.application-detail-fact.highlight > span {
  background: var(--theme-primary-soft);
  color: var(--theme-primary-active);
}

.application-detail-fact.highlight strong {
  background: color-mix(in srgb, var(--theme-primary-soft) 55%, #ffffff);
}

.application-detail-fact.emphasis strong {
  color: var(--theme-primary-active);
  font-weight: 850;
}

.application-detail-fact-value {
  min-width: 0;
  flex: 1 1 auto;
  overflow-wrap: anywhere;
}

.application-detail-edit-btn,
.application-detail-edit-confirm,
.application-detail-edit-cancel {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: #64748b;
  cursor: pointer;
}

.application-detail-edit-btn {
  opacity: 0;
  transition:
    opacity 0.16s ease,
    background 0.16s ease,
    color 0.16s ease;
}

.application-detail-fact.editable:hover .application-detail-edit-btn,
.application-detail-edit-btn:focus-visible {
  opacity: 1;
}

.application-detail-edit-btn:hover:not(:disabled),
.application-detail-edit-btn:focus-visible,
.application-detail-edit-confirm:hover:not(:disabled),
.application-detail-edit-cancel:hover:not(:disabled) {
  background: rgba(var(--theme-primary-rgb, 58, 124, 165), 0.1);
  color: var(--theme-primary-active);
}

.application-detail-edit-confirm {
  background: rgba(22, 163, 74, 0.1);
  color: #15803d;
}

.application-detail-edit-cancel {
  background: #f1f5f9;
}

.application-detail-edit-btn:disabled,
.application-detail-edit-confirm:disabled,
.application-detail-edit-cancel:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.application-detail-fact.editing strong {
  align-items: center;
}

.application-detail-editor-control {
  flex: 1 1 auto;
  min-width: 0;
}

.application-detail-editor-select {
  width: 100%;
}

@media (max-width: 760px) {
  .application-detail-facts {
    grid-template-columns: 1fr;
  }

  .application-detail-fact {
    border-left: 0;
  }

  .application-detail-fact:nth-child(2) {
    border-top: 1px solid #edf2f7;
  }
}
