fix(pos): corregir recorte de pestañas en terminal móvil y añadir notificaciones push y en-app para recargas SINPE

This commit is contained in:
unknown
2026-10-06 01:03:54 -06:00
parent e15c801dd5
commit 7217cefa0f
5 changed files with 541 additions and 36 deletions
+174 -4
View File
@@ -663,21 +663,28 @@ body.dark-mode .floating-cart-bar {
gap: 8px;
border-bottom: 1px solid #e2e8f0;
padding-bottom: 12px;
width: 100%;
box-sizing: border-box;
}
.pos-tab-btn {
background: #ffffff;
border: 1px solid #cbd5e1;
color: #64748b;
border: 1.5px solid #cbd5e1;
color: #475569;
padding: 9px 16px;
border-radius: 10px;
border-radius: 12px;
font-size: 0.88rem;
font-weight: 700;
font-weight: 800;
cursor: pointer;
display: inline-flex;
align-items: center;
gap: 8px;
transition: all 0.15s ease;
white-space: nowrap;
}
.pos-tab-btn .tab-label-short {
display: none;
}
.pos-tab-btn:hover {
@@ -693,6 +700,42 @@ body.dark-mode .floating-cart-bar {
box-shadow: 0 2px 5px rgba(15, 23, 42, 0.15);
}
@media (max-width: 900px) {
.pos-tabs {
display: grid !important;
grid-template-columns: repeat(3, 1fr) !important;
gap: 6px !important;
width: 100% !important;
padding-bottom: 8px !important;
overflow-x: hidden !important;
}
.pos-tab-btn {
padding: 7px 4px !important;
font-size: 0.74rem !important;
flex-direction: column !important;
text-align: center !important;
gap: 2px !important;
min-width: 0 !important;
width: 100% !important;
line-height: 1.15 !important;
border-radius: 10px !important;
}
.pos-tab-btn .tab-icon {
font-size: 1.15rem;
line-height: 1;
}
.pos-tab-btn .tab-label-full {
display: none !important;
}
.pos-tab-btn .tab-label-short {
display: inline-block !important;
}
}
/* ==========================================================================
BUSCADOR INTELIGENTE DE PRODUCTOS EN MOSTRADOR (POS)
========================================================================== */
@@ -1308,6 +1351,7 @@ body.dark-mode .floating-cart-bar {
padding: 14px;
padding-bottom: 95px; /* Espacio para barra flotante */
box-sizing: border-box;
overflow-x: hidden !important;
}
body.pos-mobile-view-catalog .pos-checkout-pane {
@@ -3940,3 +3984,129 @@ body.dark-mode .parent-refined-menu-item:hover {
body.dark-mode .parent-refined-item-title {
color: #f1f5f9;
}
/* ==========================================================================
NOTIFICACIÓN FLOTANTE EN TIEMPO REAL (IN-APP PUSH NOTIFICATION)
========================================================================== */
.recreopay-inapp-toast {
position: fixed;
top: 16px;
right: 16px;
left: 16px;
max-width: 450px;
margin-left: auto;
z-index: 999999;
background: #ffffff;
border-radius: 18px;
border: 1.5px solid #10b981;
box-shadow: 0 16px 40px -6px rgba(16, 185, 129, 0.28), 0 4px 16px rgba(0, 0, 0, 0.1);
padding: 12px 16px;
display: flex;
align-items: center;
gap: 12px;
animation: slideDownInApp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
box-sizing: border-box;
}
@keyframes slideDownInApp {
from {
transform: translateY(-40px) scale(0.95);
opacity: 0;
}
to {
transform: translateY(0) scale(1);
opacity: 1;
}
}
.recreopay-inapp-toast.closing {
animation: slideUpInApp 0.25s ease forwards;
}
@keyframes slideUpInApp {
from {
transform: translateY(0) scale(1);
opacity: 1;
}
to {
transform: translateY(-30px) scale(0.95);
opacity: 0;
}
}
.recreopay-inapp-toast-icon {
width: 42px;
height: 42px;
border-radius: 12px;
background: linear-gradient(135deg, #10b981, #059669);
color: white;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.35rem;
flex-shrink: 0;
box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}
.recreopay-inapp-toast-content {
flex: 1;
min-width: 0;
}
.recreopay-inapp-toast-title {
font-size: 0.88rem;
font-weight: 900;
color: #065f46;
display: flex;
align-items: center;
gap: 6px;
}
.recreopay-inapp-toast-body {
font-size: 0.76rem;
color: #374151;
margin-top: 2px;
line-height: 1.25;
}
.recreopay-inapp-toast-btn {
background: #10b981;
color: white;
border: none;
border-radius: 8px;
padding: 7px 12px;
font-size: 0.78rem;
font-weight: 800;
cursor: pointer;
white-space: nowrap;
transition: all 0.15s ease;
box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
}
.recreopay-inapp-toast-btn:hover {
background: #059669;
transform: translateY(-1px);
}
.recreopay-inapp-toast-close {
background: none;
border: none;
color: #9ca3af;
font-size: 1.15rem;
cursor: pointer;
padding: 4px;
line-height: 1;
}
body.dark-mode .recreopay-inapp-toast {
background: #1e293b;
border-color: #10b981;
}
body.dark-mode .recreopay-inapp-toast-title {
color: #34d399;
}
body.dark-mode .recreopay-inapp-toast-body {
color: #cbd5e1;
}