.insight-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.insight-kpi {
  background: linear-gradient(145deg, #111827 0%, #0b1220 100%);
  border: 1px solid #1e293b;
  border-radius: 14px;
  padding: 1rem 1.1rem;
}

.insight-kpi strong {
  display: block;
  font-size: 1.65rem;
  line-height: 1.1;
  font-weight: 700;
}

.insight-kpi span {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.72rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.insight-kpi.accent strong { color: #60a5fa; }
.insight-kpi.ok strong { color: #4ade80; }
.insight-kpi.warn strong { color: #fbbf24; }
.insight-kpi.danger strong { color: #f87171; }

.insight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.insight-bar-row {
  display: grid;
  grid-template-columns: 88px 1fr 42px;
  gap: 0.5rem;
  align-items: center;
  margin: 0.45rem 0;
  font-size: 0.82rem;
}

.insight-bar-track {
  height: 8px;
  background: #1e293b;
  border-radius: 99px;
  overflow: hidden;
}

.insight-bar-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #2563eb, #22c55e);
}

.insight-defect-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.insight-defect-list li {
  padding: 0.55rem 0;
  border-bottom: 1px solid #1e293b;
  font-size: 0.82rem;
}

.insight-defect-list li:last-child { border-bottom: none; }

.insight-tag {
  display: inline-block;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
}

.insight-tag.defect { background: #78350f44; color: #fcd34d; }
.insight-tag.urgent { background: #7f1d1d44; color: #fca5a5; }

.insight-audit-table {
  width: 100%;
  font-size: 0.78rem;
  border-collapse: collapse;
}

.insight-audit-table th,
.insight-audit-table td {
  padding: 0.4rem 0.5rem;
  border-bottom: 1px solid #1e293b;
  text-align: left;
}

.insight-audit-table th {
  color: #94a3b8;
  font-weight: 500;
}

.insight-report-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: flex-end;
  margin-bottom: 1rem;
}

.insight-report-bar label {
  display: block;
  font-size: 0.75rem;
  color: #94a3b8;
  margin-bottom: 0.2rem;
}

.insight-report-bar input,
.insight-report-bar select {
  border: 1px solid #334155;
  background: #0f172a;
  color: inherit;
  border-radius: 8px;
  padding: 0.4rem 0.55rem;
}

.ppm-photo-input {
  font-size: 0.75rem;
  margin-top: 0.45rem;
  color: #94a3b8;
}

.ppm-photo-thumb {
  max-width: 120px;
  border-radius: 8px;
  margin-top: 0.35rem;
}
