.transparent {
    opacity: 0;
}

.inactive {
    opacity: 0.3;
}

.below {
    z-index: -10;
}

.above {
    z-index: 200;
}

.forbidden {
    cursor: not-allowed;
}

.zoom-in {
    cursor: zoom-in;
}

.zoom-out {
    cursor: zoom-out;
}

.columns {
    width: 100%;
}

.clear {
    clear: both;
}

.right {
    float: right;
}

.left {
    float: left;
}

.visual_link {
    text-decoration: underline;
}

.centered {
    text-align: center;
}

table {
    border-collapse: collapse;
}

.smaller {
    font-size: 10.66pt;
}

.caps {
    font-variant: small-caps;
}

.blocker {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    z-index: 100;
    background-color: rgba(128, 128, 128, 0.2);
}

.blocker.glass {
    background-color: rgba(0, 0, 0, 0);
}

.fullscreen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
}

.content.centered {
    text-align: center;
}

.floating {
    box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.5);
}

.blocker > .dialog,
.blocker > .centered,
.fullscreen > .centered {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}


/** eye candy from here on */

body {
    font-family:'Arial', 'Helvetica', sans-serif;
    font-size: 12pt;
    background-color: var(--primary-background);
    color: var(--primary-text);
    display: flex;
    flex-direction: column;
    align-content: stretch;
}

a {
    color: var(--primary-text);
    text-decoration: none;
}
a[href^="https:"] {
    text-decoration: underline;
}
a[rel="bookmark"] {
    text-decoration: none;
}

form {
    display: inline-block;
}

img {
    height: auto;
    width: auto;
}

time.expired {
    text-decoration: line-through;
}

input {
    border: 0 none;
    border-bottom: 1px solid var(--primary-text);
    background-color: var(--primary-background);
    color: var(--primary-text);
    font: inherit;
    outline: none;
}

input.button,
button {
    border: 0 none;
}

.button.wide {
    padding-left: 2em;
    padding-right: 2em;
}

form > div > div {
    margin-bottom: 0.5em;
}

form > div > div.controls {
    margin-top: 1em;
}

.week_nav {
    white-space: nowrap;
}

#head span.controls {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
    word-break: keep-all;
    white-space: nowrap;
}

#head form.controls {
    margin-left: 2em;
}

#head time {
    margin: 0 0.5em 0 0.7em;
}

div.controls {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    margin: 2em 0 2em 0;
}

div.controls > .hide {
    position: absolute;
    left: 0;
    top: 0;
}

select {
    border: 0 none;
    background-color: var(--primary-background);
    color: var(--primary-text);
    font: inherit;
}

#head {
    margin: 0;
    padding: 1em;
    background-color: var(--header-background);
    color: var(--header-text);
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: baseline;
    position: relative;
    left: 0;
    top: 0;
    width: 100%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

#head a {
    color: var(--header-text);
}

h1 {
    display: inline-block;
    margin: 0;
    padding: 0;
    margin-left: 1.5em;
    overflow: hidden;
    font-size: 24pt;
    font-weight: normal;
}

#head span {
    margin-left: 2em;
}

#head span.stretch {
    margin: 0;
    flex-grow: 5;
}

#sidebar {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}
#sidebar,
#sidebar summary,
#sidebar a,
#sidebar ul,
#sidebar li {
    background-color: var(--header-background);
    color: var(--header-text);
}
#sidebar .overlay {
    display: none;
}
#sidebar summary {
    display: block;
    position: absolute;
    top: 0em;
    left: 0em;
    width: auto;
    height: auto;
}
#sidebar summary::marker {
    content: none;
}
#sidebar summary i {
    display: block;
    position: relative;
    top: 1em;
    left: 0.8em;
    z-index: 300;
}
#sidebar summary i:before {
    font-size: 24pt;
}
#sidebar i:before {
    display: inline-block;
    width: 1em;
    text-align: center;
}
#sidebar li i:before {
    margin-right: 0.5em;
}

#sidebar[open] {
    position: fixed;
    width: 100vw;
    height: 100vh;
    z-index: 100;
    background: none;
}

#sidebar[open] .overlay {
    position: absolute;
    left: 0;
    top: 0;
    display: block;
    background-color: var(--message-background);
    opacity: 0.5;
    width: 100vw;
    height: 100vh;
}

#sidebar[open] summary {
    position: relative;
}

#sidebar ul {
    display: flex;
    flex-direction: column;
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    list-style: none;
    margin: 0;
    padding: 4em 4em 2em 2em;
    font-size: 120%;
    z-index: 200;
    overflow: auto;
}

#sidebar li {
    margin: 1.5em 0 0 0;
}

