/* Custom styles - Tailwind handles most styling */

/* Global cursor pointer for all clickable elements */
button,
a,
[role="button"],
[type="button"],
[type="submit"],
[type="reset"],
input[type="checkbox"],
input[type="radio"],
input[type="file"],
select,
.cursor-pointer {
  cursor: pointer;
}

/* Native file input: keep the control visible and clickable (avoid Tailwind file: pseudo issues in some browsers) */
.crm-file-input::-webkit-file-upload-button {
  cursor: pointer;
  margin-right: 0.75rem;
  padding: 0.375rem 0.75rem;
  border-radius: 0.5rem;
  border: 0;
  background-color: #fef2f2;
  color: #b83d2a;
  font-size: 0.875rem;
  font-weight: 500;
}
.crm-file-input::file-selector-button {
  cursor: pointer;
  margin-right: 0.75rem;
  padding: 0.375rem 0.75rem;
  border-radius: 0.5rem;
  border: 0;
  background-color: #fef2f2;
  color: #b83d2a;
  font-size: 0.875rem;
  font-weight: 500;
}

/* Ensure disabled elements show not-allowed cursor */
button:disabled,
a.disabled,
[disabled] {
  cursor: not-allowed;
}

/* Pagy nav - reusable */
nav.pagy {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  justify-content: center;
  align-items: center;
}
nav.pagy a,
nav.pagy span {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  margin: 0 0.125rem;
  border-radius: 0.375rem;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #374151;
  text-decoration: none;
  font-size: 0.875rem;
}
nav.pagy a:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
}
nav.pagy span.current {
  background: #4f46e5;
  border-color: #4f46e5;
  color: #fff;
}
nav.pagy span:not([class]) {
  color: #9ca3af;
  cursor: default;
}
