@font-face {
  font-family: 'IBM Plex Mono';
  src: url('fonts/ibm-plex-mono-v19-latin-regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'IBM Plex Mono';
  src: url('fonts/ibm-plex-mono-v19-latin-regular.woff2') format('woff2');
  font-weight: bold;
  font-style: normal;
}


body, html {
    height: 100%;
    overflow: hidden;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #D0E2D4;
    color: #4A4A4A;
}


body {
    touch-action: none; 
}



#app {
     overflow: hidden;
	 display: flex;
    flex-direction: column;
	height: calc(var(--vh, 1vh) * 100);
}

 

@supports (height: 100dvh) {
  #app {
    height: 100dvh;
  }
}

main {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 0.5em;
    box-sizing: border-box;
}

.container {
    height: 800px;
    max-height: 800px;
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.5em;
}

.footer {
    height: 50px; /* Beispielhafte reduzierte Höhe */
}


@media (min-width: 768px) {
    .container {
        flex-direction: row;
    }
}

/*.product-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr)); /* 5 Spalten 
    grid-template-rows: repeat(5, 1fr); /* 5 gleich hohe Zeilen 
    gap: 1em;
    width: 100%;
    height: 100%; /* Füllt den Container aus 
}*/

/*.tabcontent {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr)); /* 5 Spalten 
    grid-template-rows: repeat(5, 1fr); /* 5 gleich hohe Zeilen 
    grid-auto-rows: 1fr; /* gleiche Höhe 
    gap: 8px;
    width: 100%;
	height: 440px;
}


#contentContainer {
    display: grid;
    height: 600px; /* Oder was du brauchst 
	/*height: 100%;                           /* Volle Höhe 
    width: 100%;                            /* Volle Breite 
    gap: 0.5em;                             /* Optional: Abstand 
    box-sizing: border-box;
}



.product {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    padding: 4px;
    box-sizing: border-box;
    height: 100%;
}*/


#contentContainer {
    height: 440px;
    width: 100%;
    box-sizing: border-box;
    display: flex; /* Sicherstellen, dass das Grid innerhalb auf 100% wächst */
    flex-direction: column; /* Falls nötig */
	padding: 3px ; /* Kein innerer Abstand */
    margin: 3px ;  /* Kein äußerer Abstand */
}


.tabcontent {
    display: grid;
    grid-template-columns: repeat(var(--spalten), 1fr);
    grid-template-rows: repeat(var(--zeilen), 1fr);
    gap: 8px !important; /* oder 0, je nach Bedarf */
    width: 100%;
    height: 100%;
}



.product {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* verteile Name und Preis gleichmäßig */
    align-items: center;
    text-align: center;
    padding: 3px;
    box-sizing: border-box;
    height: 100%;  /* Füllt das Grid-Feld immer komplett */
    width: 100%;   /* Füllt das Grid-Feld immer komplett */
    overflow: hidden;
    word-break: break-word;
}

.product .name {
    white-space: normal;  
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    line-clamp: 3; /* optional */
	text-align: center;
    overflow-wrap: break-word;
    flex-grow: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    text-wrap: balance;
    margin: 0; /* Vermeide Margin-Fehler */
	margin-top: 4px;
	margin-left: 6px;
	margin-right: 6px;
	
    max-height: 2.6em;  /* Maximal 3 Zeilen */
	font-size: 1em;
    line-height: 1.2;
}


.product .price {
    flex: 0 0 auto;    
    font-weight: bold;
    margin-top: auto; /* Immer am unteren Rand */
    /*margin-bottom: 2px; /* Optionaler Abstand zum unteren Rand */
	
	font-size: 1.2em;
}



	
.sonstiges-active {
    background-color: yellow !important;
}
	
.sonstiges-active .price {
    color: red;
    background-color: white;
    font-weight: bold;
    padding: 0em 0.5em 0em 0.5em;
    border-radius: 4px;
	line-height: 1.1;
}


.product.hidden-button {
visibility: hidden; /* macht das Element unsichtbar */
pointer-events: none; /* deaktiviert Klicks */
background-color: transparent;
border: none;
}


