/*
 * Titan Lock — audit.css (audit views and activity log). Owner: WS6-M5.
 * Registered on every panel by the S0 seam (ConfiguresTitanPanel). Styles only
 * this module's own .tl-audit-* classes: the embedded Log-tab trail
 * (App\Livewire\Audit\AuditTrailTable) and the platform's raw-record modal.
 * Plain CSS (no Tailwind build). After an edit run `php artisan filament:assets`
 * — the panels serve the published copy in public/css/app/.
 */

.tl-audit-trail {
  min-width: 0;
}

.tl-audit-trail--loading {
  padding: 1rem;
  border: 1px dashed var(--tl-steel-200);
  border-radius: var(--tl-radius-md);
}

/* The platform's raw view of one row (redacted JSON + IP). */
.tl-audit-raw {
  display: grid;
  gap: 1rem;
}

.tl-audit-raw__facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 0.5rem 1rem;
  margin: 0;
}

.tl-audit-raw__facts dt {
  font-size: 0.75rem;
  color: var(--tl-steel-500);
}

.tl-audit-raw__facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.tl-audit-raw__json {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem;
}

.tl-audit-raw__title {
  margin: 0 0 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--tl-steel-600);
}

.tl-audit-raw pre {
  margin: 0;
  padding: 0.75rem;
  max-height: 24rem;
  overflow: auto;
  font-family: var(--tl-font-code);
  font-size: 0.75rem;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: var(--tl-steel-50);
  border: 1px solid var(--tl-steel-200);
  border-radius: var(--tl-radius-sm);
}
