body {
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto,
    Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  line-height: 1.4;
  color: #333;
  background-color: #fff;
  padding: 0 5vw;
}

/* Standard Tables */

table {
  margin: 1em 0;
  border-collapse: collapse;
  border: 0.1em solid #d6d6d6;
  table-layout: fixed;
  width: 100%;
}

caption {
  text-align: left;
  font-style: italic;
  padding: 0.25em 0.5em 0.5em 0.5em;
}

ul {
	display: block;
    list-style-type: disc;
    margin-block-start: 0em;
    margin-block-end: 0em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    padding-inline-start: 0px;
	margin-left: 8px;
}

th,
td {
  padding: 0.25em 0.5em 0.25em 1em;
  vertical-align: text-top;
  text-align: left;
  text-indent: -0.5em;
}

th {
  vertical-align: bottom;
  background-color: #666;
  color: #fff;
}

tr:nth-child(even) th[scope=row] {
  background-color: #f2f2f2;
}

tr:nth-child(odd) th[scope=row] {
  background-color: #fff;
}

tr:nth-child(even) {
  background-color: rgba(0, 0, 0, 0.05);
}

tr:nth-child(odd) {
  background-color: rgba(255, 255, 255, 0.05);
}

/* Discover cells */
td:nth-of-type(2),td:nth-of-type(3) ,td:nth-of-type(4),td:nth-of-type(5) {
background-color: rgba(255, 255, 200, 0.4);
}
/* Case cells */
td:nth-of-type(6),td:nth-of-type(7) ,td:nth-of-type(8),td:nth-of-type(9) {
background-color: rgba(200, 255, 255, 0.4);
}

/* Fixed Headers */

thead  {
/*   position: -webkit-sticky; */
  position: sticky;
/*   top: 0; */
  inset-block-start: 0;
  z-index: 2;
}

thead [scope=row] {
/*   position: -webkit-sticky; */
  position: sticky;
/*   left: 0; */
  inset-inline-start: 0;
  z-index: 1;
}

th[scope=row] {
  vertical-align: top;
  color: inherit;
  background-color: inherit;
/*   background: linear-gradient(90deg, transparent 0%, transparent calc(100% - .09em), #d6d6d6 calc(100% - .09em), #d6d6d6 100%); */
}

th[scope="row"]::after {
  content: "";
  position: absolute;
/*   inset-inline: calc(100% - .1em) 0; */
  inset-inline-end: 0;
  inset-block: 0;
  border-inline-end: .05em solid #d6d6d6;
}

th:not([scope=row]):first-child {
/*   left: 0; */
  inset-inline-start: 0;
  z-index: 3;
/*   color: #f00; */
/*   background: linear-gradient(90deg, #666 0%, #666 calc(100% - .05em), #ccc calc(100% - .05em), #ccc 100%); */
/*   background-color: #f00; */
/*   position: sticky; */
}

/* Scrolling wrapper */

div[tabindex="0"][aria-labelledby][role="region"] {
  overflow: auto;
}

div[tabindex="0"][aria-labelledby][role="region"]:focus {
/*   box-shadow: 0 0 .5em rgba(0,0,0,.5); */
  outline: .2em solid rgba(0,0,255,.1);
}

div[tabindex="0"][aria-labelledby][role="region"] table {
  margin: 0;
}

div[tabindex="0"][aria-labelledby][role="region"].rowheaders {
  background:
    linear-gradient(to right, transparent 30%, rgba(255,255,255,0)),
    linear-gradient(to right, rgba(255,255,255,0), white 70%) 0 100%,
    radial-gradient(farthest-side at 0% 50%, rgba(0,0,0,0.2), rgba(0,0,0,0)),
    radial-gradient(farthest-side at 100% 50%, rgba(0,0,0,0.2), rgba(0,0,0,0)) 0 100%;
  background-repeat: no-repeat;
  background-color: #fff;
  background-size: 4em 100%, 4em 100%, 1.4em 100%, 1.4em 100%;
  background-position: 0 0, 100%, 0 0, 100%;
  background-attachment: local, local, scroll, scroll;
}

div[tabindex="0"][aria-labelledby][role="region"].colheaders {
	background:
		linear-gradient(white 30%, rgba(255,255,255,0)),
		linear-gradient(rgba(255,255,255,0), white 70%) 0 100%,
		radial-gradient(farthest-side at 50% 0, rgba(0,0,0,.2), rgba(0,0,0,0)),
		radial-gradient(farthest-side at 50% 100%, rgba(0,0,0,.2), rgba(0,0,0,0)) 0 100%;
	background-repeat: no-repeat;
	background-color: #fff;
	background-size: 100% 4em, 100% 4em, 100% 1.4em, 100% 1.4em;
	background-attachment: local, local, scroll, scroll;
}

/* Strictly for making the scrolling happen. */

th[scope=row] {
  min-width: 40vw;
}

@media all and (min-width: 30em) {
  th[scope=row] {
    min-width: 20em;
  }
}
  
th[scope=row] + td {
  min-width: 24em;
}

div[tabindex="0"][aria-labelledby][role="region"]:nth-child(3) {
  max-height: 18em;
  max-width: max-content;
}

div[tabindex="0"][aria-labelledby][role="region"]:nth-child(7) {
  max-height: 18em;
/*   margin: 0 1em; */
/*   max-width: 50em; */
}