﻿@keyframes spinner{from{transform: rotate(0)}to{transform:rotate(360deg)}}

.listbuilder-loading,
.loading {
  position: relative;
  overflow: hidden !important;
  border: 1px solid var(--border-color-loader);
}

.listbuilder-loading:before,
.loading:before {
  content: "";
  display: block;
  border: .5cqw solid var(--orange-2);
  border-top-color: var(--orange-8);
  border-radius: 50%;
  animation: spinner 1s infinite cubic-bezier(0.5, 0.25, 0.5, 0.75);
  height: 10vw;
  max-height: 60%;
  aspect-ratio: 1 / 1;
  z-index: 1059;
  position: sticky;
  top: 20%;
  margin: auto;
  filter: grayscale(1.0);
}

body.loading,
main.loading,
section.loading {
  border-color: transparent;
}

section.loading,
.tab-content,
.dashboard-widget.loading {
  min-height: 15vw;
}

.loading * {
  visibility: hidden;
}

.listbuilder-loading:after,
.loading:after {
  content: "";
  display: block;
  background-color: var(--bg-color-body);
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1058;
}

main.listbuilder-loading:after,
main.loading:after {
  width: 102%;
  left: -1%;
}

main.listbuilder-loading > h1:first-child,
main.loading > h1:first-child {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 5000;
}

main.listbuilder-loading * * * h1,
main.loading * * * h1 {
  position: static;
  opacity: inherit;
}

.tab-content:after {
  content: '';
  display: block;
  clear: both;
}

.modal-content .listbuilder-loading:after,
.swal2-container .listbuilder-loading:after,
#listbuilder_selectiondiv .listbuilder-loading:after,
.tab-content .listbuilder-loading:after,
.modal-content .loading:after,
.swal2-container .loading:after,
#listbuilder_selectiondiv .loading:after,
.tab-content .loading:after {
  background-color: var(--bg-color-content);
  opacity: 90%;
  width: 100%;
  left: 0;
}