#sidebar label {
    overflow-wrap: normal;
    white-space: nowrap;
}

#center,
#center > form {
    position: relative;
    margin: 0;
    padding: 0 1em 0 1em;
    border: 0 none;
}

#center > div > div,
#center > form {
    width: 100%;
    position: relative;
    top: 0;
}

#center,
#center > form {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: center;
}

#center > div.bordered,
#center > form > div.bordered {
    margin-right: 1em;
    padding-right: 1em;
    border-right: 1px solid var(--primary-text);
}

#menu,
#light_lunch {
    width: 40vw;
}

#light_lunch hr {
    border: 1px solid var(--primary-text);
    display: none;
}

#menu,
#schema_wrap,
div.menu_entry {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    border: 0 none;
}

#menu div > p > span {
    font-size: 12pt;
}

#menu div > div .smaller,
#menu div .smaller {
    opacity: 0.7;
    font-size: 8pt;
}

dd, dt {
    display: inline-block;
    margin: 0;
    padding: 0;
}
dd::after {
    content: "\A";
    white-space: pre;
}

#menu details,
#menu details > summary {
    display: inline-block;
}
#menu details > div {
    display: inline-block;
}
#menu details > summary {
    cursor: pointer;
}
#menu details.info summary::marker,
#menu details.comment summary::marker {
    content: none;
}
#menu details.info > summary {
    opacity: 0.7;
}
#menu details.comment[open] > summary {
    display: none;
}
#menu details > div {
    cursor: default;
}

.qualifier {
    height: 1.2rem;
}

#schema_wrap,
div.menu_entry {
    width: 100%;
    justify-content: center;
}

div.menu_entry {
    margin-top: 4rem;
    text-align: center;
    font-size: 110%;
}

div.menu_entry input[type="text"] {
    margin-top: 4px;
    width: 90%;
}

div.menu_entry details p {
    text-align: left;
}

div.menu_entry .button.smaller {
    opacity: 0.7;
    font-size: 8pt;
}

#week.fw {
    width: 90%;
}

div.week_schema {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
    margin-top: 1.5rem;
}

div.week_column {
    flex-direction: column;
    width: 18rem;
}

div.week_column .header {
    font-size: 120%;
    font-weight: bold;
    text-align: center;
}

div.week_column .meal {
    border: 1px solid black;
    padding: 0.5rem;
    margin: 0.2rem;
    border-radius: 4px;
    text-align: left;
    white-space: nowrap;
    font-size: 110%;
}

div.week_column .meal form {
    display: flex;
    flex-direction: row;
    align-items: center;
}

div.week_column .meal .unavailable {
    text-decoration: line-through;
}

div.week_column .meal label > span {
    display: inline-block;
    max-width: 14rem;
    overflow: hidden;
}

div.week_column .meal label > i.fa {
    padding-right: 0.5rem;
}

div.week_column .meal label:last-child > i.fa {
    padding-left: 0.5rem;
    padding-right: 0;
}

div.week_column .meal label {
    display: flex;
    flex-direction: flex-row;
    overflow: hidden;
    padding: 0;
    margin: 0;
}

div.week_column .meal img.qualifier {
    height: 0.9rem;
}

div.week_column .meal.cat1main {
    background-color: #f7f7f7;
}

div.week_column .meal.cat2lite {
    background-color: #e0e3f4;
}

div.week_column .meal.cat9dsrt {
    background-color: #f1f4e0;
}

#p_save {
    margin: 2rem 0;
}
#menu #p_save .button {
    font-size: 12pt;
    margin: 2px;
    padding: 0.5em 1em;
}

#schema_wrap #p_save {
    text-align: center;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}
.menu_entry .allergene,
.menu_entry .weekday {
    display: inline-block;
    padding: 0.25em;
}

p.allergenes {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
}
p.allergenes span {
    white-space: nowrap;
    padding-right: 1rem;
}
span.dangerous {
    font-weight: bold;
}
#dangerous {
    padding: 1rem;
    margin: 1rem 1rem !important;
    border: 2px solid var(--primary-text);
    background-color: var(--warn-background);
    color: var(--warn-text);
    font-size: 110%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
}
#dangerous i {
    font-size: 120%;
    margin: 0.5rem 1rem 0.5rem 0.5rem;
}

div.dense {
    width: 40vw;
}

div.wide {
    width: 90vw;
}

div.fullwidth {
    width: 100vw;
}

div.dense div > p {
    margin: 5px 0;
}

div.dense h2 {
    margin-top: 0.75em;
    margin-bottom: 0.25em;
    padding-bottom: 0.25em;
}

