/* HazirE tick loader (owner, 19 November 2026: "every where tikc loader has to be taken and not the other").
   The slow tick (assets/brand/v2/tick-loader*.svg: a pen uncovers the ribbon from the left post into the tick and up the
   right post, holds, fades; 2.8 s) takes the place of every placeholder, spinner and the opening screen.

   EVERY rule in this file starts with [data-loader="tick"]. The page gets that attribute only where the Worker says loader
   "tick" (WEB_LOADER in the wrangler vars: v2 Dev only). The file itself is linked only there (the Worker adds the link to
   the page on v2 Dev; app.js adds it after /api/environment). Everywhere else nothing here applies. test/tick-loader-v2.test.mjs
   checks the scoping. With reduced motion the finished mark stands still (CSS cannot stop an image's own animation, so the
   still files are swapped in). */

[data-loader="tick"] {
  --tick-tile: url(/assets/brand/v2/tick-loader-tile.svg);
  --tick-ink: url(/assets/brand/v2/tick-loader-ink.svg);
}
@media (prefers-reduced-motion: reduce) {
  [data-loader="tick"] {
    --tick-tile: url(/assets/brand/v2/mark.svg);
    --tick-ink: url(/assets/brand/v2/tick-still-ink.svg);
  }
}

/* The opening screen: the tick above "HazirE" and "Opening your workspace…" */
[data-loader="tick"] .boot::before { content: ""; display: block; width: 88px; height: 88px; background: var(--tick-tile) center / contain no-repeat; }

/* Page and card waits (loading-ui.mjs waiting()): the tick and the words, no grey shapes */
[data-loader="tick"] .nb-wait { justify-items: center; align-content: center; gap: 10px; padding-block: 24px; text-align: center; }
[data-loader="tick"] .nb-wait::before { content: ""; display: block; width: 56px; height: 56px; background: var(--tick-tile) center / contain no-repeat; }
[data-loader="tick"] .nb-wait > .nb-wait-shape { display: none; }
[data-loader="tick"] .nb-wait > .sr-only { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; white-space: normal; color: var(--muted, #6B7280); font-size: 14px; }

/* Chart placeholders (Today, departments, attendance overview): the tick in the middle of the chart's space */
[data-loader="tick"] .chart-skeleton { animation: none; background: var(--tick-tile) center / 48px 48px no-repeat; }

/* A small tick before a one-line "Loading…" (loading-ui.mjs loadingMark()) */
[data-loader="tick"] .nb-tick-inline { display: inline-block; width: 1.3em; height: 1.3em; margin-right: .45em; vertical-align: -.32em; background: var(--tick-tile) center / contain no-repeat; }

/* The working button: the tick in the button's own text colour instead of the turning ring */
[data-loader="tick"] button.is-busy::before { width: 18px; height: 18px; border: 0; border-radius: 0; animation: none; background: currentColor; -webkit-mask: var(--tick-ink) center / contain no-repeat; mask: var(--tick-ink) center / contain no-repeat; }

/* Munsh-E (help) while it thinks: the tick instead of the three dots */
[data-loader="tick"] .help-wait > span { display: none; }
[data-loader="tick"] .help-wait::before { content: ""; display: block; width: 28px; height: 28px; background: var(--tick-tile) center / contain no-repeat; }
