﻿/* ═══════════════════════════════════════════════════════════════
   NOVANTIX — CSS UNIFICADO
   Archivos base: novantix.css + novantix-isp.css
   Objetivo: mantener lo necesario, eliminar duplicados y conservar responsive
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600;700;800&family=DM+Mono:wght@400;500;600&display=swap');

/* =========================================================
   01. Tokens — Modo claro
   ========================================================= */

:root,
[data-theme="light"] {
    --brand-900: #0d1b3e;
    --brand-800: #10285f;
    --brand-700: #123a8c;
    --brand-500: #1565d8;
    --brand-400: #1e90ff;
    --brand-300: #00a8e8;
    --brand-glow: rgba(21, 101, 216, .20);
    --brand-dim: rgba(21, 101, 216, .08);
    --bg: #f0f2f7;
    --bg-subtle: #e8eaf2;
    --surface: #ffffff;
    --surface2: #f5f6fa;
    --surface3: #eceef5;
    --surface-hover: #f8fafc;
    --border: #dde0ea;
    --border-soft: #e8eaf0;
    --border-strong: #c8ccd8;
    --text: #0f1020;
    --text-dim: #4a4d65;
    --text-muted: #8b8fa8;
    --text-inverse: #ffffff;
    --accent: #1565d8;
    --accent-hover: #1e90ff;
    --accent-dim: rgba(21, 101, 216, .10);
    --accent-glow: rgba(21, 101, 216, .25);
    --accent2: #0095cc;
    --accent2-dim: rgba(0, 149, 204, .08);
    --success: #0d9e78;
    --success-dim: rgba(13, 158, 120, .10);
    --warning: #d97706;
    --warning-dim: rgba(217, 119, 6, .10);
    --danger: #dc2626;
    --danger-dim: rgba(220, 38, 38, .10);
    --info: #2563eb;
    --info-dim: rgba(37, 99, 235, .10);
    --primary: var(--accent);
    --primary-hover: var(--accent-hover);
    --primary-soft: var(--accent-dim);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, .08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, .10);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, .14);
    --shadow-pro: 0 10px 30px rgba(15, 23, 42, .06);
    --shadow-glow: 0 4px 24px var(--accent-glow);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 18px;
    --radius-2xl: 22px;
    --theme-icon: '🌙';
}

/* =========================================================
   02. Tokens — Modo oscuro
   ========================================================= */

[data-theme="dark"] {
    --brand-900: #0d1b3e;
    --brand-800: #0f2456;
    --brand-700: #1a3a7c;
    --brand-500: #1e90ff;
    --brand-400: #3da5ff;
    --brand-300: #00c8ff;
    --brand-glow: rgba(30, 144, 255, .25);
    --brand-dim: rgba(30, 144, 255, .12);
    --bg: #0b0c10;
    --bg-subtle: #0f1015;
    --surface: #14151a;
    --surface2: #1a1b22;
    --surface3: #212229;
    --surface-hover: #22232c;
    --border: #252630;
    --border-soft: #1e1f28;
    --border-strong: #32333f;
    --text: #e8e9f0;
    --text-dim: #b8bac7;
    --text-muted: #7a7c8d;
    --text-inverse: #0b0c10;
    --accent: #1e90ff;
    --accent-hover: #3da5ff;
    --accent-dim: rgba(30, 144, 255, .12);
    --accent-glow: rgba(30, 144, 255, .30);
    --accent2: #00c8ff;
    --accent2-dim: rgba(0, 200, 255, .10);
    --success: #22d3a5;
    --success-dim: rgba(34, 211, 165, .10);
    --warning: #f59e0b;
    --warning-dim: rgba(245, 158, 11, .10);
    --danger: #ff4d6d;
    --danger-dim: rgba(255, 77, 109, .10);
    --info: #60a5fa;
    --info-dim: rgba(96, 165, 250, .10);
    --primary: var(--accent);
    --primary-hover: var(--accent-hover);
    --primary-soft: var(--accent-dim);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, .40);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, .50);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, .60);
    --shadow-pro: 0 10px 30px rgba(0, 0, 0, .28);
    --shadow-glow: 0 4px 24px var(--accent-glow);
    --theme-icon: '☀️';
}

/* =========================================================
   03. Reset / Base
   ========================================================= */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: background .25s ease, color .25s ease;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color .15s ease;
}

    a:hover {
        color: var(--accent-hover);
    }

code,
pre,
.mono,
.nvx-mono {
    font-family: 'DM Mono', 'Cascadia Code', 'Fira Code', monospace;
    font-size: .875em;
}

small {
    font-size: .8rem;
    color: var(--text-muted);
}

strong {
    font-weight: 700;
    color: var(--text);
}

/* =========================================================
   03.1 Typography
   ========================================================= */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -.025em;
    color: var(--text);
}

h1 {
    font-size: 1.875rem;
}

h2 {
    font-size: 1.5rem;
}

h3 {
    font-size: 1.25rem;
}

