/* ---- Kassa Systeem Hoofdcontainer ---- */
.kassa-systeem {
    max-width: 800px; 
    margin: 2em auto; 
    padding: 15px;
    border: 5px solid #ccc; 
    border-radius: 20px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: #34495e; /* Donkere achtergrond voor de hele kassa */
}

/* ---- Logo's Bovenaan ---- */
.logos-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #4a6582;
}

.logos-container img {
    max-height: 200px;
    max-width: 45%;
    width: auto;
    height: auto;
}

/* ---- Kassa Header ---- */
.kassa-header { 
    text-align: center; 
    margin-bottom: 15px; 
    color: #FFFFFF;
}

/* ---- Totaal Display ---- */
.totaal-display { 
    background-color: #FFFFFF; 
    color: #000000; 
    border-radius: 8px; 
    margin-bottom: 25px; 
    padding: 15px 25px; 
    display: flex;
    flex-direction: column;
}

/* NIEUW: Styling voor de live productlijst */
.producten-lijst {
    list-style: none;
    margin: 0;
    padding: 0 0 10px 0;
    max-height: 140px; /* Hoogte van ongeveer 4 regels */
    overflow-y: auto; /* Maak de lijst scrollbaar als hij vol raakt */
    border-bottom: 1px solid #eee;
    margin-bottom: 10px;
}
.producten-lijst li {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 1.1em;
}
.producten-lijst li .product-naam {
    text-align: left;
}
.producten-lijst li .product-prijs {
    text-align: right;
    font-weight: 500;
}

/* Container voor de totalen onderaan */
.totalen-container {
    text-align: right;
}

#totaal-euro-display { 
    font-size: 2.5em; 
    font-weight: 700; 
    line-height: 1.2; 
}

#totaal-munten-display { 
    font-size: 2.5em; 
    color: #000000; 
    font-weight: 500; 
}

/* ---- Productknoppen ---- */
.knoppen-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); 
    gap: 12px; 
}

.product-knop { 
    background-color: #3498db; 
    color: white; 
    border: none; 
    padding: 25px 15px;
    font-size: 1em;
    font-weight: 600; 
    border-radius: 8px; 
    cursor: pointer; 
    transition: background-color 0.2s, transform 0.2s; 
    text-align: center; 
}

.product-knop:hover { 
    background-color: #2980b9; 
    transform: translateY(-2px); 
}

.product-knop .prijs-in-munten { 
    display: block; 
    font-size: 0.8em; 
    font-weight: 400; 
    opacity: 0.9; 
    margin-top: 4px; 
}

/* ---- Vaste knoppen-rij ---- */
.knoppen-vaste-rij {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #4a6582;
}

