* {
	box-sizing: border-box;
	cursor: default;
	color: #1e1e1e;
}
body {
	margin: 0;
	padding: 0 5px;
	display: flex;
	justify-items: center;
	width: 100%;
	min-height: 100vh;
	align-items: center;
	background: #fff;
	font-size: 14px;
	font-family: Arial;
}
table {
	margin: 5px auto;
	padding: 0;
	border-spacing: 0;
}
td, input {
	padding: 2px 5px;
}
td {
	border-style: solid;
	border-color: #bdbdbd;
	border-width: 1px 0 0 1px;
	text-align: left;
	width: 125px;
}
td:last-child {
	border-right-width: 1px;
}
tbody tr:first-child td {
	border-top-width: 0;
}
tbody:last-child tr:last-child td, tfoot:last-child td {
	border-bottom-width: 1px;
}
@media print {
	td {
		border-width: 2px 0 0 2px;
	}
	td:last-child {
		border-right-width: 2px;
	}
	tbody:last-child tr:last-child td, tfoot:last-child td {
		border-bottom-width: 2px;
	}
}
td:first-child {
	text-align: right;
	width: auto;
}
td:first-child, thead td, thead th {
	font-weight: bold;
	background: whitesmoke;
}
thead td, thead th {
	text-align: center !important;
	position: sticky;
	top: 5px;
	z-index: 999;
}
thead tr:nth-child(2) td, thead tr:nth-child(2) th {
	top: 27px;
	border-bottom-width: 1px;
}
td.fill {
	padding: 0;
	position: relative;
}
input {
	background: white;
	outline: none !important;
	cursor: pointer;
	color: grey;
	border-radius: none;;
}
input[type=button], input[type=submit], input[type=reset] {
	background: #efefef;
	border: 1px solid #bdbdbd !important;
	outline: none !important;
	cursor: pointer;
	color: grey;
	padding: 0 4px;
}
input[type=button]:hover, input[type=submit]:hover, input[type=reset]:hover {
	opacity: 0.75;
}
thead td input[type=number] {
	border: 1px solid #bdbdbd !important;
	height: 100%;
	padding: 0 0 0 2px;
	width: 3rem;
	font-size: 13px;
}
tbody td input {
	border: none !important;
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
}
@media print {
	td.fill {
		position: inherit;
	}
	input {
		display: none;
	}
}
thead, tfoot {
	empty-cells: hide;
}