/* logout button (i hate bootstrap!)
-------------------------------------------------- */
.navbar-nav form {
    line-height: 20px;
}

.navbar-nav form .btn.logout {
    padding: 15px;
    border: none;
    text-decoration: none;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
    position: relative;
    min-height: 100%;
}

body {
    /* Margin bottom by footer height */
    /*margin-bottom: 60px;*/
}

#footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    /* Set the fixed height of the footer here */
    height: 60px;
    background-color: #f5f5f5;
    line-height: 60px;
}

header .navbar-link {
    color: #f6f6f6;
    padding: 15px;
    display: block;
    line-height: 20px;
    margin: 0;
    background: transparent;
    border: none;
}

header li:hover .navbar-link {
    background: rgba(0, 0, 0, 0.1);
}

#search-result .name {
    padding: 6px 0;
    display: inline-block;
}

.ttcup-player-history td.bold {
    font-weight: bold;
}

.table.table-auto {
    width: auto;
}

.red {
    color: red;
}

.blue {
    color: blue;
}

th em {
    color: #444;
    font-size: 0.9em;
    font-style: normal;
}

.flex {
    display: flex !important;
}

.mr-0, .mx-0 {
    margin-right: 0 !important;
}
.ml-0, .mx-0 {
    margin-left: 0 !important;
}

.pt-1, .py-1 {
    padding-top: .25rem !important;
}
.pb-1, .py-1 {
    padding-bottom: .25rem !important;
}
.pt-2, .py-2 {
    padding-top: .5rem !important;
}
.pb-2, .py-2 {
    padding-bottom: .5rem !important;
}

.alert-block {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: space-between;
    padding: 5px 5px 5px 15px;
    margin-bottom: 10px;
}

.match-edit .form-group {
    box-sizing: border-box;
    width: 100%;
    margin: 0;
}

.match-edit table td {
    vertical-align: middle !important;
}

.player-color-red {
    background-color: #ff0000 !important;
    color: #ffffff;
    font-weight: bold;
}

.player-color-blue {
    background-color: #0000ff !important;
    color: #ffffff;
    font-weight: bold;
}

.player-color-red a, .player-color-blue a {
    color: #ffffff;
    text-decoration: underline;
    font-weight: bold;
}

.nav-tabs > li.error > a {
    position: relative;
}

.nav-tabs > li.error > a:before {
    content: '!';
    font-weight: bold;
    font-size: 2em;
    color: #dd4b39;
    position: absolute;
    top: 0;
    left: 3px;
}

#player-list-wrap {
    max-height: 500px;
    overflow: auto;
}

li.langs {
    padding-top: 13px;
}

th.status, td.status {
    width: 105px;
}

th.status select, td.status select, td.status .custom-combobox, td.status .custom-combobox-input {
    width: 105px;;
}

.color-box {
    display: inline-block;
    vertical-align: middle;
    width: 14px;
    height: 14px;
    margin-left: 10px;
}

.icon-box {
    margin-left: 10px;
}

.search-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 3px;
}

.search-wrap .preloader {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 20px;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 3px;
}

.search-wrap .preloader .alert {
    position: absolute;
    width: 300px;
    text-align: center;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.search-wrap .pagination {
    margin-bottom: 0;
}

.search-wrap .pagination li {
    position: relative;
    float: left;
    padding: 6px 12px;
    margin-left: -1px;
    line-height: 1.42857143;
    background: #fafafa;
    color: #666;
    text-decoration: none;
    border: 1px solid #ddd;
    cursor: pointer;
}

.search-wrap .pagination li:hover {
    z-index: 2;
    color: #23527c;
    background-color: #eeeeee;
    border-color: #ddd;
}

.search-wrap .pagination li.disabled {
    cursor: not-allowed;
}

.search-wrap .pagination li.prev {
    margin-left: 0;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

.search-wrap .pagination li.active {
    z-index: 3;
    color: #fff;
    cursor: default;
    background-color: #337ab7;
    border-color: #337ab7;
}

.table.search-result th {
    color: #3c8dbc;
    cursor: pointer;
}

.table.search-result th:hover {
    color: #72afd2;
}

p.label {
    font-weight: bold;
    display: block;
    color: #000;
    margin-bottom: 5px;
    text-align: left;
    font-size: 14px;
    padding-left: 0;
}

.bord-view .view-wrapper {
    display: flex;
    flex-direction: row;
}

.nav-tabs {
    margin-bottom: 20px;
}

td .form-group {
    margin-bottom: 0;
}

td .form-group input[type=checkbox] {
    position: static;
    margin: 0;
}

#referee table td {
    vertical-align: middle;
}

#referee table th.score {
    min-width: 130px;
}

