/* Standings / Stats
 * http://localhost/testbkherrar/matcher?seasonid=96069&showtable=true
 * http://localhost/testbkherrar/match/3567202/malmo-ff
 * http://localhost/testbkherrar - Tables on the right
 *******************************************/
table.standings {
    table-layout: fixed;
    font-size: 14px;
    width:100%;
}
.standings tbody {
    border-bottom: 1px solid #ddd;
    border-top: 1px solid #ddd;
}

    table.standings thead tr th {
        padding: 9px 0px 8px 0px;
    }

        table.standings thead tr th:first-child,
        table.standings tbody tr td:first-child {
            padding-left: 4px;
        }

    table.standings tbody tr td {
        border-color: #ebebeb;
        vertical-align: middle;
        padding: 9px 0px 8px 0px;
    }

    /* Table head like .table-default in admin, used on the standings page (matcher?showtable=true) */
    table.standings.table-head-default > thead > tr > th {
        /* padding: 3px 4px 1px; */
        vertical-align: middle;
        height: 38px;
        /* font-size: 12px; */
        background: #0000000a;
    }

        table.standings.table-head-default > thead > tr > th:first-child,
        table.standings.table-head-default > tbody > tr > td:first-child {
            padding-left: 8px;
        }

        table.standings.table-head-default > thead > tr > th:last-child,
        table.standings.table-head-default > tbody > tr > td:last-child {
            padding-right: 8px;
        }

        table.standings.table-head-default > thead > tr > th:first-child {
            border-top-left-radius: 4px;
        }

        table.standings.table-head-default > thead > tr > th:last-child {
            border-top-right-radius: 4px;
        }


    /* Season divider */
    table.standings tr.line td {
        border-bottom: 1px solid #cccccc;
    }


    /* Team that has left the league (Utgått/Utesluten): no position or stats, like the federation's table.
       The status label is anchored to the last cell and overflows leftwards over the empty stat cells,
       so it fits whichever columns are visible. */
    table.standings tr.inactive td {
        color: #999999;
    }

        table.standings tr.inactive td .team-name {
            text-decoration: line-through;
        }

        table.standings tr.inactive td img {
            opacity: 0.5;
        }

        table.standings tr.inactive td.status {
            position: relative;
        }

            table.standings tr.inactive td.status span {
                position: absolute;
                right: 0;
                top: 50%;
                transform: translateY(-50%);
                white-space: nowrap;
            }

        table.standings.table-head-default tr.inactive td.status span {
            right: 8px;
        }

        table.standings.small tr.inactive td.status span {
            right: 3px;
        }


    /* Icons */
    table.standings td img {
        position: relative;
        top: -1px;
        margin-right: 4px;
    }
    table.standings tbody tr td img {
        height: 24px;
        vertical-align: middle;
    }


    /* Small Table on startpage (and import/new/edit season popup) */
    table.standings.small {
        font-size: 12px;
    }

    table.standings.small tbody tr td {
        padding: 5px 0px 4px 0px;
        line-height: 20px;
    }

        table.standings.small td:first-child,
        table.standings.small th:first-child {
            padding-left: 3px;
        }

        table.standings.small td:last-child,
        table.standings.small th:last-child {
            padding-right: 3px;
        }


    table.standings.small tbody tr td img {
        height: 20px;
    }