*
	{
		margin: 0;
		padding: 0;
		font-family: Arial;
    	font-weight: normal;
	}

	html{
		overflow: hidden;
	}

	header, aside,
	.tVintChPan
	{
		position: fixed;
		top: 0;
		background: #515151;
		padding: 2.5px;
		border: 1px solid black;
		z-index: 998;
	}
	
	aside
	{
		left: 0;
		bottom: 0;
		width: 30px;
		z-index: 1001;
		overflow-y: scroll;
	}

	.tVintChPan
	{
		z-index: 1000;
	}

	aside::-webkit-scrollbar
	{
		width: 0;
		height: 0;
	}

	header
	{
		left: 36px;
		right: 0;
		height: 25px;
		display: flex;
    	align-items: center;
		font-size: 12px;
		color: #fff;
	}

	header input
	{
		width: 50px;
		text-align: center;
		padding: 4px;
		border-radius: 4px;
		border: 1px solid;
		margin-right: 5px;
		width: 55px;
    	text-align: center;
	}

	header label
	{
		margin-left: 10px;
	    font-weight: 700;
	    margin-right: 5px;
	}

	ul
	{
		width: 100%;
	}

	ul hr
	{
		margin: 1px;
	}

	li, .divider,
	header button
	{
		width: 28px;
		height: 28px;
		background: #868686;
		border-radius: 5px;
		border: 1px solid #353434;
		text-align: center;
		margin-bottom: 1px;
		position: relative;
		line-height: 35px;
		font-size: 12px;
	}
	
	li
	{
		display: block;
		-webkit-user-select: none; /* Safari */        
		-moz-user-select: none; /* Firefox */
		-ms-user-select: none; /* IE10+/Edge */
		user-select: none;
	}


	li:active,
	.hide_det,
	.grid

	{
		background: #93d87e !important;
	}

	li:hover
	{
		cursor: pointer;
	}

	li::after
	{
		content: "";
		position: absolute;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
	}

	li:disabled,
	.li-disabled
	{
		pointer-events: none;
		opacity: 0.4 !important;
		background: #605e5e82 !important;
	}

	li img, button img 
	{
		width: 100%;
	}

	.li-active, .divider,
	.active
	{
		background: white;
	}

	.li-active[data-button="delete"],
	.li-active[data-button="delkr"]
	{
		background: red;
	}

	.divider,
	.edge
	{
		width: 29px;
		height: 29px;
	}

	.divider img
	{
		width: 20px;
		height: 20px;
		vertical-align: sub;
	}

	.li-description
	{
		position: fixed;
		font-size: 12px;
		padding: 5px;
		background: #656565;
		border: 1px solid #353434;
		color: white;
		border-radius: 3px;
		max-width: auto;
		box-shadow: inset 0 0 12px 2px #454545;
		text-align:center;
        z-index: 999;
	}

	canvas
	{
		background-color: transparent;
		position: relative;
		top: 42px;
		left: 42px;
	}

	.modal
	{
		position: fixed;
	    top: 50px;
	    left: 50px;
	    background: #a8a8a8;
	    border: 1px solid #4d4d4f;
	    border-radius: 4px;
	    opacity: 0;
        font-size: 14px;
        display: none;
        box-shadow: 3px 3px 13px 1px #5b5959;
	}

	.modal-container,
    .info-pan-container,
	.modal-footer
	{
		padding: 10px;
	}

	.modal-header,
    .info-pan-header
	{
		text-align: left;
		background: linear-gradient(to bottom, #969595 15%, #2f2f2f);
    	border-bottom: 1px solid black;
		color: white;
        padding: 7px;
        position: relative;
        font-size: 11px;
	}
    .info-pan-header
    {
        padding-top: 3px;
        padding-bottom: 3px;
    }

    .modal-header .close-btn, 
    .info-pan-header .info-pan-btn
    {
        position: absolute;
        top: -1px;
        right: 4px;
        font-size: 11px;
        color: #e6e6e6;
        font-weight: 800;
        cursor: pointer;
    }

    .modal-header .close-btn:hover
    {
        text-shadow: 0 0 5px black;
        color: white;
    }

	.modal-footer
	{
		text-align: center;
	}

	.modal-button
	{
		padding: 5px 10px;
		color: white;
		border-style: none;
		border: 1px solid black;
		border-radius: 4px;
		outline: none;
		background: linear-gradient(to bottom, #969595 15%, #2f2f2f);
		cursor: pointer;
		transition: background 0.3s ease;
        width: 50%;
	}

	.modal-button:hover
	{
		background: linear-gradient(to bottom, #d7d7d7 15%, #6f6f6f);
	}

	.modal-button:active
	{
		background: #6f6f6f;
	}

	.modal-container input,
	.modal-container select
	{
		display: block;
		margin-bottom: 10px;
		padding: 5px;
        width: -webkit-fill-available;
        
	}

	.modal-container select
	{
		width: 100%;
	}

	.modal-additive
	{
		position: absolute;
		z-index: 1000;
		border: 1px solid #000;
		border-radius: 3px; 
		padding: 5px;
		background: #a8a8a8; 
	}

	.modal-additive .modal-additive-span
	{
		display: block;
		padding: 5px;
		font-size: 16px;
		font-weight: 500;
	}

	.modal-additive .modal-additive-span:hover
	{
		background: #4d4d4f;
		cursor: pointer;
		color: white;
	}

	.modal-additive .modal-additive-span img
	{
		width: 20px;
    	vertical-align: sub;
	}

	.settings-position
	{
		text-align: center;
	}
	
	.settings-position label
	{
		display: inline-block;
		margin: 3px;
	    border: 1px solid #787878;
	    border-radius: 3px;
	    padding: 3px;
	    background: white;
	    box-shadow: inset 0 0 3px 1px #2d2d2d;
	}

	.settings-position input
	{
		display: none !important;
	}

	#tWinLine
	{
		display: none;
		align-items: center;
		color: white;
	}

	#tWinLine span
	{
		margin-left: 10px;
		margin-right: 5px;
	}

	.gr-btn-block
	{
		display: flex;
    	justify-content: center;
		margin-top: 2.5px;
		align-items: center;
		margin-bottom: 20px;
	}

	.gr-btn-block .active-side,
	.gr-btn:active
	{
		background: #fff;
	}

	.gr-inp-block
	{
		display: flex;
    	justify-content: flex-end;
		margin-top: 2.5px;
		align-items: center;
	}

	.gr-chk-block
	{
		margin-top: 10px;
		display: flex;
    	justify-content: flex-start;
    	align-items: center;
	}

	.gr-chk-block input
	{
		margin-right: 5px;
		margin-bottom: 0px !important;
		width: 20px;
		height: 20px;
	}

	.gr-chk-block input[disabled]+label
	{
		color: #696969;
	}


	.gr-inp-block input
	{
		margin: 0 !important;
		width: 50px;
	}

	.gr-inp-block label
	{
		margin-right:10px;
	}

	.gr-btn
	{
		position: relative;
		padding: 5px 10px ;
		border-radius: 6px ;
		border: 1px solid;
		background: #d2d2d2 ;
		color: grey ;
		display: block;
		margin: 2px;
		width: 75px !important;
	}

    .info-pan
    {
        position: absolute;
        bottom: 0;
        right: 5px;
        z-index: 1000;
        width: 200px;
        font-size: 11px;
        overflow: hidden;
        background: #a8a8a8;
	    border: 1px solid #4d4d4f;
        border-top-right-radius: 4px;
        border-top-left-radius: 4px;
    }

    .info-pan-container
    {
        display: none;
    }

    .info-pan-persents
    {
        display: flex;
        align-items: center;
        justify-content: space-around;
        margin-top: 15px;
        margin-bottom: 15px;
    }

    .info-pan-kant
    {
        margin-top: 5px;
        overflow: hidden;
        overflow-y: auto;
        background-color: white;
        height: 150px;
    }

	.modal .modal-header-content .a-active
	{
		font-weight: 800;
		cursor: pointer;
	}


	.modal .modal-container button:not(.gr-btn)
	{
		background: #ece2c1;
	    border-radius: 3px;
	    border: 1px solid #9c8141;
	    text-align: center;
	    position: relative;
	    cursor: pointer;
	}

	.modal .modal-container button img
	{
		float: left;
		width: 16px !important;
		padding: 5px
	}
	.modal .modal-container button:hover
	{
		background: #fff;
	}


	.modal .modal-container button:not(.gr-btn):after
	{
		content: "";
		position: absolute;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		border-radius: 3px;
		box-shadow: inset -1.5px -1.5px 5px #414040, inset 1.5px 1.5px 4px #ffffff;
	}

	.modal .modal-container select,
	.modal .modal-container button
	{
		width: 100%;
	}


	.modal .modal-container .grav-overflow
	{
		min-width: 400px;
		max-width: 400px;
		max-height: 400px;
		background: white;
		overflow-y: auto;
		border-radius: 4px;
	}

	.modal .modal-container .grav-overflow .grav-container .grav-span,
	.modal .modal-container .grav-overflow .grav-container .knam-span
	{
		display: block;
		padding: 3px;
		border-bottom: 1px solid grey;
	}

	.modal .modal-container .grav-overflow .grav-container .grav-span img
	{
		vertical-align: sub;
	}

	.modal .modal-container .grav-overflow .grav-container .gnam-span
	{
		display: inline-block;
		text-align: center;
		margin: 10px;
	}
	.modal .modal-container .grav-overflow .grav-container .gnam-span img
	{
		display: block;
	}

	.modal .modal-container .grav-overflow .grav-container .grav-span:hover,
	.modal .modal-container .grav-overflow .grav-container .gnam-span:hover,
	.modal .modal-container .grav-overflow .grav-container .knam-span:hover
	{
		background: #eee;
		cursor: pointer;
	}

	.modal .modal-container .grav-container,
	.modal .modal-container .detal-container,
	.modal .modal-container .kant-container
	{
		background-color:white;
		border-top: unset;
		border-bottom-left-radius: 4px;
		border-bottom-right-radius: 4px;
		min-width: 380px;
		min-height: 160px;
		max-height: 400px !important;
		overflow-y: auto;
		padding: 1px !important;
	}

	.modal-search
	{
		max-height: 30px;
	    overflow: hidden;
	    display: flex;
	    align-items: stretch;
	    justify-content: flex-start;
	    padding: 2px;
	    display: none;
	}

	.modal-search input
	{
		border-radius: 3px;
		padding: 0 3px;
		flex-grow: 1;
		display: block;
		background: #d9d9d9;
	}

	.modal-search img
	{
		display: block;
		height: 30px;
	}

	.grav-list .modal-container,
	.detal-list .modal-container,
	.kant-list .modal-container
	{
		padding: 2px !important;
	}

	.grav-container .modal-item,
	.detal-container .modal-item,
	.kant-container .modal-item
	{
		padding: 4px;
    	border-bottom: 1px solid #dfd6b9;
    	font-size: 12px;
	}

	.modal-item-img
	{
		vertical-align: middle;
		margin-right: 10px;
		border-radius: 3px;
		border: 1px solid black;
	}

	.grav-container .modal-item:hover,
	.detal-container .modal-item:hover,
	.kant-container .modal-item:hover
	{
		cursor: pointer;
    	background: #d3e4f3;
    	border: 1px solid #4296ea;
	}

	.modal-item img
	{
		height: 11px;
		margin-right: 4px;
	}

	.error-pan,
	.glass-settings
	{
		max-width: 230px;
	    top: calc(50% - 50px);
	    left: calc(50% - 115px);
	}

	#msg_err
	{
		margin-top: 10px;
		text-align: center;
	    width: 100%;
	    display: block;
	}

	.flex
	{
		display: flex;
	}

	.items-center
	{
		align-items: center;
	}

	.gap
	{
		gap: 5px;
	}

	.m-0
	{
		margin: 0 !important;
	}

	.mb-1
	{
		margin-bottom: 5px;
	}

	.mr-1
	{
		margin-right: 5px;
	}

	.ml-1
	{
		margin-left: 5px;
	}

	.mt-1
	{
		margin-top: 5px;
	}


	.p-0
	{
		padding: 0 !important;
	}	

	.pb-1
	{
		padding-bottom: 5px;
	}

	.pr-1
	{
		padding-right: 5px;
	}

	.pl-1
	{
		padding-left: 5px;
	}

	.pt-1
	{
		padding-top: 5px;
	}

	.text-center
	{
		text-align: center;
	}

	.block{
		display: block;
	}

	.newcat-settings
	{
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%);
	}

	