:root {
	--white: #fff;
    --black: #000;
	--main-header: rgba(41,178,232, .8);
	--light-green: #84ff86;
	--light-red: #ff8484;
}

html,
body {
    height: 100%;
	color: var(--body-color);
}

a, a:hover, a:focus {
	color: var(--link-color);
}

/* Глобально убираем outline-рамку на фокусе ссылок и кнопок
   (дефолт браузера мешает в галереях и кликабельных блоках) */
a:focus,
a:active,
button:focus,
button:active,
.btn:focus,
.btn:active,
.btn.active:focus {
	outline: none !important;
	outline-offset: 0 !important;
	box-shadow: none !important;
	-webkit-tap-highlight-color: transparent;
}

.wrap {
	background: var(--background-color);
    min-height: 100%;
    height: auto;
    margin: 0 auto -60px;
    padding: 0 0 60px;
}

.wrap > .container {
    padding: 15px;
}

.footer {
    height: 60px;
    background-color: var(--background-color);
    border-top: 1px solid #ddd;
    padding-top: 20px;
}

#w3-collapse {
	z-index: 100;
}

.fio__protest {
	display: none;
	border-bottom: 2px solid transparent;
}

.fio__protest.active {
	display: block;
}

.can__protest {
	color: var(--light-green);
}

.cannot__protest {
	color: var(--light-red);
}

.protest {
    position: relative;
    cursor: pointer;
	padding: 4px;
}

.protest::after {
    content: attr(data-popup-content);
    visibility: hidden;
    opacity: 0;
	display: block;
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-96%) translateY(0);
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 8px; 
    padding: 10px; 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15); 
    z-index: 10;
    white-space: nowrap;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.header {
	height: 160px;
    display: flex;
    align-items: center;
	padding-top: 4px;
}

.header-background {
	height: 52px;
	width: 100%;
	display: flex;
}

