#woo-pos-enterprise{background:#0a0a0a;color:#fff;padding:20px;border-radius:12px;font-family:Arial,sans-serif;box-sizing:border-box}#woo-pos-enterprise *{box-sizing:border-box}#woo-pos-enterprise h1,#woo-pos-enterprise h2{color:#ffcc00;margin:10px 0}#woo-pos-enterprise input,#woo-pos-enterprise select{width:100%;padding:12px;margin:6px 0 12px;background:#fff;color:#000;border:1px solid #ddd;border-radius:8px}#woo-pos-enterprise button{background:#ffcc00;color:#000;border:0;border-radius:8px;padding:11px 14px;margin:5px;cursor:pointer;font-weight:700}#woo-pos-products{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}#woo-pos-products button{background:#222;color:#fff;border:1px solid #ffcc00}.woo-pos-panel{border:1px solid #333;background:#111;padding:14px;border-radius:12px;margin:12px 0}.woo-pos-grid2{display:grid;grid-template-columns:1fr 1fr;gap:12px}#woo-pos-cart{list-style:none;margin:0;padding:0}#woo-pos-cart li{display:flex;justify-content:space-between;border-bottom:1px solid #333;padding:8px 0}#woo-pos-total{font-size:36px;color:#ffcc00;text-align:right;font-weight:800}.woo-pos-actions button{font-size:18px}.woo-pos-modal{position:fixed;inset:0;background:rgba(0,0,0,.8);display:flex;align-items:center;justify-content:center;z-index:99999}.woo-pos-hidden{display:none!important}.woo-pos-modal-box{background:#fff;color:#000;width:min(1100px,96vw);padding:20px;border-radius:14px;text-align:left}
.woo-pos-modal-columns{display:grid;grid-template-columns:1fr 1fr;gap:20px;align-items:start}
@media(max-width:900px){.woo-pos-modal-columns{grid-template-columns:1fr}}.woo-pos-modal-box button{display:block;width:100%;margin:8px 0}#woo-pos-qr img{max-width:180px;height:auto}#woo-pos-customer-display{background:#000;color:#fff;min-height:100vh;padding:24px;font-family:Arial,sans-serif}.woo-pos-customer-row{display:flex;justify-content:space-between;font-size:28px;border-bottom:1px solid #333;padding:14px 0}#woo-pos-customer-total{font-size:64px;color:#ffcc00;text-align:right;margin-top:30px;font-weight:800}@media(max-width:700px){.woo-pos-grid2{grid-template-columns:1fr}.woo-pos-customer-row{font-size:20px}#woo-pos-customer-total{font-size:44px}}


/* Kundenanzeige: Trinkgeld, Versand und Bon-QR sichtbar machen */
#woo-pos-customer-display {
    min-height: 100vh;
    padding: 24px;
    background: #000;
    color: #fff;
    box-sizing: border-box;
}
#woo-pos-customer-display h1 {
    margin: 0 0 18px;
    font-size: 42px;
    color: #ffcc00;
}
#woo-pos-customer-cart {
    margin-bottom: 18px;
}
#woo-pos-customer-display .woo-pos-customer-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,.18);
    font-size: 26px;
}
#woo-pos-customer-display .woo-pos-customer-summary {
    margin-top: 16px;
    padding-top: 8px;
}
#woo-pos-customer-total {
    margin-top: 24px;
    font-size: 64px;
    line-height: 1;
    font-weight: 800;
    text-align: right;
    color: #ffcc00;
}
#woo-pos-customer-receipt {
    margin: 28px auto 0;
    max-width: 360px;
    text-align: center;
    background: #111;
    border: 2px solid #ffcc00;
    border-radius: 18px;
    padding: 18px;
}
#woo-pos-customer-receipt h2 {
    margin: 0 0 8px;
    color: #ffcc00;
}
#woo-pos-customer-qr img {
    width: 220px;
    height: 220px;
    background: #fff;
    padding: 8px;
    border-radius: 8px;
}
#woo-pos-customer-receipt-link {
    display: inline-block;
    margin-top: 12px;
    color: #ffcc00;
    font-size: 20px;
    font-weight: 700;
}
#woo-pos-customer-display .woo-pos-hidden {
    display: none !important;
}

#woo-pos-enterprise .woo-pos-remove-one{width:auto;min-width:34px;padding:4px 10px;margin-left:8px;background:#333;color:#fff;border:1px solid #777;}

