@charset "utf-8";
html {
	font-size:100%;
	height: 100%;
	width: 100%;
	margin: 0;
	padding: 0;
	overflow: none;
}

body{
	background-color:#FFF;
	font-family:Helvetica Neue,Helvetica,Arial,sans-serif;
	/*font-size: clamp(1rem, 0.4737rem + 1.6842vw, 3rem);*/ /* https://clamp-generator.netlify.app/ */
	font-size: clamp(1.563rem, 2.652vw + 0.568rem, 3.75rem);
	padding: 0px;
	margin: 0px;
	height: 100%;
	width: 100%;
	transition: font-size 0.3s ease; /* Плавное изменение размера шрифта */
}

#btnFont{
	top: 5px;	right: 50px;
}
#btnExit{
	top: 5px;	right: 5px;
}
#btnSave{
	bottom: 10px;	right: 10px;
}
#btnSave2{
	bottom: 10px;	right: 10px;
}

.btn-control {
	position: fixed;
	z-index: 1000;
	background: rgba(255, 255, 255, 0.9);
	border-radius: 50px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
	display: flex;
	align-items: center;
	gap: 10px;
	overflow: hidden;
	transition: all 0.3s ease;
	width: 40px;
	height: 40px;
	cursor: pointer;
}

.btn-control:hover {
	width: auto;
	height: auto;
	padding: 10px 15px;
	border-radius: 20px;
}

.btn-control label {
	font-size: 14px;
	color: #333;
	white-space: nowrap;
	opacity: 0;
	transition: opacity 0.2s ease 0.1s;
	pointer-events: none;
}

.btn-control:hover label {
	opacity: 1;
}

.btn-control input[type="range"] {
	width: 0;
	opacity: 0;
	transition: all 0.3s ease;
	cursor: pointer;
}

.btn-control:hover input[type="range"] {
	width: 150px;
	opacity: 1;
}

.font-value {
	font-size: 14px;
	min-width: 0;
	opacity: 0;
	transition: all 0.3s ease;
	text-align: center;
	overflow: hidden;
	pointer-events: none;
}

.btn-control:hover .font-value {
	min-width: 30px;
	opacity: 1;
}

.icon {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	font-size: 20px;
	transition: all 0.3s ease;
}

.btn-control:hover .icon {
	opacity: 0;
}

.btn-control2 {
	position: fixed;
	z-index: 1000;
	background: rgba(255, 255, 255, 0.9);
	border-radius: 50px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
	display: flex;
	align-items: center;
	gap: 10px;
	overflow: hidden;
	transition: all 0.3s ease;
	width: 40px;
	height: 40px;
	cursor: pointer;
}

.btn-control2:hover {
	background: rgba(255, 200, 200, 0.9);
}

#loader{
	display: none;
	position: fixed;
	left: 0px;
	top: 0px;
	width: 100%;
	height: 100%;
	z-index: 19999;
	background: url("../img/load.gif") 50% 50% no-repeat rgb(249,249,249);
	background-color: transparent;
	text-align: center;
	vertical-align: middle;
	text-shadow: 6px 3px 4px #CE5937;
	font-size:4vh;
}

#login {
	background: #78ff7c;
	border: solid 1px black;
	overflow: auto;
	position: absolute;
	height: auto;
	width: 50%;
	left: 50%;
	top: 0px;
	margin-left: calc(-25% + 1rem);
	border-radius: 8px;
}

input, select, textarea, button {
	font-size: 100%;
	box-sizing: border-box;
	border: 2px solid #AAA;
}

input:hover, select:hover, textarea:hover, input:active, select:active, textarea:active, input:focus, select:focus, textarea:focus, button:focus {
	border: 2px solid #F00;
	outline: none;
}

#login input, #login select, #login button {
	padding: 0.3rem; 
	margin: 0.3rem; 
	-webkit-border-radius: 5px;
	border-radius: 5px; 
}

#login input[type=text],#login input[type=password],#login select{
	width: calc(100% - 1.5rem);
}

#login button {
	padding-right:2.5rem;
	padding-left:2.5rem;
	background:#ccc; 
	cursor:pointer;
}

#login button:hover {
	background:#fcc; 
}

