.infodate{
	background-color: #f9fafb;
	width: 200px;
	padding: 10px 5px 5px 5px;
	border-radius: 8px;
	position: fixed;
	top: 60px;
	right: 5px; 
	z-index: 1000;
	margin: 0px;
	display: none;
	border: 2px solid #2f6690;
	line-height: 1.1;
}

.infodate input{
	/*border-color: gray;
	border-style: solid;*/
	border: 1px solid gray;
	border-radius: 5px;
	padding: 2px;
	margin-bottom: 1px;
}
.infodate select{
	/*border-color: gray;
	border-style: solid;*/
	border: 1px solid gray;
	border-radius: 5px;
	padding: 2px;
	width: 100%;
}
.infodate option{
	/*border-color: gray;
	border-style: solid;*/
	border: 1px solid gray;
	border-radius: 5px;
	padding: 2px;
	width: 100%;
	line-height: 1.1;
}
.infodate textarea{
	padding: 5px 5px 5px 5px;
	margin: 5px 0px 5px 0px;
	width: 100%;
	height: 100px;
}
.infodate button{
	border: 1px solid gray;
	border-radius: 5px;
	padding: 3px;
	margin-top: 3px;
}
/* смайлик поиска персон*/
#searchform_open{
	background-color: aliceblue;
	border-radius: 30px;
	border: 2px solid #2f6690;/**/
	background: url(/tree/img/searchform_open.png) no-repeat;
	background-size: 100% 100%;
    position: absolute; 
	top: 60px; 
	left: 10px;
	height:54px; 
	width:54px;
	display:inline;
	z-index: 1000;
	padding: 0px 0px 0px 0px;
	cursor: pointer;
}

#searchform_close{
	background-color: aliceblue;
	border-radius: 0px;
	border: 2px solid cadetblue;
	/*background-image: url(/img/searchform_open.png);*/
	background: url(/tree/img/searchform_close.png) no-repeat;
	background-size: 100% 100%;
    position: absolute; 
	top: 40%; 
	left: 200px;
	height:44px; 
	width:14px;
	/*
	position: fixed;
	display: flex;
	align-items: center;
	display:inline;
	*/
	display:none;
	z-index: 500;
	padding: 0px 0px 0px 0px;
	cursor: pointer;
}

/* форма поиска персон*/
#searchform{
	background-color: #f9fafb;
	width: 220px;
	padding: 5px 5px 5px 5px;
	border-radius: 8px;
	position: fixed;
	top: 60px;
	left: 5px; 
	z-index: 2000;
	margin: 0px;
	display: none;
	border: 2px solid #2f6690;
	line-height: 1.1;
}

#searchform input{
	/*border-color: gray;
	border-style: solid;*/
	border: 1px solid gray;
	border-radius: 3px;
	padding: 2px;
	margin-bottom: 1px;
}

/*#mainform{*/
#setupform{	
	background-color: aliceblue;
	width: 600px;
	height: 100px;
	padding: 10px 10px 10px 10px;
	border-radius: 10px;
	position: fixed;
	/*position: absolute;*/
	bottom: 50; /* Положение от нижнего края */
	/* right: 0; */
	left: 0;
	z-index: 1000;
	margin: 10px;
	display: none;/**/
	border: 2px solid cadetblue;
}

/*#mainform>*{*/
#setupform>*{
	width: 100%;
	margin-bottom: 6px;
}

/* смайлик настроек*/
#setupform_open{
	background-color: aliceblue;
	border-radius: 30px;
	border: 2px solid #2f6690;/**/
	background: url(/tree/img/setupform_open.png) no-repeat;
	background-size: 100% 100%;
    position: absolute; 
	top: 120px; 
	left: 10px;
	height:54px; 
	width:54px;
	display:inline;
	z-index: 1000;
	padding: 0px 0px 0px 0px;
	cursor: pointer;
}

#setupform_close{
	background-color: aliceblue;
	border-radius: 0px;
	border: 2px solid cadetblue;
	/*background-image: url(/img/searchform_open.png);*/
	background: url(/tree/img/setupform_close.png) no-repeat;
	background-size: 100% 100%;
    position: absolute; 
	top: 40%; 
	left: 200px;
	height:44px; 
	width:14px;
	/*
	position: fixed;
	display: flex;
	align-items: center;
	display:inline;
	*/
	display:none;
	z-index: 500;
	padding: 0px 0px 0px 0px;
	cursor: pointer;
}

/* крестик закрывающий окно справа-вверху*/
.win_close {
    background-color: #0000;
    background-image: url(/tree/img/winclose.png);
    background-repeat: no-repeat;
    border-color: #0000;
    box-shadow: none;
    cursor: pointer;
    height: 22px;
	width: 22px;
    min-width: 0;
    min-width: auto;
    position: absolute;
    right: 3px;
    top: 1px;
    z-index: 3000;
}

/* смайлик ВЫ*/
#youform{
	background-color: aliceblue;
	border-radius: 30px;
	border: 2px solid #2f6690;/**/
	background: url(/tree/img/home2.png) no-repeat;
	background-size: 100% 100%;
    position: absolute; 
	top: 60px; 
	left: 80px;
	height:54px; 
	width:54px;
	display:inline;
	z-index: 100;
	padding: 0px 0px 0px 0px;
	cursor: pointer;
}

