/* Common style */
:root {
	--stats-gray: #dcdcdc;
}
.text--small {
	font-size: 0.875rem;
}
.text--gray {
	color: rgba(0, 0, 0, 0.56);
}
.text--underline {
	text-decoration: underline;
}
.text--normal {
	font-weight: var(--font-weight-normal);
}
.container-xl--stats-table {
	max-width: initial;
}

/* Filters */
.stats-filter {
	border-top: 1px solid rgba(220, 220, 220, 1);
	border-left: 1px solid rgba(220, 220, 220, 1);
	border-right: 1px solid rgba(220, 220, 220, 1);
	padding: 0.5rem 0.8rem !important;
	font-size: 15px;
	background-color: var(--light);
	display: flex;
	align-items: center;
	min-height: 63.5px;
}
.stats-filter__main-container .stats-filter:first-of-type {
	border-radius: 5px 5px 0 0;
}
.stats-filter__main-container .stats-filter:last-of-type {
	border-bottom: 1px solid rgba(220, 220, 220, 1);
	border-radius: 0 0 5px 5px;
}
.stats-filter--advanced-btn {
	padding-top: 15px !important;
	padding-bottom: 15px !important;
	color: var(--primary);
    font-weight: var(--font-weight-normal);
}
.stats-filter--advanced-btn:hover {
	cursor: pointer;
}
.stats-filter .bootstrap-select button {
	background-color: white;
    border: 0;
    padding: 0;
    font-weight: var(--font-weight-normal);
    font-size: inherit;
    padding-top: 20px;
}
.stats-filter .bootstrap-select button::before {
	content: "";
    font-size: 12px;
    text-transform: uppercase;
    position: absolute;
    top: 2px;
    font-weight: var(--font-weight-light);
    color: var(--gray);
}
.stats-filter .bootstrap-select button::after {
	position: absolute;
    right: 0;
    top: 20px;
}
.stats-filter .bootstrap-select button.it-season::before {
	content: "Stagione";
}
.stats-filter .bootstrap-select button.en-season::before {
	content: "Season";
}
.stats-filter .bootstrap-select button.it-stats-type::before {
	content: "Statistiche";
}
.stats-filter .bootstrap-select button.en-stats-type::before {
	content: "Stats";
}
.stats-filter .bootstrap-select button.it-teams::before {
	content: "Squadre";
}
.stats-filter .bootstrap-select button.en-teams::before {
	content: "Teams";
}
.stats-filter .bootstrap-select button.it-positions::before {
	content: "Posizioni";
}
.stats-filter .bootstrap-select button.en-positions::before {
	content: "Positions";
}
.stats-filter .bootstrap-select button.it-weeks::before {
	content: "Giornate";
}
.stats-filter .bootstrap-select button.en-weeks::before {
	content: "Weeks";
}
.stats-filter .bootstrap-select button.it-rounds::before {
	content: "Turni";
}
.stats-filter .bootstrap-select button.en-rounds::before {
	content: "Rounds";
}
.stats-filter .bootstrap-select button.it-stats::before {
	content: "Statistica";
}
.stats-filter .bootstrap-select button.en-stats::before {
	content: "Stats";
}
.stats-filter .bootstrap-select button.it-position::before {
	content: "Posizione";
}
.stats-filter .bootstrap-select button.en-position::before {
	content: "Position";
}