h4 {
    font-size: 1.1rem;
}

h5 {
    font-size: .95rem;
}

h6 {
    font-size: .875rem;
}

p {
    color: var(--text-dim);
    line-height: 1.7;
}

.nvx-table-sort {
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}

    .nvx-table-sort i {
        margin-left: .35rem;
        opacity: .65;
        font-size: .82rem;
    }

/* =========================================================
   04. App Shell
   ========================================================= */

.nvx-app-shell {
    min-height: 100vh;
    background: var(--bg);
}

.nvx-main {
    padding: 1.5rem 0 2rem;
    min-height: calc(100vh - 126px);
}

/* =========================================================
   05. Topbar
   ========================================================= */

.nvx-topbar {
    position: sticky;
    top: 0;
    z-index: 120;
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.nvx-topbar-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 1.25rem;
    min-height: 74px;
    display: grid;
    grid-template-columns: 220px minmax(320px, 1fr) auto;
    gap: 1rem;
    align-items: center;
}

.nvx-topbar-center {
    display: flex;
    align-items: center;
    min-width: 0;
}

.nvx-topbar-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .7rem;
    flex-wrap: nowrap;
}

/* =========================================================
   06. Brand
   ========================================================= */

.nvx-brand {
    display: inline-flex;
    align-items: baseline;
    gap: .18rem;
    text-decoration: none;
    white-space: nowrap;
    user-select: none;
}

.nvx-brand-logo,
.nvx-brand-accent {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -.05em;
    line-height: 1;
}

.nvx-brand-logo {
    color: var(--text);
}

.nvx-brand-accent {
    color: var(--accent);
}

/* =========================================================
   07. Top Search
   ========================================================= */

.nvx-search-main {
    width: 100%;
    max-width: 620px;
}

.nvx-search-wrap {
    position: relative;
}

    .nvx-search-wrap .nvx-search-icon {
        position: absolute;
        left: .95rem;
        top: 50%;
        transform: translateY(-50%);
        color: var(--text-muted);
        pointer-events: none;
        width: 18px;
        height: 18px;
    }

.nvx-top-search {
    width: 100%;
    height: 48px;
    padding: .6rem .9rem .6rem 2.85rem;
    border-radius: 999px;
    background: var(--surface2);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: .875rem;
    outline: none;
    box-shadow: var(--shadow-sm);
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

    .nvx-top-search:focus {
        border-color: var(--accent);
        box-shadow: 0 0 0 3px var(--accent-dim);
        background: var(--surface);
    }

    .nvx-top-search::placeholder {
        color: var(--text-muted);
    }

/* =========================================================
   08. Quick Buttons / User Chip
   ========================================================= */

.nvx-quick-btn {
    position: relative;
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface2);
    color: var(--text-dim);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .18s ease;
    box-shadow: var(--shadow-sm);
    font-size: 1rem;
    flex-shrink: 0;
}

    .nvx-quick-btn:hover {
        background: var(--surface3);
        color: var(--text);
        border-color: var(--border-strong);
        transform: translateY(-1px);
    }

    .nvx-quick-btn:active {
        transform: translateY(0);
    }

.nvx-quick-btn-badge {
    overflow: visible;
}

.nvx-quick-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 20px;
    height: 20px;
    padding: 0 .35rem;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: .68rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    line-height: 1;
}

.nvx-user-chip {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    padding: .35rem .55rem .35rem .4rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface2);
    color: var(--text);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all .18s ease;
    min-height: 44px;
}

    .nvx-user-chip:hover {
        background: var(--surface3);
        border-color: var(--border-strong);
    }

.nvx-user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .03em;
    flex-shrink: 0;
}

.nvx-user-name {
    font-size: .9rem;
    font-weight: 700;
    white-space: nowrap;
}

.nvx-user-caret {
    font-size: .8rem;
    color: var(--text-muted);
}

/* =========================================================
   08.1 Subnav
   ========================================================= */

.nvx-subnav {
    background: color-mix(in srgb, var(--surface2) 92%, transparent);
    border-bottom: 1px solid var(--border);
}

.nvx-subnav-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.nvx-subnav-links {
    display: flex;
    align-items: center;
    gap: .35rem;
    min-height: 52px;
    overflow-x: auto;
    scrollbar-width: none;
}

    .nvx-subnav-links::-webkit-scrollbar {
        display: none;
    }

    .nvx-subnav-links a {
        color: var(--text-dim);
        font-size: .92rem;
        font-weight: 700;
        padding: .55rem .9rem;
        border-radius: 10px;
        white-space: nowrap;
        transition: all .16s ease;
    }

        .nvx-subnav-links a:hover {
            color: var(--text);
            background: var(--surface3);
        }

        .nvx-subnav-links a.active,
        .nvx-subnav-links a[aria-current="page"] {
            color: var(--accent);
            background: var(--accent-dim);
        }

/* =========================================================
   09. Sidebar / Navigation
   ========================================================= */

