.refresh {
	display: inline-block;
    padding: 7px 21px;
    margin: 0;
    color: #FFF;
    font-size: 16px;
    cursor: pointer;
    line-height: 22px;
    height: 22px;
    border: none;
    text-decoration: none;
    font-family: Roboto,"Helvetica Neue",Helvetica,Arial,sans-serif;
    -moz-border-radius: 0;
    -webkit-border-radius: 0;
    border-radius: 0;
    white-space: nowrap;
	background: #1a87c2;
}

.refresh.loading span {
	opacity: 0;
}

.refresh.loading {
	background: url(/img/loading.svg) center no-repeat, rgba(26, 93, 194, 0.3);
	background-size: auto 80%;
	opacity: .8;
}

.refresh.good {
	background-color: #4d9000;
}

.refresh.bad {
	background-color: #c52f2f;
}

.items {
	position: relative;
	z-index: 1;
	will-change: contents;
}

.items:after {
	content: '';
	display: block;
	clear: both;
}

.items > div {
	position: relative;
	float: left;
	width: 25%;
	box-sizing: border-box;
	padding: 0 6px;
}

.items.w3 {
	margin: 0 -10px;
}

.items.w3 > div {
	width: 33.333%;
	padding: 0 10px;
}

.items.w2 {
	margin: 0 -25px;
}

.items.w2 > div {
	width: 50%;
	padding: 0 25px;
}

.items.w3 { padding: 10px 0	}
.items.w3 > div { width:15%;padding-bottom:20px;margin-bottom:10px;border-bottom:1px solid #ddd }
.items.w3 .nc-toolbar { text-align:center;width:100% }
.items.w3 .img_box { width:100%;float:left;height:auto }
.items.w3 .img_box img { height:64px;margin:0 auto 10px;display:block }
.items.w3 .name { text-align:center }
.btn_admin { margin-left:10px;text-decoration:none;position:relative;z-index:1;padding:5px 15px;background:#eee;font-size:18px;border:1px solid #9a9a9a;cursor:pointer }
.btn_admin:hover { background:#fff;font-size:18px;border:1px solid #eee;box-shadow:0 2px 5px rgba(0,0,0,.3) }
#adminForm h3 { color:#2883b5;font-weight:bold }

.drag_box.items {
	margin: 0;
}

.drag_box.items > div {
	border: 1px solid #ccc;
	padding: 20px;
}

.drag_box .item {
	display: inline-block;
	position: relative;
	padding: 5px 50px 5px 10px;
	border: 1px solid #ccc;
	margin: 10px;
}

.drag_box .item:hover {
	background: #d3e0e7;
	border-color: #d3e0e7;
}

label.chk_url {
	position: absolute;
	top: 0;
	right: 0;
	width: 44px;
	font-size: 11px !important;
	line-height: 30px;
	padding: 0 5px;
	border-left: 1px solid #ccc;
}

.chk_url input[type="checkbox"] {
	margin: 7px 0 0;
	float: right;
}

#all_doors, #selected_doors {
	font-size: 13px;
	border-collapse: collapse;
}

#selected_doors {
	width: 100%;
}

#all_doors td, #selected_doors td {
	padding: 2px 4px;
}

#all_doors .plus, #selected_doors .plus {
	display: block;
	font-size: 18px;
	font-weight: bold;
	padding: 5px 8px;
	color: green;
}

#selected_doors .plus {
	color: red;
	-webkit-transform: 	rotate(45deg);
	-moz-transform: 	rotate(45deg);
	-ms-transform: 		rotate(45deg);
	-o-transform: 		rotate(45deg);
	transform: 			rotate(45deg);
}

#all_doors select, #selected_doors select {
	font-size: 13px;
}

#all_doors tbody tr:hover, #selected_doors tbody tr:hover {
	cursor: pointer;
	background: #eee;
}

#box-table {
	position: relative;
	width: 100%;
	overflow-x: scroll;
	overflow-y: scroll;
	max-height: 400px;
}

.warning {
	font-weight: bold;
	font-size: 19px;
	color: #b31117;
}

label:not([class]) {
	display: inline-block;
	line-height: 25px;
	font-size: 17px;
	cursor: pointer;
	margin-left: 10px;
}

