/* Shimmer loading animation for invoice totals */
@keyframes shimmer {
  0% {
    background-position: -800px 0;
  }
  100% {
    background-position: 800px 0;
  }
}

.invoice-total-loading {
  position: relative;
  display: inline-block;
  min-width: 100px;
  height: 1.5em;
  background: linear-gradient(
    90deg,
    #e2e8f0 0%,
    #f1f5f9 20%,
    #e2e8f0 40%,
    #f1f5f9 60%,
    #e2e8f0 80%,
    #f1f5f9 100%
  );
  background-size: 800px 100%;
  animation: shimmer 6.5s ease-in-out infinite;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.invoice-total-loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.6) 50%,
    transparent 100%
  );
  background-size: 300px 100%;
  animation: shimmer 5.5s ease-in-out infinite;
}

.invoice-total-loading span {
  position: relative;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
}

