/* Anteprima: intestazione Partite + filtri rosa storica. Non modifica app.css. */

.team-partite-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.team-partite-heading > .camp-section-heading {
  font-size: var(--fs-24, 1.5rem);
  font-weight: 700;
  line-height: 1.25;
  margin-top: 0;
  margin-bottom: 0;
  padding: 0;
  border-bottom: none;
}

@media (max-width: 639px) {
  .team-partite-heading > .camp-section-heading {
    font-size: var(--fs-20, 1.25rem) !important;
  }
}

.team-partite-heading .team-matches-show-all {
  margin-top: 0;
  flex-shrink: 0;
}

.alltime-roster-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 16px;
}

.alltime-filter {
  position: relative;
  min-width: 0;
  flex: 1 1 160px;
}

.alltime-filter--search {
  flex: 2 1 220px;
}

.alltime-filter-icon {
  position: absolute;
  top: 50%;
  left: 12px;
  width: 16px;
  height: 16px;
  color: #64748b;
  transform: translateY(-50%);
  pointer-events: none;
}

.alltime-filter input[type="search"],
.alltime-filter select {
  width: 100%;
  height: 40px;
  box-sizing: border-box;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  color: #0f172a;
  font-size: 14px;
  line-height: 1.25;
}

.alltime-filter input[type="search"] {
  padding: 0 12px 0 36px;
}

.alltime-filter select {
  padding: 0 32px 0 12px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 9l4-4 4 4'/%3E%3Cpath d='M16 15l-4 4-4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 16px;
}

.alltime-filter input[type="search"]:focus,
.alltime-filter select:focus {
  outline: 2px solid #0046ad;
  outline-offset: 1px;
  border-color: #0046ad;
}

.alltime-roster-empty {
  margin: 0 0 12px;
  font-size: 14px;
  color: #64748b;
}

.team-roster-head[data-alltime-head] {
  display: grid;
}

.team-roster-head[data-alltime-head] > button {
  appearance: none;
  margin: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
}

.team-roster-head[data-alltime-head] > button:focus-visible {
  outline: 2px solid #0046ad;
  outline-offset: 2px;
}

.alltime-sort-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0.45;
}

.team-roster-head[data-alltime-head] > button.is-sorted .alltime-sort-icon {
  opacity: 1;
  color: #0046ad;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 639px) {
  .alltime-filter,
  .alltime-filter--search {
    flex: 1 1 100%;
  }
}
