@font-face {
	font-family: NotoColorEmojiLimited;
	unicode-range: U+1F1E6-1F1FF;
	src: url(https://raw.githack.com/googlefonts/noto-emoji/main/fonts/NotoColorEmoji.ttf);
}
* {
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
	box-sizing: border-box !important;
}
.collapsible-header, .material-icons, .material-icons-outlined {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}
html, body {
	overscroll-behavior: none;
}
body {
	overflow-x: hidden;

    /* Убирает подсветку при тапе */
    -webkit-tap-highlight-color: transparent;
    
    /* Улучшает отзывчивость на касания */
    touch-action: manipulation;
    
    /* Предотвращает масштабирование при двойном тапе */
    touch-action: pan-y;
}
a {
	color: green;
}
header {
	position: fixed;
	z-index: 1000;
	display: flex;
    justify-content: space-between;
}
.autocomplete-content li {
	line-height: normal;
	padding: 8px 16px;
}
#existingPerson + .autocomplete-content {
	position: absolute;
	top: 0;
}
#overlay {
	position: absolute;
	top: 0px;
	left: 0px;
	right: 0px;
	bottom: 0px;
	text-align: center;
}
#debug {
	font-family: 'Courier New', Courier, monospace;
}
[v-cloak] {
	display: none;
}
.row {
	margin-bottom: 0;
}
.input-field {
	margin-bottom: 0;
}
.input-field > .select-wrapper + label {
	top: 0;
	font-size: 1rem;
}
select[required] {
	display: block;
	height: 0;
	padding: 0;
	width: 0;
	position: absolute;
}
[type="checkbox"].filled-in:checked + span:not(.lever):after {
	border-color: rgb(76, 175, 80);
	background-color: rgb(76, 175, 80);
}
.white-text input[type="checkbox"]:not(:checked) + span:not(.lever):after {
    border-color: #fff6 !important;
}
.datepicker-date-display [type="checkbox"] + span:not(.lever) {
    padding-left: 25px;
    padding-right: 5px;
	line-height: 22px;
	white-space: nowrap;
}
/* .datepicker-table {
    width: 270px;
} */
.datepicker-table td.is-other {
    color: grey;
    opacity: 0.5;
}
.datepicker-table td.is-selected {
	background-color: rgb(76, 175, 80);
    color: white !important;
}
.datepicker-table td.is-today {
    color: rgb(76, 175, 80);
}
.datepicker-table th {
	padding: 0;
}
.datepicker-calendar-button {
	height: 40px;
	line-height: 40px;
}
.datepicker-table, .datepicker-day-button {
    height: 100%;
}
.datepicker-day-button {
    line-height: normal;
}
.datepicker-day-button:focus {
    background-color: rgba(76, 175, 80, 0.25);
}
input.datepicker {
    cursor: text;
}
.input-field .postfix {
	position: absolute;
	width: 2rem;
	font-size: 2rem;
	-webkit-transition: color .2s;
	transition: color .2s;
	top: .5rem;
	right: 0;
	text-align: right;
	pointer-events: none;
}
.input-field .postfix.active {
	color: rgb(76, 175, 80);
}
.input-field .postfix ~ input,
.input-field .postfix ~ label,
.input-field .postfix ~ textarea {
	margin-left: 0;
	width: 100%;
	padding-right: 2rem;
}
.input-field input:focus + label,
.input-field textarea:focus + label,
.input-field select:focus + label,
.input-field .prefix.active {
	color: rgb(76, 175, 80) !important;
}
.input-field input:not(#search):focus,
.input-field textarea:focus,
.input-field select:focus {
	border-bottom: 1px solid rgb(76, 175, 80) !important;
	box-shadow: 0 1px 0 0 rgb(76, 175, 80) !important;
}
[type=radio]:checked + span:after,
[type=radio].with-gap:checked + span:before,
[type=radio]:checked + span:after {
	border-color: rgb(76, 175, 80);
}
[type=radio]:checked + span:after,
.switch label input[type=checkbox]:checked + .lever:after {
	background-color: rgb(76, 175, 80);
}
.btn-flat:hover,
.switch label input[type=checkbox]:checked + .lever {
	background-color: rgb(200, 230, 201);
}
input[type=range]::-webkit-slider-runnable-track {
	height: 4px;
}
input[type=range]::-webkit-slider-thumb {
	height: 20px;
	width: 20px;
	margin-top: -8px;
	border-radius: 50%;
	background-color: rgb(76, 175, 80);
}
#profile-tabs.tabs .tab a:hover, #profile-tabs.tabs .tab a.active {
	color: #000000;
}
#profile-tabs.tabs .tab a:focus, #profile-tabs.tabs .tab a:focus.active {
    background-color: rgba(200, 230, 201, 0.2);
}
#profile-tabs.tabs .tab a {
	color: #00000080;
	font-weight: bold;
}
#profile-tabs.tabs .indicator {
	background-color: #000000;
}
/* :not(#overlay).container {
	padding-bottom: calc(56px + 45px);
} */
.sidenav .divider {
	margin: 8px 16px;
}
.sidenav .collapsible li.active {
	background-color: revert;
}
.sidenav .collapsible-body {
	padding-bottom: 8px;
}
li.collection-header .profile:hover {
	background-color: rgba(0,0,0,0.05);
}
li.collection-header a.profile,
li.collection-header .profile {
	padding: 8px 16px;
	font-weight: normal;
	line-height: normal;
	height: revert;
}
.sidenav .collapsible-header i.rotate {
	position: absolute;
	right: 2px;
}
.emojible {
	font-family: 'NotoColorEmojiLimited', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol' !important;
}
.modal {
	min-height: 90%;
	bottom: 0;
}
.modal.modal-fixed-footer {
	min-height: 90%;
}
#modalStorage {
	max-width: 300px;
}
#modalDialog + .modal-overlay,
#modalStorage + .modal-overlay {
	background-color: white;
}
#modalDialog a, #modalStorage a {
	min-width: 100px;
}
@media only screen and (min-width: 601px) {
	#modalDialog, #modalStorage {
		bottom: 10%;
		height: fit-content;
		min-height: auto;
	}
}
@media only screen and (max-width: 600px) {
	.modal,
	.modal.modal-fixed-footer {
		min-width: 100%;
		min-height: 100%;
		border-radius: 0;
	}
	.modal .modal-content {
		position: absolute;
		height: calc(100% - 56px);
		max-height: 100%;
		width: 100%;
		overflow-y: auto;
	}
	.modal .modal-footer {
		border-top: 1px solid rgba(0, 0, 0, 0.1);
		position: absolute;
		bottom: 0;
	}
}

