/*//==========================================================================//
// CSS
==============================================================================*/

/* Цвета */
.color-accent {
	color: #32683F;
}

/*============================================================================*/
/* Шапка */
/*============================================================================*/

.brand-logo {
	height: 65px;
}

.brand-logo img {
	height: 65px;
}

/* цвет фона меню */
.menu-strip {
	background-color: #06AD6D;
}

.nav-wrapper {
	min-height: 65px;
}

nav {
	height: 65px;
}

/*============================================================================*/
/* Футер */
/*============================================================================*/

footer.page-footer .footer-copyright {
	background-color: #555555;
	padding: 0;
	min-height: 40px;
}

/* Верняя полоса футера */
footer.page-footer {
	padding-top: 2px;
	/*background-color: #097248;*/
}

.footer-copyright .container{
	width: 100%;
	height: 22px;
	padding-left: 30px;
	padding-right: 30px;
}

.footer-copyright {
	padding-top: 0px;
	padding-bottom: 0px;
}

.footer-text {
	display: flex;
}

.footer-link {
	margin-left: auto;
}

#versionField {
	margin-left: 40px;
}

/*============================================================================*/
/* Клиентская область  */
/*============================================================================*/

body {
	display: flex;
	min-height: 100vh;
	flex-direction: column;
}

main {
	flex: 1 0 auto;
	background-image: url(../img/background.jpg);
	background-repeat: no-repeat;
	background-size: cover;
	background-color: rgb(69, 124, 72);
}

.flex-center {
	display: flex;
	align-items: center;
}

/* Затемнение до загрузки страниц */
/* -------------------------------------------------------------------------- */

/* Заливка рабочей области до авторизации */
#blank{
	background-color: rgba(3, 10, 41, 0.95); 
	margin-top: -64px;
	z-index: 150;
	position: fixed;
	width:100%;
	height:100%;
	display: block;
}

.centerall {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	width: 100%;
}

/* Прогресс-бар при ожидании загрузки */
.circle{
	border: 5px solid transparent;
	border-radius: 50%;
}

.circular-loader1 {
	width: 200px;
  height: 200px;
  display: table;
	padding: 10px;
	border-top: 5px solid #199500;
	border-bottom: 5px solid #199500;
	animation: circular_loader1 linear 6s infinite;
}

.circular-loader2 {
	width: 10px;
  height: 10px;
	display: table-cell;
	border-right: 5px solid #50db34;
	border-left: 5px solid #50db34;
	animation: circular_loader2 linear 5s infinite;
}

@keyframes circular_loader1 {
	0% {
		transform: rotate(0deg);
	}
	50% {
		transform: rotate(180deg);
	}
	100% {
		transform: rotate(360deg);
	}
}

@keyframes circular_loader2 {
	0% {
		transform: rotate(0deg);
	}
	50% {
		transform: rotate(180deg);
	}
	100% {
		transform: rotate(360deg);
	}
}

/* -------------------------------------------------------------------------- */

/* Планшетный/десктопный вид */
 @media only screen and (min-width: 500px){

	.settings-container {
	width: 90%;
	}
	.url{
		display: block;
	}
}

/* Широкоформатные экраны*/
@media only screen and (min-width: 1500px){
	.main-area {
		width: 200%;
	}
}

@media only screen and (max-width: 1500px){
	.main-area {
		width: 98%;
		margin:0;
	}
}

/* Мобильный вид */
@media only screen and (max-width: 500px){

	.settings-container {
		width: 100%;
	}
	.url{
		display: none;
	}
	
}

/* Узкий Мобильный вид */
@media only screen and (max-width: 424px){

	/* Прячем кнопку бокового меню */
	.but-side-menu {
		opacity: 0;
	}
	/* Изменяем панель света */
	#rgb-selector{
		padding: 13px 15px 15px 15px !important;
	}
	#but-close-selector{
		margin-right: 15px !important;
	}
	.bottom-blank{
		height: 32px !important;
	}
}

/*============================================================================*/
/* Карточки с инфо  */
/*============================================================================*/

.card {
	margin: 12px;
	min-width: 192px;
	/* max-width: 240px; */
}

.card .row{
	margin-bottom: 0;
}
.card .card-content{
	 padding: 8px;
 }

.card .card-action{
	padding: 15px;
} 

videocard{
	max-height: 530px;
}

