html {
    position: relative;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    font-family: Trebuchet MS, Arial, sans-serif;
    font-size: 14px;
    /*display: flex;*/
    flex-direction: column;
    margin-bottom: 64px;
}

.content canvas {
    /*flex-grow: 1;*/
    /*margin-right: 20px;*/
}

.content {
    /*flex-grow: 1;*/
    /*display: flex;*/
    /*flex-direction: row;*/
}

#overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #000;
    opacity: 0.5;
    z-index: 1000;
}

h1, h2, h3, h4 {
    font-family: Trebuchet MS regular, Arial, sans-serif;
    font-weight: normal;
}

h2 {
    font-size: 24px;
}

h3, h4 {
    font-size: 18px;
}

footer {
    background-color: #303030;
    bottom: 0;
    width: 100%;
}

footer nav ul {
    text-align: center;
    list-style-type: none;
    padding: 0;
    margin: 0;
}

footer nav ul li {
    display: inline-block;
    margin: 3px;
}

footer nav ul li a {
    display: inline-block;
    padding: 15px;
    color: white;
    text-decoration: none;
    border: 1px solid white;
}

.hidden {
    display: none !important;
}

.flex {
    display: flex;
}

.form-field {
    margin-top: 10px;
}

.form-field label {
    display: block;
    margin-bottom: 5px;
}

.form-field.checkbox {
    display: flex;
    align-items: baseline;
}

.form-field select {
    box-sizing: border-box;
    width: 100%;
    border: 1px solid red;
    border-radius: 8px;
    height: 30px;
    padding: 5px;
}

.form-field input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid red;
    border-radius: 3px;
    display: inline-block;
    width: 15px;
    height: 15px;
    margin-left: 0;
    position: relative;
}

.form-field input[type="checkbox"]:checked:after {
    content: '\2714';
    font-size: 12px;
    position: absolute;
    top: -3px;
    left: 2px;
    color: red;
}

.ui-config {
    width: 45%;
}

.ui-config:first-of-type {
    margin-right: 5%;
}

.ui-config .ui-group:not(:first-child) {
    margin-top: 34px;
}

.ui-config-name {
    text-transform: uppercase;
    margin-top: 0;
}

.ui-action-button:first-of-type {
    margin-bottom: 1em;
}

.ui-action-button:not(:first-of-type) {
    margin-top: 1em;
}

#sideboard {
    width: 350px;
    margin-right: 50px;
    height: 100%;
    float: right;
}

#sideboard h2 {
    color: red;
    text-transform: uppercase;
}

#sideboard h3 {
    color: red;
    margin: 0px;
    margin-bottom: 4px;
}

.sideboard-container {
    margin-top: 10px;
    padding: 20px;
    border: 1px solid red;
    border-radius: 10px;
}

#sideboard h4 {
    margin-top: 5px;
    margin-bottom: 15px;
}

#sideboard button.btn-ui {
    color: white;
    background: red;
    border: 0;
    padding: 5px;
    display: inline-block;
    width: 45%;
    border-radius: 5px;
    text-transform: uppercase;
    height: 30px;
}

#sideboard button:first-of-type {
    margin-right: 3%;
}

#sideboard button:last-of-type {
    margin-right: 0;
}

header {
    border-top: 0;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    background-color: #FFF;
    box-shadow: 1px 2px 2px 1px rgba(0, 0, 0, 0.2);
    z-index: 9998;
    height: 64px;
    position: relative;
    padding: 0 20px;
}

header .image-logo {
    width: 80%;
}

header img {
    width: 130px;
    height: auto;
}

.price-container {
    margin-top: 10px;
}

.gray-box-bottom {
    width: 100px;
    height: 50px;
    background-color: #F5F5F5;
    border-top-right-radius: 8px;
    border-top-left-radius: 8px;
    padding-bottom: 10px;
}

#article-list {
    padding: 0;
    margin: 0;
}

#article-list li {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

#article-list .count {
    display: inline-block;
    width: 15px;
}

#article-list .x-seperator {
    display: inline-block;
    width: 15px;
}

#article-list .description {
    display: inline-block;
}

#article-list .line-seperator {
    padding-left: 5px;
    padding-right: 5px;
}

#article-list .articleid {
}

.einbau-faecher {
    margin-top: 34px;
}

.sideboard-header {
    text-align: right;
}

.gray-box-top {
    display: inline-block;
    width: 100px;
    height: 50px;
    background-color: #F5F5F5;
    border-bottom-right-radius: 8px;
    border-bottom-left-radius: 8px;
}

.text-right {
    text-align: right;
}

.price-container-text {
    font-size: 12pt;
    text-align: right;
}

.c-red {
    color: red;
}

#ui-sectioneinbaufaecher {
    /*display: none;*/
}

