/* ============================================================
 * File: css/tools/jsonpath.css
 * Module: Tool CSS — JSONPath Tester
 * Purpose: The query row and the matches list.
 * ============================================================ */

.dt-jsonpath-queryrow {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dt-jsonpath-queryrow .dt-input {
  flex: 1 1 auto;
}

.dt-jsonpath-results {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dt-jsonpath-row {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  padding: 6px var(--space-2);
  border-radius: var(--radius-md);
}

.dt-jsonpath-row:hover {
  background-color: var(--color-hover);
}

.dt-jsonpath-path {
  flex: 0 0 auto;
  max-width: 45%;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--color-accent);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dt-jsonpath-value {
  flex: 1 1 auto;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  word-break: break-word;
}

.dt-jsonpath-empty {
  color: var(--color-text-subtle);
  font-size: var(--fs-sm);
  margin: 0;
}
