/* Canonical match administration, detail and team-list presentation. */
.matches-admin-toolbar {
  display: flex;
  align-items: end;
  gap: 12px;
  justify-content: space-between;
  margin: 16px 0 18px;
  flex-wrap: wrap;
}
.matches-admin-toolbar label {
  display: grid;
  gap: 6px;
  width: min(360px, 100%);
  min-width: 0;
  max-width: 100%;
}
.matches-admin-toolbar label > span {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #777;
}
.matches-admin-toolbar select {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 44px;
}
.matches-admin-list {
  display: grid;
  gap: 10px;
}
.match-admin-card {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 14px;
  align-items: center;
  border: 1px solid #e7e7e7;
  border-radius: 16px;
  padding: 14px;
  background: #fff;
}
.match-admin-card.cancelled {
  opacity: 0.62;
}
.match-admin-card.postponed {
  border-style: dashed;
}
.match-admin-date {
  display: grid;
  place-items: center;
  background: #0d0d0d;
  color: #fff;
  border-radius: 12px;
  padding: 8px 4px;
  line-height: 1;
}
.match-admin-date strong {
  font-size: 24px;
}
.match-admin-date span {
  text-transform: uppercase;
  font-size: 10px;
  margin-top: 4px;
}
.match-admin-date small {
  font-size: 9px;
  color: #aaa;
  margin-top: 4px;
}
.match-admin-main h3 {
  margin: 7px 0 4px;
  font-size: 15px;
}
.match-admin-main p {
  margin: 0;
  color: #777;
  font-size: 12px;
}
.match-admin-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.estel-match-event {
  border: 0;
  cursor: pointer;
  text-align: left;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  gap: 1px;
}
.estel-match-event > strong,
.estel-match-event > span { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.estel-match-event > span { font-size: 9px; }
.estel-match-event.type-preseason {
  box-shadow: inset 3px 0 #111;
}
.estel-match-event.type-friendly {
  box-shadow: inset 3px 0 #777;
}
.estel-match-event.type-tournament {
  box-shadow: inset 3px 0 #555;
}
.estel-match-event.cancelled,
.estel-match-agenda.cancelled {
  text-decoration: line-through;
  opacity: 0.58;
}
.estel-match-event.postponed,
.estel-match-agenda.postponed {
  opacity: 0.7;
}
.estel-preseason-legend {
  font-size: 10px;
  color: #777;
  margin-left: auto;
}
.agenda-type.match {
  border: 0;
  cursor: pointer;
}
.match-detail-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.match-detail-head h3 {
  font-size: 22px;
  margin: 6px 0;
}
.match-detail-score {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.04em;
}
.match-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}
.match-detail-grid > div,
.match-detail-note {
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 12px;
}
.match-detail-grid small,
.match-detail-note small {
  display: block;
  text-transform: uppercase;
  font-size: 9px;
  letter-spacing: 0.08em;
  color: #888;
  margin-bottom: 4px;
}
.match-detail-grid strong {
  font-size: 13px;
}
.match-detail-note p {
  margin: 0;
  white-space: pre-wrap;
}
.team-match-list {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}
.team-match-row {
  width: 100%;
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  align-items: center;
  text-align: left;
  border: 1px solid #e8e8e8;
  background: #fff;
  border-radius: 13px;
  padding: 11px;
  cursor: pointer;
}
.team-match-row:hover {
  border-color: #bbb;
}
.team-match-row.cancelled {
  opacity: 0.55;
}
.team-match-date {
  font-weight: 900;
  text-transform: uppercase;
  font-size: 12px;
}
.team-match-row > span:nth-child(2) {
  display: grid;
  gap: 3px;
}
.team-match-row small {
  color: #777;
}
.match-team-section + .match-team-section {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #eee;
}
@media (max-width: 760px) {
  .match-admin-card {
    grid-template-columns: 52px 1fr;
  }
  .match-admin-actions {
    grid-column: 1/-1;
    justify-content: stretch;
  }
  .match-admin-actions .btn {
    flex: 1;
  }
  .match-admin-date strong {
    font-size: 20px;
  }
  .matches-admin-toolbar {
    align-items: stretch;
  }
  .matches-admin-toolbar label {
    width: 100%;
  }
  .matches-admin-toolbar > div {
    flex: 1;
  }
  .matches-admin-toolbar > .btn {
    flex: 1;
  }
  .match-detail-grid {
    grid-template-columns: 1fr;
  }
  .team-match-row {
    grid-template-columns: 54px 1fr;
  }
  .team-match-row > .pill {
    grid-column: 2;
    justify-self: start;
  }
  .estel-preseason-legend {
    width: 100%;
    margin-left: 0;
  }
  .cal-event.estel-match-event {
    font-size: 8px;
    line-height: 1.2;
  }
}
