/* ==========================================================================
   Transfers
   ========================================================================== */

/* The shortlist above the market (#580): balance, marked players, and what is
   left over once they are all bought. */
.watchlist__header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.watchlist__list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.watchlist__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

/* The price is pushed to the far right so the column of deductions lines up
   under one another and above the summary. */
.watchlist__price {
    margin-left: auto;
    font-variant-numeric: tabular-nums;
}

.watchlist__team {
    font-size: 0.85rem;
}

.watchlist__remove {
    padding: 0;
    line-height: 1;
}

.watchlist__summary {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--bs-border-color);
    font-variant-numeric: tabular-nums;
}

/* Buy and star sit side by side in the market's action column. */
.market-actions {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    justify-content: flex-end;
}

.market-watch-btn {
    padding: 0.25rem 0.4rem;
    line-height: 1;
    /* An unmarked star is an outline in the body colour, not a link blue. */
    color: var(--bs-body-color);
    text-decoration: none;
}

.market-watch-btn:hover {
    color: var(--bs-warning);
}

/* The clear button sits at the far end of the shortlist header. */
.watchlist__clear {
    margin-left: auto;
}

/* The returned scout's shortlist shows each candidate as a portrait above his
   name (#466). The portrait is filled in async, so the box keeps its height
   from the start and the cards do not jump once the SVGs arrive. */
.scout-candidate__portrait {
    display: flex;
    justify-content: center;
    min-height: 117px;
    margin-bottom: 0.5rem;
}

/* A market value the transfers barely back is mostly the curve, not an
   observation — greyed out so the table says which numbers rest on something
   real (#706, refined in #272).

   Scoped to the table on purpose: Bootstrap paints every cell through
   `.table > :not(caption) > * > *`, which outranks a bare class, so the rule
   had no effect at all and every number came out in the same ink. */
.app-table td.market-values-estimate {
    color: var(--bs-secondary);
}

/* The level ceiling under the age fields appears and disappears as the manager
   types (#720). Its sentence is the longest line in the brief, so on a desktop
   overlay — which is sized by its content — it pulled the whole dialog 70px
   wider the moment it showed, and let it snap back on the next keystroke.
   Zero intrinsic width with a full-width fallback keeps it out of that
   calculation: it fills the brief, it never defines it. */
.scout-brief-overlay__level-ceiling {
    width: 0;
    min-width: 100%;
}
