﻿@font-face {
  font-family: 'Sriracha';
  src: url('/fonts/srirachacyrillic.otf') format('opentype');
}

@font-face {
  font-family: 'FuturisC';
  src: local('FuturisC-Bold'), url('/fonts/FuturisC-Bold.otf') format('opentype');
  font-weight: 800;
  font-style: bold;
}

@font-face {
  font-family: 'Gilroy';
  src: local('Gilroy ExtraBold'), local('Gilroy-ExtraBold'), url('/fonts/Gilroyextrabold.woff2') format('woff2'), url('/fonts/Gilroyextrabold.woff') format('woff'), url('/fonts/Gilroyextrabold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
}

@font-face {
  font-family: 'Calibri';
  src: url('/fonts/Calibri.eot');
  src: url('/fonts/Calibri.eot?#iefix') format('embedded-opentype'),
  url('/fonts/Calibri.woff') format('woff'),
  url('/fonts/Calibri.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Calibri';
  src: url('/fonts/Calibri-Bold.eot');
  src: url('/fonts/Calibri-Bold.eot?#iefix') format('embedded-opentype'),
  url('/fonts/Calibri-Bold.woff') format('woff'),
  url('/fonts/Calibri-Bold.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
}

html {
  font-family: Calibri, sans-serif;
  font-size: 12pt;
  line-height: 1.4em;
}

html,body {
  padding:0;
  margin:0;
  height: 100%;
}

a, a:visited {
  color: #17058D;
}

#bt-header {
  background: linear-gradient(180deg, #794b66 0%, #1f0f8c 100%);
  height: 75px;
}

#bt-logo {
  height: 65px;
  margin: 5px 10px;
  float:left;
  background: white;
  border-radius: 50%;
}

#bt-title {
  color: white;
  display: flex;
  width: calc(100% - 160px);
  height: 75px;
  text-align: center;
  padding-top:0px;
  font-size:17pt;
  line-height: 1.3em;
  font-weight: bold;
  align-items: center;
  gap: 1em;
}

#bt-sponsors {
  display:flex;
  gap:1em;
  max-width: calc(100% - 150px);
  overflow: auto;
}

#bt-sponsors img {
  max-height: 60px;
  background-color: white;
  padding:2px;
}

#bt-menu {
  height: calc(100% - 117px);
}

#bt-menu > ul {
  background: none;
}

#bt-menu > .ui-tabs-panel {
  overflow: auto;
  height: calc(100% - 55px);
}

#bt-menu-items {
  border-top: 5px solid white;
  border-bottom: 5px solid #264271;
  white-space: nowrap;
  overflow: auto hidden;
  display:flex;
  gap:4px;
}

#bt-menu-items > li {
  border: none;
  margin: 0;
  height: 40px;
  display: inline-block;
  float: none;
  background-color: #f0f0f0;
  border-radius: 0;
}

#bt-menu li.ui-state-active {
  background: linear-gradient(180deg, #794b66 0%, #1f0f8c 100%);
  border: none;
}

#bt-footer {
  background-color: #f0f0f0;
  height: 34px;
}

.bt-delete-model,.bt-delete-row,.pk-delete-model {
  cursor: pointer;
  color:red !important;
}
.pk-edit-row {
  cursor: pointer;
  color:blue !important;
}

.bt-menu-level2 {
  height: 100%;
}

.bt-menu-level2 > ul.ui-tabs-nav {
  height: 100%;
  overflow: auto;
  background-color: #f0f0f0;
}

.bt-tabs-under-wrapper, .bt-tabs-under-wrapper:hover {
  background-color: #f0f0f0 !important;
}

.bt-menu-level2 > div.ui-tabs-panel {
  height: 100%;
  overflow: auto;
  position: relative;
}

.ui-tabs-vertical {
  width: 100%;
  padding: 0 !important;
  border: none !important;
}

.ui-tabs-vertical > .ui-tabs-nav {
  padding: 0.2em .1em .2em .2em;
  float: left;
  width: 300px;
  border-right: none;
  box-sizing: border-box;
}
.ui-tabs .ui-tabs-nav li:first-child {
  margin-top:0;
}
.ui-tabs-vertical > .ui-tabs-nav li {
  clear: left;
  width: calc(100% - 5px);
  border-right-width: 0 !important;
}
.ui-tabs-vertical > .ui-tabs-nav li a { display:block; }

.ui-tabs-vertical > .ui-tabs-nav > li:hover {
  background-color: #5a80a7;
}
.ui-tabs-vertical > .ui-tabs-nav li:last-child {
  border-bottom-width: 1px !important;
}

.ui-tabs-vertical > .ui-tabs-nav li a {
  display: block;
  float:none !important;
}
.ui-tabs-vertical > .ui-tabs-nav li.ui-tabs-active {
  padding-bottom: 0; padding-right: .1em; border-right-width: 1px;
  border-right: none;
  font-weight: bold;
}
.ui-tabs-vertical > .ui-tabs-nav li.ui-tabs-active a {
  color: #F0F0F0 !important;
}
.ui-tabs-vertical > .ui-tabs-panel {
  padding: 5px 30px 10px 30px !important;
  float: right;
  width: calc(100% - 300px);
  box-sizing: border-box;
}

