/* =======================================================
   VOXIA AI — Premium Bootstrap theme
   Auteur : Voxia  |  Basé sur Bootstrap 5.3 + variables
   ======================================================= */

:root {
    --vx-primary:        #6366F1;   /* indigo */
    --vx-primary-600:    #4F46E5;
    --vx-primary-700:    #4338CA;
    --vx-accent:         #8B5CF6;
    --vx-success:        #10B981;
    --vx-warn:           #F59E0B;
    --vx-danger:         #EF4444;
    --vx-info:           #0EA5E9;

    --vx-bg:             #0B1020;
    --vx-bg-2:           #0F152B;
    --vx-surface:        #131A33;
    --vx-surface-2:      #1B2345;
    --vx-border:         rgba(255,255,255,0.08);
    --vx-text:           #E5E9F5;
    --vx-text-muted:     #8C95B4;
    --vx-text-soft:      #B5BCD6;

    --vx-radius:         14px;
    --vx-radius-lg:      20px;
    --vx-shadow:         0 10px 40px rgba(0,0,0,0.35);
    --vx-shadow-sm:      0 4px 16px rgba(0,0,0,0.25);
}

/* Clair (page marketing / login — legacy class) */
.vx-theme-light {
    --vx-bg:             #F7F8FC;
    --vx-bg-2:           #FFFFFF;
    --vx-surface:        #FFFFFF;
    --vx-surface-2:      #F2F4FB;
    --vx-border:         #E6E9F2;
    --vx-text:           #0F172A;
    --vx-text-muted:     #64748B;
    --vx-text-soft:      #475569;
    --vx-shadow:         0 10px 40px rgba(0,0,0,0.08);
    --vx-shadow-sm:      0 4px 16px rgba(0,0,0,0.05);
}

/* ── Theme toggle — data-theme attribute ── */
[data-theme="light"] {
    --vx-bg:             #F4F6FB;
    --vx-bg-2:           #FFFFFF;
    --vx-surface:        #FFFFFF;
    --vx-surface-2:      #F0F2FA;
    --vx-border:         #E2E5F0;
    --vx-text:           #0F172A;
    --vx-text-muted:     #64748B;
    --vx-text-soft:      #475569;
    --vx-shadow:         0 10px 40px rgba(0,0,0,0.07);
    --vx-shadow-sm:      0 4px 16px rgba(0,0,0,0.04);
    color-scheme: light;
}

* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

html, body {
    background: var(--vx-bg);
    color: var(--vx-text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    letter-spacing: -0.01em;
}

/* ── Bootstrap theme overrides ── */
body:not(.vx-theme-light):not([data-theme="light"]) {
    --bs-body-color: var(--vx-text);
    --bs-secondary-color: var(--vx-text-muted);
    --bs-tertiary-color: var(--vx-text-soft);
    --bs-body-bg: var(--vx-bg);
    --bs-border-color: var(--vx-border);
    color-scheme: dark;
}
[data-theme="light"] {
    --bs-body-color: var(--vx-text);
    --bs-secondary-color: var(--vx-text-muted);
    --bs-tertiary-color: var(--vx-text-soft);
    --bs-body-bg: var(--vx-bg);
    --bs-border-color: var(--vx-border);
}
body:not(.vx-theme-light):not([data-theme="light"]) .text-muted {
    color: var(--vx-text-muted) !important;
}
body:not(.vx-theme-light):not([data-theme="light"]) .form-check-label {
    color: var(--vx-text-soft);
}
body:not(.vx-theme-light):not([data-theme="light"]) .form-label {
    color: var(--vx-text-soft);
}
body:not(.vx-theme-light):not([data-theme="light"]) strong,
body:not(.vx-theme-light):not([data-theme="light"]) b {
    color: var(--vx-text);
}
body:not(.vx-theme-light):not([data-theme="light"]) hr {
    border-color: var(--vx-border);
    opacity: 1;
}
[data-theme="light"] .text-muted { color: var(--vx-text-muted) !important; }
[data-theme="light"] .form-check-label { color: var(--vx-text-soft); }
[data-theme="light"] .form-label { color: var(--vx-text-soft); }
[data-theme="light"] strong, [data-theme="light"] b { color: var(--vx-text); }
[data-theme="light"] hr { border-color: var(--vx-border); opacity: 1; }

/* ── vx-card-header (utilisé dans vues tenant/admin) ── */
.vx-card-header {
    display: flex; align-items: center; gap: .5rem;
    padding: 14px 18px;
    margin: -22px -22px 16px;
    background: linear-gradient(135deg, rgba(99,102,241,.08), rgba(139,92,246,.04));
    border-bottom: 1px solid var(--vx-border);
    border-radius: var(--vx-radius) var(--vx-radius) 0 0;
    font-weight: 700; font-size: .92rem;
    color: var(--vx-text);
}
.vx-card-header i { color: var(--vx-primary); font-size: 1rem; }

/* ---------- Sidebar ---------- */
.vx-layout { display: flex; min-height: 100vh; }
/* =====================================================================
   SIDEBAR — Ultra premium
   ===================================================================== */
.vx-sidebar {
    width: 280px;
    background:
        radial-gradient(1200px 600px at -20% -10%, rgba(99,102,241,.10), transparent 60%),
        radial-gradient(800px 500px at 120% 100%, rgba(139,92,246,.08), transparent 60%),
        linear-gradient(180deg, #080C1E 0%, #0D1530 100%);
    color: #CAD1EC;
    border-right: 1px solid rgba(255,255,255,0.06);
    padding: 18px 12px 12px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.10) transparent;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}
.vx-sidebar::-webkit-scrollbar { width: 6px; }
.vx-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.08);
    border-radius: 3px;
}
.vx-sidebar::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.16); }

