/* TFP PATCH — pełne nazwiska w harmonogramie + eksport PDF */
body[data-page="tournament-view"] .league-section-head--schedule-export {
  align-items: center !important;
  gap: 14px !important;
}

body[data-page="tournament-view"] .tfp-schedule-export-btn {
  border: 0 !important;
  border-radius: 999px !important;
  padding: 11px 16px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  text-decoration: none !important;
  color: #ffffff !important;
  background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 58%, #22c55e 100%) !important;
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.2) !important;
  font-size: 12px !important;
  font-weight: 1000 !important;
  letter-spacing: -0.01em !important;
  white-space: nowrap !important;
}

body[data-page="tournament-view"] .tfp-schedule-export-btn::before {
  content: "📄";
  font-size: 14px;
  line-height: 1;
}

body[data-page="tournament-view"] .tfp-schedule-export-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

/* Harmonogram publiczny: pełne imię i nazwisko, bez ucinania do inicjałów. */
body[data-page="tournament-view"] .tfp-schedule-row {
  min-height: 54px !important;
  grid-template-columns: 50px 78px minmax(0, 1fr) 72px !important;
}

body[data-page="tournament-view"] .tfp-schedule-row__players {
  align-items: center !important;
  grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1fr) !important;
  gap: 6px !important;
  font-size: 10px !important;
  line-height: 1.15 !important;
}

body[data-page="tournament-view"] .tfp-schedule-row__players strong {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  word-break: normal !important;
  overflow-wrap: anywhere !important;
  display: block !important;
}

/* Karty w ukrytym panelu właściciela też pokazują pełne nazwiska. */
body[data-page="tournament-view"] .tfp-schedule-card strong {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  line-height: 1.18 !important;
}

@media (max-width: 768px) {
  body[data-page="tournament-view"] .league-section-head--schedule-export {
    align-items: flex-start !important;
    flex-direction: column !important;
  }

  body[data-page="tournament-view"] .tfp-schedule-export-btn {
    width: 100% !important;
    min-height: 44px !important;
  }

  body[data-page="tournament-view"] .tfp-schedule-row {
    min-height: 66px !important;
  }

  body[data-page="tournament-view"] .tfp-schedule-row__players {
    font-size: 9.4px !important;
  }
}
