main {
  display: block !important;
}

h3 {
  margin: 0;
}

.inschrijvingen {
  margin-bottom: 5rem;
}

.aanmeldingen{
  margin-bottom: 40px;
}

.overzicht-grid > div {
  padding: 0px 10px;
  align-items: center;
}

#overzicht-grid {
  touch-action: none;
  user-select: none;
}

#overzicht-grid:hover {
  cursor: grab;
}

#overzicht-grid:active {
  cursor: grabbing;
}

#overzicht-grid > div:not(.line) {
  display: grid;
  grid-template-columns: 25% 20% 35% 20%;
  min-width: 400px;
}

#overzicht-grid > .childeren:not(.line) {
  grid-template-columns: 20% 15% 15% 30% 20%;
  min-width: 500px;
}

.overzicht-grid h6, .overzicht-grid p {
  justify-self: center;
  text-align: center;
}

.overzicht-grid > h3 {
  font-size: x-large;
  background-color: #898989;
  border-bottom: solid rgb(79, 79, 79) 4px;
}

.overzicht-grid h6 {
  font-size: medium;
  margin: 10px 5px;
  align-self: center;
}

#overzicht-grid > div > div:has(h6) {
  position: relative;
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: center;
}

#overzicht-grid > div > div:has(h6):not(.first-element)::before {
  content: '';
  display: inline-block;
  position: absolute;
  background-color: #898989;
  height: calc(100%);
  width: 4px;
  left: -2px;
}

.overzicht-grid p {
  font-size: small;
  margin: 10px 5px;
}

#overzicht-grid > div > p,
#overzicht-grid > div > div:has(p) {
  width: calc(100% - 10px);
  height: calc(100% - 20px);
  position: relative;
  margin: 10px 5px;
}

#overzicht-grid > div > div:has(p) {
  display: flex;
}

#overzicht-grid > div > div > p {
  margin: auto;
}

#overzicht-grid > div > p:not(.first-element)::before, 
#overzicht-grid > div > div:has(p):not(.first-element)::before {
  content: '';
  display: inline-block;
  position: absolute;
  background-color: darkgray;
  height: calc(100% + 36px);
  width: 2px;
  top: -18px;
  left: -6px;
}

.overzicht-grid > hr, #aanmelding-grid > hr{
  width: 100%;
  border: none;
  height: 2px;
  background-color: darkgray;
}
#overzicht-grid > hr:nth-of-type(-n+4), 
.overzicht-medals-grid > hr:nth-of-type(-n+2), 
hr.light-dark-hr {
  background-color: #898989 !important;
  height: 4px !important;
  margin-top: 0px !important;
}

#overzicht-medals-grid-container{
  display: flex; 
  gap: 50px; 
  justify-content: center;
}

@media screen and (max-width: 768px) {
  #overzicht-medals-grid-container{
    flex-direction: column;
  }
}

.overzicht-medals-grid {
  display: grid; 
  grid-template-columns: auto 2px auto; 
  background:rgb(231, 231, 231); 
  height: fit-content; 
  padding-bottom: 8px; 
  overflow: auto;
}

hr.light-dark-hr-top {
  background-color: #898989;
  height: 4px;
  margin-bottom: 0px;
}

#aanmelding-grid > hr.dark-hr {
  background-color: rgb(79, 79, 79);
  height: 4px;
  margin: 0px;
}

#aanmelding-grid {
  display: grid; 
  grid-template-columns: 120px 2px auto 2px auto 2px auto 2px auto;
  background-color: rgb(231, 231, 231);
  padding-bottom: 8px;
  overflow: auto;
}

#aanmelding-grid > div {
  background-color: #898989; 
  display: flex; 
  justify-content: center; 
  align-items: center;
}

#aanmelding-grid h3 {
  margin: 0;
}
#aanmelding-grid > h3 {
  text-align: center;
  background-color: #898989;
  padding: 16px;
}

#aanmelding-grid p {
  padding: 15px;
  justify-self: center;
}

.table-notes {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}


.print-button {
  background-color: #3C3C3B;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: inline-block;
  font-weight: 400;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  border: 1px solid transparent;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  color: #FFF;
  border-radius: 0.25rem;
  width: fit-content;
  margin-top: 1.5rem;
}

.print-button:hover {
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
  background: var(--secondary-color);
  cursor: pointer;
}