#grids-page {
	width: 100%;
	height: 500px;
	display: flex;
	align-items: start;
	justify-content: center;
}

#grid-layer {
	display: grid;
	position: absolute;
	top: 5px;
	left: 5px;
}

#grid-layer > div {
	min-width: 2em;
	min-height: 2em;
}

#grid-layer .selectable {
	z-index: 2
}

#grid-layer .item {
	position: relative;
	width: 100%;
	height: 100%;
}

#grid-layer .item-name {
	position: absolute;
	left: .1em;
	top: .1em;
	font-size: 0.7em;
	color: #000;
	background-color: #FFF;
	padding: 0 2px;
	pointer-events: none;
	border: 1px solid #ccc;
}

#grid-layer .item-move {
	display: none;
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	z-index: 20;
	width: 1.5em;
	height: 1.5em;
	cursor: move;
}

#grid-calc-wrapper {
	position: absolute;
	left: -10000px;
	top: 10vh;
	width: 100vw;
	height: 100vh;
	opacity: 1;
	z-index: 90;
}

#grid-calc {
	display: grid;
	align-items: stretch;
	justify-items: stretch;
}

.item-bg {
	border: 1px dashed #CCC;
	background-color: #FFF;
	user-select: none;
	z-index: 1;
	cursor: pointer;
	position: relative
}

.item-bg:hover {
	background: rgba(13, 10, 253, 0.1);
}

.item-bg > div {
	position: absolute;
	color: #555;
	font-size: .8em;
	z-index: 10;
}

.item-bg .grid-left {
	top: calc(-1 * 1em / 1.5);
	left: calc(-1 * 1em * 1.75);
	line-height: 1em;
	pointer-events: none;
}

.item-bg .grid-top {
	top: calc(-1 * 1em * 1.75);
	left: calc(-1 * 1em / 2.5);
	line-height: 1em;
	pointer-events: none;
}

.item-bg .grid-top-one {
	top: calc(-1 * 1em * 1.75);
	left: calc(-1 * 1em * 1.5);
	line-height: 1em;
	pointer-events: none;
}

.item-bg .grid-top-end {
	top: calc(-1 * 1em * 1.75);
	right: calc(-1 * 1em / 2.25);
	line-height: 1em;
	pointer-events: none;
}

.item-bg .grid-left-end {
	bottom: calc(-1 * 1em / 1.75);
	left: calc(-1 * 1em - 1em / 1.5);
	line-height: 1em;
	pointer-events: none;
}

#grid-container {
	position: relative;
	margin: 0;
	padding: 5px;
	border-radius: 5px;
	background-color: var(--bs-secondary-bg-rgb);
	width: 100%
}

#grid-interactive {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	grid-template-rows: repeat(6, 1fr);
}

#pluscol, #minuscol, #plusrow, #minusrow, .remove-colrow, #item-create, .layout-item, .layout-click, #predifined, #item-up, #item-down, .expand {
	cursor: pointer;
}

.accordion-content-wrapper {
	position: relative;
	overflow: hidden;
	max-height: 0;
	transition: all 0.5s ease;
}

.accordion-content {
	padding: 0.5em;
}

.accordion-open {
	max-height: 10000px;
}

.item-resize {
	display: none;
	position: absolute;
	width: 1.3em;
	height: 1.3em;
	z-index: 20;
}

.icon-SE {
	bottom: .2em;
	right: .2em;
	cursor: nwse-resize;
}

.item-delete {
	display: none;
	position: absolute;
	width: 1em;
	height: 1em;
	z-index: 20;
	top: 0;
	right: .1em;
	cursor: pointer;
}

#item-up svg, #item-down svg {
	width: 20px;
	height: 20px;
}

.prevent-select {
	-webkit-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

label {
	margin: 0 !important;
}

.fs-sm {
	font-size: 0.8em;
}

.hide {
	display: none !important;
}

.form-select:focus {
	box-shadow: none !important;
}

.grid-templates figure {
	cursor: pointer;
	text-align: center;
}

code#html-content {
		float: left;
}

code#css-content {
		float: left;
}