.make-ag-grid-header-sticky .ag-header {
    position: sticky;
    top: 0px;
    z-index: 5;
}

.btnMain2 {
    background: transparent;
    color: #fafafa;
    border: 2px solid var(--main);
    padding: 16px 25px;
    font-size: 14px;
    text-decoration: none;
    transition: all ease 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    border-radius: .375rem;
    transform: skewX(-15deg);
    font-weight: bold;
}
.btnMain2Sm{
    padding: 9px 25px;
}
.btnMain2.dark{
    color: var(--main);
}
.btnMain2 span{
    transform: skewX(+15deg);
}
.btnMain2:hover, .btnMain2.active{
    color: #fafafa !important;
    background: var(--main);;
}
.filterGridsBlock{
    margin-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}
.filterGrids{
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 40px;
}
.filterGrids label{
    margin-bottom: 0;
}
.partitionItems{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
}
.partitionValues{
    display: flex;
    align-items: center;
    gap: 20px;
}
/*.partitionItems label{
    font-size: 14px;
    font-weight: bold;
}
.razdelItems .radioBlock{
    padding-left: 35px;
}
.razdelItems .radioBlock label:after{
    left: 1px;
    top: 0;
    width: 25px;
    height: 25px;
}*/
.genderItems{
    display: flex;
    align-items: center;
    gap: 10px;
}
.genderValues{
    display: flex;
    align-items: center;
    gap: 10px;
}

.stagesGrid{
    display: flex;
    gap: 4px;

}
.stagesGridMain{
    min-height: 110px;
}
.stageItem {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}
.pairItem{
    display: flex;
    flex-direction: column;
    gap: 5px;
    position: relative;
    margin-bottom: 20px;
}
.pairItem:after{
    position: absolute;
    content: "";
    left: 100%;
    top: 23px;
    border: 1px solid #1A1A1A;
    border-left: 0;
    width: 4px;
    height: 60px;
}
.stage999 .pairItem:after{
    display: none;
}
.stage999 .pairItem{
    margin-left: -4px;
}
.pairStageTitle{
    position: absolute;
    top: -25px;
    font-weight: 500;
    width: 100%;
    text-align: center;
}
.pairItem .leftLines{
    position: absolute;
    content: "";
    right: 100%;
    top: 23px;
    border: 1px solid #1A1A1A;
    border-right: 0;
    width: 4px;
    height: 60px;
}
.strLinesBlock{
    display: flex;
    flex-direction: column;
    justify-content: space-around;

}
.strLinesBlock .strLine{
    /*//position: absolute;*/
    content: "";
    /* right: calc(100% + 9px);*/
    /*top: -10px;*/
    border: 1px solid #1A1A1A;
    border-left: 0;
    width: 5px;
    margin-right: 5px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}
.strLinesBlock .strLine:last-child{
    margin-bottom: 0;
}
.strLinesBlock .strLine .strTriangle{

    position: relative;
}
.strLinesBlock .strLine .strTriangle::after {
    content: '';
    position: absolute;
    left: 5px;
    bottom: -5px;
    border: 5px solid transparent;
    border-left: 5px solid #989898;
}
.pairItem .fio{
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
}
.minmalBlocks .pairItem .fio{
    font-size: 13px;
}
.pairItem .clubCity{
    font-size: 12px;
    color: #1A1A1A;
}
.pairItem .clubCity b{
    font-weight: 400;
}
.pairParticipant{
    display: flex;
    gap: 8px;
    border: 1px solid #1A1A1A;
    font-size: 13px;
    padding: 4px;
    position: relative;
    align-items: center;
    justify-content: space-between;
    border-radius: 4px;
    height: 51px;
    background: #fff;
    width: 248px;
    min-width: 248px;
}
.pairParticipant.winner{
    background: #F1F1F1;
}
.pairParticipant.draggable-mirror{
    width: 290px;
    min-width: 290px;
    background: rgba(255, 0, 0, 0.32);
    z-index: 44;
}

