div.table {
    max-height: 300px;
    overflow-y: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table.list, div.table {
    margin-top: 1em;
}

div.table table.list {
    border: none;
    margin: 0;
}

table.list {
    width: 100%;
}

table.list td.name span.address {
    display: block;
    margin: .2em 0;
}

table.list td.name span.address span.zip_code::before {
    content: " • ";
}

table.list td {
    border-bottom: 1px solid silver;
}

.details td {
    background-color: var(--cl-red);
    color: var(--fg-red);
}

.scrollbox {
    padding: 1em;
    overflow: auto;
    height: 100%;
    width: 100%;
    box-sizing: border-box;
}

:is(.scrollbox, .scroll)::-webkit-scrollbar {
    -webkit-appearance: none;
    width: 10px;
}

:is(.scrollbox, .scroll)::-webkit-scrollbar-thumb {
    border-radius: 5px;
    background-color: black;
}


hr {
    margin-top: 1em;
    visibility: hidden;
    margin-bottom: 1em;
}

div.toprow {
    margin-top: 1em;
    margin-bottom: 1em;
    display: flex;
}

div.toprow > div {

}

span.bubble {
    display: block;
    height: 20px;
    width: 20px;
    border-radius: 10px;
    text-align: center;
    line-height: 20px;
    vertical-align: middle;
    font-size: 11px;
}

span.bubble.wide {
    width: 35px;
}

span.bubble.red {
    background-color: var(--cl-red);
    color: var(--fg-red);
}

span.bubble.gray {
    background-color: var(--cl-gray);
    color: var(--fg-gray);
}

span.bubble.num:not(.num_0) {
    background-color: var(--cl-darkgray);
    color: var(--fg-darkgray);
}

span.bubble.green {
    background-color: var(--cl-green);
    color: var(--fg-green);
}

.stats .classes {
    background-color: var(--cl-green);
    color: var(--fg-green);
    padding: .2em .4em;
}

table.list tr, td {
    height: 24px;
    vertical-align: top;
    padding-top: .3em;
    padding-bottom: .3em;
}

table.list td.id {
    display: none;
}

table.list :is(td, th).ops {
    width: 50px;
    text-align: center;
}

table.list :is(td, th).symbol {
    padding-left: .5em;
}

table.list tr:nth-child(even) td {

}

table.list tr:nth-child(odd) td {
    background-color: var(--cl-lightgray);
}

table.list tr:hover td {
    background-color: #333333;
    color: white;
}

table.list th.new {
    text-align: left;
    padding-bottom: 1em;
    padding-top: .5em;
}

.admin table.list th form {
    width: 80%;
}

.titlepopup {
    border: 4px solid black;
    background: black;
    color: white;
    font-size: 12px;
    line-height: 15px;
    padding: 0;
}

.titlepopup::before {
    content: '\A0';
    position: absolute;
    top: -15px;
    left: -4px;
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-bottom: 15px solid black;
}

.page .main {
    margin: 1em auto;
    box-sizing: content-box;
    padding: 0 1em 1em;
    max-width: 1000px;
    /*border-left: 1px solid var(--fg-white);*/
    /*border-right: 1px solid var(--fg-white);*/
    /*border-bottom: 1px solid var(--fg-white);*/
    background-color: var(--cl-white);
    color: var(--fg-white);
}

.page .main.data {
    max-width: 90vw;
}

.page .main.data h1 {
    text-align: center;
}

.page .admin.tab.lists h4 {
    margin-top: 3em;
}

:target + div {
    background-color: #ffffe0;
}

.page .main.data table th {
    font-weight: bold;
    border-bottom: 2px solid gray;
}

.page .main.data table tr.dupe {
    background-color: silver;
    color: gray;
}

.page .main.data table td {
    border-bottom: 1px solid silver;
}

.page .main .navi {
    display: block;
    width: 100%;
    height: 100px;
    position: relative;
}

.page .main .navi .logo {
    float: left;
    margin-right: 20px;
}

.logo {
    padding: 0 !important;
}

.page .main .navi ul {
    display: block;
    margin: 0;
    padding: 0;
}

.page .main .navi ul li {
    display: block;
    float: right;
    margin-left: 1em;
    padding: 0;
}

.page .main .navi ul li a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 6px 12px;
}

input[type=submit].icon, input[type=button].icon {
    float: left;
    background: transparent;
    border: none;
    padding: 0;
    height: 20px;
    font-size: 20px;
    line-height: 20px;
    width: auto;
    margin-right: .2em;
}

