/* Poker home game ledger */
.pl-top { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: flex-end; justify-content: space-between; }
.pl-bi { max-width: 260px; }
.pl-t input { width: 100%; min-width: 74px; font: inherit; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--c-line, #333); background: var(--c-bg2, rgba(255,255,255,.04)); color: inherit; }
.pl-t td:first-child input { min-width: 110px; }
.pl-t td { vertical-align: middle; }
.pl-in { display: flex; gap: 4px; align-items: center; }
.pl-in button, .pl-x { min-width: 44px; min-height: 40px; border-radius: 8px; border: 1px solid var(--c-line, #333); background: transparent; color: inherit; cursor: pointer; font-weight: 700; }
.pl-x { min-width: 36px; opacity: .7; }
.pl-net { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pl-net.is-up { color: var(--c-accent, #a3e635); }
.pl-net.is-down { color: var(--warn, #fb923c); }
.pl-pay { margin: 0 0 12px; padding-left: 1.4em; font-size: 16px; line-height: 1.7; }
.pl-pay b { font-variant-numeric: tabular-nums; }
.pl-t tfoot td { font-weight: 700; }
/* 1.1.0: phones get one card per player instead of a table that scrolls sideways */
@media (max-width: 560px) {
	.pl-t, .pl-t tbody, .pl-t tfoot { display: block; width: 100%; }
	.pl-t thead { display: none; }
	.pl-t tr { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) auto; gap: 8px 10px; align-items: end; padding: 12px 0; border-bottom: 1px solid var(--c-line, #262c37); }
	.pl-t td { display: block; padding: 0 !important; border: 0 !important; min-width: 0; text-align: left !important; }
	.pl-t tbody td:nth-child(1) { grid-column: 1 / 3; grid-row: 1; }
	.pl-t tbody td:nth-child(5) { grid-column: 3; grid-row: 1; justify-self: end; }
	.pl-t tbody td:nth-child(2) { grid-column: 1; grid-row: 2; }
	.pl-t tbody td:nth-child(3) { grid-column: 2; grid-row: 2; }
	.pl-t tbody td:nth-child(4) { grid-column: 3; grid-row: 2; text-align: right !important; align-self: center; min-width: 64px; }
	.pl-t tbody td:nth-child(2)::before, .pl-t tbody td:nth-child(3)::before, .pl-t tbody td:nth-child(4)::before { display: block; margin: 0 0 4px; font: 500 11.5px var(--font, sans-serif); color: var(--c-muted, #8b93a3); }
	.pl-t tbody td:nth-child(2)::before { content: "Bought in"; }
	.pl-t tbody td:nth-child(3)::before { content: "Cashed out"; }
	.pl-t tbody td:nth-child(4)::before { content: "Net"; }
	.pl-t input, .pl-t td:first-child input { min-width: 0; }
	.pl-t tfoot tr { grid-template-columns: auto 1fr 1fr 1fr; border-bottom: 0; align-items: center; }
	.pl-t tfoot td:not(:first-child) { text-align: right !important; }
	.pl-t tfoot td:last-child { display: none; }
}