#summary1 {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
    width: 600px;	
	/*background-color: rgba(255, 220, 250, 0.4);*/
}


#subsummary3 {
    display: flex;
    justify-content: space-between;
    flex: 1;
}

.filter-section {
    display: flex;
    align-items: flex-end;
}

#x-label {
    display: none;
    font-size: 5em;
    font-weight: bold;
    position: relative;    /* Relative Positionierung für Flex-Layout */
    top: 50%;              /* Auf halber Höhe des Containers */
    transform: translateY(-50%);  /* Vertikal zentrieren */
    margin-right: 0.5em;     /* Abstand zum Numpad */
}


#numpad-container {
    /*height: 280px;       /* Nimmt volle Höhe von Subsummary4 */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Vertikal zentrieren */
    align-items: center;
    width: 335px;  /* Oder deine Wunschbreite */
    min-width: 335px;
    max-width: 335px;
}




#numpad {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 3 gleich breite Spalten */
	grid-template-rows: repeat(4, 1fr); /* 3 gleich breite Spalten */
    gap: 5px;
    width: 100%;              /* <-- DAS ist entscheidend! */
    box-sizing: border-box;
	height: 100%;
}

.numpad-key {
    background-color: #4A4A4A;
    color: white;
    padding: 15px;
    text-align: center;
    font-size: 1.5em;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    user-select: none;
	box-sizing: border-box;
	    
	width: 80px;           /* z. B. feste Breite */
    height: 60px;          /* feste Höhe für alle Tasten */
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ccc;
    /*margin: 5px;*/
}

.numpad-backspace {
    font-size: 3em;  /* Größer für ⌫ */
	
}

.numpad-1 {
	background-color: #ffff00;
    font-size: 2.5em;  /* Größer für ⌫ */
	color:  #4A4A4A;
}

.numpad-2 {
	background-color: #FF0000;
    font-size: 4em; 
}

.numpad-3 {
	background-color: #250af0;
    font-size: 2.5em;  
}

.numpad-4 {
	background-color: #0b9334;
    font-size: 3em;  
}

#summary {
    /*height: 95vh;*/
	position: relative;    
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
    margin-left: 1em; /* Zusätzlicher Abstand zur linken Seite */	 
    /*background-color: rgba(0, 200, 255, 0.2); /* Bläulicher Hintergrund */
	height: 775px;*/
}

#cart {
    background-color: white;
    flex-grow: 1;
    overflow-y: auto; /* Ensure vertical scrollbar is enabled */
    overflow-x: hidden; /* Prevent horizontal scrolling */
    border: 1px solid #4A4A4A;
    padding: 1em;
    /*margin-bottom: 1em;*/
    margin-top: 40px;
    /*margin-top: 0.5em;*/ /* Hier den Abstand nach unten einstellen */
    box-sizing: border-box;
    font-size: 1.1em;
    text-align: right; /* Align text to the right */
    border-radius: 8px; /* Rounded corners */
    height: 600px;
    max-height: 600px;
}

.cart-item pre {
    font-family: 'IBM Plex Mono', monospace !important;
    font-size: 1em;
}


.cart-item {
    cursor: pointer;
    padding: 2px;
    margin-bottom: 2px;
    /*border: 1px solid #ccc;*/
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

    .cart-item:hover {
        background-color: #f0f0f0;
    }

    .cart-item.selected {
        background-color: #f0f0f0;
        border: 1px solid #4CAF50;
    }

.selected {
    background-color: #e0e0e0;
    border: 1px solid #ccc;
}

#total-price, #change, #lbl_Sonstiges {
    font-size: 1.2em;
    font-weight: bold;
    text-align: left; /* Links ausgerichtet */
}

#mwst-amount {
    font-size: 1.2em;
    font-weight: bold;
    text-align: right;
}

#total-price-amount {
    color: #FF0000; /* Ändert die Farbe des Betrags zu Rot */
    font-size: 1.2em; /* Vergrößert die Schriftgröße des Betrags */
    font-weight: bold;
    text-align: right; /* Rechts ausgerichtet */
}