#modalEditPerson .collapsible li.active .collapsible-header i.rotate {
	-ms-transform: rotate(180deg);
	-webkit-transform: rotate(180deg);
	transform: rotate(180deg);
}
.rotate {
	-moz-transition: all 0.3s linear;
	-webkit-transition: all 0.3s linear;
	transition: all 0.3s linear;
}
#modalEditPerson .collapsible-header {
	position: relative;
	align-items: center;
	justify-content: center;
	color: lightgrey;
}
#modalEditPerson .collapsible-header,
#modalEditPerson .collapsible-body {
	padding: 1em 0;
}
#modalNewPerson li:not(.active) .collapsible-header {
	position: relative;
	color: rgb(76, 175, 80);
}
#modalNewPerson li:not(:last-child) .collapsible-header:before {
	content: '';
	position: absolute;
	height: 2em;
	bottom: -1.1em;
	left: 19px;
	z-index: -1;
	border: 1px solid grey;
	transition: height .3s, bottom .3s;
}
#modalNewPerson li:not(:last-child).active .collapsible-header:before {
	height: 0em;
	bottom: 1em;
	transition: height .3s, bottom .3s;
}
#modalNewPerson .step {
	display: inline-block;
    width: 40px;
    text-align: center;
    height: 40px;
    line-height: 40px;
    background-color: #C8E6C9;
    border-radius: 50%;
    margin-right: 0.5em;
}
#modalNewPerson li.active .collapsible-header {
	pointer-events: none;
}
.modal .collapsible-header,
.collapsible-body {
	background-color: transparent;
	border-bottom: 0;
	padding: 0;
}
.collapsible {
	-webkit-box-shadow: none;
	box-shadow: none;
	border: 0;
}

