html { 
	width: 100%;
    height: 100%;
}
body {
	margin: 0 auto;
	padding: 0;	
	width: 100%;
	height: 100%;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 12px;
	border: 0;
	color: #444;
	min-width: 1260px;
	-webkit-touch-callout: none; /* iOS Safari */
		-webkit-user-select: none; /* Safari */
		-khtml-user-select: none; /* Konqueror HTML */
		-moz-user-select: none; /* Old versions of Firefox */
        -ms-user-select: non
}

#wrap {
  	min-width: 100%;
	min-height: 100%;
	
}

#content{
	width: 100%;
	height: 100%;
	display: block;
}

#warning{
	display: none;
	margin: 250px auto;
	width: 450px;
	height: 396px;
	text-align:center;
}

#loader{
	display: none;
	position: fixed;
	margin: none;
	width: 100%;
	height: 100%;
	background: #fff;
	border: none;
	transition: box-shadow 0.2s 0s; 
	-webkit-box-shadow: none;
	-moz-box-shadow: none;
	box-shadow: none;
	z-index:2; 
}

#loader_dv{
	position: relative; 
	top: 50%; 
	left: 50%; 
	transform: translate(-50%, -50%);
	width: 496px;
	height: 396px; 
	background:  url('/images/loader.gif') -150px -100px no-repeat;				
}

#loader_des{
	position: relative; 
	top: 50%; 
	left: 50%; 
	transform: translate(-50%, -50%);
	width: 496px;
	height: 396px;
	display:none;	
}

#desc-auth, #desc-main{
	display: none;
	width: 50%;
    padding: 12px 20px;
    margin: 10px 0 0 100px;
	background: #999;
	border: solid 1px #a1a1a1;
}

#main{
	display: block;
	height: 100%;
}

#main-head{
	width: 100%;
	height: 170px;
	background: #eaeaea;
}


#main-body{
	margin: auto 0px;
	width: 100%;
	display:grid;
	grid-template-columns: repeat(4, 1fr);
}

#main-body .item{
	margin:20px;
	display: flex;
	justify-content: center;
  align-items: flex-end; /* "Не поднимайтесь выше!" — командует Flexbox */
  height: 100%; /* "Растянуться на весь экран!" — предлагает CSS */
}

#link-notwork{
	position: relative;
	width: 300px;
	height:300px;
	bottom: 10px;
	text-align:center;
	background: #999 url('/images/notwork/notwork.png') 50% 30px no-repeat;
	cursor:pointer;
	border-radius: 20px;
	border: 1px solid #999;
}

#link-notwork:hover{
	background: #cfcfcf url('/images/notwork/notwork.png') 50% 30px no-repeat;
}

#link-report{
	position: relative;
	width: 300px;
	height:300px;
	bottom: 10px;
	text-align:center;
	background: #999 url('/images/report/report.png') 50% 30px no-repeat;
	cursor:pointer;
	border-radius: 20px;
	border: 1px solid #999;
}

#link-report:hover{
	background: #cfcfcf url('/images/report/report.png') 50% 30px no-repeat;
}

#link-staffs{
	position: relative;
	width: 300px;
	height:300px;
	bottom: 10px;
	text-align:center;
	background: #999 url('/images/staffs/staffs.png') 50% 30px no-repeat;
	cursor:pointer;
	border-radius: 20px;
	border: 1px solid #999;
}

#link-staffs:hover{
	background: #cfcfcf url('/images/staffs/staffs.png') 50% 30px no-repeat;
}

#link-notwork .text, #link-report .text, #link-staffs .text, #link-exit .text{
	position: absolute;
	bottom: 6px;
	width: 100%;
	text-align:center;
	font-size: 30px;
}

#link-exit{
	position: relative;
	width: 300px;
	height:300px;
	bottom: 10px;
	text-align:center;
	background: #999 url('/images/auth/exit.png') 50% 30px no-repeat;
	cursor:pointer;
	border-radius: 20px;
	border: 1px solid #999;
}

#link-exit:hover{
	background: #cfcfcf url('/images/auth/exit.png') 50% 30px no-repeat;
}

#label-main{
	position:absolute;
	top:0px;
	width: 100%;
	height: 100px;
	line-height:100px;
	padding: 0 0px;
	margin: 0px;
	background: #ddd;
	color:#000;
	font-size: 36px;
	font-weight: bold;
	text-overflow: ellipsis; 
	white-space: nowrap;
	text-align: center;
}