#woo-pos-customer-receipt:not(.woo-pos-hidden){display:block!important;visibility:visible!important;opacity:1!important;}
#woo-pos-customer-qr img{width:220px;height:220px;max-width:80vw;background:#fff;padding:8px;border-radius:8px;}
#woo-pos-customer-receipt-link{display:inline-block;margin-top:10px;padding:12px 18px;background:#ffcc00;color:#000!important;border-radius:8px;font-weight:700;text-decoration:none;}
.woo-pos-customer-receipt-url{font-size:12px;word-break:break-all;color:#fff;max-width:520px;margin:8px auto;}


#woo-pos-customer-bank {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,.25);
}
#woo-pos-customer-bank h2 {
    color: #ffcc00;
    margin: 0 0 8px;
}
#woo-pos-customer-bank-qr img,
#woo-pos-enterprise .woo-pos-bank-info img {
    width: 180px;
    height: 180px;
    max-width: 80vw;
    background: #fff;
    padding: 8px;
    border-radius: 8px;
}
#woo-pos-customer-bank-details {
    font-size: 18px;
    line-height: 1.45;
    color: #fff;
    word-break: break-word;
}
#woo-pos-enterprise .woo-pos-bank-info {
    margin-top: 12px;
    border-top: 1px solid #ddd;
    padding-top: 12px;
}


/* v6.2: Verkäufer-Bonfenster zuverlässig wegklickbar */
#woo-pos-enterprise .woo-pos-modal{z-index:2147483000;}
#woo-pos-enterprise #woo-pos-new-sale{background:#12c95b;color:#000;}
#woo-pos-enterprise #woo-pos-close-receipt{background:#eeeeee;color:#000;border:1px solid #cccccc;}


/* v6.3: Bon und Überweisung nebeneinander + Modal immer schließbar */
#woo-pos-enterprise .woo-pos-modal{
    align-items: flex-start;
    justify-content: center;
    overflow-y: auto;
    padding: 24px 10px;
}
#woo-pos-enterprise .woo-pos-modal-box{
    width: min(920px, 96vw);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    text-align: center;
    position: relative;
}
#woo-pos-enterprise #woo-pos-qr{
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 14px;
    align-items: stretch;
    margin: 12px 0 16px;
}
#woo-pos-enterprise .woo-pos-receipt-card{
    border: 1px solid #dddddd;
    border-radius: 12px;
    padding: 14px;
    background: #f8f8f8;
    color: #000000;
    min-height: 260px;
}
#woo-pos-enterprise .woo-pos-receipt-card h3{
    margin: 0 0 10px;
    color: #000000;
}
#woo-pos-enterprise .woo-pos-receipt-card img{
    max-width: 180px;
    height: auto;
}
#woo-pos-enterprise .woo-pos-modal-box > button{
    display: inline-block;
    width: calc(50% - 10px);
    min-width: 220px;
    vertical-align: top;
}
#woo-pos-enterprise #woo-pos-new-sale,
#woo-pos-enterprise #woo-pos-close-receipt{
    position: sticky;
    bottom: 0;
    z-index: 3;
    box-shadow: 0 -2px 10px rgba(0,0,0,.12);
}
@media(max-width:720px){
    #woo-pos-enterprise #woo-pos-qr{grid-template-columns:1fr;}
    #woo-pos-enterprise .woo-pos-modal-box > button{width:100%;}
}


/* v6.5: Kundendisplay Bon + Überweisung wirklich nebeneinander */
#woo-pos-customer-display #woo-pos-customer-receipt:not(.woo-pos-hidden){
    display:block!important;
    max-width:min(980px,96vw)!important;
    width:min(980px,96vw)!important;
    margin:28px auto 0!important;
    padding:18px!important;
    text-align:center!important;
}
#woo-pos-customer-display .woo-pos-customer-receipt-grid{
    display:grid!important;
    grid-template-columns:minmax(260px,1fr) minmax(260px,1fr)!important;
    gap:20px!important;
    align-items:stretch!important;
    width:100%!important;
}
#woo-pos-customer-display .woo-pos-customer-card{
    display:block!important;
    min-width:0!important;
    background:#181818!important;
    border:1px solid rgba(255,204,0,.55)!important;
    border-radius:14px!important;
    padding:16px!important;
}
#woo-pos-customer-display #woo-pos-customer-bank{
    margin-top:0!important;
    padding-top:16px!important;
    border-top:1px solid rgba(255,204,0,.55)!important;
}
#woo-pos-customer-display #woo-pos-customer-bank:not(.woo-pos-hidden){
    display:block!important;
}
#woo-pos-customer-display #woo-pos-customer-qr img,
#woo-pos-customer-display #woo-pos-customer-bank-qr img{
    width:220px!important;
    height:220px!important;
    max-width:80%!important;
}
@media(max-width:760px){
    #woo-pos-customer-display .woo-pos-customer-receipt-grid{
        grid-template-columns:1fr!important;
    }
}

