/* The dashboard's short schedule: what is next and what was just played, as a
 * table of one-line rows beside the standings. It replaced three sliders whose
 * cards each ran the clashing-team-colours animation — which is why this
 * stylesheet has no colours of its own at all: a row is text on the page, and
 * the only colour in it is the accent that marks the player's own team (#706). */

/* The columns keep their place from row to row, which is the whole reason this
 * is a table: 26px for the competition badge, as much as the widest state of
 * a game needs in the middle (`_statusWidth`), and the two teams splitting
 * what is left in equal halves. `fixed` is what
 * gives the team cells a width to cut a long club name against — without it
 * the name decides the column and pushes the score off centre. */
.mini-schedule__table {
    table-layout: fixed;
}

/* A row is a line, not a boxed cell: less air than a data table needs, and no
 * line under the label rows. */
.mini-schedule__table td {
    padding: 0.35rem 0.15rem;
}

/* The friendly that is still open: no opponent, no result, nothing to click
 * but the button in the middle — so the row does not pretend to be one. */
.mini-schedule__play {
    padding-top: 0;
    padding-bottom: 0;
    line-height: 1.6;
}

/* Bootstrap paints a cell, not the row, so the hover has to reach the cells —
 * `background` on the `tr` alone stays behind them. The colour is the one
 * every other table hovers in: the grey of the neutral role (#1e2020 on a
 * dark page) stood on the petrol like a hole. */
.mini-schedule__row:hover > td,
.mini-schedule__row:focus-visible > td {
    background: var(--bs-table-hover-bg);
}

/* Was die Liste selbst nicht sagen kann: dass gar nichts ansteht — zwischen
   zwei Saisons, oder wenn der Pokal gelaufen ist. Sie steht dort, wo sonst
   das naechste Spiel stuende, und sieht deshalb aus wie eine Zeile: dieselbe
   Hoehe, derselbe Abstand, dieselbe Linie darunter. */
.mini-schedule__note {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: var(--dashboard-row-height, 2.25rem);
    margin: 0;
    padding: 0.35rem 0.15rem;
    /* Die Linie gehoert nach **oben**: unter dem Satz zieht die kopflose
       Tabelle seit #732 ihre eigene, und beide zusammen waren ein Strich zu
       viel — und einer zu dick (1px auf 2px). Ueber dem Satz stand dafuer
       gar keiner (#738). Dieselbe Staerke wie eine Zeilentrennung, denn der
       Satz steht an der Stelle einer Zeile. */
    border-top: var(--bs-border-width) solid var(--app-table-border);
    font-size: 0.875rem;
    color: var(--bs-secondary-color);
}

/* Auf dem Handy laeuft die Tabelle darunter als `wide-on-mobile` von Rand zu
   Rand (2rem Zug je Seite, table.css) — und ihre Linien mit ihr. Der Satz
   blieb im Innenabstand der Karte, seine Linie unter „Cup" endete 2rem vor
   jeder anderen (#751). Er zieht jetzt genauso weit hinaus und gibt den Zug
   als Innenabstand zurueck, damit der Text dort steht, wo die Zellen stehen. */
@media screen and (max-width: 768px) {
    .mini-schedule__note {
        margin: 0 -2rem;
        padding-left: calc(2rem + 0.15rem);
        padding-right: calc(2rem + 0.15rem);
    }
}

/* Gar keine Spiele, auch keine gespielten: dann steht der Satz allein da und
   braucht keine Linie, unter der nichts kommt. */
.mini-schedule__empty {
    font-size: 0.875rem;
    color: var(--bs-secondary-color);
    text-align: center;
}

/* Der eigene Verein in der Zeile — in der Farbe des Wettbewerbs, die die
   Liste um ihn herum setzt. Ohne eine solche ist es der Akzent, wie ueberall
   sonst im Spiel. */
.mini-schedule__team--mine {
    color: var(--mini-schedule-tone, var(--bs-info));
}

.mini-schedule__team {
    min-width: 0;
    font-size: 0.875rem;
}

.mini-schedule__team--home {
    justify-self: end;
}

.mini-schedule__team--away {
    justify-self: start;
}

.mini-schedule__team a {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    max-width: 100%;
    color: inherit;
    text-decoration: none;
}

/* One line per row is the whole point, so a name that does not fit is cut
 * rather than wrapped — the fixed column width above is what it is cut to. */
.mini-schedule__team-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mini-schedule__status {
    display: inline-flex;
    justify-content: center;
    font-variant-numeric: tabular-nums;
}
