
.vnp-pos4,.vnp-pos4 *{box-sizing:border-box}.vnp-pos4{--ink:#0f172a;--muted:#64748b;--line:#dbe5f0;--blue:#2563eb;--blue-soft:#eff6ff;--green:#15803d;--red:#dc2626;--amber:#d97706;background:#f4f7fb;border:1px solid #d8e3ef;border-radius:24px;padding:20px;color:var(--ink);font-family:inherit}.vnp-pos4 button,.vnp-pos4 input{font-family:inherit}.vnp-pos4-head{display:flex;justify-content:space-between;gap:18px;align-items:center;margin-bottom:18px}.vnp-pos4-head h2{margin:0!important;font-size:28px!important;line-height:1.2!important;color:var(--ink)!important;font-weight:900!important}.vnp-pos4-head p{margin:5px 0 0!important;color:var(--muted)!important}.vnp-pos4-kpis{display:flex;gap:10px}.vnp-pos4-kpis span{background:#fff;border:1px solid var(--line);border-radius:14px;padding:10px 15px;color:var(--muted)}.vnp-pos4-kpis b{display:block;font-size:19px;color:var(--ink)}.vnp-pos4-grid{display:grid;grid-template-columns:330px minmax(430px,1fr) 400px;gap:16px;align-items:start}.vnp-pos4-customers,.vnp-pos4-products,.vnp-pos4-bills{background:#fff;border:1px solid var(--line);border-radius:20px;padding:15px;min-width:0;min-height:610px;box-shadow:0 12px 30px rgba(15,23,42,.055)}.vnp-pos4-title{display:flex;justify-content:space-between;align-items:center;gap:10px}.vnp-pos4-title h3,.vnp-pos4-products>h3,.vnp-pos4-bills>h3{margin:0 0 13px!important;color:var(--ink)!important;font-size:18px!important;font-weight:900!important;line-height:1.25!important}.vnp-pos4-customers input[type=search]{width:100%;height:43px;border:1px solid var(--line);border-radius:12px;padding:0 12px;color:var(--ink);background:#fff}.vnp-pos4-filters{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;margin:10px 0}.vnp-pos4-filters button{border:1px solid #bfdbfe;background:#fff;color:#334155;border-radius:999px;padding:8px 4px;font-size:11px;font-weight:900;cursor:pointer}.vnp-pos4-filters button.is-active{background:var(--blue);border-color:var(--blue);color:#fff}.vnp-pos4-customer-list{display:grid;gap:8px;max-height:610px;overflow:auto;padding-right:2px}.vnp-pos4-customer{width:100%;display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:10px;text-align:left;border:1px solid #e2e8f0;background:#fff;color:var(--ink);border-radius:16px;padding:11px;cursor:pointer;transition:.18s}.vnp-pos4-customer:hover{border-color:#93c5fd;transform:translateY(-1px)}.vnp-pos4-customer.is-active{border-color:var(--blue);background:var(--blue-soft);box-shadow:0 7px 20px rgba(37,99,235,.13)}.vnp-pos4-customer .avatar{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:#e2e8f0;color:#475569;font-size:17px;font-style:normal}.vnp-pos4-customer .avatar.type-member{background:#fef3c7;color:#a16207}.vnp-pos4-customer .avatar.type-regular{background:#dbeafe;color:#1d4ed8}.vnp-pos4-customer .avatar.type-vip{background:#ede9fe;color:#6d28d9}.vnp-pos4-customer .customer-main{min-width:0}.vnp-pos4-customer .name{display:block!important;color:var(--ink)!important;font-weight:900!important;font-size:15px!important;line-height:1.25!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.vnp-pos4-customer small{display:block;color:var(--muted)!important;font-size:11px}.vnp-pos4-customer .badges{display:flex;flex-wrap:wrap;gap:4px;margin:4px 0}.vnp-pos4-customer em{font-style:normal;border-radius:999px;padding:3px 7px;font-size:10px;font-weight:900;background:#f1f5f9;color:#475569}.vnp-pos4-customer em.type-member{background:#fef3c7;color:#92400e}.vnp-pos4-customer em.type-regular{background:#dbeafe;color:#1d4ed8}.vnp-pos4-customer em.type-vip{background:#ede9fe;color:#6d28d9}.vnp-pos4-customer em.playing{background:#dcfce7;color:#166534}.vnp-pos4-customer .customer-debt{text-align:right;min-width:76px}.vnp-pos4-customer .customer-debt b{display:block;color:var(--red)!important;font-size:13px!important}.vnp-pos4-customer .customer-debt.is-clear b{color:var(--green)!important}.vnp-pos4-selected{background:linear-gradient(135deg,#0f172a,#1d4ed8);color:#fff;border-radius:17px;padding:15px 16px;margin-bottom:15px;display:flex;flex-direction:column}.vnp-pos4-selected-kicker{font-size:10px;letter-spacing:.12em;font-weight:900;opacity:.75}.vnp-pos4-selected strong{font-size:20px;color:#fff!important;line-height:1.25;margin-top:3px}.vnp-pos4-selected small{color:#dbeafe!important;margin-top:3px}.vnp-pos4-product-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.vnp-pos4-product-grid button{min-height:96px;border:1px solid #dbeafe;background:#fff;color:var(--ink);border-radius:17px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:10px 7px;font-weight:900;cursor:pointer;transition:.18s}.vnp-pos4-product-grid button:hover{border-color:var(--blue);background:var(--blue-soft);transform:translateY(-2px);box-shadow:0 8px 18px rgba(37,99,235,.12)}.vnp-pos4-product-grid i{font-style:normal;font-size:25px;line-height:1}.vnp-pos4-product-grid span{display:block;margin-top:6px;color:var(--ink)!important;font-size:13px!important;text-align:center;line-height:1.2}.vnp-pos4-product-grid b{color:var(--blue)!important;margin-top:5px;font-size:13px}.vnp-pos4-add-form{display:grid;grid-template-columns:1.6fr .6fr .8fr .6fr;gap:9px;margin-top:17px;border-top:1px solid #e2e8f0;padding-top:15px}.vnp-pos4-add-form label{font-size:12px;font-weight:900;color:#334155}.vnp-pos4-add-form input{width:100%;height:41px;border:1px solid var(--line);border-radius:10px;padding:0 10px;color:var(--ink);background:#fff}.vnp-pos4-add-form .wide{grid-column:1/-1}.vnp-pos4-add-form button{grid-column:1/-1}.vnp-pos4-invoice{border:1px solid #fed7aa;border-left:5px solid #f59e0b;border-radius:17px;padding:13px;margin-bottom:12px;background:#fffdf8;color:var(--ink)}.vnp-pos4-invoice.is-partial{border-color:#bfdbfe;border-left-color:var(--blue);background:#f8fbff}.vnp-pos4-invoice header{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}.vnp-pos4-invoice header strong{display:block;color:var(--ink)!important;font-size:14px}.vnp-pos4-invoice header small{display:block;color:var(--muted)!important}.vnp-pos4-invoice .invoice-status{display:inline-block;border-radius:999px;background:#ffedd5;color:#9a3412;padding:3px 8px;font-size:10px;font-weight:900;margin-bottom:5px}.vnp-pos4-invoice.is-partial .invoice-status{background:#dbeafe;color:#1d4ed8}.vnp-pos4-invoice .invoice-balance{text-align:right}.vnp-pos4-invoice .invoice-balance b{display:block;color:var(--red)!important;font-size:18px}.vnp-pos4-invoice .items>div{display:flex;justify-content:space-between;gap:8px;border-top:1px solid #edf2f7;padding:9px 0;color:var(--ink)}.vnp-pos4-invoice .items span,.vnp-pos4-invoice .items b{color:var(--ink)!important}.vnp-pos4-invoice .items small{display:block;color:var(--muted)!important}.vnp-pos4-invoice footer{display:grid;grid-template-columns:1fr 1fr;gap:8px;border-top:1px solid #e2e8f0;padding-top:10px;color:#334155}.vnp-pos4-invoice footer b{color:var(--ink)!important}.vnp-pos4-invoice footer button{grid-column:1/-1}.vnp-pos4-empty{padding:20px;border:1px dashed #cbd5e1;border-radius:14px;color:var(--muted)!important;background:#f8fafc}.vnp-pos4 .vchb-btn{color:var(--ink)}.vnp-pos4 .vchb-btn-primary{color:#fff!important}.vnp-pos4 .vchb-btn-soft{color:#1e40af!important}@media(max-width:1250px){.vnp-pos4-grid{grid-template-columns:300px minmax(390px,1fr) 360px}}@media(max-width:1080px){.vnp-pos4-grid{grid-template-columns:1fr}.vnp-pos4-customers,.vnp-pos4-products,.vnp-pos4-bills{min-height:auto}.vnp-pos4-customer-list{max-height:360px}}@media(max-width:640px){.vnp-pos4{padding:10px;border-radius:16px}.vnp-pos4-head{display:block}.vnp-pos4-kpis{margin-top:10px;display:grid;grid-template-columns:1fr 1fr}.vnp-pos4-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.vnp-pos4-add-form{grid-template-columns:1fr 1fr}.vnp-pos4-add-form .wide,.vnp-pos4-add-form button{grid-column:1/-1}}
/* POS V6 */
.vnp-pos6-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:-2px 0 16px}.vnp-pos6-kpis span{position:relative;display:grid;grid-template-columns:42px 1fr;grid-template-rows:auto auto;column-gap:10px;align-items:center;background:#fff;border:1px solid var(--line);border-radius:16px;padding:13px 15px}.vnp-pos6-kpis i{grid-row:1/3;display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:#eff6ff;font-style:normal;font-size:20px}.vnp-pos6-kpis small{color:var(--muted)!important;font-weight:700}.vnp-pos6-kpis b{color:var(--ink)!important;font-size:18px;line-height:1.15}.vnp-pos6-kpis .danger i{background:#fff1f2}.vnp-pos6-settings{white-space:nowrap;background:#fff!important;border:1px solid #bfdbfe!important;color:#1d4ed8!important}.vnp-pos6-selected-extra{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}.vnp-pos6-selected-extra span{font-size:11px;font-weight:800;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.18);padding:6px 9px;border-radius:999px}.vnp-pos6-section-title{display:flex;justify-content:space-between;gap:12px;align-items:end;margin-bottom:12px}.vnp-pos6-section-title h3{margin:0!important}.vnp-pos6-section-title small{color:var(--muted)!important;text-align:right}.vnp-pos4-product-grid button{position:relative}.vnp-pos4-product-grid button em{position:absolute;right:8px;top:8px;width:22px;height:22px;display:grid;place-items:center;border-radius:50%;background:#eff6ff;color:#2563eb;font-style:normal;font-weight:900}.vnp-pos4-product-grid button.is-selected{border-color:#2563eb;background:#eff6ff;box-shadow:0 0 0 2px rgba(37,99,235,.1)}.vnp-pos4-invoice footer{grid-template-columns:1fr 1fr 1fr}.vnp-pos4-invoice footer>span{grid-column:auto}.vnp-pos4-invoice footer .js-pos6-pay-partial{grid-column:1/2}.vnp-pos4-invoice footer .js-pos4-pay-invoice{grid-column:2/4}.vnp-pos4-invoice footer .js-pos6-print{grid-column:1/4}.vnp-pos6-modal{position:fixed;inset:0;z-index:999999;background:rgba(15,23,42,.62);display:none;align-items:center;justify-content:center;padding:24px}.vnp-pos6-modal.is-open{display:flex}.vnp-pos6-modal-card{width:min(1050px,96vw);max-height:90vh;overflow:auto;background:#fff;border-radius:22px;box-shadow:0 25px 80px rgba(15,23,42,.35);padding:20px}.vnp-pos6-modal-card>header{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;border-bottom:1px solid #e2e8f0;padding-bottom:14px;margin-bottom:14px}.vnp-pos6-modal-card h3{margin:0!important;font-size:22px!important;color:#0f172a!important}.vnp-pos6-modal-card p{margin:5px 0 0!important;color:#64748b!important}.vnp-pos6-modal-card>header button{border:0;background:#f1f5f9;width:38px;height:38px;border-radius:12px;font-size:25px;cursor:pointer}.vnp-pos6-product-table{overflow:auto}.vnp-pos6-product-table .head,.vnp-pos6-product-table .row{display:grid;grid-template-columns:70px 1.5fr 1fr 120px 85px 60px 42px;gap:8px;align-items:center;min-width:820px}.vnp-pos6-product-table .head{font-size:11px;text-transform:uppercase;letter-spacing:.04em;font-weight:900;color:#64748b;padding:0 4px 8px}.vnp-pos6-product-table .row{padding:7px 0;border-top:1px solid #edf2f7}.vnp-pos6-product-table input{width:100%;height:40px;border:1px solid #dbe5f0;border-radius:10px;padding:0 9px;color:#0f172a;background:#fff}.vnp-pos6-product-table .row>label{display:flex;justify-content:center}.vnp-pos6-product-table .row>label input{width:20px;height:20px}.vnp-pos6-product-table .row>button{width:36px;height:36px;border:0;border-radius:10px;background:#fff1f2;color:#be123c;font-size:20px;cursor:pointer}.vnp-pos6-products-form>.actions{display:flex;justify-content:flex-end;gap:10px;margin-top:16px}.vnp-pos6-products-form>.js-pos6-add-row{margin-top:12px}
@media(max-width:900px){.vnp-pos6-kpis{grid-template-columns:1fr 1fr}}@media(max-width:560px){.vnp-pos6-kpis{grid-template-columns:1fr}.vnp-pos6-section-title{display:block}.vnp-pos6-section-title small{display:block;text-align:left;margin-top:4px}.vnp-pos6-modal{padding:8px}.vnp-pos6-modal-card{padding:14px}}
@media print{body *{visibility:hidden!important}.vnp-pos4-invoice,.vnp-pos4-invoice *{visibility:visible!important}.vnp-pos4-invoice{position:absolute;left:0;top:0;width:100%;border:0!important;box-shadow:none!important}.vnp-pos4-invoice button{display:none!important}}
/* POS V6.1 multi-product cart */
.vnp-pos61-cart{grid-column:1/-1;border:1px solid #dbe5ee;border-radius:14px;background:#fff;overflow:hidden}.vnp-pos61-cart-head,.vnp-pos61-cart-total{display:flex;align-items:center;justify-content:space-between;padding:11px 13px;background:#f7fafc}.vnp-pos61-cart-head button{border:0;background:transparent;color:#dc2626;font-weight:700;cursor:pointer}.vnp-pos61-cart-empty{padding:20px;text-align:center;color:#64748b}.vnp-pos61-cart-row{display:grid;grid-template-columns:minmax(0,1fr) auto 92px;gap:10px;align-items:center;padding:10px 13px;border-top:1px solid #edf2f7}.vnp-pos61-cart-row span{display:flex;flex-direction:column}.vnp-pos61-cart-row small{color:#64748b}.vnp-pos61-cart-row>div{display:flex;align-items:center;gap:7px}.vnp-pos61-cart-row button{width:29px;height:29px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;font-weight:800;cursor:pointer}.vnp-pos61-cart-row .js-pos61-remove{color:#dc2626}.vnp-pos61-cart-row em{text-align:right;font-style:normal;font-weight:800}.vnp-pos61-cart-total{border-top:1px solid #dbe5ee}.vnp-pos61-cart-total b{font-size:18px;color:#0f766e}.js-pos61-submit:disabled{opacity:.55;cursor:not-allowed}.vnp-pos4-product.is-selected em{background:#0f766e;color:#fff;min-width:25px;padding:2px 7px;border-radius:999px;text-align:center}@media(max-width:700px){.vnp-pos61-cart-row{grid-template-columns:1fr auto}.vnp-pos61-cart-row>em{grid-column:1/-1;text-align:right}}

/* POS V6.2 - booking compatible presence workflow */
.vnp-pos62-presence-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.vnp-pos62-presence-actions button{border:1px solid rgba(255,255,255,.35);background:rgba(255,255,255,.14);color:#fff;border-radius:10px;padding:8px 12px;font-weight:800;cursor:pointer}
.vnp-pos62-presence-actions button:hover{background:rgba(255,255,255,.24)}
.vnp-pos4-customer .badges em.visit-waiting{background:#fff3cd;color:#8a5a00}
.vnp-pos4-customer .badges em.visit-playing{background:#dcfce7;color:#166534}
.vnp-pos4-customer .badges em.visit-checkout{background:#fee2e2;color:#991b1b}
.vnp-pos4-customer .badges em.visit-booked{background:#e0e7ff;color:#3730a3}
.vnp-pos4-filters{flex-wrap:wrap}
@media(max-width:782px){.vnp-pos62-presence-actions button{flex:1 1 30%;font-size:12px;padding:8px 6px}}

.vnp-pos631-invoice-note{margin:10px 0;padding:10px 12px;border-radius:11px;background:#fff7ed;border:1px solid #fed7aa;color:#7c2d12;display:grid;grid-template-columns:auto 1fr;gap:7px;align-items:start}.vnp-pos631-invoice-note strong{color:#9a3412!important;font-size:12px}.vnp-pos631-invoice-note span{white-space:normal;overflow-wrap:anywhere;color:#7c2d12!important;font-size:13px;line-height:1.45}

/* 1.31.2: distinguish item notes from invoice note history */
.vnp-pos632-item-note{display:block;margin-top:4px;padding:4px 7px;border-left:3px solid #f59e0b;background:#fff8e6;color:#7a4b00;border-radius:4px;white-space:normal;font-size:12px;line-height:1.35}
.vnp-pos631-invoice-note span{white-space:pre-line;line-height:1.55}


/* 1.31.9 - one-tap TM / CK-QR payment selector */
.vnp-pos619-methods{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:7px;padding:4px;background:#eef2f7;border-radius:11px}
.vnp-pos619-methods label{display:block;cursor:pointer;margin:0!important}
.vnp-pos619-methods input{position:absolute;opacity:0;pointer-events:none}
.vnp-pos619-methods span{display:flex;align-items:center;justify-content:center;min-height:36px;border-radius:8px;font-size:12px;font-weight:900;color:#475569;background:transparent;border:1px solid transparent;transition:.15s ease}
.vnp-pos619-methods label.is-active span{background:#fff;color:#1d4ed8;border-color:#bfdbfe;box-shadow:0 1px 3px rgba(15,23,42,.09)}
.vnp-pos619-customer-pay{display:grid;grid-template-columns:1fr;gap:8px;margin-top:10px;padding-top:10px;border-top:1px solid #e2e8f0}
.vnp-pos619-customer-pay>.vchb-btn{width:100%}
@media(max-width:560px){.vnp-pos619-methods span{min-height:34px;font-size:11px}}
