div#page {
  max-width:100%; /* just to demonstrate horizontal scrolling & stickiness */
}
table#chart {
	width:90%; /* just to demonstrate horizontal scrolling & stickiness */
	margin:10px;
	border:none;
	background-color:#FFF;
	border-collapse:separate;
	border-spacing:0;
	border-left:1px solid #DCDCDC;
	  text-align: center;
  vertical-align: middle;
}
table#chart th {
	background-color: black;
	border-right:1px solid #999;
	color:#FFF;
	padding:3px;
	position:sticky;
	top:0;
  /* ensure header row sits atop everything else when scrolling down */
	z-index:1;
}
table#chart td {
	background:#fff;
	border-right:1px solid #DCDCDC;
	border-bottom:1px solid #DCDCDC;
	padding:4px 5px;
	font-size: smaller;
}
/* ensure first header cell sits atop everything else when scrolling right */
table#chart th:first-child {
	position:sticky;
	left:0;
	z-index:2;
}
/* make first column sticky when scrolling right */
table#chart td:first-child {
	position:sticky;
	left:0;
	border-right-color:#DCDCDC;
	background: #DCDCDC;
}

.check {
  -webkit-appearance: none; /*hides the default checkbox*/
  height: 20px;
  width: 20px;
  position: relative;
  top: 20px;
  left: 20px;
  transition: 0.10s;
  background-color: #FE0006;
  text-align: center;
  font-weight: 600;
  color: white;
  border-radius: 3px;
  outline: none;
}

.check:checked {
  background-color: #0E9700;
}

.check:before {
  content: "✖";
}
.check:checked:before {
  content: "✔";
}

.check:hover {
  cursor: pointer; 
  opacity: 0.8;
}

thead tr.first th, thead tr.first td {
  position: sticky;
  top: 0;
  background: #f4f4f4;
}

thead tr.second th, thead tr.second td {
  position: sticky;
  top: 17px;
  background: #eaeaea;
}