/* List row / card detail modal */

.data-table tbody tr,
.mobile-card {
  cursor: pointer;
}

.data-table tbody tr:focus-visible,
.mobile-card:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: -2px;
}

.detail-hint {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--ink-4);
  font-size: 10px;
  white-space: nowrap;
}

.detail-hint .icon {
  color: var(--brand);
}

.modal.lg {
  width: min(780px, calc(100vw - 48px));
  max-width: 780px;
}

.detail-hero {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px;
  margin-bottom: 10px;
  border: 1px solid #dfe9f8;
  border-radius: 4px;
  background: #f7faff;
}

.detail-hero-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 3px;
  color: var(--brand);
  background: var(--brand-soft);
}

.detail-hero-copy {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.detail-hero-copy strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 18px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-hero-copy span {
  overflow: hidden;
  color: var(--ink-3);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 26px;
  padding: 0 2px;
}

.detail-item {
  min-width: 0;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.detail-item.full {
  grid-column: 1 / -1;
}

.detail-label {
  display: block;
  margin-bottom: 5px;
  color: var(--ink-3);
  font-size: 11px;
}

.detail-value {
  display: block;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.55;
}

.detail-item.full .detail-value {
  font-weight: 400;
}

@media (max-width: 1080px) {
  .detail-hint {
    display: none;
  }
}

@media (max-width: 640px) {
  .modal.lg {
    width: calc(100vw - 24px);
  }

  .detail-grid {
    grid-template-columns: 1fr;
    column-gap: 0;
  }

  .detail-item.full {
    grid-column: auto;
  }

  .detail-hero {
    padding: 13px;
  }

  .detail-hero-copy strong {
    font-size: 16px;
  }
}