/* Карточка датчика */
.sensor-card{
	display:flex;
	font-size: 38pt;
	/* font-family: Roboto; */
	text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.56);
	margin: 7px 0px 0px 0px;
} 

/* Контейнер, содержащий в себе значение датчика и единицу измерения */
.sensor-info{
	text-align:center;
	width: 100%;
	/* background-color:#000; */
}

/* Числовое значение датчика */
.sensor-value{
	display:inline-block;
	width: 70px; 
	text-align:right;
	direction: rtl;
	/* background-color:#F00; */
}

/* Единицы измерения на карточках датчиков */
.unit {
	display: inline-block;
	text-align: left;
	min-width: 30px;
	font-size: 20pt;
	color: white;
	text-shadow: 1px 1px 2px #000;
	font-weight: 100;
	margin-left: -6px;
	/* background-color:#00F; */
}

/* Карточка управления и индикаторов */
.status-card {
	padding: 5px 0px 2px 0px;
}

/* Тень только снизу */
.ind-shadow{
	box-shadow: -10px -2px 1px 0  rgba(0, 0, 0, 0.06) inset;
	width:110%;
	margin-left:-5%;
	height:60px;
	cursor: default;
}

.ind-bottom{
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	padding: 0 5%;
}

.nohover:hover:not(.active){
	opacity: 1;
}

/* Цветовой круг */
.color-circle{
	margin-left:10px; 
	height:100px; 
	width:100px; 
	background-color:black; 
	border-radius: 50px; 
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.26);
}

/*============================================================================*/
/* Сворачиваемые области в карточках */
/*============================================================================*/

.modal-header {
	background: #00b7a0;
	color: white;
	padding: 20px;
	z-index: 10;
	position: absolute;
	width: 100%;
}

/* Выравнивание букв RGB на карточке настройки света */
.label-color{
	margin-top: 7px;
}

/*============================================================================*/
/* Слайдеры для света */
/*============================================================================*/

.lightred > input[type=range]::-webkit-slider-thumb{
	background-color: red !important;
}

.lightred > input[type=range] + .thumb {
  background-color: red;
}

.lightgreen > input[type=range]::-webkit-slider-thumb{
	background-color: green !important;
}

.lightgreen > input[type=range] + .thumb {
  background-color: green;
}

.lightblue > input[type=range]::-webkit-slider-thumb{
	background-color: blue !important;
}

.lightblue > input[type=range] + .thumb {
  background-color: blue;
}

.dimmer > input[type=range]::-webkit-slider-thumb {
	background-color: #000000 !important;
 }
.dimmer > input[type=range] + .thumb {
	background-color: #000000;
 }

 .dimmer > input[type=range]{
	 margin-bottom: 15px;
 }

p.range-field{
	margin: 0;
}

/* Цветовой пикер */


.color-picker {
	/* background: rgba(255, 255, 255, 0.75); */
	padding: 10px;
	/* border: 1px solid rgba(203, 203, 203, 0.6); */
	/* border-radius: 2px; */
}

.color-picker > div {
	width: 40px;
	display: inline-block;
	height: 40px;
	margin: 5px;
	border-radius: 100%;
	opacity: 0.7;
}

.picker-wrapper {
	/* padding: 20px; */
}

.color-picker > div:hover {
	opacity: 1;
}

.picker-table{
	display: table;
  width: 100%;
}

.picker-row{
	display: table-row;
}

.picker-col{
	display: table-cell;
  text-align: center;
  vertical-align: middle;
}

/*============================================================================*/
/* Иконки на карточках  */
/*============================================================================*/

.card-icon{
	width:50px;
	display:inline-block;
	margin-top: 1px;
	margin-left: 20px;
	/* margin-right: 10px; */
	color: rgba(255, 255, 255, 0.55);
	text-shadow: none;
	font-size: 40pt;
}

/*============================================================================*/
/* Иконки на кнопках */
/*============================================================================*/

.ind-icon {
	color: rgba(255, 255, 255, 0.8);
	text-shadow: none;
	font-size: 12pt;
	/* margin-right: 5pt; */
}

.ind-label {
	text-shadow: none;
	color: black;
	font-size: 10pt;
	font-weight: 150;
}

.cloud-arrow {
	font-size: 10pt;
}

/*============================================================================*/
/* Кнопки на карточках */
/*============================================================================*/

.btn{
	padding-left: 15px;
	padding-right: 15px;
}

.air-card-button{
	width: 155px;
	margin-bottom: 3px;
}

