/* Application styles */

/* Busy-frame loading wheel. Unlayered so these beat the Tailwind
   @layer components busy overlay (absolute + white wash). */
turbo-frame[busy]::before {
  content: " ";
  background-image: url("/loader_wheels/wheel_w_message");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

/* Auto-refresh indicator for data-reloadable frames (dashboard
   server_stats). The old left-full absolute rule sat the wheel
   outside the card and overflow/min-w-0 clipped it off-screen.
   Pin a readable wheel to the viewport center for the whole busy
   request; do not cover the page or steal clicks. */
turbo-frame[data-reloadable][busy]::before {
  content: " ";
  position: fixed;
  top: 50vh;
  left: 50vw;
  right: auto;
  bottom: auto;
  width: 12.5rem;
  height: 12.5rem;
  max-height: none;
  margin: 0;
  transform: translate(-50%, -50%);
  z-index: 40;
  display: block;
  background-color: transparent;
  background-image: url("/loader_wheels/wheel_w_message");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  pointer-events: none;
  opacity: 1;
}