#received-amount-label, #mwst-label {
    font-size: 1.2em;
    font-weight: bold;
    text-align: left; /* Links ausgerichtet */
}



#change-amount, #received-amount {
    font-size: 1.2em;
    font-weight: bold;
    text-align: right;
}


    #received-amount input {
        font-size: 1.2em;
        font-weight: bold;
        width: 30%; 
        padding: 0.2em; 
        text-align: right;
        box-sizing: border-box;
        border: none;
		border-radius: 8px; /* Runde Ecken für den Button */
    }
#sonstiges-amount {
    font-size: 1.2em;
    font-weight: bold;
    border-radius: 8px; 
    width: 240px;
    max-width: 240px;
    box-sizing: border-box;
}

    #sonstiges-amount input {
        font-size: 1.2em;
        font-weight: bold;
        padding: 0.1em;
        width: 100%;
        text-align: right;
        
    }


.betrag-eingabe {
    display: inline-block;
    min-width: 100px;
    width: 170px;            /* <- Feste Breite ergänzen */
    height: 1.3em;           /* <- Feste Höhe ergänzen */
    padding: 0.4em 0.6em;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: white;
    font-size: 1.2em;
    text-align: right;
    box-sizing: border-box;	
    justify-content: center;
}





    /* Stile für die Tabelle */
    table {
        width: 100%; /* Breite der Tabelle */
        border-collapse: collapse; /* Zusammenführen der Zellränder */
        /*border: 1px solid black;*/ /* Schwarzer Rahmen um die Tabelle */
        margin-top: 10px; /* Abstand nach oben für die Tabelle */
    }

table td {
    padding: 10px; /* Innenabstand der Zellen */
    vertical-align: middle; /* Vertikale Ausrichtung der Inhalte */
    /*border: 1px solid black;*/ /* Schwarzer Rahmen um die Zellen */
    line-height: 0.8; /* Zeilenhöhe für die Tabellenzellen */
	gap: 5px;
}

    /* Links ausgerichtete erste Spalte */
    table td:nth-child(1) {
        text-align: left;
        width: 15%; /* Breite der ersten Spalte */
    }

    /* Rechts ausgerichtete zweite Spalte */
    table td:nth-child(2) {
        text-align: right;
        width: 350px; /* Breite der zweiten Spalte */
    }

    /* Rechts ausgerichtete dritte Spalte */
    table td:nth-child(3) {
        text-align: right;
        width: 1px; /* Breite der dritten Spalte */
        display: none;
    }



    #action-buttons button {
        border: 1px solid #4A4A4A;
		color: black
    }




#action-buttons {
    /*padding: -2em;*/
    border: none;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.5em; /* Vergrößerte Schriftgröße für den Auswertungs-Button */
    /*width: 100%;*/
    border-radius: 8px; /* Runde Ecken für den Button */
    /*border: 1px solid #4A4A4A;*/
    display: flex;
    margin-top: 0.5em;
    margin-bottom: 0.5em; /* Hier den Abstand nach unten einstellen */
	gap: 8px; /* Abstand zwischen den Buttons */
}

button {
    padding: 0.5em;
    border: none;
    cursor: pointer;
    width: 100%;
    font-weight: bold;
    font-size: 1em; /* Schriftgröße für die Buttons */
    border-radius: 8px; /* Runde Ecken für den Button */
    border: 1px solid #4A4A4A;
}


#fullscreen-button {
    background-color: lightblue;
    border: none;
    padding: 5px 5px;
    margin-bottom: 5px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2em;
    width: 90%;
    /*width: 65%;*/
}


#help-button {
    background-color: palegreen;
    border: none;
    padding: 5px 5px;
    margin-bottom: 5px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2em;
    width: 30%;
}

#end-day-button {
    padding: 5px 5px;
    /*0.5em 1em;*/ /* Abstand des Buttons anpassen */
    font-size: 1.2em; /* Schriftgröße des Buttons */
    background-color: #4CAF50; /* Hintergrundfarbe des Buttons */
    color: white; /* Textfarbe des Buttons */
    border: none; /* Rand entfernen */
    border-radius: 8px; /* Runde Ecken */
    cursor: pointer; /* Zeiger ändern bei Hover */
    width: 90%;
}

