


body.authpage {
	display: flex;
	align-items: center; justify-content: center; 
    background: #EAEAEA;
}

.authform {
    width: 500px; padding: 1rem 3rem; max-width: 100%;
    background: var(--m-white);
    box-shadow: 4px 4px 4px var(--m-gray);
	box-sizing: border-box;
}

.authform .logo {
    width: 80%;
    margin: 3rem auto 3rem;
}

.authform h1 { text-align: center; margin: 1rem 0 2rem; text-transform: uppercase; font-weight: 300;}
.authform #submitBtn { margin-top: 0; width: 100%; }
.authform #toggleBtn {
	display: block;
	margin: 0.5rem auto 0;
}
.authform .success-text { margin-bottom: 1.5rem; }
.error { border-bottom: 1px solid var(--orange); font-weight: 500; padding-bottom: 7px; margin: 20px 0; }
#site-main section {
	margin-bottom: 2.5rem;
}

#wrapper { display: flex; height: 100%; }
#sidebar { 
    overflow-y: auto;
	overflow-x: hidden;
	flex: 0 1 320px;
    color: var(--m-white);
    display: flex;
    flex-flow: row;
}

#sidebar>.content {
    width: 100%;
    overflow-y: auto;
	background: var(--dark);
    min-width: 320px;
    display: flex;
    flex-flow: row;
}

#side-column {
    display: flex;
    flex-flow: column;
    height: max-content;
    min-height: 100%;
    width: 100%;
}

#sidebar .logo {
	width: 60%;
	margin: 1.5rem auto;
}

#content { 
    height: 100%;
    overflow-y: auto; 
    flex: 1;
    background: var(--bright);
	color: var(--dark);
    display: flex;
    flex-flow: column; 
}

.form-separator {
    margin-top: 2em; 
    margin-bottom: 1em;
}
#site-main code {
    display: block;
    color: #474747;
    background: white;
    padding: 1em;
    margin: 1em 0;
    min-height: 70px;
    max-width: 700px;
}

.wrap { padding: 3rem;}
form.office-form {
    width: 100%;
    max-width: 500px;
}
.office-form .custom-file { display: block; max-width: 300px; }
.office-form .custom-file label {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.office-form .form-group input[type="number"] {
    max-width: 100px;
}

.office-form select, .office-form select option {
    cursor: pointer; 
}
#side-menu .submenu { display: none; padding-left: 1rem; }
#side-menu li.active+ul.submenu { display: block; }
#sidebar #client_block { 
    margin: 20px 10px;
}


#side-menu h2 {
    font-size: 1em;
    font-weight: 500;
    color: var(--orange);
	margin: 1rem;
}

#side-menu .null-text {
	margin: 0.2rem 1rem 0.7rem;
}


#side-menu {
    font-size: 1.2em;
    margin-bottom: 1rem;
}

#site-main {
	flex: 1;
	background: linear-gradient(to bottom, var(--bright) 0, var(--white) 10rem) no-repeat;
	color: var(--dark);
}

#side-menu ul { margin-bottom: 5px; }
#side-menu li.active {
    color: var(--white);
    background: var(--orange);
}
#side-menu .submenu li.active {
    font-weight: 600;;
    background: none;
}
#side-menu li a {
    padding: 1rem;
	padding-left: 1.5rem;
    display: block;
    color: inherit;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}
#side-menu li a:hover, #side-menu li a:visited, #side-menu li a:active {
    text-decoration: none;
}
#mode-label {
    text-align: center;
    font-weight: 600;
    font-size: 1.3em;
}
#toggle-lk {
    margin: auto auto 1rem;
    font-size: 0.8em;
    display: block;
    width: max-content;
}
#site-footer { background: var(--white); color: var(--dark); }
#site-footer .wrap {
	padding-top: 0;
	padding-bottom: 1.5rem;
}
.clients-table thead th { flex: 1; }
.clients-table thead th, .clients-table tbody td { 
    vertical-align: middle;
    text-align: center;
}
.clients-table .number-col {
    width: 50px;
}
.clients-table .ident-col { width: 30%; text-align: left;  }
.clients-table tbody td.ident-col {
    vertical-align: top;
}

.filter-form select.form-control { width: 200px; max-width: 100%; }

#payForm { max-width: 350px; }
#tarifPriceBlock { font-size: 1.3em; margin-left: 0.7em; }


.page-item.disabled .page-link { background-color: #f7f7f7; }
.page-nav { display: flex; }
.page-nav form { margin-left: 0.75em; margin-right: 1em;  white-space: nowrap;}
.page-nav .form-control { max-width: 50px; background: none; color: white; display: inline-block; margin-right: 0.3em; }

#event_select {
    max-width: 150px;   
}

input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button { 
  -webkit-appearance: none; 
  margin: 0; 
}

.radiogroup, .choice-links { 
    display: flex; 
    flex-flow: row; 
    box-sizing: border-box;
    overflow: hidden;
    margin: 0.5rem 0 1rem;
}

.radiogroup label, .choice-links>a {
    margin: 0;
    cursor: pointer;
    justify-content: center;
    align-items: center;
    flex: 1; 
    width: auto;
	color: var(--orange);
    border: 1px solid var(--orange);
    border-right: none;
    overflow: hidden;
    text-decoration: none;
}

.radiogroup label:first-child, .choice-links>a:first-child {
    border-top-left-radius: 2px;
    border-bottom-left-radius: 2px;
}

.radiogroup label:last-child, .choice-links>a:last-child {
    border-right: 1px solid var(--orange);
    border-top-right-radius: 2px;
    border-bottom-right-radius: 2px;
}