#master-main{
	position:absolute;
	top:100px;
	width: 100%;
	height: 70px;
	line-height:70px;
	padding: 0 10px;
	margin: 0px;
	color:#fff;
	background: #999;
	font-size: 32px;
	font-weight: bold;
	text-overflow: ellipsis; 
	white-space: nowrap;
	text-align: center;
}

/* MOBILE */

@media screen and (max-device-width:980px), screen and (max-width:980px) {
	
    html { 
	
	}
	
	body {
		min-width:800px;
		-webkit-touch-callout: none; /* iOS Safari */
		-webkit-user-select: none; /* Safari */
		-khtml-user-select: none; /* Konqueror HTML */
		-moz-user-select: none; /* Old versions of Firefox */
        -ms-user-select: none; /* Internet Explorer/Edge */
        user-select: none;
	}

	#wrap {
		width: 100%;
		height: 100%;
		display: block;		
	}
	
	#warning{
		display: none;
	}
	
	#content{
		width: 100%;
		height: 100%;
		position: fixed;
		top: 0;
		left: 0;
		display: flex;
		align-items: center;
		align-content: center; 
		justify-content: center; 
		overflow: auto;	
		overflow-x: hidden;	
		min-width:800px;	
	}
	
	#loader{
		display: none;
		position: fixed;
		margin: none;
		width: 100%;
		height: 100%;
		background: #fff;
		border: none;
		transition: box-shadow 0.2s 0s; 
		-webkit-box-shadow: none;
		-moz-box-shadow: none;
		box-shadow: none;
		z-index:2; 
	}
	
	#loader_dv{
		position: relative; 
		top: 50%; 
		left: 50%; 
		transform: translate(-50%, -50%);
		width: 496px;
		height: 396px; 
		background:  url('/images/loader.gif') -150px -100px no-repeat;				
	}
	
	#auth{
		display: none;
		width: 100%;
		height: 150px;	
		background: #ffffff;
		-webkit-box-shadow: none;
		-moz-box-shadow: none;
		box-shadow: none;
		border: none;
	}
	
	#auth input[type=text], input[type=password] {
		text-align: center;
		width: 250px;
		padding: 2px 12px;
		margin: 10px auto;
		border: 2px solid rgb(160, 160, 160);
		box-sizing: border-box;
		font-family: Arial, Helvetica, sans-serif;
		font-size: 36px;
		border-radius: 7px;
	}

	#auth .button {
		text-align: center;
		width: 250px;
		background: #2836aa url('/images/auth/enter.png') 80px 14px no-repeat;
		color: rgb(255, 255, 255);
		padding: 14px 21px;
	    margin: auto;
		box-sizing: border-box;
		border: 2px solid #2836aa;
		cursor: pointer;
		border-radius: 7px;
		font-size: 18px;
	}
	
	#auth .button:hover { 
		background: #6976de url('/images/auth/enter.png') 80px 14px no-repeat;
		cursor: pointer;
	}
	#auth .button:active {
		background: #404887 url('/images/auth/enter.png') 80px 14px no-repeat;
	}
	
	#auth .forgot {
		text-align: center;
		margin: auto;
		padding: 10px 0;
	    box-sizing: border-box;
		cursor: pointer;
	}
	
	#auth #desc-auth{
		text-align: center;
		width: 250px;
		margin: auto;
		padding: 10px 0;
	    box-sizing: border-box;
		background: #999;
		text-align: center;
	}
	
	#desc-main{
		position:fixed;
		bottom:0px;
		display: none;
		width: 100%;
		padding: 12px 20px;
		margin: 0px;
		background: #999;
		border: solid 1px #a1a1a1;
	}
	
	#main{
		display: none;
		margin: none;
		width: 100%;
		height: 100%;
		background: none;
		border: none;
		transition: box-shadow 0.2s 0s; 
		-webkit-box-shadow: none;
		-moz-box-shadow: none;
		box-shadow: none;
	}
	
	#main-head{
		margin: none;
		width: 100%;
		height: 170px;
		background: #eaeaea;
		border: none;
		transition: box-shadow 0.2s 0s; 
		-webkit-box-shadow: none;
		-moz-box-shadow: none;
		box-shadow: none;
		position:fixed;
		top:0;
		left:0;
		z-index:1;
	}
	
	#label-main{
		position:absolute;
		top:0px;
		width: 100%;
		height: 100px;
		line-height:100px;
		padding: 0 0px;
		margin: 0px;
		background: #ddd;
		color:#000;
		font-size: 36px;
		font-weight: bold;
		text-overflow: ellipsis; 
		white-space: nowrap;
		text-align: center;
	}
	
	#master-main{
		position:absolute;
		top:100px;
		width: 100%;
		height: 70px;
		line-height:70px;
		padding: 0 10px;
		margin: 0px;
		color:#fff;
		background: #999;
		font-size: 32px;
		font-weight: bold;
		text-overflow: ellipsis; 
		white-space: nowrap;
		text-align: center;
	}
	
	#main-body{
		margin: 170px 0 0 0;
		width: 100%;
	}
	
	#workers{
		
	}
	
	#workers .worker{
		position:relative;
		font-family: Arial, Helvetica, sans-serif;
		font-size: 30px;
		color: #000;
		width:100%;
		height:80px;
		line-height: 80px;
		border-bottom: solid 1px #eaeaea;
		text-overflow: ellipsis; 
		white-space: nowrap;
	}
	
	#workers .worker_lb{
		width:80%;
		padding:0 10px;
		overflow: hidden; 
		text-overflow: ellipsis; 
		white-space: nowrap;
		line-height:60px;
	}
	
	#workers .worker_lb_disabled{
		width:80%;
		padding:0 10px;
		overflow: hidden; 
		text-overflow: ellipsis; 
		white-space: nowrap;
		line-height:60px;
		color:#a6a6a6;
	}
	
	#workers .worker_state{
		position:absolute;
		width:50%;
		top:20px;
		left:44px;
		height:10px;
		font-family: Arial, Helvetica, sans-serif;
		font-size: 18px;
		color:#a8a8a8;
	}

	.worker .worker_cb  {
		position: absolute;
		top: 6px;
		right: 22px;
		text-decoration: none;
		user-select: none;
		outline: none;
	}
	.worker .worker_cb input[type=checkbox] {
	  vertical-align: top;
	  margin: 10px 3px 0 0;
	  width: 17px;
	  height: 17px;
	}
	.worker .worker_cb input[type=checkbox] + label {
	  cursor: pointer;
	}
	.worker .worker_cb input[type=checkbox]:not(checked) {
	  position: absolute;
	  opacity: 0;
	}
	.worker .worker_cb input[type=checkbox]:not(checked) + label {
	  position: relative; /* будем позиционировать псевдочекбокс относительно label */
	  padding: 0 0 0 44px; /* оставляем слева от label место под псевдочекбокс */
	}
	.worker .worker_cb input[type=checkbox]:not(checked) + label:before {
	  content: '';
	  position: absolute;
	  top: -4px;
	  left: 0;
	  width: 50px;
	  height: 26px;
	  border-radius: 13px;
	  background: #E11E21;
	  box-shadow: inset 0 2px 3px rgba(0,0,0,.2);
	}
	.worker .worker_cb input[type=checkbox]:not(checked) + label:after {
	  content: '';
	  position: absolute;
	  top: -2px;
	  left: 2px;
	  width: 22px;
	  height: 22px;
	  border-radius: 10px;
	  background: #FFF;
	  box-shadow: 0 2px 5px rgba(0,0,0,.3);
	  transition: all .2s; /* анимация, чтобы чекбокс переключался плавно */
	}
	.worker .worker_cb input[type=checkbox]:checked + label:before {
	  background: #2AAE34;
	}
	.worker .worker_cb input[type=checkbox]:checked + label:after {
	  left: 26px;
	}
	.worker .worker_cb input[type=checkbox]:focus + label:before {
	  /*box-shadow: 0 0 0 3px rgba(255,255,0,.5);*/
	}
	.worker .worker_cb input[type=checkbox]:disabled + label:before {
	  background: #eee;
	}
	
	
	#main-body .button {
		text-align: center;
		width: 90%;
		height: 80px;
		line-height: 70px;
		border: 2px solid #2836aa;
		box-sizing: border-box;
		font-family: Arial, Helvetica, sans-serif;
		font-size: 36px;
		color:#fff;
		cursor: pointer;
		margin:auto;
		border-radius: 7px;
		background: #2836aa url('/images/sent.png') 90px 14px no-repeat;
	}
	
	#main-body .button:hover { 
		background: #6976de url('/images/sent.png') 100px 8px no-repeat;
		cursor: pointer;
	}
	#main-body .button:active {
		background: #404887 url('/images/sent.png') 100px 8px no-repeat;
	}
	
	#main-body .sep {
		margin:10px;
		width: 100%;
		height: 10px;
	}

}