.payment-entry{display:flex;gap:6px;margin-top:9px}.payment-entry input{min-width:0;flex:1;border:1px solid #e8edf3;border-radius:7px;padding:0 9px;height:36px}.payment-entry button{border:0;background:#edf1ff;color:#315efb;border-radius:7px;padding:0 10px;font-weight:800}.payment-help{color:#7b8798;font-size:11px;margin-top:7px}.payment-list{margin-top:8px}.payment-line{display:flex;justify-content:space-between;align-items:center;color:#7b8798;font-size:12px;padding:4px 0}.payment-line button{border:0;background:transparent;color:#d05d67;cursor:pointer}.payment-edit{width:82px;border:1px solid #e8edf3;border-radius:5px;padding:4px 5px;color:#162033}
.customer-doc{display:flex;gap:6px;margin-top:7px}.customer-doc select,.customer-doc input{min-width:0;height:36px;border:1px solid #e8edf3;border-radius:7px;padding:0 8px}.customer-doc select{width:72px}.customer-doc input{flex:1}.customer-doc button{border:0;background:#edf1ff;color:#315efb;border-radius:7px;padding:0 9px;font-weight:800}.customer-hint{color:#7b8798;font-size:11px;margin:7px 0 0}.customer label small{font-weight:500;color:#7b8798}
.customer-code{margin-bottom:7px!important;border-color:#cbd7f7!important;background:#f8faff!important;font-weight:700}
.cart-header{grid-template-columns:minmax(210px,1fr) 82px 82px 108px 100px 104px;gap:8px}.cart-row{position:relative;grid-template-columns:minmax(210px,1fr) 82px 82px 108px 100px 104px;gap:8px;padding-right:88px!important}.price-input,.discount-input{width:100%;height:42px;border:1px solid #ccd6e5;border-radius:7px;padding:0 7px;background:#fbfcff;font-size:14px;font-weight:700;color:#162033;text-align:right}.price-input:focus,.discount-input:focus{outline:3px solid #315efb26;border-color:#315efb}.discount-input{color:#a45200}.cart-row>strong{white-space:nowrap}.cart-header span:nth-child(n+2){text-align:center}.cart-header span:nth-child(n+4){text-align:right}.remove-product{position:absolute;right:10px;top:12px;display:inline-flex;align-items:center;justify-content:center;gap:5px;min-width:70px;height:34px;padding:0 9px;border:1px solid #fecaca;border-radius:9px;background:#fff7f7;color:#c83d4f;font-size:11px;font-weight:800;line-height:1;cursor:pointer}.remove-product span[aria-hidden=true]{font-size:17px}.remove-product:hover,.remove-product:focus{border-color:#f87171;background:#fee2e2;outline:3px solid #ef44441f}@media(max-width:1100px){.cart-header{display:none}.cart-row{grid-template-columns:1fr 78px 78px 100px 90px 100px;gap:6px}}
.discount-editor{display:grid;grid-template-columns:38px 1fr;gap:4px}.discount-type{height:42px;border:1px solid #ffc58a;border-radius:7px;background:#fff8ef;color:#a45200;font-weight:800}.total-input{width:100%;height:42px;border:1px solid #b9c8ef;border-radius:7px;padding:0 8px;background:#f8faff;color:#2148d5;font-size:15px;font-weight:800;text-align:right}.total-input:focus{outline:3px solid #315efb26;border-color:#315efb}
.sale-meta{border-top:1px solid #e8edf3;margin-top:16px;padding-top:14px}.meta-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:8px}.meta-grid label,.global-discount label{display:block;color:#65748b;font-size:10px;font-weight:800}.meta-grid input,.meta-grid select,.global-discount input,.global-discount select{display:block;width:100%;height:34px;margin-top:5px;border:1px solid #dfe6f1;border-radius:7px;background:#fbfcff;padding:0 8px;color:#162033}.meta-grid input:disabled{color:#aeb8c7;background:#f3f5f8}.global-discount{margin-top:16px;padding:10px;border:1px solid #dfe6f1;border-radius:8px;background:#fbfcff}.global-discount>div{display:grid;grid-template-columns:52px 1fr;gap:5px}.global-discount small{display:block;color:#8793a6;font-size:10px;margin-top:5px}.global-discount-summary{display:flex!important;justify-content:space-between!important;color:#a45200!important}.global-discount-summary strong{color:#a45200!important}
.sunat-line-options{display:flex;flex-direction:column;align-items:stretch;gap:5px;margin-top:8px;width:100%}.sunat-affectation{display:flex;align-items:center;gap:6px}.sunat-line-options select{width:100%;height:28px;border:1px solid #d8e0ee;border-radius:5px;background:#f8faff;color:#52627a;font-size:10px}.sunat-help{color:#8793a6;font-size:9px;white-space:nowrap}.line-actions{display:flex;align-items:center;flex-wrap:wrap;gap:6px}.free-label{display:flex;align-items:center;gap:4px;color:#a45200;font-size:10px;font-weight:700;white-space:nowrap}.sunat-line-options input{accent-color:#315efb}.free-badge{display:inline-flex;align-items:center;height:22px;padding:0 6px;border-radius:5px;background:#fff0d9;color:#a45200;font-size:9px;font-weight:900;white-space:nowrap}.duplicate-free{height:26px;border:1px solid #f0a64a;border-radius:5px;background:#fff8ef;color:#a45200;font-size:10px;font-weight:900;cursor:pointer;padding:0 9px;white-space:nowrap}.duplicate-free:hover{background:#ffedcf}
.doc.active{background:#315efb!important;color:#fff!important;border-color:#315efb!important;box-shadow:0 5px 12px #315efb38;transform:translateY(-1px)}.doc:not(.active):hover{border-color:#9eb0f8;color:#315efb}
.customer-alert{background:#fff3e8;border:1px solid #ffc58a;color:#a45200;border-radius:7px;padding:9px 10px;font-size:11px;font-weight:800;margin-bottom:12px}.customer-alert.hidden{display:none}
.stock-alert{display:block;margin-top:6px;padding:6px 8px;border:1px solid #f3bd72;border-radius:6px;background:#fff7ed;color:#a45200;font-size:10px;font-weight:800;line-height:1.3}.physical-dispatch{display:block;margin-top:6px;padding:5px 8px;border-left:3px solid #315efb;border-radius:4px;background:#f1f5ff;color:#315efb;font-size:10px;font-weight:800;line-height:1.3}
.stock-summary{color:#52627a!important;font-weight:800}
.dispatch-v2-header,.dispatch-v2-row{grid-template-columns:minmax(220px,1fr) 22% 18% 24% 16% 20%;align-items:start}.dispatch-v2-row>label{display:flex;min-width:0;flex-direction:column;gap:5px;color:#65748b;font-size:10px;font-weight:800}.dispatch-v2-row .price-mode{width:100%;height:30px;border:1px solid #ccd6e5;border-radius:7px;background:#fff}.dispatch-v2-row .price-help{min-height:13px;color:#65748b;font-size:9px}.dispatch-v2-row .total-input[readonly]{background:#eef4ff;border-color:#9eb7ee;color:#183d9b}.dispatch-choice-modal{display:grid;place-items:center;position:fixed;inset:0;z-index:1000;background:#15234080}.dispatch-choice-card{width:min(520px,92vw);padding:24px;border-radius:14px;background:#fff;box-shadow:0 24px 70px #0004}.dispatch-options{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:18px 0}.dispatch-options section{display:grid;gap:8px;padding:12px;border:1px solid #dbe5f5;border-radius:10px}.dispatch-options button{display:grid;gap:5px;text-align:left}.dispatch-options small{font-weight:600}@media(max-width:900px){.dispatch-v2-header{display:none}.dispatch-v2-row{grid-template-columns:1fr 1fr}.dispatch-v2-row>:first-child{grid-column:1/-1}.dispatch-options{grid-template-columns:1fr}}
.dispatch-v2-cart{width:100%;min-width:0;max-width:100%;overflow-x:hidden}.dispatch-v2-cart .dispatch-v2-header{display:grid;grid-template-columns:20fr 16fr 28fr 16fr 20fr;gap:10px;min-width:0;width:100%;max-width:100%;box-sizing:border-box}.dispatch-v2-cart .dispatch-v2-row{display:grid;grid-template-columns:20fr 16fr 28fr 16fr 20fr;gap:10px;min-width:0;width:100%;max-width:100%;box-sizing:border-box;padding-right:13px!important;overflow:hidden}.dispatch-v2-row>:first-child{grid-column:1/-1;min-width:0;max-width:100%}.dispatch-v2-row>label{min-width:0;max-width:100%}.dispatch-v2-row .unit-select,.dispatch-v2-row .qty-input,.dispatch-v2-row .price-mode,.dispatch-v2-row .price-input,.dispatch-v2-row .discount-input,.dispatch-v2-row .total-input{box-sizing:border-box;width:100%;min-width:0;max-width:100%}.dispatch-v2-row>.remove{grid-column:1/-1;justify-self:end;position:static;max-width:100%;margin-top:2px}.dispatch-v2-row .price-help{overflow-wrap:anywhere}@media(max-width:900px){.dispatch-v2-cart .dispatch-v2-header{display:none}.dispatch-v2-cart .dispatch-v2-row{grid-template-columns:1fr;gap:9px}.dispatch-v2-row>:first-child,.dispatch-v2-row>.remove{grid-column:1}.dispatch-v2-row>.remove{justify-self:stretch;width:100%}}
.dispatch-choice-card h2{margin:0 0 14px}.dispatch-requested{display:grid;gap:4px;margin:0}.dispatch-requested span,.dispatch-option-title{color:#65748b;font-size:11px;font-weight:900;letter-spacing:.5px}.dispatch-requested strong{font-size:26px;color:#162033}.dispatch-options{align-items:stretch}.dispatch-option{display:flex!important;flex-direction:column;align-items:flex-start;gap:7px;min-width:0}.dispatch-option strong{font-size:22px;color:#162033}.dispatch-option>b{font-size:18px;color:#2148d5}.dispatch-option small{color:#a45200;font-weight:800}.dispatch-option button{width:100%;margin-top:auto}.dispatch-option-recommended{border:2px solid #315efb!important;background:#f5f8ff}.dispatch-option-recommended .dispatch-option-title{color:#2148d5}

/* Precio base, descuento, precio final unitario y total: seis campos sin overflow. */
.dispatch-v2-cart .dispatch-v2-row{grid-template-columns:14fr 14fr 27fr 20fr 25fr}

/* Venta rápida: jerarquía visual para atención en mostrador */
body{background:linear-gradient(135deg,#f7f9fd 0%,#f1f5fb 100%)}
.topbar{height:78px;box-shadow:0 3px 18px #1f376b0a}
.brand-logo{width:58px;height:58px;border-radius:16px}
.shell{max-width:1480px;padding-top:34px;padding-bottom:44px;gap:30px}
.workspace{min-width:0}
.page-title{margin-bottom:20px}
.page-title h1{font-size:32px;letter-spacing:-1px}
.page-actions{gap:8px}
.page-actions button{height:42px}
.search-wrap{height:66px;border-color:#b9c9ff;border-radius:15px;box-shadow:0 10px 26px #315efb12}
.search-wrap:focus-within{border-color:var(--blue);box-shadow:0 0 0 4px #315efb14,0 12px 28px #315efb17}
.search-wrap input{font-size:16px;font-weight:600}
.quick-hint{display:flex;align-items:center;gap:7px;margin:9px 3px 0;color:#75839a;font-size:11px;font-weight:700}
.keyboard-chip{display:inline-flex;align-items:center;height:22px;padding:0 7px;border:1px solid #d5def2;border-bottom-width:2px;border-radius:5px;background:#fff;color:#315efb;font-size:10px;font-weight:900;letter-spacing:.3px}
.hint-arrow{color:#b0bbcc;font-size:15px}
.section-heading{margin:25px 0 11px}
.section-heading h2{font-size:18px}
.cart{min-height:210px;padding:14px 18px 18px;border:1px solid #dce5f3;border-radius:16px;background:#ffffffb8;box-shadow:0 16px 38px #29477510}
.cart.empty{min-height:210px;background:#fff}
.cart-header{margin:0 -18px;padding:12px 18px;border-bottom:1px solid #dfe7f3;background:#f4f7fc;color:#70809a;font-size:10px;letter-spacing:.7px}
.cart-row{margin:10px 0 0;padding:15px 13px;border:1px solid #dfe7f2;border-radius:12px;background:#fff;box-shadow:0 5px 15px #2947750b}
.cart-row:hover{border-color:#b9c9ff;box-shadow:0 8px 20px #315efb12}
.cart-row strong{font-size:15px}
.cart-row small.stock-summary{display:inline-flex;margin-top:6px;padding:4px 7px;border-radius:5px;background:#f1f5ff;color:#4c6381!important;font-size:10px;letter-spacing:.1px}
.unit-select,.qty-input,.price-input,.discount-input,.total-input{border-radius:9px}
.unit-select:focus,.qty-input:focus,.price-input:focus,.discount-input:focus,.total-input:focus{outline:3px solid #315efb1c;border-color:#315efb;box-shadow:0 0 0 1px #315efb}
.checkout{top:18px;border:1px solid #dce5f3;box-shadow:0 18px 44px #29477518}
.checkout-head{padding-bottom:2px}
.checkout-head h2{font-size:26px;letter-spacing:-.5px}
.sale-number{border:1px solid #e1e8f4;background:#f5f8fd;color:#657793;font-weight:800}
.doc-picker,.customer,.sale-meta,.global-discount,.payment-label,.payments,.payment-entry,.payment-help,.totals,.message{position:relative;z-index:1}
.doc{transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease}
.doc.active{box-shadow:0 7px 16px #315efb2b;transform:translateY(-1px)}
.totals{background:#fbfcff;border:1px solid #e2e9f4;border-radius:11px;padding:14px 13px;margin-top:22px}
.totals .grand{border-top:1px dashed #dce5f2;padding-top:13px}
.totals .grand strong{font-size:29px}
.payment-label{margin-top:3px}
.payment{transition:background .15s ease,border-color .15s ease,transform .15s ease}
.payment:hover{border-color:#9fb4f5;transform:translateY(-1px)}
.finish{height:54px;border-radius:11px;font-size:15px}
.sunat-affectation{display:block}
.sunat-affectation .tax-affectation{width:100%}
.sunat-help{display:block;margin-top:3px}
@media(max-width:1100px){.shell{grid-template-columns:minmax(0,1fr) 410px}.cart-header,.cart-row{grid-template-columns:minmax(190px,1fr) 78px 78px 96px 92px 96px;gap:7px}}

/* Maestro de productos */
.catalog-action{color:#315efb!important;border-color:#cbd7fa!important}
.product-master-card{width:min(1240px,100%);max-height:min(900px,94vh);overflow:auto;background:#f8faff;border-radius:18px;box-shadow:0 25px 80px #16203355;padding:28px}
.product-master-card .modal-head{background:#fff;margin:-28px -28px 18px;padding:24px 28px;border-bottom:1px solid #e3eaf5}
.product-master-card .modal-head h2{font-size:28px;letter-spacing:-.7px}
.product-master-card .modal-help{max-width:720px;margin-bottom:0}
.catalog-toolbar{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-bottom:12px}
.catalog-search{height:42px;display:flex;align-items:center;gap:8px;flex:1;min-width:270px;background:#fff;border:1px solid #dce5f3;border-radius:9px;padding:0 11px;color:#315efb}
.catalog-search input{border:0;outline:0;min-width:0;flex:1;font-size:13px;color:#162033}
.catalog-switch{display:flex;align-items:center;gap:5px;color:#63728a;font-size:11px;font-weight:800;white-space:nowrap}
.catalog-message{min-height:22px;margin:7px 0;color:#16865c;font-size:12px;font-weight:800}
.catalog-message.error{color:#b65300}
.print-last-sale{border:1px solid #b8c8eb;border-radius:7px;background:#eef2ff;color:#315efb;padding:8px 12px;font-size:12px;font-weight:800;cursor:pointer}.print-last-sale:hover{background:#dfe7ff}.print-receipt{display:none}.receipt-paper{width:780px;margin:0 auto;padding:24px;color:#172238;font:12px Arial,sans-serif}.receipt-header{display:flex;align-items:center;gap:12px;border-bottom:2px solid #172238;padding-bottom:12px}.receipt-header img{width:54px;height:54px;object-fit:contain}.receipt-header h1{margin:0;font-size:20px}.receipt-header p{margin:3px 0 0;color:#718096}.receipt-title{display:flex;justify-content:space-between;font-size:17px;margin:16px 0}.receipt-meta{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:18px}.receipt-meta div{border:1px solid #d9e2ef;padding:8px}.receipt-meta span,.receipt-totals span,.receipt-payments span{display:block;color:#68778d;font-size:10px;text-transform:uppercase}.receipt-meta strong{display:block;margin-top:4px}.receipt-paper table{width:100%;border-collapse:collapse}.receipt-paper th{background:#edf2f8;text-align:left;font-size:10px;text-transform:uppercase}.receipt-paper th,.receipt-paper td{border-bottom:1px solid #d9e2ef;padding:8px 6px}.receipt-paper th:nth-child(n+2),.receipt-paper td:nth-child(n+2){text-align:right}.receipt-free{color:#b65300;font-size:10px;font-weight:800}.receipt-totals{width:290px;margin:18px 0 0 auto;border-top:1px solid #d9e2ef;padding-top:8px}.receipt-totals div,.receipt-payments div{display:flex;justify-content:space-between;padding:4px 0}.receipt-grand{border-top:2px solid #172238;margin-top:6px;padding-top:8px!important;font-size:16px;font-weight:800}.receipt-payments{width:290px;margin:16px 0 0 auto}.receipt-payments h2{font-size:11px;text-transform:uppercase;margin:0 0 4px}.receipt-paper footer{border-top:1px solid #d9e2ef;margin-top:22px;padding-top:10px;color:#718096;font-size:10px}@media print{body>*:not(#printReceipt){display:none!important}#printReceipt{display:block!important}.receipt-paper{width:auto}.print-receipt{display:block}}
.catalog-import{display:grid;grid-template-columns:1.2fr 1fr 1fr auto;gap:10px;align-items:end;background:#fff7ed;border:1px solid #f3bd72;border-radius:11px;padding:13px;margin-bottom:14px}
.catalog-import strong,.catalog-import small{display:block}.catalog-import small{color:#8e6b45;font-size:10px;line-height:1.35;margin-top:3px}.catalog-import label,.master-form-grid label{font-size:10px;font-weight:800;color:#65748b}.catalog-import input{display:block;width:100%;margin-top:5px;font-size:10px}.primary-action{height:40px;border:0;border-radius:8px;background:#315efb;color:#fff;padding:0 13px;font-weight:900;cursor:pointer;white-space:nowrap}.primary-action:hover{background:#2148d5}.catalog-import .primary-action{height:36px}
.editor-add{float:right;border:1px solid #d5dff0;border-radius:6px;background:#f1f5ff;color:#315efb;padding:5px 8px;font-size:10px;font-weight:900;cursor:pointer}.editor-remove{height:36px;border:1px solid #f1c9cf;border-radius:7px;background:#fff5f6;color:#c44e5e;font-size:18px;line-height:1;cursor:pointer}.editor-remove:hover{background:#ffe7ea}
.catalog-summary{display:flex;gap:16px;flex-wrap:wrap;color:#718098;font-size:11px;font-weight:800;padding:9px 2px}
.catalog-summary strong{color:#162033}
.catalog-table-wrap{overflow:auto;background:#fff;border:1px solid #dce5f3;border-radius:12px}
.catalog-table{width:100%;min-width:960px;border-collapse:collapse;font-size:11px}.catalog-table th{padding:11px 10px;background:#eef3fc;color:#71819a;text-align:left;font-size:10px;text-transform:uppercase;letter-spacing:.4px;white-space:nowrap}.catalog-table td{padding:10px;border-bottom:1px solid #edf1f6;vertical-align:middle}.catalog-table tr:hover td{background:#fbfcff}.catalog-table td strong{display:block;color:#162033;font-size:12px}.catalog-table td small{display:block;color:#8190a6;margin-top:3px}.catalog-unit{display:inline-flex;margin:2px 3px 2px 0;padding:4px 6px;border-radius:5px;background:#f1f5ff;color:#4c6381;font-weight:800}.catalog-price{display:block;color:#315efb;font-weight:900}.catalog-price small{display:inline;color:#8190a6;font-weight:600}.catalog-status{display:inline-flex;padding:5px 7px;border-radius:6px;background:#eaf9f2;color:#16865c;font-weight:900}.catalog-status.off{background:#f1f3f7;color:#7c8798}.catalog-actions{display:flex;gap:5px}.catalog-actions button{border:1px solid #d5dff0;border-radius:6px;background:#fff;color:#315efb;padding:6px 8px;font-size:10px;font-weight:900;cursor:pointer}.catalog-actions button:last-child{color:#a45200}.product-form{background:#fff;border:1px solid #dce5f3;border-radius:12px;padding:16px;margin-bottom:14px}.form-section-title{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:13px}.form-section-title strong,.form-section-title small{display:block}.form-section-title strong{font-size:16px}.form-section-title small{color:#8190a6;font-size:10px;margin-top:3px}.master-form-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:9px}.master-form-grid label{display:block}.master-form-grid input,.master-form-grid select,.conversion-editor input,.conversion-editor select,.price-editor input,.price-editor select{display:block;width:100%;height:36px;margin-top:5px;border:1px solid #dbe4f0;border-radius:7px;background:#fbfcff;padding:0 8px;color:#162033}.master-subtitle{margin:17px 0 7px;color:#162033;font-size:12px;font-weight:900}.master-subtitle small{color:#8190a6;font-size:10px;font-weight:600;margin-left:5px}.conversion-editor,.price-editor{display:grid;gap:7px}.editor-row{display:grid;grid-template-columns:36px 1fr 1fr 34px;gap:7px;align-items:end}.editor-row.price-row{grid-template-columns:36px 1fr 1fr 1fr 1fr 34px}.editor-row label{font-size:10px;color:#65748b;font-weight:800}.editor-row .row-label{align-self:center;color:#315efb;font-weight:900}.master-save{margin-top:16px;min-width:180px}.hidden{display:none!important}
@media(max-width:850px){.product-master-card{padding:18px}.product-master-card .modal-head{margin:-18px -18px 14px;padding:18px}.catalog-import{grid-template-columns:1fr}.master-form-grid,.dimension-grid{grid-template-columns:1fr 1fr}.editor-row,.editor-row.price-row{grid-template-columns:1fr 1fr}}
.product-form-block{margin:0 0 14px;padding:13px;border:1px solid #e4ebf5;border-radius:10px;background:#fcfdff}.product-form-block h3{margin:0 0 10px;color:#162033;font-size:12px;text-transform:uppercase;letter-spacing:.35px}.master-subtitle{margin:0 0 7px}.physical-dimensions summary{cursor:pointer;color:#162033;font-size:12px;font-weight:900}.physical-dimensions[open] summary{margin-bottom:10px}.physical-dimensions small{color:#8190a6;font-size:10px;font-weight:600;margin-left:5px}.dimension-grid{display:grid;grid-template-columns:repeat(5,minmax(90px,1fr));gap:9px}.dimension-grid label{font-size:10px;color:#65748b;font-weight:800}.dimension-grid input,.dimension-grid select{display:block;width:100%;height:36px;margin-top:5px;border:1px solid #dbe4f0;border-radius:7px;background:#fbfcff;padding:0 8px;color:#162033}.master-save{margin-top:2px}
@media(max-width:850px){.dimension-grid{grid-template-columns:1fr 1fr}}
.print-actions{display:flex;align-items:end;gap:8px;flex-wrap:wrap;margin-top:8px}.print-actions label{display:flex;flex-direction:column;gap:4px;color:#718096;font-size:10px;font-weight:800}.print-actions select{height:34px;border:1px solid #b8c8eb;border-radius:7px;background:#fff;color:#172238;padding:0 8px;font-size:11px}.print-actions .print-last-sale{height:34px}
@page receipt80{size:80mm auto;margin:0}@page receipt30{size:30mm auto;margin:0}@page receiptA4{size:A4 portrait;margin:10mm}
.receipt-format-80mm{page:receipt80}.receipt-format-30mm{page:receipt30}.receipt-format-a4{page:receiptA4}
@media print{html,body{margin:0!important;padding:0!important;background:#fff!important}body>*:not(#printReceipt){display:none!important}#printReceipt{display:block!important;color:#172238}.receipt-paper{box-sizing:border-box;margin:0 auto;padding:4mm;color:#172238;font-family:Arial,sans-serif}.receipt-format-80mm .receipt-paper{width:80mm;font-size:10px}.receipt-format-80mm .receipt-header{gap:6px;padding-bottom:3mm;border-bottom:1px solid #172238}.receipt-format-80mm .receipt-header img{width:14mm;height:14mm}.receipt-format-80mm .receipt-header h1{font-size:12px}.receipt-format-80mm .receipt-header p{font-size:8px;margin:1px 0}.receipt-format-80mm .receipt-title{font-size:11px;margin:4mm 0}.receipt-format-80mm .receipt-meta{display:block;margin-bottom:3mm}.receipt-format-80mm .receipt-meta div{border:0;border-bottom:1px dotted #aaa;padding:1.5mm 0}.receipt-format-80mm .receipt-paper table{width:100%;table-layout:fixed;font-size:7.5px}.receipt-format-80mm .receipt-paper th,.receipt-format-80mm .receipt-paper td{padding:1.5mm .5mm;overflow-wrap:anywhere;word-break:break-word}.receipt-format-80mm .receipt-paper th:nth-child(1),.receipt-format-80mm .receipt-paper td:nth-child(1){width:34%;text-align:left}.receipt-format-80mm .receipt-paper th:nth-child(2),.receipt-format-80mm .receipt-paper td:nth-child(2){width:10%;white-space:nowrap}.receipt-format-80mm .receipt-paper th:nth-child(3),.receipt-format-80mm .receipt-paper td:nth-child(3){width:10%;white-space:nowrap}.receipt-format-80mm .receipt-paper th:nth-child(4),.receipt-format-80mm .receipt-paper td:nth-child(4){width:15%;white-space:nowrap}.receipt-format-80mm .receipt-paper th:nth-child(5),.receipt-format-80mm .receipt-paper td:nth-child(5){width:15%;white-space:nowrap}.receipt-format-80mm .receipt-paper th:nth-child(6),.receipt-format-80mm .receipt-paper td:nth-child(6){width:16%;white-space:nowrap}.receipt-format-80mm .receipt-totals,.receipt-format-80mm .receipt-payments{width:100%;margin-top:4mm}.receipt-format-80mm .receipt-grand{font-size:13px}.receipt-format-30mm .receipt-paper{width:30mm;padding:1.5mm;font-size:5px}.receipt-format-30mm .receipt-header{gap:1mm;padding-bottom:1mm}.receipt-format-30mm .receipt-header img{width:6mm;height:6mm}.receipt-format-30mm .receipt-header h1{font-size:6px}.receipt-format-30mm .receipt-header p{font-size:4px;margin:0}.receipt-format-30mm .receipt-title{font-size:6px;margin:1.5mm 0}.receipt-format-30mm .receipt-meta{display:block;margin-bottom:1mm}.receipt-format-30mm .receipt-meta div{border:0;padding:.6mm 0}.receipt-format-30mm .receipt-paper table{width:100%;font-size:4.5px;table-layout:fixed}.receipt-format-30mm .receipt-paper th,.receipt-format-30mm .receipt-paper td{padding:.6mm .3mm;word-break:break-word;overflow-wrap:anywhere}.receipt-format-30mm .receipt-paper th:nth-child(1),.receipt-format-30mm .receipt-paper td:nth-child(1){width:34%;text-align:left}.receipt-format-30mm .receipt-paper th:nth-child(2),.receipt-format-30mm .receipt-paper td:nth-child(2){width:12%;white-space:nowrap}.receipt-format-30mm .receipt-paper th:nth-child(3),.receipt-format-30mm .receipt-paper td:nth-child(3){width:12%;white-space:nowrap}.receipt-format-30mm .receipt-paper th:nth-child(4),.receipt-format-30mm .receipt-paper td:nth-child(4){display:none}.receipt-format-30mm .receipt-paper th:nth-child(5),.receipt-format-30mm .receipt-paper td:nth-child(5){width:20%;white-space:nowrap}.receipt-format-30mm .receipt-paper th:nth-child(6),.receipt-format-30mm .receipt-paper td:nth-child(6){width:22%;white-space:nowrap}.receipt-format-30mm .receipt-totals,.receipt-format-30mm .receipt-payments{width:100%;margin-top:1.5mm}.receipt-format-30mm .receipt-grand{font-size:7px}.receipt-format-30mm .receipt-free{font-size:4px}.receipt-format-a4 .receipt-paper{width:190mm;min-height:260mm;padding:0;font-size:11px}.receipt-format-a4 .receipt-header{padding-bottom:5mm}.receipt-format-a4 .receipt-header img{width:22mm;height:22mm}.receipt-format-a4 .receipt-header h1{font-size:20px}.receipt-format-a4 .receipt-title{font-size:17px;margin:7mm 0}.receipt-format-a4 .receipt-meta{grid-template-columns:repeat(3,1fr);margin-bottom:7mm}.receipt-format-a4 .receipt-paper th,.receipt-format-a4 .receipt-paper td{padding:3mm 2mm}.receipt-format-a4 .receipt-totals,.receipt-format-a4 .receipt-payments{width:80mm}}
.simple-equivalence{padding:12px;border:1px solid #dce5f3;border-radius:9px;background:#f8faff}.simple-equivalence h4{margin:0 0 10px;color:#315efb;font-size:11px}.simple-equivalence-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.simple-equivalence label{font-size:10px;color:#65748b;font-weight:800}.simple-equivalence input{display:block;width:100%;height:36px;margin-top:5px;border:1px solid #dbe4f0;border-radius:7px;background:#fbfcff;padding:0 8px;color:#162033}.equivalence-summary{margin:12px 0 0;padding:10px;border-radius:7px;background:#fff;color:#162033;font-size:12px;line-height:1.75}.equivalence-summary strong{display:block;color:#315efb;font-size:10px;letter-spacing:.4px}.advanced-conversions{margin-top:10px}.advanced-conversions summary{cursor:pointer;color:#4c6381;font-size:11px;font-weight:900}.advanced-conversions>small{display:block;margin:7px 0;color:#8190a6;font-size:10px}@media(max-width:850px){.simple-equivalence-grid{grid-template-columns:1fr}}
.commercial-price-table{width:100%;margin-top:8px;border-collapse:collapse;font-size:11px}.commercial-price-table th,.commercial-price-table td{padding:5px;border-bottom:1px solid #e7edf6;text-align:right}.commercial-price-table th:first-child,.commercial-price-table td:first-child{text-align:left}.commercial-price-table th{color:#65748b;font-size:9px;text-transform:uppercase}
.dispatch-v2-cart .dispatch-v2-row{position:relative;padding:13px 42px 13px 13px!important;overflow:visible}.dispatch-v2-cart .dispatch-v2-row .sale-line-product{grid-column:1/-1;min-width:0;padding-right:4px}.dispatch-v2-cart .dispatch-v2-row>.remove{position:absolute;top:13px;right:13px;grid-column:auto;width:auto;margin:0;padding:4px 7px;font-size:10px}.dispatch-v2-cart .dispatch-v2-row>label{display:flex;min-width:0;gap:5px;align-content:start;flex-direction:column}.dispatch-v2-cart .dispatch-v2-row label>div{display:grid;min-width:0;gap:5px}.dispatch-v2-cart .dispatch-v2-row .price-mode-toggle{width:max-content;max-width:100%;padding:4px 6px;font-size:10px;white-space:normal}.dispatch-v2-cart .unit-price-equivalent strong,.dispatch-v2-cart .line-subtotal,.dispatch-v2-cart .pending-total{display:block;min-width:0;padding:8px 0;color:#162033;font-size:12px;overflow-wrap:anywhere}.dispatch-v2-cart .pending-total{color:#a65b00}.dispatch-v2-cart .physical-dispatch{margin:4px 0 0;color:#65748b;font-size:11px}.dispatch-v2-cart .sale-line-product small{display:block;margin-top:2px;color:#8190a6}@media(max-width:900px){.dispatch-v2-cart .dispatch-v2-row{padding:13px!important}.dispatch-v2-cart .dispatch-v2-row>.remove{position:static;grid-column:1;justify-self:stretch;width:100%;margin-top:2px}.dispatch-v2-cart .dispatch-v2-row .sale-line-product{padding-right:0}}
.dispatch-v2-cart .sale-line-actions{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin-top:8px}.dispatch-v2-cart .free-toggle-label{display:inline-flex;align-items:center;gap:5px;color:#53647c;font-size:11px;font-weight:800}.dispatch-v2-cart .free-badge{display:inline-flex;padding:4px 7px;border-radius:6px;background:#fff3d8;color:#9b5e00;font-size:10px;font-weight:900}.dispatch-v2-cart .duplicate-free{padding:5px 7px;font-size:10px}.dispatch-v2-cart .bonus-reference{color:#65748b;font-size:11px;font-weight:800}.dispatch-v2-cart .line-subtotal.free-total{color:#9b5e00}
.dispatch-v2-cart .product-runtime-debug{display:flex;flex-wrap:wrap;gap:3px 10px;margin-top:4px;color:#71819a;font-size:10px;line-height:1.35}.dispatch-v2-cart .product-runtime-debug strong{width:100%;color:#50627e;font-size:10px}.dispatch-v2-cart .product-runtime-debug span{white-space:nowrap}
.dispatch-v2-cart .sunat-affectation{margin-top:7px}.dispatch-v2-cart .sunat-affectation label{display:flex;flex-direction:column;gap:4px;color:#53647c;font-size:10px;font-weight:900}.dispatch-v2-cart .sunat-affectation select{min-height:32px;padding:5px 8px;border:1px solid #d5deed;border-radius:7px;background:#fff;color:#253653;font-size:11px;font-weight:700}
.tax-breakdown{display:grid;gap:4px;margin:8px 0;padding:9px 11px;border:1px solid #dce5f2;border-radius:8px;background:#f8faff;color:#596a83;font-size:10px}.tax-breakdown div{display:flex;justify-content:space-between;gap:10px}.tax-breakdown strong{color:#1d3152;font-size:11px}
.dispatch-v2-cart .dispatch-v2-row{grid-template-columns:18fr 16fr 24fr 16fr 26fr}.dispatch-v2-cart .price-mode-switch{display:inline-flex;width:max-content;max-width:100%;margin-top:4px;border:1px solid #cdd9ee;border-radius:6px;overflow:hidden}.dispatch-v2-cart .price-mode-switch button{border:0;border-right:1px solid #cdd9ee;background:#fff;color:#53647c;padding:4px 7px;font-size:10px;font-weight:800;cursor:pointer}.dispatch-v2-cart .price-mode-switch button:last-child{border-right:0}.dispatch-v2-cart .price-mode-switch button.active{background:#315efb;color:#fff}.dispatch-v2-cart .unit-price-readonly,.dispatch-v2-cart .line-total-readonly{display:block;min-height:34px;padding:8px 0;color:#162033;font-size:12px;font-weight:900}.dispatch-v2-cart .unit-price-readonly small{display:block;margin-top:2px;color:#718096;font-weight:600}.dispatch-v2-cart .dispatch-v2-row .sale-line-product{padding-right:80px}.dispatch-policy-status{display:block;margin-top:5px;font-size:11px;font-weight:800;color:#16865c}.dispatch-policy-status.dirty{color:#b65300}.dispatch-loose-pieces{padding:9px;border:1px solid #dbe4f0;border-radius:7px;background:#fbfcff;font-weight:800}.dispatch-loose-pieces input{width:auto!important;height:auto!important;margin:0 6px 0 0!important}.dispatch-loose-pieces small{display:block;margin:5px 0 0 22px;color:#718096;font-size:10px;font-weight:600}.product-save-footer{position:sticky;bottom:-16px;z-index:2;margin:16px -16px -16px;padding:12px 16px;background:#fff;border-top:1px solid #dce5f3;box-shadow:0 -6px 16px #16203312}.product-save-footer .master-save{margin:0;min-width:180px}

/* Controles del carrito: acciones visibles y consistentes en mostrador. */
.dispatch-v2-cart .dispatch-v2-row>.remove{display:inline-flex;align-items:center;justify-content:center;gap:5px;height:32px;padding:0 11px!important;border:1px solid #efb8bd;border-radius:8px;background:#fff7f7;color:#b63847;font-size:11px!important;font-weight:900;letter-spacing:.1px;box-shadow:0 2px 6px #b6384714;transition:background .15s,border-color .15s,color .15s,transform .15s}
.dispatch-v2-cart .dispatch-v2-row>.remove::before{content:'×';font-size:18px;line-height:1;font-weight:500}
.dispatch-v2-cart .dispatch-v2-row>.remove:hover{border-color:#d95763;background:#fff0f1;color:#962b39;transform:translateY(-1px)}
.dispatch-v2-cart .dispatch-v2-row>.remove:focus-visible{outline:3px solid #d9576333;outline-offset:2px}
.dispatch-v2-cart .duplicate-free{display:inline-flex;align-items:center;gap:5px;min-height:32px;padding:0 11px!important;border:1px solid #e9ae61;border-radius:8px;background:#fff8ed;color:#a45200;font-size:11px!important;font-weight:900;box-shadow:0 2px 6px #a4520012;transition:background .15s,border-color .15s,transform .15s}
.dispatch-v2-cart .duplicate-free::before{content:'+';font-size:16px;line-height:1;font-weight:500}
.dispatch-v2-cart .duplicate-free:hover{border-color:#d88a25;background:#ffefd5;transform:translateY(-1px)}
.dispatch-v2-cart .free-toggle-label{min-height:32px;padding:0 10px;border:1px solid #d7e0ed;border-radius:8px;background:#f8faff;color:#4d607a!important}
.dispatch-v2-cart .free-toggle-label:has(input:checked){border-color:#e9c16e;background:#fff8e8;color:#8d5b00!important}
.dispatch-v2-cart .dispatch-v2-row>label{color:#53647c;font-size:10px;font-weight:900;letter-spacing:.25px}
.dispatch-v2-cart .dispatch-v2-row>label>input,.dispatch-v2-cart .dispatch-v2-row>label>select{min-height:38px}
.dispatch-v2-cart .dispatch-v2-row>label>.total-input{border-color:#b8c9f5;background:#f7f9ff;color:#2148d5;font-weight:900}
@media(max-width:900px){.dispatch-v2-cart .dispatch-v2-row>.remove{justify-self:stretch;width:100%;margin-top:4px}.dispatch-v2-cart .dispatch-v2-row>.remove::before{font-size:17px}}
.payment-summary{margin-top:10px;padding:10px 12px;border:1px solid #dce6f4;border-radius:10px;background:#f7faff;color:#64748b;font-size:11px}.payment-summary>div{display:flex;justify-content:space-between;gap:10px;padding:4px 0}.payment-summary strong{color:#172b4d;font-size:12px}.payment-summary .payment-balance{margin:5px -5px -5px;padding:8px 5px;border-top:1px solid #dce6f4;color:#315efb;font-weight:800}.payment-summary .payment-balance strong{color:#315efb;font-size:15px}.payment-summary.payment-complete{border-color:#9fe2c5;background:#effbf5}.payment-summary.payment-complete .payment-balance,.payment-summary.payment-complete .payment-balance strong{color:#13895b}.payment-entry input:disabled{background:#f1f4f8;color:#8c98aa;cursor:not-allowed}.payment-entry button:disabled{background:#e3e8f1;color:#8995a8;cursor:not-allowed}
.ruc-verification-message{margin-top:7px;padding:8px 10px;border-radius:8px;font-size:11px;line-height:1.4;font-weight:700}.ruc-verification-message.valid{background:#effbf5;border:1px solid #9fe2c5;color:#13895b}.ruc-verification-message.invalid{background:#fff3f2;border:1px solid #f0b2ad;color:#b42318}