.nvx-sidebar {
    width: 240px;
    flex-shrink: 0;
    background: var(--surface);
    border-right: 1px solid var(--border);
    height: 100vh;
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    transition: width .22s ease, background .25s ease, border-color .25s ease;
    overflow: visible;
    z-index: 10;
}

.nvx-sidebar--collapsed {
    width: 70px;
}

.nvx-sidebar-toggle {
    position: absolute;
    top: 20px;
    right: -13px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-dim);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    z-index: 20;
    box-shadow: var(--shadow-sm);
}

    .nvx-sidebar-toggle:hover {
        background: var(--surface2);
        color: var(--text);
        border-color: var(--border-strong);
    }

.nvx-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 16px 8px;
    gap: 2px;
    overflow-y: auto;
}

.nvx-nav-section {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--text-muted);
    padding: 12px 8px 4px;
}

.nvx-sidebar--collapsed .nvx-nav-section {
    opacity: 0;
    pointer-events: none;
}

.nvx-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 10px;
    color: var(--text-dim);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background .12s ease, color .12s ease;
    cursor: pointer;
    background: transparent;
    border: none;
    text-align: left;
}

    .nvx-nav-link:hover {
        background: var(--surface2);
        color: var(--text);
    }

    .nvx-nav-link.active {
        background: var(--accent-dim);
        color: var(--accent);
        font-weight: 800;
    }

.nvx-nav-icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.nvx-nav-label {
    overflow: hidden;
}

.nvx-sidebar--collapsed .nvx-nav-label {
    opacity: 0;
    width: 0;
}

.nvx-sidebar--collapsed .nvx-nav-link {
    justify-content: center;
    padding: 10px 0;
}

.nvx-sidebar--collapsed .nvx-nav-icon {
    transform: translateX(-6px);
}

.nvx-sidebar--collapsed .nvx-nav-link::after {
    content: attr(title);
    position: fixed;
    left: 72px;
    background: var(--text);
    color: var(--text-inverse);
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 6px;
    opacity: 0;
    transition: opacity .15s ease;
    z-index: 999;
}

.nvx-sidebar--collapsed .nvx-nav-link:hover::after {
    opacity: 1;
}

.nvx-nav-group {
    width: 100%;
}

.nvx-nav-arrow {
    margin-left: auto;
    font-size: 11px;
    color: var(--text-muted);
}

.nvx-sidebar--collapsed .nvx-nav-arrow {
    display: none;
}

.nvx-nav-children {
    display: flex;
    flex-direction: column;
    margin: 2px 8px 4px 18px;
    padding: 4px 0 4px 12px;
    border-left: 2px solid var(--border);
    gap: 2px;
}

.nvx-nav-child {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 8px;
    color: var(--text-dim);
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none;
    transition: background .12s ease, color .12s ease;
}

    .nvx-nav-child::before {
        content: '';
        width: 5px;
        height: 5px;
        border-radius: 50%;
        background: var(--text-muted);
    }

    .nvx-nav-child:hover {
        background: var(--surface2);
        color: var(--text);
    }

        .nvx-nav-child:hover::before {
            background: var(--accent);
        }

    .nvx-nav-child.active {
        color: var(--accent);
        font-weight: 800;
        background: var(--accent-dim);
    }

        .nvx-nav-child.active::before {
            background: var(--accent);
        }

.nvx-sidebar--collapsed .nvx-nav-children {
    display: none;
}

.nvx-mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .35);
    z-index: 200;
}

.nvx-mobile-drawer {
    display: none;
    position: fixed;
    inset: 0 auto 0 0;
    width: 280px;
    background: var(--surface);
    border-right: 1px solid var(--border);
    transform: translateX(-100%);
    transition: transform .25s ease;
    z-index: 201;
}

.nvx-mobile-drawer--open {
    transform: translateX(0);
}

/* =========================================================
   10. Page Layout PRO
   ========================================================= */

.nvx-page {
    width: 100%;
    max-width: none;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 28px;
    animation: nvx-fadein .22s ease;
}

@keyframes nvx-fadein {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nvx-page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 1rem;
}

.nvx-page-title {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -.04em;
    color: var(--text);
}

    .nvx-page-title .accent {
        color: var(--accent);
    }

.nvx-page-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

    .nvx-page-hero h1 {
        margin: 6px 0 4px;
        font-size: 24px;
        font-weight: 800;
        color: var(--text);
        letter-spacing: -.03em;
    }

    .nvx-page-hero p {
        margin: 0;
        color: var(--text-dim);
        font-size: 14px;
    }

.nvx-page-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 800;
}

.nvx-page-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* =========================================================
   11. Inputs / Forms
   ========================================================= */