#menu.dense .button {
    margin: 1px;
    padding: 2px 6px;
    font-size: 8pt;
}

#tickets {
    display: flex;
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: stretch;
    align-items: flex-start;
}

#tickets > .ticket {
    padding: 0.5em;
    border-right: 1px dashed black;
    border-bottom: 1px dashed black;
}

div.ticket > p {
    padding-top: 0.5em;
    font-size: 10pt;
}

div.announcement {
    padding: 1rem;
    margin: 0.2rem 0.2rem !important;
    border: 1px solid var(--primary-text);
    background-color: var(--message-background);
    color: var(--message-text);
    font-size: 110%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    align-content: flex-start;
    align-self: center;
    max-width: 100%;
    width: auto !important;
}

div.announcement.inactive {
    background-color: var(--message-light-background);
    color: var(--primary-text);
}

div.announcement .icons {
    margin: 0.5rem 1rem 0.5rem 0.5rem;
    display: flex;
    flex-direction: column;
}

div.announcement i,
div.announcement label {
    margin: 1rem 1rem 1rem 0;
}

#userticket {
    width: 60%;
    min-width: 20em;
}

@media print {
#tickets {
    display: block;
}

#tickets > .ticket {
    display: inline-block;
    width: 45%;
    page-break-inside: avoid;
}

.noprint {
    display:none;
}

#tablewrap tbody td.payment {
    white-space: break-spaces;
    max-width: 7em;
}
}

.invitation {
    display: flex;
    flex-direction: column;
    padding-bottom: 0.5em;
    border-top: 1px solid black;
}

.invitation .row {
    display: flex;
    flex-direction: row;
}

.invitation .row > div {
    padding-right: 1em;
    white-space: nowrap;
}
.invitation .row > div:first-child {
    width: 20em;
}

.invitation form {
}
.invitation label {
    font-size: 120%;
}

.message {
    background-color: var(--message-background);
    color: var(--message-text);
    padding: 1em;
    margin: 1em 0 0.2em 0;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.lunch_not_selected {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-around;
}

.lunch_not_selected .day_not_selected,
.lunch_not_selected .day_selected {
    background-color: var(--message-background);
    color: var(--message-text);
    padding: 0.2em 0.4em;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.lunch_not_selected .day_selected {
    background-color: var(--message-light-background);
}

input[type=checkbox],
input[type=radio] {
    position: absolute;
    left: 0;
    top: 0;
    max-width: 1px;
    max-height: 1px;
    opacity: 0.001;
    margin: 0;
    padding: 0;
}

label {
    position: relative;
    overflow-wrap: break-word;
}

h2 label {
    margin: 0;
}

input[type=checkbox] ~ label {
}


input[type=radio] ~ label {
}

input[type=text]:user-invalid,
input[type=radio]:user-invalid ~ label,
input[type=checkbox]:user-invalid ~ label {
    border: 3px dashed var(--error-border);
}

label.toggle {
    display: flex;
    position: relative;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    left: 0;
    top: 0;
    width: 3em;
    height: 3em;
}
input[type=radio] ~ label.toggle:before {
    content: none;
}
input[type=radio]:checked ~ label.toggle:before {
    content: none;
}
input[type=radio]:checked ~ label.toggle {
    display: flex;
}
input[type=radio]:not(checked) ~ label.toggle {
    display: none;
}

div.locked {
    opacity: 0.5;
}

h2 {
    font-size: 20pt;
    font-weight: normal;
    text-transform: capitalize;
    font-variant: small-caps;
    padding: 1em 0 0.5em 0;
    margin: 1em 0.5em 0.5em 0;
}

h2:first-child {
    margin-top: 1em;
    padding-top: 0;
}

#content {
    width: 100%;
    max-width: 100%;
    overflow: clip;
}

#controls {
    margin: 0;
    padding: 4px 4px 0 0;
    text-align: right;
}

p.tabular {
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: space-between;
}

p.tabular > .space,
p.tabular > .dotted {
    flex-grow: 3;
    position: relative;
    opacity: 0.5;
}

p.tabular > .dotted {
    left: 0;
    top: -4px;
    margin: 0 2px;
    width: 1em;
    border-bottom: 1px dotted var(--primary-text);
}

.confirm-save {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    background-color: #517d5a;
    opacity: 0;
    -webkit-animation: fadein 2s;
       -moz-animation: fadein 2s;
        -ms-animation: fadein 2s;
         -o-animation: fadein 2s;
            animation: fadein 2s;
}

@-webkit-keyframes fadein {
    0% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; }
}

@-moz-keyframes fadein {
    0% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; }
}

@-ms-keyframes fadein {
    0% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; }
}