@import url('https://fonts.googleapis.com/css?family=Inconsolata');

#log {
	position: relative;
	width: 500px;
	border: 2px solid #1a87c2;
	background: #333;
	padding: 15px 20px;
	font-size: 12px;
	line-height: 18px;
	font-family: 'Inconsolata', monospace;
	color: white;
	margin: 20px 0;
	max-height: 500px;
	overflow-y: scroll;
}

#log .warning {
	color: red;
	font-size: 12px;
	color: #ee595f;
}

.log-watch-img, .log-watch-table, .log-watch-preview {
	display: inline-block;
	cursor: pointer;
	margin-top: 5px;
	color: #1a87c2;
	text-decoration: underline;
}

#box-questions {
	position: relative;
	font-size: 14px;
	padding: 10px 20px;
}

.nc-btn.bbtn {
	height: auto;
	background: #1a87c2;
}

#box-questions .bbtn {
	border-radius: 50%;
	width: 34px;
	height: 34px;
	line-height: 29px;
	margin: 0 auto;
	display: block;
	font-size: 14px;
	padding: 3px 13px;
}

#box-questions table {
	width: 100%;
	border-collapse: collapse;
}

#box-questions thead > tr {
	position: relative;
	z-index: 1;
	background: #f2f5f7;
	-webkit-box-shadow: 0 2px 10px rgba(0,0,0,.2);
	-moz-box-shadow: 	0 2px 10px rgba(0,0,0,.2);
	box-shadow: 		0 2px 10px rgba(0,0,0,.2);
}

#box-questions thead th:last-child {
	border: none;
}

#box-questions thead th:nth-child(1) {
	width: 111px;
}

#box-questions thead th:nth-child(2) {
	width: 480px;
}

#box-questions thead th {
	padding: 20px 10px;
	text-transform: uppercase;
	border-right: 1px solid #b9b9b9;
}

#box-questions tbody > tr:nth-child(even) {
	background: #f5fff1;
}

#box-questions td {
	padding: 15px 10px;
	position: relative;
}

#box-questions .q-id {
	display: block;
	width: 40px;
	margin-left: 30px;
}

#box-questions .v-relation {
	display: block;
	width: 140px;
}

#box-questions input, #box-questions select {
	width: 100%;
	margin: 0;
	font-size: 14px;
	padding: 5px 8px;
}

.q-variants:empty {
	display: none;
}

.q-variants {
	background: #eee;
	padding: 5px;
	margin-bottom: 10px;
}

.q-variants .variant {
	position: relative;
}

.q-variants td {
	padding: 5px !important;
}

.add-question {
	margin: 50px auto 20px;
	display: block;
	width: 180px;
	text-align: center;
}

#box-questions .q-remove {
	position: absolute;
	top: 50%;
	margin-top: -10px;
	left: -10px;
	cursor: pointer;
	z-index: 1;
}

#box-questions .q-remove:hover {
	opacity: .7;
}

.add-filter.nc-btn {
	display: inline-block;
	height: auto;
	font-size: 12px;
	padding: 5px;
	background: green;
	line-height: 13px;
}

.form-relative {
	position: relative;
}

#form-for-filter {
	position: fixed;
	display: none;
	z-index: 999;
	top: 50%;
	left: 50%;
	transform: translate(-50%,-50%);
	max-width: 100%;
	background: white;
	padding: 20px;
	border-radius: 10px;
}
#form-for-filter.open {
	display: block;
}
#fade {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0,0,0,.3);
	z-index: 998;
	display: none;
}
#fade.open {
	display: block;
}
input.danger {
	border-color: #ff8383 !important;
}
#form-for-filter th label {
	line-height: 15px;
	margin: 0;
	font-weight: normal;
	white-space: nowrap;
	border-bottom: 1px solid #ccc;
	padding-bottom: 10px;
}
#form-for-filter th span {
	display: block;
}
#form-for-filter th {
	padding: 5px;
	vertical-align: bottom;
}
#form-for-filter td {
	padding: 5px;
	vertical-align: top;
}
#form-for-filter input[type="checkbox"] {
	display: none;
}
#form-for-filter label {
	cursor: pointer;
	display: block;
	padding: 8px 0;
	margin: 0;
}
#form-for-filter ul {
	list-style: none;
	margin: 0;
	padding: 0;
	max-height: 500px;
	overflow-y: auto;
}
#form-for-filter label span {
	display: block;
	line-height: 15px;
}