.nvx-input,
.nvx-select,
.nvx-textarea {
    width: 100%;
    min-height: 42px;
    padding: .6rem .9rem;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    font-size: .875rem;
    outline: none;
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

    .nvx-input:focus,
    .nvx-select:focus,
    .nvx-textarea:focus {
        border-color: var(--accent);
        background: var(--surface);
        box-shadow: 0 0 0 3px var(--accent-dim);
    }

    .nvx-input::placeholder,
    .nvx-textarea::placeholder {
        color: var(--text-muted);
    }

    .nvx-input:disabled,
    .nvx-select:disabled,
    .nvx-textarea:disabled {
        opacity: .55;
        cursor: not-allowed;
    }

.nvx-select {
    cursor: pointer;
}

.nvx-textarea {
    resize: vertical;
    min-height: 90px;
    line-height: 1.6;
}

.nvx-field,
.nvx-form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

    .nvx-field label,
    .nvx-label {
        font-size: 12px;
        font-weight: 700;
        color: var(--text-dim);
    }

.nvx-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.nvx-form-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.nvx-form-grid-1 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.nvx-col-2 {
    grid-column: span 2;
}

.nvx-col-3 {
    grid-column: span 3;
}

.nvx-col-full {
    grid-column: 1 / -1;
}

/* =========================================================
   12. Buttons
   ========================================================= */

.nvx-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    min-height: 38px;
    padding: .6rem 1.15rem;
    border-radius: 9px;
    font-size: .875rem;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all .16s cubic-bezier(.4, 0, .2, 1);
    white-space: nowrap;
    text-decoration: none;
    line-height: 1;
}

    .nvx-btn:disabled {
        opacity: .45;
        cursor: not-allowed !important;
        pointer-events: none;
    }

.nvx-btn-primary {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

    .nvx-btn-primary:hover {
        background: var(--accent-hover);
        border-color: var(--accent-hover);
        box-shadow: var(--shadow-glow);
        transform: translateY(-1px);
        color: #fff;
    }

.nvx-btn-secondary {
    background: var(--accent-dim);
    color: var(--accent);
    border-color: var(--accent-glow);
}

    .nvx-btn-secondary:hover {
        background: var(--accent);
        color: #fff;
        transform: translateY(-1px);
    }

.nvx-btn-ghost {
    background: transparent;
    color: var(--text-dim);
    border-color: var(--border);
}

    .nvx-btn-ghost:hover {
        background: var(--surface2);
        color: var(--text);
        border-color: var(--border-strong);
    }

.nvx-btn-danger {
    background: transparent;
    color: var(--danger);
    border-color: var(--danger-dim);
}

    .nvx-btn-danger:hover {
        background: var(--danger-dim);
        border-color: var(--danger);
    }

.nvx-btn-sm {
    min-height: 32px;
    padding: .35rem .75rem;
    font-size: .8rem;
    border-radius: 8px;
}

.nvx-btn-lg {
    min-height: 46px;
    padding: .8rem 1.5rem;
    font-size: 1rem;
    border-radius: 11px;
}

.nvx-btn-full {
    width: 100%;
}

.nvx-btn-icon {
    padding: .55rem;
}

/* =========================================================
   13. Icon Buttons
   ========================================================= */

.nvx-icon-btn {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-dim);
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: .15s ease;
    cursor: pointer;
}

    .nvx-icon-btn:hover:not(:disabled) {
        background: var(--surface2);
        color: var(--accent);
        border-color: var(--border-strong);
    }

    .nvx-icon-btn:disabled {
        opacity: .45;
        cursor: not-allowed;
    }

    .nvx-icon-btn.danger,
    .nvx-icon-btn-danger {
        color: var(--danger);
    }

        .nvx-icon-btn.danger:hover,
        .nvx-icon-btn-danger:hover {
            background: var(--danger-dim);
            border-color: var(--danger);
        }

/* =========================================================
   14. Cards / Surfaces
   ========================================================= */

.nvx-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: background .25s ease, border-color .25s ease;
}

.nvx-card-pro {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-pro);
    padding: 18px;
}

.nvx-card-hoverable:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
    transition: all .2s ease;
}

.nvx-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.nvx-card-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    color: var(--text);
}

/* =========================================================
   15. Toolbar / Search
   ========================================================= */

