/* OMNIX GLOBAL STANDARD v11.1 - FIXED & STABLE */
:root {
    --neon-cyan: #00f2ff;
    --bg-dark: #0b0e14;
    --card-bg: #141923;
}

/* -------------------------------
   BASE
--------------------------------*/
body {
    background: #05070a;
    margin: 0;
    display: flex;
    justify-content: center;
    font-family: 'Segoe UI', sans-serif;
    color: #ffffff; /* ✅ TEXTO BASE BLANCO */
}

/* CONTENEDOR PRINCIPAL */
.omnix-app-container {
    width: 100vw;
    max-width: 480px;
    min-height: 100vh;
    background: var(--bg-dark);
    position: relative;
    box-shadow: 0 0 100px rgba(0,0,0,0.8);
    padding: 20px;
    padding-bottom: 100px;
    display: flex;
    flex-direction: column;
}

/* -------------------------------
   HEADER / CARDS
--------------------------------*/
.impact-card {
    background: var(--card-bg);
    padding: 20px;
    border: 1px solid #333;
    margin-bottom: 20px;
    border-radius: 4px;
}

.chart-box {
    height: 200px;
    margin-top: 10px;
}

/* -------------------------------
   MENU INFERIOR
--------------------------------*/
.omnix-menu {
    position: fixed;
    bottom: 0;
    width: 100%;
    max-width: 480px;
    display: flex;
    justify-content: space-around;
    background: #1a222d;
    padding: 15px 0;
    border-top: 1px solid var(--neon-cyan);
    z-index: 9999;
}

.menu-item {
    color: #666;
    text-align: center;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: bold;
}

.menu-item i {
    font-size: 1.4rem;
    display: block;
    margin-bottom: 5px;
}

.menu-item.active {
    color: var(--neon-cyan);
}

/* -------------------------------
   SELECTS / CAPTURA
--------------------------------*/
.omnix-select {
    width: 100%;
    background: #000;
    color: #fff;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #333;
    margin-bottom: 15px;
    font-size: 1rem;
}

.qty-control {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #000;
    padding: 15px;
    border-radius: 12px;
    margin: 20px 0;
}

.btn-qty {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    border: none;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
}

.btn-plus {
    background: var(--neon-cyan);
    color: #000;
}

.qty-input {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 3rem;
    text-align: center;
    width: 100px;
}

/* -------------------------------
   BOTONES
--------------------------------*/
.action-grid {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn-action {
    padding: 15px;
    border-radius: 12px;
    border: none;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
    
}

.btn-red {
    background: rgba(255, 0, 122, 0.2);
    color: #ff007a;
    border: 1px solid #ff007a;
    box-shadow: 0 0 15px rgba(255, 0, 122, 0.3);
}

.btn-red:hover {
    background: #ff007a;
    color: white;
}

.btn-green {
    background: #2ecc71;
    color: black;
}

/* -------------------------------
   TABLA INVENTARIO
--------------------------------*/
.omnix-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 0.9rem;
    color: #ffffff;
}

.omnix-table th {
    text-align: left;
    padding: 12px 8px;
    border-bottom: 2px solid #333;
    color: var(--neon-cyan);
    cursor: pointer;                /* ✅ SORT */
    user-select: none;
}

.omnix-table th:hover {
    color: #ffffff;                 /* ✅ FEEDBACK */
}

.omnix-table td {
    padding: 12px 8px;
    border-bottom: 1px solid #222;
    color: #ffffff;
}

.badge-zona {
    background: #7000ff;
    padding: 3px 7px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.7rem;
}

/* -------------------------------
   LOADER
--------------------------------*/
.gateway-body {
    background: radial-gradient(circle at center, #0b0e14 0%, #05070a 100%);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader-neon {
    width: 50px;
    height: 50px;
    border: 3px solid transparent;
    border-top-color: var(--neon-cyan);
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 1s linear infinite;
    box-shadow: 0 0 15px var(--neon-cyan);
}

/* ✅ KEYFRAMES CORRECTAMENTE CERRADO */
@keyframes spin {
    to { transform: rotate(360deg); }
}
/* ================================
   INVENTORY FILTERS
================================ */
.inventory-filters {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.inventory-filters select,
.inventory-filters input {
    background: #000;
    color: #fff;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 10px;
    font-size: 0.75rem;
}

.inventory-filters select:focus,
.inventory-filters input:focus {
    outline: none;
    border-color: var(--neon-cyan);
}



.action-cell button {
    height: 22px;
    width: 22px;
    padding: 0;
    font-size: 0.7rem;
}


.btn-trash:hover {
    background: #cc003d;
}


.btn-trash {
    background: #ff004c;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    width: 26px;
    height: 26px;
    cursor: pointer;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}




/* ================================
   COLUMNA ACCIÓN – FINAL LIMPIO
================================ */

.omnix-table {
    table-layout: auto;
}

.omnix-table th:last-child,
.omnix-table td:last-child {
    width: 120px;
    min-width: 120px;
    text-align: center;
}

/* Contenedor de botones */
.action-cell {
    display: flex;
    align-items: center;
}