/* PDV360 v131 — Notas de venta estable, clientes con modal en cotizaciones, producto POS alineado, responsive sin ocultar menús */
.pdv-v131-notice-root{position:fixed;inset:0;z-index:2147483000;display:flex;align-items:center;justify-content:center;padding:22px}.pdv-v131-notice-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.58);backdrop-filter:blur(6px)}.pdv-v131-notice-card{position:relative;width:min(560px,95vw);background:#fff;border:1px solid #dbe7f5;border-top:7px solid #16a34a;border-radius:28px;padding:30px;box-shadow:0 34px 90px rgba(15,35,70,.32);color:#102040}.pdv-v131-notice-card.is-error{border-top-color:#ef4444}.pdv-v131-notice-x{position:absolute;right:16px;top:15px;width:38px;height:38px;border-radius:13px;border:1px solid #e2e8f0;background:#fff;font-size:24px;color:#475569;cursor:pointer}.pdv-v131-notice-icon{width:64px;height:64px;border-radius:21px;display:grid;place-items:center;font-size:30px;margin-bottom:14px;background:linear-gradient(135deg,#ecfdf5,#f8fbff);border:1px solid #bbf7d0}.pdv-v131-notice-card.is-error .pdv-v131-notice-icon{background:linear-gradient(135deg,#fef2f2,#fff);border-color:#fecaca}.pdv-v131-notice-card h2{margin:0 0 8px;font-size:26px;line-height:1.08;letter-spacing:-.04em;font-weight:950;color:#0b1b3a}.pdv-v131-notice-card p{margin:0;color:#53657e;font-weight:700;line-height:1.55;white-space:pre-wrap}.pdv-v131-notice-actions{display:flex;justify-content:flex-end;margin-top:24px}.pdv-v131-notice-actions button{height:46px;border:0;border-radius:15px;background:#0b2557;color:#fff;font-weight:950;padding:0 22px;cursor:pointer;box-shadow:0 14px 28px rgba(11,37,87,.16)}

/* Menús de módulos: visibles, grandes y sin gesto/ocultamiento */
.pdv-subnav,.fact-subnav,.tar-subnav,.almacen-subnav,.mercado-subnav{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(170px,1fr))!important;gap:12px!important;background:#fff!important;border:1px solid rgba(15,35,70,.08)!important;border-radius:22px!important;padding:14px!important;margin:0 0 18px!important;box-shadow:0 10px 26px rgba(15,35,70,.06)!important;overflow:visible!important;max-height:none!important;opacity:1!important;transform:none!important;pointer-events:auto!important}.fact-subnav .subnav-item,.pdv-subnav .subnav-item,.tar-subnav .subnav-item,.almacen-subnav .subnav-item,.mercado-subnav .subnav-item{min-height:58px!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:10px!important;padding:12px 16px!important;border-radius:16px!important;font-size:15px!important;font-weight:900!important;background:#fff!important;color:#5b6b82!important;border:1px solid transparent!important;white-space:nowrap!important;text-align:center!important}.fact-subnav .router-link-active,.pdv-subnav .router-link-active,.tar-subnav .router-link-active,.almacen-subnav .router-link-active,.mercado-subnav .router-link-active{background:#0b2557!important;color:#fff!important;box-shadow:0 14px 28px rgba(11,37,87,.18)!important}.pdv-v129-nav-handle{display:none!important}.pdv-v129-nav-hidden .pdv-subnav,.pdv-v129-nav-hidden .fact-subnav,.pdv-v129-nav-hidden .tar-subnav{max-height:none!important;opacity:1!important;transform:none!important;pointer-events:auto!important;padding:14px!important;margin-bottom:18px!important;border-width:1px!important}a[data-pdv-v131-hide],.pdv-v131-hide{display:none!important}

/* Modal de cliente para cotizaciones */
.pdv131-client-native-hidden{position:absolute!important;opacity:0!important;pointer-events:none!important;width:1px!important;height:1px!important;left:-9999px!important}.pdv131-client-trigger{width:100%;min-height:48px;border:1px solid #dfe7f1;background:#fff;border-radius:14px;padding:10px 48px 10px 14px;text-align:left;display:flex;flex-direction:column;justify-content:center;position:relative;box-shadow:0 3px 10px rgba(11,37,87,.03);cursor:pointer}.pdv131-client-trigger:hover,.pdv131-client-trigger:focus{border-color:#8fc2ff;box-shadow:0 0 0 4px rgba(74,158,255,.14);outline:0}.pdv131-client-trigger b{font-size:14px;color:#0b2557;font-weight:950;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}.pdv131-client-trigger small{font-size:12px;color:#7a89a1;margin-top:2px}.pdv131-client-trigger i{position:absolute;right:12px;top:50%;transform:translateY(-50%);width:30px;height:30px;border-radius:12px;background:#eef5ff;color:#0b2557;display:grid;place-items:center;font-style:normal;font-weight:950}.pdv131-client-modal-backdrop{position:fixed;inset:0;z-index:2147482000;background:rgba(15,23,42,.58);backdrop-filter:blur(6px);display:flex;align-items:center;justify-content:center;padding:20px}.pdv131-client-modal{width:min(760px,96vw);max-height:min(820px,92vh);background:#fff;border:1px solid #dbe7f5;border-radius:28px;box-shadow:0 34px 90px rgba(15,35,70,.32);display:flex;flex-direction:column;overflow:hidden}.pdv131-client-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;padding:24px 26px 18px;border-bottom:1px solid #eef3f9}.pdv131-client-head h3{margin:0;font-size:24px;letter-spacing:-.04em;color:#0b1b3a}.pdv131-client-head p{margin:6px 0 0;color:#63758d;font-weight:700}.pdv131-client-close{width:42px;height:42px;border-radius:15px;border:1px solid #dfe7f1;background:#fff;font-size:24px;cursor:pointer;color:#475569}.pdv131-client-search{margin:16px 24px 10px;position:relative}.pdv131-client-search span{position:absolute;left:14px;top:50%;transform:translateY(-50%);color:#6b7c95}.pdv131-client-search input{width:100%;height:48px;border-radius:16px;border:1px solid #dfe7f1;padding:0 14px 0 40px;font-size:15px;font-weight:750}.pdv131-client-search input:focus{outline:0;border-color:#8fc2ff;box-shadow:0 0 0 4px rgba(74,158,255,.14)}.pdv131-client-list{padding:0 24px 24px;overflow:auto;display:grid;gap:10px}.pdv131-client-row{border:1px solid #e3ebf6;background:#fff;border-radius:18px;padding:12px 14px;display:grid;grid-template-columns:42px minmax(0,1fr) 34px;gap:12px;align-items:center;text-align:left;cursor:pointer}.pdv131-client-row:hover,.pdv131-client-row.selected{border-color:#9ccaff;background:#f8fbff}.pdv131-avatar{width:42px;height:42px;border-radius:15px;background:linear-gradient(135deg,#0b2557,#2369ce);color:#fff;font-weight:950;display:grid;place-items:center}.pdv131-client-info b{display:block;color:#0b2557;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pdv131-client-info small{display:block;color:#7a89a1;font-weight:700;margin-top:2px}.pdv131-client-check{color:#87b7ff;font-size:20px;font-weight:900}.pdv131-client-empty{padding:26px;text-align:center;color:#718096;background:#f8fbff;border:1px dashed #dbe7f5;border-radius:18px}

/* Cotizaciones responsive */
.pdv-v131-quotes .quote-builder{width:min(1480px,calc(100vw - 20px))!important;max-width:calc(100vw - 20px)!important}.pdv-v131-quotes .builder-body{min-width:0!important;overflow:auto!important}.pdv-v131-quotes .builder-form,.pdv-v131-quotes .quote-preview-pane,.pdv-v131-quotes .wizard-panel{min-width:0!important}.pdv-v131-quotes .grid-2,.pdv-v131-quotes .grid-2.compact{grid-template-columns:repeat(2,minmax(0,1fr))!important}.pdv-v131-quotes input,.pdv-v131-quotes select,.pdv-v131-quotes textarea{min-width:0!important;width:100%!important}.pdv-v131-quotes .builder-body.preview-on{grid-template-columns:minmax(430px,.85fr) minmax(520px,1fr)!important;gap:18px!important}.pdv-v131-quotes .builder-body.preview-on .grid-2{grid-template-columns:1fr!important}.pdv-v131-quotes .builder-body.preview-on .builder-form{overflow:auto!important}.pdv-v131-quotes .builder-body.preview-on .quote-preview-page{width:100%!important;min-width:640px!important}.pdv-v131-quotes .modal-footer.builder-footer{position:sticky!important;bottom:0!important;background:#fff!important;z-index:15!important}.pdv-v131-quotes .stepper{overflow-x:auto!important;-webkit-overflow-scrolling:touch!important}.pdv-v131-quotes .step{min-width:180px!important}

/* Nuevo producto desde ticket alineado al catálogo */
.new-product-panel.pdv131-product-panel{width:min(1120px,94vw)!important;max-height:min(88vh,860px)!important;overflow:auto!important;border-radius:24px!important;padding:22px!important}.pdv131-product-panel .new-product-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:14px!important}.pdv131-product-panel label{min-width:0!important}.pdv131-product-panel label>span{display:block!important;margin-bottom:8px!important;color:#66758e!important;font-size:12px!important;font-weight:850!important}.pdv131-product-panel .input{width:100%!important;min-width:0!important;border:1px solid #dfe7f1!important;border-radius:14px!important;min-height:44px!important}.pdv131-product-panel .sat-mini-card{grid-column:span 2!important;background:#f8fbff!important;border:1px solid #dfe7f1!important;border-radius:17px!important;padding:14px!important}.pdv131-product-panel .sat-mini-grid{display:grid!important;grid-template-columns:1fr 2fr 1fr 1fr!important;gap:8px!important}.pdv131-product-panel .wide{grid-column:1 / -1!important}.pdv131-icon-picker .pdv131-icons{display:flex;gap:8px;flex-wrap:wrap;background:#f6f9fd;border:1px solid #e5edf7;border-radius:14px;padding:8px}.pdv131-icon-picker button{width:34px;height:34px;border-radius:11px;border:1px solid #dfe7f1;background:#fff;display:grid;place-items:center;cursor:pointer}.pdv131-icon-picker button.active{border-color:#0b2557;box-shadow:0 0 0 3px rgba(11,37,87,.12)}.pdv131-product-panel .new-product-footer{position:sticky!important;bottom:0!important;background:#fff!important;border-top:1px solid #e5edf7!important;padding-top:14px!important;margin-top:14px!important;z-index:4!important}
.pdv131-category-wrap{position:relative}.pdv131-category-trigger{position:absolute;right:1px;top:1px;width:44px;height:42px;border:0;border-left:1px solid #e3ebf6;border-radius:0 13px 13px 0;background:#f8fbff;color:#0b2557;font-weight:900;cursor:pointer}.pdv131-cat-list{position:absolute;z-index:2147481000;left:0;right:0;top:calc(100% + 8px);background:#fff;border:1px solid #dbe7f5;border-radius:16px;box-shadow:0 18px 38px rgba(15,35,70,.16);padding:8px;display:grid;gap:4px}.pdv131-cat-list button{border:0;background:transparent;border-radius:12px;text-align:left;padding:10px 12px;font-weight:850;color:#0b2557;cursor:pointer}.pdv131-cat-list button:hover{background:#f2f7ff}

@media (max-width:1280px){.pdv-v131-quotes .builder-body.preview-on{grid-template-columns:1fr!important}.pdv-v131-quotes .quote-preview-pane{max-height:54vh!important}.pdv-v131-quotes .builder-body.preview-on .quote-preview-page{min-width:680px!important}.pdv131-product-panel .new-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.pdv131-product-panel .sat-mini-card{grid-column:1 / -1!important}}
@media (max-width:760px){.pdv-v131-notice-card{padding:24px;border-radius:24px}.pdv-v131-notice-actions{display:grid}.pdv-v131-notice-actions button{width:100%}.fact-subnav,.pdv-subnav,.tar-subnav,.almacen-subnav,.mercado-subnav{display:flex!important;overflow-x:auto!important;gap:10px!important;padding:10px!important}.fact-subnav .subnav-item,.pdv-subnav .subnav-item,.tar-subnav .subnav-item,.almacen-subnav .subnav-item,.mercado-subnav .subnav-item{flex:0 0 auto!important;min-width:170px!important;min-height:52px!important;font-size:14px!important}.pdv-v131-quotes .quote-builder{width:100vw!important;height:100vh!important;max-width:100vw!important;border-radius:0!important}.pdv-v131-quotes .builder-body,.pdv-v131-quotes .builder-body.preview-on{grid-template-columns:1fr!important;padding:10px!important}.pdv-v131-quotes .grid-2,.pdv-v131-quotes .grid-2.compact,.pdv-v131-quotes .builder-body.preview-on .grid-2{grid-template-columns:1fr!important}.pdv-v131-quotes .quote-preview-pane{display:none!important}.pdv-v131-quotes .step span{display:none!important}.page-header{flex-direction:column;align-items:stretch!important}.page-header .btn,.page-header button{width:100%;justify-content:center}.pdv131-product-panel{width:100vw!important;height:100vh!important;max-height:100vh!important;border-radius:0!important}.pdv131-product-panel .new-product-grid{grid-template-columns:1fr!important}.pdv131-product-panel .sat-mini-grid{grid-template-columns:1fr 1fr!important}.pdv131-client-modal{width:100vw;height:100vh;max-height:100vh;border-radius:0}.pdv131-client-modal-backdrop{padding:0}.pdv131-client-head{padding:20px}.pdv131-client-search{margin:12px 18px}.pdv131-client-list{padding:0 18px 18px}}
