/* PQP delta cells — the class is a JS hook now, alignment comes from the shared .col-num */
.data-table td.pqp-delta-out-of-tolerance {
  background: var(--danger-bg);
  color: var(--danger);
  font-weight: 600;
}

/* PQP flagged rows wear the shared tr.is-flagged state now — nothing PQP-specific left to declare */
.pqp-flag-cell {
  text-align: center !important;
  padding: 0 !important;
  width: 6px !important;
  min-width: 6px !important;
  max-width: 6px !important;
  color: var(--warning);
  font-size: 0.7rem;
  overflow: hidden;
}
.pqp-flag-clickable {
  cursor: pointer;
}
.pqp-flag-clickable:hover {
  background: var(--warning-bg) !important;
}
.pqp-flag-ghost {
  opacity: 0.15;
}
.pqp-flag-clickable:hover .pqp-flag-ghost {
  opacity: 0.5;
}

/* ─── Scan detail — one row per finding, the numbered chip ties it to a photo marker ────── */

.scan-defect-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.scan-defect-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--border);
  border-left: 3px solid var(--danger); /* a finding is always bad news, so the stripe is unconditional */
  border-radius: 4px;
  background: var(--surface);
  font-size: 0.82rem;
}

.scan-defect-comment {
  flex: 1;
  min-width: 0;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Share plus relative path, never an absolute one — the root is config, not data */
.scan-photo-path {
  font-family: ui-monospace, 'Cascadia Code', 'Fira Mono', monospace;
  font-size: 0.75rem;
}
