/* Page loader: the SHRI TNPL mark inside a spinning ring, with SHRI TNPL / Scheme Management below.
   Page loads / navigation: solid background (the header stays visible).
   Background requests (saving, filtering): the page stays visible behind a light veil. */
#app-preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(248, 250, 252, .78);
  pointer-events: none;
}
#app-preloader.app-preloader--page { background: #f8fafc; pointer-events: auto; }
#app-preloader[hidden] { display: none !important; }
.app-loading-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.app-loading-ring {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: #f1f5f9;
  box-shadow: inset 0 0 0 5px #dfe8ee, 0 6px 24px rgba(15, 23, 42, .08);
  display: flex;
  align-items: center;
  justify-content: center;
}
.app-loading-arc {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: app-loading-spin 1.1s linear infinite;
}
.app-loading-arc circle {
  fill: none;
  stroke: #1f6f66;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 250 96;   /* a long arc with a gap, like the logo ring */
}
.app-loading-logo {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 2px #ccfbf1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.app-loading-logo svg { width: 48px; height: 48px; display: block; }
.app-loading-brand {
  margin-top: 14px;
  color: #0f766e;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: .04em;
  line-height: 1.2;
}
.app-loading-sub {
  margin-top: 6px;
  padding-left: .35em;         /* balances the trailing letter spacing */
  color: #334155;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .35em;
  text-transform: uppercase;
}
.app-loading-sr {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
@keyframes app-loading-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .app-loading-arc { animation-duration: 3s; }
}
@media print { #app-preloader { display: none !important; } }
