/* ==========================================================================
   Beacon POS — Critical boot shield (`/assets/css/monolith_overrides.css`; name pinned by tests/test_loc_ratchet.py).
   Loaded by templates/shell/boot-shield.html BEFORE the vendor CSS so uncompiled templates never flash.
   Boot-only: page sizing, the v-cloak / #app hide, the preloader and its spinner. Nothing else belongs here
   (C-01 moved the boot-recovery card to components/boot-recovery.css and .rp-denied--hub to reports.css, and
   dropped the unused .beacon-progress-bar-fill).
   ========================================================================== */

html, body {
  margin: 0;
  padding: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background-color: var(--pos-surface-inverse);
}

/* 100% suppress any uncompiled Vue templates, raw custom elements, and dialogs before Vue mounts */
[v-cloak], [v-cloak] *,
v-dialog, v-dialog *,
#app:not(.app-ready) {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

#app.app-ready {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  transition: opacity 0.2s ease-in;
}

/* Professional Retail POS Commercial Splash Preloader */
#app-preloader {
  position: fixed;
  inset: 0;
  z-index: var(--z-boot, 999999);
  background: var(--pos-surface-inverse);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-ui);
  color: var(--pos-text-inverse);
  user-select: none;
  transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.beacon-spinner {
  width: 40px;
  height: 40px;
  border: 3.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  border-top-color: var(--pos-accent);
  animation: beacon-spin 0.75s linear infinite;
}

@keyframes beacon-spin {
  to {
    transform: rotate(360deg);
  }
}
