/* ─── Processing animation ────────────────────────────────────────────────────
   Used by public/assets/js/processing-animation.js. See documentation/batch-actions.md.
   ⚠️ Every rule is keyed on a class only that script / showLoadingDialog() adds
   (.dt-proc-* / .swal-proc-*), so no existing table, dialog or layout rule is touched. */

/* DataTables "Processing…" node, turned into a card. Selector out-ranks
   dataTables.bootstrap4's `div.dataTables_wrapper div.dataTables_processing`. */
div.dataTables_wrapper div.dataTables_processing.dt-proc-card {
  top: min(50%, 170px); left: 50%; width: 220px; margin: 0 0 0 -110px; transform: translateY(-50%);
  padding: 8px 16px 14px; background: #FFFFFF; border: 0; border-radius: 14px;
  box-shadow: 0 10px 30px rgba(32, 43, 86, .18); text-align: center; z-index: 5;
}
/* list-skeleton hides the node with !important on its tables; show the card after the first load. */
.dt-skel-wrap div.dataTables_processing.dt-proc-card.dt-proc-show { display: block !important; }

.dt-proc-card .dt-proc-anim { width: 150px; height: 96px; margin: 0 auto; }
.dt-proc-card .dt-proc-title { color: #202B56; font-size: 15px; font-weight: 700; line-height: 1.3; }
.dt-proc-card .dt-proc-sub { color: #6B7280; font-size: 12px; line-height: 1.4; }

/* "Please wait" dialog: animation above the title. Narrow card (client 2026-11-06): Swal sets its 32em width
   as an inline style, so !important is needed; only the width changes. */
.swal2-popup.swal-proc-popup { width: 300px !important; }
.swal-proc-popup .swal2-content { order: -1; padding: 0; }
.swal-proc-popup .swal-proc-anim { width: 180px; height: 115px; margin: 0 auto; }
