.team-schedule-panel {
    display: none;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    color: var(--text);
    background: rgba(13, 21, 23, 0.94);
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.workbench-view-switch {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.025);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.workbench-view-switch button {
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 7px 8px;
    background: rgba(255, 255, 255, 0.025);
    color: rgba(255, 255, 255, 0.48);
    font: inherit;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.045em;
    text-transform: uppercase;
    cursor: pointer;
}

.workbench-view-switch button.active {
    background: rgba(61, 209, 220, 0.09);
    border-color: rgba(61, 209, 220, 0.30);
    color: rgba(235, 254, 255, 0.94);
}

.workbench-view-switch button:focus-visible {
    outline: 1px solid rgba(61, 209, 220, 0.65);
    outline-offset: 2px;
}

.team-schedule-panel-head {
    padding: 12px;
    background: rgba(255, 255, 255, 0.035);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.team-schedule-panel-label {
    margin-bottom: 7px;
    color: rgba(255, 255, 255, 0.46);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.team-schedule-select {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 9px;
    padding: 8px 9px;
    background: #151c20;
    color: rgba(255, 255, 255, 0.90);
    font: inherit;
    font-size: 12px;
    font-weight: 700;
}

.team-schedule-select:focus-visible {
    outline: 1px solid rgba(61, 209, 220, 0.65);
    outline-offset: 2px;
}

.team-schedule-empty {
    padding: 24px 16px;
    color: rgba(255, 255, 255, 0.42);
    font-size: 11px;
    line-height: 1.45;
    text-align: center;
}

.team-schedule-list {
    position: relative;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;

    scrollbar-width: thin !important;
    scrollbar-color:
        rgba(255, 255, 255, 0.18)
        transparent !important;
}

.team-schedule-list::-webkit-scrollbar {
    display: block !important;
    width: 6px !important;
}

.team-schedule-list::-webkit-scrollbar-track {
    background: transparent !important;
}

.team-schedule-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18) !important;
    border: 1px solid transparent !important;
    background-clip: padding-box !important;
    border-radius: 999px !important;
}

.team-schedule-row {
    border-bottom: 1px solid rgba(255, 255, 255, 0.055);
    background: rgba(7, 16, 18, 0.32);
    font-variant-numeric: tabular-nums;
    overflow: hidden;
}

.team-schedule-row:last-child {
    border-bottom: 0;
}

.team-schedule-stage-card,
.team-schedule-knockout-tie {
    margin: 7px 8px 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.08);
}

.team-schedule-stage-card:last-child,
.team-schedule-knockout-tie:last-child {
    margin-bottom: 7px;
}

.team-schedule-knockout-tie > .team-schedule-row {
    border-bottom: 0;
}

.team-schedule-stage-card > .team-schedule-row:last-child {
    border-bottom: 0;
}

.team-schedule-stage-card-header {
    min-width: 0;
    box-sizing: border-box;
    padding: 6px 9px 5px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 24px 60px 24px minmax(0, 1fr) 20px;
    align-items: center;
    color: rgba(255, 255, 255, 0.58);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.15;
    background: rgba(255, 255, 255, 0.028);
    border-bottom: 1px solid rgba(255, 255, 255, 0.045);
}