#_addParentsForm{
	background-color: aliceblue;
	width: 370px;
	padding: 0px 5px 0px 5px;
	border-radius: 0px;
	position: fixed;
	/*position: absolute;*/
	top: 1px;
	/*bottom: 0;  Положение от нижнего края */
	 right: 0px; 
	/*left: 0;*/
	z-index: 1000;
	margin: 0px;
	display: none;
	border: 1px solid cadetblue;
}

.infodate2{
	background-color: #f9fafb;
	width: 400px;
	padding: 0px 0px 0px 0px;
	border-radius: 8px;
	position: fixed;
	top: 52px;
	right: 2px; 
	z-index: 1000;
	margin: 0px;
	padding: 2px;
	display: none;
	border: 2px solid #2f6690;
	line-height: 1.1;
}

.infodate2 input{
	/*border-color: gray;
	border-style: solid;*/
	border: 1px solid gray;
	border-radius: 5px;
	padding: 2px;
	margin-bottom: 1px;
}
.infodate2 select{
	/*border-color: gray;
	border-style: solid;*/
	border: 1px solid gray;
	border-radius: 5px;
	padding: 2px;
}
.infodate2 textarea{
	padding: 5px 5px 5px 5px;
	margin: 5px 0px 5px 0px;
	width: 100%;
	height: 100px;
}
.infodate2 button{
	border: 1px solid gray;
	border-radius: 5px;
	padding: 3px;
	margin: 0px;
	margin-top: 3px;
}

._infodate1{
	background-color: #f9fafb;
	width: 195px;
	padding: 5px 5px 5px 5px;
	border-radius: 8px;
	float:left;
}
._infodate2{
	background-color: #f9fafb;
	width: 195px;
	padding: 5px 5px 5px 5px;
	border-radius: 8px;
	float:right;
}

#stat{
	background-color: #fff;
	border: 1px solid gray;
	/*width: 100%;*/
	height: 30px;
	padding: 0px 5px 3px 5px;
	border-radius: 5px;
	position: fixed;
	bottom: 30px; /* Положение от нижнего края */ 
	left: 5px;
	z-index: 1000;
	margin: 0px;
	right: 1px;
}

#footer{
	background-color: #fff;
	border: 1px solid gray;
	height: 30px;
	padding: 0px 5px 0px 5px;
	border-radius: 5px;
	position: fixed;
	bottom: 1px; /* Положение от нижнего края */
	left: 5px;
	z-index: 1000;
	margin: 0px;
	right: 1px;
}
/*
#winUploadForm{
	background-color: #f9fafb;
	width: 600px;
	padding: 10px 5px 5px 5px;
	border-radius: 8px;
	position: fixed;
	top: 52px;
	right: 2px; 
	z-index: 1000;
	margin: 0px;
	display: none;
	border: 2px solid #2f6690;
	line-height: 1.1;
}
*/
/*
.main-photo-container {
	position: fixed;
	top: 20px;
	right: 20px;
	width: 300px;
	border: 2px solid #333;
	padding: 10px;
	background: white;
	box-shadow: 0 0 10px rgba(0,0,0,0.5);
	z-index: 1000;
	display: none;
}

.main-photo {
	max-width: 100%;
	height: auto;
}

.gallery {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
	margin-top: 20px;
}
.image-item {
	border: 1px solid #ddd;
	padding: 10px;
	position: relative;
	width: 220px;
}
.image-controls {
	position: absolute;
	top: 5px;
	right: 5px;
	display: flex;
	gap: 5px;
}
.image-controls button {
	background: rgba(255,255,255,0.8);
	border: none;
	border-radius: 50%;
	width: 25px;
	height: 25px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}
.image-preview {
	width: 200px;
	height: 200px;
	object-fit: contain;
	margin-bottom: 10px;
}
.image-info {
	font-size: 12px;
	word-break: break-all;
}
.delete-btn {
	color: #ff4444;
}
.main-btn {
	color: #007bff;
}
.main-btn.active {
	color: #28a745;
}
#uploadForm {
	margin: 20px 0;
	padding: 20px;
	border: 1px solid #ddd;
	border-radius: 5px;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.2);
}

.modal-content {
  background-color: #fefefe;
  margin: 5% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 900px;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
}

.close-btn {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}


#modal_delPerson{
  padding: 50px;
  background: #ccc;
  position: fixed; top: 50%; left: 50%;
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  z-index: 1000;
}
*/
.del{
  padding: 50px;
  background: #ccc;
  position: fixed; top: 50%; left: 50%;
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  z-index: 1000;
}

.del button{
	border: 1px solid gray;
	border-radius: 5px;
	padding: 3px;
	margin-top: 3px;
}

.tie{
	background-color: #f9fafb;
	width: 200px;
	padding: 0px 0px 0px 0px;
	border-radius: 8px;
	position: fixed;
	top: 52px;
	right: 2px; 
	z-index: 1000;
	margin: 0px;
	padding: 2px;
	display: none;
	border: 2px solid #2f6690;
	line-height: 1.1;
}

.tie input{
	/*border-color: gray;
	border-style: solid;*/
	border: 1px solid gray;
	border-radius: 5px;
	padding: 2px;
	margin-bottom: 1px;
}

.tie button{
	border: 1px solid gray;
	border-radius: 5px;
	padding: 3px;
	margin: 0px;
	margin-top: 3px;
}
._tie{
	background-color: #f9fafb;
	width: 190px;
	padding: 5px 5px 5px 5px;
	border-radius: 8px;
	float:left;
}