/* v6.5: Verkäufer-Modal zusätzlich hart auf zwei Spalten */
#woo-pos-enterprise #woo-pos-qr{
    display:grid!important;
    grid-template-columns:minmax(260px,1fr) minmax(260px,1fr)!important;
    gap:20px!important;
    width:100%!important;
}
#woo-pos-enterprise .woo-pos-modal-box{
    width:min(1100px,96vw)!important;
    max-width:1100px!important;
}
#woo-pos-enterprise .woo-pos-receipt-card{
    width:auto!important;
    min-width:0!important;
}
@media(max-width:760px){
    #woo-pos-enterprise #woo-pos-qr{grid-template-columns:1fr!important;}
}


/* v6.6: Verkäufer Bon/Überweisung endgültig nebeneinander, unabhängig vom Theme */
#woo-pos-enterprise #woo-pos-receipt-modal .woo-pos-modal-box{
    width:min(1120px,96vw)!important;
    max-width:1120px!important;
    min-width:min(900px,96vw)!important;
}
#woo-pos-enterprise #woo-pos-qr.woo-pos-seller-two-col-hard,
#woo-pos-enterprise #woo-pos-receipt-modal #woo-pos-qr{
    display:flex!important;
    flex-direction:row!important;
    flex-wrap:nowrap!important;
    gap:20px!important;
    width:100%!important;
    max-width:100%!important;
    align-items:stretch!important;
    justify-content:center!important;
}
#woo-pos-enterprise #woo-pos-receipt-modal #woo-pos-qr > .woo-pos-receipt-card{
    flex:1 1 0!important;
    width:50%!important;
    max-width:none!important;
    min-width:0!important;
    display:block!important;
    float:none!important;
    clear:none!important;
}
@media(max-width:760px){
    #woo-pos-enterprise #woo-pos-receipt-modal .woo-pos-modal-box{min-width:0!important;}
    #woo-pos-enterprise #woo-pos-qr.woo-pos-seller-two-col-hard,
    #woo-pos-enterprise #woo-pos-receipt-modal #woo-pos-qr{
        flex-direction:column!important;
        flex-wrap:nowrap!important;
    }
    #woo-pos-enterprise #woo-pos-receipt-modal #woo-pos-qr > .woo-pos-receipt-card{
        width:100%!important;
    }
}


/* v6.7: Verkäufer-Modal ohne Mobile-Stacking erzwingen */
#woo-pos-enterprise #woo-pos-receipt-modal .woo-pos-modal-box{
    width:min(1180px,98vw)!important;
    max-width:1180px!important;
    min-width:0!important;
    overflow-x:auto!important;
}
#woo-pos-enterprise #woo-pos-receipt-modal #woo-pos-qr,
#woo-pos-enterprise #woo-pos-receipt-modal #woo-pos-qr.woo-pos-seller-two-col-hard{
    display:flex!important;
    flex-direction:row!important;
    flex-wrap:nowrap!important;
    gap:16px!important;
    width:100%!important;
    max-width:100%!important;
    align-items:stretch!important;
    justify-content:center!important;
}
#woo-pos-enterprise #woo-pos-receipt-modal #woo-pos-qr > div,
#woo-pos-enterprise #woo-pos-receipt-modal #woo-pos-qr > .woo-pos-receipt-card{
    flex:1 1 0!important;
    width:50%!important;
    min-width:0!important;
    max-width:none!important;
    display:block!important;
    float:none!important;
    clear:none!important;
    box-sizing:border-box!important;
}


