﻿div.harmaa {
    margin: auto;
    overflow-x: auto;
    background: #e5e5e5 !important;
}

div.torneopal_widget {
    margin: auto;
    overflow-x: auto;
}

table caption {
    display: none;
    text-align: left !important;
    color: #808080 !important;
    font-weight: none !important;
    font-size: 13px !important;
}

/***** nextmatch  *****/

img.logo {
    width: 75px !important;
}

.nextmatch {
    max-width: 350px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

    .nextmatch td {
        padding-top: 2px;
        padding-bottom: 2px;
        padding: 5px;
        text-align: left;
        color: #fff;
        font-size: 13px;
        border: 0px solid #ddd;
    }

td.livelogo.livelogo_away {
    text-align: left;
}

tr.joukkuenimi {
    font-weight: bold;
    font-size: 18px;
    text-align: center !important;
}

tr.kenttanimi, tr.peliaika {
    color: #fff !important;
    font-size: 14px;
}

/***** team_players *****/

.team_players {
    font-family: "Open Sans";
    border-collapse: collapse;
    width: 100%;
}

    .team_players th {
        padding-top: 2px;
        padding-bottom: 2px;
        padding: 5px;
        text-align: left;
        background-color: #0A2972;
        color: #FFF;
        text-transform: uppercase;
        font-size: 13px;
    }

        .team_players th.match,
        .team_players th.goal,
        .team_players th.yellowcard,
        .team_players th.redcard {
            text-align: center;
        }

    .team_players td {
        padding-top: 2px;
        padding-bottom: 2px;
        padding: 5px;
        text-align: left;
        color: #FFF;
        font-size: 13px;
        border: 1px solid #ddd;
    }

        .team_players th.team,
        .team_players td.team {
            text-align: left;
        }

        .team_players td.jersey,
        .team_players td.player,
        .team_players td.position {
            border: 0px solid #ddd;
            padding: 5px;
            text-align: left;
            background: #fff;
            font-size: 13px;
            border: 1px solid #ddd;
        }

        .team_players td.match,
        .team_players td.goal,
        .team_players td.yellowcard,
        .team_players td.redcard {
            border: 0px solid #ddd;
            padding: 5px;
            text-align: center;
            background: #fff;
            font-size: 13px;
            border: 1px solid #ddd;
        }

    .team_players tr:nth-child(even) td {
        background: #fff;
    }

/*  #Mobile (team_players) Note: Design for a width of 320px */

@media all and (max-width: 479px) {
    .team_players th.jersey {
        display: none;
        width: 0;
        height: 0;
        opacity: 0;
        visibility: collapse;
    }

    .team_players th.position {
        display: none;
        width: 0;
        height: 0;
        opacity: 0;
        visibility: collapse;
    }

    .team_players td.jersey {
        display: none;
        width: 0;
        height: 0;
        opacity: 0;
        visibility: collapse;
    }

    .team_players td.position {
        display: none;
        width: 0;
        height: 0;
        opacity: 0;
        visibility: collapse;
    }

    .suspensions {
        display: none;
        width: 0;
        height: 0;
        opacity: 0;
        visibility: collapse;
    }
}

.torneopal_widget #updated {
    display: none;
}

/***** Pelaajien pelikiellot*****/

.suspensions {
    font-family: "Open Sans";
    border-collapse: collapse;
    width: 99%;
}

    .suspensions th {
        padding-top: 2px;
        padding-bottom: 2px;
        padding: 5px;
        background-color: #3d73af;
        color: #FFF;
        text-transform: uppercase;
        font-size: 13px;
        text-align: left;
    }

        .suspensions th.team,
        .suspensions td.team {
            text-align: left;
        }

    .suspensions td {
        border: 0px solid #ddd;
        padding: 5px;
        text-align: left;
        background: #fff;
        font-size: 13px;
        border: 1px solid #ddd;
    }

    .suspensions tr:nth-child(even) td {
        background: #eee;
    }

    .suspensions .team_61050 td {
        color: #730B12;
    }

    .suspensions .team_63421 td {
        color: #12730B;
    }

    .suspensions .team_60676 td {
        color: #0A2972;
    }


/*****  sarjataulukko *****/

.scoretable {
    font-family: "Open Sans";
    border-collapse: collapse;
    width: 99%;
    color: white;
    padding: 8px;
    line-height: 1.42857143;
}

    .scoretable th {
        padding-top: 5px;
        padding-bottom: 5px;
        padding: 5px;
        text-align: center;
        background-color: #3d73af;
        color: #FFF;
        text-transform: uppercase;
    }

