* {
  box-sizing: border-box;
}

.pdtitle {
  display: inline;
  font-size: 1.75rem;
}

main h2 + p {
  display: inline-block;
  margin-bottom: 0;
}

.dataTables_scrollHead table {
  margin-bottom: 0;
}

.dataTables_scrollBody table {
  margin-top: -6px;
}

.dataTables_scrollBody thead {
  border: 0;
  height: 0;
}

.dataTables_scrollBody thead tr th {
  line-height: 0;
  visibility: hidden;
}

#years {
  width: 40%;
  margin-left: 0.9375rem;
}

caption {
  display: none;
}

select {
  background-color: #fff;
  background-image: url("../assets/icons/ontario-material-dropdown-arrow-48px.svg");
  background-position: 100%;
  background-repeat: no-repeat;
  box-sizing: border-box;
  border: 2px solid #1a1a1a;
  border-radius: 4px;
  color: #1a1a1a;
  font-size: 1rem;
  width: initial;
  min-width: 12rem;
  line-height: 1.5;
  margin: 0 0 1.5rem;
  padding: 0.625rem 1rem;
}

#dynamic {
  background: #f5f5f5;
  padding: 1rem;
  margin-top: 1rem;
}

.column_select {
  border: 1px solid #ccc;
  overflow: hidden;
  width: 100%;
  position: relative;
}

.dataTables_scrollHeadInner {
  width: 1106px;
  padding-right: 0;
}

.dataTable {
  width: 1106px;
  margin: 0;
  border: 1px solid #ccc;
  border-top: none;
  border-bottom: none;
}

.dataTables_info {
  float: right;
  text-align: right;
  width: 50%;
  margin-top: 1rem;
}

.dataTables_paginate {
  -moz-border-radius: 0 0 5px 5px;
  -webkit-border-radius: 0 0 5px 5px;
  border-radius: 0 0 5px 5px;
  text-align: left;
  margin: 1rem 0 1rem;
}

.paginate_button,
.paginate_active {
  -moz-border-radius: 5px;
  -webkit-border-radius: 5px;
  border-radius: 5px;
  color: #06c;
  margin: 0 5px 0 0;
  padding: .0625rem .625rem;
  cursor: pointer;
  text-decoration: none;
}

.paginate_button:hover,
.paginate_button:active,
.paginate_button:focus {
  background: #e6e6e6;
}

.paginate_button_disabled,
.paginate_active {
  color: #0056ac;
  pointer-events: none;
  cursor: default;
}

.paginate_active {
  background: #ededed;
}

.paginate_button_disabled {
  color: #ccc;
}

.paginate_button.first {
  padding: 0;
  margin-left: -0.5rem;
}

.paginate_button.current {
  font-weight: bold;
  text-decoration: underline;
}

.dataTables_filter {
  float: left;
}

.dataTables_filter input {
  min-width: 12rem;
}

.dataTables_filter input,
.dataTables_select select,
.dataTables_select2 select {
  box-sizing: border-box;
  border: 2px solid #1a1a1a;
  border-radius: 4px;
  color: #1a1a1a;
  margin-left: .9375rem;
  line-height: 1.5;
  padding: .625rem 1rem;
  -webkit-appearance: none;
  appearance: none;
  background-color: #ffffff !important;
  opacity: 1;
  -webkit-text-fill-color: #000000;
}

.dataTables_select select,
.dataTables_select2 select {
  float: left;
}

.dataTable thead tr {
  border-top: 1px solid #ccc;
}

.dataTable th {
  border-right: 1px solid #ccc;
}

.dataTable tbody {
  border-top: none;
  border-bottom: 2px solid #ccc;
  font-size: .95rem;
}

.dataTable tfoot {
  display: none;
}

/* styling for filters */
.column_select ul {
  display: flex;
  flex-direction: row;
  flex-flow: wrap;
  margin: 0;
  padding: 1rem;
  background: #fff;
}

/* recreating checkboxes styles */
.column_select ul li {
  position: relative;
  width: 18%;
  list-style: none;
  margin: 0 0 1rem;
  padding: 0 2rem 0;
  min-height: 28px;
  box-sizing: content-box;
}

.column_select ul li::before {
  box-sizing: initial;
}

.column_select ul li:last-of-type {
  margin: 0;
}

.column_select ul li input {
  cursor: pointer;
  margin: 0;
  position: absolute;
  top: -2px;
  left: -2px;
  opacity: 0;
  width: 36px;
  height: 36px;
  z-index: 1;
  -webkit-tap-highlight-color: transparent;
}