.save-modal {
    background: white;
    position: absolute;
    width: 40%;
    left: 30%;
    top: 20%;
    height: 50%;
    text-align: center;
    display: none;
    border: 1px solid red;
    box-shadow: 5px 5px 5px;
    border-radius: 10px;
}

.save-modal label {
    display: inline-block;
    width: 100px;
}

.save-modal input, .save-modal select {
    width: 200px;
}

.save-modal select:invalid, .save-modal input:invalid {
    border: 2px dashed red;
}

.article-list h4 {
    padding-left: 2px;
}

.scollbar::-webkit-scrollbar {
    width: 12px;
    left: -200px;
    height: 12px;
    padding-right: 10px;
    margin-right: 10px;
}

.scollbar::-webkit-scrollbar-button {
    width: 10px;
    height: 50px;
    padding-right: 10px;
    margin-right: 10px;
}

.scollbar::-webkit-scrollbar-thumb {
    background: #ff0909;
    border: 1px solid #ff1111;
    border-radius: 10px;
    padding-right: 10px;
    margin-right: 10px;
}

.scollbar::-webkit-scrollbar-thumb:hover {
    background: #fb0000;
}

.scollbar::-webkit-scrollbar-thumb:active {
    background: #f90000;
}

.scollbar::-webkit-scrollbar-track {
    background: #666666;
    border: 0px solid #ff0606;
    border-radius: 10px;
    padding-right: 10px;
    margin-right: 10px;
}

.scollbar::-webkit-scrollbar-track:hover {
    background: #666666;
}

.scollbar::-webkit-scrollbar-track:active {
    background: #333333;
}

.scollbar::-webkit-scrollbar-corner {
    background: transparent;
}

.article-list {
    height: 150px;
    overflow-y: auto;
}

.article-list th, td {
    text-align: left;
    padding-right: 10px;
}

.scrollbar-container {
    padding-right: 10px;
}

.settings-panel {
    height: 495px;
    overflow-y: auto;
}

footer.no-footer {
    display: none!important;
    height: 0;
    border: 0;
    padding: 0;
}

header {
    height: 64px;
}

footer {
    height: 64px;
    position: absolute;
    z-index: 9999;
}

header.no-header {
    height: 0;
    padding: 0;
    border: 0;
}

.presetselect-box {
    width: 80%;
    max-width: 550px;
    margin: 23% auto auto;
    max-height: 60%;
    overflow-y: auto;
}

.presetselect-box #select-container {
    display: flex;
}

.presetselect-box #select-container div {
    width: 49.5%;
    height: 100px;
    text-align: left;
}

.presetselect-box #select-container div:first-of-type {
    text-align: left;
    margin-right: 1%;
}

.presetselect-box #select-container div:nth-of-type(2) {
    text-align: right;
}

.presetselect-list-box {
    width: 40%;
    min-width: 400px;
    margin: 10% auto auto;
    max-height: 60%;
    overflow-y: auto;
}

.modal-box {
    background: white;
    border-radius: 10px;
    padding: 5px;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.5);
}

.modal-bg {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background-image: url("img/bg_start.jpg");
}


@media all and (display-mode: fullscreen) and (width: 1920px) {
    .modal-bg {
        background-image: url("img/bg_start_2.jpg");
        background-size: 100% 100%;
    }
}

#series-selector {
    z-index: 999;
    display: none;
}

#series-selector .series-box {
    position: absolute;
    left: 31%;
    right: 31%;
    top: 23%;
}

#series-selector .row {
    display: flex;
    flex-direction: row;
    margin-bottom: 5px;
    height: 150px;
}

#series-selector .row:nth-child(2) {
    margin-bottom: 0px;
}

#series-selector .col {
    text-align: left;
    width: 50%;
}

@media (max-width: 1269px) {
    #series-selector .series-box {
        left: 23%;
        right: 23%;
    }
}

@media (max-width: 660px) {
    #series-selector .series-box {
        left: 13%;
        right: 13%;
    }
}

#series-selector .row .col:nth-child(2) {
    margin-left: 5px;
    text-align: right;
}

#series-selector .row:nth-child(2) .col {
    display: flex;
}

#series-selector .row:nth-child(2) .col:nth-child(1) span {
    align-self: flex-end;
}

#series-selector .row:nth-child(2) .col:nth-child(2) {
    justify-content: flex-end;
    align-items: flex-end;
}

.modal-button {
    padding: 20px;
    background: red;
    border-radius: 10px;
    color: white;
    font-size: 18px;
}

@media all and (display-mode: fullscreen) and (width: 1920px) {
    .presetselect-box {
        box-shadow: none;
        margin-top: 404px;
    }

    .presetselect-box #select-container div {
        height: 125px
    }
}

.modal-button:hover.clickable {
    background: #BD0000;
}

