@font-face {
    font-family: 'Poppins';
    src:url('./webfont/poppins/Poppins.ttf.woff') format('woff'),
    url('./webfont/poppins/Poppins.ttf.svg#Poppins') format('svg'),
    url('./webfont/poppins/Poppins.ttf.eot'),
    url('./webfont/poppins/Poppins.ttf.eot?#iefix') format('embedded-opentype');
    font-weight: normal;
    font-style: normal;
}

body{
    padding: 85px 0 10px;
    font-family: 'Poppins', Arial;
}

body, table, footer a{
    color: #1b304d;
}

.font-orange{
    color: #e95b30 !important;
}

.bg-dark,
.table .thead-dark th,
#login_splash{
    background-color: #191919 !important;
}

.table .thead-dark th {
    border-color: #ffffff;
}

.table-bordered td, .table-bordered th {
    border: 1px solid #ffffff;
}

#menu img,
#login_splash img{
    position: absolute;
    left: 50%;
    top: 15px;
    margin-left: -57px;
}

.navbar{
    height: 85px;
}

#navbarToggleExternalContent a{
    color: #fff;
    font-size: 1rem;
}

.bg-success{
    background-color: #28a745 !important;
}

#manage_allergens_table .bg-success,
tr.kp-allergen-match td{
    background-color: #c7262c !important;
}

tr.kp-allergen-match td{
    color: #fff;
    position: relative;
}

tr.kp-allergen-match td.data{
    padding-left: 30px;
}

tr.kp-allergen-match td.data i{
    position: absolute;
    left: 0;
    top: 15px;
}

tr.kp-allergen-match td.data span{
    font-size: 0.7em;
    font-weight: normal;
    font-style: italic;
    display: block;
}

tr.kp-allergen-match:hover{
    background-color: #981318 !important;
}

#stage{
    margin-bottom: 20px;
}

#stage img{
    width: 100%;
}

h1, h2{
    text-align: center;
}

h1{
    font-size: 26px;
}

#order_page h2{
    position: relative;
    padding-right: 40px;
    font-size: 28px;
    margin-bottom: 15px;
}

#order_page h2.with-prev-link{
    padding-left: 40px;
}

#order_page h2 a{
    position: absolute;
    right: 0;
    top: 0;
    width: 35px;
    background-color: #e95b30;
    border-radius: 50%;
    height: 35px;
    line-height: 35px;
}

#order_page h2 a{
    color: #fff !important;
}

#order_page h2 a.prev-link{
    position: absolute;
    right: auto;
    left: 0;
}

#order_page h2 a i{
    font-size: 0.85em;
}

#order_table{
    border-collapse: inherit;
}

#order_table,
#order_table td,
#order_table th{
    border: 0px solid #ffffff !important;
}

#order_table th{
    font-style: normal;
    position: relative;
}

#order_table th em{
    font-size: 20px;
    font-weight: normal;
    font-style: normal;
}

#order_table th i{
    position: absolute;
    right: 15px;
    top: 15px;
    color: #fff;
    font-size: 1.5em;
}

#order_table td{
    background-color: #dadada;
    padding-bottom: 5px !important;
    position: relative;
}

#order_table:not(.qtyorder) td.oa{
    cursor: pointer;
}

#order_table td div.td-inner{
    position: relative;
    padding-bottom: 35px;
    padding-right: 35px;
    display: block;
    min-height: 75px;
}

#order_table td div.td-inner i{
    position: absolute;
    top: 5px;
    right: 5px;
    color: #fff;
}

#order_table td div.td-inner i.allergens-hint-icon{
    color: #c7262c;
}

#order_table td div.ol{
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background-color: rgba(255,255,255,0.7);
    z-index: 10;
}

#order_table td div.td-inner > select{
    display: none;
}

#order_table:not(.matrix) td div.qtyorder{
    position: absolute;
    right: 10px;
    top: 10px;
    width: 20px;
    padding: 20px 0;
}

#order_table td div.qtyorder span{
    position: absolute;
    top: 0;
    left: 0;
    cursor: pointer;
}

#order_table td div.qtyorder span.minus-btn{
    top: auto;
    bottom: 0;
}

#order_table td div.qtyorder input{
    padding: 0;
    text-align: center;
}

#order_table td div.qtyorder input::-webkit-outer-spin-button,
#order_table td div.qtyorder input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

#order_table td div.qtyorder input[type=number] {
    -moz-appearance: textfield;
}

#order_table td.bg-success{
    color: #fff;
}

/* https://tools.andrerinas.de/css_triangle_generator */
.plus{
    width: 0px;
    height: 0px;
    -webkit-transform:rotate(360deg);
    border-style: solid;
    border-width: 0 10px 17.3px 10px;
    border-color: transparent transparent #191919 transparent;
    border-radius: 4px;
}

.minus{
    width: 0px;
    height: 0px;
    -webkit-transform:rotate(360deg);
    border-style: solid;
    border-width: 17.3px 10px 0 10px;
    border-color: #191919 transparent transparent transparent;
    border-radius: 4px;
}

#order_page{
    padding: 0 10px;
}

#order_page .btn-primary {
    background-color: #e95b30;
    border-color: #e95b30;
}

#order_page .allergens{
    font-style: italic;
    font-size: 0.9em;
}

#order_page .allergens a{
    font-weight: bold;
}

#order_page .menu_price{
    position: absolute;
    bottom: 0;
    font-size: 0.8em;
}

/* order matrix */

