#ukladzik {
position: relative;
width:690px; 
height:400px;
border:0px solid black;
}

table#elements{
	border: 0;
	width: 0;
	border-collapse: collapse;
	clear: left;
	margin: 1em 0 1em;
}

table#elements td,
table#elements .element {
	width: 2em;
	height: 2em;
	padding: 0;
	margin: 0;
}

table#elements td {
	padding: 2px;
}

/* Icon */

ul#legend .icon,
table#elements td .oznaczane .icon {
	
	color: black;
	cursor: pointer;
	display: block;
	font-size: 0.9em;
	line-height: 2.44em;
	width: 2.44em;
	height: 2.44em;
	margin: 0;
	opacity: 0.8;
	padding: 0;
	overflow: hidden;
	text-align: center;
	position: relative;
	border-radius: 0.5em;
	-o-border-radius: 0.5em;
	-moz-border-radius: 0.5em;
	-webkit-border-radius: 0.5em;
}

ul#legend .icon,
table#elements td .nieoznaczane .icon {

	color: gray;
	cursor: auto;
	display: block;
	font-size: 0.9em;
	line-height: 2.44em;
	width: 2.44em;
	height: 2.44em;
	margin: 0;
	opacity: 0.8;
	padding: 0;
	overflow: hidden;
	text-align: center;
	position: relative;
	border-radius: 0.5em;
	-o-border-radius: 0.5em;
	-moz-border-radius: 0.5em;
	-webkit-border-radius: 0.5em;
}

table#elements .active .oznaczane .icon,
table#elements td:hover .oznaczane .icon {
	left: -1px;
	opacity: 1 !important;
	padding: 1px;
	top: -1px;
	z-index: 100;
	box-shadow: rgba(0, 0, 0, 0.75) 0 0 8px 2px;
	-o-box-shadow: rgba(0, 0, 0, 0.75) 0 0 8px 2px;
	-moz-box-shadow: rgba(0, 0, 0, 0.75) 0 0 8px 2px;
	-webkit-box-shadow: rgba(0, 0, 0, 0.75) 0 0 8px 2px;
}
table#elements .active .icon .occurences,
table#elements td:hover .icon .occurences {
	display: block;
}

table#elements .icon .occurences {
	position: absolute;
	top: 4px;
	right: 6px;
	line-height: 1em;
	font-size: 0.9em;
	opacity: 0.7;
	display: none;
}

/* Infobox */

table#elements td .info {
	background: white !important;
	color: black;
	display: none;
	min-height: 3em;
	padding: 0.25em;
	position: absolute;
	text-align:center;
	top:5px;
	left:180px;
	width: 10em;
	z-index: 200;
	border:1px solid #646464;
	border-radius: 0.5em;
	-o-border-radius: 0.5em;
	-moz-border-radius: 0.5em;
	-webkit-border-radius: 0.5em;

}

table#elements td .info h3 {
	color: black;
	font-weight: bold;
	font-size: 1.5em;
	margin:3px;
}

table#elements td .info p {
	margin:3px;
}

table#elements td .oznaczane .info a:active,
table#elements td .oznaczane .info a:hover {
	color: #FF8215;
}

table#elements td .info *:last-child {
	margin-bottom: 0;
}


}

/* Legenda */

#legend {
	margin: 0;
	padding: 0;
	list-style: none;
	
}

ul#legend li {
	display:inline-block;
	width:190px;
	padding: 0.125em 0;
}

ul#legend .icon {
	height: 1.5em;
	width: 1.5em;
	display: inline-block;
	margin: 0 0.5em;
	vertical-align: middle;
}

/* Kolory */

ul#legend .oznaczane .icon,
table#elements .oznaczane .icon,
table#elements .oznaczane .info {
	background-color: rgb(255, 246, 12);
}

ul#legend .akredytowane .icon,
table#elements .akredytowane .icon,
table#elements .akredytowane .info {
	background-color: rgb(36, 255, 0);
}

ul#legend .nieoznaczane .icon,
table#elements .nieoznaczane .icon,
table#elements .nieoznaczane .info {
	background-color: rgb(209, 209, 209);
	
}


/* MIX */

ul#legend .root .icon,
table#elements .root .icon,
table#elements .root .info {
	background-color: rgb(155, 255, 155);
}

ul#legend .document .icon,
table#elements .document .icon,
table#elements .document .info {
	background-color: rgb(120, 140, 255);
}

ul#legend .text .icon,
table#elements .text .icon,
table#elements .text .info {
	background-color: rgb(255, 255, 100);
}

ul#legend .grouping .icon,
table#elements .grouping .icon,
table#elements .grouping .info {
	background-color: rgb(255, 150, 80);
}

ul#legend .form .icon,
table#elements .form .icon,
table#elements .form .info {
	background-color: rgb(100, 255, 100);
}

ul#legend .sections .icon,
table#elements .sections .icon,
table#elements .sections .info {
	background-color: rgb(160, 175, 255);
}

ul#legend .interative .icon,
table#elements .interative .icon,
table#elements .interative .info {
	background-color: rgb(0, 150, 255);
}

ul#legend .table .icon,
table#elements .table .icon,
table#elements .table .info {
	background-color: rgb(255, 150, 100);
}

ul#legend .embedding .icon,
table#elements .embedding .icon,
table#elements .embedding .info {
	background-color: rgb(255, 150, 255);
}