.nvx-toolbar {
    display: flex;
    gap: .75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.nvx-toolbar-pro {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.nvx-search-pro {
    display: flex;
    align-items: center;
    gap: 10px;
    width: min(460px, 100%);
    height: 42px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface2);
}

    .nvx-search-pro input {
        width: 100%;
        border: 0;
        outline: 0;
        background: transparent;
        color: var(--text);
    }

        .nvx-search-pro input::placeholder {
            color: var(--text-muted);
        }

/* =========================================================
   16. Tables
   ========================================================= */

.nvx-table-wrap,
.nvx-table-wrap-pro {
    overflow: auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
}

.nvx-table,
.nvx-table-pro {
    width: 100%;
    border-collapse: collapse;
    font-size: .875rem;
}

.nvx-table-pro {
    min-width: 980px;
}

    .nvx-table thead,
    .nvx-table-pro thead {
        background: var(--surface2);
    }

    .nvx-table th,
    .nvx-table-pro th {
        padding: 13px 14px;
        text-align: left;
        font-size: 11px;
        font-weight: 800;
        letter-spacing: .06em;
        text-transform: uppercase;
        color: var(--text-muted);
        border-bottom: 1px solid var(--border);
        white-space: nowrap;
    }

    .nvx-table td,
    .nvx-table-pro td {
        padding: 14px;
        border-bottom: 1px solid var(--border-soft);
        color: var(--text-dim);
        vertical-align: middle;
    }

    .nvx-table tbody tr:last-child td,
    .nvx-table-pro tbody tr:last-child td {
        border-bottom: 0;
    }

    .nvx-table tbody tr:hover td,
    .nvx-table-pro tbody tr:hover td {
        background: var(--surface-hover);
    }

.nvx-td-primary {
    color: var(--text);
    font-weight: 800;
}

.nvx-td-secondary {
    color: var(--text-muted);
    font-size: .78rem;
    margin-top: 2px;
}

.nvx-td-mono {
    font-family: 'DM Mono', monospace;
    font-size: .8rem;
}

/* =========================================================
   17. Pills / Badges
   ========================================================= */

.nvx-pill {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .22rem .65rem;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .02em;
    white-space: nowrap;
}

.nvx-pill-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
}

.nvx-pill-blue {
    background: var(--accent-dim);
    color: var(--accent);
    border: 1px solid var(--accent-glow);
}

.nvx-pill-cyan {
    background: var(--accent2-dim);
    color: var(--accent2);
}

.nvx-pill-green {
    background: var(--success-dim);
    color: var(--success);
}

.nvx-pill-yellow,
.nvx-pill-warning {
    background: var(--warning-dim);
    color: var(--warning);
}

.nvx-pill-red {
    background: var(--danger-dim);
    color: var(--danger);
}

.nvx-pill-gray {
    background: var(--surface3);
    color: var(--text-dim);
}

.nvx-pill-ghost {
    background: transparent;
    border: 1px solid var(--border-strong);
    color: var(--text-dim);
}

.nvx-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .7rem;
    font-family: 'DM Mono', monospace;
    background: var(--accent-dim);
    color: var(--accent);
    border: 1px solid var(--accent-glow);
    border-radius: 999px;
    padding: .15rem .55rem;
}

/* =========================================================
   18. Alerts
   ========================================================= */

.nvx-alert {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    padding: .8rem 1rem;
    border-radius: 10px;
    font-size: .85rem;
    line-height: 1.5;
    border: 1px solid transparent;
}

.nvx-alert-danger {
    background: var(--danger-dim);
    color: var(--danger);
    border-color: color-mix(in srgb, var(--danger) 25%, transparent);
}

.nvx-alert-success {
    background: var(--success-dim);
    color: var(--success);
    border-color: color-mix(in srgb, var(--success) 25%, transparent);
}

.nvx-alert-warning {
    background: var(--warning-dim);
    color: var(--warning);
    border-color: color-mix(in srgb, var(--warning) 25%, transparent);
}

.nvx-alert-info {
    background: var(--info-dim);
    color: var(--info);
    border-color: color-mix(in srgb, var(--info) 25%, transparent);
}

/* =========================================================
   19. Empty / Loading
   ========================================================= */

.nvx-empty,
.nvx-empty-pro {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 220px;
    padding: 3rem 1rem;
    color: var(--text-dim);
    text-align: center;
}

    .nvx-empty i,
    .nvx-empty-pro i {
        font-size: 32px;
        color: var(--accent);
    }

.nvx-empty-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-dim);
}

.nvx-empty-desc {
    font-size: .85rem;
    color: var(--text-muted);
}

.nvx-loading {
    padding: 3rem 1rem;
    text-align: center;
    color: var(--text-muted);
    font-size: .875rem;
}

.nvx-spinner,
.nvx-btn-spinner {
    width: 28px;
    height: 28px;
    border: 2.5px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: nvx-spin .65s linear infinite;
}

.nvx-spinner {
    margin: 0 auto 1rem;
}

.nvx-btn-spinner {
    width: 15px;
    height: 15px;
    border-width: 2px;
    margin: 0;
}

.nvx-spinner-sm {
    width: 16px;
    height: 16px;
    border-width: 2px;
    margin: 0;
}

@keyframes nvx-spin {
    to {
        transform: rotate(360deg);
    }
}

/* =========================================================
   20. Modals
   ========================================================= */

.nvx-overlay,
.nvx-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    animation: nvx-overlay-in .15s ease;
}

@keyframes nvx-overlay-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.nvx-modal,
.nvx-modal-pro {
    width: min(920px, 100%);
    max-height: 92vh;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    animation: nvx-modal-in .18s ease;
}

.nvx-modal-sm {
    width: min(460px, 100%);
}

.nvx-modal-lg {
    width: min(1180px, 100%);
}

