@media print {
    @page {
        size: A4 landscape;
        margin: 20mm;
        margin-top: 5mm;
        margin-bottom: 20mm;
        @top-center { content: url("saint.png"); }
        @top-center {
            content: "";
            text-align: center;
            font-size: 30px;
            white-space: pre-line;
        }
        @bottom-center {
            content: url("/images/saint/saint_bottom.png");
        }
    }
    .page-break { page-break-before: always; }
    .tournament-page { page-break-after: always; }
//    .games-page { page-break-before: always; }
}

.print-header { text-align: center; margin-bottom: 5px; }
.print-header-main-title { font-size: 20px; font-weight: bold; }
.print-header-secondary-title { font-size: 20px; }
.print-footer { text-align: center; margin-top: 15px; }
.print-footer img { width: 800px; height: auto; }
.print-header-logo { height: 80px; margin-right: 20px; vertical-align: middle; }
.print-header-container { display: flex; flex-direction: row; align-items: center; justify-content: center; }
.print-header-text { display: flex; flex-direction: column; align-items: center; }

.saint-title { text-align: center; font-size: 16px; font-weight: bold; margin: 20px 0; }
.saint-table { width: 90%; max-width: 800px; border-collapse: collapse; margin: 20px auto; text-align: center; font-size: 12px; }
.saint-table th { background: #007bff; color: #fff; padding: 10px; border-bottom: 2px solid #0056b3; font-size: 12px !important;} /* Увеличили шрифт для заголовков */
.saint-table td { padding: 4px; border-bottom: 1px solid #dee2e6; height: 20px; vertical-align: middle; font-size: 14px;}
.saint-table td:nth-child(3) { font-size: 14px !important; } /* Название команды в таблице положения */
.saint-table tr th:first-child { font-size: 12px !important; } /* Заголовок первого столбца шахматки (пустой) */
.saint-table tr td:first-child { font-size: 12px !important; text-align: left; } /* Названия команд в первом столбце шахматки */
.team-logo { width: 25px; height: 25px; display: block; margin: 0 auto; }
.playoff-container { display: flex; justify-content: center; gap: 10px; padding: 10px; flex-wrap: wrap; }
.playoff-column { display: flex; flex-direction: column; align-items: center; min-width: 160px; }
.match-box { width: 200px; padding: 5px; margin: 5px; background: #f8f9fa; border-radius: 8px; text-align: center;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); font-size: 14px; }
.match-title { font-weight: bold; margin-bottom: 5px; }
.match-team { display: flex; align-items: center; justify-content: space-between; padding: 5px 0; font-size: 10px; }
.match-team img { width: 20px; height: 20px; margin-right: 5px; }
.match-score { font-weight: bold; margin-left: auto; font-size: 12px; }

/* Стили для таблицы итоговой классификации */
.saint-final-standings-table { width: 60%; max-width: 600px; border-collapse: collapse; margin: 20px auto; text-align: center; }
.saint-final-standings-table th { background: #007bff; color: #fff; padding: 8px; border-bottom: 2px solid #007bff; font-size: 14px; }
.saint-final-standings-table td { padding: 6px; border-bottom: 1px solid #dee2e6; height: auto; vertical-align: middle; font-size: 12px; }
.saint-final-standings-logo { width: 25px; height: 25px; display: block; margin: 0 auto; }

.page-divider {
    border-bottom: 2px solid #ccc;
    margin: 20px 0;
}