@-o-keyframes fadein {
    0% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; }
}

@keyframes fadein {
    0% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; }
}

/** checkout */

#checkout {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    left: 0;
    top: 0;
    width: 50vw;
}

#checkout form {
    display: inline-block;
    width: auto;
}

#checkout > .row {
    background-color: var(--primary);
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
}

#checkout > .row:nth-child(even) {
     background-color: #ddf;
}

#checkout span {
    display: inline-block;
    align-self: center;
}

#checkout span.name {
    text-align: right;
}

#checkout span.meal {
}

#checkout span.checkout_button,
#checkout span.vegetarian,
#checkout span.payment {
}

#checkout > div.fade_out span {
    opacity: 0.3;
}

#tablewrap {
    margin-top: 1em;
    overflow: auto;
    max-width: 98vw;
}
#tablewrap table {
    border-spacing: 0;
}
#tablewrap table.vertical th,
#tablewrap table.vertical td {
    border-right: 1px solid black;
}
#tablewrap .person.name {
    white-space: nowrap;
    padding-left: 0.5em;
}
#tablewrap th {
    margin: 0;
    padding: 0.5em 0.5em 0.5em 0;
}
#tablewrap thead,
#tablewrap tbody {
}
#tablewrap thead {
    position: sticky;
    top: 0;
    z-index: 10;
}
#tablewrap tbody {
    max-height: 80vh;
    overflow: auto;
}
#tablewrap thead th {
    background-color: var(--tbl-header-background);
}
#tablewrap thead th span.cost {
    font-weight: normal;
}
#tablewrap thead tr.vertical th {
    writing-mode: sideways-lr;
    vertical-align: bottom;
    text-align: left;
    margin: 0;
    padding: 0.25em 0.5em;
    min-width: 2em;
}
#tablewrap tbody th:first-child,
#tablewrap tfoot th:first-child,
#tablewrap tbody td.payment {
    font-weight: normal;
    text-align: left;
    padding: 0.5em;
    height: 3.5em;
}
#tablewrap tbody td,
#tablewrap tfoot td {
    position: relative;
    text-align: center;
    white-space: nowrap;
    min-width: 3em;
}
#tablewrap tbody td.payment {
    position: relative;
    text-align: center;
}
#tablewrap tr:nth-child(even) {
    background-color: var(--tbl-row-alt-background);
}
#tablewrap tr td.controls {
    background-color: var(--primary-background);
}
#tablewrap table td.controls {
    border: 0 none;
    padding: 0.75em;
    text-align: left;
}
#tablewrap tr:hover {
    background-color: var(--tbl-row-highlight);
}
#tablewrap summary::marker {
    content: none;
}
#tablewrap div.tooltip {
    padding:0.5em;
    position:absolute;
    top: 0.6em;
    left: 3em;
    background-color: var(--tooltip-background);
    color: var(--tooltip-text);
    z-index: 100;
}
#tablewrap tbody .nf,
#tablewrap tbody .fa {
    font-size: 120%;
}
#tablewrap .left {
    text-align: left;
    float: none;
}
#tablewrap td .autowrap,
#tablewrap th .autowrap {
    display: inline-block;
    white-space: wrap;
    max-width: 20vw;
    min-width: 10em;
}

@media screen and (max-width: 610px) {

#head {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 0;
}

#head > h1,
#head > span {
    margin: 0;
    padding: 0 0 5px 0;
    display: block;
    width: 100%;
    text-align: center;
}

#head > span.controls {
    text-align: right;
    padding: 0 5px 5px 1em;
    justify-content: space-between;
}

#head span.controls {
    margin: 0;
}

#sidebar {
}
#sidebar ul {
}
#sidebar summary i {
    top: 0.2em;
}

#center,
#center > form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#center > form {
    padding-bottom: 5rem;
}

#center > div.bordered,
#center > form > div.bordered {
    margin: 0;
    padding: 0;
    border: 0 none;
}

#center > div > div {
    width: auto;
}

#menu > div,
#light_lunch {
    margin: 0 2em;
}

#menu {
    padding: 0 0 6rem 0;
}

#menu,
#light_lunch {
    width: auto;
}

div.dense,
#light_lunch {
    width: 100%;
    padding: 2rem 2rem 0 2rem;
}
#light_lunch hr {
    display: block;
}

#schema_wrap {
    margin-bottom: 6rem;
}

#h_save {
    display: none;
}

#p_save {
    background-color: var(--primary-background);
    text-align: center;
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    padding: 1rem 0 1rem 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    white-space: nowrap;
}

#tablewrap {
    max-width: 100%;
}

}