@keyframes nvx-modal-in {
    from {
        opacity: 0;
        transform: translateY(10px) scale(.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.nvx-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 24px;
    border-bottom: 1px solid var(--border-soft);
    background: var(--surface);
}

    .nvx-modal-header h3,
    .nvx-modal-title {
        margin: 0;
        color: var(--text);
        font-size: 20px;
        font-weight: 800;
    }

    .nvx-modal-header p {
        margin: 5px 0 0;
        color: var(--text-dim);
        font-size: 13px;
    }

.nvx-modal-body {
    padding: 22px 24px;
    overflow: auto;
}

.nvx-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 18px 24px;
    border-top: 1px solid var(--border-soft);
    background: var(--surface2);
}

.nvx-modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: .3rem;
    border-radius: 7px;
    display: flex;
    align-items: center;
    transition: all .15s ease;
    line-height: 1;
}

    .nvx-modal-close:hover {
        background: var(--surface2);
        color: var(--text);
    }

.nvx-form-section {
    margin-bottom: 1.75rem;
}

    .nvx-form-section:last-child {
        margin-bottom: 0;
    }

.nvx-section-title {
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: .9rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid var(--border-soft);
}

/* =========================================================
   21. Confirm Dialog Global
   ========================================================= */

.confirm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 3000;
    animation: confirm-fade-in .15s ease;
}

@keyframes confirm-fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.confirm-dialog {
    width: min(420px, 100%);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 1rem;
    box-shadow: 0 24px 64px rgba(0, 0, 0, .22);
    display: flex;
    flex-direction: column;
    animation: confirm-slide-in .18s ease;
    overflow: hidden;
}

@keyframes confirm-slide-in {
    from {
        transform: translateY(-12px) scale(.97);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.confirm-dialog-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 1.25rem 1rem;
}

.confirm-dialog-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: .6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.confirm-icon--primary {
    background: color-mix(in srgb, var(--accent) 12%, transparent);
    color: var(--accent);
}

.confirm-icon--danger {
    background: color-mix(in srgb, var(--danger) 12%, transparent);
    color: var(--danger);
}

.confirm-icon--warning {
    background: color-mix(in srgb, var(--warning) 12%, transparent);
    color: var(--warning);
}

.confirm-dialog-titulo {
    font-weight: 800;
    font-size: 1rem;
    color: var(--text);
    margin-bottom: .2rem;
}

.confirm-dialog-mensaje {
    font-size: .875rem;
    color: var(--text-dim);
    line-height: 1.45;
}

.confirm-dialog-input-wrap {
    padding: 0 1.25rem .75rem;
    display: flex;
    flex-direction: column;
    gap: .35rem;
}

.confirm-dialog-input-error {
    font-size: .75rem;
    color: var(--danger);
    font-weight: 700;
}

.confirm-dialog-footer {
    display: flex;
    justify-content: flex-end;
    gap: .75rem;
    padding: .875rem 1.25rem;
    border-top: 1px solid var(--border);
    background: var(--surface2);
}

/* =========================================================
   22. Mobile Cards
   ========================================================= */

.nvx-mobile-list {
    display: none;
}

.nvx-mobile-card {
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.15rem;
    background: var(--surface);
    display: flex;
    flex-direction: column;
    gap: .75rem;
    box-shadow: var(--shadow-sm);
}

.nvx-mobile-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .75rem;
}

.nvx-mobile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .8rem;
    padding: .75rem 0;
    border-top: 1px solid var(--border-soft);
    border-bottom: 1px solid var(--border-soft);
}

    .nvx-mobile-grid div {
        display: flex;
        flex-direction: column;
        gap: .15rem;
    }

    .nvx-mobile-grid span {
        color: var(--text-muted);
        font-size: .72rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: .04em;
    }

    .nvx-mobile-grid strong {
        color: var(--text);
        font-size: .86rem;
        font-weight: 800;
    }

.nvx-mobile-actions {
    display: flex;
    gap: .5rem;
    padding-top: .75rem;
    border-top: 1px solid var(--border-soft);
}

/* =========================================================
   23. Toggles
   ========================================================= */

.nvx-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .75rem .9rem;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.nvx-toggle-label {
    font-size: .825rem;
    color: var(--text-dim);
}

.nvx-toggle,
.productos-toggle-wrap {
    position: relative;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

    .nvx-toggle input,
    .productos-toggle-wrap input {
        opacity: 0;
        width: 0;
        height: 0;
        position: absolute;
    }

.nvx-toggle-slider,
.productos-toggle-slider {
    position: absolute;
    inset: 0;
    background: var(--border-strong);
    border-radius: 999px;
    cursor: pointer;
    transition: background .22s ease;
}

    .nvx-toggle-slider::before,
    .productos-toggle-slider::before {
        content: '';
        position: absolute;
        width: 18px;
        height: 18px;
        left: 3px;
        top: 3px;
        background: #fff;
        border-radius: 50%;
        transition: transform .22s ease;
        box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
    }

.nvx-toggle input:checked + .nvx-toggle-slider,
.productos-toggle-wrap input:checked + .productos-toggle-slider {
    background: var(--accent);
}

    .nvx-toggle input:checked + .nvx-toggle-slider::before,
    .productos-toggle-wrap input:checked + .productos-toggle-slider::before {
        transform: translateX(20px);
    }

.nvx-toggle input:disabled + .nvx-toggle-slider,
.productos-toggle-wrap input:disabled + .productos-toggle-slider {
    opacity: .5;
    cursor: not-allowed;
}

/* =========================================================
   24. Theme Toggle
   ========================================================= */

.theme-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.theme-icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    flex-shrink: 0;
}

    .theme-icon svg {
        width: 18px;
        height: 18px;
        display: block;
    }

