.chweb-checkout{background-color:#d3e3d1}
.chweb-checkout .col-8{position: relative}
.dark{background-color:#1e6050}
.card-header{border-bottom:0}
#product-tabs{background-color:transparent}
#reports-toggle-btn{background-color:#1e6050}

/* Kompakteres Layout für die Kasse */
.col-4 .card {
    height: 100vh !important;
    max-height: 100vh;
}

.col-4 .card-body {
    height: 100%;
    padding: 0.5rem !important}

    .logo{position:relative}

.logo::before{
    content: '';
    position: absolute;
    left: 50%;
    top: 50%; /* etwas unterhalb der Mitte, anpassbar */
    transform: translate(-50%, -50%);
    width: 65%;
    height: 80%;
    background: url("../img/logo.png") no-repeat center center;
    background-size: contain;
    opacity: 0.20;
    z-index: -1;
    filter: blur(5px)}

/* Kassen-Tabelle scrollbar machen */
.table-responsive {
    flex-grow: 1;
    overflow-y: auto;
    min-height: 200px}

/* Bedienelemente am unteren Rand fixieren */
.payment-controls {
    position: sticky;
    margin-bottom: -15px;
    background: white;
    border-top: 1px solid #dee2e6;
    padding: 0.5rem;
    z-index: 1000}

/* Zahlungsbuttons */
.payment-methods .btn-group{width:100%}
.payment-methods .btn-group .btn{font-size:0.8rem;padding:0.4rem 0.5rem}
.payment-methods .btn-group .btn i{font-size:1rem}

/* Gast-Bereich */
.guest-payment-container {
    display: flex;
    flex-direction: column;
    min-height: auto}

.guest-payment-container .form-floating{margin-bottom:0.5rem}

.guest-payment-container .form-floating input {
    font-size: 0.9rem;
    padding: 0.5rem;
    height: auto}

.guest-payment-container .form-floating label{font-size:0.8rem}

/* Buttons-Container kompakter */
.buttons-container {
    min-height: auto;
    margin-top: 0.5rem;
}

/* Gast-Sektion kompakt */
.guest-section {
    border-top: 1px solid #dee2e6;
    padding-top: 0.5rem;
}

.guest-section input{font-size:0.9rem}

/* Badge für offene Bestellungen */
#open-orders-count {
    font-size: 0.7rem;
    min-width: 1.2rem;
    height: 1.2rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center}

/* Kompakte Zahlungsbuttons */
.payment-methods .btn {
    font-size: 0.75rem;
    padding: 0.3rem 0.4rem;
    white-space: nowrap}

.payment-methods .btn i{font-size:0.8rem}

/* Responsive Anpassungen */
@media (max-width: 1200px) {
    .payment-methods .btn {
        font-size: 0.7rem;
        padding: 0.25rem 0.3rem}

    .payment-methods .btn i{margin-right:0 !important}
    .payment-methods .btn span{display:none}
}

.buttons-container {
    position: relative;
    min-height: 50px;
    margin-top: 10px}

/* Verhindert Konflikte mit dem Modal */
.modal-open .guest-payment-container{overflow:visible !important}
.modal-backdrop{z-index:1040 !important}
.modal{z-index:1045 !important}

/* Aktualisieren-Button bleibt immer sichtbar */
#update-order-btn {
    position: relative;
    z-index: 1052 !important}

/* Refresh-Button Styling - neben Reports-Button */
#refresh-products-btn {
    background-color: #1e6050;
    border-color: #6c757d;
    color: white;
    transition: all 0.3s ease;
    z-index: 1050;margin-right:5px}

#refresh-products-btn:hover,#reports-toggle-btn:hover {
    background-color: #1e604f50;
    border-color: #d3e3d165;
    color: white}

#refresh-products-btn i.fa-spin{animation:fa-spin 1s infinite linear}

.nav-tabs .nav-link{
    background-color:rgba(255, 255, 255, 0.8);
    border:1px solid rgba(0, 0, 0, 0.1);
    color:#278068;
    font-weight:500}

.nav-tabs .nav-link.active{
    background-color:#ffffff;
    border-color:#dee2e6 #dee2e6 #fff;
    color:#1e6050;
    font-weight: 600}

