/* A parlay's legs folded out under the bet (includes/parlay-legs-view.php tmbParlayLegsHtml(), and
   legsHtml() in scripts/capper-page.js): the app Overview, the tracking page, the admin Bets tab.
   A lost leg is red, a won one green, one not settled grey (Zach, 2026-11-27). */
.tmb-legs { font-size: 12px; color: var(--tmb-gray-700); margin-top: 2px; }
.tmb-legs > summary { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; list-style: none; color: var(--tmb-gray-600); font-weight: 600; user-select: none; }
.tmb-legs > summary::-webkit-details-marker { display: none; }
.tmb-legs > summary i { transition: transform .15s; }
.tmb-legs[open] > summary i { transform: rotate(90deg); }
.tmb-legs-list { list-style: none; margin: 4px 0 2px 4px; padding: 0 0 0 8px; border-left: 2px solid var(--tmb-gray-300); display: flex; flex-direction: column; gap: 3px; }
.tmb-leg { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 7px; align-items: baseline; line-height: 1.3; }
.tmb-leg-t { color: var(--tmb-gray-900); overflow-wrap: anywhere; }
.tmb-leg-o { color: var(--tmb-gray-600); font-weight: 600; white-space: nowrap; }
.tmb-leg-g { grid-column: 2; color: var(--tmb-gray-600); font-size: 11px; }
.tmb-leg-r { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 16px; padding: 0 4px; border-radius: 4px; font-size: 10px; font-weight: 700; }
.tmb-leg-win { background: var(--tmb-success-bg); color: var(--tmb-green-700); }
.tmb-leg-loss { background: var(--tmb-danger-bg); color: var(--tmb-red-700); }
.tmb-leg-push, .tmb-leg-open { background: var(--tmb-gray-100); color: var(--tmb-gray-600); }
.tmb-leg.is-loss .tmb-leg-t { color: var(--tmb-red-700); font-weight: 600; }
