* {
  scrollbar-width: thin;
  scrollbar-color: var(--color) var(--color-light);
}

*::-webkit-scrollbar {
  width: 6px;
  height: 2px;
}

*::-webkit-scrollbar-track {
  background: var(--color-light);
  border-radius: 6px;
}

*::-webkit-scrollbar-thumb {
  background-color: var(--color);
  border-radius: 6px;
}

body {
  margin: 0;
  padding: 0;
  padding-top: 60px;
  padding-bottom: 60px;
  background: #f5f5f5;
}
body * {
  font-size: 16px;
  font-family: "Roboto Flex",Roboto,Oxygen,Ubuntu,Cantarell,"Open Sans","Helvetica Neue",sans-serif;
  box-sizing: border-box;
  transition: background 0.2s, border 0.2s;
}
body a{
  color: var(--color);
  text-decoration: none;
}
body a:hover{
  color: var(--color-dark);
}

header{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: #fff;
  box-shadow: 0 2px 2px rgba(0,0,0,0.1);
  z-index: 1000;
}

.logo{
  position: absolute;
  top: 5px;
  left: 80px;
  height: 50px;
}

.aclogo{
  position: absolute;
  top: 10px;
  right: 80px;
  height: 40px;
}

footer{
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40px;
  background: var(--color);
  padding: 14px 80px;
  color: #fff;
  font-size: 12px;
  box-shadow: 0 -2px 2px rgba(0,0,0,0.1);
  z-index: 1000;
}

footer * {
  font-size: 12px;
}

aside{
  position: fixed;
  top: 70px;
  left: 80px;
  width: 440px;
  padding-right: 10px;
  height: calc(100vh - 120px);
  overflow-x: hidden;
  overflow-y: auto;
}

main{
  position: fixed;
  top: 60px;
  right: 80px;
  width: calc(100% - 610px);
  height: calc(100vh - 100px);
  overflow: hidden;
}

#request{
	display: none;
	background: #fff;
	border-top: 2px solid var(--color);
	position: fixed;
	top: 70px;
	left: calc(50% - 220px);
	width: 440px;
	height: calc(100vh - 120px);
	border-radius: 10px;
	padding: 20px;
	overflow-x: hidden;
	overflow-y: auto;
}

.main{
  position: fixed;
  top: 60px;
  left: 80px;
  width: calc(100% - 160px);
  height: calc(100vh - 100px);
  padding: 80px 0;
  overflow-x: hidden;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 80px;
}

.main .category{
  border-radius: 10px;
  border: 1px solid var(--color-light);
  background: #fff;
  text-align: center;
  padding: 20px;
  max-height: 220px;
}

.main .category:hover{
  border: 1px solid var(--color);
  background: var(--color-light);
}

.main .category img{
  max-width: 100%;
}

.main .category h2{
  font-size: 18px;
}

select#category{
	width: 100%;
	border: 1px solid var(--color);
	border-radius: 5px;
	padding: 2px 5px;
	outline: none;
	background: var(--color);
	color: #fff;
}

select#category:hover{
	background: var(--color-dark);
}