.stageItem .pairItem:last-child{
    margin-bottom: 0;
}
.weightCategories{
    margin-bottom: 10px;
}
.weightCategory{
    border: 1px solid #1A1A1A;
    color: #1A1A1A;
    font-size: 13px;
    text-decoration: none;
    padding: 7px 13px;
    border-radius: 0.375rem;
    display: inline-block;
    cursor: pointer;
}
.weightCategory:hover{
    background: #f1f1f1;
}
.weightCategory.active{
    background: #000;
    color: #fff;
}
.weightCategoryContent{
    max-width: 1360px;
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-size: 16px;
}
.pairEdit .btnMain2{
    padding: 5px;
    transform: none;
    border-radius: 20px;
    color: #000;
    background: #fff;
    width: 22px;
    height: 22px;
    border: 1px solid #1A1A1A;
}
.pairEdit .btnMain2:hover{
    background: var(--main);
    border-color: var(--main);
    color: #fff;
}
span.pairEdit {
    position: absolute;
    z-index: 2;
    right: 10px;
    top: 39px;
}
.pairParticipantWinnerCol{
    padding-right: 8px;
}
.mainPrintZg{
    font-size: 30px;
    font-weight: 700;
    display: flex;
    margin-bottom: 10px;
}
.mainPrintZg span{

    display: block;
}
.zgGrid{
    font-size: 18px;
    font-weight: 500;
}
.infoGridBlock{
    position: absolute;
    right: 0;
    top: 0;
    z-index: 4;
    text-align: center;
    font-size: 16px;
    min-width: 250px;
}
.infoGridBlock ul{
    border: 1px solid #1A1A1A;
    border-radius: 6px;

}
.infoGridBlock li{
    list-style: none;
    border-bottom: 1px solid #1A1A1A;
    padding: 7px 5px;
}
.infoGridBlockZG{
    font-size: 16px;
    font-weight: 500;
    margin-top: 20px;
}
.infoGridBlock li:last-child{
    border-bottom: 0;
}
.infoGridBlock .bb{
    font-weight: 600;
    font-size: 16px;
}
.subZgPrint{
    font-size: 20px;
    font-weight: 500;
}
.gridWinners{
    /*margin-top: 16px;*/
}
.gridWinnerItem{
    font-weight: 600;
    margin-bottom: 7px;
}
.gridWinnerItem small{
    font-weight: normal;
    font-size: 11px;
}

.gridResultBlock h5{
    font-size: 24px;
    font-weight: 700;
    text-align: center;
}
.bigRadioLabel label{
    font-size: 16px;
    margin-bottom: 10px;
    display: inline-block;
}
.bigRadioLabel .radioBlock{
    padding-left: 35px;
}
.bigRadioLabel .radioBlock label:after{
    left: 1px;
    top: 0;
    width: 20px;
    height: 20px;
}
.referisBlock{
    margin-top: 35px;
    font-weight: 600;
    font-size: 16px;
    display: flex;
    gap: 320px;
    align-items: center;
}
.vesCategoryContent {
    max-width: 1360px;
}
.OlympicStages .strLinesBlock .strLine{
    height: 1px !important;
}
.OlympicStages .pairStageTitle{
    font-size: 13px;
}
.tableResultWinners{
    border-collapse: collapse;

    width: 100%;
}
.tableResultWinners th{
    font-weight: 500;
    border: 1px solid #1A1A1A;
    text-transform: none;
}
.tableResultWinners td{
    font-weight: 600;
    border: 1px solid #1A1A1A;
    padding: 16px 20px;
    line-height: 1;
    background: #fff;
}
.tableResultWinners tbody tr:nth-child(odd) td{
    background: #f4f4f4;
}
.tableCircle th {
    font-size: 11px;
    border: 1px solid #ccc;
    font-weight: normal;
}
.tableCircle{
    border-collapse: collapse;
    font-size: 13px;
}
.tableCircle td{
    border: 1px solid #ccc;
    padding: 10px;
}
.ballsInput{
    text-align: center;
    font-weight: 800;
    font-size: 16px;
}
.fw-600{
    font-weight: 600;
}
.tableCircle .winner{
    background: #e7fff0;
}
.tableCircle .gray{
    background: #d7d7d7;
    padding-right: 20px;
}
.ballsTd{
    width: 50px;
    font-weight: 600;
}

