/* Livay v424 · Tarjetas compactas en toda la app.
   Misma medida para todas: rejilla de tarjetas de ~260 px (2 a 4 por fila en laptop, 1 o 2 en teléfono), padding 12 px,
   nombre 15–16 px, datos 11–13 px y botones de 32 px. Solo cambia el tamaño y el orden visual: no toca ninguna función. */

/* ============ Ventas · Clientes ============ */
html body #view-clients :is(#client-list,.dir-list,.cards):has(> .dir-card){display:grid!important;grid-template-columns:repeat(auto-fill,minmax(230px,1fr))!important;gap:10px!important}
html body #view-clients .dir-card.dir-card-s5{border-radius:18px!important;min-height:0!important}
html body #view-clients .dir-card-s5 .dir-band{height:32px!important;min-height:0!important;padding:5px 12px!important}
html body #view-clients .dir-card-s5 .dir-band-logo{height:18px!important;width:auto!important}
html body #view-clients .dir-card-s5 .dir-band-count{font-size:11.5px!important}
html body #view-clients .dir-card-s5 .dir-band-count b{font-size:13px!important}
html body #view-clients .dir-card-s5 .dir-band-body{padding:10px 12px 12px!important;gap:4px!important}
html body #view-clients .dir-card-s5 .dir-name{font-size:15.5px!important;line-height:1.2!important;margin:0!important}
html body #view-clients .dir-card-s5 .dir-doc{font-size:12px!important;margin:2px 0 0!important}
html body #view-clients .dir-card-s5 .dir-s5-acts{gap:6px!important;margin-top:9px!important}
html body #view-clients .dir-card-s5 .dir-s5-b{height:32px!important;min-height:0!important;padding:0 8px!important;font-size:12px!important;line-height:1.05!important;border-radius:999px!important}