.theme-input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.theme-switch {
    width: 46px;
    height: 24px;
    border-radius: 999px;
    background: var(--surface3);
    border: 1px solid var(--border-strong);
    position: relative;
    transition: background .25s ease, border-color .25s ease;
    flex-shrink: 0;
}

    .theme-switch:active {
        transform: scale(.98);
    }

.theme-thumb {
    position: absolute;
    top: 1px;
    left: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
    transition: left .25s ease;
}

    .theme-thumb.active {
        left: 24px;
    }

.theme-input:checked + .theme-switch .theme-thumb {
    left: 20px;
}

.theme-input:focus-visible + .theme-switch {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

/* =========================================================
   25. Stats
   ========================================================= */

.nvx-stat {
    display: flex;
    flex-direction: column;
    gap: .4rem;
}

.nvx-stat-value {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -.04em;
    color: var(--text);
    line-height: 1;
}

.nvx-stat-label {
    font-size: .8rem;
    color: var(--text-muted);
}

.nvx-stat-change {
    font-size: .8rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: .2rem;
}

    .nvx-stat-change.up {
        color: var(--success);
    }

    .nvx-stat-change.down {
        color: var(--danger);
    }

/* =========================================================
   26. Utilities
   ========================================================= */

.nvx-flex {
    display: flex;
}

.nvx-flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.nvx-gap-sm {
    gap: .5rem;
}

.nvx-gap-md {
    gap: 1rem;
}

.nvx-gap-lg {
    gap: 1.5rem;
}

.nvx-mt-sm {
    margin-top: .5rem;
}

.nvx-mt-md {
    margin-top: 1rem;
}

.nvx-mt-lg {
    margin-top: 1.5rem;
}

.nvx-mb-sm {
    margin-bottom: .5rem;
}

.nvx-mb-md {
    margin-bottom: 1rem;
}

.nvx-mb-lg {
    margin-bottom: 1.5rem;
}

.nvx-text-right,
.text-end {
    text-align: right;
}

.nvx-text-center {
    text-align: center;
}

.nvx-truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nvx-w-full {
    width: 100%;
}

.nvx-hidden {
    display: none !important;
}

/* =========================================================
   27. Scrollbar
   ========================================================= */

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border-strong);
    border-radius: 999px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: var(--text-muted);
    }

/* 00. Fix global - Page titles */
.nvx-page-hero h1,
.nvx-page-header h1 {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

    .nvx-page-hero h1:focus,
    .nvx-page-header h1:focus {
        border: none !important;
        outline: none !important;
        box-shadow: none !important;
    }

/* =========================================================
   Novantix Modal - Global Standard
   ========================================================= */

.nvx-modal-pro {
    transition: width .22s ease, max-height .22s ease, border-radius .22s ease;
}

.nvx-modal-pro--full {
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100vh !important;
    max-height: 100vh !important;
    border-radius: 0 !important;
}

.nvx-modal-header-actions {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-left: auto;
}

.rtr-icon-btn {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: .75rem;
    border: 1px solid var(--border);
    background: var(--accent-dim);
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: background .15s ease, color .15s ease, transform .15s ease, border-color .15s ease;
}

    .rtr-icon-btn:hover:not(:disabled) {
        background: var(--accent);
        color: #fff;
        border-color: var(--accent);
        transform: translateY(-1px);
    }

.rtr-icon-btn--close {
    background: color-mix(in srgb, var(--danger) 10%, transparent);
    color: var(--danger);
    border-color: color-mix(in srgb, var(--danger) 25%, transparent);
}

    .rtr-icon-btn--close:hover:not(:disabled) {
        background: var(--danger);
        color: #fff;
        border-color: var(--danger);
    }

.rtr-icon-btn:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.nvx-kpi-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(160px, 1fr));
    gap: 14px;
}

.nvx-toolbar-pro .nvx-select {
    width: auto;
    min-width: 180px;
}

.nvx-toolbar-pro .nvx-btn {
    flex-shrink: 0;
}

/* =========================================================
   LOGIN — Fix final Inputs Blazor/Browser
========================================================= */

