/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

.pagy-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

.pagy-nav :where(a, span) {
  display: inline-flex;
  min-width: 2.25rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  color: #334155;
  text-decoration: none;
}

.pagy-nav :where(a, span):first-child {
  border-radius: 0.5rem 0 0 0.5rem;
}

.pagy-nav :where(a, span):last-child {
  border-radius: 0 0.5rem 0.5rem 0;
}

.pagy-nav :where(a, span):not(:first-child):not(:last-child) {
  border-radius: 0;
}

.pagy-nav :where(a, span) + :where(a, span) {
  margin-left: -1px;
}

.pagy-nav a:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
  color: #0f172a;
  position: relative;
  z-index: 1;
}

.pagy-nav .current,
.pagy-nav [aria-current="page"] {
  border-color: #0f172a;
  background: #0f172a;
  color: #ffffff;
  position: relative;
  z-index: 2;
}

.pagy-nav .gap {
  background: #f8fafc;
  color: #94a3b8;
}

.pagy-nav .disabled,
.pagy-nav [aria-disabled="true"] {
  border-color: #e2e8f0;
  background: #f8fafc;
  color: #94a3b8;
  pointer-events: none;
}