/* ---- Kleur-klassen voor Knoppen ---- */
.knop-groen { background-color: #27ae60; }
.knop-groen:hover { background-color: #2ecc71; }
.knop-rood { background-color: #c0392b; }
.knop-rood:hover { background-color: #e74c3c; }
.knop-oranje { background-color: #f39c12; }
.knop-oranje:hover { background-color: #e67e22; }
.knop-donkerblauw { background-color: #2980b9; }
.knop-donkerblauw:hover { background-color: #3498db; }
.knop-retour { background-color: #7f8c8d; }
.knop-retour:hover { background-color: #95a5a6; }

/* ---- Actieknoppen (Herstel / Volgende klant) ---- */
.kassa-actie-knoppen {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

.kassa-actie-knoppen .button-primair {
    flex-grow: 1;
    background-color: #e74c3c;
    color: white;
    padding: 18px;
    font-size: 1.2em;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
}
.kassa-actie-knoppen .button-primair:hover {
    background-color: #c0392b;
}

.kassa-actie-knoppen .button-secundair {
    flex-grow: 0;
    background-color: #7f8c8d;
    color: white;
    padding: 18px;
    font-size: 1.2em;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
}
.kassa-actie-knoppen .button-secundair:hover {
    background-color: #95a5a6;
}

/* ---- Copyright & Footer Logo ---- */
.copyright-notice {
    text-align: center;
    margin-top: 25px;
    font-size: 0.8em;
    color: #bdc3c7;
}

.footer-logo-container {
    text-align: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #4a6582;
}

.footer-logo-container img {
    max-height: 40px;
    width: auto;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-logo-container img:hover {
    opacity: 1;
}

/* ---- Kassa Overzicht Widget (Shortcode) ---- */
.kassa-overzicht-widget {
    border: 10px solid #333; 
    padding: 25px 30px; /* Meer binnenruimte */
    border-radius: 12px; /* Rondere hoeken */
    background-color: #7f8c8d; /* AANGEPAST: Zwarte achtergrond */
    color: #ffffff; /* AANGEPAST: Witte tekst */
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    max-width: 500px; /* Iets breder voor de grotere letters */
    margin: 2em auto;
}

.kassa-overzicht-widget h3 {
    margin-top: 0; 
    margin-bottom: 20px; 
    border-bottom: 1px solid #444; /* Donkergrijze lijn */
    padding-bottom: 15px; 
    color: #ffffff; 
    font-size: 1.8em; /* Grotere titel */
}

.kassa-overzicht-widget ul {
    list-style: none; 
    margin: 0; 
    padding: 0;
}

.kassa-overzicht-widget ul li {
    padding: 15px 0; /* Meer verticale ruimte */
    display: flex; 
    justify-content: space-between; 
    border-bottom: 1px solid #444; 
    font-size: 1.4em; /* AANGEPAST: Groter lettertype */
}

.kassa-overzicht-widget ul li:last-child {
    border-bottom: none;
}

.kassa-overzicht-widget ul li strong {
    color: #ffffff; /* Lichtgrijs voor de labels */
    font-weight: 500;
}

/* ---- Aangepast Wachtwoordformulier ---- */
.password-form-container {
    max-width: 500px;
    margin: 3em auto;
    padding: 30px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.password-form-container h3 {
    margin-top: 0;
    font-size: 1.5em;
}

.password-input-wrapper {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.password-input-wrapper label {
    font-weight: 500;
}

.password-input-wrapper input[type="password"] {
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

.password-input-wrapper input[type="submit"].button {
    padding: 8px 15px;
    background-color: #2c3e50;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.password-input-wrapper input[type="submit"].button:hover {
    background-color: #34495e;
}

/* ---- Styling voor Product Statistieken Tabel (Shortcode) ---- */
.kassa-statistieken-container {
    max-width: 800px;
    margin: 2em auto;
    font-family: system-ui, -apple-system, sans-serif;
    border: 1px solid #4a6582; 
    padding: 20px 25px;
    border-radius: 8px;
    background-color: #2c3e50; 
    color: #fff; 
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.kassa-statistieken-tabel {
    width: 100%;
    border-collapse: collapse;
    border: none; /* De container heeft al een rand */
}

.kassa-statistieken-tabel th,
.kassa-statistieken-tabel td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #4a6582; /* Donkere scheidingslijn */
}

.kassa-statistieken-tabel thead th {
    background-color: transparent; /* Geen aparte achtergrondkleur meer */
    font-weight: 600;
    color: #bdc3c7; /* Lichte kleur voor de labels */
    border-bottom-width: 2px; /* Dikkere lijn onder de header */
}

.kassa-statistieken-tabel tbody tr {
    transition: background-color 0.2s;
}

.kassa-statistieken-tabel tbody tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.03); /* Heel subtiel kleurverschil */
}

.kassa-statistieken-tabel tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.07); /* Iets lichter bij hover */
}
/* Styling voor de totaalrij in de statistiekentabel */
.kassa-statistieken-tabel tfoot th,
.kassa-statistieken-tabel tfoot td {
    font-weight: 700; /* Maak de tekst dikgedrukt */
    border-top: 2px solid #ccc; /* Dikkere lijn boven de totalen */
    background-color: #f0f0f0; /* Iets andere achtergrondkleur */
}

/* Voor de donkere versie van de tabel */
.kassa-statistieken-container .kassa-statistieken-tabel tfoot th,
.kassa-statistieken-container .kassa-statistieken-tabel tfoot td {
    border-top: 2px solid #5a7391;
    background-color: rgba(255, 255, 255, 0.07);
    color: #fff;
}
/* ---- Styling voor Laatste Transactie Widget ---- */
.laatste-transactie-widget {
    max-width: 400px;
    margin: 2em auto;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    overflow: hidden; /* Zorgt dat de randen netjes blijven */
}

.laatste-transactie-widget h3 {
    margin: 0;
    padding: 15px 20px;
    background-color: #f5f5f5;
    border-bottom: 1px solid #ddd;
    font-size: 1.2em;
}

.laatste-transactie-widget .transactie-inhoud {
    padding: 20px;
}

/* Hergebruik van de productlijst-stijl uit de kassa */
.laatste-transactie-widget .producten-lijst {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 200px;
    overflow-y: auto;
}
.laatste-transactie-widget .producten-lijst li {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 1em;
    border-bottom: 1px solid #eee;
}
.laatste-transactie-widget .producten-lijst li:last-child {
    border-bottom: none;
}
.laatste-transactie-widget .producten-lijst .product-naam {
    text-align: left;
}
.laatste-transactie-widget .producten-lijst .product-prijs {
    text-align: right;
    font-weight: 500;
}

.laatste-transactie-widget .totalen-container {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #333;
    text-align: right;
}
.laatste-transactie-widget .totaal-munten {
    font-size: 1.2em;
    font-weight: 500;
}
.laatste-transactie-widget .totaal-euro {
    font-size: 1.5em;
    font-weight: 700;
}
/* ---- Styling voor Info Knop & Pop-up ---- */
.kassa-header {
    position: relative; /* Nodig om de info-knop te positioneren */
}

#info-knop {
    position: absolute;
    top: 0;
    right: 0;
    background-color: #7f8c8d;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    line-height: 30px;
}
#info-knop:hover {
    background-color: #95a5a6;
}

.info-popup-overlay {
    display: none; /* Standaard verborgen */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.info-popup {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    text-align: center;
}

.info-popup h3 {
    margin-top: 0;
}

#info-popup-sluiten {
    margin-top: 15px;
    padding: 10px 20px;
    background-color: #2c3e50;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}