/*
   Punto de entrada del UI Kit. Importa, en orden, todas las capas del sistema visual.
   Es el unico archivo propio que hay que enlazar desde el <head> (ver layout/head.jspf);
   bootstrap.min.css, fontawesome y simplebar se siguen cargando aparte, antes que este.
*/
@import url("variables.css");
@import url("fonts.css");
@import url("reset.css");
@import url("base.css");
@import url("layout.css");
@import url("sidebar.css");
@import url("navbar.css");
@import url("dashboard.css");
@import url("buttons.css");
@import url("cards.css");
@import url("tables.css");
@import url("datatables.css");
@import url("forms.css");
@import url("badges.css");
@import url("alerts.css");
@import url("modal.css");
@import url("dropdown.css");
@import url("pagination.css");
@import url("utilities.css");
@import url("responsive.css");
@import url("categorias.css");

:root {
    --brand-purple: #3a2d48;
    --brand-purple-dark: #241b2d;
    --inventory-soft: #f5f7fb;
}

/* Estilos puntuales que no ameritan archivo propio */
.pagina-login {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--background);
}

.db-stats-grid > a.db-stat-card {
    color: inherit;
    text-decoration: none;
}

.db-stats-grid > a.db-stat-card:focus-visible {
    outline: 3px solid #2563eb;
    outline-offset: 2px;
}

.whatsapp-flotante {
    position: fixed;
    z-index: 1050;
    right: 1.25rem;
    bottom: 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #20c56b;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(18, 110, 63, .3);
    transition: background-color .2s ease, transform .2s ease;
}

.whatsapp-flotante:hover,
.whatsapp-flotante:focus-visible {
    color: #fff;
    background: #159b50;
    transform: translateY(-2px);
}

.whatsapp-flotante i {
    font-size: 1.55rem;
}

.whatsapp-flotante span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

@media (max-width: 575.98px) {
    .whatsapp-flotante {
        right: 1rem;
        bottom: 1rem;
    }
}

