/* ===== Kiosko MB — UI Táctil ===== */
:root {
    --mb-blue:    #1a3a6b;
    --mb-blue-lt: #2557a7;
    --mb-gold:    #f0a500;
    --mb-green:   #1a8a4a;
    --mb-red:     #c0392b;
    --mb-gray:    #f4f6f9;
    --mb-border:  #dde3ed;
    --touch-min:  64px;
    --radius:     12px;
    --shadow:     0 4px 16px rgba(0,0,0,.14);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
    height: 100%; margin: 0; padding: 0;
    font-family: 'Segoe UI', system-ui, sans-serif;
    font-size: 16px; background: var(--mb-gray);
    touch-action: manipulation; user-select: none;
    overscroll-behavior: none;
}

/* ===== Layout ===== */
.kiosko-wrap { display: flex; flex-direction: column; height: 100vh; overflow: hidden; }

.topbar {
    background: var(--mb-blue); color: #fff;
    padding: 0 20px; height: 60px;
    display: flex; align-items: center; justify-content: space-between;
    flex-shrink: 0; box-shadow: var(--shadow);
}
.topbar-brand { font-size: 1.25rem; font-weight: 700; letter-spacing: .5px; }
.topbar-user  { font-size: .9rem; opacity: .85; }
.topbar-btn {
    background: rgba(255,255,255,.15); border: none; color: #fff;
    padding: 8px 16px; border-radius: 8px; font-size: .9rem; cursor: pointer;
    min-height: var(--touch-min); min-width: var(--touch-min);
}
.topbar-btn:active { background: rgba(255,255,255,.28); }