#referee table td.score {
    text-align: center;
    background-color: #d9edf7;
}

#referee table td.score span.btn {
    padding: 3px 15px 4px 15px;
    font-size: 14px;
    cursor: default;
}

.column-id {
    width: 50px;
}

.column-actions {
    width: 75px;
    text-align: center;
}

.column-status_id {
    text-align: center;
    width: 60px;
}

.filters .column-id {
    padding-left: 0;
    padding-right: 0;
}

.filters .column-status_id .form-control {
    padding-left: 0;
    padding-right: 0;
}

#translation-view th:first-child {
    width: 100px;
}

.table td, .table th {
    vertical-align: middle !important;
}

.team-index .column-type_id,
.team-index .column-sport_id,
.team-index .column-category_id,
.team-index .column-deleted_at,
.team-index .column-abbreviation {
    text-align: center;
    width: 100px;
}

.league-index .column-status_id,
.league-index .column-deleted_at,
.league-index .column-sport_id {
    text-align: center;
    width: 100px;
}

.ui-autocomplete-loading {
    background: white url("/images/ui-anim_basic_16x16.gif") right center no-repeat;
}


.form-inline .checkbox {
    padding-left: 20px;
}


body.referee-default-default .content-wrapper {
    height: 400px; /* fix inherit of children */
}

body.referee-default-default .content {
    height: 100%;
}

.referee-controls-frames-wrapper {
    height: 100%;
    width: 100%;
}

.referee-controls-frame {
    height: 100%;
    padding: 0;
}

.referee-controls-frame > iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* board */
.board-frame-wrapper {
    width: 800px;
    height: 600px;
}

.board-frame-wrapper > iframe,
.board-frame-wrapper > .empty-frame {
    width: 100%;
    height: 100%;
    border: none;
}

.board-frame-wrapper > .empty-frame {
    border: 1px solid #aaa;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: bold;
    color: rgba(0, 0, 0, 0.4);
}

/* tournament */
body.referee-default-default .content-header {
    display: none;
}

body.referee-default-default .content {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: center;
    justify-content: flex-start;
    padding: 0;
}

.tournament-controls {
    margin: 17px -15px 0 -15px;
    padding: 16px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;

    background: #FFFFFF;
    border: 1px solid #D2D6DE;
    box-sizing: border-box;
    border-radius: 2px;
    width: 100%;
}

.tournament-controls .row {
    margin: 0;
}

.tournament-controls .current-tournament button {
    margin-right: 8px;
}

.tournament-controls .current-tournament .modal-footer button {
    margin: 0 5px;
    background-color: #00a65a;
    border-color: #008d4c;
    color: #fff;
}

.tournament-controls .next-tournament button {
    margin-left: 8px;
}

.tournament-controls .tournament-name {
    font-weight: 600;
    font-size: 14px;
    line-height: 18px;
    color: #000000;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
}

.tournament-controls button,
.tournament-controls .button {
    box-sizing: border-box;
    border-radius: 2px;
    border-width: 1px;
    border-style: solid;
    padding: 7px 12px;
    cursor: pointer;
    font-style: normal;
    font-weight: normal;
    font-size: 14px;
    line-height: 18px;
    text-align: center;
    background: #F4F4F4;
    color: #444444;
    border-color: #dddddd;
    min-height: 34px;
    min-width: 34px;
    margin: 0;
    display: inline-block;
    text-decoration: none;
}