.stats-filter .bootstrap-select.show>.btn-light.dropdown-toggle,
.stats-filter .bootstrap-select.show>.btn-light.dropdown-toggle:active,
.stats-filter .bootstrap-select .dropdown-toggle:focus,
.stats-filter .btn-light:not(:disabled):not(.disabled):active {
	background-color: inherit;
    border-color: inherit;
    outline: none !important;
	box-shadow: none !important;
}
.stats-filter .dropdown-menu {
	box-shadow: rgb(149 157 165 / 20%) 0px 8px 24px;
}
.stats-filter .bootstrap-select .dropdown-menu li.selected.active a,
.stats-filter .bootstrap-select .dropdown-menu li a:active,
.stats-filter .bootstrap-select .dropdown-menu li a:focus {
	color: var(--dark);
	background-color: inherit;
	border-color: inherit;
    outline: none !important;
	box-shadow: none !important;
}
.stats-filter .bootstrap-select .dropdown-menu li a {
	font-size: 15px;
	font-weight: var(--font-weight-light);
}
.stats-filter .bootstrap-select .dropdown-menu li a.active.selected {
	background-color: #dcdcdc73;
}
.stats-filter__plus-icon {
	width: 20px;
	height: 20px;
	position: relative;
	right: -4px;
}
.stats-filter__advanced-container {
	position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-color: var(--light);
    z-index: 10;
    padding: 1rem;
    display: none;
}
.stats-filter__advanced-container--closed {
	display: none;
}
.stats-filter__advanced-container--open {
	display: block;
}
.stats-filter--advanced {
    border: 1px solid rgba(220, 220, 220, 1);
    border-radius: 5px;
}
.stats-filter__advanced-close-icon {
	width: 25px;
	height: 25px;
}
.stats-filter__datesrange {
	width: 100%;
    border: 0;
    padding: 0;
    position: relative;
    top: -2px;
    font-size: 16px;
}
.stats-filter__datesrange:focus {
	outline: none;
}
.stats-filter__datesrange:hover {
	cursor: pointer;
}
.stats-filter__datesrange-label {
	font-size: 12px;
	color: var(--gray);
	font-weight: var(--font-weight-light);
	text-transform: uppercase;
}
.stats-filter--datesrange {
	display: block;
}
.daterangepicker .drp-buttons button.btn-primary,
.daterangepicker .drp-buttons button.btn-primary:active,
.daterangepicker .drp-buttons button.btn-primary:focus {
	background-color: var(--primary);
	border-color: var(--primary);
	outline: none;
	box-shadow: none;
}
.daterangepicker td.in-range {
	background-color: rgb(243 130 22 / 25%);
}
.daterangepicker td.active,
.daterangepicker td.active:hover {
	background-color: var(--primary);
}
.stats-filter .bootstrap-select button.actions-btn {
	padding: 0;
	background-color: #f3f3f3;
    padding: 0.5rem 1rem;
    font-size: 15px;
}
.stats-filter .bootstrap-select button.actions-btn:active {
	background-color: var(--stats-gray) !important;
}
.stats-filter--search-player {
	border: 0 !important;
	display: block;
}
.stats-filter__search-player-label {
	font-size: 12px;
    color: var(--gray);
    font-weight: var(--font-weight-light);
    text-transform: uppercase;
    margin-bottom: 0;
}
.stats-filter__search-player {
	font-weight: var(--font-weight-light);
    border: 0;
    border-bottom: 1px solid var(--gray);
    padding: 0;
    width: 100%;
    font-size: 16px;
}
.stats-filter__search-player:focus {
	outline: none;
}
.stats-filter__cr-slider {
	width: 100%;
	height: 10px;
}
.stats-filter__cr-slider .noUi-origin .noUi-handle {
	width: 30px;
    height: 30px;
    top: -10px;
    border-radius: 50%;
}
.stats-filter__cr-slider .noUi-origin .noUi-handle::before,
.stats-filter__cr-slider .noUi-origin .noUi-handle::after {
	content: initial;
}
.stats-filter__cr-slider .noUi-connects .noUi-connect {
	background-color: var(--stats-gray);
}
.stats-filter__cr-slider .noUi-handle .noUi-tooltip {
	border-radius: 50%;
    width: 25px;
    height: 25px;
    font-size: 14px;
    display: flex;
    align-items: center;
    font-weight: var(--font-weight-normal);
    bottom: 1px;
    border: 0;
    background-color: transparent;
    justify-content: center;
    transition: transform 0.25s cubic-bezier(0.215, 0.610, 0.355, 1.000);
}
.stats-filter__cr-slider .noUi-handle .noUi-tooltip:active {
	transform: translate(-50%, -30px);
	border: 1px solid var(--stats-gray);
	background-color: var(--stats-gray);
}
.stats-filter__cr-slider .noUi-handle .noUi-tooltip:hover {
	cursor: pointer;
}
.stats-filter__cr-slider .noUi-handle:focus {
	outline: none;
}
.stats-filter__cr-slider-label {
	font-size: 12px;
    color: var(--gray);
    font-weight: var(--font-weight-light);
    text-transform: uppercase;
    margin-bottom: 8px;
    display: block;
    text-align: center;
}

