/* MBC League tables, results, fixtures */

/* -----------------------------------------
  Contents

  1. Filters 
  2. Tables
  3. Leagues
  
 ----------------------------------------- */

/* -----------------------------------------
  1. Filters 
 ----------------------------------------- */

.mbc-filters {
    margin-bottom: 0;
}

    .mbc-filters.mbc-league-table-filters {
    }

    .mbc-filters fieldset {
        margin: 0;
        padding: 15px 0;
    }

    .mbc-filters label {
        font-size: 10px;
        font-weight: normal;
        text-transform: uppercase;
        height: 16px;
    }

    .mbc-filters .form-group .form-control {
        padding-left: 5px;
        margin: 0 0 10px;
    }

@media (min-width:0) and (max-width:599px) {

    .mbc-filters .form-group .form-control {
        font-size: 12px;
    }
}

@media (min-width:768px) {

    .mbc-filters .btn {
        margin: 27px 0 0;
    }
}


/* -----------------------------------------
  2. Tables
 ----------------------------------------- */

.div-tables {
    display: table;
    width: 100%;
    margin-bottom: 20px;
    border: 1px solid #c0c0c0;
}

    .div-tables .table-row {
        display: table-row;
        width: 100%;
    }

    .div-tables .table-head,
    .div-tables .table-body {
        display: table-row-group;
    }

        .div-tables .table-head .table-row .table-cell {
            border-bottom: 1px solid #c0c0c0;
        }

    .div-tables .table-row .table-cell {
        display: table-cell;
        padding: 10px 8px;
        box-sizing: border-box;
        transition: background-color 0.2s ease-in-out 0s;
    }


/* -----------------------------------------
  3. Leagues
 ----------------------------------------- */

.mbc-filters + .mbc-league-table,
.mbc-filters + .ajax-wrap > .mbc-league-table {
    position: relative;
    top: -1px;
}

.mbc-league-table .table-row .table-cell:not(.position):not(.position-movement):not(.team):not(.current-form) {
    width: 45px;
}

.mbc-league-table.mini-mbc-league-table .table-row .table-cell:not(.position):not(.position-movement):not(.team):not(.current-form) {
    width: 45px;
}

.mbc-league-table .table-row .table-cell.points {
    font-weight: bold;
}

.mbc-league-table.mini-mbc-league-table .table-row .table-cell:not(.position):not(.position-movement):not(.team):not(.games-played):not(.goal-difference):not(.points) {
    display: none;
}

/* HEAD */
.league-table .table-head .table-row .table-cell {
    font-size: 70%;
    font-weight: bold;
    border-bottom: 1px solid #ededed;
    text-transform: uppercase;
}

/* BODY */
.mbc-league-table .table-body .table-row {
    background-color: #f7f7f7;
    background-color: #fff;
}

    .mbc-league-table .table-body .table-row:nth-child(even) {
        background-color: #f1f1f1;
        background-color: #fff;
    }

    .mbc-league-table .table-body .table-row.current-team {
        background-color: #d1e8ff;
        font-weight: bold;
    }

    .mbc-league-table .table-body .table-row .table-cell {
        padding: 8px 5px;
    }

    /* LEAGUE BREAKS */
    .mbc-league-table .table-body .table-row.top-team .table-cell {
        border-bottom: 1px dashed #666;
    }

    .mbc-league-table .table-body .table-row.champions .table-cell {
        border-bottom: 2px solid #000;
        font-weight: bold;
        background-color: #fbb719;
    }

    .mbc-league-table .table-body .table-row.league-split .table-cell {
        border-top: 1px dashed #666;
    }

    .mbc-league-table .table-body .table-row.relegation-zone .table-cell {
        border-top: 1px dashed #666;
    }

    .mbc-league-table .table-body .table-row.bottom-team .table-cell {
        border-top: 1px dashed #666;
    }

    .mbc-league-table .table-body .table-row.relegated-team .table-cell {
        00der-top:2px solid #000;
        background-color: #5a1136;
        color: #fff;
    }

    .mbc-league-table .table-body .table-row:not(.champions):not(.current-team):not(.relegated-team):hover {
        box-shdow: 0 0 10px rgba(0,0,0,1);
    }

        .mbc-league-table .table-body .table-row:not(.champions):not(.current-team):not(.relegated-team):hover .table-cell {
            background-color: #ffffff;
        }

.mbc-league-table .table-row .table-cell:not(.team):not(.position) {
    text-align: center;
}

.mbc-league-table .table-row .table-cell.position {
    text-align: right;
    width: 35px;
}

.mbc-league-table .table-body .table-row img.team-badge {
    position: relative;
    top: -1px;
    width: 24px;
    height: auto;
    margin-right: 5px;
}

.mbc-league-table .table-row .table-cell.position-movement {
    font-size: 15px;
    width: 25px;
    padding-left: 0;
}

    .mbc-league-table .table-row .table-cell.position-movement i {
        cursor: pointer;
    }

    .mbc-league-table .table-row .table-cell.position-movement.moved-up {
        color: #44c424;
    }

    .mbc-league-table .table-row .table-cell.position-movement.moved-down {
        color: #d00;
    }

    .mbc-league-table .table-row .table-cell.position-movement.no-move {
        color: #ccc;
        font-size: 10px;
    }

.mbc-league-table .table-row .table-cell.team {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 5px;
}

.mbc-league-table .table-row .table-cell.current-form {
    padding-top: 0;
    padding-bottom: 0;
    display: none;
    width: 120px;
}

    .mbc-league-table .table-row .table-cell.current-form .game-result {
        width: 12px;
        height: 12px;
        display: inline-block;
        color: #ffffff;
        border-radius: 50%;
        cursor: pointer;
    }

.mbc-league-table .game-result.win {
    background-color: #44c424;
}

.mbc-league-table .game-result.loss {
    background-color: #d00;
}

.mbc-league-table .game-result.draw {
    background-color: #666;
}

@media (min-width:0) and (max-width:419px) {

    .mbc-league-table .table-body .table-row img.team-badge {
        display: none;
    }
}

@media (min-width:0) and (max-width:599px) {

    .mbc-league-table .table-row .table-cell:not(.position):not(.position-movement):not(.team):not(.games-played):not(.goal-difference):not(.points) {
        display: none;
    }

    .mbc-league-table .table-row .table-cell.team {
        min-width: 160px;
    }
}

@media (min-width:600px) {

    .mbc-league-table:not(.mini-mbc-league-table) .table-row .table-cell.team {
        min-width: 220px;
    }
}

@media (min-width:768px) {

    .mbc-league-table .table-row .table-cell.current-form {
        display: table-cell;
    }
}

@media (min-width:992px) {

    .mbc-league-table:not(.mini-mbc-league-table) .table-body .table-row .table-cell {
        padding: 12px 5px;
    }

    .mbc-league-table:not(.mini-mbc-league-table) .table-body .table-row.champions .table-cell:not(.position-movement) {
        font-size: 110%;
        padding: 15px 5px;
    }

    .mbc-league-table:not(.mini-mbc-league-table) .table-row .table-cell:not(.position):not(.position-movement):not(.team):not(.current-form) {
        width: 50px;
    }
}

@media (min-width:1200px) {

    .mbc-league-table:not(.mini-mbc-league-table) .table-row .table-cell:not(.position):not(.position-movement):not(.team):not(.current-form) {
        width: 55px;
    }
}


