/* Poker side pot calculator */
.sp-help { display: block; margin: 0 0 10px; }
.sp-t input[type="text"] { width: 100%; min-width: 90px; }
.sp-t input[type="number"] { width: 100%; min-width: 70px; max-width: 120px; }
.sp-t td { vertical-align: middle; font-variant-numeric: tabular-nums; }
.sp-t tr.is-main td { font-weight: 600; }
.sp-t .is-up { color: var(--c-accent, #a3e635); font-weight: 700; }
.sp-t .is-down { color: var(--warn, #fb923c); }
.sp-h3 { margin: 18px 0 6px; font-size: 16px; }
/* 2.6.42: phones get one card per player in the input table instead of a table that scrolls sideways */
@media (max-width: 560px) {
	.sp-t:has(tbody input) { display: block; width: 100%; }
	.sp-t:has(tbody input) thead { display: none; }
	.sp-t:has(tbody input) tbody { display: block; }
	.sp-t:has(tbody input) tr { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: 8px 12px; align-items: end; padding: 12px 0; border-bottom: 1px solid var(--c-line, #262c37); }
	.sp-t:has(tbody input) td { display: block; padding: 0 !important; border: 0 !important; min-width: 0; text-align: left !important; }
	.sp-t:has(tbody input) td:nth-child(1) { grid-column: 1 / 4; grid-row: 1; }
	.sp-t:has(tbody input) td:nth-child(5) { grid-column: 4; grid-row: 1; }
	.sp-t:has(tbody input) td:nth-child(2) { grid-column: 1; grid-row: 2; }
	.sp-t:has(tbody input) td:nth-child(3) { grid-column: 2; grid-row: 2; }
	.sp-t:has(tbody input) td:nth-child(4) { grid-column: 3 / 5; grid-row: 2; }
	.sp-t:has(tbody input) td:nth-child(n+2)::before { display: block; margin: 0 0 4px; font: 500 11.5px var(--font, sans-serif); color: var(--c-muted, #8b93a3); }
	.sp-t:has(tbody input) td:nth-child(2)::before { content: "Chips in"; }
	.sp-t:has(tbody input) td:nth-child(3)::before { content: "Folded"; }
	.sp-t:has(tbody input) td:nth-child(4)::before { content: "Hand rank"; }
	.sp-t:has(tbody input) input[type="number"] { max-width: none; min-width: 0; }
	.sp-t:has(tbody input) td:nth-child(4) input { width: 72px; }
	.sp-t:has(tbody input) td:nth-child(3) { text-align: center; padding-bottom: 8px !important; }
}
