﻿.bonusy-type-selector {
    display: flex;
    gap: 8px;
}

/* скрываем стандартный кружок */
.bonusy-radio input {
    display: none;
}

/* внешний вид кнопки */
.bonusy-radio span {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    cursor: pointer;
    user-select: none;
    transition: all 0.15s ease;
}

    /* hover */
    .bonusy-radio span:hover {
        background: #e5e7eb;
    }

/* ВЫБРАННЫЙ ЭЛЕМЕНТ */
.bonusy-radio input:checked + span {
    background: #2563eb;
    color: white;
    border-color: #1d4ed8;
    font-weight: 600;
}

.bonusy-radio input:disabled + span {
    opacity: .45;
    cursor: not-allowed;
    filter: grayscale(0.3);
}

    .bonusy-radio input:disabled + span:hover {
        background: #f8fafc; /* не подсвечивать hover */
    }

/* =========================
   Jury page layout (responsive)
   ========================= */
.working-form {
    display: grid;
    gap: 10px;
    max-width: 640px;
    width: 100%;
}

.working-form > * {
    min-width: 0;
}

.team-select {
    width: max-content;
    max-width: 100%;
}

.working-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.jury-domino-grid .jury-task-col {
    width: 140px;
    text-align: left;
    padding-left: 8px;
}

/* override grid-wide min-width for jury table */
.jury-domino-grid.grid-wide {
    min-width: 0;
    width: 100%;
}

.chip-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.review-mode-chips {
    margin-top: 10px;
}

.panel-divider {
    height: 1px;
    background: var(--line);
    margin: 10px 0;
}

.chip {
    border: 1px solid rgba(0,0,0,.12);
    border-radius: 999px;
    padding: 6px 12px;
    background: #fff;
    cursor: pointer;
    font-weight: 700;
    font-size: 13px;
    transition: all .15s ease;
    text-decoration: none;
    color: #223;
}

.chip.active {
    background: #f0f4ff;
    border-color: rgba(70,110,220,.45);
    color: #223;
}

.activity-chips {
    margin: 10px 0;
}

@media (max-width: 800px) and (max-height: 600px) {
    .working-form .table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 18px; /* keep scrollbar from overlapping last row */
        padding-right: 14px; /* allow last column to fully appear at max scroll */
        scrollbar-gutter: stable both-edges;
    }

    .jury-domino-grid.grid-wide {
        min-width: 900px; /* force scroll at 800x600 */
        width: auto;
    }
}

@media (max-width: 1040px) and (max-height: 800px) {
    .working-form {
        max-width: 100%;
    }

    .working-actions button {
        padding: 6px 10px;
        font-size: 12px;
    }
}



@media (max-width: 640px) {
    .working-form {
        max-width: 100%;
    }

    .team-select {
        width: 100%;
    }

    .working-actions {
        flex-direction: column;
    }

    .working-actions button {
        width: 100%;
    }
}

