/*
 * Application styles
 * Tailwind CSS is the primary framework – this file extends/overrides where needed.
 */

/* Pagy pagination
 *
 * Pagy renders <nav class="pagy nav">, one element with both classes — so the
 * old ".pagy nav" descendant selector matched nothing and the links sat
 * unstyled in a row at the bottom left. This file is plain Sprockets CSS and
 * is never processed by Tailwind, so @apply is dead here too; these are real
 * declarations on purpose. */
nav.pagy {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin: 1.75rem 0 0.5rem;
}

nav.pagy a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.625rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  background: #fff;
  color: #374151;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  transition: background-color .12s, border-color .12s;
}

nav.pagy a:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}

/* The page you are on. */
nav.pagy a.current,
nav.pagy a[aria-current="page"] {
  background: #f97316;
  border-color: #f97316;
  color: #fff;
  cursor: default;
}

/* Previous and next at the ends of the range, and the ellipsis. */
nav.pagy a[aria-disabled="true"]:not(.current):not([aria-current="page"]) {
  color: #d1d5db;
  background: #fff;
  cursor: not-allowed;
}

nav.pagy a.gap {
  border-color: transparent;
  background: transparent;
  color: #9ca3af;
  min-width: 1.25rem;
  padding: 0 0.25rem;
}

/* Fix number input arrows */
input[type="number"]::-webkit-inner-spin-button {
  opacity: 1;
}