input[type=submit].unobtrusive, input[type=button].unobtrusive {
    color: var(--cl-black);
    border-width: 1px;
    border-style: solid;
    border-color: var(--cl-black);
    background: var(--cl-white);
}

input[type=submit].unobtrusive:hover, input[type=button].unobtrusive:hover {
    background: var(--cl-lightgray);
}

.notification {
    padding: .5em;
    border-radius: .5em;
    margin-top: .5em;
    margin-bottom: .5em;
    border: 1px solid black;
    background-color: #f0f0f0;
}

.notification input[type=submit] {
    float: right;
    margin-top: -3px;
    margin-right: 0.5em;
}

.notification .fa.icon {
    color: var(--fg-white);
}

.notification form.del {
    float: left;
    margin-left: .5em;
    margin-right: .5em;
}

.notification form.undo {
    display: inline;
}

form.block label {
    float: left;
    width: 20%;
}

form.block table label {
    float: none;
}

form.block input[type=text], form.block textarea, form.block input[type=password] {
    float: left;
    width: 40%;
}

form.block label, form.block input, form.block textarea {
    margin: .2em;
}

textarea[rows] {
    line-height: 1.2;
    height: calc(attr(rows) * 1.25em);
}

form.block p {
    clear: both;
}

div.todo {
    margin: 50px;
}

div.todo p::before {
    content: "👷";
    display: block;
    margin-right: .25em;
    float: left;
    left: 10px;
    font-size: 48px;
    height: 48px;
    line-height: 48px;
}

.template {
    display: none !important;
}

.foot {
    width: 100%;
    padding: 0 1em 1em 1em;
    box-sizing: border-box;
    text-align: center;
}

.foot p, .foot form {
    padding: 0;
    margin: 0 0 .5em 0;
}

.foot span + span::before {
    content: " • ";
}

.foot .opensource, .foot .opensource a {
    text-decoration: none;
    color: grey;
}

.foot .opensource a:hover {
    background: transparent !important;
    border: none !important;
    outline: none !important;
    color: black !important;
}

button .fas {
    color: rgb(var(--cl-black));
}

table.list td .fa.icon {
    color: var(--fg-white);
}

table.list tr:hover td .fa.icon {
    color: var(--fg-black);
}

table.list :is(td, th).name {
    padding-left: .5em;
}

table.list td.name .name {
    font-weight: bold;
}

table.list tr td .fa.icon:hover {
    transition: color;
    transition-duration: 500ms;
    color: var(--cl-red);
}

table.list small {
    font-style: italic;
}

.questionnaire .possible-answers .list p:first-child + p .up {
    visibility: hidden;
}

.questionnaire .possible-answers .list p:last-child .down {
    visibility: hidden;
}

.questionnaire .questions p:first-child + p .up {
    visibility: hidden;
}

.questionnaire .questions p:last-child .down {
    visibility: hidden;
}

input[disabled] {
    filter: grayscale(1);
}

input[type=submit]:hover:not(.icon):not(.unobtrusive),
input[type=button]:hover:not(.icon):not(.unobtrusive),
.navi ul li:hover {
    color: white !important;
    background-color: var(--cl-highlight) !important;
    transition: color, background-color;
    transition-duration: 500ms;
}

a {
    outline: 3px solid transparent;
}

a:hover {
    transition: color, background-color, outline-color;
    transition-duration: 500ms;
}

a:hover:not(.toplink):not(#close-button):not(.button) {
    background-color: var(--cl-highlight);
    outline-color: var(--cl-highlight);
    color: white;
}

a.button:hover:not(#close-button) {
    background-color: var(--cl-highlight);
}

.checklist label {
    width: 50%;
}

[data-validation-error] {
    margin-bottom: 20px;
}

span[data-validation-error] {
    display: inline-block;
    position: absolute;
    margin-top: 22px;
}

input[data-validation-error]::before, span[data-validation-error]::before {
    font-family: sans-serif;
    display: block;
    white-space: nowrap;
    font-size: 8px;
    line-height: 18px;
    vertical-align: middle;
    height: 18px;
    position: absolute;
    background: red;
    padding-left: .5em;
    padding-right: .5em;
    color: white;
    content: attr(data-validation-error);
}

input[data-validation-error]::before {
    margin-left: -3px;
    margin-top: 42px;
}

.send_firm.sent input, .send_student.sent input,
.send_firm.sent label, .send_student.sent label {
    display: none;
}

.send_firm span.message, .send_student span.message {
    display: inline-block;
    padding-top: .5em;
    padding-left: 30px;
}

.send_firm.not_sent span.message, .send_student.not_sent span.message {
    display: none;
}

