1596 lines
31 KiB
CSS
1596 lines
31 KiB
CSS
/* ==========================================================================
|
|
RECREOPAY - SISTEMA DE DISEÑO UNIFICADO (MODO CLARO + MODO OSCURO)
|
|
========================================================================== */
|
|
|
|
:root {
|
|
--safe-top: env(safe-area-inset-top, 0px);
|
|
--safe-bottom: env(safe-area-inset-bottom, 0px);
|
|
--safe-left: env(safe-area-inset-left, 0px);
|
|
--safe-right: env(safe-area-inset-right, 0px);
|
|
--primary: #0284c7;
|
|
--primary-hover: #0369a1;
|
|
--secondary: #10b981;
|
|
--accent: #f59e0b;
|
|
--danger: #ef4444;
|
|
--bg-main: #f8fafc;
|
|
--card-bg: #ffffff;
|
|
--text-main: #0f172a;
|
|
--text-muted: #64748b;
|
|
--border: #e2e8f0;
|
|
--radius: 14px;
|
|
--shadow: 0 4px 12px -2px rgba(15, 23, 42, 0.08);
|
|
}
|
|
|
|
/* Modo Oscuro (activable con el botón de luna 🌙) */
|
|
body.dark-mode {
|
|
--primary: #38bdf8;
|
|
--primary-hover: #0284c7;
|
|
--secondary: #34d399;
|
|
--accent: #fbbf24;
|
|
--danger: #f87171;
|
|
--bg-main: #0b1120;
|
|
--card-bg: #1e293b;
|
|
--text-main: #f1f5f9;
|
|
--text-muted: #94a3b8;
|
|
--border: #334155;
|
|
--radius: 14px;
|
|
--shadow: 0 10px 20px -3px rgba(0, 0, 0, 0.5);
|
|
}
|
|
|
|
*, *::before, *::after {
|
|
box-sizing: border-box;
|
|
margin: 0;
|
|
padding: 0;
|
|
font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
|
-webkit-tap-highlight-color: transparent;
|
|
}
|
|
|
|
html {
|
|
width: 100%;
|
|
max-width: 100vw;
|
|
overflow-x: hidden;
|
|
position: relative;
|
|
-webkit-text-size-adjust: 100%;
|
|
}
|
|
|
|
body {
|
|
background-color: var(--bg-main);
|
|
color: var(--text-main);
|
|
min-height: 100vh;
|
|
min-height: -webkit-fill-available;
|
|
width: 100%;
|
|
max-width: 100vw;
|
|
overflow-x: hidden;
|
|
position: relative;
|
|
display: flex;
|
|
flex-direction: column;
|
|
transition: background-color 0.3s ease, color 0.3s ease;
|
|
}
|
|
|
|
/* Contenedor móvil centrado para PWA */
|
|
.app-container {
|
|
max-width: 480px;
|
|
margin: 0 auto;
|
|
width: 100%;
|
|
padding-bottom: calc(90px + var(--safe-bottom));
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
/* Top App Bar */
|
|
.top-bar {
|
|
background: var(--card-bg);
|
|
padding: calc(12px + var(--safe-top)) 16px 12px 16px;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
border-bottom: 1px solid var(--border);
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 40;
|
|
box-shadow: var(--shadow);
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
.top-bar {
|
|
padding: calc(10px + var(--safe-top)) 12px 10px 12px;
|
|
}
|
|
.brand-badge {
|
|
font-size: 1.05rem;
|
|
gap: 6px;
|
|
}
|
|
.brand-badge .logo-icon {
|
|
width: 32px;
|
|
height: 32px;
|
|
font-size: 1.05rem;
|
|
}
|
|
.top-actions {
|
|
gap: 5px;
|
|
}
|
|
.theme-toggle-btn {
|
|
width: 34px;
|
|
height: 34px;
|
|
font-size: 1.05rem;
|
|
}
|
|
.logout-btn {
|
|
padding: 6px 10px;
|
|
font-size: 0.75rem;
|
|
}
|
|
}
|
|
|
|
.brand-badge {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
font-size: 1.25rem;
|
|
font-weight: 800;
|
|
color: var(--text-main);
|
|
text-decoration: none;
|
|
}
|
|
|
|
.brand-badge .logo-icon {
|
|
background: linear-gradient(135deg, #0284c7, #38bdf8);
|
|
color: white;
|
|
width: 36px;
|
|
height: 36px;
|
|
border-radius: 10px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 1.2rem;
|
|
}
|
|
|
|
/* Botones de acción en la cabecera */
|
|
.top-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.theme-toggle-btn {
|
|
background: var(--bg-main);
|
|
border: 1.5px solid var(--border);
|
|
color: var(--text-main);
|
|
width: 38px;
|
|
height: 38px;
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 1.2rem;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
box-shadow: 0 1px 3px rgba(0,0,0,0.08);
|
|
}
|
|
|
|
.theme-toggle-btn:hover {
|
|
transform: scale(1.08);
|
|
border-color: var(--primary);
|
|
}
|
|
|
|
.logout-btn {
|
|
background: #fee2e2;
|
|
color: #dc2626;
|
|
border: 1px solid #fecaca;
|
|
padding: 7px 12px;
|
|
border-radius: 10px;
|
|
font-size: 0.8rem;
|
|
font-weight: 800;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 5px;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
body.dark-mode .logout-btn {
|
|
background: rgba(239, 68, 68, 0.15);
|
|
color: #f87171;
|
|
border-color: rgba(239, 68, 68, 0.3);
|
|
}
|
|
|
|
.logout-btn:hover {
|
|
background: #fecaca;
|
|
transform: scale(1.02);
|
|
}
|
|
|
|
/* Tarjeta de Saldo y Carné Digital */
|
|
.wallet-card {
|
|
margin: 16px;
|
|
background: linear-gradient(135deg, #0284c7, #0369a1);
|
|
color: white;
|
|
border-radius: var(--radius);
|
|
padding: 20px;
|
|
box-shadow: 0 12px 25px -4px rgba(2, 132, 199, 0.35);
|
|
position: relative;
|
|
overflow: hidden;
|
|
border: 1px solid rgba(255, 255, 255, 0.2);
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
.wallet-card {
|
|
margin: 12px 10px;
|
|
padding: 16px 14px;
|
|
}
|
|
}
|
|
|
|
body.dark-mode .wallet-card {
|
|
background: linear-gradient(135deg, #1e293b, #0f172a);
|
|
border: 1px solid #334155;
|
|
box-shadow: 0 10px 25px -4px rgba(0, 0, 0, 0.5);
|
|
}
|
|
|
|
.wallet-card::after {
|
|
content: "";
|
|
position: absolute;
|
|
top: -40px;
|
|
right: -40px;
|
|
width: 140px;
|
|
height: 140px;
|
|
background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 70%);
|
|
border-radius: 50%;
|
|
}
|
|
|
|
.student-info {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 14px;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.student-avatar {
|
|
width: 58px;
|
|
height: 58px;
|
|
border-radius: 50%;
|
|
border: 3px solid rgba(255, 255, 255, 0.8);
|
|
background: white;
|
|
object-fit: cover;
|
|
box-shadow: 0 4px 10px rgba(0,0,0,0.15);
|
|
}
|
|
|
|
.student-meta h2 {
|
|
font-size: 1.15rem;
|
|
font-weight: 800;
|
|
line-height: 1.2;
|
|
}
|
|
|
|
.student-grade {
|
|
font-size: 0.85rem;
|
|
opacity: 0.9;
|
|
display: inline-block;
|
|
margin-top: 2px;
|
|
}
|
|
|
|
.wallet-logout-pill {
|
|
background: rgba(255, 255, 255, 0.2);
|
|
border: 1px solid rgba(255, 255, 255, 0.4);
|
|
color: #ffffff;
|
|
font-size: 0.74rem;
|
|
font-weight: 800;
|
|
padding: 5px 11px;
|
|
border-radius: 9999px;
|
|
cursor: pointer;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
white-space: nowrap;
|
|
transition: all 0.15s ease;
|
|
backdrop-filter: blur(4px);
|
|
-webkit-backdrop-filter: blur(4px);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.wallet-logout-pill:hover,
|
|
.wallet-logout-pill:active {
|
|
background: #ef4444;
|
|
border-color: #ef4444;
|
|
color: #ffffff;
|
|
transform: scale(0.96);
|
|
}
|
|
|
|
.balance-row {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: flex-end;
|
|
flex-wrap: wrap;
|
|
gap: 10px;
|
|
border-top: 1px solid rgba(255, 255, 255, 0.2);
|
|
padding-top: 14px;
|
|
}
|
|
|
|
.balance-col .label {
|
|
font-size: 0.78rem;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
opacity: 0.85;
|
|
}
|
|
|
|
.balance-col .amount {
|
|
font-size: 1.85rem;
|
|
font-weight: 900;
|
|
letter-spacing: -0.5px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
}
|
|
|
|
.kids-coin-icon {
|
|
font-size: 1.6rem;
|
|
animation: bounce 2s infinite ease-in-out;
|
|
}
|
|
|
|
@keyframes bounce {
|
|
0%, 100% { transform: translateY(0); }
|
|
50% { transform: translateY(-4px); }
|
|
}
|
|
|
|
.qr-toggle-btn {
|
|
background: rgba(255, 255, 255, 0.2);
|
|
border: 1px solid rgba(255, 255, 255, 0.4);
|
|
color: white;
|
|
padding: 8px 14px;
|
|
border-radius: 30px;
|
|
font-weight: 700;
|
|
font-size: 0.85rem;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
backdrop-filter: blur(8px);
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.qr-toggle-btn:hover {
|
|
background: rgba(255, 255, 255, 0.35);
|
|
transform: scale(1.02);
|
|
}
|
|
|
|
/* Modal del Código QR Escolar */
|
|
.modal-qr-backdrop {
|
|
position: fixed;
|
|
inset: 0;
|
|
background: rgba(15, 23, 42, 0.82);
|
|
backdrop-filter: blur(8px);
|
|
-webkit-backdrop-filter: blur(8px);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
z-index: 200;
|
|
padding: calc(16px + var(--safe-top)) 16px calc(16px + var(--safe-bottom)) 16px;
|
|
overflow-y: auto;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.modal-qr-card {
|
|
background: var(--card-bg, #ffffff);
|
|
color: var(--text-main, #0f172a);
|
|
border-radius: 24px;
|
|
padding: 24px 18px;
|
|
max-width: 360px;
|
|
width: 100%;
|
|
text-align: center;
|
|
box-shadow: 0 20px 40px rgba(0,0,0,0.3);
|
|
position: relative;
|
|
animation: zoomIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
|
|
box-sizing: border-box;
|
|
max-height: calc(100vh - 36px - var(--safe-top) - var(--safe-bottom));
|
|
overflow-y: auto;
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
.modal-qr-card {
|
|
padding: 18px 14px;
|
|
border-radius: 20px;
|
|
}
|
|
}
|
|
|
|
@keyframes zoomIn {
|
|
from { transform: scale(0.9); opacity: 0; }
|
|
to { transform: scale(1); opacity: 1; }
|
|
}
|
|
|
|
.qr-code-img {
|
|
width: 220px;
|
|
height: 220px;
|
|
margin: 14px auto;
|
|
display: block;
|
|
border-radius: 12px;
|
|
border: 2px dashed #0284c7;
|
|
padding: 6px;
|
|
}
|
|
|
|
/* Banner de Límite Diario / Alerta */
|
|
.daily-limit-badge {
|
|
background: var(--card-bg);
|
|
border: 1px solid var(--border);
|
|
margin: 0 16px 16px 16px;
|
|
padding: 10px 14px;
|
|
border-radius: var(--radius);
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
font-size: 0.84rem;
|
|
}
|
|
|
|
.daily-limit-badge strong {
|
|
color: var(--secondary);
|
|
}
|
|
|
|
/* Navegación por Categorías */
|
|
.category-scroll {
|
|
display: flex;
|
|
overflow-x: auto;
|
|
gap: 8px;
|
|
padding: 4px 16px 12px 16px;
|
|
scrollbar-width: none;
|
|
}
|
|
|
|
.category-scroll::-webkit-scrollbar {
|
|
display: none;
|
|
}
|
|
|
|
.cat-pill {
|
|
flex-shrink: 0;
|
|
background: var(--card-bg);
|
|
border: 1px solid var(--border);
|
|
color: var(--text-main);
|
|
padding: 8px 16px;
|
|
border-radius: 30px;
|
|
font-size: 0.86rem;
|
|
font-weight: 700;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
box-shadow: var(--shadow);
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.cat-pill.active {
|
|
background: var(--primary);
|
|
color: white;
|
|
border-color: var(--primary);
|
|
}
|
|
|
|
/* Grilla de Productos */
|
|
.section-title {
|
|
padding: 0 16px;
|
|
margin-bottom: 10px;
|
|
font-size: 1.1rem;
|
|
font-weight: 800;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
|
|
.products-grid {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 12px;
|
|
padding: 0 16px;
|
|
}
|
|
|
|
.product-card {
|
|
background: var(--card-bg);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
padding: 14px;
|
|
box-shadow: var(--shadow);
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: space-between;
|
|
position: relative;
|
|
transition: transform 0.15s, box-shadow 0.15s;
|
|
}
|
|
|
|
.product-card:active {
|
|
transform: scale(0.98);
|
|
}
|
|
|
|
.product-icon-wrap {
|
|
font-size: 2.8rem;
|
|
text-align: center;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.product-name {
|
|
font-size: 0.95rem;
|
|
font-weight: 800;
|
|
line-height: 1.25;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.product-desc {
|
|
font-size: 0.76rem;
|
|
color: var(--text-muted);
|
|
line-height: 1.3;
|
|
margin-bottom: 8px;
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: 2;
|
|
-webkit-box-orient: vertical;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.badge-mep {
|
|
font-size: 0.68rem;
|
|
font-weight: 700;
|
|
background: #dcfce7;
|
|
color: #166534;
|
|
padding: 2px 6px;
|
|
border-radius: 4px;
|
|
display: inline-block;
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
.product-footer {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-top: 6px;
|
|
}
|
|
|
|
.product-price {
|
|
font-size: 1.1rem;
|
|
font-weight: 900;
|
|
color: var(--primary);
|
|
}
|
|
|
|
.add-btn {
|
|
background: var(--primary);
|
|
color: white;
|
|
border: none;
|
|
width: 36px;
|
|
height: 36px;
|
|
border-radius: 50%;
|
|
font-size: 1.2rem;
|
|
font-weight: 900;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
cursor: pointer;
|
|
box-shadow: 0 4px 10px rgba(2, 132, 199, 0.3);
|
|
transition: transform 0.15s;
|
|
}
|
|
|
|
.add-btn:active {
|
|
transform: scale(0.9);
|
|
}
|
|
|
|
/* Barra Flotante de Carrito / Pre-orden */
|
|
.floating-cart-bar {
|
|
position: fixed;
|
|
bottom: 16px;
|
|
left: 16px;
|
|
right: 16px;
|
|
max-width: 448px;
|
|
margin: 0 auto;
|
|
background: #0f172a;
|
|
color: white;
|
|
border-radius: 20px;
|
|
padding: 12px 18px;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
box-shadow: 0 10px 25px rgba(0,0,0,0.4);
|
|
z-index: 50;
|
|
cursor: pointer;
|
|
}
|
|
|
|
@media (max-width: 640px) {
|
|
.floating-cart-bar {
|
|
bottom: calc(72px + var(--safe-bottom));
|
|
left: 12px;
|
|
right: 12px;
|
|
padding: 10px 14px;
|
|
}
|
|
}
|
|
|
|
body.dark-mode .floating-cart-bar {
|
|
background: #0284c7;
|
|
border: 1px solid rgba(255, 255, 255, 0.2);
|
|
}
|
|
|
|
.cart-summary {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
}
|
|
|
|
.cart-count-badge {
|
|
background: var(--accent);
|
|
color: #0f172a;
|
|
font-weight: 900;
|
|
padding: 4px 10px;
|
|
border-radius: 12px;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.cart-total-text {
|
|
font-size: 1.1rem;
|
|
font-weight: 800;
|
|
}
|
|
|
|
.cart-action-btn {
|
|
background: var(--secondary);
|
|
color: white;
|
|
border: none;
|
|
padding: 8px 16px;
|
|
border-radius: 12px;
|
|
font-weight: 800;
|
|
font-size: 0.9rem;
|
|
cursor: pointer;
|
|
}
|
|
|
|
/* ==========================================================================
|
|
TERMINAL POS SODA (pos.html)
|
|
========================================================================== */
|
|
.pos-layout {
|
|
display: grid;
|
|
grid-template-columns: 1fr 420px;
|
|
height: 100vh;
|
|
overflow: hidden;
|
|
background: #0f172a;
|
|
color: #f8fafc;
|
|
}
|
|
|
|
.pos-catalog-pane {
|
|
padding: 20px;
|
|
overflow-y: auto;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 16px;
|
|
min-width: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.pos-tabs {
|
|
display: flex;
|
|
gap: 10px;
|
|
border-bottom: 2px solid #334155;
|
|
padding-bottom: 12px;
|
|
}
|
|
|
|
.pos-tab-btn {
|
|
background: #1e293b;
|
|
border: 1px solid #334155;
|
|
color: #94a3b8;
|
|
padding: 10px 18px;
|
|
border-radius: 10px;
|
|
font-size: 0.95rem;
|
|
font-weight: 800;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.pos-tab-btn.active {
|
|
background: #0284c7;
|
|
color: white;
|
|
border-color: #0284c7;
|
|
}
|
|
|
|
.pos-products-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
|
|
gap: 14px;
|
|
}
|
|
|
|
.pos-prod-card {
|
|
background: #1e293b;
|
|
border: 1px solid #334155;
|
|
border-radius: 14px;
|
|
padding: 16px;
|
|
cursor: pointer;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: space-between;
|
|
min-height: 140px;
|
|
transition: all 0.15s;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.pos-prod-card:hover {
|
|
border-color: #38bdf8;
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
.pos-checkout-pane {
|
|
background: #1e293b;
|
|
border-left: 2px solid #334155;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: space-between;
|
|
padding: 20px;
|
|
min-width: 0;
|
|
box-sizing: border-box;
|
|
overflow-y: auto;
|
|
overflow-x: hidden;
|
|
}
|
|
|
|
.scanner-feed-card {
|
|
background: #0f172a;
|
|
border: 2px dashed #0284c7;
|
|
border-radius: 16px;
|
|
padding: 16px;
|
|
text-align: center;
|
|
position: relative;
|
|
overflow: hidden;
|
|
box-sizing: border-box;
|
|
width: 100%;
|
|
max-width: 100%;
|
|
}
|
|
|
|
.camera-preview {
|
|
width: 100%;
|
|
height: 180px;
|
|
background: #000000;
|
|
border-radius: 10px;
|
|
object-fit: cover;
|
|
display: block;
|
|
}
|
|
|
|
.laser-scan-line {
|
|
position: absolute;
|
|
top: 20px;
|
|
left: 16px;
|
|
right: 16px;
|
|
height: 2px;
|
|
background: #ef4444;
|
|
box-shadow: 0 0 10px #ef4444;
|
|
animation: scanMove 2s infinite ease-in-out;
|
|
}
|
|
|
|
@keyframes scanMove {
|
|
0% { top: 20px; opacity: 0.8; }
|
|
50% { top: 180px; opacity: 1; }
|
|
100% { top: 20px; opacity: 0.8; }
|
|
}
|
|
|
|
.pos-cart-list {
|
|
flex-grow: 1;
|
|
overflow-y: auto;
|
|
margin: 16px 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
box-sizing: border-box;
|
|
width: 100%;
|
|
}
|
|
|
|
.pos-cart-item {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
background: #0f172a;
|
|
padding: 10px 14px;
|
|
border-radius: 10px;
|
|
border: 1px solid #334155;
|
|
gap: 10px;
|
|
box-sizing: border-box;
|
|
width: 100%;
|
|
}
|
|
|
|
/* Elementos móviles ocultos por defecto en pantallas grandes */
|
|
.pos-mobile-nav {
|
|
display: none;
|
|
}
|
|
|
|
.pos-mobile-back-bar {
|
|
display: none;
|
|
}
|
|
|
|
.pos-floating-checkout-bar {
|
|
display: none;
|
|
}
|
|
|
|
/* ==========================================================================
|
|
ADAPTACIÓN RESPONSIVE POS PARA MÓVILES Y PANTALLAS ANGOSTAS (<= 900px)
|
|
========================================================================== */
|
|
@media (max-width: 900px) {
|
|
html, body {
|
|
overflow-x: hidden !important;
|
|
width: 100% !important;
|
|
position: relative;
|
|
}
|
|
|
|
.pos-layout {
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: auto;
|
|
min-height: 100vh;
|
|
overflow-x: hidden;
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
/* BARRA DE PESTAÑAS MÓVIL EN LA CABECERA */
|
|
.pos-mobile-nav {
|
|
display: flex;
|
|
background: #0b1120;
|
|
border-bottom: 2px solid #334155;
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 100;
|
|
padding: 8px 10px;
|
|
gap: 8px;
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
|
|
box-sizing: border-box;
|
|
width: 100%;
|
|
}
|
|
|
|
.pos-mobile-nav-btn {
|
|
flex: 1;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 6px;
|
|
padding: 10px 12px;
|
|
background: #1e293b;
|
|
border: 1.5px solid #334155;
|
|
border-radius: 12px;
|
|
color: #94a3b8;
|
|
font-size: 0.88rem;
|
|
font-weight: 800;
|
|
cursor: pointer;
|
|
transition: all 0.15s ease;
|
|
}
|
|
|
|
.pos-mobile-nav-btn.active {
|
|
background: #0284c7;
|
|
color: #ffffff;
|
|
border-color: #38bdf8;
|
|
box-shadow: 0 2px 8px rgba(2, 132, 199, 0.4);
|
|
}
|
|
|
|
.pos-mobile-nav-badge {
|
|
background: #ef4444;
|
|
color: white;
|
|
font-size: 0.72rem;
|
|
font-weight: 900;
|
|
padding: 2px 7px;
|
|
border-radius: 10px;
|
|
line-height: 1;
|
|
}
|
|
|
|
/* CONTROL DE VISIBILIDAD ENTRE CATÁLOGO Y CAJA EN MÓVIL */
|
|
body.pos-mobile-view-catalog .pos-catalog-pane {
|
|
display: flex !important;
|
|
width: 100% !important;
|
|
max-width: 100% !important;
|
|
padding: 14px;
|
|
padding-bottom: 95px; /* Espacio para barra flotante */
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body.pos-mobile-view-catalog .pos-checkout-pane {
|
|
display: none !important;
|
|
}
|
|
|
|
body.pos-mobile-view-checkout .pos-catalog-pane {
|
|
display: none !important;
|
|
}
|
|
|
|
body.pos-mobile-view-checkout .pos-checkout-pane {
|
|
display: flex !important;
|
|
width: 100% !important;
|
|
max-width: 100% !important;
|
|
border-left: none;
|
|
border-top: none;
|
|
padding: 14px;
|
|
box-sizing: border-box;
|
|
min-height: calc(100vh - 65px);
|
|
}
|
|
|
|
/* BOTÓN REGRESAR AL CATÁLOGO */
|
|
.pos-mobile-back-bar {
|
|
display: block;
|
|
margin-bottom: 12px;
|
|
width: 100%;
|
|
}
|
|
|
|
.pos-mobile-back-btn {
|
|
width: 100%;
|
|
padding: 11px 14px;
|
|
background: #0f172a;
|
|
color: #38bdf8;
|
|
border: 1.5px solid #334155;
|
|
border-radius: 12px;
|
|
font-size: 0.88rem;
|
|
font-weight: 800;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 8px;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.pos-mobile-back-btn:active {
|
|
background: #1e293b;
|
|
}
|
|
|
|
/* BARRA FLOTANTE INFERIOR DE ACCESO RÁPIDO */
|
|
.pos-floating-checkout-bar {
|
|
position: fixed;
|
|
bottom: 14px;
|
|
left: 12px;
|
|
right: 12px;
|
|
background: #0f172a;
|
|
border: 2px solid #0284c7;
|
|
border-radius: 16px;
|
|
padding: 10px 16px;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.75), 0 0 18px rgba(2, 132, 199, 0.45);
|
|
z-index: 99;
|
|
cursor: pointer;
|
|
box-sizing: border-box;
|
|
animation: popUpFloat 0.25s cubic-bezier(0.16, 1, 0.3, 1);
|
|
}
|
|
|
|
@keyframes popUpFloat {
|
|
from { transform: translateY(50px); opacity: 0; }
|
|
to { transform: translateY(0); opacity: 1; }
|
|
}
|
|
|
|
/* AJUSTE DE CUADRÍCULA DE PRODUCTOS EN PANTALLAS PEQUEÑAS */
|
|
.pos-products-grid {
|
|
grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)) !important;
|
|
gap: 10px !important;
|
|
}
|
|
|
|
.pos-prod-card {
|
|
padding: 12px !important;
|
|
min-height: 115px !important;
|
|
}
|
|
|
|
.pos-cart-item {
|
|
padding: 8px 10px !important;
|
|
gap: 8px !important;
|
|
}
|
|
}
|
|
|
|
/* ==========================================================================
|
|
CARNÉ ESCOLAR FÍSICO IMPRIMIBLE (carnet.html)
|
|
========================================================================== */
|
|
.carnets-sheet {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 15mm;
|
|
padding: 10mm;
|
|
}
|
|
|
|
.carnet-card {
|
|
width: 85.6mm;
|
|
height: 54mm;
|
|
border: 1.5px solid #cbd5e1;
|
|
border-radius: 3.5mm;
|
|
padding: 3mm 4mm;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: space-between;
|
|
background: white;
|
|
color: #0f172a;
|
|
position: relative;
|
|
box-sizing: border-box;
|
|
page-break-inside: avoid;
|
|
}
|
|
|
|
.carnet-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
border-bottom: 2px solid #0284c7;
|
|
padding-bottom: 1.5mm;
|
|
}
|
|
|
|
.carnet-school-name {
|
|
font-size: 7.5pt;
|
|
font-weight: 800;
|
|
color: #0284c7;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.carnet-body {
|
|
display: flex;
|
|
gap: 3mm;
|
|
align-items: center;
|
|
margin: 2mm 0;
|
|
}
|
|
|
|
.carnet-photo {
|
|
width: 22mm;
|
|
height: 22mm;
|
|
border-radius: 2mm;
|
|
border: 1px solid #cbd5e1;
|
|
object-fit: cover;
|
|
}
|
|
|
|
.carnet-details {
|
|
flex: 1;
|
|
}
|
|
|
|
.carnet-name {
|
|
font-size: 9pt;
|
|
font-weight: 900;
|
|
line-height: 1.15;
|
|
margin-bottom: 1mm;
|
|
}
|
|
|
|
.carnet-meta-item {
|
|
font-size: 6.8pt;
|
|
color: #475569;
|
|
}
|
|
|
|
.carnet-qr {
|
|
width: 20mm;
|
|
height: 20mm;
|
|
border: 1px solid #e2e8f0;
|
|
}
|
|
|
|
.carnet-footer {
|
|
font-size: 5.5pt;
|
|
color: #64748b;
|
|
border-top: 1px solid #e2e8f0;
|
|
padding-top: 1mm;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
@media print {
|
|
body {
|
|
background: white !important;
|
|
padding: 0 !important;
|
|
}
|
|
.no-print {
|
|
display: none !important;
|
|
}
|
|
.carnet-card {
|
|
border: 1px solid #94a3b8;
|
|
box-shadow: none;
|
|
}
|
|
}
|
|
|
|
/* ==========================================================================
|
|
VISTA DE LOGIN Y AUTENTICACIÓN
|
|
========================================================================== */
|
|
.login-overlay {
|
|
position: fixed;
|
|
inset: 0;
|
|
background: radial-gradient(circle at 50% 10%, #0284c7 0%, #0f172a 100%);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 16px;
|
|
z-index: 9999;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.login-card {
|
|
background: var(--card-bg, #ffffff);
|
|
color: var(--text-main, #0f172a);
|
|
border-radius: 24px;
|
|
padding: 28px 24px;
|
|
width: 100%;
|
|
max-width: 420px;
|
|
box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45);
|
|
border: 1px solid rgba(255, 255, 255, 0.15);
|
|
animation: fadeIn 0.25s ease-out;
|
|
}
|
|
|
|
.login-brand {
|
|
text-align: center;
|
|
margin-bottom: 22px;
|
|
}
|
|
|
|
.login-logo {
|
|
font-size: 3rem;
|
|
display: inline-block;
|
|
background: #e0f2fe;
|
|
padding: 12px;
|
|
border-radius: 20px;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.login-title {
|
|
font-size: 1.6rem;
|
|
font-weight: 900;
|
|
letter-spacing: -0.5px;
|
|
color: #0f172a;
|
|
margin: 0;
|
|
}
|
|
|
|
.login-subtitle {
|
|
font-size: 0.8rem;
|
|
color: #64748b;
|
|
margin-top: 4px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.login-form-group {
|
|
margin-bottom: 14px;
|
|
}
|
|
|
|
.login-form-group label {
|
|
display: block;
|
|
font-size: 0.8rem;
|
|
font-weight: 800;
|
|
margin-bottom: 5px;
|
|
color: #334155;
|
|
}
|
|
|
|
.login-input {
|
|
width: 100%;
|
|
padding: 12px 14px;
|
|
border-radius: 12px;
|
|
border: 1.5px solid #cbd5e1;
|
|
font-size: 0.95rem;
|
|
font-weight: 700;
|
|
background: #f8fafc;
|
|
color: #0f172a;
|
|
transition: all 0.2s;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.login-input:focus {
|
|
outline: none;
|
|
border-color: #0284c7;
|
|
background: #ffffff;
|
|
box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
|
|
}
|
|
|
|
.login-submit-btn {
|
|
width: 100%;
|
|
padding: 13px;
|
|
background: linear-gradient(135deg, #0284c7, #0369a1);
|
|
color: white;
|
|
border: none;
|
|
border-radius: 14px;
|
|
font-size: 1rem;
|
|
font-weight: 900;
|
|
cursor: pointer;
|
|
box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35);
|
|
transition: transform 0.1s;
|
|
}
|
|
|
|
.login-submit-btn:active {
|
|
transform: scale(0.98);
|
|
}
|
|
|
|
.login-demo-box {
|
|
margin-top: 20px;
|
|
padding-top: 18px;
|
|
border-top: 1px dashed #e2e8f0;
|
|
text-align: center;
|
|
}
|
|
|
|
.login-demo-title {
|
|
font-size: 0.76rem;
|
|
font-weight: 800;
|
|
color: #64748b;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.login-demo-btns {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, 1fr);
|
|
gap: 8px;
|
|
}
|
|
|
|
.login-demo-btn {
|
|
background: #f1f5f9;
|
|
border: 1px solid #cbd5e1;
|
|
border-radius: 10px;
|
|
padding: 8px 4px;
|
|
font-size: 0.72rem;
|
|
font-weight: 800;
|
|
color: #1e293b;
|
|
cursor: pointer;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 4px;
|
|
transition: all 0.15s;
|
|
}
|
|
|
|
.login-demo-btn:hover {
|
|
background: #e2e8f0;
|
|
border-color: #0284c7;
|
|
}
|
|
|
|
/* ==========================================================================
|
|
PANEL DE ADMINISTRACIÓN DE LA SODA (#viewAdmin)
|
|
========================================================================== */
|
|
.admin-container {
|
|
max-width: 900px;
|
|
margin: 0 auto;
|
|
min-height: 100vh;
|
|
background: var(--bg-main, #f8fafc);
|
|
padding: calc(16px + var(--safe-top)) 16px calc(60px + var(--safe-bottom)) 16px;
|
|
box-sizing: border-box;
|
|
width: 100%;
|
|
max-width: 100vw;
|
|
overflow-x: hidden;
|
|
}
|
|
|
|
.admin-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
background: var(--card-bg, #ffffff);
|
|
border: 1px solid var(--border, #e2e8f0);
|
|
border-radius: 18px;
|
|
padding: 14px 18px;
|
|
margin-bottom: 16px;
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
|
|
flex-wrap: wrap;
|
|
gap: 12px;
|
|
}
|
|
|
|
.admin-header-actions {
|
|
display: flex;
|
|
gap: 8px;
|
|
align-items: center;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.admin-action-btn-caja {
|
|
padding: 7px 12px;
|
|
background: #0284c7;
|
|
color: #ffffff;
|
|
border-radius: 10px;
|
|
font-size: 0.78rem;
|
|
font-weight: 800;
|
|
text-decoration: none;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
white-space: nowrap;
|
|
transition: background 0.15s ease;
|
|
}
|
|
|
|
.admin-action-btn-caja:hover {
|
|
background: #0369a1;
|
|
}
|
|
|
|
.admin-badge {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
}
|
|
|
|
.admin-icon {
|
|
font-size: 1.8rem;
|
|
background: #e0f2fe;
|
|
padding: 8px;
|
|
border-radius: 12px;
|
|
}
|
|
|
|
.admin-stats-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
|
|
gap: 10px;
|
|
margin-bottom: 18px;
|
|
}
|
|
|
|
.admin-stat-card {
|
|
background: var(--card-bg, #ffffff);
|
|
border: 1px solid var(--border, #e2e8f0);
|
|
border-radius: 14px;
|
|
padding: 12px;
|
|
text-align: center;
|
|
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
|
|
}
|
|
|
|
.admin-stat-card .val {
|
|
font-size: 1.4rem;
|
|
font-weight: 900;
|
|
color: #0284c7;
|
|
}
|
|
|
|
.admin-stat-card .lbl {
|
|
font-size: 0.72rem;
|
|
font-weight: 700;
|
|
color: var(--text-muted, #64748b);
|
|
margin-top: 2px;
|
|
}
|
|
|
|
.admin-tabs {
|
|
display: flex;
|
|
gap: 8px;
|
|
margin-bottom: 16px;
|
|
overflow-x: auto;
|
|
padding-bottom: 4px;
|
|
scrollbar-width: none;
|
|
}
|
|
|
|
.admin-tabs::-webkit-scrollbar {
|
|
display: none;
|
|
}
|
|
|
|
.admin-tab-btn {
|
|
background: var(--card-bg, #ffffff);
|
|
border: 1.5px solid var(--border, #cbd5e1);
|
|
color: var(--text-main, #334155);
|
|
padding: 10px 16px;
|
|
border-radius: 12px;
|
|
font-size: 0.88rem;
|
|
font-weight: 800;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
white-space: nowrap;
|
|
transition: all 0.15s;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.admin-tab-btn.active {
|
|
background: #0284c7;
|
|
color: white;
|
|
border-color: #0284c7;
|
|
box-shadow: 0 4px 10px rgba(2, 132, 199, 0.3);
|
|
}
|
|
|
|
.admin-card {
|
|
background: var(--card-bg, #ffffff);
|
|
border: 1px solid var(--border, #e2e8f0);
|
|
border-radius: 18px;
|
|
padding: 18px;
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
/* Tabla / Lista de Inventario Admin Responsive */
|
|
.inventory-item-row {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
padding: 12px;
|
|
border-bottom: 1px solid var(--border, #f1f5f9);
|
|
transition: background 0.15s;
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
@media (min-width: 640px) {
|
|
.inventory-item-row {
|
|
flex-direction: row;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
}
|
|
}
|
|
|
|
.inventory-item-row:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.inventory-item-top {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.inventory-item-bottom {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 8px;
|
|
flex-shrink: 0;
|
|
width: 100%;
|
|
}
|
|
|
|
@media (min-width: 640px) {
|
|
.inventory-item-bottom {
|
|
width: auto;
|
|
justify-content: flex-end;
|
|
gap: 12px;
|
|
}
|
|
}
|
|
|
|
.inventory-stock-controls {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
}
|
|
|
|
.stock-btn-quick {
|
|
padding: 6px 10px;
|
|
background: #f1f5f9;
|
|
border: 1px solid #cbd5e1;
|
|
border-radius: 8px;
|
|
font-size: 0.8rem;
|
|
font-weight: 800;
|
|
cursor: pointer;
|
|
color: #1e293b;
|
|
}
|
|
|
|
.stock-btn-quick:hover {
|
|
background: #e2e8f0;
|
|
}
|
|
|
|
.admin-student-card {
|
|
transition: transform 0.15s ease, box-shadow 0.15s ease;
|
|
}
|
|
|
|
@media (max-width: 600px) {
|
|
.admin-container {
|
|
padding: calc(12px + var(--safe-top)) 10px calc(80px + var(--safe-bottom)) 10px;
|
|
}
|
|
.admin-header {
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
gap: 10px;
|
|
padding: 12px;
|
|
}
|
|
.admin-header-actions {
|
|
width: 100%;
|
|
justify-content: space-between;
|
|
}
|
|
.admin-stats-grid {
|
|
grid-template-columns: repeat(2, 1fr);
|
|
gap: 8px;
|
|
}
|
|
.admin-stat-card {
|
|
padding: 10px 8px;
|
|
}
|
|
.admin-stat-card .val {
|
|
font-size: 1.25rem;
|
|
}
|
|
.admin-tab-btn {
|
|
padding: 8px 12px;
|
|
font-size: 0.8rem;
|
|
}
|
|
.admin-card {
|
|
padding: 14px 12px;
|
|
border-radius: 14px;
|
|
}
|
|
}
|
|
|
|
/* ==========================================================================
|
|
PRODUCTO AGOTADO (GREYED OUT) Y TARJETA BLOQUEADA
|
|
========================================================================== */
|
|
.product-card.out-of-stock {
|
|
opacity: 0.52 !important;
|
|
filter: grayscale(85%) !important;
|
|
border-color: #fca5a5 !important;
|
|
background: #fef2f2 !important;
|
|
position: relative;
|
|
}
|
|
|
|
body.dark-mode .product-card.out-of-stock {
|
|
background: rgba(239, 68, 68, 0.12) !important;
|
|
border-color: rgba(239, 68, 68, 0.3) !important;
|
|
}
|
|
|
|
.badge-out-of-stock {
|
|
display: inline-block;
|
|
background: #ef4444;
|
|
color: white;
|
|
font-weight: 900;
|
|
font-size: 0.68rem;
|
|
padding: 3px 8px;
|
|
border-radius: 6px;
|
|
letter-spacing: 0.5px;
|
|
box-shadow: 0 1px 3px rgba(239, 68, 68, 0.3);
|
|
}
|
|
|
|
.banner-card-blocked {
|
|
background: #fee2e2;
|
|
border: 2px solid #ef4444;
|
|
color: #991b1b;
|
|
padding: 12px 16px;
|
|
border-radius: 14px;
|
|
margin: 10px 16px 14px 16px;
|
|
font-weight: 800;
|
|
font-size: 0.85rem;
|
|
text-align: center;
|
|
box-shadow: 0 2px 8px rgba(239, 68, 68, 0.2);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
body.dark-mode .banner-card-blocked {
|
|
background: rgba(239, 68, 68, 0.2);
|
|
color: #fca5a5;
|
|
border-color: #ef4444;
|
|
}
|
|
|
|
/* ==========================================================================
|
|
BARRA DE NAVEGACIÓN INFERIOR PWA (MÓVILES)
|
|
========================================================================== */
|
|
.pwa-bottom-nav {
|
|
position: fixed;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
height: calc(62px + var(--safe-bottom));
|
|
padding-bottom: var(--safe-bottom);
|
|
background: var(--card-bg, #ffffff);
|
|
border-top: 1px solid var(--border, #e2e8f0);
|
|
box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
|
|
display: flex;
|
|
justify-content: space-around;
|
|
align-items: center;
|
|
z-index: 100;
|
|
backdrop-filter: blur(12px);
|
|
-webkit-backdrop-filter: blur(12px);
|
|
}
|
|
|
|
@media (min-width: 641px) {
|
|
.pwa-bottom-nav {
|
|
display: none !important;
|
|
}
|
|
}
|
|
|
|
body.dark-mode .pwa-bottom-nav {
|
|
background: rgba(30, 41, 59, 0.95);
|
|
border-color: #334155;
|
|
box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.4);
|
|
}
|
|
|
|
.pwa-nav-item {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: transparent;
|
|
border: none;
|
|
outline: none;
|
|
cursor: pointer;
|
|
padding: 6px 0;
|
|
color: var(--text-muted, #64748b);
|
|
transition: all 0.15s ease;
|
|
min-width: 0;
|
|
user-select: none;
|
|
-webkit-tap-highlight-color: transparent;
|
|
}
|
|
|
|
.pwa-nav-item:active {
|
|
transform: scale(0.92);
|
|
}
|
|
|
|
.pwa-nav-icon {
|
|
font-size: 1.35rem;
|
|
line-height: 1;
|
|
display: block;
|
|
}
|
|
|
|
.pwa-nav-label {
|
|
font-size: 0.68rem;
|
|
font-weight: 700;
|
|
margin-top: 3px;
|
|
line-height: 1;
|
|
display: block;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.pwa-nav-item.active {
|
|
color: var(--primary, #0284c7);
|
|
}
|
|
|
|
.pwa-nav-item.active .pwa-nav-icon {
|
|
transform: scale(1.1);
|
|
transition: transform 0.15s ease;
|
|
}
|
|
|
|
.pwa-nav-logout {
|
|
color: #ef4444 !important;
|
|
}
|
|
|
|
.pwa-nav-logout:active {
|
|
background: rgba(239, 68, 68, 0.1);
|
|
border-radius: 8px;
|
|
}
|
|
|