/* ══════════════════════════════════════════════════════════════════
   Incident Tracker — Module-specific styles
   ══════════════════════════════════════════════════════════════════ */

/* ── Clickable table rows ───────────────────────────────────── */
#incidentsTable tr { cursor: pointer; }
#incidentsTable tr:hover td { background: var(--primary-xlight); }

/* ── Incident ID styling ────────────────────────────────────── */
.incident-id {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 12px;
  color: var(--primary);
  font-weight: 600;
}

/* ── Category labels ────────────────────────────────────────── */
.category-label {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  background: var(--bg);
  color: var(--text-light);
}

/* ── View modal detail grid ─────────────────────────────────── */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}
.detail-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.detail-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-muted);
}
.detail-value {
  font-size: 14px;
  color: var(--text);
}
.detail-full {
  grid-column: 1 / -1;
}
.detail-text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
  white-space: pre-wrap;
  background: var(--bg);
  padding: 12px 16px;
  border-radius: var(--radius);
}

/* ── Actions column ─────────────────────────────────────────── */
.actions-cell { white-space: nowrap; }
.actions-cell .btn { margin-right: 4px; }

/* ── Branch label colors ────────────────────────────────────── */
.branch-tag {
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 4px;
}
.branch-tag-sandbox-east { background: #dbeafe; color: #1d4ed8; }
.branch-tag-sandbox-greenhills { background: #dcfce7; color: #15803d; }
.branch-tag-verdana-store { background: #fef3c7; color: #b45309; }

@media (max-width: 768px) {
  .detail-grid { grid-template-columns: 1fr; }
}