.tournament-controls button.red,
.tournament-controls .button.red {
    background: #DD4B39;
    border: 1px solid #D73925;
    color: #ffffff;
}

.tournament-controls button.orange,
.tournament-controls .button.orange {
    background-color: #F39C12;
    border-color: #E08E0B;
    color: #fff;
}

.tournament-controls button.green,
.tournament-controls .button.green {
    background-color: #00A65A;
    border-color: #008D4C;
    color: #fff;
}

.tournament-controls button.transparent,
.tournament-controls .button.transparent {
    background: transparent;
    border-color: transparent;
}

.tournament-controls button[disabled=disabled],
.tournament-controls .button[disabled=disabled] {
    opacity: 0.5;
    cursor: default;
}

.tournament-controls .current-tournament,
.tournament-controls .next-tournament {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.tournament-controls.row:before,
.tournament-controls.row:after {
    display: none;
}

/* match and tournament status */
.match-status,
i.tournament-status {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 8px;
    background: #eee;
    margin: 0 8px;
}

.main-footer {
    background: #ecf0f5;
    border-top: none;
    padding: 15px 0 0 0;
}

#next-prev-tournament-nav {
    margin: 0;
}

.footer-content {
    background: #fff;
    padding: 15px;
    border-top: 1px solid #d2d6de;
}

.filters td, .filters th {
    position: relative;
}

.table-responsive {
    overflow-x: inherit;
}

form .el-input {
    width: 100% !important;
}

form .el-input > .el-input__inner {
    height: 34px;
    padding-top: 6px;
    padding-bottom: 6px;
    border-radius: 0;
}

.el-input__prefix, .el-input__suffix {
    top: -3px;
}

.has-error .el-input > .el-input__inner {
    border-color: #dd4b39;
}

.skin-blue .sidebar-menu .treeview-menu > li > button {
    background: none;
    color: #8aa4af;
    display: inline-block;
    width: 100%;
    text-align: left;
}

.skin-blue .sidebar-menu .treeview-menu > li > button:hover {
    color: #fff;
}

.popup-message {
    display: none;
    position: fixed;
    padding: 20px;
    border-radius: 4px;
    background: #fff;
    top: 100px;
    right: 100px;
    width: 500px;
    border: 1px solid #367fa9;
    opacity: 0;
    transition: opacity 1s ease;
}

.popup-message.active {
    display: block;
    opacity: 1;
}

.popup-message.error {
    border-color: #d73925;
}

.popup-message.success {
    border-color: #008d4c;
}

.previous-tournament.row.vertical-center {
    display: flex;
    flex-direction: row;
}

.sport-select, .match-commentator, .match-console {
    overflow: hidden;
    max-width: 55px;
}

.column-console_id .multiselect.dropdown-toggle {
    overflow: hidden;
    max-width: 55px;
}

.event-type-form .icon {
    max-height: 25px;
}

.icon-wrap {
    display: inline-block;
    width: 14px;
    height: 14px;
    vertical-align: middle;
    margin-right: 10px;
}

.icon-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.match .top-controls {
    padding-top: 0;
    margin-left: 0;
    margin-right: 0;
}

.match .tournament-controls, .match .controls-wrapper {
    margin-left: 0;
    margin-right: 0;
}

.match .dropdown-list.match-list li {
    padding: 0;
}

.match .dropdown-list.match-list a {
    color: #000;
    display: block;
    width: 100%;
    height: 100%;
    padding: 7px 12px;
}

.match .match-score-control {
    text-align: center;
}

.match .player-controls {
    margin-bottom: 12px;
}

.previous-tournament img {
    transform: rotate(180deg);
}

.match .referee-match-selector {
    margin-right: 0;
}

.referee-check-modal {
    display: none;
}

.panel-controller .list-group {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
}

