/* /teams: search form and "Create a team" above the table. */
.teams__toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem 2rem;
    margin-bottom: 1.5rem;
}

.team-search {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1 1 18rem;
    max-width: 32rem;
}

.team-search__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.team-search__input {
    flex: 1 1 12rem;
    min-width: 0;
}

.team-search__clear {
    font-size: 0.875rem;
}

.teams__summary {
    margin-bottom: 1rem;
}

/*
 * What the search found sits straight under its box (docs/adr/0121): after the
 * form and the button in the markup, but ordered before the button on phones,
 * where the button drops to its own row.
 */
.team-search {
    order: 1;
}

.teams__create {
    order: 2;
}

.teams__status {
    flex: 0 0 100%;
    order: 3;
    margin: 0;
}

@media (max-width: 47.99rem) {
    .teams__status {
        order: 2;
    }

    .teams__create {
        order: 3;
    }
}
