/* ============================================================================
   LISTA GIOCATE - CSS COMUNE (Open Bets & Settled Bets)
   Prefisso: lista-giocate-
   ============================================================================ */

/* ==================== COLONNA UTENTE ==================== */
.lista-giocate-user-info-container {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 12px;
  line-height: 1.3;
  min-height: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.lista-giocate-user-name {
  color: #1f2937;
  font-weight: 600;
  font-size: 12px;
  margin-bottom: 2px;
}

.lista-giocate-user-date {
  color: #6b7280;
  font-size: 11px;
}

/* ==================== COLONNA BOOK ==================== */
.lista-giocate-book-info-container {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 12px;
  line-height: 1.3;
  min-height: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.lista-giocate-book-name {
  font-weight: 700;
  color: #1f2937;
  font-size: 13px;
  margin-bottom: 2px;
}

.lista-giocate-book-address {
  color: #6b7280;
  font-size: 11px;
  margin-bottom: 1px;
}

.lista-giocate-book-nickname {
  color: #4338ca;
  font-size: 11px;
  font-weight: 600;
  font-style: italic;
}

/* ==================== COLONNA IMPORTO/VALORI ==================== */
.lista-giocate-values-info-container {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 12px;
  line-height: 1.3;
  min-height: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.lista-giocate-values-main-row {
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 3px;
  font-size: 12px;
}

.lista-giocate-values-shares-row {
  color: #6b7280;
  font-size: 10px;
  font-style: italic;
}

/* ==================== COLONNA DETTAGLIO ==================== */
.lista-giocate-legs-container {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  padding: 6px 8px;
  line-height: 1.3;
  min-height: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.lista-giocate-legs-header {
  margin-bottom: 0px;
}

.lista-giocate-legs-header-date {
  color: #059669;
  font-weight: 600;
  font-size: 11px;
  margin-right: 8px;
}

.lista-giocate-legs-header-badge {
  display: inline-block;
  font-weight: 600;
  font-size: 11px;
}

.lista-giocate-legs-collapsed {
  color: #4338ca;
  font-weight: 600;
  font-size: 11px;
  cursor: pointer;
  user-select: none;
  margin-top: 0px;
}

.lista-giocate-legs-collapsed:hover {
  color: #3730a3;
  text-decoration: underline;
}

.lista-giocate-legs-expanded {
  display: none;
  margin-top: 1px;
}

.lista-giocate-legs-expanded.show {
  display: block;
}

.lista-giocate-leg-item {
  padding: 4px 6px;
  margin-bottom: 3px;
  background: #ffffff;
  border-left: 2px solid #3b82f6;
  border-radius: 3px;
  line-height: 1.3;
}

.lista-giocate-leg-match {
  color: #1f2937;
  font-weight: 600;
  font-size: 11px;
  margin-bottom: 1px;
}

.lista-giocate-leg-competition {
  color: #9ca3af;
  font-size: 10px;
  font-weight: normal;
}

.lista-giocate-leg-market {
  color: #4b5563;
  font-size: 10px;
}

.lista-giocate-leg-market-name {
  font-weight: 500;
}

.lista-giocate-leg-market-hdp {
  color: #7c3aed;
  font-weight: 600;
}

.lista-giocate-leg-selection {
  color: #1f2937;
  font-weight: 600;
}

.lista-giocate-legs-single-content {
  margin-top: 0px;
}

/* ==================== MOBILE - EXPAND/COLLAPSE EVENTI ==================== */
.lista-giocate-mobile-legs-collapsed {
  color: #4338ca;
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  user-select: none;
  margin-top: 6px;
  display: inline-block;
}

.lista-giocate-mobile-legs-collapsed:hover {
  color: #3730a3;
  text-decoration: underline;
}

.lista-giocate-mobile-legs-expanded {
  display: none;
  margin-top: 8px;
}

.lista-giocate-mobile-legs-expanded.show {
  display: block;
}

.lista-giocate-mobile-leg-item {
  padding: 8px;
  margin-bottom: 6px;
  background: #ffffff;
  border-left: 3px solid #3b82f6;
  border-radius: 4px;
  line-height: 1.4;
}

/* ==================== DATATABLE PADDING ==================== */
.lista-giocate-desktop table.dataTable tbody td {
  padding: 4px 8px !important;
  vertical-align: middle !important;
}

.lista-giocate-desktop table.dataTable tbody tr {
  height: auto !important;
}

/* ==================== RESPONSIVE SWITCH ==================== */
.lista-giocate-mobile {
  display: none;
}

.lista-giocate-desktop {
  display: block;
}

@media (max-width: 767px) {
  .lista-giocate-desktop {
    display: none !important;
  }
  .lista-giocate-mobile {
    display: block !important;
  }
}

/* ============================================================================
   SETTLED BETS - Stili specifici
   ============================================================================ */

/* PnL con colori */
.lista-giocate-values-pnl-positive {
  color: #059669;
  font-weight: 700;
}

.lista-giocate-values-pnl-negative {
  color: #dc2626;
  font-weight: 700;
}

.lista-giocate-values-pnl-neutral {
  color: #6b7280;
  font-weight: 600;
}

/* PnL evidenziato mobile */
.lista-giocate-mobile-pnl-row {
  font-size: 14px;
  font-weight: 700;
  margin-top: 4px;
}

/* Badge referto nella colonna dettaglio */
.lista-giocate-legs-header-referto {
  display: inline-block;
  font-weight: 600;
  font-size: 11px;
  margin-left: 8px;
}

/* Sfondi colorati card mobile per referto */
.lista-giocate-mobile-card-won {
  background: #f0fdf4 !important;
}

.lista-giocate-mobile-card-lost {
  background: #fef2f2 !important;
}

.lista-giocate-mobile-card-refunded {
  background: #f9fafb !important;
}

/* Per separare e mettere badge a dx e data a sx in versione dekstop giocate refertate */
.header-split{
  display: flex;
  align-items: center;
}

.header-split .lista-giocate-legs-header-referto{
  margin-left: auto;
  white-space: nowrap;
}

