/* ─── Shared list loading states ──────────────────────────────────────────────
   Used by public/assets/js/list-skeleton.js on every server-side DataTable.
   ⚠️ Every rule is keyed on a class only that script adds (.dt-skel-*), so no
   existing table, layout or design rule is touched. */
.dt-skel-table .dt-skel { display: block; height: 10px; border-radius: 6px;
  background: linear-gradient(90deg, #EEF1F6 25%, #F8FAFD 37%, #EEF1F6 63%);
  background-size: 400% 100%; animation: dt-skel-shimmer 1.4s ease infinite; }
/* Percentage widths so the skeleton never makes the table wider than the real rows. */
.dt-skel-table .dt-skel-w1 { width: 80%; max-width: 140px; }
.dt-skel-table .dt-skel-w2 { width: 65%; max-width: 110px; }
.dt-skel-table .dt-skel-w3 { width: 50%; max-width: 90px; }
.dt-skel-table .dt-skel-xs { width: 24px; }
.dt-skel-table .dt-skel-center { margin-left: auto; margin-right: auto; }
.dt-skel-table .dt-skel-row td { vertical-align: middle; height: 56px; }

@keyframes dt-skel-shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* A shimmer is motion: respect the OS setting. */
@media (prefers-reduced-motion: reduce) {
  .dt-skel-table .dt-skel { animation: none; }
}

/* Later loads dim the existing rows instead of emptying the table. */
.dt-skel-table tbody { transition: opacity .15s; }
.dt-skel-table.dt-skel-busy tbody { opacity: .45; pointer-events: none; }
/* DataTables' own "Processing..." box would sit on top of both states. */
.dt-skel-wrap .dataTables_processing { display: none !important; }

/* First load failed. */
.dt-skel-table .dt-skel-error { display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: #FDECEC; color: #B91C1C; border-radius: 12px; padding: 12px 16px;
  margin: 4px 0; font-weight: 500; text-align: left; }