.sideheader{
	border-radius: 10px;
	background: var(--color-light);
	padding: 10px;
	margin-top: 10px;
	position: relative;
	font-size: 14px;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.sideheader button{
	border-radius: 10px;
	border: none;
	background: var(--color);
	color: #fff;
	font-weight: bold;
	padding: 10px;
}

.sideheader button:hover{
	cursor: pointer;
	background: var(--color-dark);
}

.sideheader button[disabled]{
	opacity: 0.5;
}

.sideheader button[disabled]:hover{
	cursor: default;
	background: var(--color);
}

.sideheader button.load[disabled]{
	opacity: 1;
	font-size: 0;
	background-image: url(/images/icons/load.gif);
	background-position: center;
	background-repeat: no-repeat;
	background-size: 50px;
}

.fgroup{
	border-radius: 10px;
	background: var(--color-light);
	padding: 10px;
	margin-top: 10px;
	position: relative;
	font-size: 14px;
}

.ftopic{
	background: var(--color);
	color: #fff;
	font-weight: bold;
	position: relative;
	width: calc(100% + 20px);
	padding: 5px 10px;
	margin: -10px -10px 10px -10px;
	border-radius: 10px 10px 0 0;
}

.fparam{
	display: grid;
	gap: 10px;
	grid-template-columns: 1fr 1fr;
	margin-bottom: 5px;
}

.fparam .title{
	align-self: center;
}

.fparam .value{
	position: relative;
}

.fparam select{
	width: 100%;
	border: 1px solid var(--color);
	border-radius: 5px;
	padding: 3.5px 5px;
	outline: none;
	background: #fff;
}

.fparam select[disabled],.fparam select[likedisabled]{
	border: 1px solid var(--color);
	background: #fff;
	opacity: 0.7;
	color: #333;
	pointer-events: none;
}

.fparam select:not([disabled]):not([likedisabled]):hover{
	outline: var(--color) solid 1px;
}

.fparam option:hover{
	background: var(--color);
}

.fparam input[type=radio]{
	margin-right: 10px;
}

label {
	position: relative;
}

.radio {
	display: inline-block;
	width: 16px;
	height: 16px;
	position: absolute;
	left: 0;
	top: 0;
	border-radius: 50%;
	background: #fff;
	border: 2px solid var(--color);
}

input[type=radio]:checked + .radio:before {
	content: '';
	display: block;
	width: 8px;
	height: 8px;
	position: absolute;
	left: 2px;
	bottom: 2px;
	border-radius: 50%;
	background: var(--color);
}

label:hover > .radio{
	border: 2px solid var(--color-dark);
}

input[type=radio],input[type=checkbox]{
	opacity: 0;
}

.checkbox {
	display: inline-block;
	width: 16px;
	height: 16px;
	position: absolute;
	left: 0;
	bottom: 2px;
	border-radius: 5px;
	background: #fff;
	border: 2px solid var(--color);
}

input[type=checkbox]:checked + .checkbox:before {
	content: '✔';
	display: block;
	width: 16px;
	height: 16px;
	position: absolute;
	left: -2px;
	bottom: -4px;
	color: var(--color);
	font-size: 12px;
	line-height: 12px;
	font-weight: bold;
	text-align: center;
}

label:hover > .checkbox{
	border: 2px solid var(--color-dark);
}

.fparam input[type=number]{
	width: 100%;
	border: 1px solid var(--color);
	border-radius: 5px;
	background: #fff;
	padding: 5px 10px;
	outline: none;
}

.fparam input[type=number][disabled]{
	border: 1px solid var(--color);
	background: #fff;
	opacity: 0.7;
}

.fparam input[type=number]:not([disabled]):hover{
	outline: var(--color) solid 1px;
}


input[type=number] {
    -moz-appearance:textfield;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

.units{
	position: absolute;
	right: 10px;
	top: 7px;
	color: var(--color-light);
	font-weight: bold;
	pointer-events: none;
}

.units.sel{
	right: 20px;
}

.tabline{
	width: 100%;
	display: flex;
	gap: 10px;
	margin-top: 10px;
	position: relative;
	overflow-x: auto;
}

.tabline .tab{
	color: #000;
	background: #fff;
	padding: 10px 20px;
	border-radius: 10px 10px 0 0;
	text-wrap: nowrap;
}

.tabline .tab.active{
	color: #fff;
	background: var(--color);
	cursor: default;
}


.tabline .tab:not(.active):hover{
	background: var(--color-light);
	cursor: pointer;
}

.dataview{
	position: relative;
	width: 100%;
	height: calc(100vh - 160px);
	background: #fff;
	border-top: 2px solid var(--color);
	border-radius: 0 10px 10px 10px;
	padding: 20px;
}

.dataview .data{
	display: none;
	width: 100%;
	height: 100%;
	padding-right: 20px;
	overflow-x: hidden;
	overflow-y: auto;
}

.dataview .data.active{
	display: block;
}

.infomessage{
	color: var(--color);
	background: var(--color-light);
	padding: 20px;
	border-radius: 10px;
	display: inline-block;
	font-weight: bold;
	margin: 0 auto;
	position: relative;
}


#tech{
	min-width: 200px;
	border: 1px solid var(--color);
	border-radius: 5px;
	padding: 2px 5px;
	outline: none;
	margin-bottom: 20px;
}

#tech:hover{
	outline: var(--color) solid 1px;
}

.tech_scheme{
	margin-bottom: 20px;
	display: none;
}

.tech_scheme img{
	max-height: 400px;
	max-width: 100%;
}

.tech_scheme.active{
	display: block;
}

.tech_table{
	display: none;
	width: 800px;
	max-width: 100%;
}