.column_select ul li label {
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
  -webkit-hyphens: auto;
  hyphens: auto;
  display: inline-block;
  cursor: pointer;
  line-height: 1.5;
  margin: 0.25rem 0;
  padding: 0 1rem;
  width: 100%;
}

@media screen and (max-width: 40em) {
  .column_select ul li {
    padding: 0 2.5rem 0;
    min-height: 32px;
  }

  .column_select ul li label {
    margin: 0.33rem 0;
  }

  .column_select ul li input {
    width: 40px;
    height: 40px;
  }
}

.column_select ul li label::before {
  content: "";
  border: 2px solid #1a1a1a;
  border-radius: 4px;
  position: absolute;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
  -webkit-transition: border 0.1s ease-in-out;
  transition: border 0.1s ease-in-out;
  display: block;
  box-sizing: initial;
}

@media screen and (min-width: 40em) {
  .column_select ul li label:before {
    width: 28px;
    height: 28px;
  }
}

.column_select ul li label::after {
  content: "";
  background-image: url("../assets/icons/ontario-checkbox-background-no-width.svg");
  background-repeat: no-repeat;
  height: 30px;
  width: 30px;
  position: absolute;
  top: 1px;
  left: 1px;
  right: 0;
  bottom: 0;
  opacity: 0;
  display: block;
}

@media screen and (max-width: 40em) {
  h2 + p {
    width: 100%;
  }

  #years {
    width: 100%;
    margin-left: 0;
  }

  #dynamic {
    margin-top: 0;
  }

  .column_select ul li label::after {
    height: 34px;
    width: 34px;
  }

  .dataTables_filter {
    width: 100%;
  }

  .dataTables_filter input,
  .dataTables_select select,
  .dataTables_select2 select {
    width: 100%;
    margin-left: 0;
    margin-bottom: 1.25rem;
  }

  .column_select ul li {
    width: 100%;
  }

  .dataTables_info {
    width: 100%;
    margin-bottom: 0.5rem;
  }

  .paginate_button {
    padding: 0.25rem 0.25rem;
  }

  .dataTables_paginate {
    font-size: 0.9rem;
  }
}

input[id^="select-"]:focus + label[for^="select-"]::before {
  box-shadow: 0 0 0 4px #009adb;
  outline: 4px solid transparent;
  -webkit-transition: all 0.1s ease-in-out;
  transition: all 0.1s ease-in-out;
}

input[id^="select-"]:checked + label[for^="select-"]::after {
  opacity: 1
}

input[id^="select-"]:checked + label[for^="select-"]::before {
  background-color: #1a1a1a;
}

.typeDisplay, .pdyear, #displayfileurl {
  display: none;
}

.dataTables_scrollHeadInner thead th:nth-child(1) {
  padding: 1.75rem .75rem 1.75rem .75rem;
}

.dataTables_scrollHeadInner thead th {
  padding: 1.75rem .75rem 1.75rem .75rem;
}

.dataTables_scrollBody tbody > tr > td:nth-child(1) {
  padding: 1.75rem .75rem 1.75rem .75rem;
}

.dataTables_scrollBody tbody td {
  letter-spacing: 0;
}

/* Stretch width of the table to the main content */
table.dataTable {
  overflow-x: initial;
  display: table;
}

/* Button style */
.tfilters .showhidecolumn button {
  background: none;
  border: none;
  border-radius: 4px;
  box-sizing: border-box;
  box-shadow: none;
  color: #06c;
  cursor: pointer;
  font-size: 1.125rem;
  font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 600;
  line-height: 1.5555555556;
  text-align: center;
  text-decoration: underline;
  display: flex;
  align-items: center;
  margin: 0 0.75rem 0 1rem;
  padding: 0.625rem 1rem;
  min-width: 3rem;
}

.tfilters .showhidecolumn button:hover {
  background-color: #e8e8e8;
  color: #00478f;
  text-decoration: underline;
}

.tfilters .showhidecolumn button:focus {
  box-shadow: 0 0 0 4px #009adb;
  outline: 4px solid transparent;
  transition: box-shadow .1s ease-in-out;
}

@media screen and (max-width: 39.9375em) {
  .tfilters .showhidecolumn button {
    display: block;
    width: 100%;
    margin: 0 0 1.3rem 0;
  }
}

/** Stacked table column widths **/
.dataTables_scrollHeadInner table,
.dataTables_scrollBody table {
  width: auto !important;
  min-width: 100%;
}

.dataTables_scrollBody {
  overflow-x: auto !important;
}

.dataTables_scrollHead {
  overflow-x: hidden !important;
}

th, td {
  box-sizing: border-box;
}