/* Table quick links */
.table-quick-links__container {
	display: flex;
	overflow-x: scroll;
}
.table-quick-links__button {
	background-color: var(--stats-gray);
    border-radius: 30px;
    min-width: 130px;
    padding: 0.2rem 0;
    margin-right: 1rem;
    font-size: 15px;
    font-weight: var(--font-weight-light);
}
.table-quick-links__button--active {
	background-color: var(--primary);
	color: var(--light);
	font-weight: var(--font-weight-normal);
}
.table-quick-links__button--active:hover {
	color: var(--light);
}

/* Table */
.table-stats__container {
	overflow-x: auto;
	margin-left: -15px;
	margin-right: -15px;
	min-height: 575px;
}
.table--stats {
	font-family: 'Roboto Condensed', sans-serif;
	white-space: nowrap;
	color: rgba(0, 0, 0, 0.60);
}
.table--stats thead tr th,
.table--stats thead tr td {
	color: var(--dark);
}
.table__col--count {
	color: var(--dark);
}
.table__col--player {
	color: var(--dark);
}
.table__col--sorted {
	color: var(--dark);
}
.table--stats thead th {
	background-color: var(--stats-gray);
	font-weight: 400;
	border: 0;
}
.table--stats tbody th,
.table--stats tbody td {
	background-color: var(--light);
	font-weight: lighter;
}
.table--stats th,
.table--stats td {
	padding: 5px 8px;
	text-align: center;
	border-top: 1px solid var(--stats-gray);
}
.table--stats th.table__col--count,
.table--stats td.table__col--count {
	min-width: 40px;
	max-width: 40px;
	position: sticky;
	left: 0;
	padding-right: 0;
}
.table--stats th.table__col--player,
.table--stats td.table__col--player {
	min-width: 120px;
	max-width: 120px;
	text-align: left;
	position: sticky;
	left: 40px;
}
.table--stats thead th:first-of-type,
.table--stats thead th:nth-child(2) {
	background-color: var(--stats-gray);
	z-index: 5;
}
.table--stats tbody td:first-of-type {
	box-shadow: 2px 0px 2px -1px var(--stats-gray);
	overflow: hidden;
	text-overflow: ellipsis;
}
.table--stats thead th:nth-child(2) {
	box-shadow: 2px 0px 2px -1px #c1c1c1;
}
.table__col--asc::after {
	content: "";
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-bottom: 4px solid var(--dark);
	border-top: 0;
	margin-left: 5px;
	position: relative;
    bottom: 12px;
}
.table__col--desc::after {
	content: "";
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-top: 4px solid var(--dark);
	border-bottom: 0;
	margin-left: 5px;
	position: relative;
    top: 12px;
}
.table--stats tbody th:first-of-type,
.table--stats tbody td:first-of-type {
	font-weight: normal;
}
.table__col--sort {
	font-weight: normal !important;
}
.table__col--sortable:hover {
	cursor: pointer;
}
.table__col--sorted {
	font-weight: var(--font-weight-normal) !important;
}
.daterangepicker .ranges li.active {
	background-color: var(--primary);
}
.pagination-container {
	display: flex;
	justify-content: center;
}
.paginationjs .paginationjs-pages li>a {
	display: flex;
	justify-content: center;
	align-items: center;
	min-width: 35px;
	min-height: 35px;
}
.paginationjs .paginationjs-pages li.active>a {
	height: 37px;
}
.table__col--player-link {
	color: inherit;
}
.table__col--player-link:hover {
	color: inherit;
}
#loadingSpinner {
	position: relative;
	top: -450px;
}