.radiogroup input[type="radio"] { display: none; }

.radiogroup input[type="radio"] + span, .choice-links>a  {
    width: 100%;
    height: 100%;
    display: flex; 
    padding: 1rem 1.5rem;
    margin: 0;
    background: none;
    box-sizing: border-box;
	align-items: center;
    justify-content: center;
}

.radiogroup input[type="radio"]:checked + span, .choice-links a.active {
    background: var(--orange);
	color: var(--white);
	font-weight: 600;
}


#user-block .user-avatar {width: 10rem;max-width: 25%;margin-right: 1rem;}

#user-block {
    padding: 1rem;
	display: flex;
	flex-flow: row;
}

.user-avatar img {
    border-radius: 50%;
}

#user-block .user-info {
	margin-top: 0.5rem;
	margin-right: 1rem;
	flex: 1;
	overflow: hidden;
	line-height: 1.3;
}

#user-block .user-info>* {
	width: 100%;
	text-overflow: ellipsis;
	overflow: hidden;
}

#user-block .username {
	margin: 0;
}

.logout {
    margin-left: auto;
    width: 2rem;
    height: 2rem;
    background: url(../img/logout.svg) no-repeat;
    background-size: 100%;
	align-self: center;
}

.office-form small {
    margin-top: 0.5rem;
    display: block;
    font-size: 0.8em;
}

#site-main .header {
	display: flex;
	flex-flow: row wrap;
}

#site-main .header h1 {
	margin-right: 1rem;
}

#site-main .header .btn {
    margin-left: auto;
    margin-top: 0;
	height: 100%;
}


.office-form .btn {
	margin-top: 0.7rem;
}

.copy-block {
    margin: 1rem 0;
    max-width: 500px;
    display: flex;
    flex-flow: column;
}


.copy-content {
    padding: 0.9rem;
    border: 1px solid var(--orange);
    color: var(--orange);
    text-overflow: ellipsis;
    overflow: hidden;
}

.copyed {
	animation-duration: 700ms;
    animation-name: copyed;
}

.copy-content a {
	color: inherit;
}

#path-uri {
    white-space: nowrap;
    font-size: 1.4em;
}

.copyb {
	margin-top: 0 !important;
    width: max-content;
    font-size: 1em;
    margin-left: auto;
    border-top: none;
    padding: 0.5rem 1.5rem;
}

.small-wrap {
	max-width: calc(500px + 6rem);
}

.step-descr {
	margin-bottom: 2rem;
}

.step-going {
    margin-top: 2rem;

}

.progress-step {
    margin: 1.5rem 0;
}

.step-image {
    margin-top: 1rem;
}

.progress-comment {
    margin-bottom: 2rem;
}

.mentor-do {
    margin-top: 2rem;
}

.go-form {
	margin-top: 1.5rem;
}



.file-block input[type="file"] {
	display: none;
}

.file-block {
	display: flex;
	flex-flow: row;
	width: 100%;
}

.file-choice-block {
	margin-left: auto;
}

.file-block label {
	margin-top: 0.7rem;
	margin-right: 1rem;
}

.file-block .file-choice {
	background: var(--gray);
	color: var(--white);
	padding: 0.7rem 1rem;
	font-weight: 500;
}

.file-block.selected .file-choice {
	background: var(--orange);
}

.list .submenu {
    display: none;
}

.list-item, a.list-item, .list a {
    display: block;
    color: var(--dark);
    padding: 0.7rem;
    background: var(--white);
    border-bottom: 1px solid var(--gray);
    transition: all 100ms;
}

.list-item:hover, .list a:hover {
    background: var(--gray);
}

.progress-step-buttons {
	margin-top: 1rem;
}

@keyframes copyed {
  0% {
	background: transparent;
	color: var(--orange);
  }

  20% {
    background: var(--orange);
	color: var(--bright);
  }

  100% {
    background: transparent;
	color: var(--orange);
  }
}

@media screen and (max-width: 768px) {
	.copyb {
		width: 100%;
    }
    
	#copyright { text-align: center; }
	#sidebar {
		position: fixed;
		height: 100%;
		width: 100%;
		top: 0;
		right: 100%;
		transition: all 300ms;
    }

    
    #sidebar>.content {
        max-width: 20rem;
        min-width: auto;
    }

	body.nav-open #sidebar {
		right: 0;
	}
	
	#sidebar .header {
		display: flex;
		flex-flow: row;
		align-items: center;
        padding: 1rem;
	}
	
	#sidebar .header .logo {
		margin-left: auto;
		margin-right: 0;
	}

	.wrap {
		padding: 1.5rem;
	}
	
	#site-footer .wrap {
		padding-top: 0;
	}

	
    body.authpage {
        background: var(--m-white);
        align-items: flex-start;
    }
	
	.radiogroup input[type="radio"] + span, .choice-links>a {
		padding: 0.5rem 1.2rem;
		min-height: 3em;
	}
    
    .authform {
        box-shadow: none;
    }
	
	#site-main .header {
		margin-bottom: 2rem;
	}

	#site-main .header .btn {
		margin-left: 0;
	}

	#site-main .header {display: block;}
	
	.office-form .submitb {
		width: 100%;
		display: block;
	}
	
	#mobile-header .wrap {
		display: flex;
		flex-flow: row;
		align-items: center;
	}
	
	#mobile-header .logo {
		margin-left: auto;
		margin-right: 0;
		width: 60%;
	}

	
	.submit-row {
		display: flex;
		flex-flow: column;
	}
}
