/**
 * Lionsports mobile sports table parity — Dream444 compact event list.
 */

@media only screen and (max-width: 991px) {
  /* Home sports strip owned by lionsports-mobile-sports-strip.css — skip generic menu rules below */

  app-dashboard .mobile-men:not(.lion-mobile-sports-strip) .menu-list {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 2px 6px 0 !important;
    margin: 0 !important;
    white-space: nowrap !important;
  }

  app-dashboard .mobile-men:not(.lion-mobile-sports-strip) .menu-list::-webkit-scrollbar {
    display: none !important;
  }

  app-dashboard .mobile-men:not(.lion-mobile-sports-strip) .menu-item {
    flex: 0 0 auto !important;
    margin: 3px 3px 0 !important;
    vertical-align: top !important;
  }

  app-dashboard .mobile-men:not(.lion-mobile-sports-strip) .menu-item div {
    padding: 0 10px !important;
    border-radius: 0 !important;
    min-width: 0 !important;
    text-align: left !important;
  }

  app-dashboard .mobile-men:not(.lion-mobile-sports-strip) .menu-item.active div {
    background: var(--mbl-sports-active-bg, linear-gradient(-180deg, #323232 0, #0d0d0d 100%)) !important;
    color: var(--mbl-sports-active-text-color, #fff) !important;
  }

  app-dashboard .mobile-men .orange-nav-ic-txt {
    font-size: 11px !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    display: inline-block !important;
    line-height: 1 !important;
  }

  /* Hide desktop text tabs only — keep tab-content sports table visible on mobile home */
  body.lion-route-home app-dashboard .game-menu-tab > .nav,
  body.lion-route-home app-dashboard .game-menu-tab .nav-tabs {
    display: none !important;
  }

  body.lion-route-home app-dashboard .game-menu-tab,
  body.lion-route-home app-dashboard .game-menu-tab .tab-content,
  body.lion-route-home app-dashboard .game-menu-tab .tab-content .tab-pane,
  body.lion-route-home app-dashboard .game-menu-tab .tab-content .active {
    display: block !important;
    visibility: visible !important;
    height: auto !important;
    min-height: 120px !important;
    opacity: 1 !important;
  }

  body.lion-route-home app-dashboard .table-responsive,
  body.lion-route-home app-dashboard .dashboard-custom-table:not(.lion-market-table):not(.lion-home-list-table) {
    display: block !important;
    visibility: visible !important;
  }

  body.lion-route-home app-dashboard table.lion-home-list-table {
    display: table !important;
    visibility: visible !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .dashboard-custom-table.lion-market-table {
    table-layout: fixed !important;
    width: 100% !important;
    font-size: 12px !important;
  }

  app-dashboard .table-responsive {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  .dashboard-custom-table:not(.lion-market-table) thead.hideDesktop,
  .dashboard-custom-table:not(.lion-market-table) .hideDesktop.lion-mobile-sports-head,
  .dashboard-custom-table:not(.lion-market-table) td.count.hideDesktop,
  .dashboard-custom-table:not(.lion-market-table) td.lion-odds-cell.hideDesktop {
    display: none !important;
  }

  /* Dream mobile highlight list — name + badges + pin (no 1/X/2 odds table) */
  .dashboard-custom-table.lion-mobile-highlight-table,
  .dashboard-custom-table:not(.lion-market-table) {
    table-layout: auto !important;
    width: 100% !important;
    margin-bottom: 8px !important;
    font-size: 12px !important;
    border-bottom: 1px solid var(--markets-border-bottom, #c8ced3) !important;
  }

  .dashboard-custom-table:not(.lion-market-table) tr.lion-mobile-list-row,
  .dashboard-custom-table:not(.lion-market-table) tr.lion-event-row {
    border-bottom: 1px solid var(--markets-border-bottom, #c8ced3) !important;
  }

  .dashboard-custom-table:not(.lion-market-table) .td-event-name {
    width: auto !important;
    max-width: none !important;
    padding: 8px 5px 8px 8px !important;
    vertical-align: middle !important;
  }

  .dashboard-custom-table:not(.lion-market-table) .fancy-and-sport-book-chips {
    width: auto !important;
    min-width: 52px !important;
    max-width: none !important;
    padding: 8px 4px 8px 6px !important;
    vertical-align: middle !important;
    text-align: right !important;
    white-space: nowrap !important;
  }

  .dashboard-custom-table:not(.lion-market-table) .lion-pin-cell {
    width: 25px !important;
    min-width: 25px !important;
    max-width: 28px !important;
    padding: 4px 4px 4px 0 !important;
    vertical-align: middle !important;
    text-align: center !important;
  }

  .dashboard-custom-table:not(.lion-market-table) .match-name {
    display: inline !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    color: var(--markets-text-color, #2789ce) !important;
  }

  .dashboard-custom-table:not(.lion-market-table) .in_play {
    display: inline !important;
    color: var(--dashboard-cmp-in_play-color, #508d0e) !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    margin-left: 6px !important;
    vertical-align: baseline !important;
    white-space: nowrap !important;
  }

  .dashboard-custom-table:not(.lion-market-table) .match-time {
    display: inline-block !important;
    margin: 0 0 0 5px !important;
    font-size: 11px !important;
    color: var(--markets-dateTime-color, #888) !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
  }

  .dashboard-custom-table:not(.lion-market-table) .add-pin {
    width: 6.66667vw !important;
    max-width: 25px !important;
    height: auto !important;
  }

  .dashboard-custom-table .fancy-not-exist {
    display: inline-block !important;
    width: 18px !important;
  }

  .dashboard-custom-table .game-bookmakers,
  .dashboard-custom-table .game-fancy,
  .dashboard-custom-table .game-sportbook {
    display: inline-block !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    font-style: italic !important;
    border-radius: 4px !important;
    line-height: 1.2 !important;
    vertical-align: top !important;
  }

  .dashboard-custom-table .game-bookmakers {
    padding: 0 5px 0 2px !important;
    background: linear-gradient(-180deg, #315195, #14213d) !important;
    color: #fff !important;
    letter-spacing: -1px !important;
  }

  .dashboard-custom-table .game-fancy {
    padding: 0 5px !important;
    background: var(--markets-fancy-icon-bg, #0a92a5) !important;
    color: var(--markets-fancy-text, #fff) !important;
    margin-right: 2px !important;
  }

  .dashboard-custom-table .game-sportbook {
    padding: 0 5px !important;
    background: var(--markets-sportsbook-bg, linear-gradient(-180deg, #2e8b57, #1b5e20)) !important;
    color: var(--markets-sportsbook-text, #fff) !important;
  }

  .dashboard-custom-table .match-name {
    display: inline !important;
    text-decoration: none !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    color: var(--markets-text-color, #2789ce) !important;
    white-space: normal !important;
    word-break: break-word !important;
  }

  .dashboard-custom-table .match-name span {
    display: inline !important;
  }

  .dashboard-custom-table .in_play {
    display: inline !important;
    color: var(--dashboard-cmp-in_play-color, #508d0e) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    margin-left: 8px !important;
    vertical-align: baseline !important;
    white-space: nowrap !important;
  }

  .dashboard-custom-table .match-time {
    display: block !important;
    margin: 0 0 0 6px !important;
    font-size: 11px !important;
    color: var(--markets-dateTime-color, #888) !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
  }

  .dashboard-custom-table .lion-pin-cell {
    width: 28px !important;
    min-width: 28px !important;
    padding: 4px 4px 4px 0 !important;
    vertical-align: top !important;
    text-align: center !important;
  }

  .dashboard-custom-table .add-pin {
    display: block !important;
    width: 25px !important;
    height: 20px !important;
    margin: 0 0 0 5px !important;
    padding: 0 !important;
    background: none !important;
    color: var(--markets-pin-color, #ffc107) !important;
    text-decoration: none !important;
    line-height: 0 !important;
  }

  .dashboard-custom-table .add-pin svg {
    width: 22px !important;
    height: 22px !important;
    display: block !important;
  }

  .dashboard-custom-table.lion-market-table .lion-odds-cell,
  .dashboard-custom-table.lion-market-table td.lion-odds-cell {
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    min-width: 52px !important;
    min-height: 32px !important;
    vertical-align: middle !important;
  }

  .dashboard-custom-table.lion-market-table .back,
  .dashboard-custom-table.lion-market-table .lay {
    display: inline-block !important;
    min-width: 44px !important;
    padding: 4px 6px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    border-radius: 3px !important;
    cursor: pointer !important;
  }

  .dashboard-custom-table.lion-market-table .back {
    background: var(--markets-back-bg, #72bbef) !important;
    color: #1a1a1a !important;
  }

  .dashboard-custom-table.lion-market-table .lay {
    background: var(--markets-lay-bg, #faa9ba) !important;
    color: #1a1a1a !important;
  }

  .lion-sports-empty {
    margin: 16px 8px 80px !important;
    padding: 20px !important;
    border-radius: 8px !important;
    background: rgba(0, 0, 0, 0.25) !important;
  }

  #lion-dream-betslip.lion-betslip-mobile {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 58px !important;
    z-index: 10050 !important;
    margin: 0 !important;
    border-radius: 12px 12px 0 0 !important;
    max-height: 55vh !important;
    overflow: auto !important;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.45) !important;
    background: #fff !important;
    color: #1a1a1a !important;
    border: 1px solid #c8ced3 !important;
  }

  .lion-slip-panel {
    background: #fff;
    color: #1a1a1a;
    border: 1px solid #c8ced3;
    border-radius: 6px;
    overflow: hidden;
  }

  .lion-slip-header {
    background: #e4e4e4;
    color: #243a48;
    font-weight: 700;
    padding: 8px 12px;
    font-size: 14px;
  }

  .lion-slip-body {
    padding: 10px 12px 12px;
  }

  .lion-slip-row {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 8px;
  }

  .lion-slip-label {
    font-size: 11px;
    font-weight: 600;
    color: #666 !important;
    text-transform: uppercase;
    letter-spacing: 0.02em;
  }

  .lion-slip-value {
    font-size: 14px;
    font-weight: 700;
    color: #243a48 !important;
    line-height: 1.3;
    word-break: break-word;
  }

  .lion-slip-odds {
    color: #0d6efd !important;
    font-size: 16px;
  }

  .lion-slip-stake-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #243a48 !important;
    margin: 8px 0 4px;
  }

  .lion-slip-stake-input {
    display: block;
    width: 100%;
    margin-top: 4px;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #999;
    font-size: 14px;
    color: #1a1a1a !important;
    background: #fff !important;
    box-sizing: border-box;
  }

  .lion-slip-payout {
    margin: 6px 0 10px;
    color: #2789ce !important;
    font-weight: 600;
    font-size: 13px;
  }

  .lion-slip-place {
    width: 100%;
    padding: 10px;
    background: #ffd259 !important;
    border: 0;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    color: #000 !important;
    font-size: 14px;
  }

  .lion-slip-close {
    width: 100%;
    margin-top: 6px;
    padding: 8px;
    background: #fff !important;
    border: 1px solid #999;
    border-radius: 4px;
    color: #243a48 !important;
    cursor: pointer;
    font-size: 13px;
  }

  .lion-slip-msg {
    margin-top: 8px;
    color: #2789ce !important;
    font-weight: 600;
    font-size: 13px;
  }

  app-right-nav #lion-dream-betslip.lion-slip-panel {
    background: var(--right-sidenav-bg, #1a1a1a);
    color: #fff;
    border-color: #444;
  }

  app-right-nav #lion-dream-betslip .lion-slip-header {
    background: #333;
    color: #fff;
  }

  app-right-nav #lion-dream-betslip .lion-slip-label {
    color: #aaa !important;
  }

  app-right-nav #lion-dream-betslip .lion-slip-value,
  app-right-nav #lion-dream-betslip .lion-slip-stake-label {
    color: #fff !important;
  }

  app-right-nav #lion-dream-betslip .lion-slip-odds {
    color: #9fd0ff !important;
  }

  app-right-nav #lion-dream-betslip .lion-slip-stake-input {
    background: #2a2a2a !important;
    color: #fff !important;
    border-color: #666;
  }

  app-right-nav #lion-dream-betslip .lion-slip-payout,
  app-right-nav #lion-dream-betslip .lion-slip-msg {
    color: #9fd0ff !important;
  }

  .lion-market-table .lion-sel-suspended {
    opacity: 0.45 !important;
    pointer-events: none !important;
  }

  .lion-market-table .lion-sel-closed {
    background: #555 !important;
    color: #ccc !important;
  }
}

@media only screen and (min-width: 992px) {
  .dashboard-custom-table .fancy-and-sport-book-chips {
    padding: 3px 5.5px 3px 10px !important;
    vertical-align: middle !important;
    white-space: nowrap !important;
  }

  .dashboard-custom-table .lion-pin-cell .add-pin {
    color: var(--markets-pin-color, #666) !important;
  }
}

@media only screen and (max-width: 414px) {
  .dashboard-custom-table .fancy-and-sport-book-chips {
    width: 64px !important;
    min-width: 64px !important;
    max-width: 64px !important;
  }
}