.select2__title {
    display: inline-block;
}

.select2__tags {
    display: inline-block;
    font-size: .83em;
}

.pager a b {
    background-color: var(--cl-highlight);
    color: white;
    padding-left: 5px;
    padding-right: 5px;
    border-radius: 5px;
}

.pager a {
    text-decoration: none;
}

.pager a:hover {
    background: transparent !important;
    outline: none !important;
    text-decoration: underline;
    color: inherit !important;
}

p.bold {
    font-weight: bold;
}

.nodeco a {
    text-decoration: none;
}

.doblack a {
    color: black !important;
}

.doblack a:hover {
    color: white !important;
}

.gridform {
    position: relative;
    width: 900px;
    background-color: var(--cl-lightgray);
    margin-bottom: 10px;
    font-family: 'Open Sans', 'Helvetica', 'Arial', sans-serif;
    font-size: 14px;
    --width: 90px;
    --height: 60px;
    --hspace: 20px;
    --vspace: 20px;
}

.gridform div input[type=submit] {
    height: 35px;
    width: 100%;
    position: relative;
    top: 20px;
}

.split {
    display: flex;
    flex-wrap: wrap;
    background: var(--cl-white);
}

.split > div {
    flex-basis: 50%;
}

.gridform.w2 {
    width: 445px;
}

.gridform .disabled {
    opacity: 0.5;
}

.gridform .extra_contact_entry input[type=text] {
    width: 240px;
}

.gridform > div {
    position: absolute;
    height: var(--height);
}

.gridform label {
    display: block;
    width: min-content;
    color: #404040;
    padding: 0 5px 2px 0;
    height: 20px;
    line-height: 20px;
    white-space: nowrap;
}

.gridform label:not(:first-child) {
    margin-top: 10px;
}

.gridform input[readonly] {
    background: gray;
    color: white;
}

.gridform :is(input:is([type=text], [type=date], [type=number], [type=datetime-local]),
              select, textarea, span.text, li.text) {
    height: 35px;
    font-family: monospace;
    font-size: 14px;
    line-height: 35px;
    width: 100%;
}

.gridform :is(textarea) {
    line-height: 22px !important;
}

.gridform :is(.text) {
    border: none !important;
    display: block;
    padding-top: 20px;
}

.gridform li.text {
    padding: 0;
    margin: 0;
}

.gridform div::before {

}

.gridform .c1 {
    left: calc(var(--width) * 0 + var(--hspace) * 1 - 5px);
}

.gridform .c2 {
    left: calc(var(--width) * 1 + var(--hspace) * 2 - 5px);
}

.gridform .c3 {
    left: calc(var(--width) * 2 + var(--hspace) * 3 - 5px);
}

.gridform .c4 {
    left: calc(var(--width) * 3 + var(--hspace) * 4 - 5px);
}

.gridform .c5 {
    left: calc(var(--width) * 4 + var(--hspace) * 5 - 5px);
}

.gridform .c6 {
    left: calc(var(--width) * 5 + var(--hspace) * 6 - 5px);
}

.gridform .c7 {
    left: calc(var(--width) * 6 + var(--hspace) * 7 - 5px);
}

.gridform .c8 {
    left: calc(var(--width) * 7 + var(--hspace) * 8 - 5px);
}

.gridform .r1 {
    top: calc(var(--height) * 0 + var(--vspace) * 1);
}

.gridform .r2 {
    top: calc(var(--height) * 1 + var(--vspace) * 2);
}

.gridform .r3 {
    top: calc(var(--height) * 2 + var(--vspace) * 3);
}

.gridform .r4 {
    top: calc(var(--height) * 3 + var(--vspace) * 4);
}

.gridform .r5 {
    top: calc(var(--height) * 4 + var(--vspace) * 5);
}

.gridform .r6 {
    top: calc(var(--height) * 5 + var(--vspace) * 6);
}

.gridform .r7 {
    top: calc(var(--height) * 6 + var(--vspace) * 7);
}

.gridform .r8 {
    top: calc(var(--height) * 7 + var(--vspace) * 8);
}

.gridform .r9 {
    top: calc(var(--height) * 8 + var(--vspace) * 9);
}

.gridform .r10 {
    top: calc(var(--height) * 9 + var(--vspace) * 10);
}

.gridform .r11 {
    top: calc(var(--height) * 10 + var(--vspace) * 11);
}

.gridform .r12 {
    top: calc(var(--height) * 11 + var(--vspace) * 12);
}

.gridform .s1 {
    width: calc(var(--width) * 1 + var(--hspace) * 0);
}