.minmalBlocks .clubCity{
    display: none;
}
.minmalBlocks .pairParticipant{
    height: 27px;
    width: 201px;
    min-width: 201px;
}
.minmalBlocks .pairItem {
    gap: 2px;
    margin-bottom: 5px;
}
.minmalBlocks .strLinesBlock .strLine{
    margin-bottom: 5px;
}
.minmalBlocks span.pairEdit {
    top: 16px;
}
.minmalBlocks .pairItem .leftLines {
    top: 5px;
    height: 45px;
}
.minmalBlocks .pairItem:after{
    top: 5px;
    height: 45px;
}
.razdelItemsSub{
    display: flex;
    align-items: center;
    gap: 20px;
}
thead th {
    padding: 10px;
    text-transform: uppercase;
    text-align: center;
    font-weight: bold;
}
.containerTabsWeightCategory .navTabs{
    margin-bottom: 7px;
    gap: 10px;
}
.containerTabsWeightCategory .navTabs li > a{
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: bold;
    background: #f3f3f3;
}
.containerTabsWeightCategory .navTabs li > a:hover{
    color: var(--danger-active);
    background: var(--danger-light);
}
.containerTabsWeightCategory .navTabs > li.active > a, .containerTabsWeightCategory .navTabs > li.active > a:hover, .containerTabsWeightCategory .navTabs > li.active > a:focus{
    color: #fff;
    background: var(--main);
}
.containerTabsWeightCategory .tabPane{
    padding-top: 4px;
}
.containerTabsWeightCategory h2{
    margin-bottom: 5px;
}
.printHeaderRow{
    display: flex; justify-content: space-between; gap: 40px
}
.printHeaderRow .col1{
    flex-grow: 1;
}
.containerTabsWeightCategory h2 {
    margin-bottom: 5px;
}
.editFightBtnColumn{
    padding: 5px !important;
    vertical-align: middle;
    width: 50px;
    text-align: center;
}
/* без position: relative — в таблице с border-collapse Chrome рисует такие ячейки
   отдельным слоем, и в окне печати у них пропадают рамки и фон */