.dropdown-content li > a,
.dropdown-content li > span {
	color: rgb(76, 175, 80);
}
.sidenav .dropdown-content {
	min-width: 300px;
}
.sidenav .dropdown-content li > a,
.sidenav .dropdown-content li > span {
	padding-left: 32px;
}
.subheader {
	border-top: 1px solid rgba(0, 0, 0, 0.14);
}
foreignObject {
	overflow: visible;
	line-height: 1;
	font-size: 9px;
	border-radius: 5px;
}
.linage {
	fill: none;
	stroke: rgb(153, 153, 153);
}
.adopted {
	stroke-dasharray: 5, 2;
}
.foster {
	stroke-dasharray: 1, 3;
}
.sealing {
	stroke-dasharray: 1, 3;
}
.other {
	stroke-dasharray: 1, 3;
}
.marriage {
	fill: none;
	stroke: rgb(153, 153, 153);
}
.divorsed {
	stroke-dasharray: 5, 2.5;
}
.dating {
	stroke-dasharray: 1, 2.17;
}
.marriageNode {
	cursor: pointer;
	border-radius: 50%;
}
.marriageNode .marriage {
	height: 100%;
	width: 100%;
	background-color: white;
	border-radius: 50%;
	border: 1px solid rgb(153, 153, 153);
}
.person ~ .ridge {
	position: absolute;
	width: 28px;
	height: 20px;
	top: -13px;
	left: 0px;
	cursor: pointer;
	border-radius: 4px;
	z-index: -1;
}
.marriageNode ~ .ridge {
	position: absolute;
	width: 28px;
	height: 13px;
	top: -33px;
	right: -10px;
	cursor: pointer;
	border-radius: 4px 4px 0 0;
	z-index: -1;
}
.ridge > svg {
	width: 100%;
	height: 100%;
	pointer-events: none;
}
.ridge > select {
	position: absolute;
	height: inherit;
	font-size: 1.25em;
	border-radius: 4px 4px 0 0;
	cursor: pointer;
	opacity: 0;
}
.ridge > select > option:first-of-type {
	display: none;
}
.marriageNode ~ .ridge > svg {
	height: 37px;
}
.ridge > svg > path {
	fill: none;
	stroke: rgb(153, 153, 153);
}
.ridge > svg > rect:not(.gap) {
	fill: rgb(153, 153, 153);
}
.ridge:hover > svg > path {
	stroke: rgb(64, 64, 64);
}
.ridge:hover > svg > rect:not(.gap) {
	fill: rgb(64, 64, 64);
}
.add {
	min-height: 38px;
	max-width: 38px;
	background-color: white;
	/* border: 1px dashed rgb(153, 153, 153); */
	border-radius: 5px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	color: rgb(153, 153, 153);
	transition: border-radius .3s;
}
.add.center {
	border-radius: 50%;
}
.add:hover {
	/* border-color: rgb(64, 64, 64); */
	color: rgb(64, 64, 64);
}
.add + div {
	position: absolute;
	inset: 0;
	pointer-events: none;
}
.add + div > svg {
	overflow: visible;
}
.add + div > svg > rect:first-of-type {
	fill: none;
	stroke: rgb(153, 153, 153);
	stroke-dasharray: 3, 2;
}
.add:hover + div > svg > rect:first-of-type {
	stroke: rgb(64, 64, 64);
}
svg > rect.gap {
	fill: white;
}
.profile ~ div.partner {
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
}
.profile ~ div.partner > svg {
	overflow: visible;
}
.person {
	min-height: 48px;
	background-color: #FFFFFF;
	border-width: 2px;
	border-style: solid;
	outline-width: 0;
	outline-style: solid;
	border-radius: 5px;
	cursor: pointer;
	transition: border-radius .3s;
}
.person, .person .file {
	border-color: rgb(211, 211, 211);
	outline-color: rgba(211, 211, 211, .75);
}
.man,
.boy,
.man .file,
.boy .file {
	border-color: rgb(23, 180, 206);
	outline-color: rgba(23, 180, 206, .75);
}
.woman,
.girl,
.woman .file,
.girl .file {
	border-color: rgb(252, 129, 129);
	outline-color: rgba(252, 129, 129, .75);
}
.nonbin,
.nonbin .file {
	border-color: rgb(76, 175, 80);
	outline-color: rgba(76, 175, 80, .75);
}
.current .person {
	outline-width: 5px;
}
.current .person, .person:hover {
	box-shadow: 0px 3px 10px -5px black;
}
.person .file, .file {
	border-color: lightgrey;
}
.birthday a,
.marriage a {
	pointer-events: none;
}
.person ~ .birthday,
.marriageNode ~ .marryday {
	display: flex;
	position: absolute;
	top: -4px;
	right: -4px;
	border-radius: 50%;
	cursor: pointer;
}
.person ~ .birthday a,
.person ~ .birthday a i,
.marriageNode ~ .marryday a,
.marriageNode ~ .marryday a i {
	width: 16px;
	height: 16px;
	font-size: 10px;
	line-height: 16px;
	-webkit-box-shadow: none;
	box-shadow: none;
}
.user-view .file {
	width: 84px;
	height: 84px;
	margin-bottom: 12px;
	border-radius: 10%;
}
.user-view .text {
	line-height: 1.5;
}
.user-view .relation {
	opacity: 0.5;
	font-style: italic;
}
.file {
	background-repeat: no-repeat;
	background-position: center;
	background-size: cover;
	background-image: url(img/unknown.png);
}
.man .file {
	background-image: url(img/man.png);
}
.boy .file {
	background-image: url(img/boy.png);
}
.woman .file {
	background-image: url(img/woman.png);
}
.girl .file {
	background-image: url(img/girl.png);
}
.no .file {
	background-image: url(img/no.png);
}
.person p {
	padding: 0;
	margin: 0;
}
.profile {
	display: flex !important;
	align-content: center;
	align-items: center;
}
.person.profile {
	flex-wrap: wrap;
}