.table-hover tbody tr:hover{background-color:#f5f5f5}
.order-row{cursor:pointer}

.badge {
    display: inline-block;
    padding: 0.25em 0.6em;
    font-size: 75%;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 3px}

.product-card{background-color: #1e604ff7 !important;transition:all 0.2s ease;width:100%}
.product-card:hover{border: 1px solid rgb(211,227,209)}
.product-card h5{color:#d3e3d1}

.b-button-kasse {
    background: linear-gradient(90deg, #bfa14a 0%, #ffe082 100%);
    color: #1e6050 ;
    border: none;
    border-radius: 3px;
    font-weight: 600;
    padding: .6rem .9rem;
    margin-bottom: .5rem;
    box-shadow: 0 1px 4px 4px #bfa14a22;
    transition: background 0.15s, color 0.15s, box-shadow 0.15s}

.b-button-kasse:hover{border: 1px solid rgb(211,227,209)}

/* Klick-Effekt */
.b-button-kasse:active{
transform:scale(0.99);box-shadow:inset 0 0 5px rgb(211,227,209);color:#ffffff;border: 1px solid #d3e3d1}
.bg-transparent{background:radial-gradient(circle,rgba(211,227,209,0.5) 50%,rgba(30,96,80,0.7) 100%);position:relative;z-index:2}


.size-options{margin-bottom:-.5rem}

.single{
  margin-bottom: 0;
}

/* Kassen-Tabelle Container */
.cart-table-container {
    overflow-y: auto;
    padding: 1rem;
    max-height: calc(100vh - 200px);
}

/* Payment Controls fixieren */
.payment-controls {
    flex-shrink: 0; /* Verhindert Schrumpfen */
    border-top: 2px solid #e0e0e0 !important;
    background: white !important;
    z-index: 10;
}

/* Responsive Anpassungen für das Logo */
@media (max-width: 767px) {
    .col-12.col-md-8::before {
        width: 50%;
        height: 60%;
        opacity: 0.00;
    }

    /* Mobile Layout komplett neu strukturiert */
    .chweb-main-row {
        flex-direction: column;
        height: 100vh;
    }

    .col-12.col-md-8 {
        height: 40vh !important; /* Feste Höhe für Produktbereich */
        max-height: 40vh;
        overflow: hidden;
    }

    .col-12.col-md-4 {
        height: 60vh !important; /* Feste Höhe für Kassenbereich */
        display: flex;
        flex-direction: column;
    }

    /* Kassen-Card als Flex-Container */
    .col-12.col-md-4 .card {
        height: 100% !important;
        display: flex;
        flex-direction: column;
    }

    .col-12.col-md-4 .card-body {
        height: 100% !important;
        display: flex;
        flex-direction: column;
        padding: 0 !important;
    }

    /* Mobile Anpassungen für Kassen-Tabelle */
    .cart-table-container {
        flex: 1 1 auto; /* Nimmt verfügbaren Platz ein */
        overflow-y: auto;
        padding: 0.5rem;
        max-height: none; /* Keine feste max-height */
        min-height: 0; /* Wichtig für Flexbox */
    }

    /* Payment Controls auf Mobile */
    .payment-controls {
        flex: 0 0 auto; /* Feste Größe, kein Wachsen/Schrumpfen */
        padding: 0.5rem !important;
        border-top: 2px solid #d3e3d1 !important;
        box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
        background: white !important;
    }

    /* Tabelle auf Mobile optimieren */
    #cart-table {
        margin-bottom: 0 !important;
    }

    /* Scrollbereich sicherstellen */
    .table-responsive {
        -webkit-overflow-scrolling: touch;
    }
}

/* Berichte */
.chweb-reports-page {
    background-color: #f8f9fa;
    min-height: 100vh}

.chweb-reports-page .container-fluid {
    max-width: 1400px;padding-left: 15px;
        padding-right: 15px }

.chweb-reports-page h1 {
    color: #495057;
    font-weight: 600}

.chweb-reports-page .card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: box-shadow 0.15s ease-in-out}

.chweb-reports-page .card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15)}

.reports-dashboard .card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border: 1px solid rgba(0, 0, 0, 0.125)}

.reports-dashboard .card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125)}