body {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
  }

#primary, #main {
    width: 100%;
}

h1, h2, h3 {
    width: 100%;
    margin-bottom: 50px;
    text-align: center;
}

/* Hide printonly-elements */
.printonly {
    display: none;
}

form {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

#general > table {
    width: 45%;
}

/* Style the tab navigation */
.tab {
    overflow: hidden;
    border: none;
    border-radius: 0.3em;
    width: 100%;
    margin-bottom: 20px;
    margin-top: 50px;
}

/* Style the buttons that are used to open the tab content */
.tab button {
    background-color: inherit;
    float: left;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 14px 16px;
    transition: 0.3s;
}
  
/* Change background color of buttons on hover */
.tab button:hover {
    background-color: #ddd;
}

/* Create an active/current tablink class */
.tab button.active {
    background-color: #ccc;
}

table {
    margin-bottom: 20px;
    border-spacing: 0;
}

  
table > thead > tr > th,
table > tbody > tr > th,
table > tfoot > tr > th,
table > thead > tr > td,
table > tbody > tr > td,
table > tfoot > tr > td {
    padding: 8px;
    line-height: 1.53846154;
    vertical-align: center;
}
table > thead > tr > th {
    vertical-align: bottom;
}
/* th {
    text-align: left;
} */
table > caption + thead > tr:first-child > th,
table > colgroup + thead > tr:first-child > th,
table > caption + thead > tr:first-child > td,
table > colgroup + thead > tr:first-child > td,
table > thead:first-child > tr:first-child > td {
    border-top: 0;
}

form div{
    flex: 0 1 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
}

/* Style the tab content */
.tabcontent {
    display: none;
    padding: 6px 12px;
    border-top: none;
}
.tabcontent table:nth-of-type(1) {
  order: 1;
  width: 45%;
}
.tabcontent table:nth-of-type(2) {
  order: 3;
  width: 100%;
  margin-top: 30px;
}
.tabcontent table:nth-of-type(3) {
  order: 2;
  width: 45%;
}

.remove {
    background-color: #CD202C;
    color: white;
    border: none;
    border-radius: 0.3em;
    padding: 0.3em;
}

.add {
  border: none;
  border-radius: 0.3em;
  padding: 0.3em;
}