.nvx-login-liquid .nvx-login-input-wrap > input,
.nvx-login-liquid .nvx-login-input-wrap > input.valid,
.nvx-login-liquid .nvx-login-input-wrap > input.invalid,
.nvx-login-liquid .nvx-login-input-wrap > input.modified,
.nvx-login-liquid .nvx-login-input-wrap > input[type="text"],
.nvx-login-liquid .nvx-login-input-wrap > input[type="password"] {
    all: unset !important;
    box-sizing: border-box !important;
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    height: 100% !important;
    min-height: 54px !important;
    padding: 0 1rem 0 3.8rem !important;
    background: transparent !important;
    background-color: transparent !important;
    color: rgba(248,250,252,.96) !important;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    border-radius: 17px !important;
    font-family: inherit !important;
    font-size: .95rem !important;
    font-weight: 700 !important;
    line-height: 54px !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}

    .nvx-login-liquid .nvx-login-input-wrap > input::placeholder {
        color: rgba(203,213,225,.52) !important;
    }

    .nvx-login-liquid .nvx-login-input-wrap > input:-webkit-autofill,
    .nvx-login-liquid .nvx-login-input-wrap > input:-webkit-autofill:hover,
    .nvx-login-liquid .nvx-login-input-wrap > input:-webkit-autofill:focus {
        -webkit-text-fill-color: rgba(248,250,252,.96) !important;
        -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
        box-shadow: 0 0 0 1000px transparent inset !important;
        transition: background-color 999999s ease-in-out 0s !important;
    }


/* =========================================================
   28. Responsive
   ========================================================= */

@media (max-width: 1180px) {
    .nvx-topbar-inner {
        grid-template-columns: 220px minmax(220px, 1fr) auto;
    }

    .nvx-user-name {
        display: none;
    }

    .nvx-page {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (max-width: 992px) {
    .nvx-page-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .nvx-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nvx-page-actions {
        width: 100%;
    }

    .nvx-form-grid,
    .nvx-form-grid-3 {
        grid-template-columns: 1fr;
    }

    .nvx-col-2,
    .nvx-col-3,
    .nvx-col-full {
        grid-column: span 1;
    }
}

@media (max-width: 900px) {
    .nvx-topbar-inner {
        grid-template-columns: 1fr;
        padding-top: .9rem;
        padding-bottom: .9rem;
    }

    .nvx-topbar-center,
    .nvx-search-main {
        max-width: 100%;
    }

    .nvx-topbar-right {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .nvx-brand-logo,
    .nvx-brand-accent {
        font-size: 1.65rem;
    }

    .nvx-subnav-inner {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (max-width: 768px) {
    .nvx-page {
        gap: 14px;
        padding-top: 0;
    }

    .nvx-page-hero h1 {
        font-size: 22px;
    }

    .nvx-page-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .nvx-card-pro {
        padding: 14px;
        border-radius: 16px;
    }

    .nvx-toolbar-pro {
        flex-direction: column;
        align-items: stretch;
    }

    .nvx-search-pro {
        width: 100%;
    }

    .nvx-table-wrap-pro.nvx-hide-table-mobile,
    .nvx-table-wrap.nvx-hide-table-mobile {
        display: none !important;
    }

    .nvx-mobile-list {
        display: flex !important;
        flex-direction: column;
        gap: 14px;
    }

    .nvx-overlay,
    .nvx-modal-overlay {
        padding: .5rem;
        align-items: flex-end;
    }

    .nvx-modal,
    .nvx-modal-pro {
        width: 100%;
        max-height: calc(100dvh - 1rem);
        border-radius: 16px;
    }

    .nvx-modal-header,
    .nvx-modal-body,
    .nvx-modal-footer {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .nvx-sidebar {
        display: none;
    }

    .nvx-mobile-overlay,
    .nvx-mobile-drawer {
        display: block;
    }

    .nvx-toolbar-pro .nvx-select,
    .nvx-toolbar-pro .nvx-btn {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .nvx-page-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .nvx-kpi-grid {
        grid-template-columns: 1fr;
    }

    .nvx-page-actions .nvx-btn {
        width: 100%;
    }

    .nvx-mobile-card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .nvx-mobile-grid {
        grid-template-columns: 1fr;
    }

    .nvx-mobile-actions {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }

        .nvx-mobile-actions .nvx-icon-btn {
            width: 100%;
            height: 42px;
        }

    .nvx-modal-footer {
        flex-direction: column;
    }

        .nvx-modal-footer .nvx-btn {
            width: 100%;
        }

    .confirm-dialog-footer {
        flex-direction: column-reverse;
    }

        .confirm-dialog-footer .nvx-btn {
            width: 100%;
            justify-content: center;
        }
}

@media (max-width: 420px) {
    .nvx-card-pro {
        padding: 12px;
    }

    .nvx-mobile-card {
        padding: 1rem;
    }

    .nvx-mobile-actions {
        grid-template-columns: repeat(2, 1fr);
    }

    .nvx-quick-btn {
        width: 38px;
        height: 38px;
        border-radius: 10px;
    }

    .theme-toggle {
        padding: 5px 8px;
    }
}


