/*
 * 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.
 */

/*
 * Kaminari renders its own markup with semantic class names rather than
 * utility classes, so it is styled here instead of in the templates.
 *
 * Each item is an <a> wrapped in a <span>, except the current page which is a
 * bare <span>. Padding therefore goes on the clickable element, never on the
 * wrapper, or every link ends up double-padded and the row spreads out.
 */
.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
}

.pagination > span {
  display: block;
  padding: 0;
  border: 0;
}

.pagination a,
.pagination .current,
.pagination .gap {
  display: block;
  min-width: 2.25rem;
  padding: 0.375rem 0.625rem;
  border: 1px solid #475569;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  text-align: center;
  text-decoration: none;
  color: #cbd5e1;
}

.pagination a:hover {
  background-color: #475569;
  border-color: #64748b;
  color: #fff;
}

.pagination .current {
  background-color: #2563eb;
  border-color: #60a5fa;
  color: #fff;
  font-weight: 500;
}

.pagination .gap {
  border-color: transparent;
  color: #94a3b8;
}

/*
 * The browser draws its picker icon very faint by default, hence the opacity.
 * The date fields are white with dark text, so the icon is left dark to match.
 * WebKit/Blink only (Chrome, Edge); Firefox draws its own control.
 */
input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 0.85;
  cursor: pointer;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}