/* Zusätzliches CSS für die Positionierung des Auswertungsbuttons */
/* Flexbox-Anordnung für die Filtersektion */
.filter-section {
    display: flex;
    align-items: flex-end;
}


    .filter-section input[type="date"] {
        margin-right: 10px; /* Abstand zwischen Datum-Eingabe und Button */
    }

    .filter-section button {
        padding: 5px 5px; /* Größe des Buttons anpassen */
        background-color: #4CAF50; /* Hintergrundfarbe des Buttons */
        color: white; /* Textfarbe des Buttons */
        border: none; /* Rand des Buttons entfernen */
        cursor: pointer; /* Zeiger ändern bei Hover */
    }

#subsummary4 {
    display: flex;
    justify-content: flex-end;  /* Rechts ausrichten */
    align-items: flex-start;    /* Oder center, je nach Optik */
    gap: 0.5em;
    flex: 0 0 auto;
	/*width: 100%;
    height: 200px;
    max-height: 280px;*/
}





#filter-amount input {
    font-size: 1.5em;
    padding: 0.5em;
    width: 70%;
    /*width: calc(100% - 2em);*/
}

#filter-amount input[type="date"] {
    font-size: 1.5em; /* Größere Schriftgröße für das Datum-Feld */
    padding: 0.5em; /* Innenabstand anpassen */
    width: calc(100% - 100px); /* Breite des Eingabefelds berechnen */
    border-radius: 8px; /* Runde Ecken */
}



#filterDatum {
    font-size: 1.2em; /* Größere Schriftgröße für das Datum-Feld */
    padding: 0.5em; /* Innenabstand anpassen */
    width: 84%;
    /*width: 190px;*/ /* Breite des Eingabefelds festlegen */
    border-radius: 8px; /* Runde Ecken */
    border: 1px solid #4A4A4A; /* Rand hinzufügen */
    flex: 1; /* Nimmt verfügbaren Platz ein */
}


/* Stil für das Modal-Dialog-Feld */
#modalContainerconfirm {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* semi-transparent black background */
    z-index: 9999; /* ensure it's above other content */
}

.modalconfirm {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.modal-buttonsconfirm {
    margin-top: 20px;
}

.modal-buttonsconfirm button {
    margin: 0 10px;
    padding: 5px 10px;
    cursor: pointer;
}


/* CSS für das Modal */
/* Stil für das Modal-Dialog-Feld */
.modal-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* semi-transparent black background */
    z-index: 9999; /* ensure it's above other content */
}

.modal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.modal-buttons {
    margin-top: 20px;
}

.modal button {
    margin: 0 10px;
    padding: 5px 10px;
    cursor: pointer;
}


/* Stil für das Modal-Dialog-Feld */
.inputModalContainer {
    display: none; /* Modal standardmäßig ausblenden */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* semi-transparent black background */
    z-index: 9999; /* ensure it's above other content */
}

.inputModal {
    position: fixed; /* Changed from absolute to fixed */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 300px; /* Adjust the width as needed */
    max-width: 80%; /* Limit width to 80% of viewport */
}

.inputModalLabel {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
}

.inputFieldContainer {
    margin-bottom: 20px; /* Add margin bottom to create space between input and buttons */
    position: relative; /* Position relative for absolute positioning of the eye icon */
}

