/* Absolute Center Spinner */
.loading {
  position: fixed;
  z-index: 9999;
  height: 2em;
  width: 2em;
  overflow: show;
  margin: auto;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
}

/* Transparent Overlay */
.loading:before {
  content: '';
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(rgba(20, 20, 20, 0.8), rgba(0, 0, 0, 0.8));
  background: -webkit-radial-gradient(rgba(20, 20, 20, 0.8), rgba(0, 0, 0, 0.8));
}

/* :not(:required) hides these rules from IE9 and below */
.loading:not(:required) {
  /* hide "loading..." text */
  font: 0/0 a;
  color: transparent;
  text-shadow: none;
  background-color: transparent;
  border: 0;
}

.loading:not(:required):after {
  content: '';
  display: block;
  font-size: 10px;
  width: 1em;
  height: 1em;
  margin-top: -0.5em;
  -webkit-animation: spinner 150ms infinite linear;
  -moz-animation: spinner 150ms infinite linear;
  -ms-animation: spinner 150ms infinite linear;
  -o-animation: spinner 150ms infinite linear;
  animation: spinner 150ms infinite linear;
  border-radius: 0.5em;
  -webkit-box-shadow:
    rgba(255, 255, 255, 0.75) 1.5em 0 0 0,
    rgba(255, 255, 255, 0.75) 1.1em 1.1em 0 0,
    rgba(255, 255, 255, 0.75) 0 1.5em 0 0,
    rgba(255, 255, 255, 0.75) -1.1em 1.1em 0 0,
    rgba(255, 255, 255, 0.75) -1.5em 0 0 0,
    rgba(255, 255, 255, 0.75) -1.1em -1.1em 0 0,
    rgba(255, 255, 255, 0.75) 0 -1.5em 0 0,
    rgba(255, 255, 255, 0.75) 1.1em -1.1em 0 0;
  box-shadow:
    rgba(255, 255, 255, 0.75) 1.5em 0 0 0,
    rgba(255, 255, 255, 0.75) 1.1em 1.1em 0 0,
    rgba(255, 255, 255, 0.75) 0 1.5em 0 0,
    rgba(255, 255, 255, 0.75) -1.1em 1.1em 0 0,
    rgba(255, 255, 255, 0.75) -1.5em 0 0 0,
    rgba(255, 255, 255, 0.75) -1.1em -1.1em 0 0,
    rgba(255, 255, 255, 0.75) 0 -1.5em 0 0,
    rgba(255, 255, 255, 0.75) 1.1em -1.1em 0 0;
}

/* Animation */

@-webkit-keyframes spinner {
  0% {
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
  }

  100% {
    -webkit-transform: rotate(360deg);
    -moz-transform: rotate(360deg);
    -ms-transform: rotate(360deg);
    -o-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@-moz-keyframes spinner {
  0% {
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
  }

  100% {
    -webkit-transform: rotate(360deg);
    -moz-transform: rotate(360deg);
    -ms-transform: rotate(360deg);
    -o-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@-o-keyframes spinner {
  0% {
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
  }

  100% {
    -webkit-transform: rotate(360deg);
    -moz-transform: rotate(360deg);
    -ms-transform: rotate(360deg);
    -o-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@keyframes spinner {
  0% {
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
  }

  100% {
    -webkit-transform: rotate(360deg);
    -moz-transform: rotate(360deg);
    -ms-transform: rotate(360deg);
    -o-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

body:has(.idata-load) {
  margin: 0px;
}

.idata-load {
  width: 100%;
  height: 100vh;
  z-index: 9999999;
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  background: #ecedf0;
}

.idata-load > div {
  text-align: center;
}

.idata-load .id-load-content {
  text-align: center;
  margin-top: 5px;
  padding-top: 15px;
  border-top: solid 2px #aaa;
  white-space: nowrap;
  display: flex;
  justify-content: space-between;
}

.idata-load .id-load-content .id-load-icon {
  box-sizing: border-box;
  width: 26px;
  height: 26px;
  text-align: center;
  -webkit-filter: grayscale(1);
  -moz-filter: grayscale(1);
  -o-filter: grayscale(1);
  -ms-filter: grayscale(1);
  filter: grayscale(1);
  margin-left: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  animation: idLoadPulse 1s ease infinite;
}

.idata-load .id-load-content .id-load-icon:nth-child(6) {
  animation-delay: 0.83333s;
}
.idata-load .id-load-content .id-load-icon:nth-child(5) {
  animation-delay: 0.66667s;
}
.idata-load .id-load-content .id-load-icon:nth-child(4) {
  animation-delay: 0.5s;
}
.idata-load .id-load-content .id-load-icon:nth-child(3) {
  animation-delay: 0.33333s;
}
.idata-load .id-load-content .id-load-icon:nth-child(2) {
  animation-delay: 0.16667s;
}
.idata-load .id-load-content .id-load-icon:nth-child(1) {
  margin-left: 0;
  animation-delay: 0s;
}

.idata-load .id-load-content .id-load-icon img {
  width: 60%;
  height: auto;
  filter: brightness(0) invert(1);
}

.idata-load .id-load-content .id-shop {
  background-color: #488fff;
}
.idata-load .id-load-content .id-cart {
  background-color: #aa77dd;
}
.idata-load .id-load-content .id-register {
  background-color: #7775d9;
}
.idata-load .id-load-content .id-report {
  background-color: #17ce7b;
}
.idata-load .id-load-content .id-sale {
  background-color: #feaa55;
}
.idata-load .id-load-content .id-invetory {
  background-color: #0dd5aa;
}

@keyframes idLoadPulse {
  0%,
  50%,
  100% {
    transform: scale(1);
    filter: grayscale(1);
    opacity: 0.7;
  }
  25% {
    transform: scale(1.35);
    filter: grayscale(0);
    opacity: 1;
  }
}

html.dark .idata-load {
  background: #161a1e;
}
html.dark .idata-load .id-load-content {
  border-top: solid 2px #282e38;
}