.torneopal_widget img {
    max-width: 100%;
    /*height: 20px;*/
    width: auto;
}

.scoretable td.played,
.scoretable td.wins,
.scoretable td.draws,
.scoretable td.losses,
.scoretable td.goals,
.scoretable td.points,
.scoretable td.pitch {
    text-align: center;
    font-size: 13px;
    padding-top: 5px;
    padding-bottom: 5px;
    padding: 5px;
    border: 1px solid #ddd;
}

.scoretable td.team {
    text-align: left;
    font-size: 13px;
}

.scoretable td.crest img {
    text-align: right;
    vertical-align: bottom;
}

/*  #Mobile (scoretable) Note: Design for a width of 320px */
@media all and (max-width: 479px) {
    .scoretable th.crest {
        display: none;
        width: 0;
        height: 0;
        opacity: 0;
        visibility: collapse;
    }

    .scoretable td.crest {
        display: none;
        width: 0;
        height: 0;
        opacity: 0;
        visibility: collapse;
    }
}

.scoretable th.played,
.scoretable th.wins,
.scoretable th.draws,
.scoretable th.losses,
.scoretable th.goals,
.scoretable th.points {
    text-align: center;
    font-size: 13px;
}

.scoretable th.team {
    text-align: left;
    font-size: 13px;
}

.scoretable td.points {
    font-weight: bold;
}

.scoretable td {
    border: 0px solid #ddd;
    padding: 3px;
    color: #000;
}

.scoretable tr:nth-child(even) td {
    background: #eee;
}

.torneopal_widget #updated {
    display: none;
}

/**** scheduletable ****/

.scheduletable {
    font-family: "Open Sans";
    border-collapse: collapse;
    width: 99%;
}

    .scheduletable th,
    .statstable th {
        padding-top: 5px;
        padding-bottom: 5px;
        padding: 3px;
        text-align: left;
        background-color: #0A2972;
        color: #FFF;
        text-transform: uppercase;
        font-size: 13px;
    }

        .scheduletable th.team,
        .scheduletable td.team,
        .scheduletable td.home,
        .scheduletable td.away,
        .scheduletable td.time,
        .scheduletable td.date,
        .scheduletable td.score,
        .scheduletable td.pitch {
            text-align: left;
            color: #000;
        }

        .scheduletable th.match {
            display: none;
        }

    .scheduletable td.match {
        display: none;
    }

    .scheduletable th.date {
        font-size: 13px;
    }

    .scheduletable td {
        border: 0px solid #ddd;
        padding: 8px;
        font-size: 13px;
    }

        .scheduletable td.date {
            font-size: 13px;
        }

    .scheduletable tr:nth-child(even) td {
        background: #eee;
    }

    .scheduletable #updated {
        display: block;
    }

/*  #Mobile (scheduletable) Note: Design for a width of 320px */
@media all and (max-width: 479px) {
    .scheduletable th.pitch,
    .scheduletable th.score {
        display: none;
        width: 0;
        height: 0;
        opacity: 0;
        visibility: collapse;
    }

    .scheduletable td.pitch,
    .scheduletable td.score {
        display: none;
        width: 0;
        height: 0;
        opacity: 0;
        visibility: collapse;
    }
}


/**** torneopalwidget****/

.torneopalwidget {
    font-family: "Open Sans";
    border-collapse: collapse;
    width: 99%;
    color: white;
    padding: 8px;
    line-height: 1.42857143;
    border-color: grey;
}

    .torneopalwidget th {
        padding-top: 5px;
        padding-bottom: 5px;
        padding: 3px;
        text-align: left;
        background-color: #3d73af;
        color: #FFF;
        text-transform: uppercase;
        font-size: 13px;
    }

    .torneopalwidget td {
        border: 1px solid #ddd;
        padding: 6px;
        font-size: 13px;
        color: #000;
    }

        .torneopalwidget th.team,
        .torneopalwidget td.td1,
        .torneopalwidget td.pelaaja,
        .torneopalwidget td.joukkue,
        .torneopalwidget td.ottelut,
        .torneopalwidget td.maalit {
            text-align: left;
        }

    .torneopalwidget tr:nth-child(even) td {
        background: #eee;
    }

/*  #Mobile (Portrait torneopalwidget) Note: Design for a width of 320px */
@media all and (max-width: 479px) {
    .torneopalwidget th.joukkue {
        display: none;
        width: 0;
        height: 0;
        opacity: 0;
        visibility: collapse;
    }

    .torneopalwidget td.joukkue {
        display: none;
        width: 0;
        height: 0;
        opacity: 0;
        visibility: collapse;
    }
}