/* ============ Envíos (historial) ============ */
html body :is(#view-history,#view-warehouse) .shipment-history-card{padding:8px!important;border-radius:18px!important;min-height:0!important}
html body .shipment-history-card .ship-band{padding:6px 10px!important;min-height:0!important;border-radius:12px!important}
html body .shipment-history-card .store-logo-band{height:20px!important;width:auto!important}
html body .shipment-history-card .ship-wa{height:26px!important;min-height:0!important;padding:0 10px!important;font-size:11px!important}
html body .shipment-history-card .ship-wa svg{width:13px!important;height:13px!important}
html body .shipment-history-card .shipment-history-info{padding:8px 4px 0!important;gap:6px!important}
html body .shipment-history-card .shipment-history-heading{gap:5px!important}
html body .shipment-history-card .shipment-history-heading h3{font-size:15px!important;line-height:1.2!important;margin:0!important}
html body .shipment-history-card .sh-tags{gap:4px!important}
html body .shipment-history-card .sh-tags .tag{height:20px!important;min-height:0!important;padding:0 8px!important;font-size:10.5px!important;line-height:20px!important}
html body .shipment-history-card .sh-dr{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:space-between!important;gap:6px!important}
html body .shipment-history-card .shipment-history-doc{font-size:11.5px!important;line-height:1.3!important;margin:0!important;min-width:0}
html body .shipment-history-card .ship-toggle{height:24px!important;min-height:0!important;padding:0 8px!important;font-size:11px!important;flex:none!important;white-space:nowrap}
html body .shipment-history-card .sh-strip{gap:5px!important}
html body .shipment-history-card .sh-strip>div{padding:6px 7px!important;border-radius:10px!important;min-height:0!important}
html body .shipment-history-card .sh-strip small{font-size:9.5px!important;line-height:1.15!important;white-space:nowrap!important;overflow:hidden;text-overflow:ellipsis;display:block}
html body .shipment-history-card .sh-strip strong,html body .shipment-history-card .sh-strip b{font-size:12.5px!important;line-height:1.2!important}
html body .shipment-history-card .sh-two span{font-size:10.5px!important}
html body .shipment-history-card .shipment-history-card-actions{padding:8px 4px 2px!important;gap:6px!important;margin:0!important;border:0!important}
html body .shipment-history-card .shipment-history-card-actions .btn{height:32px!important;min-height:0!important;padding:0 10px!important;font-size:12.5px!important;border-radius:999px!important}
html body .shipment-history-card .shipment-history-card-actions .btn svg{width:15px!important;height:15px!important}
html body .shipment-history-card .shipment-wa-status{font-size:10.5px!important;gap:3px!important}

/* ============ Ventas en tienda ============ */
html body #view-tienda #st-list.cards{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(230px,1fr))!important;gap:10px!important}
html body #view-tienda #st-list>article{padding:12px!important;border-radius:18px!important;min-height:0!important;gap:8px!important;margin:0!important}
html body #view-tienda #st-list .dir-head{gap:8px!important;align-items:flex-start!important}
html body #view-tienda #st-list .dir-avatar{width:32px!important;height:32px!important;font-size:12px!important;border-radius:10px!important;flex:none}
html body #view-tienda #st-list .dir-name{font-size:15px!important;line-height:1.2!important;margin:0!important}
html body #view-tienda #st-list .dir-meta,html body #view-tienda #st-list .dir-mini{font-size:11px!important;line-height:1.3!important}
html body #view-tienda #st-list .st-amt b{font-size:15px!important}
html body #view-tienda #st-list .st-amt small{font-size:10px!important}
html body #view-tienda #st-list .dir-tags{gap:4px!important;margin:0!important}
html body #view-tienda #st-list .dir-tag{height:21px!important;min-height:0!important;padding:0 8px!important;font-size:10.5px!important;line-height:21px!important}
html body #view-tienda #st-list .pc-paid-box{padding:8px 10px!important;border-radius:12px!important}
html body #view-tienda #st-list .pc-paid-box small{font-size:9.5px!important}
html body #view-tienda #st-list .pc-paid-box b{font-size:17px!important}
html body #view-tienda #st-list .pc-prog{gap:8px!important;padding:6px 0!important}
html body #view-tienda #st-list .pc-ring{width:40px!important;height:40px!important;flex:none}
html body #view-tienda #st-list .pc-ring b{font-size:10px!important}
html body #view-tienda #st-list .pc-leg{font-size:10.5px!important}
html body #view-tienda #st-list .pc-foot{gap:6px!important;margin:0!important}
html body #view-tienda #st-list .pc-btn{height:32px!important;min-height:0!important;padding:0 10px!important;font-size:12.5px!important;border-radius:999px!important}

/* ============ Pagos de envío (tarjeta nueva) ============ */
html body #fl-root .fl-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:8px!important}
html body #fl-root .fl-grid>span{background:#FFFFFF;border-radius:14px;padding:10px;display:flex;flex-direction:column-reverse;gap:3px;min-width:0}
html body #fl-root .fl-grid>span b{font:800 15px/1.1 Inter,system-ui,sans-serif;color:#E0335A;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html body #fl-root .fl-grid>span small{font:700 10.5px/1.2 Inter,system-ui,sans-serif;color:#6B7378}
@media (max-width:620px){html body #fl-root .fl-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
html body #fl-root .fl-day{margin:16px 0 0}
html body #fl-root .fl-day-hd{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin:0 4px 8px;flex-wrap:wrap}
html body #fl-root .fl-day-hd b{font:800 15px/1.2 Inter,system-ui,sans-serif;color:#182A31;text-transform:capitalize}
html body #fl-root .fl-day-hd span{font:600 11.5px/1.2 Inter,system-ui,sans-serif;color:#6B7378}
html body #fl-root .fl-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:10px}
html body #fl-root .fl-c{background:#FFFFFF;border-radius:18px;padding:12px;display:flex;flex-direction:column;gap:6px;min-width:0;border:2px solid transparent;font-family:Inter,system-ui,sans-serif;color:#182A31}
html body #fl-root .fl-c.sel{border-color:#E0335A}
html body #fl-root .fl-c-top{display:flex;align-items:center;gap:6px;min-height:22px}
html body #fl-root .fl-c-logo{height:18px;width:auto;display:block}
html body #fl-root .fl-c-ag{height:21px;padding:0 8px;border-radius:999px;background:#F1F2EF;font:700 10.5px/21px Inter,system-ui,sans-serif;color:#182A31}
html body #fl-root .fl-c-st{margin-left:auto;height:21px;padding:0 8px;border-radius:999px;font:700 10.5px/21px Inter,system-ui,sans-serif;background:#F1F2EF;color:#6B7378;white-space:nowrap}
html body #fl-root .fl-c-st.w{background:#FCE9EE;color:#C42A4E}
html body #fl-root .fl-c-st.ok{background:#E3F6EC;color:#16794C}
html body #fl-root .fl-c-chk{display:flex;align-items:center;margin:0 0 0 2px}
html body #fl-root .fl-c-chk input{width:18px;height:18px;accent-color:#E0335A;margin:0}
html body #fl-root .fl-c-name{margin:2px 0 0;font:800 15px/1.2 Inter,system-ui,sans-serif;letter-spacing:-.01em}
html body #fl-root .fl-c-meta{margin:0;font:500 11px/1.35 Inter,system-ui,sans-serif;color:#6B7378}
html body #fl-root .fl-c-nums{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin-top:2px}
html body #fl-root .fl-c-nums>div{background:#F1F2EF;border-radius:10px;padding:6px 8px;min-width:0}
html body #fl-root .fl-c-nums small{display:block;font:700 9.5px/1.2 Inter,system-ui,sans-serif;color:#6B7378;white-space:nowrap}
html body #fl-root .fl-c-nums b{display:block;margin-top:2px;font:800 13px/1.2 Inter,system-ui,sans-serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html body #fl-root .fl-c-nums>div.k{background:#182A31}
html body #fl-root .fl-c-nums>div.k small{color:#BEC5C2}
html body #fl-root .fl-c-nums>div.k b{color:#FFFFFF}
html body #fl-root .fl-c.st-pendiente .fl-c-nums>div.k{background:#E0335A}
html body #fl-root .fl-c.st-pendiente .fl-c-nums>div.k small{color:#FFE3EA}
html body #fl-root .fl-c-pago{margin:0;font:600 11px/1.3 Inter,system-ui,sans-serif;color:#16794C}
html body #fl-root .fl-c-foot{display:flex;margin-top:2px}
html body #fl-root .fl-c-btn{flex:1;height:32px;border:0;border-radius:999px;background:#F1F2EF;color:#182A31;font:700 12.5px/1 Inter,system-ui,sans-serif;cursor:pointer}
html body #fl-root .fl-c-btn:hover{background:#E7E8E5}
html body #fl-root .fl-c-hist{font-size:11px!important;margin:0!important}
html body #fl-root .fl-c .fl-edit{margin-top:4px}

/* ============ Notas de venta (dentro de su app) ============ */
html body .card.nc3{padding:12px!important;border-radius:18px!important;gap:6px!important}
html body .card.nc3 h3,html body .card.nc3 .nc3-name,html body .card.nc3 b.nm{font-size:15px!important;line-height:1.2!important}
html body .card.nc3 small,html body .card.nc3 .mu{font-size:11px!important}
html body .card.nc3 .nc3-badge{font-size:10.5px!important;padding:3px 8px!important}
html body .card.nc3 .chip{height:32px!important;min-height:0!important;font-size:12.5px!important;padding:0 12px!important}

/* ============ Pagos parciales (tarjetas de cliente) ============ */
html body #view-history .pc-card,html body #view-cobrar .pc-card,html body #view-home .pc-card{padding:12px!important;border-radius:18px!important;gap:8px!important}
html body :is(#view-history,#view-cobrar,#view-home) .pc-card :is(h3,.pc-name){font-size:15px!important;line-height:1.2!important}
html body :is(#view-history,#view-cobrar,#view-home) .pc-card .pc-btn{height:32px!important;min-height:0!important;font-size:12.5px!important;padding:0 10px!important}
html body :is(#view-history,#view-cobrar,#view-home) .pc-card .pc-paid-box{padding:8px 10px!important}
html body :is(#view-history,#view-cobrar,#view-home) .pc-card .pc-paid-box b{font-size:17px!important}
html body :is(#view-history,#view-cobrar,#view-home) .pc-card .pc-ring{width:44px!important;height:44px!important}

/* Envíos: rejilla un poco más ancha para que los montos no se corten */
html body :is(#view-history,#view-warehouse) :has(> .shipment-history-card){display:grid!important;grid-template-columns:repeat(auto-fill,minmax(230px,1fr))!important;gap:10px!important}
html body .shipment-history-card .sh-strip small{white-space:normal!important;overflow:visible!important}html body :is(#st-list,.pc-card,#fl-root) .pc-btn{display:inline-flex!important;align-items:center!important;justify-content:center!important;text-decoration:none!important}
html body #view-tienda #st-list .pc-ring svg{width:100%!important;height:100%!important}
html body #view-tienda #st-list>article{box-shadow:0 1px 2px rgba(24,42,49,.06)!important}
/* Notas: rejilla de 270 px mínimo (antes 4 columnas angostas en laptop) */
html body :is(#hl,#cl,.nc-grid):has(> .card.nc3),html body :has(> .card.nc3){display:grid!important;grid-template-columns:repeat(auto-fill,minmax(230px,1fr))!important;gap:10px!important}
/* ============ v424 · REJILLA ÚNICA: tarjetas cuadradas, varias por fila (sobre todo en laptop) ============
   Cualquier lista con 2 o más tarjetas seguidas pasa a rejilla de ~230 px. Los títulos sueltos (mes, día) ocupan toda la fila. */
html body :where(div,section,ul):has(> :is(.pc-card,.dir-card,.shipment-history-card,.card.nc3,.fl-c,.record) ~ :is(.pc-card,.dir-card,.shipment-history-card,.card.nc3,.fl-c,.record)){
  display:grid!important;grid-template-columns:repeat(auto-fill,minmax(230px,1fr))!important;gap:10px!important;align-items:stretch!important}
html body :where(div,section,ul):has(> :is(.pc-card,.dir-card,.shipment-history-card,.card.nc3,.fl-c,.record) ~ :is(.pc-card,.dir-card,.shipment-history-card,.card.nc3,.fl-c,.record)) > :not(.pc-card,.dir-card,.shipment-history-card,.card.nc3,.fl-c,.record){grid-column:1/-1!important}
html body :is(.pc-card,.dir-card,.shipment-history-card,.card.nc3,.fl-c,.record){width:auto!important;max-width:none!important;margin:0!important;min-width:0!important}
@media (max-width:520px){html body :where(div,section,ul):has(> :is(.pc-card,.dir-card,.shipment-history-card,.card.nc3,.fl-c,.record) ~ :is(.pc-card,.dir-card,.shipment-history-card,.card.nc3,.fl-c,.record)){grid-template-columns:minmax(0,1fr)!important;gap:8px!important}}

/* Pagos parciales: tarjeta cuadrada (menos alto) */
html body .pc-card{padding:11px!important;border-radius:18px!important;display:flex!important;flex-direction:column!important;gap:7px!important}
html body .pc-card .pc-band img,html body .pc-card>img:first-child{height:18px!important;width:auto!important}
html body .pc-card :is(h3,.pc-name,.pc-id h3){font-size:14.5px!important;line-height:1.2!important;margin:0!important}
html body .pc-card :is(small,.pc-tel,.pc-meta){font-size:11px!important}
html body .pc-card :is(.pc-pills,.pc-tags,.dir-tags){gap:4px!important;flex-wrap:wrap!important}
html body .pc-card :is(.pc-pill,.pc-tag,.dir-tag,.tag){height:20px!important;min-height:0!important;padding:0 7px!important;font-size:10px!important;line-height:20px!important}
html body .pc-card .pc-paid-box{padding:7px 9px!important;border-radius:12px!important}
html body .pc-card .pc-paid-box small{font-size:9.5px!important}
html body .pc-card .pc-paid-box b{font-size:16px!important}
html body .pc-card .pc-prog{gap:8px!important}
html body .pc-card .pc-ring{width:40px!important;height:40px!important;flex:none}
html body .pc-card .pc-ring svg{width:100%!important;height:100%!important}
html body .pc-card .pc-leg{font-size:10.5px!important}
html body .pc-card .pc-foot{margin-top:auto!important;gap:6px!important}
html body .pc-card .pc-btn{height:30px!important;min-height:0!important;font-size:12px!important;padding:0 10px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;border-radius:999px!important}
/* botones de las tarjetas siempre abajo, para que las tarjetas de una fila queden parejas */
html body :is(.dir-card,.shipment-history-card,.card.nc3,.fl-c,.record){display:flex!important;flex-direction:column!important}
html body .dir-card-s5 .dir-band-body{display:flex!important;flex-direction:column!important;flex:1!important}
html body .dir-card-s5 .dir-s5-acts{margin-top:auto!important;padding-top:8px}
html body .fl-c .fl-c-foot{margin-top:auto!important}
/* ============ Pagos parciales · Por cobrar: cabecera ordenada (el nombre ya no se aplasta) ============
   fila 1: logo · días esperando   fila 2: nombre y teléfono   fila 3: WhatsApp */
html body .pc-card .pc-hd{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;grid-template-areas:"av days" "id id" "wa wa"!important;align-items:center!important;gap:6px 8px!important}
html body .pc-card .pc-hd>.pc-av{grid-area:av!important;width:auto!important;height:auto!important;min-width:0!important;background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important;justify-self:start!important}
html body .pc-card .pc-hd>.pc-av img{height:22px!important;width:auto!important;max-width:90px!important;display:block}
html body .pc-card .pc-hd>.pc-id{grid-area:id!important;min-width:0!important;width:auto!important}
html body .pc-card .pc-hd>.pc-id h3{white-space:normal!important;word-break:normal!important;overflow-wrap:anywhere}
html body .pc-card .pc-hd>.pc-days{grid-area:days!important;padding:4px 9px!important;border-radius:10px!important;text-align:right!important;min-width:0!important}
html body .pc-card .pc-hd>.pc-days b{font-size:13px!important;line-height:1.1!important}
html body .pc-card .pc-hd>.pc-days small{font-size:9.5px!important}
html body .pc-card .pc-hd>.wa-pill{grid-area:wa!important;justify-self:start!important;height:28px!important;min-height:0!important;padding:0 12px!important;font-size:12px!important;gap:6px!important;border-radius:999px!important}
html body .pc-card .pc-hd>.wa-pill svg{width:14px!important;height:14px!important}
html body .pc-card .pc-hd>.fl-chk,html body .pc-card .pc-hd>label{grid-area:days!important}

/* ============ Pagos parciales · compras registradas (.record): compacta ============ */
html body .record{padding:12px!important;border-radius:18px!important;gap:8px!important;display:flex!important;flex-direction:column!important}
html body .record .record-top{gap:8px!important;align-items:flex-start!important}
html body .record .record-name{font-size:15px!important;line-height:1.2!important}
html body .record .record-sub{font-size:11px!important;line-height:1.35!important}
html body .record .record-balance strong{font-size:15px!important}
html body .record .record-balance span{font-size:9px!important}
html body .record .payment-visual{padding:8px 10px!important;gap:10px!important;border-radius:12px!important}
html body .record .payment-ring{width:58px!important;height:58px!important;flex:none!important}
html body .record .payment-ring .ring-center strong{font-size:13px!important}
html body .record .payment-ring .ring-center small{font-size:8.5px!important}
html body .record .payment-breakdown{font-size:11.5px!important;gap:3px!important}
html body .record .payment-breakdown strong{font-size:12px!important}
html body .record .record-bottom{flex-wrap:wrap!important;gap:6px!important;margin-top:auto!important;padding-top:6px!important}
html body .record .record-bottom .actions{display:flex!important;flex-wrap:wrap!important;gap:5px!important}
html body .record .record-bottom .actions button{height:28px!important;min-height:0!important;padding:0 9px!important;font-size:11.5px!important;border-radius:999px!important}
html body .record .record-bottom .pill{font-size:10.5px!important;padding:3px 8px!important}
html body .record .amount-summary{font-size:10.5px!important}
/* ============ Pagos parciales · tarjeta más corta (v424 b) ============
   fila 1: logo · días · WhatsApp (solo ícono)   fila 2: nombre y teléfono   fila 3: etiquetas en una línea
   fila 4: anillo + barra con «Pagado · Debe» en una línea   fila 5: botones */
html body .pc-card .pc-hd{grid-template-columns:minmax(0,1fr) auto auto!important;grid-template-areas:"av days wa" "id id id"!important;gap:4px 6px!important}
html body .pc-card .pc-hd>.wa-pill{grid-area:wa!important;justify-self:end!important;width:30px!important;height:30px!important;padding:0!important;font-size:0!important;gap:0!important;justify-content:center!important;border-radius:50%!important}
html body .pc-card .pc-hd>.wa-pill svg{width:16px!important;height:16px!important;margin:0!important}
html body .pc-card .pc-hd>.pc-days{display:flex!important;align-items:baseline!important;gap:4px!important;padding:5px 9px!important;border-radius:999px!important}
html body .pc-card .pc-hd>.pc-days b{font-size:12px!important}
html body .pc-card .pc-hd>.pc-days small{font-size:9.5px!important}
html body .pc-card .pc-hd>.pc-id h3{font-size:14px!important;line-height:1.25!important;display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;overflow:hidden!important}
html body .pc-card .pc-hd>.pc-id small{display:block;margin-top:1px}
/* etiquetas: una sola línea; la tienda ya se ve en el logo */
html body .pc-card .pc-tags{display:flex!important;flex-wrap:nowrap!important;overflow:hidden!important;gap:4px!important;margin:0!important}
html body .pc-card .pc-tags>span{flex:none!important;white-space:nowrap!important;height:20px!important;line-height:20px!important;padding:0 7px!important;font-size:10px!important;border-radius:999px!important}
html body .pc-card .pc-tags>span:first-child:is(:not(:only-child)){display:none!important}
/* progreso en una fila */
html body .pc-card .pc-prog{display:flex!important;align-items:center!important;gap:8px!important;padding:0!important;margin:0!important}
html body .pc-card .pc-ring{width:36px!important;height:36px!important}
html body .pc-card .pc-ring b{font-size:9.5px!important}
html body .pc-card .pc-bars{flex:1!important;min-width:0!important;display:flex!important;flex-direction:column!important;gap:4px!important}
html body .pc-card .pc-bar{height:7px!important}
html body .pc-card .pc-leg{display:flex!important;flex-wrap:nowrap!important;justify-content:space-between!important;gap:6px!important;font-size:10.5px!important;white-space:nowrap!important}
html body .pc-card .pc-leg span{display:inline-flex!important;align-items:center!important;gap:3px!important;white-space:nowrap!important}
html body .pc-card .pc-leg b{display:inline!important;white-space:nowrap!important}
html body .pc-card .pc-foot{display:grid!important;grid-template-columns:1fr 1fr!important;gap:6px!important}
html body .pc-card .pc-foot>.pc-btn:only-child{grid-column:1/-1!important}html body .pc-card .pc-leg{font-size:10px!important;gap:4px!important;overflow:visible!important}
html body .pc-card .pc-leg i{display:none!important}
html body .pc-card .pc-leg span{gap:2px!important;min-width:0!important}
html body .pc-card .pc-leg b{font-size:10.5px!important}
html body .pc-card .pc-bars{overflow:visible!important}
/* v460 · WhatsApp compacto en la tarjeta: «Cliente | Tienda» (fondo que se desliza) + botón verde */
html body .pc-card .pc-hd>.cbw{grid-area:wa!important;justify-self:end!important;display:flex;align-items:center;gap:5px}
.cbw-seg{position:relative;display:flex;background:#EEF1F0;border-radius:999px;padding:2px;isolation:isolate}
html body .cbw-seg button{position:relative;z-index:1;border:0!important;background:transparent!important;box-shadow:none!important;margin:0!important;min-height:0!important;height:26px!important;width:auto!important;padding:0 9px!important;border-radius:999px!important;font:700 11px/1 Inter,-apple-system,sans-serif!important;color:#7A878C!important;cursor:pointer;transition:color .25s;-webkit-tap-highlight-color:transparent}
.cbw-seg i{position:absolute;z-index:0;top:2px;bottom:2px;left:2px;width:calc(50% - 2px);border-radius:999px;background:#16262D;transition:transform .3s cubic-bezier(.3,.7,.3,1),width .3s}
.cbw[data-cbsel=c] .cbw-seg button[data-cbd=c],.cbw[data-cbsel=t] .cbw-seg button[data-cbd=t]{color:#fff!important}
.cbw[data-cbsel=t] .cbw-seg i{transform:translateX(100%)}
html body .pc-card .cbw>.wa-pill{position:relative;overflow:hidden;width:30px!important;height:30px!important;min-height:0!important;padding:0!important;font-size:0!important;gap:0!important;display:grid!important;place-items:center!important;border-radius:50%!important;margin:0!important}
html body .pc-card .cbw>.wa-pill svg{width:16px!important;height:16px!important;margin:0!important}
.cbw .wa-pill .rip{position:absolute;inset:0;border-radius:50%;background:rgba(255,255,255,.55);animation:cbwRip .5s ease-out forwards;pointer-events:none}
@keyframes cbwRip{from{transform:scale(0);opacity:1}to{transform:scale(1.6);opacity:0}}
@media (prefers-reduced-motion:reduce){.cbw-seg i{transition:none}.cbw .wa-pill .rip{animation:none;display:none}}

/* ============ v462 · Pagos parciales · tarjeta modelo A «Segmentos» ============ */
.pa-card{background:#fff;border-radius:20px;border:1.5px solid #DCE3E1;box-shadow:0 1px 2px rgba(22,38,45,.05),0 8px 22px rgba(22,38,45,.07);padding:14px;display:flex;flex-direction:column;gap:11px;min-width:0;box-sizing:border-box;font-family:Inter,-apple-system,sans-serif;color:#16262D;text-align:left}
.pa-hd{display:flex;align-items:center;gap:10px}
.pa-lg{height:22px;width:auto;flex:none}
html body .pa-who{flex:1;min-width:0;border:0!important;background:none!important;box-shadow:none!important;padding:0!important;margin:0!important;text-align:left;cursor:pointer;font:inherit;color:inherit;min-height:0!important;width:auto!important;height:auto!important;display:block!important}
.pa-who:disabled{cursor:default}
.pa-who b{display:block;font:800 15.5px/1.2 Inter,sans-serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#16262D}
.pa-who small{display:block;font:600 11.5px Inter,sans-serif;color:#6B7A80;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pa-tag{flex:none;font:800 10.5px Inter,sans-serif;border-radius:999px;padding:4px 9px;white-space:nowrap}.pa-tag.t{background:#FFF4E5;color:#B45309}.pa-tag.e{background:#E9F3FF;color:#1D5FB8}
.pa-mn{display:flex;align-items:flex-end;justify-content:space-between;gap:10px}
.pa-db small,.pa-ok small{display:block;margin-bottom:3px;font:800 10px/1 Inter,sans-serif;letter-spacing:.1em;color:#C2264B}
.pa-db b{display:block;font:800 26px/1.05 Poppins,Inter,sans-serif;color:#C2264B}
.pa-ok small{color:#16A34A}.pa-ok b{display:block;font:800 22px/1.05 Poppins,Inter,sans-serif;color:#16A34A}
.pa-tt{text-align:right;font:600 12px Inter,sans-serif;color:#6B7A80}.pa-tt b{display:block;font:800 14px Inter,sans-serif;color:#16262D}
.pa-sb{display:flex;gap:3px;height:12px;border-radius:7px;overflow:hidden;background:#F1F3F2}
.pa-sb i{display:block;height:100%;border-radius:4px;min-width:4px}.pa-sb i.pa-f{background:#6FD3A8}
.pa-ch{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}
.pa-ch span{display:inline-flex;align-items:center;gap:5px;font:700 11.5px Inter,sans-serif;background:#F4F6F5;border-radius:9px;padding:5px 8px;color:#16262D}
.pa-ch span em{font-style:normal;font-weight:600;color:#6B7A80}.pa-ch span i{width:8px;height:8px;border-radius:3px;flex:none}
.pa-ch span.pa-fa{background:#E6F8F0;color:#1E7A52}.pa-ch span.pa-fa i{background:#6FD3A8}
.pa-ac{display:flex;gap:8px;align-items:center;margin-top:auto}
html body .pa-ab{flex:0 0 auto;height:44px!important;min-height:0!important;margin:0!important;border:0!important;border-radius:14px!important;background:#16262D!important;color:#fff!important;font:800 14px Inter,sans-serif!important;padding:0 16px!important;cursor:pointer;width:auto!important;box-shadow:none!important}
html body .pa-ab.l{flex:1;background:#E9F4F6!important;color:#0E7C8C!important}
.pa-wa{flex:1;min-width:0;height:44px;border-radius:14px;background:#25D366;display:flex;align-items:center;overflow:hidden;position:relative;box-shadow:0 6px 14px rgba(37,211,102,.25)}
html body .pa-wa .pa-go{position:relative;overflow:hidden;flex:1;min-width:0;height:100%!important;min-height:0!important;margin:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;color:#fff!important;font:800 13.5px Inter,sans-serif!important;padding:0 6px 0 12px!important;display:flex!important;align-items:center;gap:8px;cursor:pointer;width:auto!important;white-space:nowrap}
.pa-wa .pa-go svg{width:21px;height:21px;fill:#fff;flex:none}
html body .pa-wa .cbw-seg{margin-right:4px;background:rgba(0,0,0,.14);border-radius:11px;padding:3px}
html body .pa-wa .cbw-seg button{height:30px!important;padding:0 9px!important;border-radius:9px!important;font:800 11.5px Inter,sans-serif!important;color:rgba(255,255,255,.88)!important}
html body .pa-wa .cbw-seg i{top:3px;bottom:3px;left:3px;width:calc(50% - 3px);background:#fff;border-radius:9px}
.pa-wa[data-cbsel=c] .cbw-seg button[data-cbd=c],.pa-wa[data-cbsel=t] .cbw-seg button[data-cbd=t]{color:#128C4A!important}
@media (max-width:390px){.pa-wa .pa-go span{display:none}}

/* v462 · Ventas en tienda con el diseño de Pagos parciales */
html body .ti-pa .ti-chip{align-self:flex-start;display:inline-flex;align-items:center;gap:6px;height:30px;min-height:0;margin:0;padding:0 11px;border:0;border-radius:999px;background:#F1F4F3;color:#16262D;font:700 12px Inter,sans-serif;cursor:pointer;box-shadow:none;width:auto}
.ti-pa .ti-chip i{font-style:normal;font-size:10px;transition:transform .2s}
.ti-pa .ti-det:not([hidden])~.pa-ac{margin-top:2px}
.ti-pa .ti-det{display:flex;flex-direction:column;gap:6px;background:#F7F8F8;border-radius:12px;padding:10px 12px;margin-top:-4px}
.ti-pa .ti-det[hidden]{display:none}
.ti-pa .ti-det ul{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:4px}
.ti-pa .ti-det li{font:600 12.5px/1.3 Inter,sans-serif;color:#16262D;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ti-pa .ti-det li b{font-weight:800;color:#6B7A80}
.ti-pa .ti-det li.mas{color:#6B7A80;font-weight:600}
.ti-pa .ti-det small{font:600 11.5px Inter,sans-serif;color:#6B7A80}
html body .ti-pa .ti-wa{flex:1;justify-content:center;gap:8px;text-decoration:none;color:#fff;font:800 14px Inter,sans-serif}
.ti-pa .ti-wa svg{width:20px;height:20px;fill:#fff}
html body .ti-pa .pa-ac .pc-trash{position:static!important;flex:none;width:44px;height:44px;margin:0!important;border-radius:14px}
.ti-pa .pa-ac:empty{display:none}
.ti-pa .pa-tag{display:none}.ti-pa .pa-db b,.ti-pa .pa-ok b{font-size:22px;white-space:nowrap}.ti-pa .pa-tt{white-space:nowrap;font-size:11.5px}.ti-pa .pa-tt b{font-size:13px}.ti-pa .pa-mn{flex-wrap:wrap;row-gap:4px}
.ti-pa .ti-dt{display:flex;gap:10px;align-items:flex-start}
html body .ti-pa .ti-nv{position:relative;flex:none;width:74px;height:96px;margin:0;padding:0;border:0;border-radius:10px;background:#fff;box-shadow:0 2px 8px rgba(22,38,45,.14);overflow:hidden;cursor:pointer;min-height:0}
.ti-pa .ti-nv img{width:100%;height:100%;object-fit:cover;object-position:top;display:block}
.ti-pa .ti-nv em{position:absolute;left:0;right:0;bottom:0;font-style:normal;font:800 9.5px Inter,sans-serif;color:#fff;background:rgba(22,38,45,.78);padding:3px 0;text-align:center}
.ti-pa .ti-nvph{display:grid;place-items:center;height:100%;padding:4px;font:700 9.5px/1.2 Inter,sans-serif;color:#8A979C;text-align:center}
.ti-pa .ti-dx{flex:1;min-width:0;display:flex;flex-direction:column;gap:5px}
.ti-pa .ti-vz{font:800 12.5px Inter,sans-serif;color:#16262D}
.ti-nvov{position:fixed;inset:0;z-index:99999;background:rgba(11,18,21,.75);display:flex;align-items:center;justify-content:center;padding:16px}
.ti-nvov img{max-width:min(520px,100%);max-height:100%;border-radius:12px;box-shadow:0 20px 50px rgba(0,0,0,.4)}
.ti-nvov.multi{flex-direction:column;justify-content:flex-start;gap:12px;overflow-y:auto;padding-top:64px}
.ti-nvov.multi img{max-height:none;flex:none}
.ti-nvov button{position:fixed;top:14px;right:14px;width:40px;height:40px;border:0;border-radius:50%;background:#fff;font-size:16px;cursor:pointer}
.ti-pa .ti-dt{align-items:center}html body .ti-pa .ti-nv{width:84px;height:110px}.ti-pa .ti-dx{gap:2px}.ti-pa .ti-fl{font:800 9.5px Inter,sans-serif!important;letter-spacing:.1em;color:#8A979C!important}.ti-pa .ti-fd{font:800 14px/1.25 Inter,sans-serif;color:#16262D;margin-bottom:6px;text-transform:capitalize}
.ti-pa .ti-dx .ti-fd:last-child{text-transform:none}
