
/* ── Defect detail rows (inspection detail view) ── */
.defect-detail-row {
  padding: 10px;
  border-bottom: 1px solid #f0f0f0;
  border-radius: 6px;
  margin-bottom: 6px;
  transition: background 0.2s;
}
.defect-detail-row:last-child { border-bottom: none; }
.defect-detail-row.defect-resolved {
  background: #eafaf1;
  border-left: 3px solid #035c2c;
}
.defect-detail-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}
.defect-detail-info {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.resolved-badge {
  background: #035c2c;
  color: white;
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 700;
  white-space: nowrap;
}
.resolved-notes {
  font-size: 0.8rem;
  color: #035c2c;
  padding: 4px 0 2px 0;
  font-style: italic;
}
.defect-detail-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.resolve-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
}
.resolve-toggle input[type=checkbox] {
  width: 16px;
  height: 16px;
  accent-color: #035c2c;
  cursor: pointer;
}
.resolve-notes-input {
  flex: 1;
  min-width: 150px;
  display: flex;
}
.resolve-notes-input input {
  padding: 5px 8px;
  font-size: 0.82rem;
  border: 1.5px solid var(--grey-dark);
  border-radius: 6px;
  width: 100%;
  font-family: inherit;
}
.resolve-notes-input input:focus {
  outline: none;
  border-color: #035c2c;
}
.defect-photo-btn {
  font-size: 0.78rem !important;
  padding: 4px 10px !important;
}