.tech_table.active{
	display: block;
}

.tech_table .topic{
	background: var(--color);
    color: #fff;
    font-weight: bold;
    position: relative;
    padding: 10px 10px;
	margin-top: 20px;
    border-radius: 10px 10px 0 0;
}

.tech_table .title{
	width: 60%;
	padding: 10px;
	display: inline-block;
}

.tech_table .value{
	width: 40%;
	padding: 10px;
	display: inline-block;
}

.tech_table .line{
	font-size: 14px;
}

.tech_table .line:nth-child(odd){
	background: var(--color-light);
}

#limits{
	min-width: 200px;
	border: 1px solid var(--color);
	border-radius: 5px;
	padding: 2px 5px;
	outline: none;
	margin-bottom: 20px;
}

#limits:hover{
	outline: var(--color) solid 1px;
}

.lim_graph{
	margin-bottom: 20px;
	display: none;
}

.lim_graph img{
	max-height: 300px;
	max-width: 100%;
}

.lim_graph.active{
	display: block;
}

.lim_note{
	margin-bottom: 20px;
	display: none;
}

.lim_note img{
	max-width: 300px;
}

.lim_note.active{
	display: block;
}


.result_table{
	display: block;
	width: 800px;
	max-width: 100%;
}

.result_table .topicline{
	background: var(--color);
    color: #fff;
    font-weight: bold;
    border-radius: 10px 10px 0 0;
}

.result_table .title{
	width: 60%;
	padding: 10px;
	display: inline-block;
	word-break: break-word;
}

.result_table .value{
	width: 40%;
	padding: 10px;
	display: inline-block;
}

.result_table .line{
	font-size: 14px;
}

.result_table .line:nth-child(odd){
	background: var(--color-light);
}

.result_table.double .title{
	width: 50%;
}

.result_table.double .value{
	width: 25%;
}

.result_table.double .topicline .value{
	text-decoration: underline;
	cursor: pointer;
}

.infoblock{
	margin-top: 20px;
	font-size: 14px;
	color: #fff;
	background: var(--color);
	padding: 15px 10px;
	border-radius: 10px;
	display: block;
	font-weight: bold;
	position: relative;
	width: 800px;
	max-width: 100%;
}

button.selectnext{
	border: 1px solid var(--color);
	color: var(--color);
	border-radius: 5px;
	padding: 5px 10px;
	background: #fff;
}

button.selectnext:hover{
	cursor: pointer;
	background: var(--color-light);
}

.after{
	display: none;
}

#request h2{
    color: var(--color);
    font-weight: bold;
    position: relative;
	margin: 0;
}

#request p{
    position: relative;
	color: #555;
}

#sendrequest{
	margin-top: 15px;
	border-radius: 10px;
	border: none;
	background: var(--color);
	color: #fff;
	font-weight: bold;
	padding: 10px;
	width: 100%;
	height: 40px;
}

#sendrequest:hover{
	cursor: pointer;
	background: var(--color-dark);
}

#sendrequest[disabled]{
	opacity: 0.5;
}

#sendrequest[disabled]:hover{
	cursor: default;
	background: var(--color);
}

#sendrequest.load[disabled]{
	opacity: 1;
	font-size: 0;
	background-image: url(/images/icons/load.gif);
	background-position: center;
	background-repeat: no-repeat;
	background-size: 50px;
}

.reqparam {
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr;
    margin-bottom: 10px;
}

.reqparam .title{
	color: var(--color);
	margin-bottom: -5px;
}

.reqparam input{
	width: 100%;
	border: 1px solid var(--color);
	border-radius: 5px;
	background: #fff;
	padding: 5px 10px;
	outline: none;
}

#request .checkbox{
	bottom: auto;
}

.reqparam input:hover{
	outline: var(--color) solid 1px;
}

#reqclose{
	display: block;
	margin-top: 20px;
	width: 100%;
	text-align: center;
}

#request label i{
	display: none;
}

@media (max-width: 1280px){
	body *{
		font-size: 14px;
	}
	
	.logo {
		left: 20px;
	}
	
	.aclogo{
		right: 20px;
	}
	
	footer{
		padding: 14px 20px;
	}
	
	aside{
		left: 20px;
		width: 300px;
	}

	main{
		right: 20px;
		width: calc(100% - 350px);
	}
	
	.fparam{
		grid-template-columns: 140px 1fr;
	}
	
	footer * {
		font-size: 12px;
	}
	
	.main{
		left: 20px;
		width: calc(100% - 40px);
		gap: 20px;
	}
	
	.main .category h2{
		font-size: 16px;
	}
}