.panel-controller .list-group .list-group-item {
    margin: 0 4px 4px 0;
    min-width: 300px;
}

.panel-controller .list-group .list-group-item:first-child,
.panel-controller .list-group .list-group-item:last-child {
    border-radius: 0;
}

.panel-sport {
    width: 100%;
}

.panel-controller .list-group .list-group-item .list-group-item-heading {
    font-weight: bold;
    padding-right: 20px;
}

.panel-controller .controller-title, .panel-sport .panel-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-between;
}

.controller-title .badges {
    display: flex;
    align-items: center;
    justify-content: center;
}

.panel-controller .panel-title p {
    margin: 0;
}

.panel-controller .panel-title h4 {
    margin: 0;
}

.panel-controller .panel-heading,
.panel-controller .panel-body {
    padding: 5px;
}

.controller-title .badges > span {
    margin-right: 5px;
}

.panel-controller .badge {
    background-color: #777 !important;
}

.panel-controller .badge.success {
    background-color: #3c763d !important;
}

.panel-controller .badge.danger {
    background-color: #a94442 !important;
}

.panel-controller .panel-title .badges > span:last-child {
    margin-right: 0;
}

.panel-controller .list-group-item {
    padding: 5px;
}

.panel-controller .list-group-item div {
    margin: 0;
}

.panel-controller .list-group-item .list-group-item-heading .small {
    font-weight: normal;
}

.panel-sport .panel-title .small {
    color: #777777;
}

.panel-sport .panel-heading {
    background-color: #fefefe;
}

.panel-controller {
    border-color: #c6c6c6;
}

.panel-controller > .panel-heading {
    background-color: #f0f0f0;
}

.panel-controller .panel-heading[data-toggle="collapse"] {
    cursor: pointer;
}

#permissions .list-group-item {
    cursor: pointer;
}

#permissions .list-group-item.disable {
    cursor: not-allowed;
}

#permissions .panel-controller .panel-title {
    position: relative;
    padding-left: 61px;
}

#permissions .panel-controller .btn-group {
    margin: 0 !important;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.panel-controller .btn-group .btn {
    padding: 2px 4px;
    font-size: 12px;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice{
    color: #777;
}

a.start-link {
    font-size: 20px;
}

.board-view .broadcast-body iframe {
    width: 100%;
    height: 460px;
}

.board-view .broadcast-header {
    display: none;
}

.board-view .fullscreen-active {
    position: fixed;
    background: rgba(0, 0, 0, 0.8);
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    overflow: hidden;
}

.board-view .fullscreen-active .broadcast {
    position: absolute;
    width: 100%;
    height: 100%;
}

.board-view .fullscreen-active .broadcast .broadcast-header {
    display: block;
    position: absolute;
    width: 95%;
    height: 4%;
}

.board-view .fullscreen-active .broadcast .broadcast-header .close {
    font-size: 5em;
    color: #fff;
    filter: none;
    opacity: 0.7;
}

.board-view .fullscreen-active .broadcast-body {
    position: absolute;
    top: 6%;
    left: 2.5%;
    width: 95%;
    height: 90%;
}

.board-view .fullscreen-active .broadcast-body iframe {
    height: 100%;
}

table.table.sport-match-type-id tr td:first-child{
    width: 60px;
}
table.table.sport-match-type-id tr td:nth-child(2){
    width: 125px;
}

.asc:after{
    margin-left: 2px;
    font-family: FontAwesome;
    font-weight: 900;
    content: "\f161";
}
.desc:after{
    margin-left: 2px;
    font-family: FontAwesome;
    font-weight: 900;
    content: "\f160";
}

table thead tr:nth-child(1) th{
    background-color: #ecf0f5;
    position: sticky;
    top: -2px;
    z-index: 10;
}

.content-header{
    padding-bottom: 20px;
}
#content-wrapper{
    overflow-y: auto;
    padding-top: 0;
}

a.participant-link,
a.team-link,
a.gamer-link{
    color: inherit;
}

