﻿#tournament_ranking_points {
    width: auto;
}

div.tournament-status:first-of-type {
    margin-bottom: 10px;
}

div.tournament-status h3 {
    width: 150px;
}

span.entry-status {
    border-radius: 5px;
    font-size: 20px;
    background-color: red;
    color: white;
    margin-left: 15px;
    padding: 5px;
    width: 150px;
    display: inline-block;
    text-align: center;
}

    span.entry-status.entered {
        background-color: green;
    }

table img.player-image {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    margin-right: 5px;
}

img.bracket-avatar {
    width: 25px;
    height: 25px;
}

div.label {
    padding: 3px !important;
    position: absolute !important;
    height: 22px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

#fixture_menu {
    display: none;
    position: absolute;
    background-color: #252525;
    padding: 10px;
    z-index: 999;
    color: #a7a4a4;
    width: 350px;
    border: 1px black solid;
}

    #fixture_menu i.available {
        color: #52f159;
    }

    #fixture_menu i.not-available {
        color: #ef9999 !important;
    }

    #fixture_menu i.away {
        color: #e5e77e;
    }


    #fixture_menu span.header {
        color: lightblue;
        font-size: 19px;
        text-align: center;
        display: block;
    }

    #fixture_menu div.round_info {
        border-bottom: 1px grey solid;
        padding-bottom: 5px;
        text-align: center;
        color: #e6e6b5;
        margin-bottom: 5px;
    }

        #fixture_menu div.round_info span {
            display: block;
        }

    #fixture_menu div.actions, #fixture_menu div.admin-actions {
        text-align: center;
    }

        #fixture_menu div.actions span {
            display: block;
        }

        #fixture_menu div.actions button, #fixture_menu div.admin-actions button {
            display: block;
            margin: 0 auto;
        }

    #fixture_menu div.player_images img {
        width: 50px;
        height: 50px;
    }

    #fixture_menu div.player_images div {
        display: inline-block;
        width: 20%;
        text-align: center;
    }

    #fixture_menu div.player_images span {
        line-height: 50px;
        vertical-align: middle;
        font-size: 20px;
        display: block;
        width: 100%;
    }

    #fixture_menu div.player_images div:first-of-type {
        float: left;
        width: 60px;
    }

    #fixture_menu div.player_images div:last-of-type {
        float: right;
        width: 60px;
    }

    #fixture_menu div.player_images div:nth-of-type(even) span {
        font-size: 40px;
        color: white;
    }

    #fixture_menu div.player_names span:last-of-type {
        float: right;
    }

    #fixture_menu div.admin-actions {
        border-top: 1px grey solid;
        padding-top: 5px;
        color: #e6e6b5;
        margin-top: 5px;
    }

        #fixture_menu div.admin-actions button {
            display: block;
            margin: 0 auto;
        }

        #fixture_menu div.admin-actions span {
            display: inline-block;
            width: 80%;
        }

        #fixture_menu div.admin-actions input {
            width: 20%;
            background-color: grey;
            border: thin black;
            text-align: center;
            margin-bottom: 2px;
            border-radius: 5px;
        }


#fixture_menu_close {
    background-color: transparent;
    display: inline-block;
    text-align: center;
    vertical-align: middle;
    color: white;
    border: none;
    position: absolute;
    right: 10px;
    top: 10px;
    margin: 0;
    padding: 0;
}

#bracket {
    overflow-x: auto;
}

#tournament_stats_table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
}

    #tournament_stats_table td:first-of-type, #tournament_stats_table th:first-of-type {
        position: -webkit-sticky;
        position: sticky;
        width: 200px;
        min-width: 200px;
        max-width: 200px;
        left: 0px;
        background-color: white;
    }

div.table-wrapper {
    position: relative;
    overflow: auto;
    white-space: nowrap;
}

.removed {
    text-decoration: line-through;
}

#tournament_status_header {
    border-radius: 5px;
    margin-right: 10px;
    padding: 5px;
    color: white;
    font-size: 20px;
    background-color: dimgrey;
    width: 150px;
    display: inline-block;
    text-align: center;
}

    #tournament_status_header.entry_open {
        background-color: green;
    }

    #tournament_status_header.cancelled {
        background-color: red;
    }

    #tournament_status_header.entry_closed {
        background-color: red;
    }

    #tournament_status_header.active {
        background-color: orange;
    }

    #tournament_status_header.complete {
        background-color: dodgerblue;
    }

#title_tournament_name {
    display: inline-block;
}

div.league-group table tr.progressed {
    border-bottom: 1pt dashed black;
}

div.league-group table tr.player-removed {
    text-decoration: line-through;
}

table td i.success {
    color: lawngreen;
}

table td i.warning {
    color: orange;
}

table td i.danger {
    color: red;
}

table td i.primary {
    color: blue;
}

#brackets_container {
    display: none;
}

#groups_container {
    display: none;
}

button.edit-result {
    display: none;
    border: 1px darkred;
    padding: 2px 5px 2px 5px;
}

    button.edit-result.admin {
        display: block;
    }

div.edit-fixture-score input {
    width: 50px;
}

div.edit-fixture-score label {
    width: 150px;
}

table.league-table td, table.league-table th {
    text-align: center;
}

    table.league-table td:first-of-type, table.league-table th:first-of-type {
        text-align: left;
    }


table.group-fixtures td, table.group-fixtures th {
    text-align: left;
}

table.group-fixtures thead tr {
    background-color: #4f728e;
    color: white;
}

table.group-fixtures thead th {
    border: none;
}

table.group-fixtures td:last-of-type {
    text-align: center;
    width: 50px;
}

table.group-fixtures div.winner {
    font-weight: bold;
}

table.group-fixtures div span.average {
    font-style: italic;
    margin-left: 10px;
    color: #73737e;
}

span.group-header {
    display: block;
    width: 100%;
    text-align: center;
    background: #4f728e;
    color: white;
    padding: 5px;
    font-size: 16px;
}

div.group-fixture-format-header button {
    float:right;
}