#order_page.matrix .kp-subscriber-name {
    height: 150px;
    white-space: normal;
    padding: 0 !important;
    width: 100px !important;
}

#order_page.matrix .kp-meal-user{
    width: 100px !important;
}

#order_page.matrix .kp-subscriber-name > div {
    transform:
            translate(13px, 0px)
            rotate(-70deg);
    width: 30px;
}

#order_page.matrix .kp-subscriber-name > div > span {
    padding: 5px 10px;
}

#order_page.matrix .kp-day-name{
    background-color: #191919 !important;
    color: #fff;
}

#order_page.matrix .kp-day-name.sum,
#order_page.matrix .kp-day-sum{
    width: 70px;
    text-align: center;
}

#order_page.matrix .kp-subscriber-name.first,
#order_page.matrix .kp-day-name.colspan{
    background-color: transparent !important;
}

#order_page.matrix #order_table{
    width: auto;
}

#order_page.matrix #order_table .first-col{
    width: 350px;
}

#order_page.matrix #order_table td {
    padding: 2px 10px !important;
}

#order_page.matrix #order_table td div.td-inner {
    padding: 0;
}

#order_page.matrix #order_table td div.td-inner i,
#order_page.matrix #order_table td i.allergens-hint-icon{
    top: 50%;
    right: 50%;
    font-size: 50px;
    margin: -25px -25px 0 0;
}

#order_page.matrix #order_table td i.allergens-hint-icon{
    color: #c7262c !important;
}

#order_page.matrix #order_table td div.qtyorder{
    position: relative;
    min-height: 60px;
}

#order_page.matrix #order_table td div.qtyorder i {
    position: absolute;
    left: -10px;
    bottom: -2px;
    font-size: 30px;
    height: 30px;
    width: 50px;
    text-align: center;
    cursor: pointer;
    display: none;
    border-top: 1px solid #fff;
    border-right: 1px solid #fff;
    line-height: 34px;
}

#order_page.matrix #order_table td div.qtyorder i.plus-btn{
    left: auto;
    right: -10px;
    border-right: none;
}

#order_page.matrix #order_table td:hover div.qtyorder i{
    display: block;
}

#order_table.matrix td div.qtyorder input[type="number"]{
    border: none;
    background-color: transparent;
    padding: 0;
    text-align: center;
    font-size: 30px;
    line-height: 30px;
    height: 30px;
    outline: none;
    margin-top: 10px;
}

#order_table.matrix td.is-selected div.qtyorder input[type="number"]{
    color: #FFF;
}

#order_table.matrix td:not(.oa) div.qtyorder input[type="number"]{
    position: absolute;
    top: 5px;
}

#order_page.matrix #order_table tr:hover td{
    background-color: #8c8c8c !important;
    color: #FFF !important;
}

#order_page.matrix #order_table tr:hover td.bg-success{
    background-color: #149932 !important;
}

/* scrolling matrix */

#order_page.matrix table .first-col{
    position:sticky;
    left:0;
}


/* login */

body.login-page{
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: url('img/login_bg.jpg') no-repeat center center fixed;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}

#login_splash{
    width: 550px;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-left: -275px;
    margin-top: -200px;
    padding: 120px 30px 30px;
}

#login_splash a, h1, h5, p{
    color: #fff;
}

#login_splash.no-image{
    padding: 30px;
}

#login_splash img{
    top: 30px;
}

#login_splash form label{
    color: #ffffff;
}

#login_splash .btn-primary:not(.d-inline-block){
    background-color: #e95b30;
    border-color: #e95b30;
    width: 100%;
    margin-top: 30px;
}

#loading {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background-color: rgba(255,255,255,0.9);
    z-index: 100000;
}

#loading > .loading-dialog{
    position: absolute;
    background-color: black;
    padding: 20px;
    width: 90px;
    height: 90px;
    text-align: center;
    vertical-align: middle;
    font-size: 40px;
    border-radius: 20px;
    left: 50%;
    top: 50%;
    margin: -65px 0 0 -65px;
    color: white;
}

/* register page */

#login_page.register-page .form-group.halfbox{
    width: calc(50% - 10px);
    float: right;
}

#login_page.register-page .form-group.halfbox:nth-child(even){
    float: left;
}

#login_page.register-page .form-group.halfbox.with-label{
    float: inline-start !important;
}

#login_page.register-page .form-group.halfbox.with-label:nth-child(even){
    margin-left: 20px;
}

.register-page.step-2 #login_splash {
    top: 40px;
    margin-bottom: 40px;
    margin-top: 0;
}

.accept_box > div{
    position: relative;
    padding-left: 20px;
    color: #fff;
}

.accept_box > div > input{
    position: absolute;
    left: 0;
    top: 4px;
}

/* colors */

.table-responsive th.white,
.table-responsive td.white{
    color: white !important;
}

/* misc */

.clear{
    clear: both;
    height: 0;
    font-size: 0;
    line-height: 0;
}

.hidden{
    display: none;
}

.table-responsive{
    overflow: visible;
}

.cursor-pointer{
    cursor: pointer;
}

.timerbox{
    font-size: 70%;
    font-style: italic;
    text-align: center;
    height: 50%;
    font-weight: lighter;
}

#soapresult_success{
    background-color: #149932 !important;
    text-align: center;
    color: white;
}

@media (max-width: 720px) {
    footer > div{
        display: block !important;
        text-align: center !important;
        width: 100% !important;
        float: none !important;
    }
}