/* ---------- Brand ---------- */
.vx-sidebar .vx-brand {
    display: flex; align-items: center; gap: .7rem;
    color: #fff; text-decoration: none;
    font-weight: 700; font-size: 1.05rem;
    padding: 4px 8px 14px;
    margin-bottom: 2px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.vx-sidebar .vx-brand-logo {
    width: 34px; height: 34px; border-radius: 10px;
    background: linear-gradient(135deg, #6366F1, #8B5CF6 70%, #EC4899);
    display: flex; align-items: center; justify-content: center;
    box-shadow:
        0 4px 14px rgba(99,102,241,.32),
        inset 0 1px 0 rgba(255,255,255,.18);
    flex-shrink: 0;
}
.vx-sidebar .vx-brand-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 10px rgba(255,255,255,.8);
}
.vx-sidebar .vx-brand-name {
    letter-spacing: -0.01em;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ---------- Search ---------- */
.vx-sidebar .vx-sidebar-search {
    display: flex; align-items: center; gap: .5rem;
    padding: 8px 10px;
    margin: 12px 2px 6px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 9px;
    transition: border-color .15s, background .15s;
}
.vx-sidebar .vx-sidebar-search:focus-within {
    border-color: rgba(99,102,241,.5);
    background: rgba(99,102,241,.06);
}
.vx-sidebar .vx-sidebar-search i {
    color: #6A77A8; font-size: .85rem;
}
.vx-sidebar .vx-sidebar-search input {
    flex: 1; min-width: 0;
    background: transparent; border: 0; outline: 0;
    color: #E5EAF5;
    font-size: .85rem; font-family: inherit;
}
.vx-sidebar .vx-sidebar-search input::placeholder { color: #6A77A8; }
.vx-sidebar .vx-sidebar-search kbd {
    font-size: .68rem; font-weight: 600;
    padding: 2px 6px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 5px;
    color: #8A96C3;
    font-family: inherit;
}

/* ---------- Sections ---------- */
.vx-sidebar .vx-section { margin-top: 14px; }
.vx-sidebar .vx-section:first-of-type { margin-top: 8px; }
.vx-sidebar .vx-section-label {
    padding: 0 14px 6px;
    font-size: .66rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    font-weight: 700;
    color: #5F6B9E;
}
.vx-sidebar .vx-nav {
    display: flex; flex-direction: column; gap: 1px;
}

/* ---------- Nav items (niveau 1) ---------- */
.vx-sidebar .vx-item {
    display: flex; align-items: center; gap: .75rem;
    width: 100%;
    padding: 9px 12px;
    border: 0; background: transparent;
    border-radius: 9px;
    color: #B7C0E4;
    text-decoration: none;
    font-size: .9rem; font-weight: 500;
    text-align: left;
    font-family: inherit;
    cursor: pointer;
    transition: background .16s, color .16s;
    position: relative;
}
.vx-sidebar .vx-item > i:first-child {
    font-size: 1.05rem;
    width: 20px; text-align: center;
    color: #8692C1;
    transition: color .16s;
    flex-shrink: 0;
}
.vx-sidebar .vx-item .vx-label {
    flex: 1;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.vx-sidebar .vx-item:hover {
    background: rgba(255,255,255,0.045);
    color: #fff;
}
.vx-sidebar .vx-item:hover > i:first-child { color: #C3CCEA; }

.vx-sidebar .vx-item.active {
    background: linear-gradient(135deg, rgba(99,102,241,.20), rgba(139,92,246,.14));
    color: #fff;
    box-shadow:
        inset 0 0 0 1px rgba(99,102,241,.28),
        0 2px 8px rgba(99,102,241,.12);
}
.vx-sidebar .vx-item.active > i:first-child {
    color: #A5B4FC;
}
.vx-sidebar .vx-item.active::before {
    content: '';
    position: absolute; left: -12px; top: 6px; bottom: 6px;
    width: 3px; border-radius: 0 3px 3px 0;
    background: linear-gradient(180deg, #6366F1, #8B5CF6);
    box-shadow: 0 0 10px rgba(99,102,241,.6);
}

/* ---------- Groupes (collapsibles) ---------- */
.vx-sidebar .vx-group { display: block; }
.vx-sidebar .vx-group-head .vx-chev {
    margin-left: auto; font-size: .75rem; opacity: .55;
    transition: transform .22s cubic-bezier(.4, 0, .2, 1), opacity .15s;
}
.vx-sidebar .vx-group-head:hover .vx-chev { opacity: .9; }
.vx-sidebar .vx-group.open > .vx-group-head .vx-chev {
    transform: rotate(180deg);
}
.vx-sidebar .vx-group.open > .vx-group-head {
    color: #fff;
}

.vx-sidebar .vx-sub {
    overflow: hidden;
    max-height: 0;
    transition: max-height .28s cubic-bezier(.4, 0, .2, 1);
    display: flex; flex-direction: column; gap: 1px;
    margin: 2px 0 4px 22px;
    padding-left: 12px;
    border-left: 1px dashed rgba(99,102,241,.22);
}
.vx-sidebar .vx-subitem {
    display: flex; align-items: center; gap: .6rem;
    padding: 7px 10px;
    border-radius: 7px;
    color: #8B96C4;
    text-decoration: none;
    font-size: .85rem; font-weight: 500;
    transition: background .14s, color .14s;
    position: relative;
}
.vx-sidebar .vx-subitem > i:first-child,
.vx-sidebar .vx-subitem > .vx-live-dot {
    font-size: .9rem; width: 16px; text-align: center;
    color: #6E7AAA; flex-shrink: 0;
}
.vx-sidebar .vx-subitem:hover {
    background: rgba(255,255,255,0.04);
    color: #E5EAF5;
}
.vx-sidebar .vx-subitem.active {
    background: linear-gradient(135deg, rgba(99,102,241,.22), rgba(139,92,246,.12));
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(99,102,241,.28);
}
.vx-sidebar .vx-subitem.active > i:first-child { color: #A5B4FC; }
.vx-sidebar .vx-subitem.active::before {
    content: '';
    position: absolute; left: -13px; top: 50%;
    width: 7px; height: 7px; border-radius: 50%;
    transform: translateY(-50%);
    background: #6366F1;
    box-shadow: 0 0 8px rgba(99,102,241,.8);
}

/* ---------- Live dot (Monitoring) ---------- */
.vx-sidebar .vx-live-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #22C55E;
    box-shadow: 0 0 0 3px rgba(34,197,94,.18), 0 0 8px rgba(34,197,94,.5);
    animation: vxLivePulse 1.6s ease-in-out infinite;
    display: inline-block;
    margin: 0 4px;
}
@keyframes vxLivePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .5; transform: scale(.85); }
}

/* ---------- Badge NEW ---------- */
.vx-sidebar .vx-badge-new {
    margin-left: auto;
    font-size: .6rem; font-weight: 800;
    letter-spacing: .08em;
    padding: 2px 7px;
    border-radius: 999px;
    background: linear-gradient(135deg, #22C55E, #10B981);
    color: #052E16;
    box-shadow: 0 2px 6px rgba(34,197,94,.3);
}

/* ---------- Super admin section ---------- */
.vx-sidebar .vx-section-admin {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.vx-sidebar .vx-item-admin {
    color: #FCD34D !important;
    background: rgba(251,191,36,.06);
    border: 1px solid rgba(251,191,36,.12);
}
.vx-sidebar .vx-item-admin > i:first-child { color: #FCD34D !important; }
.vx-sidebar .vx-item-admin:hover {
    background: rgba(251,191,36,.12) !important;
}

/* ---------- Footer (profil) ---------- */
.vx-sidebar .vx-sidebar-footer {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.vx-sidebar .vx-profile {
    display: flex; align-items: center; gap: .7rem;
    padding: 10px;
    border-radius: 10px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    transition: background .15s, border-color .15s;
}
.vx-sidebar .vx-profile:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(99,102,241,.2);
}
.vx-sidebar .vx-avatar {
    width: 34px; height: 34px; border-radius: 9px;
    background: linear-gradient(135deg, #6366F1, #8B5CF6);
    color: #fff; font-weight: 700; font-size: .82rem;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 8px rgba(99,102,241,.3);
    flex-shrink: 0;
}
.vx-sidebar .vx-profile-info {
    flex: 1; min-width: 0;
}
.vx-sidebar .vx-profile-name {
    color: #E5EAF5; font-size: .85rem; font-weight: 600;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.vx-sidebar .vx-profile-role {
    color: #6A77A8; font-size: .72rem;
    text-transform: capitalize;
}
.vx-sidebar .vx-profile-action {
    color: #8692C1;
    padding: 6px 8px;
    border-radius: 7px;
    transition: .15s;
}
.vx-sidebar .vx-profile-action:hover {
    color: #fff;
    background: rgba(99,102,241,.15);
}
.vx-sidebar .vx-version {
    text-align: center;
    color: #4A547E;
    font-size: .68rem;
    margin-top: 8px;
    letter-spacing: .04em;
}

/* ---------- Top bar ---------- */
.vx-main { flex: 1; min-width: 0; }
.vx-topbar {
    position: sticky; top: 0; z-index: 20;
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 28px;
    background: rgba(15, 21, 43, .85);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--vx-border);
}
.vx-topbar .vx-search {
    flex: 1; max-width: 480px; margin: 0 24px;
    background: var(--vx-surface);
    border: 1px solid var(--vx-border);
    border-radius: 12px;
    padding: 8px 14px;
    display: flex; align-items: center; gap: .5rem;
    color: var(--vx-text-muted);
}
.vx-topbar .vx-search input {
    background: transparent; border: 0; outline: 0;
    color: var(--vx-text); width: 100%;
    font-size: .925rem;
}

/* ---------- Content ---------- */
.vx-content { padding: 28px 28px 60px; }
.vx-page-title {
    font-size: 1.6rem; font-weight: 700; color: var(--vx-text);
    margin-bottom: 4px; letter-spacing: -0.02em;
}
.vx-page-sub { color: var(--vx-text-muted); font-size: .95rem; margin-bottom: 24px; }

/* ---------- Cards ---------- */
.vx-card {
    background: var(--vx-surface);
    border: 1px solid var(--vx-border);
    border-radius: var(--vx-radius);
    box-shadow: var(--vx-shadow-sm);
    padding: 22px;
}
.vx-card-lg { padding: 28px; border-radius: var(--vx-radius-lg); }
.vx-card-hd {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 16px;
}
.vx-card-hd h5 { margin: 0; font-weight: 600; font-size: 1rem; }

/* Stat cards */
.vx-stat {
    background: linear-gradient(135deg, var(--vx-surface), var(--vx-surface-2));
    border: 1px solid var(--vx-border);
    border-radius: var(--vx-radius);
    padding: 22px;
    position: relative; overflow: hidden;
}
.vx-stat:before {
    content: ''; position: absolute; inset: -40% -20% auto auto;
    width: 160px; height: 160px; border-radius: 50%;
    background: radial-gradient(circle, rgba(99,102,241,.25), transparent 70%);
}
.vx-stat .lbl { color: var(--vx-text-muted); font-size: .85rem; font-weight: 500; }
.vx-stat .val { font-size: 2rem; font-weight: 700; margin: 6px 0; color: var(--vx-text); letter-spacing: -0.02em; }
.vx-stat .trend { color: var(--vx-success); font-size: .8rem; font-weight: 500; }
.vx-stat .trend.down { color: var(--vx-danger); }
.vx-stat .ico {
    width: 40px; height: 40px; border-radius: 10px;
    background: linear-gradient(135deg, var(--vx-primary), var(--vx-accent));
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff;
    box-shadow: 0 8px 24px rgba(99,102,241,.35);
}

/* ---------- Tables ---------- */
.vx-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}
.vx-table thead th {
    background: var(--vx-surface-2);
    color: var(--vx-text-muted);
    font-weight: 600; font-size: .78rem;
    text-transform: uppercase; letter-spacing: .05em;
    padding: 12px 14px; text-align: left;
    border-bottom: 1px solid var(--vx-border);
}
.vx-table tbody td {
    padding: 14px;
    border-bottom: 1px solid var(--vx-border);
    color: var(--vx-text);
    font-size: .925rem;
}
.vx-table tbody tr:hover td { background: rgba(99,102,241,.05); }
.vx-table tbody tr:last-child td { border-bottom: 0; }

/* ---------- Badges ---------- */
.vx-badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 4px 10px; border-radius: 20px;
    font-size: .72rem; font-weight: 600;
    letter-spacing: .02em;
    background: var(--vx-surface-2);
    color: var(--vx-text-soft);
    border: 1px solid var(--vx-border);
}
.vx-badge.primary { background: rgba(99,102,241,.15); color: #A5A9FF; border-color: rgba(99,102,241,.3); }
.vx-badge.success { background: rgba(16,185,129,.15);  color: #4ADE80; border-color: rgba(16,185,129,.3); }
.vx-badge.warn    { background: rgba(245,158,11,.15);  color: #FBBF24; border-color: rgba(245,158,11,.3); }
.vx-badge.danger  { background: rgba(239,68,68,.15);   color: #F87171; border-color: rgba(239,68,68,.3); }
.vx-badge.info    { background: rgba(14,165,233,.15);  color: #38BDF8; border-color: rgba(14,165,233,.3); }

/* ---------- Buttons ---------- */
.btn-vx-primary {
    background: linear-gradient(135deg, var(--vx-primary), var(--vx-accent));
    color: #fff; border: 0;
    padding: 10px 20px; border-radius: 10px;
    font-weight: 600; font-size: .9rem;
    box-shadow: 0 6px 18px rgba(99,102,241,.35);
    transition: .2s ease;
}
.btn-vx-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(99,102,241,.5); color: #fff; }
.btn-vx-wa {
    display: inline-flex; align-items: center; gap: 8px;
    background: #25D366; color: #fff; border: none; border-radius: 12px;
    padding: 12px 24px; font-size: .95rem; font-weight: 700;
    cursor: pointer; transition: all .25s ease; font-family: inherit;
    box-shadow: 0 4px 16px rgba(37,211,102,.3); text-decoration: none;
}
.btn-vx-wa:hover { background: #1EBE5A; transform: translateY(-2px); box-shadow: 0 6px 24px rgba(37,211,102,.45); color: #fff; }
.btn-vx-wa.btn-lg { padding: 14px 28px; font-size: 1rem; }

.btn-vx-ghost {
    background: transparent; color: var(--vx-text);
    border: 1px solid var(--vx-border);
    padding: 10px 20px; border-radius: 10px; font-weight: 500;
}
.btn-vx-ghost:hover { background: var(--vx-surface-2); }
.btn-vx-danger {
    background: rgba(239,68,68,.15);
    color: #F87171;
    border: 1px solid rgba(239,68,68,.35);
    padding: 9px 18px; border-radius: 10px; font-weight: 500;
}
.btn-vx-danger:hover { background: rgba(239,68,68,.25); color: #fff; }

/* ---------- Forms ---------- */
.form-label { color: var(--vx-text-soft); font-weight: 500; font-size: .85rem; margin-bottom: 6px; }
.form-control, .form-select, textarea.form-control {
    background: var(--vx-surface);
    border: 1px solid var(--vx-border);
    color: var(--vx-text);
    border-radius: 10px;
    padding: 11px 14px;
    font-size: .9rem;
    transition: .15s;
}
.form-control:focus, .form-select:focus {
    background: var(--vx-surface);
    border-color: var(--vx-primary);
    color: var(--vx-text);
    box-shadow: 0 0 0 3px rgba(99,102,241,.18);
}
.form-control::placeholder { color: var(--vx-text-muted); }

/* ---------- Alerts (flash) ---------- */
.vx-alert {
    border-radius: 12px; padding: 14px 16px;
    display: flex; align-items: start; gap: .75rem;
    margin-bottom: 18px;
    border: 1px solid var(--vx-border);
}
.vx-alert.success { background: rgba(16,185,129,.1);  border-color: rgba(16,185,129,.3);  color: #4ADE80; }
.vx-alert.error   { background: rgba(239,68,68,.1);   border-color: rgba(239,68,68,.3);   color: #F87171; }
.vx-alert.warning { background: rgba(245,158,11,.1);  border-color: rgba(245,158,11,.3);  color: #FBBF24; }
.vx-alert.info    { background: rgba(14,165,233,.1);  border-color: rgba(14,165,233,.3);  color: #38BDF8; }

/* ---------- Auth screens ---------- */
.vx-auth {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    padding: 40px 20px;
    background:
      radial-gradient(circle at 10% 20%, rgba(99,102,241,.25), transparent 40%),
      radial-gradient(circle at 85% 85%, rgba(139,92,246,.25), transparent 40%),
      var(--vx-bg);
}
.vx-auth-card {
    width: 100%; max-width: 460px;
    background: var(--vx-surface);
    border: 1px solid var(--vx-border);
    border-radius: var(--vx-radius-lg);
    padding: 40px 36px;
    box-shadow: var(--vx-shadow);
}
.vx-auth-card h1 { font-size: 1.5rem; font-weight: 700; margin-bottom: 4px; }
.vx-auth-card p.sub { color: var(--vx-text-muted); margin-bottom: 26px; }

/* ---------- Landing (public) ---------- */
.vx-hero {
    min-height: 82vh;
    padding: 120px 20px 80px;
    background:
      radial-gradient(ellipse at top, rgba(99,102,241,.2), transparent 50%),
      radial-gradient(ellipse at bottom right, rgba(139,92,246,.15), transparent 50%),
      var(--vx-bg);
    text-align: center;
}
.vx-hero h1 {
    font-size: clamp(2rem, 5vw, 3.6rem);
    font-weight: 800;
    line-height: 1.1; letter-spacing: -0.03em;
    background: linear-gradient(135deg, #fff 0%, #A5B4FC 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 20px;
}
.vx-hero p.lead { color: var(--vx-text-soft); font-size: 1.15rem; max-width: 680px; margin: 0 auto 30px; }

.vx-section { padding: 80px 20px; }
.vx-section .section-title {
    text-align: center; font-size: 2rem; font-weight: 700;
    margin-bottom: 40px; letter-spacing: -0.02em;
}
.vx-feature {
    background: var(--vx-surface);
    border: 1px solid var(--vx-border);
    border-radius: var(--vx-radius);
    padding: 28px;
    height: 100%;
}
.vx-feature .ico {
    width: 48px; height: 48px; border-radius: 12px;
    background: linear-gradient(135deg, var(--vx-primary), var(--vx-accent));
    display: inline-flex; align-items: center; justify-content: center;
    margin-bottom: 18px; color: #fff;
}
.vx-feature h4 { font-size: 1.1rem; font-weight: 600; margin-bottom: 10px; }
.vx-feature p { color: var(--vx-text-muted); font-size: .92rem; }

/* Price card */
.vx-price {
    background: var(--vx-surface);
    border: 1px solid var(--vx-border);
    border-radius: var(--vx-radius-lg);
    padding: 36px 28px;
    height: 100%;
    transition: .25s;
}
.vx-price:hover { transform: translateY(-4px); box-shadow: var(--vx-shadow); }
.vx-price.featured {
    background: linear-gradient(135deg, rgba(99,102,241,.12), rgba(139,92,246,.12));
    border-color: rgba(99,102,241,.4);
    box-shadow: 0 20px 60px rgba(99,102,241,.25);
    transform: scale(1.02);
}
.vx-price .name { font-size: 1.05rem; color: var(--vx-text-muted); text-transform: uppercase; letter-spacing: .08em; }
.vx-price .price { font-size: 2.5rem; font-weight: 700; margin: 10px 0; }
.vx-price .price sub { font-size: .8rem; color: var(--vx-text-muted); }
.vx-price ul { list-style: none; padding: 0; margin: 20px 0 24px; }
.vx-price li { padding: 7px 0; border-bottom: 1px dashed var(--vx-border); color: var(--vx-text-soft); font-size: .9rem; }

/* Avatar */
.vx-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: linear-gradient(135deg, var(--vx-primary), var(--vx-accent));
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 600; font-size: .85rem;
}
.vx-avatar-sm { width: 28px; height: 28px; font-size: .72rem; }

/* Tabs */
.vx-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--vx-border); margin-bottom: 24px; }
.vx-tabs a {
    padding: 10px 16px; color: var(--vx-text-muted);
    text-decoration: none; font-weight: 500; font-size: .9rem;
    border-bottom: 2px solid transparent;
}
.vx-tabs a.active { color: var(--vx-text); border-color: var(--vx-primary); }

/* Misc */
.text-muted-soft { color: var(--vx-text-muted); }
.divider { height: 1px; background: var(--vx-border); margin: 24px 0; }

@media (max-width: 900px) {
    .vx-sidebar { position: fixed; left: -280px; transition: .25s; z-index: 50; }
    .vx-sidebar.open { left: 0; }
}

/* =====================================================================
   TOPNAV HORIZONTAL — Ultra premium
   ===================================================================== */
.vx-body-horizontal { min-height: 100vh; }

.vx-topnav {
    position: sticky; top: 0; z-index: 100;
    background:
        radial-gradient(800px 300px at 0% 0%, rgba(99,102,241,.12), transparent 60%),
        radial-gradient(600px 280px at 100% 0%, rgba(236,72,153,.08), transparent 60%),
        linear-gradient(180deg, rgba(11,16,32,.95), rgba(15,21,43,.90));
    backdrop-filter: saturate(180%) blur(18px);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}
.vx-topnav-inner {
    max-width: 1600px; margin: 0 auto;
    display: flex; align-items: center; gap: 12px;
    padding: 8px 18px;
    min-height: 54px;
}

/* Brand */
.vx-topnav-brand {
    display: flex; align-items: center; gap: .7rem;
    color: #fff; text-decoration: none;
    flex-shrink: 0;
    padding: 4px 8px 4px 0;
    border-right: 1px solid rgba(255,255,255,0.07);
    margin-right: 6px;
    padding-right: 18px;
}
.vx-topnav-logo {
    width: 32px; height: 32px; border-radius: 9px;
    background: linear-gradient(135deg, #6366F1, #8B5CF6 60%, #EC4899);
    display: flex; align-items: center; justify-content: center;
    box-shadow:
        0 4px 16px rgba(99,102,241,.38),
        inset 0 1px 0 rgba(255,255,255,.22);
}
.vx-topnav-logo > span {
    width: 9px; height: 9px; border-radius: 50%;
    background: #fff; box-shadow: 0 0 12px rgba(255,255,255,.85);
}
.vx-topnav-brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.vx-topnav-brand-name {
    font-weight: 700; font-size: .85rem; color: #fff;
    max-width: 160px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.vx-topnav-brand-sub {
    font-size: .62rem; color: #7C88BD; letter-spacing: .08em; text-transform: uppercase;
    font-weight: 600;
}

/* Burger mobile */
.vx-topnav-burger {
    display: none; background: transparent; border: 0;
    color: #CAD1EC; font-size: 1.4rem; padding: 6px 10px;
    border-radius: 8px; cursor: pointer;
}
.vx-topnav-burger:hover { background: rgba(255,255,255,0.06); color: #fff; }

/* ---------- Nav items ---------- */
.vx-topnav-menu {
    display: flex; align-items: center; gap: 2px;
    flex: 1 1 auto;
    min-width: 0;          /* autorise flex shrink */
    flex-wrap: nowrap;
    /* overflow visible impératif : sinon les panels dropdown (position: absolute)
       seraient coupés et ne s'afficheraient pas au clic. */
    overflow: visible;
}
.vx-navlink {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: 6px 10px;
    border: 0; background: transparent;
    border-radius: 8px;
    color: #B7C0E4;
    font-family: inherit;
    font-size: .8rem; font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s, color .15s;
    white-space: nowrap;
    position: relative;
}
.vx-navlink > i:first-child {
    font-size: .92rem; opacity: .82;
}
.vx-navlink .chev {
    font-size: .7rem; opacity: .55; margin-left: 1px;
    transition: transform .2s cubic-bezier(.4, 0, .2, 1);
}
.vx-navlink:hover {
    background: rgba(255,255,255,0.05);
    color: #fff;
}
.vx-navlink.active {
    background: linear-gradient(135deg, rgba(99,102,241,.2), rgba(139,92,246,.14));
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(99,102,241,.3);
}
.vx-navlink.active > i:first-child { color: #A5B4FC; }

/* Dropdown */
.vx-nav-dd { position: relative; }
.vx-nav-dd.show > .vx-navlink {
    background: rgba(255,255,255,0.06); color: #fff;
}
.vx-nav-dd.show > .vx-navlink .chev { transform: rotate(180deg); }

.vx-nav-panel {
    position: absolute; top: calc(100% + 8px); left: 0;
    min-width: 320px;
    background: #121A36;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    box-shadow:
        0 24px 60px rgba(0,0,0,.55),
        0 0 0 1px rgba(99,102,241,0.06);
    padding: 8px;
    opacity: 0; transform: translateY(-8px);
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
    z-index: 500;
}
.vx-nav-dd.show > .vx-nav-panel {
    opacity: 1; transform: translateY(0);
    pointer-events: auto;
}
.vx-nav-panel::before {
    content: ''; position: absolute; top: -5px; left: 22px;
    width: 10px; height: 10px; transform: rotate(45deg);
    background: #121A36;
    border-left: 1px solid rgba(255,255,255,0.08);
    border-top: 1px solid rgba(255,255,255,0.08);
}
.vx-nav-panel-2col {
    min-width: 560px;
    display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
}

/* Mega-panel (multi-colonnes avec titres de section) */
.vx-nav-megapanel {
    display: flex; gap: 0; padding: 0;
    min-width: auto;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
}
.vx-nav-megapanel.vx-mega-2col { min-width: 580px; }
.vx-nav-megapanel:not(.vx-mega-2col) { min-width: 780px; }
.vx-mega-col {
    flex: 1 1 0;
    padding: 10px;
    min-width: 0;
}
.vx-mega-col + .vx-mega-col {
    border-left: 1px solid rgba(255,255,255,0.06);
}
.vx-mega-heading {
    font-size: .68rem; font-weight: 700; letter-spacing: .08em;
    text-transform: uppercase; color: #818CF8;
    padding: 6px 10px 8px;
    margin-bottom: 2px;
    display: flex; align-items: center;
}
.vx-mega-heading i { font-size: .78rem; }

.vx-nav-dd-right > .vx-nav-panel {
    left: auto; right: 0;
}
.vx-nav-dd-right > .vx-nav-panel::before { left: auto; right: 22px; }

/* Panel items */
.vx-panel-item {
    display: flex; align-items: center; gap: .6rem;
    padding: 8px 10px;
    border-radius: 8px;
    color: #C3CBEB;
    text-decoration: none;
    transition: background .14s, color .14s;
    font-family: inherit; border: 0;
    background: transparent;
    width: 100%;
    text-align: left;
    font-size: inherit;
    cursor: pointer;
}
.vx-panel-item:hover {
    background: rgba(99,102,241,.1);
    color: #fff;
}
.vx-panel-item.active {
    background: linear-gradient(135deg, rgba(99,102,241,.22), rgba(139,92,246,.14));
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(99,102,241,.28);
}
.vx-panel-item.simple { font-size: .82rem; padding: 8px 12px; }
.vx-panel-item.simple.danger { color: #FCA5A5; }
.vx-panel-item.simple.danger:hover { background: rgba(239,68,68,.1); color: #FEE2E2; }
.vx-panel-item.simple > i { width: 16px; text-align: center; opacity: .85; }

.vx-panel-item .ico {
    width: 32px; height: 32px; border-radius: 8px;
    background: linear-gradient(135deg, rgba(99,102,241,.18), rgba(139,92,246,.12));
    border: 1px solid rgba(99,102,241,.2);
    color: #A5B4FC;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; flex-shrink: 0;
}
.vx-panel-item .ico.live {
    background: radial-gradient(circle, #22C55E 0%, #166534 100%);
    border-color: rgba(34,197,94,.4);
    color: #fff;
    animation: vxLivePulse 1.6s ease-in-out infinite;
    position: relative;
}
.vx-panel-item .ico.live::after {
    content: ''; width: 10px; height: 10px; border-radius: 50%;
    background: #fff; box-shadow: 0 0 10px #fff;
}
.vx-panel-item .t {
    font-weight: 600; font-size: .82rem; color: #EEF0FA;
    display: flex; align-items: center; gap: .4rem;
}
.vx-panel-item .d {
    font-size: .72rem; color: #7C88BD; margin-top: 1px;
    line-height: 1.35;
}
.vx-panel-item:hover .d { color: #9DA8D1; }
.chip-new {
    font-size: .58rem; font-weight: 800; letter-spacing: .08em;
    padding: 1px 6px; border-radius: 999px;
    background: linear-gradient(135deg, #22C55E, #10B981);
    color: #052E16;
}

/* ---------- Right side ---------- */
.vx-topnav-right {
    display: flex; align-items: center; gap: 8px;
    flex-shrink: 0;
}
.vx-topnav-search {
    display: flex; align-items: center; gap: .45rem;
    padding: 7px 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 10px;
    transition: background .15s, border-color .15s;
    min-width: 240px;
}
.vx-topnav-search:focus-within {
    background: rgba(99,102,241,.07);
    border-color: rgba(99,102,241,.45);
}
.vx-topnav-search i { color: #6A77A8; font-size: .9rem; }
.vx-topnav-search input {
    flex: 1; min-width: 0;
    background: transparent; border: 0; outline: 0;
    color: #E5EAF5; font-size: .86rem; font-family: inherit;
}
.vx-topnav-search input::placeholder { color: #6A77A8; }
.vx-topnav-search kbd {
    font-size: .66rem; font-weight: 600;
    padding: 2px 6px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 5px;
    color: #8A96C3; font-family: inherit;
}

.vx-icon-btn {
    position: relative;
    width: 38px; height: 38px;
    border: 1px solid rgba(255,255,255,0.07);
    background: rgba(255,255,255,0.04);
    border-radius: 10px;
    color: #B7C0E4;
    font-size: 1rem;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: .15s;
    text-decoration: none;
}
.vx-icon-btn:hover {
    background: rgba(99,102,241,.12);
    border-color: rgba(99,102,241,.3);
    color: #fff;
}
.vx-icon-btn-warn {
    color: #FCD34D;
    border-color: rgba(251,191,36,.25);
    background: rgba(251,191,36,.06);
}
.vx-icon-btn-warn:hover {
    background: rgba(251,191,36,.15);
    color: #FDE68A;
}
.vx-icon-dot {
    position: absolute; top: 7px; right: 8px;
    width: 8px; height: 8px; border-radius: 50%;
    background: #EF4444;
    box-shadow: 0 0 0 2px #0D1530, 0 0 8px rgba(239,68,68,.7);
}

/* Profile */
.vx-profile-btn {
    display: flex; align-items: center; gap: .55rem;
    padding: 4px 10px 4px 4px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 10px;
    cursor: pointer;
    font-family: inherit;
    transition: .15s;
}
.vx-profile-btn:hover {
    background: rgba(99,102,241,.1);
    border-color: rgba(99,102,241,.3);
}
.vx-topnav-avatar {
    width: 30px; height: 30px; border-radius: 8px;
    background: linear-gradient(135deg, #6366F1, #8B5CF6);
    color: #fff; font-weight: 700; font-size: .76rem;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 6px rgba(99,102,241,.35);
    flex-shrink: 0;
}
.vx-profile-meta {
    display: flex; flex-direction: column; line-height: 1.15;
    max-width: 140px;
}
.vx-profile-meta .name {
    color: #E5EAF5; font-size: .82rem; font-weight: 600;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.vx-profile-meta .role {
    color: #6A77A8; font-size: .68rem; text-transform: capitalize;
}
.vx-profile-btn .chev {
    font-size: .7rem; opacity: .55; color: #B7C0E4;
    transition: transform .2s;
}
.vx-nav-dd.show .vx-profile-btn .chev { transform: rotate(180deg); }

.vx-nav-panel-profile { min-width: 280px; padding: 6px; }
.vx-nav-panel-profile hr {
    border: 0; border-top: 1px solid rgba(255,255,255,0.06);
    margin: 6px 2px;
}
.vx-panel-section-label {
    font-size: .68rem; font-weight: 700; letter-spacing: .08em;
    text-transform: uppercase; color: #6A77A8;
    padding: 6px 12px 2px; margin-top: 2px;
}
.vx-panel-profile-head {
    display: flex; align-items: center; gap: .7rem;
    padding: 12px 10px 14px;
    margin: -2px -2px 4px;
    background: linear-gradient(135deg, rgba(99,102,241,.12), rgba(139,92,246,.06));
    border-radius: 10px;
}
.vx-panel-profile-head .name {
    font-weight: 700; font-size: .92rem; color: #fff;
}
.vx-panel-profile-head .mail {
    font-size: .75rem; color: #7C88BD;
    max-width: 180px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ---------- Main (horizontal layout) ---------- */
.vx-main-h {
    max-width: 1600px;
    margin: 0 auto;
    padding: 26px 22px;
}
.vx-main-h .vx-content { padding: 0; }

/* ---------- Responsive ---------- */

/* Garanties globales : la zone droite est protegee, le menu peut shrinker. */
.vx-topnav-menu {
    min-width: 0;
    flex: 1 1 0;
    /* IMPORTANT : on garde overflow visible pour que les mega-panels
       des dropdowns puissent depasser sans etre coupes. La protection
       contre la superposition se fait via les media queries plus bas
       qui masquent les libelles tot. */
    overflow: visible;
}
.vx-topnav-right {
    flex-shrink: 0;
    margin-left: auto;
    padding-left: 8px;
    /* z-index pour passer au-dessus des dropdowns en cas d'overlap visuel */
    position: relative;
    z-index: 3;
    background: linear-gradient(90deg,
        rgba(11,16,32,0) 0%,
        rgba(11,16,32,.85) 12%,
        rgba(11,16,32,.95) 100%);
    border-radius: 0;
}
[data-theme="light"] .vx-topnav-right {
    background: linear-gradient(90deg,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,.85) 12%,
        rgba(255,255,255,.95) 100%);
}

/* ---------------------------------------------------------------
   Conteneur topnav : on autorise jusqu'a 1800px de largeur effective
   (au lieu de 1600px) pour laisser plus de place aux 10 entrees.
   --------------------------------------------------------------- */
.vx-topnav-inner { max-width: 1800px; }


/* ---------------------------------------------------------------
   STRATEGIE : icon-only PAR DEFAUT sur les dropdowns, on ne reaffiche
   les libelles que sur ecrans tres larges (>= 1920px viewport).
   La barre contient 9-10 entrees + brand + right side, donc en mode
   "labels visibles" elle deborde sur la quasi-totalite des ecrans.
   --------------------------------------------------------------- */

/* DEFAUT : tous les dropdowns en icone seule (avec tooltip natif via title=). */
.vx-nav-dd > .vx-navlink > .lbl { display: none; }
.vx-nav-dd > .vx-navlink .chip-new { display: none; }
.vx-nav-dd > .vx-navlink { padding: 6px 9px; }
.vx-nav-dd > .vx-navlink .chev { margin-left: 0; opacity: .4; }
.vx-topnav-inner { gap: 10px; padding: 8px 16px; }
.vx-topnav-menu { gap: 0; }
.vx-navlink { padding: 6px 9px; font-size: .8rem; }
.vx-navlink .chev { margin-left: 0; }

/* GRANDS ECRANS (>= 1920px viewport) : on reaffiche les libelles. */
@media (min-width: 1920px) {
    .vx-nav-dd > .vx-navlink > .lbl { display: inline; }
    .vx-nav-dd > .vx-navlink .chip-new { display: inline-block; }
    .vx-nav-dd > .vx-navlink { padding: 6px 10px; gap: .4rem; }
    .vx-nav-dd > .vx-navlink .chev { margin-left: 2px; opacity: .55; }
    .vx-topnav-brand-sub { display: block; }
    .vx-navlink { padding: 6px 10px; font-size: .82rem; }
}

/* TRES GRANDS ECRANS (>= 2300px viewport) : on retablit le confort total. */
@media (min-width: 2300px) {
    .vx-topnav-inner { gap: 12px; padding: 8px 18px; max-width: 2200px; }
}

/* Ecrans moyens (1500 → 1300) : on resserre encore + on masque le profil-meta */
@media (max-width: 1500px) {
    .vx-topnav-inner { gap: 6px; padding: 8px 14px; }
    .vx-topnav-brand { padding-right: 10px; margin-right: 2px; }
    .vx-topnav-brand-name { max-width: 110px; }
    .vx-navlink { padding: 6px 8px; font-size: .78rem; gap: .3rem; }
    .vx-topnav-search { min-width: 140px; }
    .vx-profile-meta { display: none !important; }
    /* Mega-panels plus etroits */
    .vx-nav-megapanel:not(.vx-mega-2col) { min-width: 620px; }
}

/* Ecrans moyens — on masque aussi les libelles des liens simples (non-dd) */
@media (max-width: 1200px) {
    .vx-topnav-menu > a.vx-navlink > .lbl { display: none; }
    .vx-topnav-menu > a.vx-navlink { padding: 6px 8px; }
}

@media (max-width: 1024px) {
    .vx-topnav-search { display: none; }
    /* Mega-panels passent en 2 colonnes max */
    .vx-nav-megapanel:not(.vx-mega-2col) {
        min-width: 460px; flex-wrap: wrap;
    }
    .vx-nav-megapanel:not(.vx-mega-2col) .vx-mega-col {
        flex: 1 1 45%; min-width: 200px;
    }
    .vx-nav-megapanel.vx-mega-2col { min-width: 440px; }
}
@media (max-width: 900px) {
    .vx-topnav-burger { display: flex; }
    .vx-topnav-inner {
        flex-wrap: wrap;
        padding: 6px 12px;
        min-height: 48px;
        gap: 6px;
    }
    .vx-topnav-brand {
        flex: 1 1 auto;
        min-width: 0;
        border-right: 0;
        margin-right: 0;
        padding-right: 6px;
    }
    .vx-topnav-brand-name { max-width: 100px; font-size: .8rem; }
    .vx-topnav-brand-sub { display: none; }
    .vx-topnav-right {
        gap: 4px;
        order: 0;
    }
    .vx-topnav-right .vx-icon-btn { width: 34px; height: 34px; font-size: .9rem; }
    .vx-profile-btn { padding: 3px 6px 3px 3px; }
    .vx-profile-btn .chev { display: none; }
    .vx-topnav-avatar { width: 28px; height: 28px; font-size: .7rem; }
    .vx-topnav-menu {
        position: absolute; top: 100%; left: 0; right: 0;
        flex-direction: column; align-items: stretch;
        gap: 2px;
        background: linear-gradient(180deg, #0B1020 0%, #0D1530 100%);
        border-bottom: 1px solid rgba(255,255,255,0.08);
        box-shadow: 0 12px 40px rgba(0,0,0,.5);
        padding: 0 12px;
        max-height: 0; overflow: hidden;
        transition: max-height .3s cubic-bezier(.4,0,.2,1), padding .3s;
    }
    .vx-topnav.open .vx-topnav-menu {
        max-height: 80vh; overflow-y: auto;
        padding: 10px 12px 14px;
        -webkit-overflow-scrolling: touch;
    }
    .vx-navlink {
        padding: 11px 14px; width: 100%; justify-content: flex-start;
        font-size: .88rem; border-radius: 10px;
    }
    .vx-navlink > i:first-child { font-size: 1rem; opacity: .9; }
    .vx-navlink .chev { margin-left: auto; opacity: .7; }
    .vx-navlink:hover, .vx-navlink:active {
        background: rgba(99,102,241,.1);
    }
    /* En mode burger les libellés doivent réapparaître */
    .vx-topnav-menu > a.vx-navlink > .lbl,
    .vx-nav-dd > .vx-navlink > .lbl { display: inline; }
    .vx-nav-dd > .vx-navlink .chip-new { display: inline-block; }
    .vx-topnav-menu .vx-nav-dd { width: 100%; }
    .vx-topnav-right .vx-nav-dd { width: auto; }
    /* Panels dans le menu burger : statiques, empilés */
    .vx-topnav-menu .vx-nav-panel {
        position: static; opacity: 1; transform: none; pointer-events: auto;
        display: none; box-shadow: none;
        background: rgba(255,255,255,.02);
        border: 0; border-left: 2px solid rgba(99,102,241,.3);
        border-radius: 0 10px 10px 0;
        margin: 2px 0 2px 12px; padding: 6px 8px;
        min-width: 0;
    }
    /* Panels dans la zone droite (bell, profile) : restent en overlay */
    .vx-topnav-right .vx-nav-panel {
        display: none; opacity: 1; transform: none; pointer-events: auto;
    }
    .vx-topnav-menu .vx-nav-panel::before { display: none; }
    .vx-topnav-menu .vx-nav-panel-2col { grid-template-columns: 1fr; min-width: 0 !important; }
    .vx-panel-item { padding: 10px 12px; border-radius: 8px; }
    .vx-panel-item .ico { width: 28px; height: 28px; font-size: .88rem; border-radius: 7px; }
    .vx-panel-item .t { font-size: .8rem; }
    .vx-panel-item .d { font-size: .7rem; }
    /* Mega-panels deviennent verticaux en mobile */
    .vx-nav-megapanel {
        flex-direction: column; min-width: 0 !important;
    }
    .vx-mega-col + .vx-mega-col { border-left: 0; border-top: 1px solid rgba(255,255,255,0.06); }
    .vx-mega-heading { padding: 8px 10px 4px; }
    .vx-topnav-menu .vx-nav-dd.show > .vx-nav-panel { display: block; }
    .vx-topnav-menu .vx-nav-dd.show > .vx-nav-megapanel { display: flex; }
    /* Notification panel mobile */
    .vx-nav-panel-notif {
        position: fixed !important; top: auto !important; bottom: 0 !important;
        left: 0 !important; right: 0 !important;
        width: 100% !important; max-width: 100% !important;
        border-radius: 18px 18px 0 0 !important;
        max-height: 70vh !important;
        box-shadow: 0 -10px 40px rgba(0,0,0,.6) !important;
        z-index: 600;
    }
    .vx-nav-panel-notif .vx-notif-panel-body { max-height: 55vh; }
    /* Profile panel mobile */
    .vx-nav-panel-profile {
        position: fixed !important; bottom: 0 !important;
        left: 0 !important; right: 0 !important;
        width: 100% !important; min-width: 100% !important;
        border-radius: 18px 18px 0 0 !important;
        box-shadow: 0 -10px 40px rgba(0,0,0,.6) !important;
        z-index: 600;
    }
    .vx-main-h { padding: 14px 10px; }
}

/* Extra small phones */
@media (max-width: 420px) {
    .vx-topnav-inner { padding: 5px 8px; }
    .vx-topnav-brand-name { max-width: 80px; font-size: .75rem; }
    .vx-topnav-logo { width: 28px; height: 28px; border-radius: 7px; }
    .vx-topnav-logo > span { width: 7px; height: 7px; }
    .vx-topnav-burger { font-size: 1.3rem; padding: 4px 8px; }
    .vx-topnav-right .vx-icon-btn { width: 32px; height: 32px; font-size: .85rem; border-radius: 8px; }
    .vx-topnav-avatar { width: 26px; height: 26px; font-size: .65rem; }
    .vx-profile-btn { padding: 2px 4px 2px 2px; border-radius: 8px; }
}

/* ============================================================= */
/*  Bandeau impersonation super-admin                              */
/* ============================================================= */
.vx-impersonation-bar {
    position: sticky;
    top: 0;
    z-index: 1200;
    background: linear-gradient(90deg, #F6B935 0%, #F28F3B 100%);
    color: #1A1A1A;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(0,0,0,0.18);
}
.vx-impersonation-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.vx-impersonation-msg {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: .92rem;
}
.vx-impersonation-msg i { font-size: 1.05rem; }
.vx-impersonation-msg strong { font-weight: 800; }
.vx-impersonation-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.vx-impersonation-actions .btn-dark {
    background: #1A1A1A;
    border-color: #1A1A1A;
}
.vx-impersonation-actions .btn-dark:hover {
    background: #000;
    border-color: #000;
}
@media (max-width: 640px) {
    .vx-impersonation-inner { padding: 8px 12px; }
    .vx-impersonation-msg { font-size: .85rem; }
}

/* ============================================================= */
/*  Bandeau essai freemium 14 jours                                */
/* ============================================================= */
.vx-trial-bar {
    position: sticky;
    top: 0;
    z-index: 1190;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 1px 8px rgba(0,0,0,0.10);
}
.vx-trial-bar--normal  { background: linear-gradient(90deg, #6366F1 0%, #8B5CF6 100%); }
.vx-trial-bar--urgent  { background: linear-gradient(90deg, #F59E0B 0%, #F97316 100%); }
.vx-trial-bar--expired { background: linear-gradient(90deg, #EF4444 0%, #DC2626 100%); }
.vx-trial-bar-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 8px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    font-size: .92rem;
}
.vx-trial-bar-cta {
    color: #fff;
    background: rgba(0,0,0,0.18);
    border: 1px solid rgba(255,255,255,0.35);
    padding: 4px 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: background .15s ease;
    white-space: nowrap;
}
.vx-trial-bar-cta:hover { background: rgba(0,0,0,0.35); color: #fff; }
@media (max-width: 640px) {
    .vx-trial-bar-inner { padding: 6px 12px; font-size: .82rem; }
}

/* ============================================================= */
/*  Tables — Dark theme text visibility fix                        */
/* ============================================================= */
.table { color: var(--vx-text, #E5E9F5); }
.table thead th { color: var(--vx-text-muted, #8C95B4); border-bottom-color: var(--vx-border, rgba(255,255,255,.08)); }
.table tbody td { color: var(--vx-text, #E5E9F5); border-bottom-color: rgba(255,255,255,.06); }
.table tbody tr:hover { background: rgba(255,255,255,.04); }
.table a { color: var(--vx-text-soft, #B5BCD6); }
.table a:hover { color: #fff; }

/* ============================================================= */
/*  LIGHT THEME — Overrides for hardcoded dark colors              */
/* ============================================================= */

/* ── Topnav ── */
[data-theme="light"] .vx-topnav {
    background:
        radial-gradient(800px 300px at 0% 0%, rgba(99,102,241,.06), transparent 60%),
        radial-gradient(600px 280px at 100% 0%, rgba(236,72,153,.04), transparent 60%),
        linear-gradient(180deg, #FFFFFF, #F8F9FE);
    border-bottom: 1px solid #E2E5F0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
[data-theme="light"] .vx-topnav-brand { color: #0F172A; border-right-color: #E2E5F0; }
[data-theme="light"] .vx-topnav-brand-name { color: #0F172A; }
[data-theme="light"] .vx-topnav-brand-sub { color: #64748B; }
[data-theme="light"] .vx-topnav-burger { color: #475569; }
[data-theme="light"] .vx-topnav-burger:hover { background: rgba(0,0,0,.05); color: #0F172A; }
[data-theme="light"] .vx-navlink { color: #475569; }
[data-theme="light"] .vx-navlink:hover { background: rgba(99,102,241,.08); color: #0F172A; }
[data-theme="light"] .vx-navlink.active { background: rgba(99,102,241,.12); color: #4F46E5; }
[data-theme="light"] .vx-nav-dd.show > .vx-navlink { background: rgba(99,102,241,.08); color: #0F172A; }

/* ── Dropdown panels ── */
[data-theme="light"] .vx-nav-panel {
    background: #FFFFFF;
    border-color: #E2E5F0;
    box-shadow: 0 20px 50px rgba(0,0,0,0.12), 0 0 0 1px rgba(99,102,241,0.06);
}
[data-theme="light"] .vx-nav-panel::before { background: #FFFFFF; border-color: #E2E5F0; }
[data-theme="light"] .vx-panel-item { color: #475569; }
[data-theme="light"] .vx-panel-item:hover { background: rgba(99,102,241,.06); color: #0F172A; }
[data-theme="light"] .vx-panel-item.active {
    background: linear-gradient(135deg, rgba(99,102,241,.12), rgba(139,92,246,.08));
    color: #4F46E5;
}
[data-theme="light"] .vx-panel-item .ico {
    background: linear-gradient(135deg, rgba(99,102,241,.10), rgba(139,92,246,.06));
    border-color: rgba(99,102,241,.15);
    color: #6366F1;
}
[data-theme="light"] .vx-panel-item .t { color: #0F172A; }
[data-theme="light"] .vx-panel-item .d { color: #64748B; }
[data-theme="light"] .vx-panel-item:hover .d { color: #475569; }
[data-theme="light"] .vx-panel-item.simple.danger { color: #DC2626; }
[data-theme="light"] .vx-panel-item.simple.danger:hover { background: rgba(239,68,68,.06); color: #B91C1C; }
[data-theme="light"] .vx-mega-col + .vx-mega-col { border-left-color: #E2E5F0; }
[data-theme="light"] .vx-mega-heading { color: #4F46E5; }

/* ── Search, icon buttons ── */
[data-theme="light"] .vx-topnav-search {
    background: rgba(0,0,0,.03); border-color: #E2E5F0;
}
[data-theme="light"] .vx-topnav-search:focus-within { background: rgba(99,102,241,.05); border-color: rgba(99,102,241,.4); }
[data-theme="light"] .vx-topnav-search i { color: #94A3B8; }
[data-theme="light"] .vx-topnav-search input { color: #0F172A; }
[data-theme="light"] .vx-topnav-search input::placeholder { color: #94A3B8; }
[data-theme="light"] .vx-topnav-search kbd { background: rgba(0,0,0,.04); border-color: #E2E5F0; color: #64748B; }
[data-theme="light"] .vx-icon-btn {
    border-color: #E2E5F0; background: rgba(0,0,0,.02); color: #475569;
}
[data-theme="light"] .vx-icon-btn:hover { background: rgba(99,102,241,.08); border-color: rgba(99,102,241,.25); color: #4F46E5; }
[data-theme="light"] .vx-icon-dot { box-shadow: 0 0 0 2px #FFFFFF, 0 0 8px rgba(239,68,68,.5); }

/* ── Profile button + panel ── */
[data-theme="light"] .vx-profile-btn { background: rgba(0,0,0,.02); border-color: #E2E5F0; }
[data-theme="light"] .vx-profile-btn:hover { background: rgba(99,102,241,.06); border-color: rgba(99,102,241,.2); }
[data-theme="light"] .vx-profile-meta .name { color: #0F172A; }
[data-theme="light"] .vx-profile-meta .role { color: #64748B; }
[data-theme="light"] .vx-profile-btn .chev { color: #64748B; }
[data-theme="light"] .vx-nav-panel-profile hr { border-top-color: #E2E5F0; }
[data-theme="light"] .vx-panel-section-label { color: #94A3B8; }
[data-theme="light"] .vx-panel-profile-head {
    background: linear-gradient(135deg, rgba(99,102,241,.06), rgba(139,92,246,.03));
}
[data-theme="light"] .vx-panel-profile-head .name { color: #0F172A; }
[data-theme="light"] .vx-panel-profile-head .mail { color: #64748B; }

/* ── Sidebar (tenant) ── */
[data-theme="light"] .vx-sidebar {
    background:
        radial-gradient(1200px 600px at -20% -10%, rgba(99,102,241,.04), transparent 60%),
        linear-gradient(180deg, #FFFFFF 0%, #F8F9FE 100%);
    color: #475569;
    border-right-color: #E2E5F0;
}
[data-theme="light"] .vx-sidebar .vx-brand { color: #0F172A; border-bottom-color: #E2E5F0; }
[data-theme="light"] .vx-sidebar .vx-section-label { color: #94A3B8; }
[data-theme="light"] .vx-sidebar .vx-item { color: #475569; }
[data-theme="light"] .vx-sidebar .vx-item > i:first-child { color: #94A3B8; }
[data-theme="light"] .vx-sidebar .vx-item:hover { background: rgba(99,102,241,.06); color: #0F172A; }
[data-theme="light"] .vx-sidebar .vx-item:hover > i:first-child { color: #6366F1; }
[data-theme="light"] .vx-sidebar .vx-item.active {
    background: linear-gradient(135deg, rgba(99,102,241,.10), rgba(139,92,246,.06));
    color: #4F46E5;
    box-shadow: inset 0 0 0 1px rgba(99,102,241,.15), 0 2px 8px rgba(99,102,241,.06);
}
[data-theme="light"] .vx-sidebar .vx-item.active > i:first-child { color: #6366F1; }
[data-theme="light"] .vx-sidebar .vx-item.active::before { box-shadow: 0 0 10px rgba(99,102,241,.3); }
[data-theme="light"] .vx-sidebar .vx-group.open > .vx-group-head { color: #0F172A; }
[data-theme="light"] .vx-sidebar .vx-sidebar-search {
    background: rgba(0,0,0,.02); border-color: #E2E5F0;
}
[data-theme="light"] .vx-sidebar .vx-sidebar-search:focus-within { background: rgba(99,102,241,.04); border-color: rgba(99,102,241,.4); }
[data-theme="light"] .vx-sidebar .vx-sidebar-search i { color: #94A3B8; }
[data-theme="light"] .vx-sidebar .vx-sidebar-search input { color: #0F172A; }
[data-theme="light"] .vx-sidebar .vx-sidebar-search input::placeholder { color: #94A3B8; }
[data-theme="light"] .vx-sidebar .vx-sidebar-search kbd { background: rgba(0,0,0,.04); border-color: #E2E5F0; color: #64748B; }
[data-theme="light"] .vx-sidebar::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.08); }
[data-theme="light"] .vx-sidebar::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.15); }

/* ── Cards ── */
[data-theme="light"] .vx-card {
    background: #FFFFFF; border-color: #E2E5F0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
[data-theme="light"] .vx-card-header {
    background: linear-gradient(135deg, rgba(99,102,241,.04), rgba(139,92,246,.02));
    border-bottom-color: #E2E5F0; color: #0F172A;
}
[data-theme="light"] .vx-stat {
    background: linear-gradient(135deg, #FFFFFF, #F8F9FE);
    border-color: #E2E5F0;
}
[data-theme="light"] .vx-stat:before {
    background: radial-gradient(circle, rgba(99,102,241,.08), transparent 70%);
}

/* ── Forms ── */
[data-theme="light"] .form-control,
[data-theme="light"] .form-select,
[data-theme="light"] textarea.form-control {
    background: #FFFFFF; border-color: #D1D5E4; color: #0F172A;
}
[data-theme="light"] .form-control:focus,
[data-theme="light"] .form-select:focus {
    background: #FFFFFF; border-color: var(--vx-primary); color: #0F172A;
}
[data-theme="light"] .form-control::placeholder { color: #94A3B8; }

/* ── Alerts ── */
[data-theme="light"] .vx-alert.success { background: rgba(16,185,129,.08); border-color: rgba(16,185,129,.2); color: #059669; }
[data-theme="light"] .vx-alert.error   { background: rgba(239,68,68,.06);  border-color: rgba(239,68,68,.2);  color: #DC2626; }
[data-theme="light"] .vx-alert.warning { background: rgba(245,158,11,.06); border-color: rgba(245,158,11,.2); color: #D97706; }
[data-theme="light"] .vx-alert.info    { background: rgba(14,165,233,.06); border-color: rgba(14,165,233,.2); color: #0284C7; }

/* ── Tables ── */
[data-theme="light"] .table { color: #0F172A; }
[data-theme="light"] .table thead th { color: #64748B; border-bottom-color: #E2E5F0; }
[data-theme="light"] .table tbody td { color: #0F172A; border-bottom-color: #F1F3F8; }
[data-theme="light"] .table tbody tr:hover { background: rgba(99,102,241,.03); }
[data-theme="light"] .table a { color: #4F46E5; }
[data-theme="light"] .table a:hover { color: #4338CA; }

/* ── Buttons ── */
[data-theme="light"] .btn-vx-soft { background: rgba(99,102,241,.08); color: #4F46E5; }
[data-theme="light"] .btn-vx-soft:hover { background: rgba(99,102,241,.15); color: #4338CA; }
[data-theme="light"] .btn-outline-light { border-color: #D1D5E4; color: #475569; }
[data-theme="light"] .btn-outline-light:hover { background: #F1F3F8; color: #0F172A; border-color: #C1C5D4; }

/* ── Notification items ── */
[data-theme="light"] .vx-notif-card.unread,
[data-theme="light"] .vx-dd-notif-item.unread,
[data-theme="light"] .vx-adm-notif-item.unread { background: rgba(99,102,241,.04); }
[data-theme="light"] .vx-dd-notif-item:hover,
[data-theme="light"] .vx-adm-notif-item:hover { background: rgba(0,0,0,.02); }
[data-theme="light"] .vx-dd-ni-title,
[data-theme="light"] .vx-adm-ni-title { color: #0F172A; }
[data-theme="light"] .vx-notif-panel-head { border-bottom-color: #E2E5F0; }
[data-theme="light"] .vx-notif-panel-head strong { color: #0F172A; }
[data-theme="light"] .vx-notif-panel-footer { border-top-color: #E2E5F0; }
[data-theme="light"] .vx-notif-panel-footer a { color: #4F46E5; }

/* ── Filter chips (notification center) ── */
[data-theme="light"] .vx-filter-chip { color: #475569; border-color: #D1D5E4; background: #FFFFFF; }
[data-theme="light"] .vx-filter-chip:hover { background: rgba(99,102,241,.05); border-color: rgba(99,102,241,.3); color: #4F46E5; }
[data-theme="light"] .vx-filter-chip.active { background: rgba(99,102,241,.08); border-color: #6366F1; color: #4F46E5; }

/* ── Mobile menu ── */
@media (max-width: 900px) {
    [data-theme="light"] .vx-topnav-menu {
        background: linear-gradient(180deg, #FFFFFF 0%, #F8F9FE 100%);
        border-bottom-color: #E2E5F0;
        box-shadow: 0 12px 40px rgba(0,0,0,0.08);
    }
    [data-theme="light"] .vx-topnav-menu .vx-nav-panel {
        background: rgba(99,102,241,.02);
        border-left-color: rgba(99,102,241,.2);
    }
    [data-theme="light"] .vx-nav-panel-notif,
    [data-theme="light"] .vx-nav-panel-profile {
        background: #FFFFFF !important;
        box-shadow: 0 -10px 40px rgba(0,0,0,.1) !important;
    }
}

/* ── Bootstrap utility overrides for light ── */
[data-theme="light"] .container-fluid h4.text-white,
[data-theme="light"] .vx-main-h h4.text-white,
[data-theme="light"] .vx-content .text-white:not(.btn):not(.badge):not(.vx-topnav-avatar) { color: #0F172A !important; }
[data-theme="light"] h1, [data-theme="light"] h2, [data-theme="light"] h3,
[data-theme="light"] h4, [data-theme="light"] h5, [data-theme="light"] h6 { color: #0F172A; }
[data-theme="light"] .badge.bg-opacity-10 { opacity: 1; }
[data-theme="light"] .card { background: #FFFFFF; border-color: #E2E5F0; }
[data-theme="light"] .modal-content { background: #FFFFFF; border-color: #E2E5F0; color: #0F172A; }
[data-theme="light"] .list-group-item { background: #FFFFFF; border-color: #E2E5F0; color: #0F172A; }
[data-theme="light"] .dropdown-menu { background: #FFFFFF; border-color: #E2E5F0; }
[data-theme="light"] .dropdown-item { color: #475569; }
[data-theme="light"] .dropdown-item:hover { background: rgba(99,102,241,.06); color: #0F172A; }

/* ── Theme toggle button ── */
.vx-theme-toggle {
    position: relative;
    width: 38px; height: 38px;
    border: 1px solid rgba(255,255,255,0.07);
    background: rgba(255,255,255,0.04);
    border-radius: 10px;
    color: #B7C0E4;
    font-size: 1rem;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: .2s;
}
.vx-theme-toggle:hover {
    background: rgba(99,102,241,.12);
    border-color: rgba(99,102,241,.3);
    color: #FCD34D;
}
.vx-theme-toggle .bi-sun-fill { display: none; }
.vx-theme-toggle .bi-moon-stars-fill { display: inline; }
[data-theme="light"] .vx-theme-toggle {
    border-color: #E2E5F0; background: rgba(0,0,0,.02); color: #64748B;
}
[data-theme="light"] .vx-theme-toggle:hover { background: rgba(99,102,241,.08); color: #6366F1; }
[data-theme="light"] .vx-theme-toggle .bi-sun-fill { display: inline; }
[data-theme="light"] .vx-theme-toggle .bi-moon-stars-fill { display: none; }

/* =====================================================================
   Theme visibility guardrails
   ===================================================================== */
[data-theme="light"] .vx-content .bg-dark,
[data-theme="light"] .vx-card .bg-dark,
[data-theme="light"] .modal-content.bg-dark,
[data-theme="light"] .input-group-text.bg-dark,
[data-theme="light"] .page-link.bg-dark {
    background-color: #FFFFFF !important;
    color: #0F172A !important;
    border-color: #D1D5E4 !important;
}

[data-theme="light"] .vx-content .text-light:not(.btn):not(.badge),
[data-theme="light"] .modal-content .text-light:not(.btn):not(.badge),
[data-theme="light"] .page-link.text-light,
[data-theme="light"] .form-control.text-light,
[data-theme="light"] .form-select.text-light {
    color: #0F172A !important;
}

[data-theme="light"] .vx-content .border-secondary,
[data-theme="light"] .modal-content .border-secondary,
[data-theme="light"] .page-link.border-secondary {
    border-color: #D1D5E4 !important;
}

[data-theme="light"] .form-control.bg-dark,
[data-theme="light"] .form-select.bg-dark,
[data-theme="light"] textarea.form-control.bg-dark {
    background: #FFFFFF !important;
    border-color: #D1D5E4 !important;
    color: #0F172A !important;
}

[data-theme="light"] .input-group-text {
    background: #F8FAFC !important;
    border-color: #D1D5E4 !important;
    color: #64748B !important;
}

[data-theme="light"] .table-dark {
    --bs-table-color: #0F172A;
    --bs-table-bg: #FFFFFF;
    --bs-table-border-color: #E2E5F0;
    --bs-table-striped-bg: #F8FAFC;
    --bs-table-striped-color: #0F172A;
    --bs-table-active-bg: #EEF2FF;
    --bs-table-active-color: #0F172A;
    --bs-table-hover-bg: #F1F5F9;
    --bs-table-hover-color: #0F172A;
    color: #0F172A;
    border-color: #E2E5F0;
}

[data-theme="light"] .table-dark > :not(caption) > * > * {
    background-color: var(--bs-table-bg);
    border-color: var(--bs-table-border-color);
    color: #0F172A;
}

[data-theme="light"] .table-dark thead th {
    background: #F8FAFC;
    color: #475569 !important;
    border-bottom-color: #CBD5E1;
}

[data-theme="light"] .table-dark tbody tr:hover > * {
    background: #F1F5F9;
    color: #0F172A;
}

.table tr.table-danger > *,
.table.table-dark tr.table-danger > *,
[data-theme="light"] .table tr.table-danger > *,
[data-theme="light"] .table.table-dark tr.table-danger > * {
    --bs-table-bg: #F8D7DA;
    --bs-table-color: #111827;
    --bs-table-border-color: #E7B8BE;
    background-color: #F8D7DA !important;
    border-color: #E7B8BE !important;
    color: #111827 !important;
}

.table tr.table-danger .text-muted-soft,
.table.table-dark tr.table-danger .text-muted-soft,
[data-theme="light"] .table tr.table-danger .text-muted-soft,
[data-theme="light"] .table.table-dark tr.table-danger .text-muted-soft {
    color: #374151 !important;
}

[data-theme="light"] .modal-header,
[data-theme="light"] .modal-footer {
    border-color: #E2E5F0 !important;
}

[data-theme="light"] .pagination .page-link:not(.active) {
    background: #FFFFFF !important;
    border-color: #D1D5E4 !important;
    color: #334155 !important;
}

[data-theme="light"] .pagination .page-item.active .page-link {
    color: #FFFFFF !important;
}
