/* Ventas: catálogo, venta de mostrador (TPV), cierre de caja y pedidos de clientes */
.alert--warning { background: var(--warning-50); color: #B45309; }
.vt-csv { background: var(--gray-50); border-radius: var(--radius-sm); padding: 10px 12px; font-size: 12px; overflow-x: auto; margin-top: 10px; }
.vt-stock-big { font-size: 36px; font-weight: 800; color: var(--navy-900); margin: 0 0 12px; font-variant-numeric: tabular-nums; }
.vt-stock-big span { font-size: 16px; font-weight: 500; color: var(--gray-500); }

/* Buscador de productos */
.vt-psearch { position: relative; flex: 1; min-width: 240px; }
.vt-psearch input { width: 100%; }
.vt-psearch__results, .vt-results { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 30; background: #fff; border-radius: var(--radius-md); box-shadow: var(--shadow-elevated); max-height: 320px; overflow-y: auto; }
.vt-results { position: static; margin-top: 8px; box-shadow: none; border: 1px solid var(--gray-100); }
.vt-psearch__item { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; background: none; border: 0; border-bottom: 1px solid var(--gray-100); text-align: left; cursor: pointer; font: inherit; }
.vt-psearch__item:hover { background: var(--orange-50); }
.vt-psearch__item small { display: block; color: var(--gray-500); font-size: 12px; }

/* TPV */
.vt-pos { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, 1fr); gap: 16px; align-items: start; }
.vt-scan { display: flex; align-items: center; gap: 10px; border: 2px solid var(--orange-500); border-radius: var(--radius-md); padding: 0 12px; }
.vt-scan input { border: 0; height: 52px; font-size: 18px; flex: 1; outline: none; background: transparent; }
.vt-quick { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.vt-quick__item { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; text-align: left; padding: 12px; min-height: 76px; border: 1px solid var(--gray-300); border-radius: var(--radius-md); background: #fff; cursor: pointer; font: inherit; }
.vt-quick__item:hover { border-color: var(--orange-500); background: var(--orange-50); }
.vt-quick__item strong { font-size: 14px; color: var(--navy-900); line-height: 1.25; }
.vt-quick__item span { color: var(--orange-600); font-weight: 700; }
.vt-free { margin-top: 14px; }
.vt-free summary { cursor: pointer; color: var(--gray-500); font-size: 13px; display: inline-flex; gap: 6px; align-items: center; }
.vt-free__row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.vt-free__row input[data-vt-free-desc] { flex: 1; min-width: 160px; }
.vt-free__row select { width: auto; }
.vt-cart { min-height: 120px; max-height: 42vh; overflow-y: auto; margin-bottom: 12px; }
.vt-cart__empty { padding: 32px 0; text-align: center; }
.vt-line { display: grid; grid-template-columns: minmax(0, 1fr) auto 90px; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--gray-100); }
.vt-line__name { font-weight: 600; color: var(--navy-900); }
.vt-line__name small { display: block; font-weight: 400; color: var(--gray-500); font-size: 12px; }
.vt-line .num { text-align: right; }
.vt-qty { display: inline-flex; align-items: center; border: 1px solid var(--gray-300); border-radius: var(--radius-full); overflow: hidden; }
.vt-qty button { width: 34px; height: 34px; border: 0; background: var(--gray-50); font-size: 18px; cursor: pointer; }
.vt-qty input { width: 46px; height: 34px; border: 0; text-align: center; font: inherit; }
.vt-disc { display: flex; align-items: center; gap: 8px; justify-content: flex-end; font-size: 13px; color: var(--gray-500); }
.vt-disc input { width: 80px; height: 34px; text-align: right; }
.vt-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 10px; }
.vt-total span { font-size: 16px; color: var(--gray-500); }
.vt-total strong { font-size: 36px; color: var(--navy-900); font-variant-numeric: tabular-nums; }
.vt-vat { font-size: 12px; text-align: right; min-height: 16px; }
.vt-methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; }
.vt-method input { position: absolute; opacity: 0; }
.vt-method span { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px; border: 1px solid var(--gray-300); border-radius: var(--radius-md); cursor: pointer; font-weight: 600; font-size: 13px; }
.vt-method input:checked + span { border-color: var(--orange-500); background: var(--orange-50); color: var(--orange-600); }
.vt-method input:focus-visible + span { outline: 2px solid var(--orange-500); }
.vt-cash { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.vt-cash input { width: 110px; height: 40px; text-align: right; font-size: 16px; }
.vt-change { margin-left: auto; color: var(--gray-500); }
.vt-change strong { font-size: 20px; color: var(--navy-900); }
.vt-warn { color: var(--danger) !important; }
.vt-ok { color: var(--success); }
.vt-done__num { font-weight: 700; font-size: 16px; color: var(--navy-900); }
.vt-done__change { font-size: 28px; font-weight: 800; color: var(--orange-600); margin: 8px 0 14px; }
.vt-done__actions { display: grid; gap: 10px; }
.vt-send { display: flex; gap: 8px; }
.vt-send input { flex: 1; }

/* Caja y pedidos */
.vt-closebox { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; }
.vt-closebox div { background: var(--gray-50); border-radius: var(--radius-md); padding: 10px 12px; display: grid; gap: 2px; }
.vt-closebox strong { font-size: 18px; color: var(--navy-900); font-variant-numeric: tabular-nums; }
.vt-expected { margin-top: 12px; font-size: 15px; }
.vt-olines td { vertical-align: middle; }
.vt-olines .ql-input { width: 100%; }
.vt-ototal { margin-right: auto; color: var(--gray-500); }
.vt-ototal strong { color: var(--navy-900); font-size: 18px; }

@media (max-width: 900px) {
  .vt-pos { grid-template-columns: minmax(0, 1fr); }
}
