.pos-section{padding:18px 20px 92px;background:#f4f7fb;color:#10234a}.pos-toolbar{display:grid;grid-template-columns:1fr minmax(180px,240px) auto auto auto;gap:10px;align-items:end;margin-bottom:12px}.pos-toolbar h2{margin:0;font-size:24px}.pos-toolbar p{margin:4px 0 0;color:#60708d}.pos-toolbar label,.pos-fields label{display:grid;gap:5px;font-size:12px;font-weight:700}.pos-toolbar select,.pos-fields select,.pos-search input,.pos-dialog input{height:42px;border:1px solid #cfdaeb;border-radius:9px;padding:0 12px;background:#fff}.pos-action,.pos-search button,.pos-dialog form button{height:42px;border:0;border-radius:9px;padding:0 16px;background:#087a5b;color:#fff;font-weight:700}.pos-layout{display:grid;grid-template-columns:minmax(255px,28%) minmax(430px,1fr) minmax(280px,320px);gap:14px;min-height:640px}.pos-products-panel,.pos-cart-panel,.pos-checkout-panel{min-width:0}.pos-products-panel,.pos-cart-panel,.pos-card{background:#fff;border:1px solid #dbe4f0;border-radius:12px;box-shadow:0 5px 18px rgba(22,45,80,.05)}.pos-products-panel{padding:12px}.pos-search{display:flex;gap:7px}.pos-search input{min-width:0;flex:1}.pos-products{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:12px;max-height:580px;overflow:auto}.pos-product{min-height:92px;border:1px solid #dbe4f0;border-radius:10px;background:#fff;text-align:left;padding:10px;cursor:pointer}.pos-product:hover{border-color:#14a579;background:#effcf7}.pos-product strong,.pos-product span,.pos-product small{display:block}.pos-product strong{font-size:13px}.pos-product span{margin-top:7px;color:#087a5b;font-weight:800}.pos-product small{color:#6c7890;margin-top:3px}.pos-cart-panel{overflow:hidden}.pos-cart-panel>header{display:flex;justify-content:space-between;align-items:center;padding:14px 16px;border-bottom:1px solid #e1e7f0}.pos-cart-panel>header div{display:grid;gap:2px}.pos-cart-panel>header span{font-size:12px;color:#6c7890}.pos-cart-panel>header button{border:0;background:none;color:#d64444;font-weight:700}.pos-cart-table{overflow:auto;max-height:525px}.pos-cart-table table{width:100%;border-collapse:collapse}.pos-cart-table th{padding:11px 8px;text-align:left;background:#153d67;color:#fff;font-size:12px}.pos-cart-table td{padding:10px 8px;border-bottom:1px solid #e6ebf2;font-size:13px;vertical-align:middle}.pos-cart-table input{width:82px;height:34px;border:1px solid #b9c8dd;border-radius:7px;padding:0 7px;text-align:right}.pos-cart-table input.pos-price{background:#edfff5;border-color:#48b98c;font-weight:800}.pos-cart-table button{border:0;background:#feecec;color:#cc3030;border-radius:7px;width:30px;height:30px}.pos-price-rule{margin:10px 14px;color:#49617e;font-size:12px}.pos-checkout-panel{display:grid;align-content:start;gap:10px}.pos-card{padding:14px}.pos-card header{display:flex;justify-content:space-between;align-items:center}.pos-card header button{border:0;background:none;color:#1266d4;font-weight:700}.pos-customer-name{font-size:17px;font-weight:800;margin-top:12px}.pos-card small{color:#64748b}.pos-fields{display:grid;gap:10px}.pos-totals{display:grid;gap:9px}.pos-totals div{display:flex;justify-content:space-between}.pos-grand-total{margin:5px -14px -14px;padding:14px;background:#eaf4ff;border-radius:0 0 12px 12px;font-size:20px;color:#075fd1}.pos-payment-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:10px}.pos-payment-grid button{height:40px;border:1px solid #cfdaeb;border-radius:8px;background:#fff}.pos-payment-grid button.active{background:#0b795b;color:#fff;border-color:#0b795b}.pos-charge{height:56px;border:0;border-radius:11px;background:#0bac79;color:#fff;font-weight:900;font-size:18px}.pos-charge:disabled{background:#a9b4c2}.pos-empty{text-align:center;color:#7a8799;padding:40px 10px}.pos-dialog{position:fixed;inset:0;z-index:90;background:rgba(8,20,42,.55);display:grid;place-items:center;padding:18px}.pos-dialog>div{width:min(720px,100%);max-height:80vh;overflow:auto;background:#fff;border-radius:14px;padding:18px}.pos-dialog header{display:flex;justify-content:space-between;align-items:center}.pos-dialog header h3{margin:0}.pos-dialog header button{border:0;background:none;font-size:26px}.pos-dialog form{display:flex;gap:8px;margin:14px 0}.pos-dialog form input{flex:1}.pos-customer-results{display:grid;gap:7px}.pos-result{border:1px solid #dbe4f0;border-radius:9px;padding:11px;text-align:left;background:#fff}.pos-result:hover{background:#effcf7}.pos-result strong,.pos-result span{display:block}.pos-result span{font-size:12px;color:#64748b;margin-top:3px}
@media(max-width:1100px){.pos-layout{grid-template-columns:1fr 1fr}.pos-checkout-panel{grid-column:1/-1;grid-template-columns:repeat(2,minmax(0,1fr))}.pos-charge{grid-column:1/-1}.pos-toolbar{grid-template-columns:1fr 200px auto}.pos-toolbar .pos-action:nth-of-type(n+2){display:none}}
@media(max-width:720px){.pos-toolbar{grid-template-columns:1fr}.pos-layout{grid-template-columns:1fr}.pos-checkout-panel{grid-column:auto;grid-template-columns:1fr}.pos-products{grid-template-columns:1fr 1fr}.pos-section{padding:12px 10px 86px}}
.pos-mixed-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:16px 0}.pos-mixed-grid label{display:grid;gap:5px;font-weight:700}.pos-mixed-grid input{text-align:right}
.pos-toolbar{grid-template-columns:1fr minmax(180px,240px) auto auto auto auto}.pos-pin-card{width:min(430px,100%);display:grid;gap:14px;background:#fff;border-radius:14px;padding:22px}.pos-pin-card header p{margin:5px 0;color:#64748b}.pos-pin-card label{display:grid;gap:7px;font-weight:800}.pos-pin-card input{font-size:24px;letter-spacing:.3em;text-align:center}.pos-cash-details{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:15px}.pos-cash-item{padding:14px;border:1px solid #dbe4f0;border-radius:10px;background:#f7faff}.pos-cash-item span,.pos-cash-item strong{display:block}.pos-cash-item span{color:#64748b;font-size:12px}.pos-cash-item strong{margin-top:5px;font-size:17px}.pos-cash-open{color:#087a5b}.pos-cash-closed{color:#d14343}
.pos-dialog form.pos-pin-card{display:grid;grid-template-columns:1fr;align-items:stretch;gap:16px;width:min(420px,calc(100vw - 32px));margin:0;padding:24px;box-sizing:border-box}.pos-pin-card header{display:flex;align-items:flex-start;gap:12px}.pos-pin-card header h3{font-size:22px}.pos-pin-card header p{line-height:1.45}.pos-pin-card header button{flex:none;width:36px;height:36px;border-radius:8px;color:#52647e;cursor:pointer}.pos-pin-card header button:hover,.pos-pin-card header button:focus-visible{background:#edf3fa;color:#10234a}.pos-pin-card label{width:100%;font-size:14px}.pos-pin-card input{width:100%;height:52px;box-sizing:border-box}.pos-pin-card .commerce-message{min-height:0;margin:0;padding:0;white-space:normal;overflow-wrap:anywhere;line-height:1.4}.pos-pin-card .commerce-message:not(:empty){padding:11px 12px;border-radius:9px;background:#fff0f0;color:#a51d1d}.pos-pin-card>.pos-action{width:100%;height:48px;font-size:16px}

/* El POS usa el ancho disponible; los demás módulos conservan su ancho habitual. */
body.pos-mode .shell{width:min(100%,1800px)}
body.pos-mode .app-view{padding-inline:clamp(10px,1.5vw,28px)}
body.pos-mode .pos-section{min-height:calc(100dvh - 205px);padding:clamp(10px,1.25vw,22px) clamp(10px,1.4vw,26px) 92px}
body.pos-mode .pos-layout{grid-template-columns:minmax(260px,24%) minmax(480px,1fr) minmax(290px,340px);gap:clamp(10px,1vw,18px);min-height:calc(100dvh - 300px)}
body.pos-mode .pos-products,body.pos-mode .pos-cart-table{max-height:calc(100dvh - 310px)}
body.pos-mode .pos-action,body.pos-mode .pos-search button,body.pos-mode .pos-payment-grid button{min-height:44px}

@media(min-width:1500px){
  body.pos-mode .pos-products{grid-template-columns:repeat(3,minmax(0,1fr))}
  body.pos-mode .pos-cart-table input{width:96px}
}

@media(max-width:1100px){
  body.pos-mode .pos-toolbar{grid-template-columns:minmax(220px,1fr) minmax(190px,240px);align-items:end}
  body.pos-mode .pos-toolbar .pos-action{display:block}
  body.pos-mode .pos-layout{grid-template-columns:minmax(250px,36%) minmax(420px,1fr);min-height:auto}
  body.pos-mode .pos-checkout-panel{grid-column:1/-1;grid-template-columns:repeat(2,minmax(0,1fr))}
  body.pos-mode .pos-charge{grid-column:1/-1}
  body.pos-mode .pos-products,body.pos-mode .pos-cart-table{max-height:52dvh}
}

@media(max-width:800px){
  body.pos-mode .app-view{padding:12px 8px 88px}
  body.pos-mode .topbar{align-items:flex-start;flex-wrap:wrap;margin-bottom:12px;padding:12px}
  body.pos-mode .topbar-title h2{font-size:clamp(24px,8vw,34px)}
  body.pos-mode .session-context-badge{max-width:100%;margin-left:0;order:3;width:100%}
  body.pos-mode .pos-toolbar{grid-template-columns:1fr 1fr}
  body.pos-mode .pos-toolbar>div,body.pos-mode .pos-toolbar>label{grid-column:1/-1}
  body.pos-mode .pos-layout{grid-template-columns:1fr}
  body.pos-mode .pos-checkout-panel{grid-column:auto;grid-template-columns:1fr}
  body.pos-mode .pos-charge{grid-column:auto}
  body.pos-mode .pos-products{grid-template-columns:repeat(2,minmax(0,1fr));max-height:46dvh}
  body.pos-mode .pos-cart-table{max-height:50dvh}
}

@media(max-width:520px){
  body.pos-mode .pos-toolbar{grid-template-columns:1fr}
  body.pos-mode .pos-toolbar>*{width:100%}
  body.pos-mode .pos-toolbar .pos-action{min-height:48px}
  body.pos-mode .pos-products{grid-template-columns:1fr;max-height:42dvh}
  body.pos-mode .pos-product{min-height:78px}
  body.pos-mode .pos-cart-table{max-height:46dvh}
  body.pos-mode .pos-cart-table th,body.pos-mode .pos-cart-table td{padding:9px 6px}
  body.pos-mode .pos-cart-table input{width:70px}
  body.pos-mode .pos-payment-grid{grid-template-columns:1fr}
  body.pos-mode .pos-dialog{padding:10px}
}

@media(orientation:landscape) and (max-height:600px){
  body.pos-mode .pos-products,body.pos-mode .pos-cart-table{max-height:55dvh}
  body.pos-mode .topbar{margin-bottom:10px}
}

/* Controles de línea y diálogos de captura como FormPosVenta. */
.pos-product{color:#10234a!important;white-space:normal}.pos-product strong{color:#10234a!important;min-height:32px}.pos-payment-grid button{color:#10234a}.pos-payment-grid button.active{color:white}
.pos-line-meta{display:block;color:#64748b;margin-top:5px}.pos-line-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}.pos-cart-table .pos-line-actions button{width:auto;height:auto;min-height:34px;padding:6px 9px;background:#edf4ff;color:#075abd;font-size:12px;font-weight:700;white-space:normal}.pos-cart-table button:disabled{opacity:.45;cursor:not-allowed}.pos-number{white-space:nowrap;text-align:right;font-variant-numeric:tabular-nums}.pos-cart-table td:first-child{min-width:225px}.pos-cart-table th:not(:first-child){text-align:right}
.pos-line-dialog{border:0;border-radius:16px;width:min(460px,calc(100vw - 32px));padding:24px;color:#10234a;box-shadow:0 22px 80px #10234a44}.pos-line-dialog::backdrop{background:#08142a99}.pos-line-dialog header,.pos-line-dialog footer{display:flex;align-items:center;justify-content:space-between;gap:12px}.pos-line-dialog h3{margin:0}.pos-line-dialog input{display:block;box-sizing:border-box;width:100%;padding:14px;margin:10px 0;font-size:24px;border:1px solid #bacce3;border-radius:8px;text-align:right}.pos-line-dialog button{border:0;border-radius:8px;padding:12px 18px;background:#087a5b;color:#fff;font-weight:700}.pos-line-dialog #posEditCancel{background:#e8edf5;color:#10234a}.pos-line-dialog #posEditError{color:#b42318}.pos-line-dialog #posEditHint{font-size:13px;color:#52647b}#posFiscalLegend{line-height:1.4}.pos-price-rule{line-height:1.6}
.pos-labels-card{box-sizing:border-box;display:grid;gap:12px;width:min(680px,100%)!important}.pos-labels-card>p{margin:0;color:#52647b}.pos-labels-card form{margin:0}.pos-labels-card .pos-customer-results{max-height:32vh;overflow:auto}.pos-labels-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.pos-labels-options label{display:grid;gap:5px;font-size:13px;font-weight:700}.pos-labels-options input,.pos-labels-options select{width:100%;height:42px;box-sizing:border-box;border:1px solid #cfdaeb;border-radius:8px;padding:0 10px}.pos-labels-card #posLabelsMessage{color:#b42318;min-height:18px}.pos-labels-card #posLabelsPrint{width:100%}@media(max-width:560px){.pos-labels-options{grid-template-columns:1fr}.pos-labels-card form{flex-wrap:wrap}.pos-labels-card form input{min-width:100%}}
.pos-labels-card #posLabelsMessage:not([data-error="true"]){color:#52647b}

@media(max-width:520px){.pos-cart-table table,.pos-cart-table tbody{display:block}.pos-cart-table thead{display:none}.pos-cart-table tr{position:relative;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:12px 8px;border-bottom:1px solid #dbe4f0}.pos-cart-table td{border:0;min-width:0!important;padding:6px!important}.pos-cart-table td:first-child{grid-column:1/-1;padding-right:35px!important}.pos-cart-table td:last-child{position:absolute;right:5px;top:8px}.pos-cart-table td.pos-number{white-space:normal;text-align:left}.pos-cart-table td.pos-number::before{display:block;font-size:11px;color:#64748b;margin-bottom:5px}.pos-cart-table td:nth-child(2)::before{content:'Cantidad'}.pos-cart-table td:nth-child(3)::before{content:'Precio'}.pos-cart-table td:nth-child(4)::before{content:'Importe'}}

@media(max-width:520px){.pos-cart-table table{min-width:0;width:100%}.pos-cart-table td:first-child{white-space:normal}.pos-cart-table tr{box-sizing:border-box;width:100%}}
/* POS escritorio: catálogo, venta y cobro con desplazamiento independiente. */
body.pos-mode{background:#edf3f9;color:#142b4b}
body.pos-mode .shell{width:100%;max-width:none}
body.pos-mode .app-view{padding:12px 14px 72px}
body.pos-mode .topbar{min-height:58px;padding:10px 16px;margin:0 0 10px;gap:16px;border:1px solid #dce6f0;border-radius:12px;box-shadow:0 3px 14px #19375206;align-items:center}
body.pos-mode .topbar-title{display:flex;align-items:center;gap:16px;min-width:0}
body.pos-mode .topbar-date{display:none}
body.pos-mode .topbar-title h2{font-size:20px;margin:0;line-height:1.2}
body.pos-mode .session-context-badge{margin-left:auto;min-height:0;padding:4px 12px;background:transparent;border:0;border-left:1px solid #dde6f1;border-radius:0;gap:2px}
body.pos-mode .session-context-label{font-size:10px}
body.pos-mode .session-context-badge strong{font-size:14px}
body.pos-mode .session-context-badge>span:last-child{font-size:11px}
body.pos-mode .logout-button{min-height:34px;height:34px}
body.pos-mode .pos-section{padding:0;min-height:0;background:transparent}
body.pos-mode .pos-toolbar{display:flex;align-items:center;gap:8px;margin:0 0 10px;min-height:52px;flex-wrap:wrap}
body.pos-mode .pos-toolbar>div{flex:1;min-width:170px}
body.pos-mode .pos-toolbar h2{display:none}
body.pos-mode .pos-toolbar p{margin:0;font-size:12px;font-weight:600;line-height:1.5}
body.pos-mode .pos-toolbar label{width:205px;font-size:10px;gap:3px}
body.pos-mode .pos-toolbar select{height:34px;width:100%;font-size:11px;padding:0 8px}
body.pos-mode .pos-action{display:block!important;height:36px;min-height:36px;padding:0 12px;font-size:12px;border:1px solid #d6e2ee;box-shadow:0 2px 5px #162e4b05}
body.pos-mode .pos-action.secondary-button{background:white;color:#183b63}
body.pos-mode #posMessage:empty{display:none}
body.pos-mode #posMessage:not(:empty){margin:0 0 8px;padding:7px 12px;font-size:12px;max-height:60px;overflow:auto}
body.pos-mode .pos-layout{grid-template-columns:minmax(220px,23%) minmax(0,1fr) minmax(258px,21%);gap:12px;height:calc(100dvh - 218px);min-height:0}
body.pos-mode .pos-products-panel,body.pos-mode .pos-cart-panel{display:flex;flex-direction:column;min-height:0;border-radius:12px;border-color:#dce6f0;box-shadow:0 3px 12px #17345a04}
body.pos-mode .pos-products-panel{padding:12px}
body.pos-mode .pos-products-panel h3{font-size:15px;margin:0 0 10px}
body.pos-mode .pos-search{flex-shrink:0}
body.pos-mode .pos-search input{height:36px;font-size:12px;padding:0 8px;width:0}
body.pos-mode .pos-search button{height:36px;min-height:36px;padding:0 10px;font-size:12px}
body.pos-mode .pos-products{grid-template-columns:repeat(2,minmax(0,1fr));max-height:none;min-height:0;overflow-y:auto;align-content:start;gap:8px;scrollbar-width:thin;margin-top:12px;padding-right:3px}
body.pos-mode .pos-product{min-height:136px;padding:10px 8px;background:linear-gradient(155deg,#fff,#f8fbfe);overflow-wrap:anywhere;box-shadow:none}
body.pos-mode .pos-product strong{font-size:12px;line-height:1.35;min-height:34px}
body.pos-mode .pos-product small{font-size:10px;line-height:1.45}
body.pos-mode .pos-product span{font-size:15px;color:#08785c;margin-top:8px}
body.pos-mode .pos-cart-panel>header{padding:12px 14px;min-height:56px;flex-shrink:0}
body.pos-mode .pos-cart-panel>header strong{font-size:16px}
body.pos-mode #posClear{background:#fff0f0;padding:8px 10px;border-radius:7px;font-size:11px}
body.pos-mode .pos-cart-table{max-height:none;min-height:0;flex:1;overflow-y:auto;scrollbar-width:thin}
body.pos-mode .pos-cart-table table{table-layout:fixed;width:100%;min-width:0}
body.pos-mode .pos-cart-table th{position:sticky;top:0;z-index:1;background:#173e67;font-size:10px;padding:10px 6px}
body.pos-mode .pos-cart-table th:first-child{width:36%}
body.pos-mode .pos-cart-table th:nth-child(2){width:12%}
body.pos-mode .pos-cart-table th:last-child{width:34px}
body.pos-mode .pos-cart-table td{font-size:11px;padding:12px 6px;min-width:0;overflow-wrap:anywhere}
body.pos-mode .pos-cart-table td:first-child{min-width:0;white-space:normal}
body.pos-mode .pos-cart-table tbody tr:nth-child(even){background:#f7faff}
body.pos-mode .pos-number{white-space:normal;font-variant-numeric:tabular-nums}
body.pos-mode .pos-line-meta{font-size:10px;line-height:1.4}
body.pos-mode .pos-line-actions{gap:4px;margin-top:8px}
body.pos-mode .pos-cart-table .pos-line-actions button{font-size:10px;min-height:26px;padding:4px 6px}
body.pos-mode .pos-cart-table .pos-quantity{width:100%;min-width:0;height:32px;border:1px solid #d0def0;background:#f0f6ff;color:#16457c;font-weight:700;padding:0 2px}
body.pos-mode .pos-line-total{font-weight:800;color:#153353}
body.pos-mode .pos-cart-table .pos-remove{width:26px;height:28px;font-size:18px}
body.pos-mode .pos-rules{border-top:1px solid #e6edf5;padding:9px 12px;font-size:11px;color:#5c708b;flex-shrink:0}
body.pos-mode .pos-rules summary{cursor:pointer}
body.pos-mode .pos-price-rule{font-size:11px;margin:6px 12px;line-height:1.4}
body.pos-mode .pos-checkout-panel{display:flex;flex-direction:column;gap:8px;min-height:0;overflow-y:auto;scrollbar-width:thin}
body.pos-mode .pos-card{padding:11px 12px;border-radius:10px;flex-shrink:0;font-size:12px}
body.pos-mode .pos-customer-name{font-size:14px;margin-top:9px;overflow-wrap:anywhere}
body.pos-mode .pos-card small{font-size:10px}
body.pos-mode .pos-fields{gap:8px}
body.pos-mode .pos-fields label{font-size:11px;gap:4px}
body.pos-mode .pos-fields select{width:100%;min-width:0;height:34px;font-size:11px;padding:0 7px}
body.pos-mode .pos-totals{gap:7px}
body.pos-mode .pos-grand-total{background:#dcfaed;color:#064a3a;margin:3px -12px -11px;padding:13px 12px;font-size:18px;gap:6px}
body.pos-mode .pos-payment-grid{gap:6px;margin-top:8px}
body.pos-mode .pos-payment-grid button{height:32px;min-height:32px;font-size:11px;padding:0 5px}
body.pos-mode .pos-charge{position:sticky;bottom:0;flex-shrink:0;margin-top:auto;width:100%;min-height:46px;height:46px;font-size:16px;border:3px solid #edf3f9;background:#087a5b;box-shadow:0 -6px 12px #edf3f9;z-index:2}
body.pos-mode .pos-charge:disabled{background:#93a6a0}
body.pos-mode .bottom-nav{width:min(calc(100% - 28px),900px);bottom:10px;padding:5px;gap:5px}
body.pos-mode .bottom-nav .nav-item{min-height:34px;font-size:12px}
body.pos-mode button:focus-visible,body.pos-mode input:focus-visible,body.pos-mode select:focus-visible{outline:2px solid #1675cb;outline-offset:2px}
@media(min-width:1600px){body.pos-mode .pos-cart-table td{font-size:13px}body.pos-mode .pos-product strong{font-size:14px}body.pos-mode .pos-product small{font-size:12px}body.pos-mode .pos-product span{font-size:18px}body.pos-mode .pos-card{font-size:14px}body.pos-mode .pos-layout{grid-template-columns:minmax(280px,23%) minmax(0,1fr) minmax(290px,21%)}}
@media(max-width:1100px){body.pos-mode .pos-layout{height:auto;grid-template-columns:minmax(200px,35%) minmax(0,1fr)}body.pos-mode .pos-products-panel,body.pos-mode .pos-cart-panel{height:55vh}body.pos-mode .pos-checkout-panel{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;overflow:visible}body.pos-mode .pos-charge{grid-column:1/-1;bottom:64px}body.pos-mode .pos-toolbar{gap:6px}}
@media(max-width:600px){body.pos-mode .pos-layout{grid-template-columns:1fr}body.pos-mode .pos-checkout-panel{grid-template-columns:1fr}body.pos-mode .pos-products-panel{height:38vh}body.pos-mode .topbar-title h2{font-size:16px}body.pos-mode .session-context-badge{max-width:55%}body.pos-mode .pos-toolbar>div{flex-basis:100%}body.pos-mode .pos-cart-table td:nth-child(4)::before{content:'ITBIS'}body.pos-mode .pos-cart-table td:nth-child(5)::before{content:'Importe'}}
@media(min-width:1001px){body.pos-mode .pos-layout{height:calc(100dvh - 252px)}body.pos-mode .pos-cart-table th{font-size:9px}body.pos-mode .pos-cart-table td{word-break:normal;overflow-wrap:anywhere}body.pos-mode .pos-cart-table th:nth-child(2){width:11%}body.pos-mode .pos-cart-table th:first-child{width:33%}}
body.pos-mode .bottom-nav{grid-template-columns:repeat(6,minmax(0,1fr))}
body.pos-mode .pos-cart-table .pos-remove{min-width:0;padding:0}
body.pos-mode .pos-search input,body.pos-mode .pos-fields select,body.pos-mode .pos-toolbar select{min-height:34px}
body.pos-mode .pos-cart-table .pos-quantity{min-height:32px;padding:0}
body.pos-mode .pos-checkout-panel .pos-card header{min-height:0;padding:0}
body.pos-mode .pos-checkout-panel .pos-card header button{min-height:26px;padding:0}
@media(min-width:1001px){body.pos-mode .pos-layout{height:calc(100dvh - 240px)}body.pos-mode .topbar{height:64px;box-sizing:border-box}body.pos-mode .session-context-badge{order:-1;margin-left:0;border-left:0;border-right:1px solid #dde6f1;padding-left:0}body.pos-mode .topbar-title{margin-right:auto}}
@media(min-width:1001px) and (max-height:820px){body.pos-mode .pos-checkout-panel{gap:6px}body.pos-mode .pos-card{padding:8px 10px}body.pos-mode .pos-customer-name{margin-top:5px;font-size:13px}body.pos-mode .pos-fields{gap:5px}body.pos-mode .pos-fields label{gap:2px}body.pos-mode .pos-fields select{height:30px;min-height:30px}body.pos-mode .pos-grand-total{margin:2px -10px -8px;padding:10px}body.pos-mode .pos-payment-grid{margin-top:5px;gap:4px}body.pos-mode .pos-payment-grid button{min-height:28px;height:28px}body.pos-mode .pos-card header{margin-bottom:0}}

/* Detalle lineal de FormPosVenta2: conservar códigos e importes completos. */
body.pos-mode .pos-products{grid-template-columns:repeat(2,minmax(0,1fr))}
body.pos-mode .pos-product{overflow-wrap:normal;word-break:normal}
body.pos-mode .pos-product span{white-space:nowrap;font-size:clamp(12px,1vw,16px)}
body.pos-mode .pos-cart-table{overflow-x:auto}
body.pos-mode .pos-cart-table table{table-layout:fixed;min-width:calc(var(--pos-code-width,70px) + 600px);width:100%}
body.pos-mode .pos-cart-table th:first-child{width:var(--pos-code-width,110px)}
body.pos-mode .pos-cart-table th:nth-child(2){width:auto}
body.pos-mode .pos-cart-table th:nth-child(3){width:72px}
body.pos-mode .pos-cart-table th:nth-child(4){width:125px}
body.pos-mode .pos-cart-table th:nth-child(5){width:125px}
body.pos-mode .pos-cart-table th:last-child{width:170px}
body.pos-mode .pos-cart-table th,body.pos-mode .pos-cart-table td{font-family:'Segoe UI',sans-serif;vertical-align:middle}
body.pos-mode .pos-cart-table th:nth-child(n+3){text-align:center}
body.pos-mode .pos-cart-table td.pos-line-code{font-weight:700;white-space:nowrap;overflow-wrap:normal}
body.pos-mode .pos-cart-table td.pos-line-description{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.pos-mode .pos-cart-table td.pos-line-description strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.pos-mode .pos-cart-table td.pos-number{white-space:nowrap;text-align:center;overflow-wrap:normal;font-weight:700}
body.pos-mode .pos-cart-table .pos-value{width:100%;height:34px;border-radius:8px;font:700 12px 'Segoe UI',sans-serif;white-space:nowrap}
body.pos-mode .pos-cart-table .pos-quantity{background:#fff3de;color:#a65b00;border:1px solid #ffe2ac}
body.pos-mode .pos-cart-table .pos-price-value{background:#e9f1ff;color:#075fd1;border:1px solid #cbdcff}
body.pos-mode .pos-cart-table .pos-value:disabled{opacity:1;cursor:default;background:#f0f2f5;color:#414b59;border-color:#e2e6eb}
body.pos-mode .pos-cart-table td.pos-line-actions{display:flex;align-items:center;justify-content:center;gap:6px;min-height:60px;white-space:nowrap}
body.pos-mode .pos-cart-table .pos-line-actions button{margin:0;min-height:32px;white-space:nowrap}
body.pos-mode .pos-cart-table .pos-line-actions .pos-remove{width:auto;height:32px;padding:4px 8px;font-size:11px;background:#feecec;color:#cc3030}
@media(max-width:520px){body.pos-mode .pos-cart-table table{display:table}body.pos-mode .pos-cart-table thead{display:table-header-group}body.pos-mode .pos-cart-table tbody{display:table-row-group}body.pos-mode .pos-cart-table tr{display:table-row}body.pos-mode .pos-cart-table td{display:table-cell;position:static!important;padding:10px 6px!important}body.pos-mode .pos-cart-table td::before{display:none!important}}
@media(max-width:1100px){body.pos-mode .pos-checkout-panel{overflow:visible}body.pos-mode .pos-charge{position:static;margin-top:0;box-shadow:none}}
@media(min-width:801px) and (max-width:1400px){body.pos-mode .pos-products{grid-template-columns:1fr}}

/* Búsqueda superior en lugar del catálogo de tarjetas. */
body.pos-mode .pos-product-lookup{position:relative;z-index:5;margin:0 0 10px;padding:11px 14px;background:#fff;border:1px solid #dce6f0;border-radius:12px}
body.pos-mode .pos-product-lookup .pos-search{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px}
body.pos-mode .pos-product-lookup .pos-search label{font:700 14px 'Segoe UI',sans-serif;white-space:nowrap}
body.pos-mode .pos-product-lookup .pos-search input{width:100%;min-width:0;box-sizing:border-box;height:42px;font:14px 'Segoe UI',sans-serif}
body.pos-mode .pos-product-lookup .pos-search button{height:42px;min-height:42px;white-space:nowrap}
body.pos-mode .pos-product-lookup .pos-products{position:absolute;top:calc(100% - 2px);left:0;right:0;display:block;max-height:min(340px,50dvh);overflow:auto;margin:0;padding:6px;background:#fff;border:1px solid #ccd9e8;border-radius:0 0 12px 12px;box-shadow:0 16px 30px #17345a25}
body.pos-mode .pos-product-lookup .pos-products.hidden{display:none!important}
body.pos-mode .pos-product-lookup .pos-product{display:grid;grid-template-columns:minmax(110px,18%) minmax(0,1fr) auto;align-items:center;gap:12px;width:100%;min-height:44px;padding:7px 10px;border:0;border-bottom:1px solid #edf1f6;border-radius:0;background:#fff;white-space:normal}
body.pos-mode .pos-product-lookup .pos-product:hover,body.pos-mode .pos-product-lookup .pos-product:focus-visible{background:#eaf6ff}
body.pos-mode .pos-product-lookup .pos-product strong,body.pos-mode .pos-product-lookup .pos-product span,body.pos-mode .pos-product-lookup .pos-product small{min-height:0;margin:0;font:600 12px 'Segoe UI',sans-serif;color:#10234a}
body.pos-mode .pos-product-lookup .pos-product strong{white-space:nowrap}
body.pos-mode .pos-product-lookup .pos-product span{font-weight:700;white-space:normal}
body.pos-mode .pos-product-lookup .pos-product small{text-align:right;white-space:normal}
body.pos-mode .pos-layout{grid-template-columns:minmax(0,1fr) minmax(270px,320px);height:calc(100dvh - 310px)}
body.pos-mode .pos-cart-panel{height:100%;min-height:0}
@media(max-width:1100px){body.pos-mode .pos-layout{grid-template-columns:minmax(0,1fr) minmax(255px,30%);height:calc(100dvh - 310px)}body.pos-mode .pos-checkout-panel{grid-column:auto;display:flex;flex-direction:column;overflow-y:auto}body.pos-mode .pos-charge{position:sticky;bottom:0;margin-top:auto}}
@media(max-width:800px){body.pos-mode .pos-layout{display:flex;flex-direction:column;height:auto}body.pos-mode .pos-cart-panel{height:55dvh}body.pos-mode .pos-checkout-panel{overflow:visible}body.pos-mode .pos-charge{position:static}body.pos-mode .pos-product-lookup .pos-search{grid-template-columns:1fr auto}body.pos-mode .pos-product-lookup .pos-search label{grid-column:1/-1}body.pos-mode .pos-product-lookup .pos-product{grid-template-columns:100px minmax(0,1fr)}body.pos-mode .pos-product-lookup .pos-product small{grid-column:1/-1;text-align:left}}
@media(min-width:801px) and (max-height:820px){body.pos-mode .pos-layout{height:auto}body.pos-mode .pos-cart-panel{height:calc(100dvh - 310px);min-height:420px}body.pos-mode .pos-checkout-panel{overflow:visible}body.pos-mode .pos-charge{position:static;margin-top:0;box-shadow:none}}
@media(min-width:801px) and (max-height:820px){body.pos-mode .pos-checkout-panel{gap:4px}body.pos-mode .pos-card{padding:6px 8px}body.pos-mode .pos-payment-grid{gap:3px;margin-top:4px}body.pos-mode .pos-payment-grid button{height:27px;min-height:27px}body.pos-mode .pos-charge{height:42px;min-height:42px}}

/* El cierre del selector de cliente permanece visible aunque la lista sea larga. */
body.pos-mode #posCustomerModal>div{box-sizing:border-box;width:min(760px,calc(100vw - 32px));max-height:calc(100dvh - 36px);padding:0 18px 18px}
body.pos-mode #posCustomerModal header{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:68px;margin:0 -18px;padding:10px 18px;background:#fff;border-bottom:1px solid #e1e7f0}
body.pos-mode #posCustomerModal header h3{min-width:0;margin:0}
body.pos-mode #posCustomerClose{flex:none;display:inline-flex;align-items:center;justify-content:center;min-width:90px;min-height:38px;padding:5px 12px;border:1px solid #cad8e8;border-radius:8px;background:#f3f7fc;color:#183b63;font:700 14px 'Segoe UI',sans-serif;cursor:pointer}
body.pos-mode #posCustomerClose:hover{background:#e6f0fc}
body.pos-mode #posCustomerModal #posCustomerSearch{margin:14px 0}

/* Selector de cliente con el campo y el botón de búsqueda de FormPosVenta2. */
body.pos-mode .pos-customer-card{display:grid;gap:6px}
body.pos-mode .pos-customer-card>label{font:700 12px 'Segoe UI',sans-serif;color:#64748b}
body.pos-mode .pos-customer-picker{display:grid;grid-template-columns:minmax(0,1fr) 42px;gap:7px;align-items:stretch;min-width:0}
body.pos-mode .pos-customer-picker .pos-customer-name{box-sizing:border-box;display:block;min-width:0;height:42px;line-height:40px;margin:0;padding:0 12px;border:1px solid #e8eef6;border-radius:10px;background:#f8fafc;color:#10234a;font-family:'Segoe UI',sans-serif;font-size:14px;font-weight:600;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
body.pos-mode .pos-customer-picker #posFindCustomer{display:flex;align-items:center;justify-content:center;width:42px;min-height:42px;padding:0;border:0;border-radius:10px;background:#11a689;color:#fff;font:700 27px 'Segoe UI',sans-serif;cursor:pointer}
body.pos-mode .pos-customer-picker #posFindCustomer:hover{background:#0c8c74}
body.pos-mode .pos-customer-card>small{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(min-width:801px) and (max-height:820px){body.pos-mode .pos-customer-card{gap:3px}body.pos-mode .pos-customer-picker .pos-customer-name{height:36px;line-height:34px}body.pos-mode .pos-customer-picker #posFindCustomer{min-height:36px}body.pos-mode .pos-customer-picker{grid-template-columns:minmax(0,1fr) 36px}body.pos-mode .pos-customer-picker #posFindCustomer{width:36px}}

/* Menú de cabecera POS: grupos y colores del menú de FormPosVenta2. */
.pos-header-menu-wrap{display:none;position:relative;z-index:30}
body.pos-mode .pos-header-menu-wrap{display:block}
body.pos-mode #posHeaderMenuButton{display:flex;align-items:center;justify-content:center;gap:9px;min-width:104px;height:42px;padding:0 13px;border:1px solid #1d4ed8;border-radius:8px;background:#2563eb;color:#86efac;font:700 16px 'Segoe UI',sans-serif;cursor:pointer}
body.pos-mode #posHeaderMenuButton:hover,body.pos-mode #posHeaderMenuButton[aria-expanded="true"]{background:#1d4ed8}
body.pos-mode .pos-header-menu{position:absolute;top:calc(100% + 4px);left:0;box-sizing:border-box;width:290px;max-height:min(70dvh,620px);overflow:auto;padding:8px;border:1px solid #dbe4f0;border-radius:12px;background:#fff;box-shadow:0 12px 30px #10234a30;color:#1e3a5c;font-family:'Segoe UI',sans-serif}
body.pos-mode .pos-header-menu.hidden{display:none}
body.pos-mode .pos-header-menu-group+.pos-header-menu-group{border-top:1px solid #e6edf5;margin-top:5px;padding-top:5px}
body.pos-mode .pos-header-menu-heading{padding:8px 10px 5px;color:#64748b;font-size:11px;font-weight:700;letter-spacing:.07em}
body.pos-mode .pos-header-menu button[role="menuitem"]{display:flex;align-items:center;width:100%;min-height:46px;padding:8px 12px;border:0;border-radius:8px;background:#fff;color:#1e3a5c;text-align:left;font:500 14px 'Segoe UI',sans-serif;cursor:pointer}
body.pos-mode .pos-header-menu button[role="menuitem"]:hover,body.pos-mode .pos-header-menu button[role="menuitem"]:focus-visible{background:#eaf4ff;box-shadow:inset 4px 0 #11a689}
body.pos-mode .pos-header-menu button[role="menuitem"]:disabled{color:#8996a8;cursor:not-allowed}
body.pos-mode .pos-header-menu button[role="menuitem"]:disabled:hover{background:#fff;box-shadow:none}
body.pos-mode .pos-header-menu button[data-code="INICIAR_CAJA"]{color:#059669}
body.pos-mode .pos-header-menu button[data-code="CERRAR_CAJA"]{color:#ea580c}
body.pos-mode .pos-header-menu button[data-code="APAGADO"]{color:#dc2626}
@media(min-width:1001px){body.pos-mode .pos-header-menu-wrap{order:-1}body.pos-mode .topbar-title{margin-right:auto}}
@media(max-width:600px){body.pos-mode .pos-header-menu{left:auto;right:0;max-width:calc(100vw - 24px)}}
.pos-disbursement-card{font-family:'Segoe UI',sans-serif}.pos-disbursement-card>header button{color:#243b5a;font-size:26px;line-height:1;cursor:pointer}.pos-disbursement-card>p{color:#415575}.pos-disbursement-form{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px!important}.pos-disbursement-form label{display:grid;gap:5px;font-size:13px;font-weight:700;min-width:0}.pos-disbursement-form input,.pos-disbursement-form select{box-sizing:border-box;width:100%;height:42px;border:1px solid #cfdaeb;border-radius:9px;padding:0 10px;background:#fff}.pos-disbursement-form button{grid-column:1/-1}.pos-disbursement-list{display:grid;gap:8px;max-height:30vh;overflow:auto}.pos-disbursement-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px;border:1px solid #dbe4f0;border-radius:9px}.pos-disbursement-row span{display:block;color:#60708d;font-size:12px}.pos-disbursement-row button{border:1px solid #f2b3b3;border-radius:7px;background:#fff2f2;color:#b32626;padding:8px;font-weight:700}.pos-disbursement-row button:disabled{opacity:.5}.pos-disbursement-row strong{white-space:nowrap}@media(max-width:600px){.pos-disbursement-form{grid-template-columns:1fr}.pos-disbursement-row{flex-wrap:wrap}}

/* POS compacto: la tabla y el panel comparten el espacio disponible sin tapar la navegación. */
body.pos-mode{background:#eaf2f9}
body.pos-mode .app-view{padding:8px 10px 74px}
body.pos-mode .topbar{display:flex;align-items:center;gap:12px;min-height:48px;height:auto;margin-bottom:6px;padding:6px 14px;background:#fff;border:1px solid #dce6f0;border-radius:9px}
body.pos-mode .session-context-badge{order:0;flex:none;margin:0;padding:0 12px 0 0;border:0;border-right:1px solid #dce6f0}
body.pos-mode .session-context-label{font-size:9px}
body.pos-mode .session-context-badge strong{font-size:13px}
body.pos-mode .session-context-badge>span:last-child{font-size:10px}
body.pos-mode .pos-header-menu-wrap{order:1}
body.pos-mode #posHeaderMenuButton{min-width:74px;height:34px;font-size:12px;color:#fff}
body.pos-mode .topbar-title{order:2;margin:0 auto 0 0}
body.pos-mode .topbar-title h2{font-size:16px;white-space:nowrap}
body.pos-mode .pos-header-user{order:3;max-width:240px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#516682;font:600 11px 'Segoe UI',sans-serif}
body.pos-mode .logout-button{order:4;flex:none}
body.pos-mode .pos-section{background:transparent}
body.pos-mode .pos-toolbar{justify-content:flex-end;min-height:42px;margin-bottom:6px;gap:6px}
body.pos-mode .pos-toolbar label{width:185px;font-size:9px}
body.pos-mode .pos-toolbar select{height:29px;min-height:29px}
body.pos-mode .pos-action{height:32px;min-height:32px;padding-inline:10px;font-size:11px}
body.pos-mode .pos-product-lookup{display:flex;align-items:center;gap:8px;margin-bottom:8px;padding:7px 9px}
body.pos-mode .pos-scan-icon{display:grid;place-items:center;flex:none;width:38px;height:38px;border:1px solid #e3ebf5;border-radius:7px;background:#edf5fd;color:#0862d2;font-size:24px}
body.pos-mode .pos-product-lookup .pos-search{flex:1;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 8px}
body.pos-mode .pos-product-lookup .pos-search label{grid-column:1/-1;font-size:11px}
body.pos-mode .pos-product-lookup .pos-search input,body.pos-mode .pos-product-lookup .pos-search button{height:34px;min-height:34px}
body.pos-mode .pos-layout{display:grid;grid-template-columns:minmax(0,1fr) clamp(258px,24vw,350px);gap:9px;height:calc(100dvh - 286px);min-height:380px}
body.pos-mode .pos-cart-panel{height:100%;min-height:0}
body.pos-mode .pos-cart-panel>header{min-height:48px;padding:8px 12px}
body.pos-mode .pos-cart-panel>header strong{font-size:14px}
body.pos-mode .pos-cart-table{flex:1;min-height:0;overflow:auto}
body.pos-mode .pos-cart-table table{min-width:calc(var(--pos-code-width,70px) + 585px)}
body.pos-mode .pos-cart-table th{padding:9px 7px;font-size:10px}
body.pos-mode .pos-cart-table td{padding:9px 7px;font-size:12px}
body.pos-mode .pos-cart-table th:nth-child(3){width:74px}
body.pos-mode .pos-cart-table th:nth-child(4){width:128px}
body.pos-mode .pos-cart-table th:nth-child(5){width:132px}
body.pos-mode .pos-cart-table th:last-child{width:175px}
body.pos-mode .pos-cart-table th:nth-child(5),body.pos-mode .pos-cart-table td:nth-child(5){text-align:right}
body.pos-mode .pos-cart-table td.pos-line-actions{display:table-cell;text-align:center;min-height:0}
body.pos-mode .pos-cart-table .pos-line-actions button[data-edit="mayor"]{background:#eaf2ff;color:#075fc6}
body.pos-mode .pos-checkout-panel{display:flex;flex-direction:column;grid-column:auto;gap:7px;min-height:0;overflow-y:auto;overflow-x:hidden}
body.pos-mode .pos-card{padding:8px 10px}
body.pos-mode .pos-customer-card{gap:3px}
body.pos-mode .pos-customer-picker .pos-customer-name{height:34px;line-height:32px;font-size:12px}
body.pos-mode .pos-customer-picker{grid-template-columns:minmax(0,1fr) 34px}
body.pos-mode .pos-customer-picker #posFindCustomer{width:34px;min-height:34px}
body.pos-mode .pos-fields{gap:5px}
body.pos-mode .pos-fields select{height:30px;min-height:30px}
body.pos-mode .pos-payment-grid{margin-top:6px;gap:5px}
body.pos-mode .pos-payment-grid button{height:31px;min-height:31px}
body.pos-mode .pos-checkout-footer{position:sticky;bottom:0;z-index:3;display:grid;gap:4px;margin-top:auto;padding-top:4px;background:#eaf2f9}
body.pos-mode .pos-totals{gap:5px}
body.pos-mode .pos-grand-total{margin:2px -10px -8px;padding:8px 10px;font-size:17px}
body.pos-mode .pos-charge{position:static;box-sizing:border-box;width:100%;height:38px;min-height:38px;margin:0;border:0;border-radius:7px;box-shadow:none;font-size:14px}
body.pos-mode .bottom-nav{width:min(calc(100% - 20px),1000px);bottom:8px;z-index:20}
@media(max-width:800px){body.pos-mode .pos-layout{display:flex;flex-direction:column;height:auto;min-height:0}body.pos-mode .pos-cart-panel{height:48dvh;min-height:300px}body.pos-mode .pos-checkout-panel{overflow:visible}body.pos-mode .pos-checkout-footer{position:static}body.pos-mode .topbar{flex-wrap:wrap}body.pos-mode .pos-header-user{max-width:100%}}
@media(max-height:700px) and (min-width:801px){body.pos-mode .pos-layout{height:calc(100dvh - 286px);min-height:340px}}
.pos-payment-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.pos-payment-options button{min-height:40px;border:1px solid #ccd9eb;border-radius:9px;background:#fff;color:#0d294f;cursor:pointer}.pos-payment-options button.active{background:#087b6d;color:#fff;border-color:#087b6d}.pos-payment-details,.pos-customer-create-form,.pos-mixed-grid{display:grid;gap:10px;margin-top:12px}.pos-payment-details label,.pos-customer-create-form label{display:grid;gap:5px}.pos-payment-details input,.pos-payment-details select,.pos-customer-create-form input,.pos-customer-create-form select,.pos-mixed-grid input{width:100%;box-sizing:border-box;min-height:38px;border:1px solid #cbd8eb;border-radius:8px;padding:7px}.pos-customer-create-form footer,.pos-ticket-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}.pos-ticket-actions button{min-height:38px}.pos-customer-create-form p[role=alert]{color:#ac2530}
.pos-dialog form.pos-customer-create-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.pos-dialog form.pos-customer-create-form>p,.pos-dialog form.pos-customer-create-form>footer{grid-column:1/-1}.pos-dialog form.pos-customer-create-form label{display:grid;gap:5px}.pos-dialog form.pos-customer-create-form input,.pos-dialog form.pos-customer-create-form select{width:100%;box-sizing:border-box}.pos-dialog form.pos-customer-create-form footer{display:flex;justify-content:flex-end;gap:8px}@media(max-width:560px){.pos-dialog form.pos-customer-create-form{grid-template-columns:1fr}}

.pos-money-card{width:min(480px,100%)!important;display:grid;gap:16px;box-sizing:border-box}.pos-money-card>p{margin:0;color:#52647e;line-height:1.5}.pos-money-card label{display:grid;gap:7px;font-weight:700}.pos-money-card input{width:100%;box-sizing:border-box;font-size:22px;font-weight:700;text-align:right}.pos-money-total{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px;background:#eaf4ff;border-radius:10px}.pos-money-total strong{color:#075fd1;font-size:26px}.pos-money-card footer{display:flex;justify-content:flex-end;gap:8px}.pos-money-card footer button,.pos-money-card>.pos-action{min-height:42px;border-radius:8px;border:1px solid #cbd8eb;padding:0 16px}.pos-money-card p[role=alert]{color:#b4232f}.pos-money-card .pos-action,.pos-money-card footer .pos-action{background:#087a5b;color:white;border:0}.pos-money-card button:disabled{opacity:.55;cursor:not-allowed}#posCashOpen{margin-top:16px}.pos-dialog .hidden{display:none!important}

.pos-ticket-actions button:disabled{background:#e7edf5!important;color:#718096!important;border-color:#d6dfea!important;opacity:.7;cursor:not-allowed}
.pos-close-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.pos-close-summary>div{display:grid;gap:4px;padding:10px;border:1px solid #dbe4f0;border-radius:8px;background:#f7faff}.pos-close-summary span{font-size:12px;color:#52647e}.pos-close-summary strong{font-size:16px}.pos-close-summary .pos-close-theoretical{grid-column:1/-1;background:#e8f8f1;color:#087a5b}#posCashClosePending{margin-top:16px;margin-left:8px}#posCashMessage{color:#52647e;line-height:1.45}@media(max-width:560px){.pos-close-summary{grid-template-columns:1fr}#posCashClosePending{margin-left:0}}
#posCashModal #posCashOpen.hidden,#posCashModal #posCashClosePending.hidden,#posCloseModal #posCloseSupervisorWrap.hidden{display:none!important}
.pos-mobile-card{width:min(480px,100%)!important;box-sizing:border-box;display:grid;gap:12px}.pos-mobile-card>p{margin:0;line-height:1.45}.pos-mobile-card img{width:min(240px,100%);height:auto;justify-self:center;image-rendering:pixelated}.pos-mobile-card a{overflow-wrap:anywhere;color:#075fc6;font-weight:700}.pos-mobile-card form{display:grid;gap:8px}.pos-mobile-card label{display:grid;gap:5px}.pos-mobile-card input{width:100%;box-sizing:border-box;min-height:38px;border:1px solid #cbd8eb;border-radius:8px;padding:7px}.pos-mobile-card button{min-height:38px}.pos-mobile-card [role=alert]{color:#b4232f}

/* POS 2026-11-01: jerarquía de venta, espacio de trabajo y cobro. */
body.pos-mode .app-view{padding:14px clamp(12px,1.4vw,26px) 76px;background:#f3f7fb}
body.pos-mode .topbar{min-height:58px;margin-bottom:14px;padding:8px 16px;border-color:#dbe6f2;border-radius:14px;box-shadow:0 3px 14px #15395f0a}
body.pos-mode .pos-toolbar{min-height:48px;margin-bottom:10px;gap:8px}
body.pos-mode .pos-toolbar label{width:220px;font-size:11px;color:#334b68}
body.pos-mode .pos-toolbar select{height:40px;min-height:40px;font-size:12px}
body.pos-mode .pos-action{height:40px;min-height:40px;padding-inline:14px;font-size:12px}
body.pos-mode .pos-product-lookup{margin-bottom:14px;padding:12px 14px;border-radius:14px;border-color:#d7e4f1;box-shadow:0 3px 14px #15395f0a}
body.pos-mode .pos-scan-icon{width:44px;height:44px;border-radius:10px}
body.pos-mode .pos-product-lookup .pos-search label{font-size:13px;color:#183a61}
body.pos-mode .pos-product-lookup .pos-search input,body.pos-mode .pos-product-lookup .pos-search button{height:44px;min-height:44px}
body.pos-mode .pos-layout{gap:14px;height:calc(100dvh - 316px);min-height:440px;grid-template-columns:minmax(0,1fr) clamp(300px,25vw,380px)}
body.pos-mode .pos-cart-panel,body.pos-mode .pos-card{border-color:#d7e4f1;border-radius:14px;box-shadow:0 4px 18px #15395f0a}
body.pos-mode .pos-cart-panel>header{min-height:62px;padding:12px 18px}
body.pos-mode .pos-cart-panel>header strong{font-size:16px}
body.pos-mode .pos-cart-panel>header span{font-size:12px}
body.pos-mode .pos-cart-panel>header button{min-height:38px;padding:0 12px;border-radius:8px;background:#fff2f2}
body.pos-mode .pos-cart-table th{padding:12px 9px;background:#173e67;font-size:11px}
body.pos-mode .pos-cart-table td{padding:12px 9px;font-size:13px}
body.pos-mode .pos-cart-table th:last-child{width:210px}
body.pos-mode .pos-cart-table td.pos-line-actions{white-space:normal}
body.pos-mode .pos-cart-table td.pos-line-actions button{margin:2px;vertical-align:middle}
body.pos-mode .pos-cart-table td.pos-empty{padding:clamp(56px,12vh,130px) 18px!important;color:#617895;font-size:15px;font-weight:600}
body.pos-mode .pos-cart-table td.pos-empty::before{content:'▥';display:grid;place-items:center;width:62px;height:62px;margin:0 auto 16px;border-radius:16px;background:#eaf3fd;color:#2365b9;font-size:30px;font-weight:400}
body.pos-mode .pos-checkout-panel{gap:10px;height:100%;max-height:100%;min-height:0;overflow-y:auto}
body.pos-mode .pos-card{padding:12px 14px}
body.pos-mode .pos-card>strong,body.pos-mode .pos-fields label,body.pos-mode .pos-customer-card>label{color:#183a61;font-size:13px}
body.pos-mode .pos-customer-picker{grid-template-columns:minmax(0,1fr) 44px}
body.pos-mode .pos-customer-picker .pos-customer-name{height:44px;line-height:42px;font-size:13px}
body.pos-mode .pos-customer-picker #posFindCustomer{width:44px;min-height:44px}
body.pos-mode .pos-fields{gap:10px}
body.pos-mode .pos-fields select{height:44px;min-height:44px;font-size:13px}
body.pos-mode .pos-payment-grid{gap:7px;margin-top:10px}
body.pos-mode .pos-payment-grid button{height:auto;min-height:44px;padding:7px;font-size:12px}
body.pos-mode .pos-checkout-footer{position:sticky;bottom:0;z-index:3;flex:none;gap:8px;padding-top:8px;background:#f3f7fb}
body.pos-mode .pos-totals{gap:8px}
body.pos-mode .pos-grand-total{margin:4px -14px -12px;padding:13px 14px;background:#e0f7ec;color:#075f46;font-size:20px}
body.pos-mode .pos-charge{height:52px;min-height:52px;border-radius:10px;font-size:16px}
body.pos-mode .pos-charge:not(:disabled){background:#087b5d;box-shadow:0 4px 12px #087b5d2e}
body.pos-mode :is(button,input,select):focus-visible{outline:3px solid #3b82f6;outline-offset:2px}
@media(max-width:1100px){body.pos-mode .pos-layout{grid-template-columns:minmax(0,1fr) minmax(288px,33%)}body.pos-mode .pos-toolbar{flex-wrap:wrap;justify-content:flex-start}}
@media(max-width:800px){body.pos-mode .pos-layout{display:flex;flex-direction:column;height:auto;min-height:0}body.pos-mode .pos-cart-panel{height:clamp(300px,44dvh,480px)}body.pos-mode .pos-checkout-panel{overflow:visible}body.pos-mode .pos-checkout-footer{position:static}}
@media(min-width:801px) and (max-height:820px){body.pos-mode .pos-layout{height:auto}body.pos-mode .pos-cart-panel{height:max(420px,calc(100dvh - 316px))}body.pos-mode .pos-checkout-panel{height:auto;max-height:none;overflow:visible}body.pos-mode .pos-checkout-footer{position:static;margin-top:0}}
@media(max-width:600px){body.pos-mode .app-view{padding-inline:10px}body.pos-mode .pos-toolbar label{width:100%}body.pos-mode .pos-toolbar .pos-action{flex:1}body.pos-mode .pos-product-lookup .pos-search{grid-template-columns:1fr}body.pos-mode .pos-product-lookup .pos-search label{grid-column:auto}body.pos-mode .pos-product-lookup .pos-search button{width:100%}body.pos-mode .pos-cart-panel>header{padding-inline:12px}body.pos-mode .pos-cart-table td.pos-empty{padding-block:48px!important}}
