﻿:root {
    --bg0: #060A10;
    --bg1: #070D16;
    --stroke: rgba(255,255,255,.08);
    --muted: rgba(255,255,255,.55);
}

.page-dark {
    min-height: 100vh;
    color: #fff;
}

.kpi-card {
    border: 1px solid var(--stroke);
    background: rgba(10,16,28,.85);
    border-radius: 1rem;
    box-shadow: 0 10px 35px rgba(0,0,0,.45);
}

    .kpi-card.kpi-green {
        background: rgba(0,100,75,.25);
        border-color: rgba(0,255,170,.18);
    }

    .kpi-card.kpi-amber {
        background: rgba(120,80,0,.20);
        border-color: rgba(255,170,0,.18);
    }

.kpi-label {
    color: rgba(255,255,255,.65);
    font-size: .85rem;
}

.kpi-value {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
}

.surface {
    border: 1px solid var(--stroke);
    background: rgba(10,16,28,.65);
    border-radius: 1rem;
    box-shadow: 0 10px 35px rgba(0,0,0,.45);
}

.search-dark .input-group-text,
.search-dark .form-control {
    background: rgba(10,16,28,.80);
    border-color: var(--stroke);
    color: #fff;
}

    .search-dark .form-control::placeholder {
        color: rgba(255,255,255,.45);
    }

    .search-dark .form-control:focus {
        box-shadow: 0 0 0 .25rem rgba(13,110,253,.18);
        border-color: rgba(13,110,253,.35);
    }

/* pills NO WRAP */
.cats {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: .35rem;
    scrollbar-width: none;
}

    .cats::-webkit-scrollbar {
        display: none;
    }

    .cats .nav-link {
        white-space: nowrap;
        color: rgba(255,255,255,.70);
        border-radius: 999px;
        padding: .45rem .85rem;
        background: transparent;
        flex: 0 0 auto;
    }

        .cats .nav-link.active {
            color: #fff;
            background: rgba(255,255,255,.10);
            border: 1px solid rgba(255,255,255,.10);
        }

.product-card {
    border: 1px solid var(--stroke);
    background: rgba(11,18,32,.80);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0,0,0,.55);
    height: 100%;
}

.product-img {
    aspect-ratio: 16/10;
    object-fit: cover;
    width: 100%;
}

.product-meta {
    color: var(--muted);
    font-size: .85rem;
}

.price {
    font-weight: 800;
    font-size: 1.05rem;
}

.ellipsis-btn {
    position: absolute;
    top: .6rem;
    right: .6rem;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(0,0,0,.35);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
}

.dropdown-menu-darkish {
    background: rgba(10,16,28,.96);
    border: 1px solid rgba(255,255,255,.10);
    box-shadow: 0 14px 45px rgba(0,0,0,.65);
}

    .dropdown-menu-darkish .dropdown-item {
        color: rgba(255,255,255,.82);
    }

        .dropdown-menu-darkish .dropdown-item:hover {
            background: rgba(255,255,255,.08);
            color: #fff;
        }

        .dropdown-menu-darkish .dropdown-item.text-danger {
            color: #ff6b6b !important;
        }

/* botones consistentes + EN MOVIL SIEMPRE EN UNA FILA */
.actions-row {
    display: flex;
    gap: .5rem;
    justify-content: flex-start;
}

.action-btn {
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: .85rem;
    white-space: nowrap;
    flex: 0 0 auto;
}

@media (max-width: 575.98px) {
    .actions-row {
        flex-wrap: nowrap;
    }

    .action-btn {
        flex: 1 1 0;
        min-width: 0; /* evita salto/overflow */
    }

        .action-btn .txt {
            overflow: hidden;
            text-overflow: ellipsis;
        }
}




/* Tabs "pill bar" como la imagen */
.lgx-tabs {
    display: flex;
    align-items: center;
    gap: .35rem;
    padding: .35rem;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
    border: 1px solid rgba(255,255,255,.10);
    overflow: hidden;
}

    .lgx-tabs .nav-item {
        flex: 1;
    }

.lgx-tab {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .55rem .75rem;
    border-radius: 12px;
    border: 1px solid transparent;
    color: rgba(255,255,255,.55) !important;
    background: transparent !important;
    font-weight: 700;
    font-size: .92rem;
    transition: all .18s ease;
}

    .lgx-tab i {
        font-size: 1rem;
        opacity: .9;
    }

    .lgx-tab:hover {
        color: rgba(255,255,255,.75) !important;
        background: rgba(255,255,255,.04) !important;
    }

    .lgx-tab.active {
        color: #fff !important;
        background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.06)) !important;
        border-color: rgba(255,255,255,.14) !important;
        box-shadow: 0 8px 24px rgba(0,0,0,.35);
    }

    .lgx-tab:focus {
        box-shadow: 0 0 0 .22rem rgba(255,255,255,.16) !important;
    }

/* Mobile: texto opcional */
@media (max-width: 575.98px) {
    .lgx-tab span {
        display: none;
    }
}

/* alto del scroll interno (para que SIEMPRE puedas scrollear) */
.np-body-scroll {
    max-height: calc(90vh - 190px); /* header + tabs + footer */
    overflow: auto;
    padding-bottom: 8px;
}

@media (max-width: 576px) {
    .np-body-scroll {
        max-height: calc(90vh - 205px);
    }
}

/* scroll “tipo app” dentro de listas de cada tab */
.np-tab-scroll {
    max-height: 220px;
    overflow: auto;
    padding-right: 2px;
}

/* menos transparente para legibilidad */
.np-panel {
    background: rgba(15,23,42,.78);
    border: 1px solid rgba(255,255,255,.18);
}

.np-item {
    background: rgba(15,23,42,.72);
    border: 1px solid rgba(255,255,255,.16);
}

.np-sub {
    opacity: .9;
    font-size: .78rem;
}

/* dropzone */
.np-dropzone {
    border-radius: 18px;
    padding: 12px;
    background: rgba(15,23,42,.72);
    border: 1px dashed rgba(255,255,255,.26);
    cursor: pointer;
    transition: all .15s ease;
}

    .np-dropzone:hover {
        background: rgba(15,23,42,.80);
        border-color: rgba(255,255,255,.34);
    }

    .np-dropzone.dragover {
        border-style: solid;
        border-color: rgba(59,130,246,.62);
        box-shadow: 0 0 0 .22rem rgba(59,130,246,.18);
    }

.np-previewwrap {
    background: rgba(0,0,0,.20);
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 16px;
}

.np-empty {
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: .35rem;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: rgba(255,255,255,.86);
    padding: 10px;
}

    .np-empty i {
        font-size: 1.6rem;
        opacity: .9;
    }