/* VBC Willisau - Ranking Styling */

.rg-wrapper {
    margin: 20px 0;
    background-color: #111;
}

.rg-table {
    width: 100%;
    border-collapse: collapse;
    color: #fff;
    font-family: 'Open Sans', Arial, sans-serif;
}

.rg-table th {
    background-color: #fff000;
    color: #000;
    padding: 12px;
    text-align: left;
    text-transform: uppercase;
    font-weight: 800;
}

.rg-table td {
    padding: 12px;
    border-bottom: 1px solid #222;
    color: #fff !important;
}

.rg-vbcw { 
    color: #fff000 !important; 
    font-weight: bold; 
}

.rg-table td.rg-vbcw { 
    color: #fff000 !important; 
}

.rg-highlight { 
    background-color: rgba(255, 240, 0, 0.05); 
}

.rg-badge {
    background: #222;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
    border: 1px solid #444;
}

.rg-points { 
    color: #fff !important; 
    font-size: 1.1em; 
}

.rg-loader { 
    color: #fff; 
    text-align: center; 
}

/* Tablet */
@media (min-width: 601px) and (max-width: 1024px) {
    .rg-col-rank { 
        width: 60px; 
    }
    
    .rg-col-stat { 
        width: 80px; 
        text-align: center; 
    }
    
    .rg-stat { 
        text-align: center; 
    }
}

/* Mobile */
@media (max-width: 600px) {
    .rg-hide-mobile { 
        display: none; 
    }
    
    .rg-table thead { 
        display: none; 
    }
    
    .rg-table tr {
        display: flex;
        flex-wrap: wrap;
        padding: 15px 10px;
        border-bottom: 2px solid #333;
    }
    
    .rg-table td { 
        border: none; 
        padding: 5px; 
        color: #fff; 
    }
    
    .rg-rank { 
        flex: 0 0 15%; 
        order: 1; 
    }
    
    .rg-team { 
        flex: 0 0 85%; 
        order: 2; 
        font-size: 1.1em; 
    }
    
    .rg-stat {
        flex: 0 0 50%;
        order: 3;
        font-size: 0.85em;
        color: #fff !important;
        display: flex;
        align-items: center;
    }
    
    .rg-stat::before {
        content: attr(data-label) ": ";
        margin-right: 5px;
        font-weight: normal;
    }
    
    .rg-points { 
        color: #fff !important; 
        font-size: 1em; 
        font-weight: bold;
        justify-content: flex-end;
        margin-left: auto;
        text-align: right;
    }
}