.ui-tabs-vertical > .ui-tabs-panel > .pk-over-navigation {
  margin-right: -30px;
  padding-right: 30px;
  box-sizing:border-box;
}

.bt-button {
  background: linear-gradient(180deg, #794b66 0%, #1f0f8c 100%);
  color: white;
  border: none;
  cursor: pointer;
  height: 38px;
  text-transform: uppercase;
  padding: 0 0.5em;
  border-radius: 6px;
  box-shadow: 3px 3px #ccc;
}
a.bt-button {
  color: white;
  display:inline-block;
  padding: 0.5em 1em;
  box-sizing: border-box;
  text-decoration: none;
}

.bt-button:disabled {
  background: linear-gradient(180deg, #929292 0%, #7c7c7c 100%);
}

.ui-tabs-panel {
  padding: 0 !important;
}
.bt-save {
  background: linear-gradient(180deg, #3fff3f 0%, #278a27 100%) !important;
  color: white !important;
  border: none !important;
}
.bt-cancel {
  background: linear-gradient(180deg, #fd9393 0%, #ff4f4f 100%) !important;
  color: white !important;
  border: none !important;
}

.bt-comma:not(:last-child):after {
  content: ", ";
}

thead {
  background: linear-gradient(180deg, #794b66 0%, #1f0f8c 100%);
  color: white;
}

.ui-dialog-titlebar {
  background: linear-gradient(180deg, #794b66 0%, #1f0f8c 100%) !important;
  color: white !important;
}

table {
  border-collapse: collapse;
}

.bt-scores {
  display: flex;
  justify-content: space-evenly;
  font-size:180%;
}
.bt-points {
  display: flex;
  justify-content: space-evenly;
  font-size:80%;
  line-height:1em;
}
.bt-points>span {
  margin: 0 2px;
  background: #eee;
  text-align:center;
}
.bt-points>span>span {
  display:block;
}
.bt-toggle-switch {
  position: relative;
  display: inline-block;
  width: 4em;
  height: 1em;
}

.bt-toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.bt-toggle-switch .bt-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: red;
  -webkit-transition: .4s;
  transition: .4s;
  border-radius: 0.5em;
  margin:0 0.5em;
}
.bt-slider:before {
  position: absolute;
  content: "";
  height: 0.8em;
  width: 0.8em;
  left: 0.1em;
  bottom: 0.1em;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .bt-slider {
  background-color: green;
}

input:focus + .bt-slider {
  box-shadow: 0 0 1px green;
}

input:checked + .bt-slider:before {
  transform: translateX(26px);
}

input:indeterminate + .bt-slider {
  background-color: #eee;
}
input:indeterminate + .bt-slider:before {
  background-color: #ccc;
  transform: translateX(14px);
}
.bt-game-status {
  float:right;
  font-family: FontAwesome;
}
.bt-game-status[data-status=""]:before,.bt-game-status:not([data-status]):before {
  content: "\f044";
}
.bt-game-status[data-status="in-progress"]:before {
  content: "\f254";
}
.bt-game-status[data-status="complete"]:before {
  content: "\f11e";
}
.bt-game-status[data-status="archive"]:before {
  content: "\f056";
  color:red;
}
.bt-player-bye {
  color: green;
}

body.bt-busy:after {
  content:    '';
	display:    block;
	position:   fixed;
	z-index:    1000;
	top:        0;
	left:       0;
	height:     100%;
	width:      100%;
	background: rgba( 255, 255, 255, .8 );
}

.bt-points[data-canceled="1"] [data-field^="vol1"]:empty:after,
.bt-points[data-canceled="1"] [data-field^="vol2"]:empty:after {
  content:'−';
  color:red;
  font-size:150%;
}



@keyframes blinker {
  from {opacity: 1.0;}
  to {opacity: 0.0;}
}

.bt-blink{
  animation-name: blinker;
  animation-duration: 0.6s;
  animation-iteration-count:infinite;
  animation-timing-function:ease-in-out;
  animation-direction: alternate;
}

.bt-select-one tbody tr:hover {
  background: #c3baff;
}

.bt-group-table [data-x="1"] {
  background: #999;
}
.bt-group-table [data-x="1"] * {
  display:none;
}

.bt-group-table [data-subset="results"] td {
  min-width: 40px;
  border: 1px solid black;
}
.bt-group-table [data-subset="results"] th {
  border: 1px solid black;
}


.bt-group-table tbody:empty{
  display:block;
  min-height:2em;
}

.bt-group-table [data-field="aux1"]:after,.bt-group-table [data-field="aux2"]:after,.bt-group-table [data-field="aux3"]:after,.bt-group-table [data-field="aux4"]:after {
  color: #494;
  margin-left:1em;
  font-size:0.8em;
}
.bt-w_m_l-aux1 [data-field="aux1"]:not(:empty):after,.bt-w_m_l-aux2 [data-field="aux2"]:not(:empty):after,.bt-w_m_l-aux3 [data-field="aux3"]:not(:empty):after {
  content:'w-l';
}
.bt-w_d_l-aux1 [data-field="aux1"]:not(:empty):after,.bt-w_d_l-aux2 [data-field="aux2"]:not(:empty):after,.bt-w_d_l-aux3 [data-field="aux3"]:not(:empty):after {
  content:'w/l';
}
.bt-personal-aux1 [data-field="aux1"]:not(:empty):after,.bt-personal-aux2 [data-field="aux2"]:not(:empty):after,.bt-personal-aux3 [data-field="aux3"]:not(:empty):after {
  content:'лич';
}
.bt-group-table [data-field="aux4"]:not(:empty):after{
  content:'жр';
}

.bt-red {
  color: red;
}

.bt-green {
  color: #494;
}

#bt-header {
  display: flex;
  padding: 0 1em;
  align-items: center;
  gap: 1em;
}

#logout {
  font-size: 150%;
  color: white;
  cursor: pointer;
}

.bt-mobile-menu {
  display:none;
  font-size: 150%;
  color: white;
  padding: 4px;
}

@media (max-width: 768px) {
  html,body {
    min-width: unset;
  }
  h3 {
    margin: 6px;
  }
  #bt-a-logo {
    display:none;
  }
  #bt-title>span:first-child {
    display:none;
  }
  #bt-menu-items li a {
    margin: 0;
  }
  li[aria-controls="tournament"] {
    margin-left: 0 !important;
  }
  .bt-menu-level2 {
    padding-top: 2em !important;
  }
  .bt-mobile-menu {
    display: inline-block;
    cursor: pointer;
    color: white;
  }
  .bt-mobile-menu2 {
    position: absolute;
    z-index: 1;
    left: 0.5em;
    top: 0.5em;
  }
  .bt-menu-level2  .ui-tabs-panel h3 {
    margin-left: 2em;
  }
  #bt-menu-items {
    display:none;
    position: fixed;
    width: 100%;
    flex-direction: column;
    z-index: 100;
    background: white !important;
    height: 0;
  }
  #bt-menu-items li:first-child {
    display: none;
  }
  #bt-menu-items li a {
    display: block !important;
    width: 100%;
    text-align: left;
  }
  #bt-menu-items.bt-mobile-active {
    display: flex;
    transition: all .5s ease-in-out;
    height: auto;
  }
  .bt-menu-level2 .ui-tabs-nav {
    display:none;
    position: fixed;
    width: 100%;
    flex-direction: column;
    z-index: 100;
    background: white !important;
    height: auto !important;
    #margin-top: 3em;
    top: 8em;
    bottom: 0;
  }
  .bt-menu-level2 .ui-tabs-nav.bt-mobile-active {
    display: flex;
    transition: all .5s ease-in-out;
    #height: 100% !important;
  }
  .ui-tabs-vertical > .ui-tabs-panel {
    width: 100%;
    padding: 1em !important;
  }
  #bt-menu-2 > .ui-tabs-panel {
    height: 100%;
  }

  #bt-players table,#bt-players thead,#bt-players tbody {
    display: block;
  }
  #bt-players tr {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
  }
  #bt-players th[data-fld="name"],#bt-players td[data-fld="name"]{
    grid-column: span 3;
  }
  #bt-players th[data-fld="city"],#bt-players td[data-fld="city"]{
    grid-column: span 2;
  }
  #bt-registration-form {
    width: 80% !important;
  }
  .bt-navigation {
    flex-wrap: wrap;
  }
}