.gaming-day-wrap {
    margin-top: 20px;
}
.gaming-day-wrap button{
    display: block;
    margin-top: 5px;
}
.gaming-day-wrap input.except-finished{
   margin: 0 5px;
   vertical-align: inherit;
}
.gaming-day-wrap label.except-finished{
    vertical-align: text-top;
}

#bookie-match-report #filter {
    margin-bottom: 40px;
}

#bookie-match-report #report {
    position: relative;
}

#bookie-match-report #report table {
    border-collapse: separate;
}

#bookie-match-report #report .report-controls {
    position: absolute;
    right: 0;
    top: -50px;
}

#bookie-match-report #report th {
    vertical-align: middle;
}

#bookie-match-report #report .column-date {
    width: 60px;
    vertical-align: middle;
}

#bookie-match-report #report .column-time {
    width: 40px;
    vertical-align: middle;
}

#bookie-match-report #report .column-league{
    width: 200px;
    vertical-align: middle;
}

#bookie-match-report #report .column-status {
    width: 100px;
    text-align: center;
    vertical-align: middle;
}

#bookie-match-report #report .column-bookie_company {
    width: 20px;
}

#bookie-match-report #report th {
    height: 80px;
}


#bookie-match-report #report th.column-bookie_company div {
    width: 20px;
    overflow: hidden;
    height: 100%;
}

#bookie-match-report #report td.column-bookie_company {
    text-align: center;
    vertical-align: middle;
    font-size: 18px;
}

#bookie-match-report #report .table-striped > tbody > tr {
    background-color: rgb(236, 240, 245);
}

#bookie-match-report #report .table-striped > tbody > tr:nth-of-type(2n+1) {
    background-color: rgb(176, 202, 218);
}

#bookie-match-report #report th.column-bookie_company .rotated {
    display: inline-block;
    transform: rotate(-90deg);
    white-space: nowrap;
    transform-origin: 34px 35px;
}

#bookie-match-report #report td.column-bookie_company {
    line-height: 18px;
}

#bookie-match-report #report td.column-bookie_company.clickable {
    cursor: pointer;
}

#bookie-match-report #report .no-clickable {
    cursor: not-allowed;
}

#bookie-match-report #report .in-process {
    cursor: progress;
}

#bookie-match-report #report .flag-ok {
    color: #5CB85C;
}

#bookie-match-report #report .flag-remove {
    color: #D9534F;
}

#bookie-match-report #report td.column-bookie_company.in-process .flag-remove,
#bookie-match-report #report td.column-bookie_company.in-process .flag-ok {
    color: #484848;
}

#bookie-match-report #report td.column-bookie_company .flag-not_available {
    opacity: 0.5;
    font-size: 14px;
}

#bookie-match-report #report td {
    border-width: 1px;
}

#bookie-match-report #report td.column-bookie_company.waiting {
    border-color: #5CB85C;
}

#bookie-match-report #report td.column-bookie_company.in-process {
    border-color: #808080;
}

#bookie-match-report #report td.column-bookie_company.has-error {
    border-color: #D9534F;
}

#report .messages {
    position: fixed;
    width: 550px;
    top: 65px;
    right: 15px;
    z-index: 20;
}

#report .message {
    padding: 10px;
    margin-bottom: 10px;
    position: relative;
}

#report .message button.close {
    right: -5px;
}

#report .ws-status {
    position: fixed;
    top: 14px;
    right: 500px;
    display: block;
    width: 25px;
    height: 25px;
    border-radius: 100%;
    box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.3);
    z-index: 10000;
}

#report .ws-status.connected {
    background-color: green;
}

#report .ws-status.disconnected {
    background-color: orange;
}

#report .ws-status.error {
    background-color: red;
}

#report .ws-status.connecting {
    background-color: blue;
}

#report .select2-container .select2-selection--multiple{
    min-height: 34px;
}

#bookie-match-report #report .report-controls .sport-filter{
    display: inline-block;
    min-width: 350px;
}

