.clan-battles {
    margin-bottom: 30px;
}

.clan-battles tr {
    border: 1px solid #f2f2f2;
}

.clan-battles tr td, .clan-battles tr th {
    text-align: left;
}

.clan-battles tr td:first-child {
    background: url(../img/icons/swords-16.svg) no-repeat 10px center;
    padding-left: 35px;
}

.battle-info {
    margin-bottom: 30px;
}

.battle-date {
    color: #868686;
}

.battle-desc {
    margin: 15px 0;
    max-height: 250px;
    overflow: auto;
}

.members {

}

.members .member {
    display: flex;
    padding-top: 15px;
}

.member.is_my_clan {
    background: #fffdf0;
}

.member.winner {

}

.place {
    text-align: center;
    width: 90px;
    margin-right: 15px;
}

.place div {
    font-size: 30px;
}

.place-top div {
    font-size: 0;
}

.place-top span {
    display: none;
}

.place-other {
    padding-top: 10px;
}

.place-other span {
    display: block;
    font-size: 12px;
    margin-top: 5px;
    color: #989898;
    text-transform: lowercase;
}

.place .place-1 {
    background: url(../img/icons/medal-large-1.svg) no-repeat center;
    height: 90px;
    
}

.place .place-2 {
    background: url(../img/icons/medal-large-2.svg) no-repeat center;
    height: 64px;
}

.place .place-3 {
    background: url(../img/icons/medal-large-3.svg) no-repeat center;
    height: 64px;
}

.info {
    flex: 1;
    border-bottom: 1px solid #ededed;
    padding-bottom: 15px;
}

.members .member:last-child .info {
    border-bottom: none;
}

.clan-name {

}

.winner .clan-name {
    padding: 5px 0;
}

.clan-name a {
    font-size: 16px;
}

.winner .clan-name a {
    font-size: 24px;
}

.detail {

}

.detail span {
    display: block;
}

.show-players {
    display: none;;
}

.players {
    margin-top: 10px;
}

.players a {
    margin: 0 5px;
}

.medal-score {

}

.medal-score tr td:first-child, .medal-score tr th:first-child {
    width: 30px;
}

.medal-score tr td:nth-child(2), .medal-score tr th:nth-child(2) {
    text-align: left;
}

.medal-score tr td:last-child, .medal-score tr th:last-child {
    width: 60px;
}

.medal-score .place-1, .medal-score .place-2, .medal-score .place-3 {
    width: 32px;
}

.completed {
    color: #ff766c;
    display: inline-block;
    font-size: 16px;
    margin-bottom: 20px;
}

.battle-request {
    margin: 10px 0 25px;
}

.request-date {
    margin-bottom: 20px;
    padding: 10px 20px;
    border: 1px solid #9ed4ff;
    border-radius: 4px;
    background: #9ed4ff08;
    color: #2196f3;
}

.send-battle-request {
    display: inline-block;
    background: #8ac34b;
    color: #fff;
    padding: 5px 20px;
    border-radius: 4px;
    font-size: 16px;
}

.remove-battle-request {
    display: inline-block;
    background: #eead08;
    color: #fff;
    padding: 5px 20px;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 20px;
}

.add-member {
    background: #fff;
    color: #249c22;
    display: inline-block;
    padding: 2px 12px;
    border-radius: 4px;
    margin: 10px 0;
    border: 1px solid #249c22;
}


#submit_players {
    background: #8ac34b;
    color: #fff;
    padding: 5px 15px;
    display: inline-block;
    font-size: 16px;
    border-radius: 4px;
}

.add-member:hover {
    background: #249c22;
    color: #fff;
}

.send-battle-request:hover, .remove-battle-request:hover, #submit_players:hover {
    opacity: 0.8;
    color: #fff;
}

.member-count {
    margin: 0 0 10px;
    color: #828282;
}