#form-for-filter input:checked ~ span {
	color: green;
	font-weight: bold;
}

.list-values {
	padding-left: 20px;
}

.list-values li {
	margin-bottom: 5px;
	border-bottom: 1px solid #ccc;
}

.list-values span {
	display: inline-block;
	margin-right: 20px;
	width: 300px;
	font-weight: bold;
}

.list-values input {
	width: 300px !important;
}

.scrolling-box {
	max-width: 100%;
	max-height: 500px;
	position: relative;
	overflow-x: auto;
	overflow-y: auto;
}

.select-all-variants, .remove-all-variants-btn {
	display: block;
	border: 1px solid #ccc;
	background: #f5fff1;
	cursor: pointer;
	width: 24px;
	height: 24px;
}
.select-all-variants:hover, .remove-all-variants-btn {
	border-color: #f66666;
	background: white;
}
.remove-all-variants-btn:hover {
	border-color: #ff0000;
}
.window-progress {
	background: #f2f5f7;
	border-radius: 10px;
	padding: 15px;
	margin-right: 15px;
}
.info-progress:empty {
	display: none;
}
.info-progress {
	display: block;
	margin-bottom: 10px;
	font-size: 13px;
}
#progress-bar progress {
	width: 100%;
}
progress {
	-webkit-appearance: none;
   appearance: none;
}
progress.start {
	-webkit-animation: animate-stripes 3s linear infinite;
	animation: animate-stripes 3s linear infinite;
}
progress[value]::-webkit-progress-bar {
	background-color: white;
	border-radius: 2px;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25) inset;
}
progress[value]::-webkit-progress-value {
background-image:
		-webkit-linear-gradient(-45deg, 
								transparent 33%, rgba(0, 0, 0, .1) 33%, 
								rgba(0,0, 0, .1) 66%, transparent 66%),
		-webkit-linear-gradient(top, 
								rgba(255, 255, 255, .25), 
								rgba(0, 0, 0, .25)),
		-webkit-linear-gradient(left, #09c, #f44);

	border-radius: 2px; 
	background-size: 35px 20px, 100% 100%, 100% 100%;
	transition: width .3s;
}

@-webkit-keyframes animate-stripes {
	50% { opacity: .5; }
 }
 @keyframes animate-stripes {
	50% { opacity: .5; }
 }
.modal-scripts {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	padding: 40px;
	background: rgba(0, 0, 0, .25);
	box-sizing: border-box;
    z-index: 99999;
}
.modal-scripts.show {
	display: block;
}

.modal-scripts .content {
	background: white;
	border-radius: 10px;
	box-shadow: 0 2px 10px rgba(0,0,0,.3);
	position: relative;
}

.modal-scripts .content table {
	width: 100%;
    height: 100%;
    text-align: center;
}

.modal-scripts .content td {
	padding: 50px;
}

.modal-scripts .content h3,
.modal-scripts .content p {
	margin: 20px 0;
}

.modal-scripts .content h3.green {
	color: #488348;
}

.modal-scripts .content p {
	color: #ff6666;
	font-size: 12px;
}

.modal-scripts .content .status-percent {
	font-size: 12px;
	font-weight: bold;
}

.modal-scripts .content .status-percent {
	margin: 20px 0 0;
}

.modal-scripts .content progress {
	width: 100%;
	height: 20px;
	margin: 10px 0 0;
	position: relative;
}

.modal-scripts .content progress[value]::-webkit-progress-bar {
	height: 20px;
	background-color: #f2f5f7;
}

.loading>* {
	opacity: 0;
}
.loading:after {
	content: '';
	display: block;
	position: absolute;
	top: 50%;
	left: 50%;
	margin-top: -22px;
	margin-left: -22px;
	width: 45px;
	height: 45px;
	background: url(../img/loading.svg) center no-repeat;
	background-size: 100%;
}