body {
	height: 99%;
	}

p {
	font-size: .9rem;
	}

#wrap {
	min-height: 100%;
	}

#main {
	overflow: auto;
	padding-bottom: 44px; /* this needs to be bigger than footer height*/
	}

.footer.tp {
	position: relative;
	margin-top: 4px;
	height: 44px;
	clear:both;
	}

.footer.btm {
	position: relative;
	margin-top: -44px; /* negative value of footer height */
	height: 44px;
	clear:both;
	}

.footer.tp p {
	text-transform: uppercase; font-size: 1em; font-weight: bold; color: grey;
	}

.user-in {
	width: 100%;
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	text-align: center;
	}

.user_in.container {
	/*width: 700px;*/
	width: 100%;
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	text-align: center;
	}

.keywords input[type="submit"] {
	/*width: 70%;*/
	border-radius: 5px;
	background: lightgrey;
	padding: 5px 0;
	/*margin-top: .6em;*/
	}

.user-in .keywords input[type="submit"] {
	margin-top: .6em;
	}

.keywords input[type="submit"]:hover {
	background: grey;
	}

.ext-integration div.any-id img {
	width: 36px;
	margin-top: .6em;
	margin-left: .2em;
	margin-right: .2em;
	}

.ext-integration div.any-id img:hover {
	-webkit-filter: drop-shadow(1px 1px 5px rgba(0, 0, 0, 0.5));
  filter: drop-shadow(1px 1px 5px rgba(0, 0, 0, 0.5));
	}

.disabled-href {
	color: currentColor;
	cursor: not-allowed;
	opacity: 0.5;
	text-decoration: none;
	pointer-events: none;
	}

.in-help {
	margin-top: 1em;
	margin-right: -20px;
	margin-left: -20px;
	border-top: 1px solid lightgrey;
	}

.in-help p {
	font-size: .73em;
	font-style: italic;
	text-align: left;
	width: 98%;
	margin: 0 auto;
	}

.in-help p::before {
	content: "*";
	margin-right: .3em;
	position: relative;
	top: .2em;
	}

select:invalid { color: gray; }
select option {	color: #555; }

#main .input-group {
	margin-bottom: .5em;
	}

.input-group input {
	padding: .4rem .6rem;
	}


	.cabinet_title {
		padding-bottom: 1em;
		}

	.cabinet_title p:first-child {
		padding-bottom: .8em;
		border-bottom: 2px solid lightgrey;
		margin-bottom: 1em;
		color: grey;
		font-weight: bold;
		}

	.user_oper input, .user_oper .keywords input {
		padding: 5px 0;
		margin-bottom: .5em;
		}

	.sup_list {
		border-left: 2px solid lightgrey;
		}

	.sup_list > div {
		max-height: 550px;
		overflow-y: auto;
		overflow-x: auto;
		}

	.persdata {
		max-height: 600px;
		overflow-y: auto;
		}

	.persdata p {
		font-size: .8em;
		text-align: left;
		margin-top: .5em;
		}

	.persdata h4 {
		font-size: 1em;
		font-weight: bold;
		margin-top: 15px;
		margin-bottom: 10px;
		width: 100%;
    text-align: left;
		}


.tariffs, .new_tariff, .new-supplier, .newreg {
	position: absolute;
	transform: translate(-50%, -50%);
	width: auto;
	left: 50%;
	top: 50%;
	}



.enter-btns {
	position: fixed;
	padding: .7rem;
	padding-top: 0;
	width: 100%;
	padding-top: 1rem;
	margin-top: 5rem;
	}

.enter-btns button, .btn.btn-primary, .btn-secondary:not(#InvoiceCancel) {
	--bs-btn-bg: var(--bg-color-for-hover);
	--bs-btn-border-color: var(--bg-color-for-hover);
	--bs-btn-hover-bg: var(--bg-color);
	--bs-btn-hover-border-color: var(--bg-color);
	--bs-btn-active-bg: var(--bg-color);
	--bs-btn-active-border-color: var(--bg-color);
	}



@media (max-height:800px){
	html {
		font-size: 14px;
	}
}
@media (min-height:120px){
	html {
		/*font-size: 18px;*/
	}
}



@media (max-width:911px){
}
@media (max-width:768px){
}
@media (max-width:767px){
}
@media (max-width:736px){
	.user_in.container {
		width: auto;
		/*width: 100%;*/
		position: inherit;
		transform: none;
		padding-top: 30px;
		}
	.footer.tp div.footer-copy, .footer.btm div.footer-copy {
		padding: 11px 0;
		}
	.footer.btm {
		margin-top: -30px;
		}
	.tariffs {
    top: 60% !important;
		width: 95% !important;
		}
	.sup_list > div {
		max-height: max-content !important;
		}
	.legends {
		font-size: 1.3rem;
		}
}
@media (max-width:540px) { /*Surface Duo*/
	.tariffs {
    top: 45% !important;
		}
}
@media (max-width:480px){
}
@media (max-width:414px){
	.user_in {
		width: 380px;
		}
	.footer.tp {
		margin-bottom: 1em;
		}
	.footer.tp p {
		font-size: 9px;
		}
	.footer.btm div.footer-copy {
		padding: 11px 0;
		margin-top: 7px;
		}
	.footer.btm p {
		font-size: 0.8em;
		}
	.user_in.container {
		width: 95%;
		}
	.cabinet_title {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 100%;
    flex: 0 0 100%;
    max-width: 100%;
		position: inherit;
		}
	.sup_list {
		border-left: none;
		}
	.persdata {
		max-height: max-content;
		}
	.footer.btm {
		margin-top: inherit;
		}
	.tariffs, .new_tariff, .newreg {
		width: 90% !important;
    top: 47% !important;
		}
	.new_tariff, .newreg {
		width: 85% !important;
		}
}
@media (max-width:375px){
	.new_tariff, .newreg {
		width: 85% !important;
		}
	.new_tariff table table tr td:nth-child(2n) > div > div > div:not(.jqx-checkbox), .new_tariff table table tr td:nth-child(2n) > div > div > input,
	.newreg table table tr td:nth-child(2n) > div > div > div:not(.jqx-checkbox), .newreg table table tr td:nth-child(2n) > div > div > input 
		{
		width: 150px !important;
		}
}
@media (max-width:360px){
}
@media (max-width:320px){
}


@media (max-height:667px){
	#wrap {
		min-height: inherit;
		}
	.footer.btm {
		position: inherit;
		margin-top: inherit;
		}
	.user-in.container {
		position: inherit;
		transform: none;
		}
	.footer.tp {
		position: inherit;
		margin-bottom: 1em;
		height: 100%;
		}
	.persdata {
		max-height: 95%;
		}
	}