/* Glossary */
.pagination-glossary-container {
	display: flex;
	flex-direction: column;
}
.glossary {
	font-size: 14px;
}
.glossary__btn-container {
	display: flex;
	justify-content: center;
	align-items: center;
}
.glossary__btn {
	display: flex;
    justify-content: center;
    align-items: center;
    border: 0;
    background: transparent;
    font-weight: var(--font-weight-light);
    color: var(--gray);
    padding: 0;
}
.glossary__btn.collapsed::after {
	content: "";
    border-top: 5px solid var(--gray);
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 0;
    margin-left: 7px;
}
.glossary__btn::after {
	content: "";
    border-top: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid var(--gray);
    margin-left: 7px;
}
.glossary__btn:focus {
	outline: none;
}
.glossary__btn-text {
	text-decoration: underline;
}
.glossary__container {
	font-size: 14px;
	margin-top: 10px;
	color: var(--gray);
}
.glossary__key {
	font-weight: var(--font-weight-bold);
}
.glossary__value {
	margin-left: 5px;
}

/* Empty result alert */
#emptyResultAlert {
    width: 80%;
    position: absolute;
    left: 50%;
    margin-right: -50%;
    transform: translate(-50%, -50%);
    margin-top: 60px;
}

/* Desktop style */
@media only screen and (min-width: 768px) {
	/* Filters */
	.stats-filter {
		border-left: 0;
		border-bottom: 1px solid rgba(220, 220, 220, 1);
		font-size: 16px;
		padding: 0.5rem 0.8rem !important;
	}
	.stats-filter__main-container {
		overflow: initial;
	}
	.stats-filter__main-container .stats-filter:first-of-type {
		border-radius: 5px 0 0 5px;
		border-left: 1px solid rgba(220, 220, 220, 1);
	}
	.stats-filter__main-container .stats-filter:last-of-type {
		border-radius: 0 5px 5px 0;
	}
	.stats-filter--advanced {
	    border: 1px solid rgba(220, 220, 220, 1);
	    border-radius: 5px;
	    margin-right: 1rem;
	}
	.stats-filter__advanced-container {
		position: initial;
	    top: initial;
	    left: initial;
	    right: initial;
	    bottom: initial;
	    width: initial;
	    height: initial;
	    background-color: var(--light);
	    z-index: initial;
	    padding: initial;
	    display: none;
	}
	.stats-filter__advanced-container--open {
		display: flex;
	}

	/* Table */
	.table-stats__container {
		margin-left: 0;
		margin-right: 0;
	}
	.table--stats tbody td:first-of-type {
		box-shadow: none;
	}
	.table--stats thead th:nth-child(2) {
		box-shadow: none;
	}

	.table--stats th.table__col--count,
	.table--stats td.table__col--count {
		display: table-cell;
	}

	.pagination-container {
		justify-content: flex-end;
		order: 1;
		margin-left: auto;
	}

	.pagination-glossary-container {
		flex-direction: row;
	}
	.glossary__container {
		margin-top: 16px;
	}
}

/* Animations */
/* ----------------------------------------------
 * Generated by Animista on 2021-1-20 18:6:44
 * Licensed under FreeBSD License.
 * See http://animista.net/license for more info.
 * w: http://animista.net, t: @cssanimista
 * ---------------------------------------------- */
.slide-in-bottom {
	-webkit-animation: slide-in-bottom 0.3s cubic-bezier(0.190, 1.000, 0.220, 1.000) both;
	        animation: slide-in-bottom 0.3s cubic-bezier(0.190, 1.000, 0.220, 1.000) both;
}
@-webkit-keyframes slide-in-bottom {
  0% {
    -webkit-transform: translateY(1000px);
            transform: translateY(1000px);
    opacity: 0;
  }
  100% {
    -webkit-transform: translateY(0);
            transform: translateY(0);
    opacity: 1;
  }
}
@keyframes slide-in-bottom {
  0% {
    -webkit-transform: translateY(1000px);
            transform: translateY(1000px);
    opacity: 0;
  }
  100% {
    -webkit-transform: translateY(0);
            transform: translateY(0);
    opacity: 1;
  }
}

.bootstrap-select>select {
	left: unset;
}
