/* ###################################################################
// Old viewer retained if we ever want to build a user facing switch. this viewer shows legs chronologically, all leg 1s, then all leg 2s.
// The newer one shows leg 1+2 for each matchup.
// ################################################################### */

/*
.workbench-knockout-leg-label {
  padding: 7px 12px 5px;
  color: rgba(255,255,255,0.46);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(255,255,255,0.025);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.workbench-knockout-empty {
  padding: 12px;
  color: rgba(255,255,255,0.45);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.workbench-knockout-score.has-penalties {
  min-height: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
}

.workbench-knockout-penalties {
  display: block;
  color: rgba(255,255,255,0.55);
  font-size: 8px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

*/

.workbench-knockout-matchup {
  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);
}

.workbench-knockout-matchup:last-child {
  margin-bottom: 7px;
}

.workbench-knockout-matchup + .workbench-knockout-matchup {
  margin-top: 8px;
}

#groupstage.single-table-workbench .group.single-table-workbench-main .workbench-side-matchday .workbench-knockout-matchup.is-two-legged > .workbench-knockout-match-row {
  border-bottom: 0;
}

.workbench-knockout-empty {
  padding: 12px;
  color: rgba(255,255,255,0.45);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.workbench-knockout-score.has-penalties {
  min-height: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
}

.workbench-knockout-penalties {
  display: block;
  color: rgba(255,255,255,0.55);
  font-size: 8px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.workbench-knockout-matchup-header {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 6px 12px 5px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  column-gap: 5px;
  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);
}

.workbench-knockout-matchup-header-side {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

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

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

.workbench-knockout-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;
}

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

.workbench-knockout-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;
}

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

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

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

.workbench-knockout-aggregate-details {
  grid-column: 4 / 6;
  justify-self: start;
  min-width: 0;
  max-width: 100%;
  padding-left: 6px;
  overflow: hidden;
  color: rgba(255,255,255,0.62);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workbench-knockout-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;
}

.workbench-knockout-final-winner {
  color: rgba(255,255,255,0.94);
  font-weight: 800;
}

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

@media (max-width: 600px) {
  .workbench-knockout-matchup {
    margin-left: 5px;
    margin-right: 5px;
  }

  .workbench-knockout-aggregate-card {
    padding-left: 7px;
    padding-right: 7px;
  }

.workbench-knockout-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: 12px;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
}

.workbench-knockout-aggregate-team {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workbench-knockout-aggregate-status {
  flex: 0 0 auto;
  white-space: nowrap;
}

  .workbench-knockout-matchup-header.has-unresolved-participant {
    column-gap: 3px;
  }

  .workbench-knockout-matchup-header.has-unresolved-participant .workbench-knockout-matchup-header-side {
    font-size: clamp(9px, 2.8vw, 11px);
  }

}
