/* Changelist layout: table + sticky admin-style filters */

.list-layout {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.5rem;
}

.list-layout__main {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
}

.list-filters {
  flex: 0 0 auto;
  width: 100%;
}

.list-filters__title {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #6E567D;
}

.list-filters__clear {
  font-size: 0.75rem;
  color: #6E567D;
  text-decoration: none;
}

.list-filters__clear:hover {
  color: #2A1639;
}

.list-filters__group + .list-filters__group {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #E8E1ED;
}

.list-filters__group-title {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #2A1639;
}

.list-filters__choices {
  list-style: none;
  margin: 0;
  padding: 0;
}

.list-filters__choice {
  display: block;
  padding: 0.25rem 0.5rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  color: #6E567D;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.list-filters__choice:hover {
  background: #F5F2F7;
}

.list-filters__choice.is-selected {
  background: #F0ECF3;
  color: #2A1639;
  font-weight: 500;
}

@media (min-width: 1024px) {
  .list-layout {
    flex-direction: row;
    align-items: flex-start;
  }

  .list-filters {
    width: 14rem;
    position: sticky;
    top: 1.5rem;
    align-self: flex-start;
  }
}