/* v6.8: Verkäufer-Modal echte zwei Spalten über feste HTML-Container */
#woo-pos-enterprise #woo-pos-receipt-modal .woo-pos-seller-modal-box{
    width:min(1180px,98vw)!important;
    max-width:1180px!important;
    min-width:0!important;
    text-align:left!important;
    overflow-x:auto!important;
}
#woo-pos-enterprise #woo-pos-seller-modal-grid{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
    gap:18px!important;
    width:100%!important;
    align-items:stretch!important;
}
#woo-pos-enterprise #woo-pos-seller-modal-grid .woo-pos-seller-card{
    min-width:0!important;
    width:auto!important;
    display:block!important;
    float:none!important;
    clear:none!important;
    box-sizing:border-box!important;
    border:1px solid #ddd!important;
    border-radius:12px!important;
    padding:16px!important;
    background:#f8f8f8!important;
    color:#000!important;
    text-align:center!important;
}
#woo-pos-enterprise #woo-pos-seller-modal-grid .woo-pos-seller-card h3{
    color:#000!important;
    margin:0 0 10px!important;
}
#woo-pos-enterprise .woo-pos-seller-modal-actions{
    display:grid!important;
    grid-template-columns:repeat(5,minmax(120px,1fr))!important;
    gap:8px!important;
    margin-top:14px!important;
}
#woo-pos-enterprise .woo-pos-seller-modal-actions button{
    width:100%!important;
    margin:0!important;
}
@media(max-width:720px){
    #woo-pos-enterprise #woo-pos-seller-modal-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;}
    #woo-pos-enterprise .woo-pos-seller-modal-actions{grid-template-columns:1fr!important;}
}


/* v6.9 ABSOLUTE HARDFIX: immer nebeneinander, mit horizontalem Scrollen auf kleinen Displays */
#woo-pos-enterprise .woo-pos-modal{overflow:auto!important;align-items:flex-start!important;justify-content:flex-start!important;padding:18px!important;}
#woo-pos-enterprise #woo-pos-receipt-modal .woo-pos-seller-modal-box{width:1180px!important;min-width:1180px!important;max-width:none!important;margin:0 auto!important;}
#woo-pos-enterprise #woo-pos-seller-modal-grid{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;gap:18px!important;width:100%!important;}
#woo-pos-enterprise #woo-pos-seller-modal-grid > .woo-pos-seller-card{display:block!important;flex:0 0 calc(50% - 9px)!important;width:calc(50% - 9px)!important;max-width:calc(50% - 9px)!important;float:none!important;clear:none!important;}
#woo-pos-customer-display{overflow-x:auto!important;}
#woo-pos-customer-display #woo-pos-customer-receipt:not(.woo-pos-hidden){display:block!important;width:980px!important;min-width:980px!important;max-width:none!important;}
#woo-pos-customer-display .woo-pos-customer-receipt-grid{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;gap:20px!important;width:100%!important;}
#woo-pos-customer-display .woo-pos-customer-receipt-grid > .woo-pos-customer-card{display:block!important;flex:0 0 calc(50% - 10px)!important;width:calc(50% - 10px)!important;max-width:calc(50% - 10px)!important;float:none!important;clear:none!important;}


/* v8.0 additions */
#woo-pos-enterprise .woo-pos-cash-panel strong{color:#ffcc00;}
#woo-pos-enterprise #woo-pos-cash-difference{margin-top:8px;font-weight:700;}
#woo-pos-enterprise #woo-pos-cancel-order{background:#d63638!important;color:#fff!important;}
#woo-pos-enterprise #woo-pos-open-cancel-receipt{background:#f0f0f0!important;color:#000!important;}


/* v10.4 Audit/Inventur */
#woo-pos-enterprise .woo-pos-inventory-panel{border:2px solid #ffcc00;}
#woo-pos-enterprise #woo-pos-inventory-list{display:grid;gap:8px;max-height:360px;overflow:auto;}
#woo-pos-enterprise .woo-pos-inventory-row{display:grid;grid-template-columns:1fr 100px 120px;gap:8px;align-items:center;background:rgba(255,255,255,.08);padding:10px;border-radius:10px;}
#woo-pos-enterprise .woo-pos-inventory-row input{margin:0!important;}
#woo-pos-enterprise #woo-pos-inventory-result{margin-top:8px;color:#ffcc00;font-weight:700;}
@media(max-width:700px){#woo-pos-enterprise .woo-pos-inventory-row{grid-template-columns:1fr;}}
