html {
	--display: Helvetica light, Microsoft Yahei light, STXihei, sans-serif;
	--input: Arial, Microsoft Jhenghei, STXihei, sans-serif;
}

#content {
	font-family: var(--display);
	font-size: 12pt;
}

.boundingBox {
	display: inline-block;
	position: relative;
	min-width: 100px;
	max-width: 100%;
	max-height: 100%;
	vertical-align: top;
}
.guide {
	visibility: hidden;
	opacity: 0;
}
.form .boundingBox textarea {
	position: absolute;
	resize: none;
	width: 100%;
	height: 100%;
	min-width: 100%;
	min-height: 100%;
	top: 0;
	left: 0;
	overflow: hidden;
}
.form .boundingBox textarea,
.form .guide,
.form select,
.form input {
	font-family: var(--display);
	font-size: 12pt;
	padding: 4px;
	margin: 0;
}
.form textarea,
.form input,
.form .field {
	border: solid 1px #cb7;
	background-color: #ffe;
}
.form input[type=date]::-webkit-inner-spin-button,
.form input[type=date]::-webkit-outer-spin-button {
  -webkit-appearance: none;
}
.form .empty {
	border: solid 1px #cb7;
	background-color: #ffa;
}
.form .template {
	border: solid 1px #269ab7;
	background-color: #c3e1e8;
}
#header {
	text-align: center;
	font-weight: bold;
	font-size: 14pt;
	width: 100%;
}
#title {
	font-size: 16pt;
}
.gridContainer {
	display: grid;
	position: absolute;
	left: 50%;
	transform: translate(-50%);
	margin-bottom: 12px;
}
.gridContainer div {
	min-height: calc(18pt + 4px);
	/* word-break: break-word; */
}
.cell {
	border: 1px solid #000;
	line-height: 18pt;
	padding: 0 6;
}
.gridContainer div input {
	max-width: calc(100% - 4px);
	border: none;
	padding: 2px;
}
.form .label {
	text-align: center;
	line-height: 18pt;
}
.gridContainer .double {grid-column: span 2;}
.gridContainer .triple {grid-column: span 3;}
.gridContainer .quad {grid-column: span 4;}
.gridContainer .quint {grid-column: span 5;}
.gridContainer .sext {grid-column: span 6;}
.gridContainer .sept {grid-column: span 7;}
.gridContainer .oct {grid-column: span 8;}

.controls {
	display: inline-block;
	position: fixed;
	top: 80;
	right: 24px;
	width: 120px;
	height: 100%;
	color: #fff;
	overflow-y: auto;
}
.form {
	display: inline-block;
	width: 100%;
	height: 100vh;
	overflow-y: auto;

}
.noPrint {
}

@media print
{
	.form textarea,
	.form input {
		border: none;
		background-color: inherit;
	}
	.form input {
		max-width: auto;
	}
	.empty, .template {
		border: none;
		background-color: inherit;
	}
	.noPrint, .noPrint * {
		display: none;
	}
	.form a {
		color: #000;
		text-decoration: none;
	}
	.form select {
   -webkit-appearance: none;
   -moz-appearance: none;
	}
	#content {
		position: absolute;
		top: auto;
		left: auto;
		width: 100%;
		height: auto;
		padding-top: auto;
		overflow: visible;
	}
}

@media only screen and (max-width: 1200px) {
			.controls {
				display: block;
				height: auto;
				width: auto;
				top: auto;
				bottom: 0;
//				position: static;
			}
			.form {
				width: 100%;
				height: calc(100% - 140px);
			}
		}

		@media only screen and (max-width: 768px) {
		}