#graph .profile .file {
	border-width: 1px;
	position: absolute;
	left: 4px;
	top: 6px;
	/* transition: top, .3s; */
}
#graph g.centi .profile:not(.center) .file {
	top: 9px;
}
#graph .profile .text {
	position: absolute;
	left: 36px;
	top: 4px;
	bottom: 10px;
	display: flex;
	align-items: center;
    flex-wrap: wrap;
    align-content: center;
	column-gap: 2px;
	/* transition: left .3s, top .3s, bottom .3s, font-size .3s; */
}
#graph g.centi .profile:not(.center) .text {
	top: 0px;
	bottom: 0px;
}
#graph g.milli .profile:not(.center) .text {
	left: 0px;
	top: 0px;
	bottom: 0px;
	justify-content: center;
}
#graph g.micro .profile:not(.center) .text,
#graph g.nano .profile:not(.center) .text {
	left: 0px;
	top: 0px;
	bottom: 0px;
	justify-content: space-evenly;
}
#graph .profile .relation {
	position: absolute;
	left: 2px;
	right: 2px;
	bottom: 3px;
	/* transition: left .3s, bottom .3s; */
}
#graph g.centi .text {
	font-size: 1.2em;
}
g.milli .profile:not(.center) .text,
g.micro .profile:not(.center) .text,
g.nano .profile:not(.center) .text {
	width: 100% !important;
	text-align: center;
}
g.milli .text, g.micro .text {
	font-size: 1.8em;
}
g.micro .text {
	font-size: 2.8em;
}
g.nano .text {
	font-size: 3.8em;
}
g.milli .add,
g.micro .add,
g.nano .add {
	border-width: 2px;
}
#graph .person.center {
	border-radius: 28px;
	transition: border-radius .3s;
}
#graph .profile.center .file {
	min-width: 52px;
    min-height: 52px;
	border-width: 0px;
	left: 2px;
	top: 2px;
}
#graph g.milli .profile.center .file,
#graph g.micro .profile.center .file,
#graph g.nano .profile.center .file {
	display: block;
}
#graph .profile.center .text {
	display: block;
	width: auto;
	left: -12px;
	right: -12px;
	top: 60px;
	bottom: auto;
	overflow: hidden;
	background: white;
	padding: 1px;
	z-index: -1;
}
#graph .profile.center .relation {
	width: auto;
	left: -12px;
	right: -12px;
	bottom: -4px;
	padding: 1px 4px;
    opacity: 1;
    border-radius: 1em;
    color: white;
}
#graph .profile.center .relation span {
	background: grey;
    border-radius: 1em;
    padding: 0px 4px;
}
g.centi .life,
g.centi .relation,
g.milli .file,
g.milli .name2,
g.milli .life,
g.milli .relation,
g.micro .file,
g.micro .name:nth-child(even),
g.micro .name2,
g.micro .life,
g.micro .relation,
g.nano .file,
g.nano .name:nth-child(even),
g.nano .name2,
g.nano .life,
g.nano .relation {
	display: none;
}

