[x-cloak] {
  display: none !important;
}

html {
  -webkit-tap-highlight-color: transparent;
}

input[type="date"] {
  cursor: pointer;
}

body {
  font-family: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

.htmx-indicator {
  opacity: 0;
  transition: opacity 150ms ease-in-out;
}

.htmx-request .htmx-indicator,
.htmx-request.htmx-indicator {
  opacity: 1;
}

/* Scrollbar tipis untuk sidebar dan tabel matriks */
* {
  scrollbar-width: thin;
  scrollbar-color: #c6cdc7 transparent;
}

*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

*::-webkit-scrollbar-thumb {
  background: #c6cdc7;
  border-radius: 9999px;
}

*::-webkit-scrollbar-thumb:hover {
  background: #aeb7b0;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

/* Mencegah konten melebar di layar kecil */
.min-w-0 {
  min-width: 0;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