.memebers-full {
    margin-bottom: 15px;
    background: #4fad3712;
    padding: 5px 15px;
    color: #6ea532;
    border-radius: 4px;
    display: inline-block;
    margin-right: 15px;
}

.memebers-no {
    margin-bottom: 15px;
    background: #f4433614;
    padding: 5px 15px;
    color: #f44336;
    border-radius: 4px;
    display: inline-block;
    margin-right: 15px;
}

.player-list {
    border: 2px solid #ededed;
    border-radius: 4px;
    margin-bottom: 15px;
}

.player-list .member {
    display: flex;
    align-items: center;
    margin: 5px 0;
}

.member-num {
    width: 45px;
    text-align: center;
    font-size: 20px;
    user-select: none;
}

.member-info {
    flex: 1;
}

.member .member-name {
    display: flex;
}

.member .member-steam {
    color: #9e9e9e;
}

.member-comment {
    font-style: italic;
    margin-left: 15px;
    font-size: 12px;       
    cursor: text;
}

.member-delete {
    width: 42px;
    background: url(../img/icons/cross.svg) no-repeat center;
    visibility: hidden;
    height: 42px;
    cursor: pointer;
    opacity: 0.7;
}

.member:hover .member-delete {
    visibility: visible;
}

.member .member-delete:hover {
    opacity: 1;
}

.dlg-player-list {
    max-height: 350px;
    overflow: auto;
}

.dlg-player-list .player-item {
    display: flex;
    padding: 5px 10px;
    cursor: pointer;
    align-items: center;    
}

.dlg-player-list .player-item:hover {
    background-color: #fffbd3;
}

.dlg-player-list .player-item.selected {
    background-color: #fdf5a8;
}

.dlg-player-list .player-item .player-name {
    flex: 1;
}

.dlg-player-list .player-item .player-steam {
    width: 160px;
    font-size: 14px;
    color: #9e9e9e;
}

.dlg-player-list .player-item .player-role {
    width: 220px;
    font-size: 14px;
    color: #9e9e9e;
}

.is_reserved {
    display: flex;
    margin: 15px 0 0 0;
    align-items: center;
}

.is_reserved input {

}

.is_reserved label {
    flex: 1;
    font-weight: normal;
    font-size: 15px;
    margin-bottom: 0;
    margin-left: 5px;   
}

.member_comment {
    margin-top: 15px;   
} 

.member_comment input {
    margin-bottom: 0;
    background: #fbfbfb;
    border-radius: 4px;
    padding: 5px 15px;
    font-size: 14px;
}

.member-comment.comment-edit {
    display: none;
}

.member-name:hover .member-comment.comment-edit {
    display: inline-block;
}

.prefix {
    color: #9e9e9e;
    margin-left: 10px;
}

#dlgSendRequest {
    width: 700px;
    left: calc(50% - 350px);
    top: calc(50% - 200px);
}

.rules {
    max-height: 240px;
    overflow: auto;
}

.agree-rules {
    margin: 10px 0;
}

.shuffle-data {
    display: none;
    padding: 15px 25px;
    margin: 20px 0;
}
.shuffle-save {
    text-align: center;
    margin-top: 40px;
    display: none;
}
.shuffle-data h3 {
    margin: 0 0 25px !important;
}
.shuffle-row {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 0;
}
.shuffle-row * {
    font-size: 26px;
}
.shuffle-row span {
    margin: 0 15px;
    font-weight: bold;
}
.shuffle-row a {
    color: var(--main-link-color);
    width: calc(50% - 35px);
    height: 32px;
    line-height: 32px;
}
.shuffle-row a:first-child {
    text-align: right;
    display: flex;
    justify-content: right;
}
.shuffle-row a:last-child {
    text-align: left;
    display: flex;
    justify-content: left;
}
.shuffle-row i.loading {
    background: url(../img/icons/shuffle-loading.svg) no-repeat center;
    width: 32px;
    height: 32px;
    display: block;
    background-size: 32px;
}