@media screen and (max-width:800px), screen and (orientation: portrait){
	#login {
		font-size: 200%;
		width: calc(100% - 2rem);
		margin-left: calc(-50% + 1rem);
	}
}

#jstree, .jstree-default-contextmenu{
	/*font-size: 30px !important;
	font-size: clamp(1.4rem, 0.4737rem + 1.6842vw, 2rem) !important;*/
}

#jstree{
	flex: 1;
	overflow: auto;
}

#inputFind{
	width: calc(100% - 1rem);
	background:#bff3ff;
	font-size: 75%;
	margin: 0.5rem;
}

#divScroll{
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
	overflow: auto;
	position: relative;
}

#divFind{
	position: absolute;
	right: 21px;
	bottom: 17px;
	width: 250px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 4px;
	background: rgba(255, 255, 255, 0.7);
	padding-left: 10px;
	padding-right: 10px;
}

#divFind:hover{
	background: rgba(255, 255, 255, 1);
}

#divReloadTree{
	position: absolute;
	right: 21px;
	top: 5px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 4px;
}

#main10 {
	display: flex;
	width: 100%;
	height: 100%;
	flex-direction: row;
}

.resizer {
	width: 5px;
	background: #888;
	cursor: ew-resize;
}

.vertical .resizer {
	height: 5px;
	width: 100%;
	cursor: ns-resize;
}

#div11 {
	background: #bff3ff;
	overflow: auto;
	position: relative;
}

#mymenu_1 {
	background: #fff9dc;
	flex: 1;
	/*overflow: auto;*/
	display: flex;
	flex-direction: column;
}

#div21 {
	flex: 1 1 auto; /* занимает всё свободное пространство */
	/*font-size: 80%;*/
	overflow: auto; /* если нужно прокручивание */
	background: #e0f7fa; /* просто для наглядности */
}

#div22 {
	flex: 0 0 auto; /* не растягивается */
	padding: 0.1em;
	/*font-size: 80%;*/
	line-height: 1.1;
	background: #bff3ff; /* наглядность */
	height: calc(1.1em * 7); /* примерно 7 строки текста */
	overflow: auto;
}

@media (orientation: portrait) {
	#main10 {
		flex-direction: column;
		height: 100%;
	}

	#div11 {
		height: 30vh;
		width: 100% !important;
		flex: none;
	}

	#div12 {
		flex: 1;
		width: 100%;
		min-height: 0;
	}

	.resizer {
		height: 5px;
		width: 100%;
		cursor: ns-resize;
	}
	
	#divReloadTree{
		position: absolute;
		right: 110px;
		top: 5px;
	}
}

.sup {
	background: #fff9dc;
	font-size: 50%;
}

.vakata-context-parent {
  display: none !important;
}














#balloonTabMain {
	flex: 0 0 auto; /* не растягивается */
}
/*
.mymenu{
	width: 100%;
	height: 100%;
}
*/
.balloonTab {
	overflow: hidden;
	border: 1px solid #ccc;
	border-top: none;
}
.balloonTab button {
	background-color: inherit;
	color:#009;
	float: left;
	border: none;
	outline: none;
	cursor: pointer;
	padding: 1px 5px;
	margin: 2px 1px 0px 1px; /* сверху | справа | снизу | слева */
	transition: 0.3s;
	font-family: Impact, Charcoal, sans-serif;
	border-top-right-radius: 1rem;
	border-top-left-radius: 1rem;
	background-color: #eee;
	border: 1px solid #999;
	border-bottom: none;
}
.balloonTab button:hover {
	background-color: #ddd;
}
.balloonTab button.active {
	background-color: #fff2b0;
}
.balloonTabContentScroll {
	display: none;
	border-top: none;
	overflow-x: hidden; 
	overflow-y: auto;
	height: 100%;
}

.headerTop{
	padding: 0.2rem;
}


#tableIsArray {
	font-size: 60%;
	width: 100%;
	border-collapse: collapse;
} 

#tableIsArray thead tr{
	background: #d3ffd8;
	text-transform: uppercase;
	font-weight: bold;
}

#tableIsArray thead td{
	text-align: center;
	vertical-align: middle;
	padding: 0.1rem;
	border: 1px solid #CCC;
}