.pk-models-list td {
  padding: 0 4px;
}

td.bt-holding-number {
  text-align: right;
}

input.bt-date {
  width: 5em;
}



.pk-report-table {
  background-color: white;
  border-collapse: collapse;
  table-layout: fixed;
}
.pk-report-table th {
  background-color: #ccc;
  background-clip: padding-box;
  cursor: pointer;
}
.pk-report-table th,.pk-report-table td {
  position: relative;
  border: 1px solid black;
  padding: 1px 4px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pk-report-table th:after {
  position: static;
  font-family: FontAwesome;
  content: "\f0dc";
  color: white;
  margin-left:0.5em;
}

.pk-report-table th[data-sort="asc"]:after {
  content: "\f0dd";
  color: black;
}

.pk-report-table th[data-sort="desc"]:after {
  content: "\f0de";
  color: black;
}
.ui-resizable-e {
  width: 10px;
}

.pk-report-autofilters {
  white-space: nowrap;
}
.pk-report-autofilter {
  display: inline-block;
  overflow: hidden;
  padding:4px;
}

.pk-report-autofilter a {
  padding: 4px 8px;
  border-radius: 1em;
  background-color: #d2d2d2;
  cursor: pointer;
}

.pk-report-filter-active a {
  background-color: #009b43;
  color: white;
}

.pk-report-table tfoot {
  font-weight: bold;
}
#bt-logo,#bt-logo2 {
  content:url("/images/oren/logo.png");
}