.header-container {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.header-container::before,
.header-container::after {
    display: none;
}

.logo-container {
	display: flex;
	gap: 10px;
	align-items: center;
}

.menu-item a {
	color: var(--white);
}

.jumbotron {
    text-align: center;
    background-color: transparent;
}

.jumbotron .btn {
    font-size: 21px;
    padding: 14px 24px;
}

.not-set {
    color: #c55;
    font-style: italic;
}

/* add sorting icons to gridview sort links */
a.asc, a.desc {
	white-space: nowrap;
	color: #3863a0;
}
a.asc:hover, a.desc:hover {
	color: #1e3250;
}
a.asc:after, a.desc:after {
    position: relative;
    top: 1px;
    display: inline-block;
    font-family: 'Glyphicons Halflings';
    font-style: normal;
    font-weight: normal;
    line-height: 1;
    padding-left: 5px;
}

a.asc:after {
	/*content: "\e151";*/
	content: "\2193";
}

a.desc:after {
	/*content: "\e152";*/
	content: "\2191";
}

/*.sort-numerical a.asc:after {*/
/*    content: "\e153";*/
/*}*/

/*.sort-numerical a.desc:after {*/
/*    content: "\e154";*/
/*}*/

/*.sort-ordinal a.asc:after {*/
/*    content: "\e155";*/
/*}*/

/*.sort-ordinal a.desc:after {*/
/*    content: "\e156";*/
/*}*/

/*.grid-view td {
    white-space: nowrap;
}

.grid-view .filters input,
.grid-view .filters select {
    min-width: 50px;
}*/

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

.insta-icon {
	background: url(/css/instalogo.png) no-repeat center center;
	background-size: cover;
	width: 45px;
	height: 45px;
	display: block;
}

/* align the logout "link" (button in form) of the navbar */
.nav li > form > button.logout {
    padding: 15px;
    border: none;
}

@media(max-width:767px) {
    .nav li > form > button.logout {
        display:block;
        text-align: left;
        width: 100%;
        padding: 10px 15px;
    }
}

.nav > li > form > button.logout:focus,
.nav > li > form > button.logout:hover {
    text-decoration: none;
}

.nav > li > form > button.logout:focus {
    outline: none;
}

.navbar-submain {
	background-color: var(--background-color);
	border: 0 none;
	font-size: 16px;
	margin-bottom: 0;
}

.navbar-main {
	background: var(--main-header);
}

.navbar-main .navbar-header {
	height: 50px;
}

.navbar-brand {
	background: var(--background-color) url(/css/msr_logo.png) center no-repeat;
	background-size: 190px auto;
	height: 150px;
	width: 150px;
	border-radius: 50%;
	border: 1px solid var(--main-header);
	position: relative;
	z-index: 1;
}

.nav-sport {
	background: var(--background-color) url(/css/sport.svg) center no-repeat;
	width: 70px;
	height: 98px;
	border: 1px solid var(--main-header);
	background-size: 60px;
}

.navbar-main .navbar-right {
	font-size: 0.7em;
}


.navbar-main .navbar-nav > li > a {
	font-size: 16px;
}

.burger {
	display: none;
}

@media (min-width: 1200px) {
	.navbar-main .navbar-right {
		font-size: 1em;
	}

	a:hover {
		transition: all .3s;
	}
}

@media (width < 1200px) {
	.navbar-main .navbar-nav > li > a {
		padding: 15px 6px;
	}
}

@media (width < 992px) {
	.navbar-nav {
		height: 40px;
	}

	.navbar-main .navbar-nav > li > a {
		padding: 10px 4px;
		font-size: 11px;
	}
	
	.header-background {
		height: 40px
	}

}

@media (width < 768px) {
	.nav-container.menu {
		display: none;
	}

	.burger {
		display: block;
		background: url(/css/icons/menu-burger.svg) center no-repeat;
		background-size: 36px;
		width: 36px;
		height: 36px;
	}

	.container {
		width: 480px;
	}

	.liders-title {
		flex-direction: column;
		gap: 16px;
		padding: 32px 0 12px 0;
	}

	.liders-item {
		margin: 0;
	}

	.kv-region {
		display: none;
	}
}

@media (width < 500px) {
	.container {
		width: 100%;
	}
}

.tag-selected {
	padding: 2px 3px 3px;
	background: var(--main-header);
	border-radius: 4px;
	color: var(--background-color);
}

.grid-view {
	max-width: 100%;
	overflow-x: auto;
	clear: both;
}

.gallery-item {
	display:block;
	margin-bottom:20px;
	height:130px;
}

.select2-container--krajee .select2-selection--multiple .select2-search--inline .select2-search__field {
	min-width:150px;
	min-height:36px;
}

.blueimp-gallery > .description {
	position: absolute;
	bottom: 70px;
	left: 50px;
	right:50px;
	text-align:center;
	color: var(--background-color);
	display: none;
	font-size:1.2em;
}
.blueimp-gallery-controls > .description {
	display: block;
	background:rgba(0,0,0,.2);
}

.blueimp-gallery-controls > .description.desc-error {
	top: 60%;
	font-size: 2em;
}
.blueimp-gallery-controls > .description.desc-error a {
	color: red;
}

.btn-print:hover {
	color:inherit;
}

.nav-tabs li a.disabled {
	color:#aaa;
}

.filling-comp .tab-content {margin-top:-1px}

.tab-content td {
	white-space:nowrap;
}

.small_index {
	margin-bottom:-3px;
	display:inline-block;
	vertical-align:sub;
}

@keyframes transp {
	0%{
		filter: blur(5px);
		opacity: 0;
	}
	20% {
		opacity: 1;
		filter: blur(0);
	}
	100%{
		opacity: 1;
		background: transparent;
		color: inherit;
	}
}

.updated-0{
	background: #5ac1ec;
}

.updated-0,
.updated-0 a {
	animation-name: transp;
	animation-duration: 15s;
	animation-timing-function: ease;
	animation-delay: 0s;
	animation-iteration-count: 1;
	animation-direction: normal;
	animation-fill-mode: forwards;
}

.two-max .col-md-6:nth-of-type(odd) {
	clear: both;
}

.next-garantie1 .show-garantie1,
.next-garantie2 .show-garantie2 {
	background:rgba(0, 119, 0, 0.3);
}
.finals-garantie .show-finals-garantie {
	background: var(--main-header);
}


.table-command td {
	white-space:normal;
}

.team-fio,
.team-times {
	margin-top: 4px;
	display: block;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.table-no-edit .team-fio,
.table-no-edit .team-times {
	margin: 0;
	line-height: inherit;
	display: inline;
}
.table-no-edit .team-fio:not(:last-child)::after {
	content: ', ';
}

.team-fios-wrapper {
	display: block;
	padding-left: 5px;
}

.final-item .team-fio:not(:last-child):after {
	content: ', ';
	line-height: inherit;
	display: inline-block;
}
.final-item .team-fio {
	margin: 0;
	overflow: visible;
	line-height: inherit;
	display: inline-block;
}

.team-time {
	margin-top: 5px;
	display: inline-block;
}

.team-name-final {
	font-weight: bold;
}

.nowrap {
	white-space: nowrap;
}

.liders-title {
	display: flex;
	justify-content: center;
	gap: 30px;
}

.table__team__gap {
	width: 300px;
	font-size: 20px;
}
.table__team__gap td {
	padding: 4px
}

.content__container {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

.telegram__icon {
	width: 24px;
	height: 24px;
}

.telegram__tab .telegram__icon {
	width: 17px;
	height: 17px;
	margin-right: 4px;
}

.nav-container>.nav>.menu-item.active>a,
.nav-container>.nav>.menu-item.active>a:hover,
.nav-container>.nav>.menu-item.active>a:focus,
.nav-container>.nav>.menu-item>a:hover,
.nav-container>.nav>.menu-item>a:focus {
	background-color: var(--header-active);
	transform: scale(1.03);
	border-radius: 2px;
}

.breadcrumb {
	background-color: var(--breadcrumb);
}

.pagination li span, .pagination li a {
	background: var(--pagination);
}

.pagination li.disabled span, .pagination li.disabled a {
	background: var(--pagination-disabled);
}

.pagination>.active>span, .pagination>.active>a {
	background: var(--pagination-active);
}

.pagination>.active>span:hover, .pagination>.active>a:hover {
	background: var(--pagination-hover);
}


body.no-scroll {
    overflow: hidden;
    height: 100%; 
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--background-color);
    z-index: 100;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.mobile-menu-overlay.open {
    transform: translateX(0);
}

.mobile-menu-content {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mobile-menu-content a {
    color: var(--body-color);
    text-decoration: none;
    padding: 10px 0;
    font-size: 30px;
	font-weight: 500;
}
.mobile-menu-content>.nav>li>a:focus,
.mobile-menu-content>.nav>li>a:hover {
	background-color: var(--background-color);
}

.dropdown-menu>li>a {
	font-size: 18px;
}

.close-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 30px;
    background: none;
    border: none;
    color: var(--body-color);
}