@media (max-width: 768px){
	body *{
		font-size: 14px;
	}
	
	header{
		height: 50px;
	}
	
	.logo {
		left: 10px;
		height: 40px;
	}
	
	.aclogo{
		right: 10px;
		height: 30px;
	}
	
	aside{
		left: 10px;
		top: 60px;
		width: calc(100% - 70px);
		height: calc(100vh - 100px);
		transition: left 0.5s;
		padding-bottom: 50px;
	}
	
	aside.inactive{
		left: calc(120px - 100%);
	}
	
	aside.inactive + .after{
		display: block;
		position: fixed;
		top: 60px;
		width: calc(100% - 70px);
		height: calc(100vh - 100px);
		left: calc(120px - 100%);
		border-radius: 10px 3px 0 0;
		background: rgba(255,255,255,0.9);
	}
	
	aside.inactive + .after span{
		position: absolute;
		font-size: 32px;
		line-height: 32px;
		font-weight: bold;
		text-transform: uppercase;
		transform: rotate(-90deg);
		top: 45%;
		right: -150px;
		letter-spacing: 11px;
		color: var(--color);
		cursor: pointer;
	}
	
	main{
		right: calc(120px - 100%);
		top: 50px;
		width: calc(100% - 70px);
		height: calc(100vh - 90px);
		transition: right 0.5s;
	}
	
	main .dataview .data.active{
		padding-bottom: 50px;
	}
	
	main:not(.active) + .after{
		display: block;
		position: fixed;
		right: calc(120px - 100%);
		top: 60px;
		border-radius: 10px 10px 0 0;
		width: calc(100% - 70px);
		height: calc(100vh - 100px);
		background: rgba(255,255,255,0.9);
	}
	
	main:not(.active) + .after span{
		position: absolute;
		font-size: 32px;
		line-height: 32px;
		font-weight: bold;
		text-transform: uppercase;
		transform: rotate(90deg);
		top: 45%;
		left: -165px;
		letter-spacing: 11px;
		color: var(--color);
		cursor: pointer;
	}
	
	main.active{
		right: 10px;
	}
	
	.dataview{
		height: calc(100vh - 140px);
	}
	
	footer{
		height: 30px;
		padding: 9px 10px;
	}
	
	footer * {
		font-size: 12px;
	}
	
	select#category{
		padding: 9px 5px;
	}
	
	.fparam{
		grid-template-columns: 1fr 1fr;
	}
	
	.fparam select{
		padding: 9px 5px;
	}
	
	.fparam input[type=number]{
		padding: 11px 10px;
	}
	
	#tech{
		padding: 9px 5px;
	}
	
	#limits{
		padding: 9px 5px;
	}
	
	.units{
		top: 12px;
	}
	
	.checkbox{
		width: 24px;
		height: 24px;
	}
	
	input[type=checkbox]:checked + .checkbox:before {
		left: 2px;
		bottom: 0px;
	}
	
	.fparam input[type=checkbox]{
		margin-top: 8px;
	}
	
	.fparam input[type=checkbox]:checked + .checkbox:before{
		width: 24px;
		height: 24px;
		font-size: 18px;
		line-height: 18px;
	}
	
	.radio{
		width: 24px;
		height: 24px;
		top: -3px;
	}
	
	.fparam input[type=radio]{
		margin-top: 8px;
		margin-right: 20px;
	}
	
	.fparam input[type=radio]:checked + .radio:before {
		width: 12px;
		height: 12px;
		left: 4px;
		bottom: 4px;
	}
	
	.main{
		left: 10px;
		padding: 10px 0;
		width: calc(100% - 20px);
		height: auto;
		grid-template-columns: 1fr;
		gap: 20px;
	}
	
	.main .category{
		padding: 10px;
		max-height: 140px;
	}
	
	.main .category img{
		max-height: 60px;
	}
	
	.main .category h2{
		font-size: 14px;
	}
	
	.lim_note img{
		max-width: 100%;
	}
	
	.dataview {
		border-top: 2px solid transparent;
		border-radius: 0 0 10px 10px;
	}
	
	#request label{
		line-height: 1.5em;
	}
	
	#request label i{
		display: inline;
	}
}