.inputField {
    width: calc(100% - 32px); /* Adjusted width to account for padding and eye icon space */
    padding: 8px 32px 8px 8px; /* Adjusted padding for input field with eye icon */
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

    .inputField:focus {
        border-color: #007bff; /* Example focus style */
        outline: none; /* Remove default focus outline */
    }

.showPassword {
    position: absolute;
    top: 50%;
    right: 23px; /* Adjusted left position */
    transform: translateY(-50%);
    cursor: pointer;
}

    .showPassword.material-icons {
        font-size: 24px;
        line-height: 24px;
    }

.inputModalButtons {
    text-align: center;
}

    .inputModalButtons button {
        margin: 0 5px; /* Reduced margin */
        cursor: pointer;
        padding: 8px 12px; /* Adjusted padding for buttons */
        width: auto; /* Make width auto to fit content */
    }


/* Style für Tab-Links */
.tablinks {
    flex: 1 1 0;
    height: 55px;
    margin: 0;
    padding: 0;
    /*font-size: 1.5em;*/
    border: 1px solid #ccc;
    background-color: #f2f2f2;
    border-radius: 5px;
    box-sizing: border-box;

    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: normal; /* wichtig: verhindert Konflikte mit line-height-Hacks */
    cursor: pointer;
}




.tablinks.active {
    background-color: #ccc;
    border: 4px solid red !important; /* Roter Rand für aktiven Tab */
}


.tablinks:not(:last-child) {
    margin-right: 5px;
}


.tab {
    overflow: hidden;
    background-color: transparent;
}

    .tab button {
        float: left;
        display: block;
        border: none;
        outline: none;
        cursor: pointer;
        transition: 0.3s;
        font-size: 17px;
    }

        .tab button.active {
            background-color: #ccc;
        }


/* Tab-Inhalte */
/*.tabcontent {
    display: none;
    grid-template-columns: repeat(4, 1fr); /* 5 Spalten 
    grid-gap: 10px; /* Abstand zwischen den Produkten 
    display: grid; /* Verwende CSS Grid für das Layout 
    margin-top: 5px;
}*/


#menu-icon {
    font-size: 2em;
    cursor: pointer;
}


/* Grundlegende Stile für das Menü */
#menu-container {
    position: absolute;
    right: 0;
    top: 0;  /* oder wo du es haben willst */
    display: inline-block;
}


#menu-icon {
    font-size: 2em;
    cursor: pointer;
}

#menu {
    display: none;
    position: absolute;
    top: 0px;
    right: 30px; /* von der rechten Seite aus positionieren */
    background-color: white;
    border: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    width: 200px;
    z-index: 1000;
}

    #menu.show {
        display: block;
    }

    #menu ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    #menu li {
        border-bottom: 1px solid #ddd;
    }

    #menu a {
        display: block;
        padding: 10px;
        text-decoration: none;
        color: black;
    }

        #menu a:hover {
            background-color: #f0f0f0;
        }


#inputModalDatumContainer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
}

.inputModalButtons {
    margin-top: 10px;
}

#tabContainerWrapper {
    display: flex;
    align-items: center;
    width: 100%;
}

#tabSpacer {
    width: 90px;        /* Dein Platzhalter */
    flex-shrink: 0;     /* Nicht kleiner werden */
}


#subsummary1 {
    width: 100%;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;		
    height: 500px;
	/*background: rgba(0, 0, 0, 0.5);*/
}

#tabContainer {
    display: flex;
    flex: 1;
    gap: 5px;
    margin-bottom: 10px;
    height: 50px;
    /*flex-direction: row;*/
    align-items: stretch;
    justify-content: stretch;
    background-color: transparent;
    padding: 0;
    box-sizing: border-box;
}

#tabContainer button.tablinks {
    flex: 1 1 0;
    height: 50px;
    margin: 0;
    padding: 0;
    font-size: 1.5em !important; /* Schriftgröße eindeutig setzen */
    border: 1px solid #ccc;
    background-color: #f2f2f2;
    border-radius: 5px;
    box-sizing: border-box;

    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: normal;
    cursor: pointer;
	color: black
}


#tabContainer .tab {
    display: flex;
    width: 100%;
    gap: 6px;
    height: 100%;
}

#tabContainer .tab button {
    flex: 1;
    height: 100%;
    background-color: #ddd;
    border: none;
    text-align: center;
    font-size: 4em;
    cursor: pointer;
}

#tabContainer .tab button:hover {
    background-color: #ccc;
}

#tabContainer .tab button.active {
    background-color: #bbb;
}