.team-schedule-stage-card-header-label {
    grid-column: 1 / 6;
    min-width: 0;
    justify-self: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.team-schedule-knockout-tie-header {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 5px 9px 6px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 24px 60px 24px minmax(0, 1fr) 20px;
    grid-template-rows: auto auto;
    align-items: center;
    row-gap: 3px;
    background: rgba(255, 255, 255, 0.028);
    border-bottom: 1px solid rgba(255, 255, 255, 0.045);
}

.team-schedule-knockout-tie-header-round {
    grid-column: 1 / 6;
    grid-row: 1;
    min-width: 0;
    justify-self: center;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.40);
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    text-overflow: ellipsis;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

.team-schedule-knockout-tie-header-matchup {
    grid-column: 1 / 6;
    grid-row: 2;
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    column-gap: 5px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.15;
}

.team-schedule-knockout-tie-header-side {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.team-schedule-knockout-tie-header-side.is-left {
    grid-column: 1;
    justify-self: end;
    text-align: right;
}

.team-schedule-knockout-tie-header-vs {
    grid-column: 2;
    justify-self: center;
    color: rgba(255, 255, 255, 0.38);
    font-size: 10px;
    font-weight: 700;
    text-align: center;
}

.team-schedule-knockout-tie-header-side.is-right {
    grid-column: 3;
    justify-self: start;
    text-align: left;
}

.team-schedule-tie-aggregate {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    border-top: 1px solid rgba(255, 255, 255, 0.055);
    background: rgba(61, 209, 220, 0.035);
    font-variant-numeric: tabular-nums;
}

.team-schedule-tie-aggregate-card {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 6px 9px 7px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 24px 60px 24px minmax(0, 1fr) 20px;
    align-items: center;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.team-schedule-tie-aggregate-label {
    grid-column: 1 / 3;
    justify-self: end;
    padding-right: 6px;
    color: rgba(255, 255, 255, 0.48);
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    white-space: nowrap;
}

.team-schedule-tie-aggregate-score-group {
    grid-column: 3;
    justify-self: center;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
}

.team-schedule-tie-aggregate-score {
    color: rgba(255, 255, 255, 0.94);
    font-size: 12px;
    font-weight: 900;
    line-height: 1.1;
    white-space: nowrap;
}

.team-schedule-tie-aggregate-method {
    color: rgba(255, 255, 255, 0.52);
    font-size: 8px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.team-schedule-tie-aggregate-details {
    grid-column: 4 / 6;
    justify-self: start;
    min-width: 0;
    max-width: 100%;
    padding-left: 6px;
    display: flex;
    align-items: baseline;
    gap: 3px;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.62);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.1;
    white-space: nowrap;
}

.team-schedule-tie-outcome-team {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.team-schedule-tie-outcome-status {
    flex: 0 0 auto;
    white-space: nowrap;
}

.team-schedule-tie-aggregate.is-pending .team-schedule-tie-aggregate-score {
    color: rgba(255, 255, 255, 0.34);
}

.team-schedule-final-outcome {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 7px 10px 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.055);
    background: rgba(61, 209, 220, 0.035);
    color: rgba(255, 255, 255, 0.62);
    font-size: 10px;
    font-weight: 600;
    line-height: 1.15;
    text-align: center;
}

.team-schedule-final-team {
    color: rgba(255, 255, 255, 0.94);
    font-weight: 800;
}

.team-schedule-final-outcome-text {
    color: rgba(255, 255, 255, 0.62);
}

@media (max-width: 600px) {
    .team-schedule-stage-card,
    .team-schedule-knockout-tie {
        margin-left: 5px;
        margin-right: 5px;
    }

    .team-schedule-tie-aggregate-card {
        padding-left: 7px;
        padding-right: 7px;
    }

    .team-schedule-tie-aggregate-details {
        font-size: 8px;
    }
}

.team-schedule-meta {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 7px 9px 1px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 24px 60px 24px minmax(0, 1fr) 20px;
    align-items: center;
}

.team-schedule-meta-content {
    grid-column: 1 / 6;
    justify-self: center;
    display: flex;
    align-items: center;
    gap: 10px;
}

.team-schedule-matchday,
.team-schedule-date {
    color: rgba(255, 255, 255, 0.43);
    font-size: 9px;
    font-weight: 700;
    white-space: nowrap;
}

.team-schedule-result {
    width: 20px;
    min-width: 20px;
    min-height: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    justify-self: end;
}

.team-schedule-match-row {
    width: 100%;
    box-sizing: border-box;
    min-height: 38px;
    grid-template-columns: minmax(0, 1fr) 24px 60px 24px minmax(0, 1fr) 20px;
    padding: 5px 9px 8px;
    border-bottom: 0;
    background: transparent;
}

.team-schedule-match-row .match-score {
    background: rgba(0, 0, 0, 0.20);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 9px;
    color: #fff;
    font-weight: 900;
}

.team-schedule-match-row .match-score.has-penalties {
    min-height: 29px;
    padding: 2px 0;
    flex-direction: column;
    line-height: 1;
}

.team-schedule-penalties {
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.58);
    font-size: 8px;
    font-weight: 700;
    line-height: 1;
}

.team-schedule-row.is-upcoming .team-schedule-match-row .match-score {
    color: rgba(255, 255, 255, 0.32);
}

.team-schedule-match-row .team-schedule-selected-team {
    color: #fff;
    font-weight: 800;
}

@media (max-width: 600px) {
    .team-schedule-match-row .team-schedule-team-name {
        text-align: center;
        justify-content: center;
    }
}

@media (min-width: 1100px) {
    .team-schedule-row.is-workbench-focus {
        background: rgba(61, 209, 220, 0.075);
        box-shadow: inset 2px 0 0 rgba(61, 209, 220, 0.72);
    }
}

.workbench-team-button {
    appearance: none;
    -webkit-appearance: none;
    display: block;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: inherit;
    text-align: left;
    cursor: pointer;
}

.workbench-team-button:hover {
    color: #fff;
}

.workbench-team-button:focus-visible {
    outline: 1px solid rgba(61, 209, 220, 0.60);
    outline-offset: 2px;
}

.workbench-desktop-view-switch {
    display: none;
}

.workbench-mobile-view-switch {
    display: grid;
}

.single-table-workbench-main.workbench-view-team
.matchday-container {
    display: none;
}

.single-table-workbench-main.workbench-view-team
.team-schedule-panel {
    display: flex;
}

@media (max-width: 1099px) {
    .team-schedule-panel {
        border-top: 1px solid rgba(255, 255, 255, 0.055);
        border-bottom: 1px solid rgba(255, 255, 255, 0.055);
    }

    .team-schedule-panel > .workbench-desktop-view-switch {
        display: none;
    }

    .team-schedule-list {
        max-height: none;
        overflow-y: visible;
        overscroll-behavior: auto;
    }
}

@media (min-width: 1100px) {
    .workbench-mobile-view-switch {
        display: none;
    }

    .workbench-desktop-view-switch {
        display: grid;
    }

    #groupstage.single-table-workbench
    .group.single-table-workbench-main.workbench-view-team
    .workbench-left-matchday,

    #groupstage.single-table-workbench
    .group.single-table-workbench-main.workbench-view-team
    > .single-table-workbench-overview {
        display: none;
    }

    #groupstage.single-table-workbench
    .group.single-table-workbench-main
    .team-schedule-panel {
        grid-column: 1;
        grid-row: 1;
        align-self: start;
        width: 100%;
        min-height: 0;
        max-height: min(720px, 65vh);
        border: 1px solid rgba(255, 255, 255, 0.085);
        border-radius: 22px;
        box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
    }

    #groupstage.single-table-workbench
    .group.single-table-workbench-main.workbench-view-team
    .team-schedule-panel {
        display: flex;
    }

    #groupstage.single-table-workbench
    .group.single-table-workbench-main
    .team-schedule-list {
        flex: 1 1 auto;
        min-height: 0;
        max-height: none;
    }
}

@media (hover: hover) {
    .workbench-view-switch
    button:hover:not(.active) {
        background: rgba(255, 255, 255, 0.055);
        color: rgba(255, 255, 255, 0.76);
    }

    .team-schedule-row:hover {
        background: rgba(255, 255, 255, 0.04);
    }
}

@media (hover: hover) and (min-width: 1100px) {
    .team-schedule-row.is-workbench-focus:hover {
        background: rgba(61, 209, 220, 0.10);
    }
}
