/* Round tabs — kept in CSS for active-state toggling via JS classList */
.round-tab {
    background: #e2e3e5;
    color: #333;
    border: none;
    padding: 8px 16px;
    border-radius: 6px 6px 0 0;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.15s;
}

.round-tab:hover {
    background: #ccc;
}

.round-tab.active {
    background: #0f3460;
    color: white;
}

/* Squares grid — table-layout: fixed with specific cell sizing */
.squares-grid {
    border-collapse: collapse;
    font-size: 12px;
    width: 100%;
    table-layout: fixed;
}

.squares-grid th,
.squares-grid td {
    border: 1px solid #ccc;
    padding: 4px;
    text-align: center;
    min-width: 70px;
    height: 55px;
    vertical-align: middle;
}

.squares-grid thead th {
    background: #0f3460;
    color: white;
    font-weight: 700;
    font-size: 14px;
}

.squares-grid tbody th {
    background: #0f3460;
    color: white;
    font-weight: 700;
    font-size: 14px;
    min-width: 50px;
}

.squares-grid .corner {
    background: #1a1a2e;
    font-size: 10px;
    min-width: 70px;
}

.squares-grid td {
    background: white;
    position: relative;
}

.squares-grid td .owner {
    display: block;
    font-size: 11px;
    line-height: 1.2;
}

.squares-grid td .payout {
    display: block;
    font-size: 10px;
    font-weight: 700;
    color: #155724;
}

.squares-grid td.winner {
    background: #d4edda;
    border-color: #28a745;
}

/* Owner search highlight */
.squares-grid td.highlighted {
    background: #cce5ff !important;
    border-color: #007bff;
}

.squares-grid td.winner.highlighted {
    background: linear-gradient(135deg, #cce5ff 50%, #d4edda 50%) !important;
}

.squares-grid td.dimmed {
    opacity: 0.3;
}

tr.highlighted td {
    background: #cce5ff;
    font-weight: 600;
}

tr.dimmed td {
    opacity: 0.4;
}

/* Round payout cards */
.payout-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #0f3460;
    color: white;
    border-radius: 8px;
    padding: 8px 14px;
    min-width: 90px;
}

.payout-card-round {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.75;
    line-height: 1.2;
    text-align: center;
}

.payout-card-amount {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

/* Edit inputs (admin) */
.edit-inline {
    border: 2px solid #e2a03f;
    border-radius: 4px;
    padding: 4px 8px;
    font-family: inherit;
    font-size: inherit;
    background: #fffef5;
}

.edit-axis {
    width: 32px;
    padding: 2px;
    text-align: center;
    border: 2px solid #e2a03f;
    border-radius: 4px;
    font-size: 13px;
    background: #fffef5;
}

.edit-square {
    width: 80px;
    font-size: 0.8rem;
    padding: 2px 4px;
}

.admin-grid td {
    padding: 2px;
}

.squares-grid td.editable {
    cursor: pointer;
}

.squares-grid td.editable:hover {
    background: #fffef5;
    outline: 2px solid #e2a03f;
}

@media (max-width: 900px) {
    .squares-grid th,
    .squares-grid td {
        min-width: 50px;
        height: 45px;
    }
}