.gridform .s2 {
    width: calc(var(--width) * 2 + var(--hspace) * 1);
}

.gridform .s3 {
    width: calc(var(--width) * 3 + var(--hspace) * 2);
}

.gridform .s4 {
    width: calc(var(--width) * 4 + var(--hspace) * 3);
}

.gridform .s5 {
    width: calc(var(--width) * 5 + var(--hspace) * 4);
}

.gridform .s6 {
    width: calc(var(--width) * 6 + var(--hspace) * 5);
}

.gridform .s7 {
    width: calc(var(--width) * 7 + var(--hspace) * 6);
}

.gridform .s8 {
    width: calc(var(--width) * 8 + var(--hspace) * 7);
}

.gridform .v2 {
    height: calc(var(--height) * 2 + var(--vspace) * 1) !important;
}

.gridform .v3 {
    height: calc(var(--height) * 3 + var(--vspace) * 2) !important;
}

.gridform .v4 {
    height: calc(var(--height) * 4 + var(--vspace) * 3) !important;
}

.gridform.r1 {
    height: calc(var(--height) * 1 + var(--vspace) * 2);
}

.gridform.r2 {
    height: calc(var(--height) * 2 + var(--vspace) * 3);
}

.gridform.r3 {
    height: calc(var(--height) * 3 + var(--vspace) * 4);
}

.gridform.r4 {
    height: calc(var(--height) * 4 + var(--vspace) * 5);
}

.gridform.r5 {
    height: calc(var(--height) * 5 + var(--vspace) * 6);
}

.gridform.r6 {
    height: calc(var(--height) * 6 + var(--vspace) * 7);
}

.gridform .scroll {
    overflow: auto;
}

.gridform.dynamic {
    height: min-content;
}

.failed-validation {
    color: var(--cl-red) !important;
}

.failed-validation + * {
    border-color: var(--cl-highlight) !important;
    outline-color: var(--cl-highlight) !important;
    background-color: #ffcccc !important;
}

.grayed-out {
    opacity: 0.5;
}

label.failed-validation.time-range::after {
    content: " (liegt vor Start)";
}

input[type=date] {

}

#ex_year_block:has(select:disabled) label {
    opacity: 0.5;
}

#ex_user_block:has(select:disabled) label {
    opacity: 0.5;
}

.freesoftware > div {
    box-sizing: border-box;
    width: 750px;
    margin: 0 auto 0 auto;
    padding: 1em;
}

.freesoftware details {
    margin-bottom: .5em;
}

.freesoftware summary {
    cursor: pointer;
    border-radius: 1em;
    padding: .5em;
}

.freesoftware blockquote {
    border-left: 5px solid silver;
    padding-left: 1em;
}

.freesoftware summary:hover {
    background: silver;
}

.freesoftware summary {
    font-weight: normal;
}

.freesoftware details[open] summary {
    font-weight: bold;
}

.export details {
    margin-bottom: .5em;
}

.export summary {
    cursor: pointer;
    border-radius: 1em 1em 1em 1em;
    padding: .5em;
    background: var(--cl-lightgray);
}

.export blockquote {
    border-left: 5px solid silver;
    padding-left: 1em;
}

.export summary:hover {
    background: black;
    color: white;
}

.export summary {
    font-weight: normal;
}

.export details[open] summary {
    font-weight: bold;
    border-radius: 1em 1em 0 0;
}

.edit-student .miscellaneous {
    margin-bottom: 0;
}

.stammdaten.edit-student {
    padding-bottom: 0 !important;
}

button.qb:disabled {
    opacity: .5;
}

details.superuser {
    background-color: var(--cl-lightgray);
    color: var(--fg-lightgray);
    display: inline-block;
}

details.superuser summary {
    cursor: pointer;
    border-bottom: 1px solid black;
    padding-bottom: .2em;
    margin-bottom: .5em;
}

details.superuser form {
    margin: .5em;
    padding: .5em;
    border: 1px solid var(--cl-gray);
    border-radius: .5em;
    background-color: var(--cl-white);
}

details.superuser form:hover {
    border-color: black;
}

form.nice-box-labels label:has(input[type=checkbox]) {
    width: 550px;
    padding: .5em;
    margin: .5em;
    border: 1px solid var(--cl-gray);
    background: 1px solid var(--cl-lightgray);
    border-radius: .5em;
}

form.nice-box-labels label:has(input[type=checkbox]):hover {
    border-color: var(--cl-black);
}

select.label {
    font-size: 10px !important;
    height: 20px !important;
    border: none;
    background: transparent;
}