

	* {
		box-sizing: border-box;
	}
	
	body {
		margin: 70px 10px;
		overflow-x: hidden;
	}

	form {
		margin: 0;		
	}

	form.edit {
		display: flex;
		justify-content: space-between;
	}

	form.edit label {
		display: block;
		margin: 0 10px;
	}
		
	form.edit input {
		font-size: 1.4rem;
		width: 100%;
	}
	
	h1 {
		font-size: 22px;
		margin: 15px 0 5px 0;
	}
	
	h2 {
		font-size: 18px;
		margin: 15px 0 5px 0;
	}
	
	a {
		color: #34a;
	}
	
	input {
		font-size: 18px;
		padding: 5px;
	}
	
	
	#main {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: space-between;
		height: 300px;
		width: 280px;
		margin: 200px auto;
		padding: 30px;
		background: #eee;
		border: 4px double #aaa;
		border-radius: 10px;
	}
	
	#main a {
		width: 70%;
	}
	
	
	a.butt {
		padding: 10px;
		background: #fafafa;
		border: 1px solid #555;
		border-radius: 10px;
		text-decoration: none;
		text-align: center;
		box-shadow: 1px 2px 5px #0004;
	}
	a.butt:hover {
		background: #fff;
	}
	


	form.login {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: space-between;
		height: 250px;
		width: 280px;
		margin: auto;
		padding: 30px;
		background: #eee;
		border: 4px double #aaa;
		border-radius: 10px;
	}
	form.login input {
		display: block;
	}
	div.err {
		background: #fdd;
		padding: 20px;
		width: 280px;
		margin: 20px auto;
	}



	.menu {
		position: fixed;
		width: 100%;
		z-index: 200;
		display: flex;
		justify-content: space-between;
		align-items: center;
		background: #ddd;
		margin: -10px; 
		padding: 10px 15px;
	}	

	.menu.top {
		top: 0;
		margin-top: 0;
		border-bottom: 1px solid #ccc;
	}
	
	.menu.bott {
		bottom: 0;
		margin-bottom: 0;
		border-top: 1px solid #ccc;
	}
	
	.menu * {
		font-size: 20px;
		margin: 0;
	}
	
	.menu u {
		text-decoration: none;
		font-style: italic;
		color: #34a;
	}
	.menu u::before {
		content: 'Felhasználó:';
		font-style: normal;
		color: initial;
	}
	
	.menu b {
		color: #34a;
	}	
	.menu b::before {
		content: 'Számla:';
		color: initial;
	}


	
	.hide {
		display: none !important;
	}
	
	
	
	div.list {
		display: grid;
		grid-gap: 1px;
		align-content: start;
		border: 0 solid #eee;
		border-width: 1px 0;
		margin: 2vw 0;
		resize: vertical;
	}
	
	div.list * {
		white-space: nowrap;
		margin: 0;
		padding: 5px 10px;
		background: #fafafa;
	}
	
	div.list a {
		text-align: center;
	}
	
	div.list u {
		text-align: center;
		color: #aaa;
	}
	
	div.list b {
		position: sticky;
		top: 0;
		z-index: 100;
		background: #eee;
	}
	
	div.list em {
		display: contents;
		font-style: normal;
		cursor: default;
	}	
	
	div.list em.inactive * {
		color: #ccc;
	}
	div.list em.done * {
		background: #dfd;
	}
	div.list em.active * {
		background: #ddf;
	}
	div.list em:hover * {
		filter: brightness( .97 );
	}
	
	div.list em[id="-1"] {
		color: #a00;
	}

	div.list.user {
		grid-template-columns: 1fr 3fr 4fr 1fr 1fr 1fr;
	}
	
	div.list.partner {
		grid-template-columns: 4fr 3fr 3fr 6fr 6fr 1fr 1fr;
	}

	div.list.szamla {
		grid-template-columns: repeat( 10, 1fr );
	}
	
	div.list.termek {
		grid-template-columns: 5fr 1fr 1fr 2fr 1fr 1fr 1fr 1fr;
		overflow: hidden;
		overflow-y: scroll;
		height: 200px;
	}
	
	
	
	div.list.sn {
		grid-template-columns: repeat( 5, 1fr );
		grid-gap: 1vw;
		border: 0;
	}
	
	div.sn p {
		background: #eee;
		opacity: 0;
		padding: 0;
		line-height: 28px;
		text-align: center;
		border-radius: 5px;
		overflow: hidden;
		animation: fadeIn 1s forwards;
		pointer-events: none;
	}
	
	div.sn p::after {
		content: 'x';
		font: 15px verdana;
		line-height: 26px;
		background: #d33;
		color: white;
		float: right;
		height: 100%;
		width: 25px;
		pointer-events: initial;
		cursor: pointer;
	}
	
	@keyframes fadeIn {
		to { opacity:1 }
	}
	
	div.disabled a {
		pointer-events: none;		
		color: #aaa;
	}
	
	div.disabled p::after {
		pointer-events: none;	
		background: #aaa;
	}
	
	
	
	form.scan {
		display: flex;
	}
	
	form.scan label {
		z-index: 100;
		white-space: nowrap;
		width: 0;
		color: #aaa;
		transform: translate( 10px, 10px );

	}
	
	form.scan input {
		font-size: 4.5vw;
		padding: 28px 15px;
		display: block;
		width: 55%;
		text-align: center;
	}
	
	form.scan input.pack {
		width: 15%;
	}
	
	form.scan input.left {
		width: 30%;
	}
		


	#msg {
		max-height: 0;
		overflow: hidden;
		transition: max-height 1s;
	}
	#msg.open {
		max-height: 500px;
	}

	#msg div {
		padding: 15px 20px;
		font-size: 3rem;
		border: 0 solid #777;
		border-width: 0 1px 1px 1px;
	}	
	#msg div.green {
		background: #afa;
	}
	#msg div.blue {
		background: #ddf;
	}
	#msg div.red {
		background: #fdd;
	}
	
	#msg h1 {
		font-size: 1.5em;
		margin: 0;
	}
	
	#msg h2 {
		font-size: 0.8em;
		margin: 10px 0;
		color: #a33;
	}


	
	#frame {
		height: 200px;
		width: 400px;
		margin: 200px auto 0 auto;
	}
	
	#frame a {
		display: inline-block;
		padding: 10px 5px 10px 0;
	}
	
	#frame form {
		margin: 30px 0;
	}

	
	
	
	
	
	