/* Weekly schedule of all trainings on the website: [fortissimo_trainingstijden] */

.fb-tt {
    margin: 0 0 1.5em;
}

/* Title on the left, "We trainen nu in de zaal." on the right of the same line (below it when there is no room) */
.fb-tt__kop {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0 16px;
    margin: 0 0 0.6em;
}

/* Font, size and colour of the heading: the site's (Elementor Site Settings) */
.fb-tt .fb-tt__titel {
    margin: 0;
}

.fb-tt p.fb-tt__nu {
    margin: 0;
    text-align: right;
}

.fb-tt__rooster {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 0.92em;
}

.fb-tt__rooster th,
.fb-tt__rooster td {
    border: 1px solid #e2e2e2;
    padding: 6px 8px;
    vertical-align: top;
    text-align: left;
}

.fb-tt__rooster thead th {
    background: #f0f0f0;
    border-bottom: 2px solid #ccc;
    font-weight: 700;
}

.fb-tt__rooster .fb-tt__team-kop,
.fb-tt__rooster .fb-tt__team {
    width: 17%;
}

/* Team name with a dot in the team colour */
.fb-tt__rooster .fb-tt__team {
    background: #fafafa;
    font-weight: 700;
}

.fb-tt__team::before {
    content: "";
    display: inline-block;
    width: 0.65em;
    height: 0.65em;
    margin-right: 0.4em;
    border-radius: 50%;
    background: var(--fb-kleur, #888);
    vertical-align: 0.05em;
}

.fb-tt__rooster tbody tr:nth-child(even) td {
    background: #fcfcfc;
}

/* One training: the time on top, the location below it */
.fb-tt__slot {
    border-left: 3px solid var(--e-global-color-accent, #e30613);
    background: #fff5f5;
    border-radius: 3px;
    padding: 3px 6px;
    line-height: 1.35;
}

.fb-tt__rooster tbody tr:nth-child(even) td .fb-tt__slot {
    background: #fff5f5;
}

.fb-tt__slot + .fb-tt__slot {
    margin-top: 5px;
}

.fb-tt__tijd {
    display: block;
    font-weight: 700;
    white-space: nowrap;
}

.fb-tt__locatie {
    display: block;
}

/* Joint training: label in the colour of those teams */
.fb-tt__gezamenlijk {
    display: block;
    font-size: 0.85em;
    font-style: italic;
}

.fb-tt__gezamenlijk::before {
    content: "";
    display: inline-block;
    width: 0.6em;
    height: 0.6em;
    margin-right: 0.3em;
    border-radius: 50%;
    background: var(--fb-kleur, #888);
}

.fb-tt__leeg {
    color: #777;
}

/* Phone and small tablet: one block per team, the days below each other, empty days hidden */
@media (max-width: 767px) {
    .fb-tt__rooster,
    .fb-tt__rooster tbody,
    .fb-tt__rooster tr,
    .fb-tt__rooster th,
    .fb-tt__rooster td {
        display: block;
        width: auto;
    }

    .fb-tt__rooster thead {
        display: none;
    }

    .fb-tt__rooster tr {
        margin-bottom: 12px;
        border: 1px solid #e2e2e2;
        border-radius: 4px;
        overflow: hidden;
    }

    .fb-tt__rooster th,
    .fb-tt__rooster td {
        border: 0;
        border-bottom: 1px solid #eee;
    }

    .fb-tt__rooster .fb-tt__team {
        width: auto;
        background: #f0f0f0;
    }

    .fb-tt__rooster .fb-tt__vrij {
        display: none;
    }

    /* Day on the left, the trainings of that day on the right */
    .fb-tt__rooster td {
        display: grid;
        grid-template-columns: 6.5em 1fr;
        gap: 0 8px; /* no row gap: the day label spans empty implicit rows */
    }

    .fb-tt__rooster td::before {
        content: attr(data-dag);
        grid-row: 1 / span 9;
        font-weight: 700;
    }

}