.resultCell{
    white-space: nowrap;
}
.resultCell .resultScore{
    display: inline-block;
    min-width: 44px;
    text-align: center;
}
.tableResultWinners tbody tr td.winner{
    background: #eef8f0;
}
/* галочка победителя в «Встречах» круговой/«Норда» — как в bracket */
.winMark{
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-left: 5px;
    vertical-align: -2px;
    color: #1b5e20;
    flex: none;
}
.winMark path{ fill: currentColor; }
.circleFightBtn{
    padding: 6px 14px;
    margin-left: 8px;
    font-size: 13px;
    color: var(--main);
    background: #fff;
    vertical-align: middle;
}
.circleFightBtn.done{
    color: #6b6b6b;
    border-color: #c4c4c4;
}
.circleFightBtn.done:hover{
    border-color: var(--main);
}
.editFightBtn{
    background: #e6e6e6;
    padding: 10px;
    border-radius: 50px;
    border: 0;

}
.editFightBtn:hover{
    background: var(--secondary-active);
}
@media not print {
    @media (max-width: 1279px) {
        .logoEvent {
            max-width: 330px;
        }

        .vesCategoryContent {
            overflow: auto;
        }
    }
    @media (max-width: 767px) {
        .adminPageBlockContent > .containerTabs > .tabContent {

        }

        .card {
            padding: 15px;
        }

        .tableResultWinners {
            font-size: 10px;
        }

        thead th {
            padding: 3px;
        }

        .tableResultWinners td {
            padding: 5px;
        }

        .gridResultBlock h5 {
            font-size: 18px;
        }

        .containerTabs .nav-tabs {
            gap: 10px;
        }

        .containerTabs .nav-tabs > li > a {
            padding: 5px 10px;
            font-size: 13px;
        }

        .referisBlock {
            gap: 30px;
            flex-wrap: wrap;
        }
    }
}
@media  print {
    /* иначе браузер не печатает фоны: пропадают серые клетки «сам с собой» и полосы строк */
    * {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    .tableResultWinners {
        font-size: 17px;
    }
    .gridWinners td:first-child{
        white-space: nowrap;
    }
    .referisBlock {
        font-size: 20px;
    }
    .tableResultWinners td {
        padding: 11px 13px;
    }
    .tableResultWinners th {
        padding: 5px;
    }

    h2{
        margin-bottom: 5px;
    }
    .pairItem .fio{
        font-size: 16px;
    }
    .minmalBlocks .pairItem .fio{
        font-size: 13px;
    }
    .infoGridBlock{
        font-size: 18px;
    }
    .infoGridBlock .bb{
        font-size: 18px;
    }
}

/* ===== Сетка: длинные имена не вылезают из ячейки ===== */
.pairParticipant .info { flex: 1; min-width: 0; }
.pairItem .fio { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: break-word; }
.pairItem .clubCity { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; margin-top: 2px; }
.minmalBlocks .pairItem .fio { display: block; white-space: nowrap; text-overflow: ellipsis; }
/* карандаш «бой» стоит у правого края пары — имя под ним не заходит */
.pairItem:has(.pairEdit) .pairParticipant .info { padding-right: 20px; }
/* отступы между частями сетки (раньше <br>): на печати меньше, чтобы сетка на 32 с утешительными влезала в А4 */
.gridGap { height: 16px; }
.gridGapLg { height: 32px; }
.printHeaderGap { height: 36px; }
@media screen {
    /* подписи кругов (1/2, Финал) висят над колонками — заголовок утешительных не должен на них наезжать */
    .containerTabsWeightCategory h2.zgGridS, h2.zgGridS { margin-bottom: 30px; }
    /* широкая сетка (32 участника) прокручивается внутри карточки, а не обрезается справа */
    .weightCategoryContent { max-width: 100%; overflow-x: auto; padding-right: 8px; }
}
@media print {
    .gridGap { height: 6px; }
    .gridGapLg { height: 14px; }
    .printHeaderGap { height: 12px; }
    .referisBlock { margin-top: 14px; }
    .pairItem:has(.pairEdit) .pairParticipant .info { padding-right: 0; }
    /* галочка победителя печатается чёрной, фон может не печататься */
    .winMark { color: #000; }
}
/* Кнопки весов: число участников и весовые без сетки (пунктир) */
.weightCategory small { margin-left: 4px; opacity: .6; font-size: .85em; }
.weightCategory.noGrid { border-style: dashed; color: #8a8fa0; }
.weightCategory.noGrid.active { color: #fff; }
/* круговые таблицы: одинаковые колонки во всех группах, «Красный» и «Синий» поровну */
.tableCircleFixed { table-layout: fixed; width: 100%; }
.tableCircleFixed .colNum { width: 50px; }
.tableCircleFixed .colClub { width: 245px; }
.tableCircleFixed .colScore { width: 52px; }
.tableCircleFixed .colWins { width: 90px; }
.tableCircleFixed .colBalls { width: 120px; }
.tableCircleFixed .colResult { width: 240px; }
.tableCircleFixed .colTour { width: 56px; }
.tableCircleFixed .colTourCell { color: #8a8fa0; }
.tableCircleFixed tr.tourStart td { border-top: 2px solid #b5bac8; }   /* «Встречи»: начало следующего круга */
.tableCircleFixed td { overflow-wrap: break-word; }
/* телефон: колонки уже, а таблица не сжимается меньше 540px (прокрутка вбок, как у сетки) — иначе ФИО шло по букве в строку */
@media screen and (max-width: 767px) {
    .tableCircleFixed { min-width: 540px; font-size: 12px; }
    .tableCircleFixed th, .tableCircleFixed td { padding: 6px 5px; }
    .tableCircleFixed .colNum { width: 30px; }
    .tableCircleFixed .colTour { width: 40px; }
    .tableCircleFixed .colClub { width: 120px; }
    .tableCircleFixed .colScore { width: 34px; }
    .tableCircleFixed .colWins { width: 54px; }
    .tableCircleFixed .colBalls { width: 64px; }
    .tableCircleFixed .colResult { width: 110px; }
    .tableCircleFixed .circleFightBtn { padding: 4px 6px; font-size: 11px; }
    .gridWinners { overflow-x: auto; }
    .gridWinners .tableResultWinners { min-width: 540px; font-size: 12px; }
}

/* ── Сетка на экране: размеры ячеек не меняются, только цвет, тень и курсор (печать остаётся как была) ── */
@media screen {
    .pairParticipant { border-color: #c9cdd8; transition: background .12s, box-shadow .12s, border-color .12s; }
    /* угол бойца — полоска слева внутри ячейки (box-shadow не меняет размер): красный — первый, синий — второй */
    .pairParticipantFirst .pairParticipant { box-shadow: inset 3px 0 0 #d32f2f; }
    .pairParticipantSecond .pairParticipant { box-shadow: inset 3px 0 0 #1565c0; }
    .pairParticipant .info { padding-left: 3px; }
    /* пустое место («-» — ещё не определён) приглушено */
    .pairParticipant:not(:has(.fio)) { color: #a3a8b6; background: #fafbfd; border-color: #dfe2ea; box-shadow: none; }
    /* соединительные линии — в тон рамкам ячеек */
    .pairItem:after, .pairItem .leftLines, .strLinesBlock .strLine { border-color: #9aa1b3; }
    .strLinesBlock .strLine .strTriangle::after { border-left-color: #9aa1b3; }
    /* победитель пары */
    .pairParticipant.winner { background: #eef8f0; border-color: #8cc79a; }
    .pairParticipant.winner .fio { color: #1b5e20; }
    .pairItem:has(.pairParticipant.winner) .pairParticipant:not(.winner):has(.fio) .fio { color: #8a8fa0; }

    /* можно перетаскивать (1-й круг, пока не проведён ни один бой): курсор «рука» и подсветка */
    .stage1.draggable .pairParticipant:has(.fio) { cursor: grab; }
    .stage1.draggable .pairParticipant:has(.fio):hover { border-color: #7b6cf6; background: #f6f4ff; }
    .stage1.draggable .pairParticipant.draggable-source--is-dragging { background: #efedff; border: 1px dashed #7b6cf6; opacity: .55; }
    .stage1.draggable .pairParticipant.draggable--over { background: #efedff; border-color: #7b6cf6; }
    .pairParticipant.draggable-mirror { width: 248px; min-width: 248px; background: #fff; border-color: #7b6cf6; opacity: .95; cursor: grabbing;
        box-shadow: 0 10px 24px rgba(30, 20, 90, .22); }
    .minmalBlocks .pairParticipant.draggable-mirror { width: 201px; min-width: 201px; }
    body.draggable--is-dragging, body.draggable--is-dragging * { cursor: grabbing !important; }
    .gridDragHint { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 6px 12px; border-radius: 8px;
        background: #f3f1ff; color: #4a3fd1; font-size: 13px; }
}
/* Места в круговой/группах «Норда»: чем решено равенство, решение судейской коллегии */
.colPlace .placeBy { display: block; font-size: 10px; font-weight: 400; line-height: 1.15; opacity: .65; }
.circleRule { margin: 6px 0 0; font-size: 12px; opacity: .65; }
.circleTie { margin: 10px 0 4px; padding: 10px 14px; border-radius: 8px; border: 1px solid rgba(230, 140, 0, .55); background: rgba(255, 170, 0, .1); font-size: 14px; }
.circleTie.isDecided { border-color: rgba(120, 130, 150, .35); background: rgba(120, 130, 150, .07); }
.circleTie .btn { margin-left: 6px; }
.tieEditor ol { margin: 8px 0; padding-left: 22px; }
.tieEditor li { padding: 3px 0; }
.tieEditor li span { display: inline-block; min-width: 260px; }
.tieEditor li .btn { padding: 1px 8px; margin-left: 2px; }
.tieEditor > .btn { margin: 0 6px 0 0; }
/* баллы в перекрёстной таблице: «10» не переносить по цифре в узкой колонке */
.tableCircleFixed .ballsTd { overflow-wrap: normal; text-align: center; padding-left: 2px; padding-right: 2px; }
/* Пояснение над пустой финальной стадией / итогом: ждём решения коллегии или боёв групп */
.circleWait { margin: 6px 0 10px; padding: 9px 14px; border-radius: 8px; background: rgba(120, 130, 150, .08); color: #555b6a; font-size: 14px; }
.circleWait.isTie { background: rgba(255, 170, 0, .1); border: 1px solid rgba(230, 140, 0, .55); color: inherit; }
.circleWait span { margin-left: 4px; }
.circleWait .btn { margin: 4px 0 0 8px; }
.circleTie.isFlash { animation: tieFlash 1.6s ease 2; }
@keyframes tieFlash { 50% { box-shadow: 0 0 0 4px rgba(255, 170, 0, .55); } }