/* ===== Login ===== */
.login-wrap {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--mb-blue) 0%, var(--mb-blue-lt) 100%);
}
.login-card {
    background: #fff; border-radius: 20px; padding: 40px;
    width: 100%; max-width: 420px; box-shadow: var(--shadow);
}
.login-logo { text-align: center; margin-bottom: 28px; }
.login-logo .brand { font-size: 2rem; font-weight: 800; color: var(--mb-blue); }
.login-logo .sub   { color: #888; font-size: .9rem; }
.login-field {
    background: var(--mb-gray); border: 2px solid var(--mb-border);
    border-radius: var(--radius); padding: 14px 18px;
    font-size: 1.1rem; width: 100%; margin-bottom: 12px;
    min-height: var(--touch-min); outline: none; cursor: pointer;
    color: #1a1a1a; letter-spacing: 1px;
}
.login-field:focus { border-color: var(--mb-blue-lt); }
.btn-login {
    width: 100%; background: var(--mb-blue); color: #fff;
    border: none; border-radius: var(--radius); font-size: 1.15rem;
    font-weight: 700; min-height: var(--touch-min); cursor: pointer;
    margin-top: 8px; transition: background .15s;
}
.btn-login:active { background: var(--mb-blue-lt); }
.login-error { color: var(--mb-red); text-align: center; font-size: .95rem; margin-top: 10px; }

/* ===== Catálogo ===== */
.catalogo-layout {
    display: flex; flex: 1; overflow: hidden;
}
.catalogo-main {
    flex: 1; display: flex; flex-direction: column; overflow: hidden;
}
.search-bar {
    padding: 12px 16px; background: #fff; border-bottom: 1px solid var(--mb-border);
    display: flex; gap: 10px; align-items: center; flex-shrink: 0;
}
.search-input {
    flex: 1; border: 2px solid var(--mb-border); border-radius: var(--radius);
    padding: 10px 16px; font-size: 1rem; outline: none;
    min-height: 52px; background: var(--mb-gray);
}
.search-input:focus { border-color: var(--mb-blue-lt); }
.btn-teclado {
    background: var(--mb-blue-lt); color: #fff; border: none;
    border-radius: var(--radius); padding: 0 18px; min-height: 52px;
    font-size: .95rem; cursor: pointer; white-space: nowrap;
}
.btn-teclado:active { opacity: .8; }
/* Sólo visible cuando hay texto que limpiar (Kiosko.actualizarBotonLimpiar) */
.btn-limpiar {
    background: #fff; color: #666; border: 2px solid var(--mb-border);
    border-radius: var(--radius); padding: 0 16px; min-height: 52px;
    font-size: .95rem; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.btn-limpiar:active { background: var(--mb-gray); }

.productos-grid {
    flex: 1; overflow-y: auto; padding: 16px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px; align-content: start;
}

/* ===== Barra de líneas ===== */
.lineas-bar {
    padding: 8px 12px; background: #fff; border-bottom: 1px solid var(--mb-border);
    display: flex; gap: 8px; overflow-x: auto; flex-shrink: 0;
    scrollbar-width: thin; -webkit-overflow-scrolling: touch;
}
.lineas-bar::-webkit-scrollbar { height: 3px; }
.lineas-bar::-webkit-scrollbar-thumb { background: var(--mb-border); border-radius: 2px; }

.linea-btn {
    flex-shrink: 0; padding: 8px 16px; border-radius: 20px;
    border: 2px solid var(--mb-border); background: var(--mb-gray);
    font-size: .85rem; font-weight: 600; cursor: pointer;
    white-space: nowrap; min-height: 44px; color: #444;
    transition: all .15s;
}
.linea-btn:active { opacity: .75; }
.linea-btn.active {
    background: var(--mb-blue); border-color: var(--mb-blue); color: #fff;
}

/* ===== Tarjeta de producto con imagen ===== */
.prod-card {
    background: #fff; border-radius: var(--radius); padding: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,.08); cursor: pointer;
    transition: transform .1s, box-shadow .1s, border-color .15s; display: flex;
    flex-direction: column; align-items: center; gap: 6px;
    border: 2px solid transparent; position: relative;
}
.prod-card:active       { transform: scale(.97); box-shadow: 0 1px 4px rgba(0,0,0,.1); }
.prod-card.sin-stock    { opacity: .45; pointer-events: none; }
.prod-card.en-carrito   { border-color: var(--mb-green); }
/* Badge de cantidad ya en carrito */
.prod-en-carrito {
    position: absolute; top: 6px; right: 6px;
    background: var(--mb-green); color: #fff;
    font-size: .68rem; font-weight: 800; border-radius: 10px;
    padding: 2px 7px; pointer-events: none; line-height: 1.4;
}

.prod-img {
    width: 100%; aspect-ratio: 1; object-fit: cover;
    border-radius: 8px; background: var(--mb-gray);
}
.prod-nombre { font-size: .9rem; font-weight: 600; text-align: center; color: #1a1a1a; line-height: 1.3; }
.prod-precio { font-size: 1.2rem; font-weight: 800; color: var(--mb-blue); }
.prod-stock  { font-size: .75rem; color: #999; }
.prod-tier-badge {
    font-size: .68rem; font-weight: 700; color: #9a6500;
    background: #fff4d6; border: 1px solid #f0c060;
    border-radius: 6px; padding: 2px 7px;
    text-align: center; width: 100%; line-height: 1.5;
}

/* ===== Panel de sugeridos ===== */
.sugeridos-panel {
    background: #fff; border-top: 2px solid var(--mb-gold);
    padding: 8px 12px; flex-shrink: 0;
}
/* La pestaña es el <summary>: tocarla pliega el panel para liberar pantalla */
.sugeridos-titulo {
    font-size: .78rem; font-weight: 700; color: var(--mb-gold);
    text-transform: uppercase; letter-spacing: .5px;
    display: flex; align-items: center; justify-content: space-between; gap: 5px;
    cursor: pointer; user-select: none;
    min-height: 34px; padding: 4px 0;
}
.sugeridos-titulo > span { display: flex; align-items: center; gap: 5px; }
/* Fuera el triangulito nativo — la flecha propia se ve igual en todos lados */
.sugeridos-titulo::-webkit-details-marker { display: none; }
.sugeridos-titulo::marker              { content: ''; }
.sugeridos-titulo:active               { opacity: .6; }
.sugeridos-flecha { transition: transform .18s; font-size: .9rem; }
.sugeridos-panel[open] .sugeridos-flecha { transform: rotate(180deg); }
.sugeridos-panel[open] .sugeridos-titulo { margin-bottom: 8px; }
.sugeridos-grid {
    display: flex; gap: 10px; overflow-x: auto;
    scrollbar-width: thin; -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
}
.sugeridos-grid::-webkit-scrollbar { height: 3px; }
.sugeridos-grid::-webkit-scrollbar-thumb { background: var(--mb-border); border-radius: 2px; }

.sug-card {
    flex: 0 0 100px; border: 2px solid var(--mb-border); border-radius: var(--radius);
    padding: 8px; cursor: pointer; text-align: center;
    transition: border-color .15s, transform .1s; background: #fff;
}
.sug-card:active { transform: scale(.96); border-color: var(--mb-blue); }
.sug-card img {
    width: 100%; aspect-ratio: 1; object-fit: cover;
    border-radius: 6px; background: var(--mb-gray); margin-bottom: 5px;
}
.sug-nombre {
    font-size: .72rem; font-weight: 600; color: #1a1a1a; line-height: 1.3;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; margin-bottom: 3px;
}
.sug-precio { font-size: .8rem; font-weight: 800; color: var(--mb-blue); }

/* paginación */
.paginacion {
    padding: 12px 16px; background: #fff; border-top: 1px solid var(--mb-border);
    display: flex; align-items: center; justify-content: center; gap: 10px;
    flex-shrink: 0;
}
.btn-pag {
    background: var(--mb-blue); color: #fff; border: none;
    border-radius: var(--radius); min-height: var(--touch-min);
    min-width: var(--touch-min); font-size: 1rem; cursor: pointer;
    padding: 0 20px;
}
.btn-pag:disabled { background: #ccc; cursor: default; }
.btn-pag:active:not(:disabled) { opacity: .8; }
.pag-info { font-size: .95rem; color: #555; }

/* ===== Carrito (panel lateral) ===== */
.carrito-panel {
    width: 320px; background: #fff; border-left: 1px solid var(--mb-border);
    display: flex; flex-direction: column; flex-shrink: 0;
}
.carrito-header {
    padding: 14px 16px; background: var(--mb-blue); color: #fff;
    font-weight: 700; font-size: 1.05rem; display: flex;
    justify-content: space-between; align-items: center;
}
.carrito-items { flex: 1; overflow-y: auto; padding: 8px; }
.carrito-item {
    display: flex; flex-direction: column; gap: 4px;
    padding: 10px 8px; border-bottom: 1px solid var(--mb-border);
    font-size: .9rem;
}
.ci-nombre { font-weight: 600; color: #1a1a1a; line-height: 1.35; }
.ci-clave  { font-size: .72rem; color: #aaa; font-weight: 600; margin-right: 5px; }
/* Segunda fila: controles qty + precio + borrar */
.ci-controles {
    display: flex; align-items: center; gap: 8px;
}
.ci-qty {
    display: flex; align-items: center; gap: 6px;
}
/* Hint de próximo nivel de escala */
.ci-tier-hint {
    font-size: .72rem; font-weight: 700;
    color: #9a6500;
    display: flex; align-items: center; gap: 4px;
}
/* Fila de escala activa (línea propia, en verde) */
.ci-escala-activa {
    font-size: .72rem; font-weight: 700; color: var(--mb-green);
    display: flex; align-items: center; gap: 4px;
}
.btn-qty {
    width: 36px; height: 36px; border-radius: 8px;
    border: 1px solid var(--mb-border); background: var(--mb-gray);
    font-size: 1.2rem; cursor: pointer; display: flex;
    align-items: center; justify-content: center;
}
.btn-qty:active { background: var(--mb-border); }
.ci-qty-num { font-weight: 700; min-width: 24px; text-align: center; }
.ci-precio { font-weight: 700; color: var(--mb-blue); min-width: 64px; text-align: right; }
.btn-del {
    background: none; border: none; color: var(--mb-red);
    font-size: 1.2rem; cursor: pointer; padding: 4px;
}
.carrito-empty {
    padding: 32px 16px; text-align: center; color: #aaa; font-size: .95rem;
}
.carrito-total {
    padding: 14px 16px; border-top: 2px solid var(--mb-border);
    font-size: 1.1rem; font-weight: 700; color: #1a1a1a;
    display: flex; justify-content: space-between;
}
.total-monto { color: var(--mb-blue); font-size: 1.4rem; }
.carrito-acciones { padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.btn-pagar-ef {
    background: var(--mb-green); color: #fff; border: none;
    border-radius: var(--radius); min-height: var(--touch-min);
    font-size: 1.05rem; font-weight: 700; cursor: pointer; width: 100%;
}
.btn-pagar-ef:active    { opacity: .85; }
.btn-pagar-ef:disabled  { background: #b0b8c8; cursor: not-allowed; opacity: .65; }
.btn-pagar-tarjeta {
    background: var(--mb-blue-lt); color: #fff; border: none;
    border-radius: var(--radius); min-height: var(--touch-min);
    font-size: 1rem; font-weight: 600; cursor: pointer; width: 100%;
}
.btn-pagar-tarjeta:active { opacity: .85; }
.btn-cancelar-venta {
    background: var(--mb-red); color: #fff; border: none;
    border-radius: var(--radius); min-height: var(--touch-min);
    font-size: 1rem; font-weight: 600; cursor: pointer; width: 100%;
}
.btn-cancelar-venta:active { opacity: .85; }

/* ===== Modal de pago CashDro ===== */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,.65);
    display: flex; align-items: center; justify-content: center;
    z-index: 1000; padding: 20px;
}
.modal-overlay.hidden { display: none; }
.modal-card {
    background: #fff; border-radius: 20px; padding: 36px;
    width: 100%; max-width: 480px; box-shadow: var(--shadow);
    text-align: center;
}
.modal-title { font-size: 1.5rem; font-weight: 800; color: var(--mb-blue); margin-bottom: 8px; }
.modal-sub   { color: #666; margin-bottom: 24px; font-size: 1rem; }
.pago-importe {
    font-size: 2.8rem; font-weight: 900; color: var(--mb-blue);
    margin: 16px 0; letter-spacing: -1px;
}
.pago-estado {
    font-size: 1.1rem; color: #555; margin-bottom: 20px; min-height: 28px;
}
.pago-montos {
    display: flex; gap: 12px; justify-content: center; margin-bottom: 24px;
}
.pago-monto-box {
    flex: 1; background: var(--mb-gray); border-radius: var(--radius); padding: 12px;
}
.pago-monto-label { font-size: .75rem; color: #888; text-transform: uppercase; }
.pago-monto-val   { font-size: 1.3rem; font-weight: 800; color: var(--mb-blue); }
.spinner-pago {
    width: 48px; height: 48px; border: 5px solid var(--mb-border);
    border-top-color: var(--mb-blue); border-radius: 50%;
    animation: spin .8s linear infinite; margin: 0 auto 16px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.icon-check { font-size: 4rem; color: var(--mb-green); margin-bottom: 12px; }
.icon-error { font-size: 4rem; color: var(--mb-red); margin-bottom: 12px; }
.btn-modal-cancelar {
    background: var(--mb-red); color: #fff; border: none;
    border-radius: var(--radius); min-height: var(--touch-min);
    font-size: 1rem; font-weight: 700; cursor: pointer; width: 100%;
}
.btn-modal-cancelar:active { opacity: .85; }
.btn-modal-ok {
    background: var(--mb-green); color: #fff; border: none;
    border-radius: var(--radius); min-height: var(--touch-min);
    font-size: 1rem; font-weight: 700; cursor: pointer; width: 100%; margin-top: 8px;
}
.btn-modal-ok:active { opacity: .85; }

/* ===== Teclado virtual ===== */
.teclado-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,.5);
    display: flex; align-items: flex-end; justify-content: center;
    z-index: 900;
}
.teclado-overlay.hidden { display: none; }
.teclado-panel {
    background: #e8ecf0; border-radius: 20px 20px 0 0;
    padding: 12px; width: 100%; max-width: 600px;
    box-shadow: 0 -4px 24px rgba(0,0,0,.2);
}
.teclado-display {
    background: #fff; border-radius: 10px; padding: 12px 16px;
    font-size: 1.3rem; font-weight: 600; margin-bottom: 10px;
    min-height: 52px; color: #1a1a1a;
}
.teclado-fila  { display: flex; gap: 6px; margin-bottom: 6px; justify-content: center; }
.teclado-key {
    flex: 1; min-height: 52px; border-radius: 8px;
    border: none; background: #fff; font-size: 1.1rem;
    font-weight: 600; cursor: pointer; box-shadow: 0 2px 0 #b0b8c8;
    color: #1a1a1a; max-width: 60px;
}
.teclado-key:active { transform: translateY(1px); box-shadow: none; }
.teclado-key.space  { max-width: 200px; flex: 3; }
.teclado-key.del    { background: var(--mb-red); color: #fff; max-width: 80px; }
.teclado-key.enter  { background: var(--mb-blue); color: #fff; max-width: 100px; flex: 1.5; }
.teclado-key.cancel { background: #666; color: #fff; }
.teclado-key.mayus  { background: #dde; color: #333; max-width: 90px; font-weight: 700; }
.teclado-key.mayus.active { background: var(--mb-blue-lt); color: #fff; }
.teclado-key.sym    { background: #c8d0e0; color: #1a1a1a; max-width: 72px; font-weight: 800; font-size: .9rem; }
.teclado-key.limpiar { background: var(--mb-gold); color: #fff; max-width: 110px; font-weight: 700; }

/* ===== Teclado numérico (productos a granel) ===== */
.numpad-panel {
    background: #e8ecf0; border-radius: 20px 20px 0 0;
    padding: 16px; width: 100%; max-width: 420px;
    box-shadow: 0 -4px 24px rgba(0,0,0,.2);
}
.numpad-titulo {
    font-size: 1rem; font-weight: 700; color: #1a1a1a;
    text-align: center; line-height: 1.3;
}
.numpad-precio {
    font-size: .8rem; color: #667; text-align: center; margin-bottom: 10px;
    min-height: 20px;
}
.numpad-escala {
    font-weight: 800; color: var(--mb-green); margin-left: 4px;
}
.numpad-display {
    background: #fff; border-radius: 10px; padding: 10px 16px;
    display: flex; align-items: baseline; justify-content: center; gap: 8px;
    min-height: 60px;
}
.numpad-valor  { font-size: 2rem; font-weight: 800; color: var(--mb-blue); }
.numpad-unidad { font-size: 1rem; font-weight: 700; color: #889; }
.numpad-importe {
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 4px 12px; font-size: .9rem; font-weight: 600; color: #556;
}
.numpad-importe-val { font-size: 1.15rem; font-weight: 800; color: var(--mb-green); }

.numpad-keys {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.numpad-key {
    min-height: var(--touch-min); border-radius: 10px; border: none;
    background: #fff; font-size: 1.5rem; font-weight: 700; color: #1a1a1a;
    cursor: pointer; box-shadow: 0 2px 0 #b0b8c8;
}
.numpad-key:active     { transform: translateY(1px); box-shadow: none; }
.numpad-key.borrar     { background: var(--mb-red); color: #fff; box-shadow: 0 2px 0 #8e2a1f; }

.numpad-acciones { display: flex; gap: 8px; margin-top: 10px; }
.numpad-btn {
    flex: 1; min-height: var(--touch-min); border-radius: var(--radius);
    border: none; font-size: 1rem; font-weight: 700; cursor: pointer; color: #fff;
}
.numpad-btn.cancelar   { background: #666; }
.numpad-btn.ok         { background: var(--mb-green); }
.numpad-btn:disabled   { opacity: .4; cursor: default; }
.numpad-btn:active:not(:disabled) { opacity: .85; }

/* Marca de producto a granel en la tarjeta */
.prod-granel-badge {
    font-size: .68rem; font-weight: 700; color: #1a5d7a;
    background: #e0f2fa; border: 1px solid #7fc4e0;
    border-radius: 6px; padding: 2px 7px;
    text-align: center; width: 100%; line-height: 1.5;
}
.prod-por-unidad { font-size: .8rem; font-weight: 700; color: #889; }

/* Cantidad editable en el carrito (sustituye a los botones +/- en granel) */
.ci-qty-granel {
    display: flex; align-items: center; gap: 6px;
    min-height: 36px; padding: 0 12px; border-radius: 8px;
    border: 1px solid #7fc4e0; background: #e0f2fa;
    font-size: .9rem; font-weight: 700; color: #1a5d7a; cursor: pointer;
}
.ci-qty-granel:active { background: #c9e8f5; }

/* ===== Pago con tarjeta (pinpad Prosepago) ===== */
.btn-pagar-tar {
    background: var(--mb-blue-lt); color: #fff; border: none;
    border-radius: var(--radius); min-height: var(--touch-min);
    font-size: 1.05rem; font-weight: 700; cursor: pointer; width: 100%;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-pagar-tar:active:not(:disabled) { opacity: .85; }
.btn-pagar-tar:disabled              { opacity: .4; cursor: default; }
/* El monto que cobra cada medio, dentro de su propio botón */
.btn-pagar-monto {
    font-size: .95rem; font-weight: 800;
    background: rgba(255,255,255,.18); border-radius: 8px; padding: 2px 8px;
}
/* Sólo aparece cuando el efectivo cobra más que la tarjeta por el redondeo */
.aviso-redondeo {
    padding: 0 16px 8px; font-size: .74rem; color: #9a6500;
    font-weight: 600; text-align: right;
}
.tar-pasos {
    background: var(--mb-gray); border-radius: var(--radius);
    padding: 10px 14px; margin: 12px 0;
    font-size: .82rem; color: #556; line-height: 1.8; text-align: left;
}
/* Respuesta cruda del proveedor cuando no se reconoce: es para el cajero/soporte */
.tar-raw {
    background: #fff4d6; border: 1px solid #f0c060; border-radius: 8px;
    padding: 8px 10px; margin-top: 10px;
    font-family: ui-monospace, monospace; font-size: .7rem; color: #7a5200;
    max-height: 120px; overflow: auto; word-break: break-all; text-align: left;
}

/* ===== Ticket (impresora térmica 80 mm) =====
   La térmica sólo imprime negro: cualquier gris sale punteado (ilegible). Todo
   va en #000 sólido, sin tamaños menores a 13px y con fuente de sistema gruesa. */
.ticket-wrap {
    max-width: 380px; margin: 0 auto; padding: 20px;
    background: #fff; color: #000;
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
    font-size: 15px; line-height: 1.3;
}
.ticket-wrap * { color: #000; }
.ticket-header  { text-align: center; padding-bottom: 8px; margin-bottom: 8px; border-bottom: 2px solid #000; }
.ticket-title   { font-size: 22px; font-weight: 900; letter-spacing: .5px; }
.ticket-sub     { font-size: 14px; font-weight: 600; }
.ticket-item    { padding: 6px 0; border-bottom: 1px dashed #000; }
.ticket-item-desc { font-size: 15px; font-weight: 700; }
.ticket-item .ticket-row { font-weight: 600; }
.ticket-row     { display: flex; justify-content: space-between; gap: 8px; font-size: 15px; padding: 2px 0; }
.ticket-row span:last-child { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ticket-row.bold { font-weight: 700; }
.ticket-row.det { font-size: 14px; font-weight: 600; }
.ticket-divider { border: none; border-top: 2px solid #000; margin: 8px 0; }
.ticket-total   { font-size: 22px; font-weight: 900; padding: 4px 0; }
.ticket-seccion { margin-top: 8px; padding-top: 6px; border-top: 1px dashed #000; }
.ticket-footer  { text-align: center; margin-top: 10px; padding-top: 8px; border-top: 2px solid #000; font-size: 15px; font-weight: 700; }
.ticket-footer .det { font-size: 13px; font-weight: 600; margin-top: 4px; }
.btn-print { display: block; width: 200px; margin: 20px auto; padding: 14px; background: var(--mb-blue); color: #fff; border: none; border-radius: 10px; font-size: 1rem; font-weight: 700; cursor: pointer; }
.btn-nueva-venta { display: block; width: 200px; margin: 8px auto; padding: 14px; background: var(--mb-green); color: #fff; border: none; border-radius: 10px; font-size: 1rem; font-weight: 700; cursor: pointer; }

/* Margen 0 = el navegador no imprime su encabezado/pie (fecha, título, URL) */
@page { margin: 0; }

@media print {
    html, body { background: #fff !important; margin: 0; }
    body * { visibility: hidden; }
    .ticket-wrap, .ticket-wrap * { visibility: visible; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    /* 72 mm = área imprimible de un rollo de 80 mm */
    .ticket-wrap { position: absolute; left: 0; top: 0; width: 72mm; max-width: none; margin: 0 4mm; padding: 2mm 0 6mm; }
    .btn-print, .btn-nueva-venta { display: none !important; }
}

/* ===== Utilidades ===== */
.hidden { display: none !important; }
.text-green { color: var(--mb-green); }
.text-red   { color: var(--mb-red); }
