.w_50{
    width:50px;
}
.w_100{
    width:100px;
}
.w_300{
    width:300px !important;
}
th.sorted.ascending:after {
	content: "  \2191";
}

th.sorted.descending:after {
	content: " \2193";
}
.table_scroller{
    overflow-x:scroll;
}
.min_w_800{
    min-width: 800px;
}
.is_current_user{
    color:#f00;
    font-weight:bold;
}

/* Estilos para el selector de usuarios con búsqueda */
.user-search-container {
    margin-bottom: 15px;
}

/* Estilo para mostrar el nombre del usuario seleccionado */
.selected-user-name {
    font-size: 20pt;
    text-align: center;
    margin: 15px 0 25px;
    font-weight: 500;
    color: #333;
}

.user-search-container .select2-container {
    width: 100% !important;
}

.user-search-container .select2-selection {
    height: 38px;
    border-radius: 4px;
    border: 1px solid #ced4da;
}

.user-search-container .select2-selection__rendered {
    line-height: 38px !important;
    padding-left: 12px !important;
}

.user-search-container .select2-selection__arrow {
    height: 36px !important;
}

.user-search-container .select2-selection__clear {
    margin-right: 10px;
    font-size: 18px;
    color: #6c757d;
}

.user-search-container .select2-search__field {
    padding: 8px 12px !important;
}

.user-search-container .select2-results__option {
    padding: 8px 12px;
}

.user-search-container .select2-results__option--highlighted {
    background-color: #007bff !important;
}

/* Mobile Cards Layout for Bet Shortcode */
@media (max-width: 768px) {
    .game_bet_table,
    .min_w_800,
    .table_scroller {
        display: none !important;
    }
    
    .mobile-card-container {
        display: block !important;
    }
    
    .mobile-extra-container {
        display: block !important;
    }
}

@media (min-width: 769px) {
    .mobile-card-container,
    .mobile-extra-container {
        display: none !important;
    }
}

/* Mobile Match Cards */
.mobile-card-container {
    display: none;
    padding: 10px;
}

.mobile-match-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.match-card {
    background: linear-gradient(135deg, #FF6800 0%, #FF6800 100%);
    border-radius: 20px;
    padding: 20px;
    color: white;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.match-card.finished {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
}

.match-card.open {
    background: linear-gradient(135deg, #FF6800 0%, #FF6800 100%);
}

.status-indicator {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
}

.match-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.match-number {
    font-size: 16px;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 15px;
    border-radius: 20px;
}

.match-datetime {
    text-align: right;
    font-size: 14px;
    line-height: 1.4;
}

.match-group {
    font-size: 12px;
    opacity: 0.8;
    margin-top: 4px;
}

.teams-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 15px;
}

.team {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    text-align: center;
}

.team-flag {
    width: 40px;
    height: 30px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.team-name {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
}

.vs-divider {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.vs-text {
    font-size: 16px;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.3);
    padding: 8px 12px;
    border-radius: 15px;
}

.real-score {
    font-size: 18px;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    padding: 6px 12px;
    border-radius: 12px;
    min-width: 45px;
    text-align: center;
}

.prediction-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.prediction-input {
    flex: 1;
    max-width: 80px;
}

.prediction-input input {
    width: 100%;
    padding: 15px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.prediction-input input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.prediction-input input:disabled {
    background: rgba(255, 255, 255, 0.6);
    color: #666;
    cursor: not-allowed;
}

.prediction-dash {
    font-size: 24px;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.8);
}

.match-points {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    padding: 12px 18px;
    border-radius: 15px;
}

.points-label {
    font-size: 14px;
    font-weight: 500;
}

.points-value {
    font-size: 20px;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    padding: 8px 15px;
    border-radius: 20px;
    min-width: 40px;
    text-align: center;
}

/* Mobile Extra Questions Cards */
.mobile-extra-container {
    display: none;
    padding: 10px;
    margin-top: 30px;
}

.mobile-extra-container h4 {
    color: #333;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
}

.mobile-extra-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.extra-card {
    background: linear-gradient(135deg, #FF6800 0%, #FF6800 100%);
    border-radius: 20px;
    padding: 20px;
    color: white;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.extra-card.finished {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
}

.extra-card.open {
    background: linear-gradient(135deg, #FF6800 0%, #FF6800 100%);
}

.extra-card-header {
    margin-bottom: 20px;
}

.extra-question {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.4;
}

.extra-deadline-label {
    font-size: 12px;
    opacity: 0.8;
    margin-bottom: 4px;
}

.extra-deadline {
    font-size: 14px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 12px;
    border-radius: 10px;
    display: inline-block;
}

.extra-selection-container {
    margin-bottom: 20px;
}

.extra-select {
    width: 100%;
    padding: 15px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    font-size: 16px;
    font-weight: 500;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.extra-select:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.extra-select:disabled {
    background: rgba(255, 255, 255, 0.6);
    color: #666;
    cursor: not-allowed;
}

.extra-points {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    padding: 12px 18px;
    border-radius: 15px;
}

/* Mobile Winner Teams Cards */
.mobile-winner-container {
    display: none;
    padding: 10px;
    margin-top: 30px;
}

@media (max-width: 768px) {
    .winner_teams_container table {
        display: none !important;
    }
    
    .mobile-winner-container {
        display: block !important;
    }
}

.mobile-winner-container h4 {
    color: #333;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
}

.mobile-winner-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.winner-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 20px;
    color: white;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.winner-card.finished {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
}

.winner-card.open {
    background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
}

.winner-card-header {
    margin-bottom: 20px;
}

.winner-position {
    font-size: 14px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 12px;
    border-radius: 10px;
    display: inline-block;
    margin-bottom: 10px;
}

.winner-label {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.4;
}

.winner-deadline-label {
    font-size: 12px;
    opacity: 0.8;
    margin-bottom: 4px;
}

.winner-deadline {
    font-size: 14px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 12px;
    border-radius: 10px;
    display: inline-block;
}

.winner-selection-container {
    margin-bottom: 20px;
}

.winner-select {
    width: 100%;
    padding: 15px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    font-size: 16px;
    font-weight: 500;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.winner-select:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.winner-select:disabled {
    background: rgba(255, 255, 255, 0.6);
    color: #666;
    cursor: not-allowed;
}

.winner-real-container {
    background: rgba(255, 255, 255, 0.15);
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 15px;
}

.winner-real-label {
    font-size: 12px;
    opacity: 0.8;
    margin-bottom: 6px;
}

.winner-real-team {
    font-size: 16px;
    font-weight: 600;
}

.winner-points {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    padding: 12px 18px;
    border-radius: 15px;
}

.winner-points-label {
    font-size: 14px;
    font-weight: 500;
}

.winner-points-value {
    font-size: 20px;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    padding: 8px 15px;
    border-radius: 20px;
    min-width: 40px;
    text-align: center;
}