/* Кнопки управления */
.switching{
	height:40px; 
	user-select: none; 
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

.switching-noact {
	height: 40px;
	color: rgb(184, 184, 184);
	padding: 0 !important;
	user-select: none;
	display: flex;
	align-items: center;
	justify-content: center;
}

.switching:not(:active){
	transition-timing-function: ease-in;
	transition: 1s;
}

.switching:active, .switching.active {
	background: #EDFFEC;
	text-shadow: none;
	box-shadow: 0 -2px   rgba(68, 175, 14, 0.9) inset;
	/* border-radius: 3px; */
}

.switching:active {
	position: relative;
	top: 1px;
}
 
/*============================================================================*/
/* Индикаторы, пульсирующие кнопки */
/*============================================================================*/

.heat-on, .water-on, .indication, .vent-on {
  position: relative;
  width: 36px;
	height: 36px;
	padding-top: 2px;
  margin-bottom:5px;
  border: none;
  box-shadow: 0 0 0 0 rgba(232, 76, 61, 0.7);
  border-radius: 50%;
  font-size: 8pt;
  text-shadow: 0px 0px 0 #000000;
  color: white;
  /* background-color: #e84c3d; */
  /* background-size:cover; */
  /* background-repeat: no-repeat; */
  cursor: default;
  -webkit-animation: pulse 1s infinite cubic-bezier(0.66, 0, 0, 1);
  -moz-animation: pulse 1.25s infinite cubic-bezier(0.66, 0, 0, 1);
  -ms-animation: pulse 1.25s infinite cubic-bezier(0.66, 0, 0, 1);
  animation: pulse 1.25s infinite cubic-bezier(0.66, 0, 0, 1);
}


.water-on {
	box-shadow: 0 0 0 0 rgba(33, 133, 240, 0.65);
}

.indication{
	-webkit-animation:none;
	-moz-animation:none;
	-ms-animation: none;
	/* cursor: pointer; */
	animation: none;
	box-shadow: 0 1px 2px 1px rgba(155, 155, 155, 0.68);
}

.vent-on{
	box-shadow: 0 0 0 0 rgba(102, 102, 102, 0.51);
}

div.indicator-on::after{
	content: "";
}

div.indicator-off::after{
	content: "";
}

div.indicator-vent-on::after{
	content: "";
}

.label2{
	float:left;
	margin-top:7px;
	color:grey;
}

/* Цветовая пульсация */
@-webkit-keyframes pulse {to {box-shadow: 0 0 0 20px rgba(232, 76, 61, 0);}}
@-moz-keyframes pulse {to {box-shadow: 0 0 0 20px rgba(232, 76, 61, 0);}}
@-ms-keyframes pulse {to {box-shadow: 0 0 0 20px rgba(232, 76, 61, 0);}}
@keyframes pulse {to {box-shadow: 0 0 0 20px rgba(232, 76, 61, 0);}}

/* Иконка низкого уровня воды */
.blink-lowwater{
	animation: wblink 1.9s ease-in 1.9s infinite;
}

@keyframes wblink {
	0% {background: #0d47a1;}
	50% {background: #000;}
	100% {background: #0D47A1;} 
} 

.blink-lowwater-icon{
	animation: wiblink 1.9s ease-in 1.9s infinite;
}

@keyframes wiblink {
	0% {opacity: 1;}
	50% {opacity: 0;}
	100% {opacity: 1;} 
} 

.ind-light{
	transition: all 1s;
}

/* Сообщения */
.toast {
	justify-content: flex-start !important;
}

.material-tooltip { 
	text-align: left;
	white-space: pre; 
}

/*============================================================================*/
/* Страница настроек */
/*============================================================================*/

.title{
	padding-top: 20px; 
	margin-bottom: 0; 
	display: flex;
	/* border-bottom: solid #06AD6D 2px; */
}

/* Вкладки */
.tabs{
	padding-top: 3px;
}

.indicator{
	background-color: #06AD6D !important;
}

.tab a{
	color: rgb(163, 163, 163) !important;
}

.tab a:hover{
	color: black !important;
}

.tab a.active{
	color: black !important;
	font-weight: bold;
}

/* Заголовки */
.subtitle{
	font-size: 16px;
	font-weight: bold;
}

.page-section{
	margin: 15px 0 0 10px;
}

/* Таблица сенсоров */
.sensors-table td, th{
	padding: 0px 5px;
	text-align: left;
}

#conditions_table td:not(:last-child) {
	vertical-align: baseline;
}

.mini-table td{
	padding: 5px 5px 0 5px;
}

/* Схлопывающаяся таблица */
@media only screen and (max-width: 992px){
	.table_header
	{
		display: block;
		text-align: left;
		margin-bottom: 32px;
	}
}

/* Строки и ячейки таблицы датчиков */
.table-number{
	margin-top: 7px;
}

.table-select{
	margin-bottom:0;
}

.table-lcdcheck{
	text-align: center !important; 
	padding-left: 19px !important;
	padding-top: 10px !important;
}

input[type=text]:not(.browser-default){
	margin-bottom:2px;
}

input[type=number]:not(.browser-default) {
	margin-bottom: 2px;
}

/* Цветовой селектор в настройках */
.color-ball{
	width: 46px;
	height: 46px;
	border-radius: 23px;
	margin: 5px;
}

.color-ball:hover{
	opacity: .6;
}

.color-modal li{
	display: inline-block;
}

.angle-selector{
	width: 60px;
	margin: 0 4px 4px 0 !important;
}

.angle-selector > input[type=number]{
	height: 30px;
	margin-bottom: 2px;
}

/* Слайдеры */
.pump-slider > input[type=range]::-webkit-slider-thumb{
	background-color: rgb(43, 91, 224) !important;
}

.pump-slider > input[type=range] + .thumb {
  background-color: rgb(20, 55, 211);
}

.pow-slider > input[type=range]::-webkit-slider-thumb{
	background-color: rgb(199, 26, 26) !important;
}

.pow-slider > input[type=range] + .thumb {
  background-color: rgb(199, 26, 26);
}

/* Цвет текста в выпадающих списках */
.dropdown-content li > span {
	color: rgb(8, 114, 34);
}

.dropdown-content li.selected > span {
	background: rgba(144, 255, 129, 0.35);
}

/* Таблица облачных настроек */
.table-с td, .table-с th{ 
	padding: 0px 5px;
	text-align: left;
}

/* Индикатор состояния облака */ 
.cloud-indicator{
	display: flex;
	justify-content: flex-start;
	align-items: center;
}

#cloudInd{
	min-width: 18px;
	height: 18px;
	margin: 8px 8px 8px 16%;
	border-radius: 50%;
	background: rgb(65, 65, 65);
}

#cloudInd.active{
	background: rgb(8, 206, 74);
}

.field{
	height: 38px !important;
}

.field:focus{
	border-bottom: 1px solid #4CAF50 !important;
}

.field.invalid:focus{
	border-bottom: 1px solid #F44336 !important;
}

.freeSpaceSD {
	margin: 0 6px;
	color: rgb(36, 100, 36);
}

/*============================================================================*/
/* Таблица на странице автоуправления */
/*============================================================================*/

.row-number {
	height: 46px;
	font-weight: bold;
	color: #43A047;
}

.row-number.grip::before {
	content: "::";
	color: gray;
	margin-right: 10px;
}

.row-dragging {
	background-color: rgba(210, 237, 246, 0.8);
}

.row-place {
	background: rgba(0, 0, 0, 0.05);
}

/*============================================================================*/
/* Таблица на странице снимков состояния */
/*============================================================================*/

.snap-right-bar {
	width: 100%;
	margin-top: 6px;
	display: flex;
	justify-content: flex-end;
	gap: 12px;
}

#snapshots_table td {
	padding: 8px !important;
}

.snap-img-td img {
	/* border: solid 2px rgba(24, 133, 184, 0.2); */
	box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
	border-radius: 4px;
}

.snap-data-col {
	display: grid;
	grid-template-columns: 2fr 1fr auto 2fr;
	gap: 2px;
}

.snap-line {
  grid-column: 1 / -1;
  height: 1px;
  background: rgba(0, 0, 0, 0.15);
}

.snap-data-col div {
	margin-right: 8px;
}

.snap-sens-name {
	display: flex;
	align-items: center;
}

.snap-value {
	text-align: right;
}

.snap-unit {
	color: rgb(134, 134, 134);
}

.snap-color-circle {
	border-radius: 30%;
	width: 12px;
	height: 12px;
	border: solid 1px rgba(24, 133, 184, 0.2);
}

#snap-empty-text {
	display: none;
	color: rgb(129, 129, 129);
	margin: 10px 0 0 10px;
}