.inventory-shell {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.inventory-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.inventory-label {
    margin: 0 0 .35rem;
    font-size: .72rem;
    letter-spacing: .12em;
    font-weight: 700;
    color: var(--text-muted);
}

.inventory-title {
    margin: 0;
    font-size: clamp(2rem, 3vw, 2.6rem);
    font-weight: 700;
    color: var(--text-primary);
}

.inventory-breadcrumb .breadcrumb {
    margin-top: .35rem;
    font-size: .82rem;
}

.btn-nuevo-producto {
    background: linear-gradient(135deg, #4f6ef7, #3f5be6);
    border: none;
    border-radius: .7rem;
    padding: .8rem 1.2rem;
    font-weight: 600;
    box-shadow: 0 10px 18px rgba(79, 110, 247, .22);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 110px;
    padding: 1rem 1.1rem;
    border-radius: 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: .9rem;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.stat-card--primary .stat-icon { background: #eaf1ff; color: #3d6ae5; }
.stat-card--warning .stat-icon { background: #fff3de; color: #d58d00; }
.stat-card--danger .stat-icon { background: #ffe5e2; color: #d9534f; }
.stat-card--success .stat-icon { background: #ddf7ee; color: #15a37f; }

.stat-content {
    min-width: 0;
}

.stat-value {
    font-size: 2rem;
    line-height: 1.1;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-label {
    font-size: .9rem;
    color: var(--text-secondary);
}

.inventory-table-card {
    border-radius: 1rem;
    border: 1px solid var(--border);
    background: var(--surface);
    overflow: hidden;
}

.inventory-table-header {
    background: #f8f9fb;
    border-bottom: 1px solid var(--border);
}

.inventory-table thead th {
    background: #f8f9fb;
    color: #495057;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.inventory-table tbody td {
    font-size: .9rem;
    color: var(--text-secondary);
    padding-top: .9rem;
    padding-bottom: .9rem;
}

.inventory-table tbody tr:hover > * {
    background-color: #f5f7ff;
}

.barra-carga {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--primary);
    z-index: 2000;
    opacity: 0;
    transition: width .4s ease, opacity .2s ease;
}

body.cargando-pagina .barra-carga {
    width: 85%;
    opacity: 1;
}

@media (max-width: 991.98px) {
    .inventory-header {
        flex-direction: column;
        align-items: stretch;
    }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-card {
        min-height: 94px;
    }
}

/* Estilos del dashboard del mockup */
.dashboard-shell {
    padding: 1rem 0.45rem 1.4rem;
}

.dashboard-topbar-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 0 0 1rem;
    padding: .1rem .15rem;
    color: var(--text-secondary);
    font-size: .72rem;
    font-weight: 600;
}

.dashboard-live-status {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: #1a8754;
    font-weight: 700;
}

.status-dot {
    display: inline-block;
    width: .6rem;
    height: .6rem;
    border-radius: 50%;
    background: #21c86d;
    box-shadow: 0 0 0 4px rgba(33, 200, 109, .15);
}

.dashboard-topbar-meta {
    color: var(--text-muted);
    font-size: .7rem;
    color: #8a94a6;
}

.dashboard-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.dashboard-search {
    flex: 1;
    display: flex;
    align-items: center;
    gap: .75rem;
    min-height: 48px;
    background: linear-gradient(180deg, rgba(248,250,252,0.96), rgba(241,245,249,0.96));
    border: 1px solid var(--border);
    border-radius: .9rem;
    padding: .7rem .9rem;
    box-shadow: var(--shadow-sm);
}

.dashboard-search i {
    color: var(--text-muted);
    font-size: .95rem;
}

.dashboard-search input {
    flex: 1;
    border: 0;
    background: transparent;
    outline: none;
    color: var(--text-primary);
    font-size: .96rem;
}

.dashboard-search input::placeholder {
    color: var(--text-muted);
}

.dashboard-toolbar-actions {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.dashboard-view-switch {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .2rem;
    background: rgba(255,255,255,.7);
    border: 1px solid var(--border);
    border-radius: .8rem;
}

.dashboard-view-btn {
    border-radius: .7rem;
    font-weight: 600;
    padding: .5rem .95rem;
}

.dashboard-icon-btn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    background: rgba(255,255,255,.8);
    border-radius: .8rem;
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
}

.dashboard-header-wrap {
    background: rgba(255,255,255,.62);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 1rem;
    padding: 1rem 1.2rem 0.15rem;
    margin-bottom: 1rem;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.02);
}

.dashboard-kicker {
    font-size: .72rem;
    letter-spacing: .12em;
    color: #64748b;
    font-weight: 800;
    margin-bottom: .4rem;
}

.dashboard-title {
    margin: 0;
    font-size: clamp(1.5rem, 1.8vw, 2.15rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #0f172a;
}

.dashboard-subtitle {
    margin: .45rem 0 0;
    color: #64748b;
    font-size: .8rem;
    line-height: 1.45;
    max-width: 760px;
}

.inventory-catalog-shell {
    max-width: 1282px;
    margin: 0 auto;
    padding: 0.7rem 0.25rem 0;
}

.product-stat-card {
    min-height: 88px;
    padding: .8rem .82rem;
    border-radius: .9rem;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.025);
}

.product-stat-icon {
    width: 38px;
    height: 38px;
    border-radius: .7rem;
}

.product-stat-value {
    font-size: 2.1rem;
    line-height: 1.02;
    font-weight: 800;
    letter-spacing: -0.06em;
}

.product-stat-label {
    font-size: .77rem;
    letter-spacing: -.02em;
    font-weight: 700;
    color: #1f2937;
}

.product-stat-sub {
    font-size: .7rem;
}

.product-toolbar-row {
    padding: .7rem .8rem;
    border-radius: .8rem;
    gap: .7rem;
    margin-bottom: .8rem;
}

.product-search-inline {
    min-width: 160px;
    min-height: 36px;
    padding: .5rem .72rem;
    border-radius: .7rem;
    display: flex;
    align-items: center;
    gap: .75rem;
}

.product-search-inline input {
    font-size: .84rem;
}

.btn-filter {
    padding: .5rem .7rem;
    font-size: .75rem;
    border-radius: .7rem;
}

.product-table-card {
    border-radius: .8rem;
}

.product-table thead th {
    padding-top: .62rem;
    padding-bottom: .62rem;
    font-size: .68rem;
    letter-spacing: .07em;
}

.product-table tbody td {
    padding-top: .7rem;
    padding-bottom: .7rem;
}

.product-name {
    font-size: .88rem;
    color: #111827;
}

.product-brand {
    font-size: .7rem;
}

.product-code {
    padding: .25rem .38rem;
    font-size: .69rem;
}

.product-tag,
.product-store-pill {
    padding: .25rem .42rem;
    font-size: .68rem;
}

.product-table-footer {
    padding: .72rem .9rem;
    font-size: .75rem;
}

.product-pagination .btn {
    min-width: 2rem;
    height: 2rem;
    font-size: .76rem;
}

.product-bottom-panel {
    gap: .8rem;
    margin-top: .8rem;
}

.mini-panel {
    padding: .72rem .85rem;
    border-radius: .8rem;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.025);
}

.mini-panel-icon {
    width: 36px;
    height: 36px;
    border-radius: .68rem;
}

.mini-panel-title {
    font-size: .82rem;
}

.mini-panel-sub {
    font-size: .7rem;
}

@media (max-width: 991.98px) {
    .product-catalog-shell {
        padding-left: .25rem;
        padding-right: .25rem;
    }
}

/* Ajuste visual exacto al mockup entregado */
.app-shell {
    background: #f3f5f7;
}

.main-wrapper {
    background: #f3f5f7;
}

.contenido {
    padding: 0 !important;
}

.product-catalog-shell {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 0.75rem 1.5rem;
}

.dashboard-shell {
    padding: 0.75rem 0.3rem 0.5rem;
}

.dashboard-topbar-row {
    background: #edf6ee;
    border: 1px solid rgba(26, 135, 84, 0.08);
    border-radius: 0.9rem;
    padding: 0.78rem 1rem;
    margin: 0 0 1rem;
    min-height: 46px;
}

.dashboard-live-status {
    font-size: 0.82rem;
    color: #1f7a57;
    font-weight: 600;
}

.dashboard-topbar-meta {
    font-size: 0.74rem;
    color: #6b7280;
}

.dashboard-toolbar {
    margin-bottom: 1.15rem;
    gap: 0.85rem;
}

.dashboard-search {
    min-height: 46px;
    border-radius: 0.9rem;
    background: rgba(255,255,255,0.7);
    box-shadow: inset 0 0 0 1px rgba(148,163,184,0.18);
}

.dashboard-search input {
    font-size: 0.92rem;
    color: #4b5563;
}

.dashboard-toolbar-actions {
    gap: 0.75rem;
}

.dashboard-view-switch {
    background: rgba(255,255,255,0.75);
    border: 1px solid rgba(148,163,184,0.18);
    border-radius: 0.8rem;
    padding: 0.22rem;
}

.dashboard-view-btn {
    min-height: 38px;
    padding: 0.45rem 1rem;
    border: 0;
    font-size: 0.84rem;
}

.dashboard-view-btn.active {
    background: #2f6fe5 !important;
    color: #fff !important;
    box-shadow: 0 8px 18px rgba(47, 111, 229, 0.2);
}

.dashboard-header-wrap {
    background: transparent;
    border: 0;
    padding: 0.2rem 0 0;
    box-shadow: none;
    margin-bottom: 1rem;
}

.dashboard-kicker {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    color: #7a8395;
    margin: 0 0 0.35rem;
}

.dashboard-main-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.85rem;
}

.dashboard-title {
    font-size: clamp(2.1rem, 2vw, 3rem);
    letter-spacing: -0.05em;
    margin: 0;
    color: #0f172a;
    line-height: 1.08;
}

.dashboard-subtitle {
    font-size: 1rem;
    line-height: 1.55;
    max-width: 760px;
    color: #64748b;
    margin-top: 0.45rem;
}

.dashboard-header-actions {
    align-items: flex-start;
    gap: 0.75rem;
}

.dashboard-export-btn,
.dashboard-sync-btn {
    min-height: 42px;
    border-radius: 0.8rem;
    font-weight: 700;
    font-size: 0.9rem;
}

.dashboard-sync-btn {
    background: linear-gradient(135deg, #2f6fe5, #1d5cd6);
    border: 0;
    color: white;
    box-shadow: 0 10px 18px rgba(47,111,229,0.2);
}

.product-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.95rem;
    margin-bottom: 1rem;
}

.product-stat-card {
    min-height: 136px;
    padding: 1rem 1.05rem;
    border-radius: 1rem;
    border: 1px solid rgba(148,163,184,0.2);
    background: linear-gradient(180deg, #ffffff, #f7f9fc);
    box-shadow: 0 6px 14px rgba(15,23,42,0.025);
}

.product-stat-card--blue .product-stat-icon { background: #eaf1ff; color: #2f6fe5; }
.product-stat-card--green .product-stat-icon { background: #e4f9ef; color: #19a370; }
.product-stat-card--amber .product-stat-icon { background: #fff1dc; color: #d68a1d; }
.product-stat-card--violet .product-stat-icon { background: #f1ebff; color: #6b51d9; }

.product-stat-icon {
    width: 46px;
    height: 46px;
    border-radius: 0.8rem;
    font-size: 1.15rem;
}

.product-stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.06em;
}

.product-stat-label {
    font-size: 0.8rem;
    letter-spacing: 0.02em;
    color: #334155;
    font-weight: 700;
}

.product-stat-sub {
    font-size: 0.72rem;
    color: #6b7280;
}

.product-toolbar-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
    padding: 0.8rem 0.9rem;
    border: 1px solid rgba(148,163,184,0.18);
    border-radius: 0.9rem;
    background: rgba(255,255,255,0.6);
    margin-bottom: 1rem;
}

.product-filters,
.product-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    flex-wrap: wrap;
}

.product-search-inline {
    min-width: 260px;
    min-height: 38px;
    padding: 0.48rem 0.75rem;
    border: 1px solid rgba(148,163,184,0.22);
    border-radius: 0.7rem;
    background: #f7f9fb;
}

.product-search-inline input {
    font-size: 0.86rem;
}

.btn-filter {
    min-height: 38px;
    border-radius: 0.7rem;
    border: 1px solid rgba(148,163,184,0.18);
    background: #f7f9fb;
    color: #374151;
    font-size: 0.84rem;
    padding: 0.55rem 0.8rem;
}

.product-table-card {
    border-radius: 0.9rem;
    overflow: hidden;
    border: 1px solid rgba(148,163,184,0.18);
    background: rgba(255,255,255,0.78);
    box-shadow: 0 10px 18px rgba(15,23,42,0.02);
}

.product-table thead th {
    background: #f7f9fb;
    color: #475569;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(148,163,184,0.14);
}

.product-table tbody td {
    color: #334155;
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
    border-color: rgba(148,163,184,0.1);
}

.product-name {
    font-weight: 700;
    color: #111827;
    font-size: 0.96rem;
}

.product-brand {
    color: #6b7280;
    font-size: 0.73rem;
}

.product-code {
    background: #f1f5f9;
    color: #394150;
    border-radius: 0.45rem;
    font-weight: 700;
    font-size: 0.72rem;
    padding: 0.28rem 0.45rem;
}

.product-tag,
.product-store-pill {
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.28rem 0.48rem;
}

.product-table-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0.9rem;
    border-top: 1px solid rgba(148,163,184,0.14);
    background: rgba(250,251,255,0.9);
    font-size: 0.8rem;
    color: #475569;
}

.product-pagination {
    display: flex;
    align-items: center;
    gap: 0.38rem;
}

.product-pagination .btn {
    min-width: 2rem;
    height: 2rem;
    border-radius: 0.45rem;
    padding: 0.2rem 0.6rem;
    font-size: 0.76rem;
}

.product-bottom-panel {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
    margin-top: 1rem;
}

.mini-panel {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid rgba(148,163,184,0.18);
    border-radius: 0.9rem;
    background: rgba(255,255,255,0.8);
    padding: 0.8rem 0.9rem;
    min-height: 78px;
}

.mini-panel-icon {
    width: 36px;
    height: 36px;
    border-radius: 0.7rem;
    color: #fff;
}

.mini-panel--success .mini-panel-icon { background: linear-gradient(135deg, #27b37d, #1d9a68); }
.mini-panel--info .mini-panel-icon { background: linear-gradient(135deg, #3d82ff, #2e68d8); }
.mini-panel--warning .mini-panel-icon { background: linear-gradient(135deg, #f39b3d, #df7d1b); }

.mini-panel-title {
    font-size: 0.84rem;
    font-weight: 700;
    color: #111827;
}

.mini-panel-sub {
    font-size: 0.72rem;
    color: #64748b;
}

@media (max-width: 991.98px) {
    .dashboard-main-header,
    .product-toolbar-row,
    .product-table-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .product-stats-grid,
    .product-bottom-panel {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .product-stats-grid,
    .product-bottom-panel {
        grid-template-columns: 1fr;
    }
}

/* Última precisión visual exacta para la imagen */
@media (min-width: 1200px) {
    .dashboard-shell {
        padding: 0.35rem 0.2rem 0.5rem;
    }

    .dashboard-topbar-row {
        min-height: 40px;
        margin-bottom: 0.8rem;
        padding: 0.58rem 0.8rem;
    }

    .dashboard-live-status {
        font-size: 0.76rem;
    }

    .dashboard-topbar-meta {
        font-size: 0.68rem;
    }

    .dashboard-toolbar {
        margin-bottom: 0.85rem;
        gap: 0.72rem;
    }

    .dashboard-search {
        min-height: 40px;
        background: rgba(255,255,255,0.8);
    }

    .dashboard-view-btn {
        min-height: 34px;
        padding: 0.38rem 0.82rem;
        font-size: 0.76rem;
    }

    .dashboard-title {
        font-size: 1.95rem;
        letter-spacing: -0.04em;
    }

    .dashboard-subtitle {
        font-size: 0.9rem;
        margin-top: 0.25rem;
    }

    .product-stats-grid {
        gap: 0.8rem;
        margin-bottom: 0.9rem;
    }

    .product-stat-card {
        min-height: 112px;
        padding: 0.8rem 0.9rem;
    }

    .product-stat-icon {
        width: 38px;
        height: 38px;
        border-radius: 0.7rem;
    }

    .product-stat-value {
        font-size: 1.92rem;
    }

    .product-stat-label {
        font-size: 0.72rem;
    }

    .product-stat-sub {
        font-size: 0.66rem;
    }

    .product-toolbar-row {
        min-height: 52px;
        padding: 0.6rem 0.75rem;
    }

    .product-search-inline {
        min-height: 34px;
        min-width: 200px;
    }

    .btn-filter,
    .dashboard-export-btn,
    .dashboard-sync-btn {
        min-height: 34px;
        font-size: 0.76rem;
    }

    .product-table thead th {
        padding-top: 0.62rem;
        padding-bottom: 0.62rem;
        font-size: 0.64rem;
    }

    .product-table tbody td {
        padding-top: 0.66rem;
        padding-bottom: 0.66rem;
    }

    .product-name {
        font-size: 0.88rem;
    }

    .product-code,
    .product-tag,
    .product-store-pill {
        font-size: 0.66rem;
    }

    .product-table-footer {
        min-height: 48px;
        padding: 0.6rem 0.8rem;
    }

    .mini-panel {
        min-height: 64px;
        padding: 0.68rem 0.75rem;
    }

    .mini-panel-icon {
        width: 32px;
        height: 32px;
        border-radius: 0.56rem;
    }

    .mini-panel-title {
        font-size: 0.78rem;
    }

    .mini-panel-sub {
        font-size: 0.66rem;
    }
}

.sidebar-status-box {
      display: flex;
      flex-direction: column;
      gap: 0.2rem;
      padding: 0.9rem 1.1rem 0.35rem;
      border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  }

  .sidebar-status-label {
      font-size: 0.72rem;
      font-weight: 700;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: #64748b;
  }

  .sidebar-status-line {
      display: flex;
      align-items: center;
      gap: 0.45rem;
      font-size: 0.72rem;
      font-weight: 600;
      color: #1b7f59;
  }

  .sidebar-footer-network {
      display: flex;
      flex-direction: column;
        gap: 0.55rem;
        margin: 0.15rem 0.65rem 0.65rem;
        padding: 0.7rem 0.65rem;
        border: 1px solid #e8edf5;
        border-radius: 0.65rem;
        background: #f5f7fc;
    }

    .network-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.35rem;
        color: #64748b;
        font-size: 0.62rem;
        font-weight: 500;
    }

    .network-demo {
        display: inline-flex;
        align-items: center;
        gap: 0.3rem;
        color: #2563eb;
    }

    .network-dot {
        display: inline-block;
        width: 0.4rem;
        height: 0.4rem;
        border-radius: 50%;
        background: #2563eb;
    }

    .network-link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        color: #2563eb;
        font-size: 0.65rem;
        font-weight: 500;
        text-decoration: none;
    }

  .network-link:hover {
      text-decoration: underline;
  }

  body.tema-oscuro .sidebar-footer-network {
      border-color: var(--border);
      background: var(--surface-hover);
  }

  .sidebar .nav-link.active {
      background: linear-gradient(90deg, #2563eb, #1d4ed8);
      color: #fff;
      box-shadow: 0 10px 18px rgba(37,99,235,0.18);
  }

  .sidebar .nav-link.active i,
  .sidebar .nav-link.active span {
      color: #fff;
  }

  .product-stat-content {
      display: flex;
      flex-direction: column;
      gap: 0.12rem;
      min-width: 0;
  }

  .status-pill {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 0.28rem 0.52rem;
      border-radius: 999px;
      font-size: 0.68rem;
      font-weight: 700;
  }

  .status-pill--ok {
      background: rgba(34,197,94,0.12);
      color: #15803d;
  }

  .status-pill--warn {
      background: rgba(249,115,22,0.12);
      color: #c25a00;
  }

  .product-thumb-wrap {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 40px;
      height: 40px;
      border-radius: 0.75rem;
      background: #f8fafc;
      border: 1px solid rgba(148,163,184,0.2);
  }

  .product-visual {
      display: block;
      width: 24px;
      height: 24px;
      border-radius: 0.5rem;
      background: linear-gradient(135deg, #dfeafe, #bfdbfe);
      position: relative;
  }

  .product-visual::before {
      content: "";
      position: absolute;
      inset: 5px;
      border-radius: 0.35rem;
      background: rgba(37,99,235,0.15);
  }

  .product-visual--2 { background: linear-gradient(135deg, #dcfce7, #bbf7d0); }
  .product-visual--3 { background: linear-gradient(135deg, #fef3c7, #fde68a); }
  .product-visual--4 { background: linear-gradient(135deg, #fce7f3, #fbcfe8); }
  .product-visual--5 { background: linear-gradient(135deg, #e0f2fe, #bae6fd); }

  .check-col {
      width: 36px;
  }

  .btn-accion {
      width: 32px;
      height: 32px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border-radius: 0.6rem;
      border: 1px solid rgba(148,163,184,0.18);
      background: #fff;
      color: #475569;
      padding: 0;
      margin-left: 0.2rem;
  }

  .btn-accion-primary {
      color: #2563eb;
      background: rgba(37,99,235,0.08);
      border-color: rgba(37,99,235,0.12);
  }

  .btn-accion-danger {
      color: #dc2626;
      background: rgba(220,38,38,0.06);
      border-color: rgba(220,38,38,0.12);
  }

  @media (max-width: 991.98px) {
      .dashboard-main-header,
      .product-toolbar-row,
      .product-table-footer {
          flex-direction: column;
          align-items: stretch;
      }

      .product-stats-grid,
      .product-bottom-panel {
          grid-template-columns: repeat(2, minmax(0, 1fr));
      }
  }

  @media (max-width: 575.98px) {
      .dashboard-title {
          font-size: 1.65rem;
      }
      .product-stats-grid,
      .product-bottom-panel {
          grid-template-columns: 1fr;
      }
      .product-search-inline {
          min-width: 0;
          width: 100%;
      }
      .product-toolbar-row,
      .product-toolbar-actions,
      .product-filters {
          width: 100%;
      }
      .product-toolbar-actions .btn,
      .product-filters > * {
          flex: 1 1 100%;
      }
  }

.usuarios-dashboard-shell {
    padding: 0.25rem 0.15rem 1.1rem;
}

.usuarios-breadcrumb {
    margin-bottom: 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6b7280;
}

.usuarios-dashboard-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.usuarios-title {
    margin: 0;
    font-size: clamp(1.8rem, 2vw, 2.5rem);
    line-height: 1.2;
    color: #1f2937;
    font-weight: 800;
}

.usuarios-subtitle {
    margin: .7rem 0 0;
    max-width: 60rem;
    color: #5c6474;
    font-size: 1rem;
    line-height: 1.5;
}

.usuarios-invite-btn {
    background: linear-gradient(180deg, #2f6ae9 0%, #2056d5 100%);
    border: none;
    border-radius: 0.85rem;
    padding: 0.9rem 1.25rem;
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(47, 106, 233, 0.2);
}

.usuarios-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.35rem;
}

.usuarios-stat-card {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-height: 140px;
    padding: 1rem 1.1rem;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.usuarios-stat-card--primary .usuarios-stat-icon { background: #eaf1ff; color: #2f67e8; }
.usuarios-stat-card--blue .usuarios-stat-icon { background: #edf5ff; color: #3d7ae7; }
.usuarios-stat-card--success .usuarios-stat-icon { background: #ebfff6; color: #1aa36d; }
.usuarios-stat-card--warning .usuarios-stat-icon { background: #fff6e9; color: #d58a1f; }

.usuarios-stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 0.8rem;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.usuarios-stat-content {
    min-width: 0;
}

.usuarios-stat-value {
    font-size: 2rem;
    line-height: 1.1;
    font-weight: 800;
    color: #111827;
    letter-spacing: -0.04em;
}

.usuarios-stat-label {
    font-size: 0.9rem;
    color: #394150;
    font-weight: 700;
    text-transform: lowercase;
}

.usuarios-stat-content small {
    display: block;
    margin-top: .25rem;
    color: #64748b;
    font-size: 0.74rem;
    line-height: 1.4;
}

.usuarios-live {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: #1b8a5a;
}

.usuarios-live-dot {
    display: inline-block;
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: #23c16a;
    box-shadow: 0 0 0 3px rgba(35, 193, 106, 0.15);
}

.usuarios-toolbar {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .85rem 0.9rem;
    margin-bottom: 0.85rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.9rem;
    background: #f8fafc;
}

.usuarios-search-box {
    display: flex;
    align-items: center;
    gap: .65rem;
    flex: 1;
    min-height: 2.8rem;
    padding: 0 .8rem;
    border: 1px solid #dfe5ee;
    border-radius: 0.8rem;
    background: #fff;
}

.usuarios-search-box i {
    color: #7a8698;
    font-size: 0.9rem;
}

.usuarios-search-box input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 0.95rem;
    color: #111827;
}

.usuarios-search-box input::placeholder {
    color: #9aa5b1;
}

.usuarios-select {
    min-width: 180px;
    min-height: 2.8rem;
    border: 1px solid #dfe5ee;
    border-radius: 0.75rem;
    background: #fff;
    color: #334155;
    padding: 0.6rem 2.2rem 0.6rem 0.9rem;
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #64748b 50%), linear-gradient(135deg, #64748b 50%, transparent 50%);
    background-position: calc(100% - 18px) calc(50% - 2px), calc(100% - 12px) calc(50% - 2px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

.usuarios-select--compact {
    min-width: 140px;
}

.usuarios-filter-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.8rem;
    height: 2.8rem;
    border: 1px solid #dfe5ee;
    border-radius: 0.7rem;
    background: #fff;
    color: #4b5563;
}

.usuarios-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    margin-bottom: 1rem;
}

.usuarios-chip {
    display: inline-flex;
    align-items: center;
    padding: .45rem .8rem;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #f8fafc;
    color: #475569;
    font-size: 0.8rem;
    font-weight: 600;
}

.usuarios-chip--primary {
    background: #eaf1ff;
    border-color: #d9e6ff;
    color: #2f67e8;
}

.usuarios-chip--muted {
    background: #f5f7ff;
    border-color: #e7ebff;
    color: #4d5d87;
}

.usuarios-table-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(148, 163, 184, 0.08);
}

.usuarios-table-wrap {
    overflow-x: auto;
}

.usuarios-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 980px;
}

.usuarios-table thead th {
    background: #f8fafc;
    color: #58657a;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 1rem 1rem;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
}

.usuarios-table tbody td {
    padding: 1rem 1rem;
    border-bottom: 1px solid #edf0f3;
    color: #2e3746;
    vertical-align: middle;
}

.usuarios-table tbody tr:hover > * {
    background: #f9fbff;
}

.usuarios-col-check {
    width: 48px;
    text-align: center;
}

.usuarios-col-check input {
    width: 16px;
    height: 16px;
    accent-color: #2563eb;
}

.usuarios-user-cell {
    display: flex;
    align-items: center;
    gap: .8rem;
}

.usuarios-avatar {
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 50%;
    overflow: hidden;
    background: #e2e8f0;
    flex-shrink: 0;
    border: 2px solid #eff6ff;
}

.usuarios-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.usuarios-user-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.usuarios-user-meta strong {
    color: #111827;
    font-weight: 700;
}

.usuarios-user-meta span,
.usuarios-user-meta small {
    color: #64748b;
    font-size: 0.8rem;
}

.usuarios-role-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .4rem .7rem;
    border-radius: .6rem;
    background: #eaf1ff;
    color: #2352cc;
    font-size: .76rem;
    font-weight: 700;
    border: 1px solid #d9e6ff;
}

.usuarios-store-cell,
.usuarios-access-cell {
    display: flex;
    flex-direction: column;
    gap: .18rem;
}

.usuarios-store-cell strong,
.usuarios-access-cell strong {
    color: #111827;
    font-size: 0.9rem;
    font-weight: 700;
}

.usuarios-store-cell span,
.usuarios-access-cell span {
    color: #64748b;
    font-size: 0.78rem;
}

.usuarios-security-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 6.25rem;
    padding: .45rem .7rem;
    border-radius: 999px;
    font-size: .76rem;
    font-weight: 700;
}

.usuarios-security-badge--ok {
    background: #ebfff6;
    color: #0e9a67;
    border: 1px solid #bef7d5;
}

.usuarios-security-badge--warn {
    background: #fff6e9;
    color: #c27b11;
    border: 1px solid #f8db9d;
}

@media (max-width: 991.98px) {
    .usuarios-dashboard-header,
    .usuarios-toolbar {
        flex-wrap: wrap;
    }

    .usuarios-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .usuarios-stats-grid {
        grid-template-columns: 1fr;
    }

    .usuarios-dashboard-header {
        flex-direction: column;
    }

    .usuarios-invite-btn {
        width: 100%;
        justify-content: center;
    }

    .usuarios-toolbar {
        display: grid;
        grid-template-columns: 1fr;
    }

    .usuarios-select,
    .usuarios-select--compact,
    .usuarios-filter-toggle {
        width: 100%;
    }
}