.profile .file {
	min-width: 30px;
	min-height: 30px;
	border-width: 2px;
	border-style: solid;
	border-radius: 50%;
	margin: auto;
}
.profile .text {
	width: 100%;
	color: black;
	margin: auto 0 auto 0;
}
.person.profile:not(.center) .text {
	width: 62px;
	overflow: hidden;
}
.profile .col {
	width: 50%;
}
.profile .name {
	display: inline;
	font-weight: bold;
}
.profile .life {
	color: #00000080;
	font-size: .8em;
}
.person.profile .life {
	font-size: .8em;
}
.profile .relation {
	opacity: 0.5;
	font-style: italic;
	font-size: .8em;
}
.person.profile .relation {
	font-size: .8em;
	text-align: center;
	width: 100%;
}
.calendar {
	text-align: center;
	box-shadow: 1px 2px 2px #00000040;
	border-radius: 5px;
	overflow: hidden;
	background-color: #F8F8F8;
}
.calendar div:nth-child(1) {
	height: 13px;
	line-height: 13px;
	font-size: 13px;
	color: #404040;
	background-color: #00000020;
	position: relative;
	z-index: 0;
}
.calendar div:nth-child(2) {
	height: 24px;
	line-height: 28px;
	font-size: 1.64rem;
	color: black;
}
.calendar div:nth-child(3) {
	height: 13px;
	line-height: 9px;
	font-size: 13px;
	color: #404040;
}
.today {
	outline: green solid 3px !important;
	outline-offset: -1px;
	z-index: 5;
}
.opacity {
	opacity: 0.5;
}
.zodiac {
	display: inline-block;
	width: 1em;
	text-align: center;
	cursor: default;
}
.indicators {
	z-index: 5;
}
#graph {
	position: fixed;
	top: 0;
	overflow: hidden;
}
#graph > svg {
	width: 100vw;
	height: 100vh;
	cursor: grab;
	padding-left: 0px;
	transition: padding-left .2s;
	user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.gallery-plate {
	display: flex;
	gap: 4px;
	flex-wrap: wrap;
	justify-content: space-evenly;
}
.gallery-plate img {
	height: calc((100vh - 128px) / 3);
	cursor: pointer;
	flex-grow: 1;
	object-fit: cover;
	vertical-align: middle;
	border-radius: 5px;
}
.gallery-plate::after {
	content: '';
	flex-grow: 999;
}
@media only screen and (max-width: 600px) {
	.gallery-plate img {
		width: calc(50% - 2px);
	}
}
.mark {
	cursor: pointer;
	border-radius: 10%;
}
.mark > div {
	display: none;
	position: absolute;
	margin-top: 10px;
	padding: 2px 8px;
	top: 100%;
	text-align: center;
	color: #FFFFFF;
	background-color: #202020;
	border-radius: 1em;
	white-space: nowrap;
}
.mark:focus,
.mark:hover {
	border: 2px solid #FFFFFF;
	outline: 2px solid #000000C0;
	z-index: 500;
}
.mark:hover {
	z-index: 501;
}
.mark:focus > div,
.mark:hover > div {
	display: block;
}

#modalNewPerson .profile.person {
	position: relative;
	flex-wrap: nowrap;
}
#modalNewPerson .profile.person [type=radio] + span {
	position: absolute;
    height: auto;
	inset: 0;
	padding-left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
	text-align: center;
}
#modalNewPerson .profile.person [type=radio]:checked + span {
	outline: 4px solid rgb(76, 175, 80);
    border-radius: 4px;
	color: #000000;
}
#modalNewPerson .profile.person [type=radio] + span:before,
#modalNewPerson .profile.person [type=radio]:checked + span:after {
	display: none;
}

#graph > svg:active {
	cursor: grabbing;
}

#profile-photos {
	position: absolute;
	background-color: transparent;
	height: 7px;
	z-index: 5;
}
#profile-photos > li.indicator {
	background-color: white;
	height: 3px;
	margin-bottom: 2px;
	pointer-events: none;
}
#profile-photos > li > a {
	padding: 0;
}
#profile-photos,
#profile-photos-change {
	opacity: 0;
	transition: opacity .3s ease-out;
}
div:hover > #profile-photos,
div:hover > #profile-photos-change {
	opacity: 1;
	transition: opacity .3s ease-out;
}

@media only screen and (max-width: 700px) {
	.container {
		width: 100%;
	}
	.pagination.header {
		padding-left: 40px;
	}
}
@media only screen and (min-width: 993px) {
	#graph > svg {
		padding-left: 300px;
		transition: padding-left .2s;
	}
	:not(#overlay).container {
		margin-left: 350px;
	}
}
