/* Tela de carregamento institucional compartilhada pelos painéis FUNASA. */
.funasa-loading-wrapper {
  min-height: 72px;
  position: relative;
}

.funasa-loading-wrapper > div:first-child {
  transition: filter 140ms ease, opacity 140ms ease;
}

/* O overlay do dcc.Loading recebe position:absolute somente enquanto está ativo. */
.funasa-loading-wrapper > div:last-child[style*="position: absolute"] {
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  background: rgba(245, 247, 250, 0.34);
  bottom: 0 !important;
  height: 100vh !important;
  isolation: isolate;
  left: 0 !important;
  overflow: hidden;
  position: fixed !important;
  right: 0 !important;
  top: 0 !important;
  width: 100vw !important;
  z-index: 2147483647 !important;
}

.funasa-loader-v3 {
  height: 110px;
  overflow: visible;
  position: relative;
  width: 242px;
  z-index: 2147483647;
}

.funasa-loader-v3 img {
  display: block;
  height: 110px;
  object-fit: contain;
  width: 242px;
}

.funasa-loader-v3__base {
  filter: grayscale(1);
  inset: 0;
  opacity: 0.16;
  position: absolute;
}

.funasa-loader-v3__tiles,
.funasa-loader-v3__tile,
.funasa-loader-v3__tile img {
  inset: 0;
  position: absolute;
}

.funasa-loader-v3__tile {
  animation: funasa-mosaic-v3 2.65s cubic-bezier(.4, 0, .2, 1) infinite;
  opacity: 0;
  transform: translate3d(0, 9px, 0);
  will-change: opacity, transform;
}

/* Os recortes respeitam os intervalos entre os elementos da assinatura. */
.funasa-loader-v3__tile--1 { clip-path: inset(0 71% 0 0); }
.funasa-loader-v3__tile--2 { animation-delay: .09s; clip-path: inset(0 56% 0 29%); }
.funasa-loader-v3__tile--3 { animation-delay: .18s; clip-path: inset(0 39% 0 44%); }
.funasa-loader-v3__tile--4 { animation-delay: .27s; clip-path: inset(0 21% 0 61%); }
.funasa-loader-v3__tile--5 { animation-delay: .36s; clip-path: inset(0 0 0 79%); }

@keyframes funasa-mosaic-v3 {
  0%, 10% { opacity: 0; transform: translate3d(0, 9px, 0); }
  34%, 76% { opacity: 1; transform: translate3d(0, 0, 0); }
  100% { opacity: 0; transform: translate3d(0, -7px, 0); }
}

@media (max-width: 575.98px) {
  .funasa-loader-v3,
  .funasa-loader-v3 img {
    height: 86px;
    width: 190px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .funasa-loader-v3__tile {
    animation-duration: 4s;
    transform: none;
  }
}
