.w-fit {
  width: fit-content;
}

.max-w-48 {
  max-width: 12rem; /* 192px */
}

.max-w-fit {
  max-width: fit-content;
}

.min-w-40 {
  min-width: 10rem; /* 160px */
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.whitespace-nowrap {
  white-space: nowrap;
}
.whitespace-pre-wrap {
  white-space: pre-wrap;
}

.overflow-x-scroll {
  overflow-x: scroll;
}

.leading-relaxed {
  line-height: 1.625;
}

.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

@media(min-width: 768px) {
  .md\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.loading-overlay.is-active {
  opacity: 1;
  pointer-events: all;
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--pico-form-element-border-color, #d1d5db);
  border-top-color: var(--pico-primary, #3b82f6);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.loading-text {
  margin-top: 1rem;
  color: var(--pico-muted-color, #6b7280);
  font-size: 0.95rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}