/* ==========================================================================
   Parlays Component (v3) - UNIFIED WITH BOXSCORES
   --------------------------------------------------------------------------
   Layout and visual rules for parlay summary chips shown in parent rows.
   Keeps multi-leg summaries in a single, readable horizontal flow.
   
   NOTE: Core boxscore styling (logos, scores, time) is defined in boxscores.css
   This file adds parlay-specific layout and status coloring only.
   
   DROPDOWN FUNCTIONALITY:
   - All parlay rows (.parlay-row) are clickable and expandable
   - Toggle icon (▶) appears on left side of datetime cell
   - Icon rotates 90° when expanded to show open state (▼)
   - Parlay legs (.parlay-legs) are hidden by default and slide in when expanded
   - Hover effects on parlay rows provide visual feedback
   ========================================================================== */

/* ===== MULTI-GAME SUMMARY CONTAINER ===== */
.multi-game-summary {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    row-gap: 8px;
    max-width: 100%;
    font-family: var(--font-body);
}

/* ===== LEG SNIPPET - MINI BOXSCORE CHIP ===== */
/* Metallic Forest Green & Navy theme */
.leg-snippet {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    padding: 5px 8px;
    border-radius: 4px;
    background: rgba(13, 27, 51, 0.85);
    border: 1px solid rgba(0, 143, 88, 0.2);
    box-shadow: none;
    text-align: center;
    font-family: var(--font-body);
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.leg-snippet:hover {
    background: rgba(0, 143, 88, 0.12);
    border-color: rgba(0, 143, 88, 0.35);
}

.leg-snippet .leg-num {
    font-family: var(--font-body);
    font-weight: var(--weight-semibold);
    font-size: var(--text-xs);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(0, 178, 114, 0.85);
    white-space: nowrap;
}

/* NOTE: .score-display and .team-logo-small are defined in boxscores.css */
/* NOTE: .time-remaining is defined in boxscores.css */

/* ═══════════════════════════════════════════════════════════════════════════
   LEG STATUS COLORING - Forest Green & Navy Theme
   Consistent with brand colors, status indicated by border/text accents
   ═══════════════════════════════════════════════════════════════════════════ */

/* Win/Final - Emerald accent */
.leg-snippet[data-status="win"],
.leg-snippet[data-status="final"] {
    background: rgba(0, 143, 88, 0.12);
    border-color: rgba(0, 178, 114, 0.4);
}

.leg-snippet[data-status="win"] .leg-num,
.leg-snippet[data-status="final"] .leg-num {
    color: rgba(0, 214, 137, 0.95);
}

/* Live/On-Track - Cyan accent (secondary brand color) */
.leg-snippet[data-status="live"],
.leg-snippet[data-status="on-track"] {
    background: rgba(0, 188, 212, 0.08);
    border-color: rgba(0, 188, 212, 0.35);
}

.leg-snippet[data-status="live"] .leg-num,
.leg-snippet[data-status="on-track"] .leg-num {
    color: rgba(0, 229, 255, 0.9);
}

/* Pending - Muted navy */
.leg-snippet[data-status="pending"] {
    background: rgba(13, 27, 51, 0.75);
    border-color: rgba(144, 164, 174, 0.2);
}

.leg-snippet[data-status="pending"] .leg-num {
    color: rgba(144, 164, 174, 0.75);
}

/* At-Risk - Amber (warning color from brand) */
.leg-snippet[data-status="at-risk"] {
    background: rgba(255, 111, 0, 0.1);
    border-color: rgba(255, 179, 0, 0.35);
}

.leg-snippet[data-status="at-risk"] .leg-num {
    color: rgba(255, 179, 0, 0.9);
}

/* Loss - Loss color from brand */
.leg-snippet[data-status="loss"] {
    background: rgba(198, 40, 40, 0.1);
    border-color: rgba(239, 83, 80, 0.3);
}

.leg-snippet[data-status="loss"] .leg-num {
    color: rgba(239, 83, 80, 0.85);
}

/* Time remaining color by status - using brand colors */
.leg-snippet .time-remaining {
    font-weight: var(--weight-medium) !important;
    color: rgba(144, 164, 174, 0.85) !important;
}

.leg-snippet[data-status="live"] .time-remaining,
.leg-snippet[data-status="on-track"] .time-remaining {
    color: rgba(0, 229, 255, 0.9) !important;
    font-weight: var(--weight-semibold) !important;
}

.leg-snippet[data-status="win"] .time-remaining,
.leg-snippet[data-status="final"] .time-remaining {
    color: rgba(0, 214, 137, 0.9) !important;
    font-weight: var(--weight-semibold) !important;
}

.leg-snippet[data-status="at-risk"] .time-remaining {
    color: rgba(255, 179, 0, 0.9) !important;
    font-weight: var(--weight-semibold) !important;
}

.leg-snippet[data-status="loss"] .time-remaining {
    color: rgba(144, 164, 174, 0.6) !important;
}

/* Toggle Arrow Styles - Enhanced for Clarity */
.parlay-row {
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 4px solid transparent;
}

.parlay-row:hover {
    background-color: rgba(0, 143, 88, 0.08) !important;
}

.parlay-row.expanded {
    background: linear-gradient(to right, rgba(0, 143, 88, 0.1), transparent) !important;
    border-left-color: var(--color-primary, #008f58) !important;
    position: relative;
    z-index: 2;
}

/* Continuous vertical line connecting parent to legs */
.parlay-row.expanded::before {
    content: '';
    position: absolute;
    top: 0;
    left: -4px;
    width: 4px;
    height: 100%;
    background: var(--color-primary, #008f58);
    z-index: 3;
}

.parlay-toggle-icon {
    color: var(--color-primary, #008f58);
    font-size: 0.9rem;
    cursor: pointer;
    transition: transform 0.25s ease, color 0.2s ease;
    display: inline-block;
    vertical-align: middle;
    user-select: none;
    -webkit-user-select: none;
    margin-right: 8px;
}

.parlay-row.expanded .parlay-toggle-icon {
    transform: rotate(90deg);
    color: var(--color-primary-bright, #00d689);
}

.parlay-toggle-icon:hover {
    color: var(--color-primary-bright, #00d689);
}

.parlay-leg-summary {
    display: block;
    font-family: var(--font-body);
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(144, 164, 174, 0.85);
    margin-top: 2px;
}


/* Parlay Leg Container Connector */
.parlay-legs {
    display: none;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.parlay-legs.show {
    display: table-row;
    opacity: 1;
    transition: opacity 0.25s ease;
}

.parlay-legs-container {
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.04);
    border-bottom: 1px solid var(--zebra-border);
    border-left: 3px solid var(--color-primary, #008f58);
    position: relative;
    margin: 0 8px;
}

/* Visual connector between parent and legs */
.parlay-legs-container::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -4px;
    width: 4px;
    height: 100%;
    background: var(--color-primary, #008f58);
    border-radius: 0 0 2px 2px;
}

/* ===== IMPROVED PARLAY LEGS TABLE LAYOUT ===== */

/* Header for parlay legs section */
.parlay-legs-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0, 214, 137, 0.2);
}

.parlay-legs-title {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.parlay-legs-heading {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text-primary, #e8f0f2);
}

.parlay-legs-subtitle {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-text-secondary, rgba(144, 164, 174, 0.9));
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.parlay-legs-hint {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(144, 164, 174, 0.8);
}

/* Improved parlay legs table */
.parlay-legs-table,
.compact-leg-table {
    width: 100%;
    border-collapse: collapse;
    background: transparent;
    margin: 0;
    table-layout: fixed;
}

.parlay-legs-table-header,
.compact-leg-table thead {
    background: rgba(0, 214, 137, 0.05);
    border-bottom: 1px solid rgba(0, 214, 137, 0.2);
}

.parlay-legs-table-header th,
.compact-leg-table thead th {
    padding: 8px 12px;
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    text-transform: uppercase;
    letter-spacing: var(--tracking-normal);
    color: var(--color-text-secondary, rgba(144, 164, 174, 0.9));
    text-align: center;
    border: none;
    border-bottom: 1px solid rgba(0, 214, 137, 0.2);
}

.parlay-legs-table-header th:nth-child(1) { width: 120px; } /* Date */
.parlay-legs-table-header th:nth-child(2) { width: 25%; } /* Matchup */
.parlay-legs-table-header th:nth-child(3) { width: 30%; } /* Pick */
.parlay-legs-table-header th:nth-child(4) { width: 15%; } /* Segment */
.parlay-legs-table-header th:nth-child(5) { width: 15%; } /* Status */

.leg-number-header {
    width: 80px;
    text-align: center;
}

/* Leg number badge in table */
/* Improved leg row styling */
.parlay-leg-row {
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(0, 214, 137, 0.1);
    transition: background-color 0.2s ease;
}

.parlay-leg-row:hover {
    background: rgba(255, 255, 255, 0.05);
}

.parlay-leg-row.live-game {
    background: rgba(0, 188, 212, 0.05);
    animation: pulse-live 2s infinite;
}

.parlay-leg-row.live-game:hover {
    background: rgba(0, 188, 212, 0.08);
}

/* pulse-live animation defined in page-layout.css */

.parlay-leg-row td {
    padding: 12px 15px;
    border: none;
    vertical-align: middle;
}

/* Improved matchup cell for legs */
.matchup-cell-parlay-leg {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    min-width: 200px;
}

.matchup-cell-parlay-leg .team-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.matchup-cell-parlay-leg .team-name {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    color: var(--color-text-primary, #e8f0f2);
    white-space: nowrap;
}

.matchup-cell-parlay-leg .vs-divider {
    font-size: var(--text-xs);
    color: rgba(144, 164, 174, 0.6);
    font-weight: var(--weight-medium);
    margin: 0 4px;
}

/* Improved pick cell for legs */
.pick-cell-leg {
    text-align: center;
    min-width: 150px;
}

.pick-cell-leg .pick-type {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    text-transform: uppercase;
    color: var(--color-accent, #00bcd4);
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}

.pick-cell-leg .pick-details {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    color: var(--color-text-primary, #e8f0f2);
    margin-bottom: 2px;
}

.pick-cell-leg .pick-odds {
    font-family: var(--font-mono, 'Roboto Mono', monospace);
    font-size: var(--text-xs);
    color: var(--color-text-muted, rgba(84, 110, 122, 0.9));
}

/* Game segment styling */
.game-segment {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: var(--weight-medium);
    text-transform: uppercase;
    color: var(--color-text-secondary, rgba(144, 164, 174, 0.9));
    letter-spacing: 0.05em;
}

.compact-leg-table tr {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid rgba(0, 143, 88, 0.2);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.compact-leg-table tr:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(0, 214, 137, 0.3);
    box-shadow: 0 2px 6px rgba(0, 214, 137, 0.15);
}

.compact-leg-table td {
    padding: 8px 12px;
    border: none;
    vertical-align: middle;
}

.compact-leg-table td:first-child {
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
    padding-left: 12px;
}

.compact-leg-table td:last-child {
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
}

/* Leg Number Column */
.leg-num-cell,
.leg-number-cell {
    width: 70px;
    text-align: center;
    vertical-align: middle;
    padding: 8px 6px !important;
}

.leg-number-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.leg-label {
    display: block;
    font-size: 0.5rem;
    font-weight: 800;
    color: rgba(144, 164, 174, 0.8);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    line-height: 1;
}

.leg-value {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono, 'Roboto Mono', monospace);
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--color-primary-bright, #00d689);
    background: linear-gradient(135deg, rgba(0, 214, 137, 0.2), rgba(0, 178, 114, 0.15));
    border: 2px solid rgba(0, 214, 137, 0.5);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    line-height: 1;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 214, 137, 0.3), inset 0 1px 2px rgba(255, 255, 255, 0.1);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Matchup Column */
.matchup-cell-parlay-leg {
    min-width: 250px;
}

.matchup-cell-parlay-leg .team-line {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 4px 0;
}

.matchup-cell-parlay-leg .team-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.matchup-cell-parlay-leg .team-name {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-primary, #e8f0f2);
}

.matchup-cell-parlay-leg .team-record {
    font-family: var(--font-mono, 'Roboto Mono', monospace);
    font-size: 0.7rem;
    color: var(--color-text-muted, rgba(84, 110, 122, 0.9));
}

.vs-divider-inline {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.15);
    margin: 2px 0 2px 34px; /* Align with team names */
    display: block;
    line-height: 1;
}

/* Pick Details Column */
.pick-cell-parlay-leg {
    flex: 1;
}

.pick-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pick-market {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-accent, #00bcd4);
    letter-spacing: 0.05em;
}

.pick-selection {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-primary, #e8f0f2);
}

.pick-odds {
    font-family: var(--font-mono, 'Roboto Mono', monospace);
    font-size: 0.8rem;
    color: var(--color-text-secondary, rgba(144, 164, 174, 0.9));
}

/* Status Column */
.status-cell-parlay-leg {
    width: 100px;
    text-align: right;
}

.status-cell-parlay-leg .status-badge {
    padding: 4px 8px;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-block;
    min-width: 70px;
    text-align: center;
    border: 1px solid transparent;
}

.status-cell-parlay-leg .status-badge.status-win {
    background: rgba(0, 214, 137, 0.15);
    color: #00d689;
    border-color: rgba(0, 214, 137, 0.3);
}

.status-cell-parlay-leg .status-badge.status-loss {
    background: rgba(239, 83, 80, 0.15);
    color: #ef5350;
    border-color: rgba(239, 83, 80, 0.3);
}

.status-cell-parlay-leg .status-badge.status-live {
    background: rgba(0, 188, 212, 0.15);
    color: #00bcd4;
    border-color: rgba(0, 188, 212, 0.3);
}

.status-cell-parlay-leg .status-badge.status-pending {
    background: rgba(144, 164, 174, 0.1);
    color: #90a4ae;
    border-color: rgba(144, 164, 174, 0.2);
}

/* Ensure parlay parent row shows feedback */
.parlay-row {
    transition: background-color 0.2s ease, border-left-color 0.2s ease;
}

.parlay-row:hover {
    background-color: rgba(0, 143, 88, 0.08) !important;
}

.parlay-row[aria-expanded="true"] {
    background-color: rgba(0, 143, 88, 0.04) !important;
}

.parlay-toggle {
    background: transparent;
    border: none;
    color: var(--color-primary, #008f58);
    font-size: 0.8rem;
    cursor: pointer;
    padding: 4px 8px;
    margin-right: 4px;
    transition: transform 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}

/* ===== OVERRIDE GREEN COLORS IN PARLAY LEGS ===== */
/* Remove distracting green font colors from picks and segments in expanded parlay sub legs */
/* Use muted, readable colors that match the nested leg aesthetic */

/* Override green "Full Game" segment color - use muted blue-gray instead */
.compact-leg-table .game-segment,
.compact-leg-table [data-segment*="full-game"] .game-segment {
    color: rgba(170, 188, 204, 0.95) !important;
}

/* Slightly mute other segment colors for consistency (but keep their distinction) */
.compact-leg-table [data-segment*="1st-half"] .game-segment,
.compact-leg-table [data-segment*="1h"] .game-segment {
    color: rgba(100, 200, 220, 0.85) !important; /* Muted cyan */
}

.compact-leg-table [data-segment*="2nd-half"] .game-segment,
.compact-leg-table [data-segment*="2h"] .game-segment {
    color: rgba(120, 180, 240, 0.85) !important; /* Muted blue */
}

.compact-leg-table [data-segment*="1q"] .game-segment,
.compact-leg-table [data-segment*="2q"] .game-segment,
.compact-leg-table [data-segment*="3q"] .game-segment,
.compact-leg-table [data-segment*="4q"] .game-segment {
    color: rgba(144, 164, 174, 0.85) !important; /* Muted slate */
}

/* Pick line - use soft, readable blue-gray */
.compact-leg-table .pick-line {
    color: rgba(200, 215, 230, 0.98) !important;
}

/* Also override pick type and other pick elements for consistency */
.compact-leg-table .pick-type {
    color: rgba(144, 164, 174, 0.88) !important;
}

.compact-leg-table .pick-team-abbr {
    color: rgba(200, 215, 230, 0.95) !important;
}

/* ===== PARLAY LEG ROWS - LocalPicksManager format ===== */
/* Individual parlay leg rows (created by LocalPicksManager) */
tr.parlay-leg {
    background: rgba(0, 143, 88, 0.03);
    border-left: 3px solid var(--color-primary, #008f58);
    transition: background-color 0.2s ease, opacity 0.25s ease;
}

tr.parlay-leg:hover {
    background: rgba(0, 143, 88, 0.08);
}

/* Hidden state for collapsed parlay legs */
tr.parlay-leg-hidden {
    display: none !important;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

/* Expanded parlay leg visibility */
.parlay-row.expanded + tr.parlay-leg,
tr.parlay-leg:not(.parlay-leg-hidden) {
    display: table-row;
    opacity: 1;
}

/* Style parlay leg cells to be slightly indented */
tr.parlay-leg td:first-child {
    padding-left: 28px;
}

/* Parlay expand arrow in matchup cell */
.parlay-expand-arrow {
    display: inline-block;
    color: var(--color-primary, #008f58);
    font-size: 0.75rem;
    margin-right: 8px;
    transition: transform 0.25s ease;
    vertical-align: middle;
}

.parlay-row.expanded .parlay-expand-arrow {
    transform: rotate(90deg);
    color: var(--color-primary-bright, #00d689);
}

/* ==========================================================================
   COMPACT PARLAY LEGS - Smaller, tighter styling for expanded leg rows
   ========================================================================== */

/* Make the container more compact */
.parlay-legs-container {
    padding: 4px 8px !important;
    margin: 0 !important;
}

/* ULTRA-COMPACT leg table styling */
.compact-leg-table {
    border-collapse: separate !important;
    border-spacing: 0 2px !important;
}

.compact-leg-table tr {
    background: rgba(255, 255, 255, 0.025) !important;
    border: none !important;
    box-shadow: none !important;
}

.compact-leg-table tr:hover {
    background: rgba(0, 214, 137, 0.08) !important;
}

.compact-leg-table td {
    padding: 4px 6px !important;
    border: none !important;
    vertical-align: middle !important;
}

.compact-leg-table td:first-child {
    padding-left: 6px !important;
    border-top-left-radius: 3px !important;
    border-bottom-left-radius: 3px !important;
}

.compact-leg-table td:last-child {
    padding-right: 6px !important;
    border-top-right-radius: 3px !important;
    border-bottom-right-radius: 3px !important;
}

/* TINY leg number badge */
.compact-leg-table .leg-number-badge {
    gap: 1px !important;
}

.compact-leg-table .leg-label {
    font-size: 0.35rem !important;
    letter-spacing: 0.1em !important;
}

.compact-leg-table .leg-value {
    width: 18px !important;
    height: 18px !important;
    font-size: 0.7rem !important;
    border-width: 1px !important;
    box-shadow: none !important;
}

/* Compact matchup cell */
.compact-leg-table .matchup-cell-parlay-leg {
    min-width: 120px !important;
    gap: 2px !important;
}

.compact-leg-table .matchup-cell-parlay-leg .team-name-full {
    font-size: 0.72rem !important;
    line-height: 1.2 !important;
}

/* Compact pick details */
.compact-leg-table .pick-details {
    gap: 0 !important;
}

.compact-leg-table .pick-market {
    font-size: 0.55rem !important;
    line-height: 1.1 !important;
}

.compact-leg-table .pick-selection {
    font-size: 0.72rem !important;
    line-height: 1.2 !important;
}

.compact-leg-table .pick-odds {
    font-size: 0.6rem !important;
    line-height: 1.1 !important;
}

/* Compact segment */
.compact-leg-table .game-segment {
    font-size: 0.55rem !important;
}

/* Status badges in parlay legs - COMPACT SIZE with VISIBLE COLOR CODING */
.compact-leg-table .status-badge {
    font-family: var(--font-body) !important;
    font-size: 0.6rem !important;
    font-weight: var(--weight-semibold) !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    line-height: 1.1 !important;
    padding: 2px 6px !important;
    border-radius: 999px !important;
    min-width: 48px !important;
}

/* STATUS COLOR CODING for compact leg table badges - HIGH VISIBILITY backgrounds (40% opacity) */
.compact-leg-table .status-badge[data-status="pending"] {
    border-color: rgba(136, 140, 149, 0.6) !important;
    color: #d0d4db !important;
    background: rgba(136, 140, 149, 0.4) !important;
}

.compact-leg-table .status-badge[data-status="live"] {
    border-color: rgba(74, 182, 255, 0.7) !important;
    color: #5fc1ff !important;
    background: rgba(74, 182, 255, 0.4) !important;
}

.compact-leg-table .status-badge[data-status="on-track"] {
    border-color: rgba(0, 191, 255, 0.7) !important;
    color: #33cfff !important;
    background: rgba(0, 191, 255, 0.4) !important;
}

.compact-leg-table .status-badge[data-status="at-risk"] {
    border-color: rgba(251, 140, 0, 0.7) !important;
    color: #ffa033 !important;
    background: rgba(251, 140, 0, 0.4) !important;
}

.compact-leg-table .status-badge[data-status="win"],
.compact-leg-table .status-badge[data-status="hit"],
.compact-leg-table .status-badge[data-status="final"] {
    border-color: rgba(0, 255, 170, 0.7) !important;
    color: #33ffbb !important;
    background: rgba(0, 255, 170, 0.4) !important;
}

.compact-leg-table .status-badge[data-status="loss"],
.compact-leg-table .status-badge[data-status="miss"] {
    border-color: rgba(229, 57, 53, 0.7) !important;
    color: #ff7a7f !important;
    background: rgba(229, 57, 53, 0.4) !important;
}

.compact-leg-table .status-badge[data-status="push"] {
    border-color: rgba(184, 197, 208, 0.6) !important;
    color: #c8d3dc !important;
    background: rgba(184, 197, 208, 0.4) !important;
}

/* Parlay matchup cell styling */
.parlay-matchup {
    display: flex;
    align-items: center;
    gap: 6px;
}

.parlay-leg-count {
    font-size: 0.75rem;
    color: rgba(144, 164, 174, 0.8);
    font-weight: 500;
}

/* Boxscore placeholder for parlay parent rows */
.boxscore-placeholder {
    color: rgba(144, 164, 174, 0.5);
    font-size: 1.2rem;
}

/* HOVER STATES for compact leg table status badges */
.compact-leg-table .status-badge[data-status="on-track"]:hover {
    border-color: var(--status-on-track-color, #00bfff) !important;
    box-shadow: 0 0 0 1px rgba(0, 191, 255, 0.3), 0 0 10px rgba(0, 191, 255, 0.25) !important;
}

.compact-leg-table .status-badge[data-status="at-risk"]:hover {
    border-color: var(--status-at-risk-color, #fb8c00) !important;
    box-shadow: 0 0 0 1px rgba(251, 140, 0, 0.3), 0 0 10px rgba(251, 140, 0, 0.25) !important;
}

.compact-leg-table .status-badge[data-status="win"]:hover,
.compact-leg-table .status-badge[data-status="hit"]:hover,
.compact-leg-table .status-badge[data-status="final"]:hover {
    border-color: var(--status-hit-color, #00ffaa) !important;
    box-shadow: 0 0 0 1px rgba(0, 255, 170, 0.3), 0 0 10px rgba(0, 255, 170, 0.25) !important;
}

.compact-leg-table .status-badge[data-status="loss"]:hover,
.compact-leg-table .status-badge[data-status="miss"]:hover {
    border-color: var(--status-miss-color, #ff5f6d) !important;
    box-shadow: 0 0 0 1px rgba(229, 57, 53, 0.3), 0 0 10px rgba(229, 57, 53, 0.25) !important;
}

.compact-leg-table .status-badge[data-status="push"]:hover {
    border-color: var(--status-push-color, rgba(184, 197, 208, 0.95)) !important;
    box-shadow: 0 0 0 1px rgba(184, 197, 208, 0.3), 0 0 8px rgba(184, 197, 208, 0.2) !important;
}

/* ==========================================================================
   PARLAY PARENT ROW STATUS BADGES - Visible color coding
   --------------------------------------------------------------------------
   The parent parlay row's status badge is NOT inside .compact-leg-table,
   so it needs separate styling rules with higher visibility backgrounds.
   ========================================================================== */

.parlay-row .status-badge[data-status="pending"] {
    border-color: rgba(136, 140, 149, 0.6) !important;
    color: #d0d4db !important;
    background: rgba(136, 140, 149, 0.4) !important;
}

.parlay-row .status-badge[data-status="live"] {
    border-color: rgba(74, 182, 255, 0.7) !important;
    color: #5fc1ff !important;
    background: rgba(74, 182, 255, 0.4) !important;
}

.parlay-row .status-badge[data-status="on-track"] {
    border-color: rgba(0, 191, 255, 0.7) !important;
    color: #33cfff !important;
    background: rgba(0, 191, 255, 0.4) !important;
}

.parlay-row .status-badge[data-status="at-risk"] {
    border-color: rgba(251, 140, 0, 0.7) !important;
    color: #ffa033 !important;
    background: rgba(251, 140, 0, 0.4) !important;
}

.parlay-row .status-badge[data-status="win"],
.parlay-row .status-badge[data-status="hit"],
.parlay-row .status-badge[data-status="final"] {
    border-color: rgba(0, 255, 170, 0.7) !important;
    color: #33ffbb !important;
    background: rgba(0, 255, 170, 0.4) !important;
}

.parlay-row .status-badge[data-status="loss"],
.parlay-row .status-badge[data-status="miss"] {
    border-color: rgba(229, 57, 53, 0.7) !important;
    color: #ff7a7f !important;
    background: rgba(229, 57, 53, 0.4) !important;
}

.parlay-row .status-badge[data-status="push"] {
    border-color: rgba(184, 197, 208, 0.6) !important;
    color: #c8d3dc !important;
    background: rgba(184, 197, 208, 0.4) !important;
}