body.pos-mode #main-content.app-content:has(> .terminal-pos){padding:0!important;margin:0!important;overflow:hidden}.terminal-pos{margin:0!important}.terminal-pos{--tp-bg:#f4f7fc;--tp-panel:#fff;--tp-line:var(--ui-border,#d9e0ea);--tp-muted:var(--ui-muted,#64748b);--tp-text:var(--ui-text,#172033);--tp-accent:var(--ui-primary,#174ea6);--tp-accent-strong:var(--ui-primary-strong,#103b80);--tp-soft:var(--ui-primary-soft,#edf3ff);height:calc(100vh - var(--topbar-height,64px));min-height:620px;background:var(--tp-bg);color:var(--tp-text);overflow:hidden}
.terminal-pos>form{height:100%;display:grid;grid-template-columns:minmax(0,1.7fr) minmax(360px,.9fr);grid-template-rows:minmax(0,1fr);gap:0}.terminal-pos>form>#pos-items-fields,.terminal-pos>form>#pos-payments-fields{display:none!important}.terminal-pos-products{grid-column:1;grid-row:1;min-width:0;min-height:0;display:flex;flex-direction:column;border-right:1px solid var(--tp-line);overflow:hidden}.terminal-pos-cart{grid-column:2;grid-row:1;min-height:0}.terminal-pos-toolbar{display:grid;grid-template-columns:max-content auto;align-items:flex-start;column-gap:18px;padding:10px 14px;background:var(--tp-panel);border-bottom:1px solid var(--tp-line)}
.terminal-pos-document-tabs{display:flex;gap:8px;min-width:0;flex-wrap:nowrap}.terminal-pos-doc-tab{height:52px;min-width:112px;display:flex;align-items:center;justify-content:center;gap:0;padding:0 14px;border:1px solid var(--tp-line);border-radius:9px;background:var(--tp-panel);color:var(--tp-text);font-weight:750;cursor:pointer;transition:.16s ease;text-align:center}.terminal-pos-doc-tab:hover{border-color:var(--tp-accent);background:var(--tp-soft)}.terminal-pos-doc-tab.is-active{background:var(--tp-accent);border-color:var(--tp-accent);color:#fff;box-shadow:0 5px 13px color-mix(in srgb,var(--tp-accent) 24%,transparent)}
.terminal-pos-toolbar-fields{display:grid;grid-template-columns:86px 210px 118px;gap:10px;min-width:0;align-items:start;justify-content:end}.terminal-pos-compact-field{display:grid;gap:3px;min-width:0;color:var(--tp-muted);font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.04em}.terminal-pos-compact-field span{line-height:1;padding-left:2px}.terminal-pos-compact-field select{width:100%;height:34px;min-width:0;max-width:none;padding:0 28px 0 9px;border:1px solid var(--tp-line);border-radius:7px;background:var(--tp-panel);color:var(--tp-text);font:600 12px inherit}.terminal-pos-field-sequence{width:86px}.terminal-pos-field-warehouse{width:210px}.terminal-pos-field-price{width:118px}.terminal-pos-field-sequence select{width:86px !important;min-width:86px !important;max-width:86px !important}.terminal-pos-field-warehouse select{width:210px !important;min-width:210px !important;max-width:210px !important}.terminal-pos-field-price select{width:118px !important;min-width:118px !important;max-width:118px !important}
.terminal-pos-search-row{display:flex;align-items:center;gap:8px;padding:10px 14px;background:var(--tp-bg)}.terminal-pos-search{position:relative;flex:1}.terminal-pos-search input{width:100%;height:44px;padding:0 52px 0 14px;border:1px solid var(--tp-line);border-radius:9px;background:var(--tp-panel);color:var(--tp-text);font-size:14px;outline:0;box-shadow:0 2px 7px rgba(15,23,42,.04)}.terminal-pos-search input:focus{border-color:var(--tp-accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--tp-accent) 12%,transparent)}.terminal-pos-search-shortcut{position:absolute;right:8px;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:38px;height:38px;border:0;border-radius:8px;background:transparent;color:var(--tp-accent-strong);cursor:pointer}.terminal-pos-search-shortcut:hover{background:color-mix(in srgb,var(--tp-accent) 10%,transparent)}.terminal-pos-search-shortcut img{width:28px;height:28px;display:block;object-fit:contain}.terminal-pos-icon-button{width:42px;height:42px;border:1px solid var(--tp-line);border-radius:9px;background:var(--tp-panel);color:var(--tp-text);font-size:22px;cursor:pointer}.terminal-pos-product-count{color:var(--tp-muted);font-size:11px;white-space:nowrap}
.terminal-pos-product-grid{flex:1;overflow:auto;padding:0 14px 16px;display:grid;grid-template-columns:repeat(auto-fill,minmax(165px,1fr));grid-auto-rows:minmax(235px,auto);gap:10px;align-content:start}.terminal-pos-product-card{position:relative;display:flex;flex-direction:column;min-width:0;border:1px solid var(--tp-line);border-radius:10px;background:var(--tp-panel);overflow:hidden;cursor:pointer;text-align:left;color:var(--tp-text);box-shadow:0 2px 7px rgba(15,23,42,.04);transition:transform .14s ease,border-color .14s ease,box-shadow .14s ease}.terminal-pos-product-card:hover{transform:translateY(-2px);border-color:color-mix(in srgb,var(--tp-accent) 55%,var(--tp-line));box-shadow:0 7px 18px rgba(15,23,42,.09)}.terminal-pos-product-card:active{transform:translateY(0)}.terminal-pos-product-image{height:130px;margin:8px 8px 0;display:grid;place-items:center;border-radius:7px;background:var(--tp-bg);overflow:hidden}.terminal-pos-product-image img{width:100%;height:100%;object-fit:contain}.terminal-pos-product-placeholder{font-size:42px;color:color-mix(in srgb,var(--tp-accent) 46%,transparent);font-weight:300}.terminal-pos-product-meta{display:flex;justify-content:space-between;gap:6px;padding:7px 10px 0;color:var(--tp-muted);font-size:10px}.terminal-pos-product-card strong{padding:7px 10px 3px;font-size:12.5px;line-height:1.35;min-height:42px;text-transform:uppercase}.terminal-pos-product-card footer{margin-top:auto;display:flex;align-items:end;justify-content:space-between;gap:7px;padding:8px 10px 10px}.terminal-pos-product-card footer b{font-size:16px;color:var(--tp-accent-strong)}.terminal-pos-product-stock{font-size:9px;color:var(--tp-muted);text-align:right}.terminal-pos-empty-products{margin:auto;padding:28px;color:var(--tp-muted);text-align:center}
.terminal-pos-cart{min-width:0;height:100%;display:flex;flex-direction:column;background:var(--tp-panel);overflow:hidden}.terminal-pos-cart-header{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:13px 16px;border-bottom:1px solid var(--tp-line)}.terminal-pos-eyebrow{display:block;margin-bottom:2px;color:var(--tp-muted);font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.11em}.terminal-pos-cart-header h2{margin:0;font-size:17px}.terminal-pos-cart-header small{color:var(--tp-muted);font-size:10px}.terminal-pos-clear-cart{display:inline-flex;align-items:center;gap:8px;border:0;background:transparent;color:rgb(220,38,38);font-weight:500;font-size:14px;cursor:pointer;padding:0}.terminal-pos-clear-cart:hover{opacity:.9}.terminal-pos-trash-icon{width:18px;height:18px;display:block;flex:none}.terminal-pos-cart-lines{flex:1;overflow:auto;padding:3px 15px}.terminal-pos-cart-empty{height:100%;min-height:220px;display:grid;place-items:center;align-content:center;gap:5px;text-align:center;color:var(--tp-muted)}.terminal-pos-cart-empty-icon{font-size:36px;color:color-mix(in srgb,var(--tp-accent) 38%,transparent)}.terminal-pos-cart-empty strong{color:var(--tp-text);font-size:14px}.terminal-pos-cart-empty small{font-size:11px}
.terminal-pos-cart-line{display:grid;grid-template-columns:minmax(0,1fr) 104px 134px 42px;gap:12px;align-items:center;padding:11px 0;border-bottom:1px dashed var(--tp-line)}.terminal-pos-cart-product{min-width:0}.terminal-pos-cart-product strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;text-transform:uppercase}.terminal-pos-cart-product small{display:block;margin-top:3px;color:var(--tp-muted);font-size:10px}.terminal-pos-cart-product button{margin-top:4px;padding:0;border:0;background:transparent;color:var(--tp-accent);font-size:9.5px;font-weight:700;cursor:pointer}.terminal-pos-qty{display:grid;gap:4px}.terminal-pos-qty span,.terminal-pos-line-money span{color:var(--tp-muted);font-size:9px;font-weight:800;letter-spacing:.03em;text-transform:uppercase}.terminal-pos-qty-simple input{width:100%;height:34px;border:1px solid var(--tp-line);border-radius:6px;text-align:center;background:var(--tp-panel);color:var(--tp-text);font-size:12px;font-weight:700;padding:0 6px}.terminal-pos-line-money{text-align:right;display:grid;justify-items:end;gap:4px}.terminal-pos-line-money input{width:100%;height:34px;border:1px solid var(--tp-line);border-radius:6px;background:var(--tp-panel);color:var(--tp-text);font-size:12px;font-weight:700;text-align:right;padding:0 7px}.terminal-pos-price-readonly{display:block;font-size:12px;color:var(--tp-text);font-weight:700}.terminal-pos-line-remove{width:38px;height:38px;border:1px solid rgba(220,38,38,.20);border-radius:9px;background:#fff5f5;color:rgb(220,38,38);display:grid;place-items:center;cursor:pointer;padding:0}.terminal-pos-line-remove:hover{background:#fee2e2}.terminal-pos-line-remove .terminal-pos-trash-icon{width:18px;height:18px}
.terminal-pos-checkout{padding:12px 15px 14px;border-top:1px solid var(--tp-line);background:var(--tp-panel)}.terminal-pos-customer-row{display:grid;grid-template-columns:minmax(0,1fr) 42px;gap:8px}.terminal-pos-customer-select{display:grid;gap:4px;color:var(--tp-muted);font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.06em}.terminal-pos-customer-select select{height:42px;border:1px solid var(--tp-line);border-radius:7px;background:var(--tp-bg);color:var(--tp-text);padding:0 9px;font-size:11px}.terminal-pos-add-customer{align-self:end;height:42px;border:1px solid var(--tp-line);border-radius:7px;background:var(--tp-panel);color:var(--tp-accent);font-size:25px;cursor:pointer}.terminal-pos-customer-hint{margin:4px 0 7px;color:var(--tp-muted);font-size:9px;min-height:13px}.terminal-pos-summary{padding:5px 3px}.terminal-pos-summary>div{display:flex;align-items:center;justify-content:space-between;padding:3px 0;font-size:11px}.terminal-pos-summary>div span{color:var(--tp-muted)}.terminal-pos-summary>div strong{color:var(--tp-accent-strong)}.terminal-pos-summary-total{margin-top:4px;padding-top:7px!important;border-top:1px solid var(--tp-line);font-size:15px!important}.terminal-pos-summary-total span{color:var(--tp-text)!important;font-weight:800}.terminal-pos-summary-total strong{font-size:19px}.terminal-pos-cash-warning{margin:4px 0 8px;padding:7px 9px;border-radius:6px;background:#fff4e5;color:#8a4d00;font-size:10px}.terminal-pos-pay{width:100%;height:56px;display:grid;grid-template-columns:1fr auto 22px;align-items:center;gap:8px;border:0;border-radius:9px;padding:0 16px;background:var(--tp-accent);color:#fff;font-weight:800;cursor:pointer;box-shadow:0 5px 14px color-mix(in srgb,var(--tp-accent) 28%,transparent)}.terminal-pos-pay:hover:not(:disabled){background:var(--tp-accent-strong)}.terminal-pos-pay strong{font-size:18px}.terminal-pos-pay:disabled{opacity:.45;cursor:not-allowed;box-shadow:none}
.terminal-pos-dialog{width:min(560px,calc(100vw - 30px));max-width:none;padding:0;border:0;border-radius:13px;background:transparent}.terminal-pos-dialog::backdrop{background:rgba(15,23,42,.5);backdrop-filter:blur(2px)}.terminal-pos-dialog-panel{background:var(--tp-panel,#fff);color:var(--tp-text,#172033);border:1px solid var(--tp-line,#d9e0ea);border-radius:13px;box-shadow:0 20px 55px rgba(15,23,42,.24);overflow:hidden}.terminal-pos-dialog-panel>header{display:flex;align-items:start;justify-content:space-between;gap:12px;padding:17px 19px;border-bottom:1px solid var(--tp-line,#d9e0ea)}.terminal-pos-dialog-panel h2{margin:0;font-size:20px}.terminal-pos-dialog-close{width:32px;height:32px;border:0;border-radius:7px;background:var(--tp-bg,#f3f6fb);color:var(--tp-text,#172033);font-size:20px;cursor:pointer}.terminal-pos-dialog-panel>footer{display:flex;justify-content:flex-end;gap:8px;padding:13px 19px;border-top:1px solid var(--tp-line,#d9e0ea)}.terminal-pos-payment-total{display:flex;justify-content:space-between;align-items:center;margin:16px 19px;padding:13px 14px;border-radius:9px;background:var(--tp-soft,#edf3ff)}.terminal-pos-payment-total span{color:var(--tp-muted,#64748b);font-weight:700}.terminal-pos-payment-total strong{font-size:22px;color:var(--tp-accent-strong,#103b80)}.terminal-pos-payment-rows{padding:0 19px;display:grid;gap:8px}.terminal-pos-payment-row{display:grid;grid-template-columns:1.2fr .8fr 1fr 32px;gap:7px}.terminal-pos-payment-row select,.terminal-pos-payment-row input{height:38px;border:1px solid var(--tp-line,#d9e0ea);border-radius:6px;background:var(--tp-panel,#fff);color:var(--tp-text,#172033);padding:0 8px;font-size:11px}.terminal-pos-payment-row button{border:0;border-radius:6px;background:#fff0f0;color:#b42318;cursor:pointer}.terminal-pos-link-button{margin:10px 19px;border:0;background:transparent;color:var(--tp-accent,#174ea6);font-weight:700;cursor:pointer}.terminal-pos-payment-balance{display:grid;grid-template-columns:1fr auto;gap:5px 12px;margin:10px 19px 16px;padding:10px 12px;border-top:1px solid var(--tp-line,#d9e0ea);border-bottom:1px solid var(--tp-line,#d9e0ea);font-size:11px}.terminal-pos-payment-balance strong{text-align:right}.terminal-pos-dialog-error{margin:0 19px 13px;padding:9px;border-radius:6px;background:#fef1f0;color:#b42318;font-size:11px}.terminal-pos-serial-panel p{margin:13px 19px;color:var(--tp-muted,#64748b);font-size:11px}.terminal-pos-serial-list{max-height:340px;overflow:auto;padding:0 19px 14px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.terminal-pos-serial-option{display:flex;gap:8px;align-items:center;padding:9px;border:1px solid var(--tp-line,#d9e0ea);border-radius:7px;font-size:11px;cursor:pointer}.terminal-pos-serial-option:has(input:checked){border-color:var(--tp-accent,#174ea6);background:var(--tp-soft,#edf3ff)}.terminal-pos-completion-panel{text-align:center;padding:24px}.terminal-pos-completion-check{width:56px;height:56px;display:grid;place-items:center;margin:0 auto 10px;border-radius:50%;background:#edf7f2;color:#16644b;font-size:28px;font-weight:900}.terminal-pos-completion-panel h2{margin:4px 0 5px}.terminal-pos-completion-number{margin:7px auto 11px;font-size:20px;font-weight:850;color:var(--tp-accent-strong,#103b80)}.terminal-pos-completion-actions{display:flex;justify-content:center;flex-wrap:wrap;gap:7px;margin-top:18px}.button.ghost{background:transparent;color:var(--tp-text,#172033);border:1px solid var(--tp-line,#d9e0ea)}
.theme-dark .terminal-pos-search-shortcut img,html[data-theme-mode="dark"] .terminal-pos-search-shortcut img{filter:invert(1) brightness(1.25)}
html[data-theme-mode="dark"] .terminal-pos,.theme-dark .terminal-pos{--tp-bg:#111827;--tp-panel:#172033;--tp-line:#344054;--tp-muted:#a8b3c5;--tp-text:#f1f5f9;--tp-soft:#1e3152}.theme-dark .terminal-pos-line-remove,html[data-theme-mode="dark"] .terminal-pos-line-remove{background:#3c2024}.theme-dark .terminal-pos-cash-warning,html[data-theme-mode="dark"] .terminal-pos-cash-warning{background:#3a2a17;color:#f7c87d}
@media(max-width:1180px){.terminal-pos>form{grid-template-columns:minmax(0,1.45fr) minmax(340px,.9fr)}.terminal-pos-product-grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr))}.terminal-pos-toolbar{grid-template-columns:1fr;row-gap:10px}.terminal-pos-toolbar-fields{grid-template-columns:86px 200px 116px;justify-content:start}.terminal-pos-field-sequence{width:86px}.terminal-pos-field-warehouse{width:200px}.terminal-pos-field-price{width:116px}.terminal-pos-field-sequence select{width:86px !important;min-width:86px !important;max-width:86px !important}.terminal-pos-field-warehouse select{width:200px !important;min-width:200px !important;max-width:200px !important}.terminal-pos-field-price select{width:116px !important;min-width:116px !important;max-width:116px !important}.terminal-pos-doc-tab{min-width:82px;padding:0 10px}}
@media(max-width:900px){.pos-mode .app-content:has(.terminal-pos){overflow:auto}.terminal-pos{height:auto;min-height:calc(100vh - var(--topbar-height,64px));overflow:visible}.terminal-pos>form{display:block}.terminal-pos-products{height:58vh;border-right:0;border-bottom:1px solid var(--tp-line)}.terminal-pos-cart{height:auto;min-height:65vh}.terminal-pos-cart-lines{min-height:300px}.terminal-pos-document-tabs{overflow:auto}.terminal-pos-toolbar-fields{display:none}}
@media(max-width:600px){.terminal-pos-toolbar{padding:8px}.terminal-pos-search-row{padding:8px}.terminal-pos-product-grid{padding:0 8px 12px;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:minmax(215px,auto);gap:7px}.terminal-pos-product-image{height:115px}.terminal-pos-cart-line{grid-template-columns:minmax(0,1fr) 72px 90px 38px;gap:8px}.terminal-pos-line-money{display:grid;justify-items:end;gap:4px}.terminal-pos-payment-row{grid-template-columns:1fr 1fr 32px}.terminal-pos-payment-row .terminal-pos-payment-reference{grid-column:1/3}.terminal-pos-serial-list{grid-template-columns:1fr}}

.terminal-pos-inline-note{color:var(--tp-muted);font-size:10px;line-height:1.35}.terminal-pos-cart .app-field-help-tip,.terminal-pos-checkout .app-field-help-tip{display:none !important}

/* v206 · impresión POS integrada, Ticket 80 mm */
.terminal-pos-print-dialog{width:min(460px,calc(100vw - 28px));max-width:460px}
.terminal-pos-print-panel{display:flex;flex-direction:column;gap:0;background:var(--tp-panel,#fff)}
.terminal-pos-print-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:14px 16px;border-bottom:1px solid var(--tp-line,#d9e0ea)}
.terminal-pos-print-head h2{margin:3px 0 0;font-size:17px;color:var(--tp-text,#172033)}
.terminal-pos-print-status{display:grid;place-items:center;align-content:center;gap:8px;padding:24px 18px 20px;color:var(--tp-muted,#64748b);text-align:center}.terminal-pos-print-status strong{color:var(--tp-text,#172033);font-size:15px}.terminal-pos-print-status span:last-child{font-size:11px}.terminal-pos-print-status.is-error{color:#b42318}.terminal-pos-print-status.is-error strong{color:#b42318}.terminal-pos-print-spinner{width:28px;height:28px;border:3px solid color-mix(in srgb,var(--tp-accent,#174ea6) 18%,transparent);border-top-color:var(--tp-accent,#174ea6);border-radius:50%;animation:terminal-pos-spin .55s linear infinite}.terminal-pos-print-status.is-error .terminal-pos-print-spinner{display:none}@keyframes terminal-pos-spin{to{transform:rotate(360deg)}}
.terminal-pos-print-frame{position:fixed;left:-9999px;top:-9999px;width:1px;height:1px;opacity:0;pointer-events:none;border:0}
.terminal-pos-print-actions{display:flex;justify-content:flex-end;gap:8px;padding:12px 16px;border-top:1px solid var(--tp-line,#d9e0ea)}
@media(max-width:600px){.terminal-pos-print-actions{display:grid;grid-template-columns:1fr 1fr}.terminal-pos-print-actions .button{width:100%}}
/* v267 · selector de presentación por línea en POS */
.terminal-pos-presentation{display:block;width:100%;margin-top:5px;min-height:30px;padding:4px 7px;border:1px solid #d7e0ea;border-radius:8px;background:#f8fbff;color:#334155;font-size:10px;font-weight:650}

/* v282 · Placa vehicular opcional en modal de cobro POS */
.terminal-pos-vehicle-plate{display:grid;gap:5px;margin:12px 19px 4px;padding:11px 12px;border:1px solid var(--tp-line,#d9e0ea);border-radius:8px;background:var(--tp-bg,#f8fafc)}
.terminal-pos-vehicle-plate[hidden]{display:none!important}
.terminal-pos-vehicle-plate>span{font-size:11px;font-weight:800;color:var(--tp-text,#172033)}
.terminal-pos-vehicle-plate>input{height:40px;border:1px solid var(--tp-line,#d9e0ea);border-radius:7px;background:var(--tp-panel,#fff);color:var(--tp-text,#172033);padding:0 11px;font-size:13px;text-transform:uppercase}
.terminal-pos-vehicle-plate>small{font-size:10px;color:var(--tp-muted,#64748b);line-height:1.35}

/* === v321 · carrito POS: cantidad/precio compactos y total siempre visible === */
.terminal-pos-cart-line.has-amount{grid-template-columns:minmax(0,1fr) 82px 96px 112px 38px;gap:8px}
.terminal-pos-cart-line.has-amount .terminal-pos-qty-simple input{padding-left:4px;padding-right:4px}
.terminal-pos-cart-line.has-amount .terminal-pos-line-money input{min-width:0;width:100%;padding-left:5px;padding-right:6px}
.terminal-pos-cart-line.has-amount .terminal-pos-line-amount{min-width:0}
.terminal-pos-cart-line.has-amount .terminal-pos-line-amount input{width:100%;min-width:0}
@media(max-width:600px){.terminal-pos-cart-line.has-amount{grid-template-columns:minmax(0,1fr) 66px 80px 92px 34px;gap:6px}.terminal-pos-cart-line.has-amount .terminal-pos-line-money input,.terminal-pos-cart-line.has-amount .terminal-pos-qty-simple input{font-size:11px;padding-left:3px;padding-right:4px}}

/* v339 · alerta inmediata cuando el precio queda debajo del costo */
.terminal-pos-line-money input.is-below-cost,.terminal-pos-price-readonly.is-below-cost{border-color:#dc2626!important;background:#fff1f2!important;color:#991b1b!important;box-shadow:0 0 0 2px rgba(220,38,38,.10)}
.terminal-pos-cost-warning{display:block;max-width:150px;color:#dc2626;font-size:9px;font-weight:800;line-height:1.2;text-align:right}
.terminal-pos-cost-warning[hidden]{display:none!important}
.terminal-pos-cart-line.has-below-cost{background:rgba(220,38,38,.025)}
