/* Caja compacta y accesible. No se aplica al marketplace. */
.v45-business{min-height:48px!important;height:48px!important;padding:5px 16px!important;margin:0!important;overflow:hidden;background:#fff!important;position:relative;z-index:2}.v45-business-logo,.v45-business-logo img{width:30px!important;height:30px!important;max-width:30px!important;max-height:30px!important;object-fit:contain!important;overflow:hidden}.v45-business strong{font-size:14px!important}.v45-business small{font-size:11px!important}.app-main main{padding-top:8px!important}.pos-minimal-heading{margin-bottom:8px!important;min-height:37px}.pos-minimal-heading h1{font-size:20px!important}.pos-layout{align-items:start}.workspace-panel,.checkout-panel{padding:14px!important;min-height:0!important}.checkout-panel{position:static!important}.checkout-header{margin-bottom:8px!important}.checkout-symbol{height:32px;width:32px}.checkout-header h2,.panel-head h2{font-size:17px!important}.checkout-header p,.panel-head p,.keyboard-hint,.cart-subtitle{display:none!important}.cash-box{margin-bottom:8px!important;padding:10px!important}.cash-box>.outline-btn{padding:6px 10px}.cash-box .open-row{margin-top:5px}.cash-box .open-row input{padding:5px}.cash-box select{height:31px}.total-section{padding:10px!important;margin:6px 0!important}.total-caption{margin-bottom:4px!important}.total-rule{margin:5px 0!important}.total-line strong{font-size:38px!important}.total-section>small{display:none}.payment-field{margin-bottom:7px!important}.payment-option span{height:48px!important;gap:1px!important;font-size:16px!important}.payment-field legend{margin-bottom:4px!important}.v45-split-switch{margin:5px 0!important}.pay-button{padding:11px 13px!important}.fiscal-note{font-size:10px;padding:5px 8px;margin-top:6px}.close-drawer{margin-top:7px;padding-top:6px}.v46-customer-strip{display:flex;flex-wrap:wrap;align-items:center;gap:6px;position:relative;margin:8px 0 3px;padding:7px 0;border-bottom:1px solid #e8edf0}.v46-customer-strip>label{font-size:11px;font-weight:800}.v46-customer-strip>input{flex:1;min-width:160px;height:34px;border:1px solid #dae4e8;border-radius:9px;padding:8px}.v46-customer-strip>.outline-btn{padding:7px}.v46-customer-summary{width:100%;font-size:11px;color:#00765c}.v46-customer-results{position:absolute;z-index:10;top:41px;left:50px;width:min(390px,calc(100% - 60px));background:#fff;border:1px solid #dce7e8;border-radius:10px;box-shadow:0 13px 30px #1a34431a;max-height:240px;overflow:auto}.v46-customer-results button{display:block;width:100%;background:white;border:0;text-align:left;padding:11px;font-size:12px;border-bottom:1px solid #eff2f5}.v46-customer-results button:hover{background:#eefaF5}.v46-compact-dialog{border:0;border-radius:16px;padding:0;width:min(440px,94vw);box-shadow:0 24px 90px #0b1d2740}.v46-compact-dialog::backdrop,.v46-exchange-dialog::backdrop{background:#13222f99}.v46-compact-dialog form,.v46-receipt-box{padding:24px;display:grid;gap:12px}.v46-compact-dialog label{font-size:12px;display:grid;gap:5px}.v46-compact-dialog input{padding:11px;border:1px solid #d8e2e6;border-radius:9px}.v46-dialog-actions{display:flex;justify-content:flex-end;gap:10px}.v46-exchange-dialog{width:min(1400px,97vw);max-width:97vw;max-height:95dvh;border:0;border-radius:18px;padding:0;box-shadow:0 22px 85px #081e2d55}.v46-exchange-workspace{padding:24px;max-height:94dvh;overflow-y:auto}.v46-exchange-head{display:flex;align-items:start;justify-content:space-between;gap:12px;margin-bottom:15px}.v46-kicker{font-weight:850;font-size:10px;letter-spacing:1.3px;color:#007c69}.v46-exchange-head h2{font-size:25px;margin:3px 0}.v46-exchange-head p,.v46-pane-title p{font-size:12px;color:#71818f;margin:3px 0}.v46-exchange-search{display:grid;grid-template-columns:minmax(220px,1fr) auto minmax(120px,175px) auto;align-items:end;gap:9px;padding:13px;background:#f3f7f9;border-radius:12px}.v46-exchange-search label{display:grid;gap:5px;font-size:11px;font-weight:700}.v46-exchange-search input,.v46-product-lookup input{width:100%;padding:11px;border:1px solid #d7e0e5;border-radius:9px}.v46-exchange-results{display:flex;gap:6px;max-height:190px;overflow:auto;flex-wrap:wrap;padding:7px 0}.v46-exchange-results button{border:1px solid #dbe5e6;background:white;border-radius:9px;text-align:left;padding:9px 13px;font-size:11px}.v46-exchange-results button:hover{background:#e5f6ee}.v45-exchange-columns{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:8px 0}.v45-exchange-columns section{border:1px solid #e3eaf0;border-radius:13px;padding:15px;min-height:195px}.v46-pane-title{display:flex;align-items:center;gap:10px;border-bottom:1px solid #e8ecee;padding-bottom:10px;margin-bottom:10px}.v46-pane-title>span{width:35px;height:35px;display:grid;place-items:center;border-radius:9px;background:#fce8e8;color:#b84e4e;font-size:22px}.v46-out .v46-pane-title>span{background:#e3f6ec;color:#048c65}.v46-pane-title h3{margin:0;font-size:16px}.v46-return .v45-return-line{display:grid;gap:5px;background:#fffafa;border-radius:8px;padding:9px;font-size:12px}.v46-return .v45-return-line input[type=number]{width:95px;margin:0}.v46-product-lookup{display:flex;gap:8px}.v46-exchange-product-results{margin:6px 0}.v46-exchange-product-results button{display:block;width:100%;text-align:left;background:#fff;border:1px solid #e7e9eb;border-radius:8px;margin:4px 0;padding:8px}.v46-exchange-footer{background:#eef9f4;display:flex;gap:16px;align-items:center;justify-content:space-between;border-radius:12px;padding:13px}.v46-exchange-total{flex:1}.v46-exchange-total strong{font-size:19px}.v46-exchange-total p{font-size:11px;margin:4px 0}.v46-exchange-footer label{font-size:11px}.v46-exchange-footer select{display:block;border:1px solid #d9e3e7;padding:9px;border-radius:8px;margin-top:4px}.v46-exchange-receipt{margin-top:10px}.recent-panel{margin-top:22px!important}@media(max-width:800px){.v46-exchange-search{grid-template-columns:1fr 1fr}.v45-exchange-columns{grid-template-columns:1fr}.v46-exchange-footer{flex-wrap:wrap}.v46-exchange-head h2{font-size:20px}.pos-layout{grid-template-columns:1fr!important}}
/* Evitar que logotipos de la tienda invadan la superficie del POS */
.pos-layout,.pos-minimal-heading,.app-main main{background-image:none!important}.app-main main::before,.app-main main::after{background-image:none!important}.v45-business img{max-width:30px!important;max-height:30px!important}

@media(min-width:1051px) and (min-height:740px){.recent-panel{clear:both}}

.v45-business.v46-unified-bar{display:flex!important;align-items:center;gap:9px;flex-wrap:nowrap;height:51px!important;min-height:51px!important;padding:5px 12px!important}.v46-unified-actions{display:flex!important;gap:7px!important;margin:0 0 0 auto!important;align-items:center!important;min-width:0}.v46-unified-actions>.outline-btn{padding:6px 9px!important;white-space:nowrap;font-size:11px!important}.v46-unified-actions #count{white-space:nowrap;font-size:11px}.v46-unified-actions #session-short{font-size:11px}.v46-unified-bar .v45-brand{display:none!important}.v46-unified-actions .state-badge{font-size:10px!important;padding:5px!important}@media(max-width:920px){.v46-unified-actions #session-short,.v46-unified-actions #count{display:none!important}.v45-business.v46-unified-bar{overflow-x:auto!important}}.v46-client-detail-btn{color:#067a64;background:none;border:0;text-decoration:underline;font-size:11px;padding:3px 7px}.v46-customer-strip .v46-customer-results{box-shadow:0 7px 24px #203b4426}

.v46-date-filters{display:flex;gap:10px;align-items:end;margin-top:7px}.v46-date-filters label{font-size:11px;color:#526978;display:grid;gap:3px}.v46-date-filters input{padding:6px;border:1px solid #dce5e9;border-radius:7px}.v46-date-filters .outline-btn{padding:7px 10px}.v46-exchange-footer{position:sticky;bottom:-24px;z-index:5;box-shadow:0 -4px 18px #162a2d12}.v46-exchange-results:empty{padding:0;min-height:0}

/* v0.57: sales confirmation and receipt preview without horizontal scrolling */
.v46-compact-dialog:has(#v46-receipt-desc){width:min(600px,calc(100vw - 28px))!important;max-width:calc(100vw - 28px);overflow-x:hidden}
.v46-compact-dialog .v46-receipt-box{min-width:0;padding:clamp(15px,3vw,24px)}
.v46-compact-dialog .v46-dialog-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;align-items:stretch}
.v46-compact-dialog .v46-dialog-actions button{min-width:0;width:100%;white-space:normal!important;overflow-wrap:anywhere;padding:12px 8px;font-size:13px}
#v46-receipt-desc{overflow-wrap:anywhere;max-width:100%;line-height:1.5}
.v57-pager-controls,.v57-pagination{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.v57-pagination{justify-content:center;margin-top:16px}.v57-pager-controls select{margin:0 4px;padding:7px;border:1px solid #cfded6;border-radius:8px;background:#fff}.v57-pagination button{padding:9px 15px}.v57-pagination span{font-size:12px;color:#3f6457}.recent-row{flex-wrap:wrap}.recent-row button{white-space:nowrap;max-width:100%}
.v57-preview-dialog{padding:0;border:none;border-radius:17px;box-shadow:0 20px 70px #0d3b2e40;width:min(820px,calc(100vw - 22px));height:min(93dvh,970px);max-width:calc(100vw - 22px);max-height:93dvh;overflow:hidden}
.v57-preview-dialog::backdrop{background:#0d231f98}.v57-preview-dialog>header,.v57-preview-dialog>footer{padding:10px 16px;display:flex;align-items:center;justify-content:space-between;gap:12px;background:#fff}.v57-preview-dialog>header{border-bottom:1px solid #e0e8e3}.v57-preview-dialog>footer{border-top:1px solid #e0e8e3}.v57-preview-dialog iframe{width:100%;height:calc(100% - 116px);border:0;background:#fff;display:block}
@media(max-width:600px){.v46-compact-dialog .v46-dialog-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.v57-pager-controls{width:100%;justify-content:space-between}.v57-preview-dialog{height:96dvh;max-height:96dvh}}