#tableIsArray tbody tr{
	background: #FFF;
}

#tableIsArray tbody tr:hover {
	background: #fff2b0;
}

#tableIsArray tbody td{
	padding: 0.1rem;
	border: 1px solid #CCC;
}

@keyframes blink-red-pink {
	0% { background-color: red; }
	50% { background-color: pink; }
	100% { background-color: red; }
}

.blinking-bg {
	animation: blink-red-pink 1s infinite ease-in-out;
	padding: 2px;
	color: white; /* Чтобы текст был виден на красном/розовом */
	text-align: center;
}

.blinking-bg:hover {
	animation-play-state: paused; /* Остановка при наведении */
}




/* Модальное окно */
.multiline-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    /* Убрали центрирование */
    padding: 1rem; /* Добавляем отступ от краёв экрана */
}

.multiline-modal__content {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    width: 40vw; /* Можно уменьшить ширину */
    min-width: 300px;
    max-width: 500px;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);
    /* Позиционируем в левом верхнем углу */
    position: absolute;
    top: 1rem;
    left: 1rem;
    margin: 0; /* Убираем внешние отступы */
}

/* Адаптируем высоту textarea с учётом нового элемента */
.multiline-modal__input {
    height: 20vh; /* Уменьшаем высоту */
    margin-bottom: 0.5rem; /* Меньший отступ */
	width: 100%;
}

.multiline-modal__buttons {
    display: flex;
    justify-content: flex-end;
    gap: 0.8rem;
}

.multiline-modal__button {
    padding: 0.6rem 1.2rem;
    border-radius: 0.3rem;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.multiline-modal__cancel {
    background: #f0f0f0;
    border: 1px solid #ccc;
    color: #333;
}

.multiline-modal__cancel:hover {
    background: #e0e0e0;
}

.multiline-modal__submit {
    background: #4CAF50;
    border: 1px solid #4CAF50;
    color: white;
}

.multiline-modal__submit:hover {
    background: #45a049;
}

.multiline-modal__content {
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
	from { opacity: 0; transform: translateY(-1rem); }
	to { opacity: 1; transform: translateY(0); }
}

.multiline-modal__title {
	display: block;
	font-size: 1.2rem;
	font-weight: bold;
	margin-bottom: 1rem;
	color: #333;
	padding: 0.3rem 0;
	border-bottom: 1px solid #eee;
}

.multiline-modal__select {
	width: 100%;
	padding: 0.8rem;
	margin: 0.5rem 0 1.5rem 0;
	border: 1px solid #ddd;
	border-radius: 0.3rem;
	font-size: 1rem;
	background-color: white;
}

.jstree-icon {
	width: 24px;
	height: 24px;
}

/* Цвет выделенного узла */
.jstree-default .jstree-clicked {
	background: #f55 !important;  /* Красный фон */
	box-shadow: inset 0 0 1px red;  /* Доп. эффект (опционально) */
}

/* Цвет при наведении (опционально) */
.jstree-default .jstree-hovered {
	background: #fcc !important;  /* Светло-красный при наведении */
}

.search-navigation {
	margin: 10px 0;
	font-family: Arial;
}
.search-navigation a {
	display: inline-block;
	padding: 2px 8px;
	margin: 0 3px;
	background: #f0f0f0;
	border-radius: 3px;
	text-decoration: none;
	color: #333;
}
.search-navigation a:hover {
	background: #e0e0e0;
}

#divFind a {
	color: #000; /* Черный цвет по умолчанию */
	text-decoration: none;
	font-size: 16px;
	transition: color 0.2s ease;
	padding: 2px 5px;
	border-radius: 3px;
	background: none !important;
	
}

#divFind a:hover {
	color: #ff0000; /* Красный при наведении */
	background-color: #f5f5f5; /* Светлый фон при наведении (опционально) */
}

#search-results-count{
	font-size: 80%;
	font-weight: bold;
}


#tableShowLog{
	width:100%;
	border-collapse: collapse;
}

#tableShowLog tr:hover {
	background: #d3ffd8;
	cursor:pointer;
}

#tableShowLog td{
	font-size: 70%;
	border: 1px solid #CCC;
}