.modal {
    display: none;
}

#preset-list {
    padding: 0;
    margin: 0;
    list-style-type: none;
}

#preset-list li {
    margin-bottom: 5px;
}

#preset-list li:last-of-type {
    margin-bottom: 0;
}

#preset-list img {
    margin-left: 20px;
    height: 150px;
    border-radius: 5px;
}

#preset-list li {
    display: flex;
}

#preset-list .right {
    flex-grow: 1;
    text-align: right;
}

#preset-back-button {
    margin-left: 30%;
}

.back-button {
    margin-top: 10px;
    margin-left: 30%;

    color: white;
    background: red;
    border: 0;
    padding: 5px;
    display: inline-block;
    width: 100px;
    border-radius: 5px;
    text-transform: uppercase;
    height: 30px;
}

.menu-item {
    margin: 0;
    margin-left: 3px;
    margin-right: 3px;
    font-family: "Trebuchet_Regular", sans-serif;
    height: 53px;
    color: #ffffff;
    background-color: #303030;
    text-align: center;
    font-size: 18px;
    font-weight: lighter;
    padding-top: 18px;
    padding-left: 30px;
    padding-right: 30px;
    line-height: 1;
    letter-spacing: 1px;
    border: 1px solid #ffffff;
    text-transform: uppercase;
    border-radius: 10px;
}

#logo {
    position: absolute;
    z-index: 9999;
    display: flex;
    flex-direction: row;
}

#logo a {
    color: red;
    margin-top: 25px;
}

#logo a {
    color: #5eb5e0;
}

.modal-button {
    text-transform: uppercase;
}

.price-container-price {
    display: flex;
    justify-content: space-between;
}

.price-container-button {
    text-align: right;
}

.aktion-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.price-container {
    padding: 20px;
    border-radius: 10px;
    border: 1px solid black;
    background-color: #F1F2F4;
}

.price-sum {
    /*margin-right: 20px;*/
    font-size: 18px;
}

.price-container-button {
    margin-top: 10px;
}

.price-container-text {
    font-size: 14px;
}

.aktion-bar {
    margin-top: 5px;
    display: flex;
    justify-content: space-between;
}

.aktion-bar button.aktion-btn {
    width: 49%;
    font-size: 10px;
    background-color: #303030;
    border-radius: 5px;
    color: white;
    text-transform: uppercase;
    border: 0;
    padding: 5px;
}

.save-modal input {
    padding: 5px;
    border: 1px solid red;
    border-radius: 8px;
    width: 190px;
}

.save-modal input[type="submit"] {
    margin-top: 10px;
    border-radius: 8px;
    border: 1px solid red;
    color: white;
    background: red;
}


#load-dialog {
    /*display: block!important;*/
}

#load-dialog .modal-box {
    margin: auto;
    margin-top: 20%;
    width: 40%;
}

#save-dialog .modal-box {
    margin: auto;
    margin-top: 20%;
    width: 40%;
}

.btn {
    padding: 5px;
    border-radius: 5px;
}

.btn-red {
    color: white;
    background: red;
    border: 0;
}

#load-dialog .modal-button:hover {

}

#load-dialog h4, #save-dialog h4 {
    text-align: center;
    color: red;
}

#load-dialog ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

#load-dialog ul li {
    margin-top: 5px;
}

#load-dialog ul li {
    display: flex;
    justify-content: space-between;
}

#save-dialog .modal-box {
    text-align: center;
}

#save-dialog input {
    display: block;
    margin: auto;
    margin-bottom: 10px;
}

.login-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    bottom: 0;
    background-image: url(img/bg_start.jpg);
    z-index: 999;
}

.login-box {
    width: 20%;
    max-width: 400px;
    margin: auto;
    margin-top: 20%;
    text-align: center;
    background: white;
    border-radius: 10px;
    padding: 10px;
}

.login-user {
    display: block;
    width: 80%;

    box-sizing: border-box;
    border: 1px solid red;
    border-radius: 8px;
    height: 30px;
    padding: 5px;
    margin: auto;
    margin-bottom: 10px;
    text-align: center;
}

.login-pw {
    display: block;
    width: 80%;

    box-sizing: border-box;
    border: 1px solid red;
    border-radius: 8px;
    height: 30px;
    padding: 5px;
    margin: auto;
    margin-bottom: 20px;
    text-align: center;
}

.login-submit {
    color: white;
    background: red;
    border: 0;
    padding: 5px;
    display: inline-block;
    width: 45%;
    border-radius: 5px;
    text-transform: uppercase;
    height: 30px;
}

.login-headline {
    font-weight: bold;
    color: red;
    font-size: 16px;
    margin-bottom: 20px;
}

#loginMessage:not(:empty) {
    margin-bottom: 10px;
}