.form-group.field-systemuserform-location .select2-selection__choice__display {
    color: #000;
}

.modal-info{
    position: relative;
    padding: 15px;
}

.tournament-marker, .tournament-referee {
    overflow: hidden;
    max-width: 55px;
}

div#import div.brands {
    margin: 10px 0;
}
div#import div.brands .error{
    border-color: #D9534F;
}

.bookie-match-report-apply{
    display: inline-block;
    margin: 0 0 0 10px;
}
.bookie-match-report-limits{
    display: inline-flex;
    float: right;
    font-weight: 700;
}
.bookie-match-report-limits .limit-label{
    margin: 0 0 0 10px;
    color: #FF0000;
}
.bookie-match-report-limits .cnt{
    background-color: #f4f4f4;
    color: #444;
    border-radius: 3px;
    box-shadow: none;
    border: 2px solid #ddd;
    margin: 0 10px;
    min-width:25px;
    display: inline-block;
    padding: 0 2px 0 5px;

}
.bookie-match-report-limits .opened-label{
    margin: 0 0 0 10px;
    color: #1c7430;
}

.out-of-limit-opened-reports{
    margin: 0 0 55px 0;
}

.out-of-limit-opened-reports i.fa-exclamation-triangle{
    margin: 0 20px 0 10px;
}
.out-of-limit-opened-reports .alert-icon{
    display: flex;
    align-items: center;
}
.out-of-limit-opened-reports .msg{
    display: inline-block;
}

.import-translation .pagination {
    margin: 0;
}

.import-translation .pagination li {
    cursor: pointer;
    position: relative;
    float: left;
    padding: 6px 12px;
    margin-left: -1px;
    line-height: 1.42857143;
    color: #337ab7;
    text-decoration: none;
    background-color: #fff;
    border: 1px solid #ddd;
}

.import-translation .pagination li.active {
    z-index: 3;
    color: #fff;
    cursor: default;
    background-color: #337ab7;
    border-color: #337ab7;
}

.import-translation .list-group-item.updated {
    background-color: #E8F4FF;
}

.import-translation .list-group-item.deleted {
    background-color: #ffcbcb;
}

.import-translation .list-group-item.ignored {
    background-color: #d6deff;
}

.import-translation .list-group-item.warning {
    background-color: #ffe6ea;
}

.import-translation .list-group-item.errors {
    background-color: #f6ffba33;
}

.btn.to-draft-btn {
    background-color: #a9a9a9;
    color: #fff;
    margin: 0 0 0 5px;
}

.btn.ready-to-public-btn{
    background-color: #f8ba47;
    color: #fff;
    margin: 0 0 0 5px;
}

.btn.delete-btn{
    background-color: #800000;
    color: #fff;
    margin: 0 0 0 5px;
}

.d-flex {
    display: flex;
}

.flex-row {
    flex-direction: row;
}

.align-items-center {
    align-items: center;
}

.align-items-end {
    align-items: end;
}

.justify-content-center {
    justify-content: center;
}

.m-0 {
    margin: 0;
}

.p-0 {
    padding: 0;
}

.px-15 {
    padding: 0 15px;
}

.ps-xl-0 {
    padding-left: 0;
}

.bold {
    font-weight: bold;
}

.center {
    text-align: center;
}

@media (min-width:768px) {
    .modal-dialog-md{
        width:900px;
        margin:30px auto
    }
}

.ui-autocomplete {
    position: absolute;
    padding: 5px;
    min-width: 100%;
}

.ui-autocomplete-list {
    margin-bottom: 0;
    max-height: 160px;
    overflow: auto;
}

.glyphicon.spinning {
    animation: spin 1s infinite linear;
    -webkit-animation: spin2 1s infinite linear;
}

@keyframes spin {
    from { transform: scale(1) rotate(0deg); }
    to { transform: scale(1) rotate(360deg); }
}

@-webkit-keyframes spin2 {
    from { -webkit-transform: rotate(0deg); }
    to { -webkit-transform: rotate(360deg); }
}
