:root {
    --bg: #070b16;
    --bg-soft: #0d1324;
    --panel: rgba(15, 23, 42, 0.88);
    --panel-strong: #111827;
    --border: rgba(148, 163, 184, 0.18);
    --text: #e5e7eb;
    --muted: #94a3b8;
    --muted-2: #64748b;
    --primary: #3b82f6;
    --primary-2: #8b5cf6;
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #06b6d4;
    --radius: 18px;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.18), transparent 32%),
        radial-gradient(circle at top right, rgba(139, 92, 246, 0.18), transparent 35%),
        var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

.omx-login {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.omx-login-card {
    width: 100%;
    max-width: 430px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--shadow);
    padding: 28px;
    backdrop-filter: blur(18px);
}

.omx-login-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 26px;
}

.omx-logo {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #fff;
    font-weight: 900;
    box-shadow: 0 14px 35px rgba(59, 130, 246, 0.25);
}

.omx-login-title {
    margin: 0;
    font-size: 22px;
    line-height: 1.2;
}

.omx-login-subtitle {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.omx-field {
    margin-bottom: 16px;
}

.omx-label {
    display: block;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 8px;
}

.omx-input,
.omx-select,
.omx-textarea {
    width: 100%;
    border: 1px solid var(--border);
    background: rgba(15, 23, 42, 0.92);
    color: var(--text);
    border-radius: 14px;
    padding: 12px 14px;
    outline: none;
    font-size: 14px;
}

.omx-input:focus,
.omx-select:focus,
.omx-textarea:focus {
    border-color: rgba(59, 130, 246, 0.65);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

.omx-btn {
    border: 0;
    cursor: pointer;
    border-radius: 14px;
    padding: 11px 14px;
    font-weight: 700;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.15s ease, opacity 0.15s ease, border-color 0.15s ease;
}

.omx-btn:hover {
    transform: translateY(-1px);
}

.omx-btn-primary {
    width: 100%;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    box-shadow: 0 16px 35px rgba(59, 130, 246, 0.24);
}

.omx-btn-ghost {
    color: var(--text);
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border);
}

.omx-btn-small {
    padding: 8px 10px;
    font-size: 12px;
    border-radius: 10px;
}

.omx-alert {
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 14px;
    margin-bottom: 16px;
    border: 1px solid var(--border);
}

.omx-alert-error {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.28);
    color: #fecaca;
}

.omx-alert-success {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.28);
    color: #bbf7d0;
}

.omx-app {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    min-height: 100vh;
}

.omx-sidebar {
    border-right: 1px solid var(--border);
    background: rgba(2, 6, 23, 0.72);
    backdrop-filter: blur(18px);
    padding: 22px;
    position: sticky;
    top: 0;
    height: 100vh;
}

.omx-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
}

.omx-brand h1 {
    margin: 0;
    font-size: 18px;
}

.omx-brand p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.omx-nav {
    display: grid;
    gap: 8px;
}

.omx-nav a {
    padding: 11px 12px;
    border-radius: 14px;
    color: var(--muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid transparent;
}

.omx-nav a:hover,
.omx-nav a.active {
    color: var(--text);
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.2);
}

.omx-sidebar-footer {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 22px;
    color: var(--muted);
    font-size: 12px;
}

.omx-main {
    min-width: 0;
    padding: 24px;
}

.omx-topbar {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-bottom: 22px;
}

.omx-page-title {
    margin: 0;
    font-size: 26px;
}

.omx-page-subtitle {
    color: var(--muted);
    margin: 6px 0 0;
}

.omx-user-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 8px 12px;
    color: var(--muted);
    font-size: 13px;
}

.omx-grid {
    display: grid;
    gap: 16px;
}

.omx-grid-kpis {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 18px;
}

.omx-grid-2 {
    grid-template-columns: 1.2fr 0.8fr;
}

.omx-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.18);
    overflow: hidden;
}

.omx-card-hd {
    padding: 16px 18px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.omx-card-title {
    margin: 0;
    font-size: 15px;
}

.omx-card-subtitle {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.omx-card-bd {
    padding: 18px;
}

.omx-kpi {
    padding: 18px;
}

.omx-kpi-label {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 10px;
}

.omx-kpi-value {
    font-size: 30px;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.omx-kpi-foot {
    margin-top: 8px;
    color: var(--muted-2);
    font-size: 12px;
}

.omx-table-wrap {
    overflow-x: auto;
}

.omx-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.omx-table th,
.omx-table td {
    padding: 13px 14px;
    text-align: left;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    vertical-align: top;
}

.omx-table th {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.omx-table tr:hover td {
    background: rgba(59, 130, 246, 0.045);
}

.omx-muted {
    color: var(--muted);
}

.omx-small {
    font-size: 12px;
}

.omx-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid var(--border);
}

.omx-badge-new {
    color: #bfdbfe;
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.25);
}

.omx-badge-contacted {
    color: #fde68a;
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.25);
}

.omx-badge-closed {
    color: #bbf7d0;
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.25);
}

.omx-badge-discarded {
    color: #fecaca;
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.25);
}

.omx-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.omx-form-inline {
    display: flex;
    gap: 8px;
    align-items: center;
}

.omx-empty {
    padding: 28px;
    color: var(--muted);
    text-align: center;
}

.omx-list {
    display: grid;
    gap: 12px;
}

.omx-list-item {
    padding: 13px;
    border: 1px solid rgba(148, 163, 184, 0.13);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.38);
}

.omx-list-title {
    font-weight: 800;
    margin-bottom: 4px;
}

.omx-list-desc {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.omx-mobile-nav {
    display: none;
}

@media (max-width: 1050px) {
    .omx-grid-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .omx-grid-2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .omx-app {
        grid-template-columns: 1fr;
    }

    .omx-sidebar {
        display: none;
    }

    .omx-mobile-nav {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding-bottom: 12px;
        margin-bottom: 12px;
    }

    .omx-mobile-nav a {
        white-space: nowrap;
        padding: 9px 12px;
        border-radius: 999px;
        border: 1px solid var(--border);
        color: var(--muted);
    }

    .omx-mobile-nav a.active {
        color: var(--text);
        background: rgba(59, 130, 246, 0.12);
    }

    .omx-main {
        padding: 16px;
    }

    .omx-topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .omx-grid-kpis {
        grid-template-columns: 1fr;
    }
}

.omx-detail-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 16px;
}

.omx-meta-list {
    display: grid;
    gap: 12px;
}

.omx-meta-item {
    padding: 12px;
    border: 1px solid rgba(148, 163, 184, 0.13);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.38);
}

.omx-meta-label {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 4px;
}

.omx-meta-value {
    font-weight: 700;
    word-break: break-word;
}

.omx-chat-detail {
    display: grid;
    gap: 14px;
    max-height: 680px;
    overflow-y: auto;
    padding-right: 4px;
}

.omx-chat-row {
    display: flex;
}

.omx-chat-row--user {
    justify-content: flex-end;
}

.omx-chat-row--assistant,
.omx-chat-row--system {
    justify-content: flex-start;
}

.omx-chat-bubble {
    max-width: 78%;
    border-radius: 18px;
    padding: 13px 14px;
    border: 1px solid var(--border);
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
}

.omx-chat-row--assistant .omx-chat-bubble {
    background: rgba(15, 23, 42, 0.72);
    color: var(--text);
}

.omx-chat-row--system .omx-chat-bubble {
    background: rgba(245, 158, 11, 0.12);
    color: #fde68a;
    border-color: rgba(245, 158, 11, 0.25);
}

.omx-chat-time {
    display: block;
    margin-top: 8px;
    font-size: 11px;
    opacity: 0.72;
}

.omx-chat-role {
    display: block;
    margin-bottom: 6px;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.75;
}

@media (max-width: 980px) {
    .omx-detail-grid {
        grid-template-columns: 1fr;
    }

    .omx-chat-bubble {
        max-width: 92%;
    }
}

/* =========================================================
   Omnix CRUD / Tables
   Base visual inspirada en RutaControl
   ========================================================= */

.omx-crud-card {
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.18);
}

.omx-crud-toolbar {
    display: grid;
    grid-template-columns: minmax(360px, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(2, 6, 23, 0.26);
}

.omx-crud-toolbar__left,
.omx-crud-toolbar__right {
    display: flex;
    gap: 8px;
    align-items: center;
}

.omx-crud-toolbar__left {
    min-width: 0;
}

.omx-crud-toolbar__right {
    justify-content: flex-end;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.omx-crud-search {
    min-width: 320px;
    width: 100%;
    height: 42px;
}

.omx-crud-select {
    width: 150px;
    min-width: 150px;
    height: 42px;
}

.omx-crud-select--small {
    width: 78px;
    min-width: 78px;
    height: 42px;
}

.omx-crud-toolbar .omx-crud-btn {
    height: 38px;
    min-height: 38px;
}

.omx-crud-table-wrap {
    padding: 0 14px 0;
    overflow-x: auto;
}

.omx-crud-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.omx-crud-table thead th {
    padding: 10px 12px;
    color: #dbeafe;
    font-size: 11px;
    font-weight: 900;
    text-align: left;
    letter-spacing: -0.01em;
    background: rgba(30, 41, 59, 0.68);
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.omx-crud-table tbody td {
    padding: 10px 12px;
    height: 48px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    vertical-align: middle;
}

.omx-crud-table tbody tr:hover td {
    background: rgba(59, 130, 246, 0.07);
}

.omx-crud-table tbody tr.is-highlight td {
    background: rgba(59, 130, 246, 0.09);
}

.omx-crud-primary {
    font-weight: 900;
    color: #f8fafc;
    line-height: 1.15;
}

.omx-crud-secondary {
    display: block;
    margin-top: 3px;
    color: #bfdbfe;
    font-size: 11px;
    line-height: 1.25;
}

.omx-crud-muted {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.4;
}

.omx-crud-actions {
    display: flex;
    gap: 7px;
    align-items: center;
    flex-wrap: wrap;
}

.omx-crud-btn {
    min-height: 31px;
    padding: 7px 10px;
    border-radius: 9px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(15, 23, 42, 0.56);
    color: #f8fafc;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.omx-crud-btn:hover {
    border-color: rgba(59, 130, 246, 0.55);
    background: rgba(59, 130, 246, 0.14);
}

.omx-crud-btn--primary {
    border-color: rgba(59, 130, 246, 0.55);
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #fff;
}

.omx-crud-btn--soft {
    color: #bfdbfe;
}

.omx-crud-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 12px 14px;
    margin: 10px 14px 14px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 14px;
    background: rgba(30, 41, 59, 0.42);
}

.omx-crud-total {
    color: #bfdbfe;
    font-size: 13px;
}

.omx-pagination {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.omx-page-link {
    min-width: 36px;
    min-height: 31px;
    padding: 7px 10px;
    border-radius: 9px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(15, 23, 42, 0.58);
    color: #f8fafc;
    font-size: 12px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.omx-page-link:hover {
    border-color: rgba(59, 130, 246, 0.55);
    background: rgba(59, 130, 246, 0.14);
}

.omx-page-link.is-active {
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    border-color: transparent;
    color: #fff;
}

.omx-page-link.is-disabled {
    opacity: 0.45;
    pointer-events: none;
    background: rgba(241, 245, 249, 0.08);
}

.omx-crud-empty {
    padding: 34px 18px;
    text-align: center;
    color: var(--muted);
}

.omx-inline-form {
    display: inline-flex;
    gap: 7px;
    align-items: center;
    flex-wrap: nowrap;
}

.omx-inline-form .omx-select {
    width: 135px;
    min-width: 135px;
    padding: 8px 10px;
    border-radius: 9px;
    font-size: 12px;
}

@media (max-width: 1100px) {
    .omx-crud-toolbar {
        grid-template-columns: 1fr;
    }

    .omx-crud-toolbar__right {
        justify-content: flex-start;
        flex-wrap: wrap;
        white-space: normal;
    }

    .omx-crud-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .omx-pagination {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .omx-crud-toolbar__left,
    .omx-crud-toolbar__right {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .omx-crud-search,
    .omx-crud-select,
    .omx-crud-select--small,
    .omx-crud-btn {
        width: 100%;
    }
}

/* =========================================================
   Flash messages
   ========================================================= */

.omx-flash {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.omx-flash.is-hiding {
    opacity: 0;
    transform: translateY(-6px);
}

.omx-flash-close {
    width: 26px;
    height: 26px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.45);
    color: inherit;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    display: grid;
    place-items: center;
}

.omx-flash-close:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* =========================================================
   Base modo claro admin
   ========================================================= */

html[data-admin-theme="light"] {
    --bg: #f4f7fb;
    --bg-soft: #eef2f7;
    --panel: rgba(255, 255, 255, 0.92);
    --panel-strong: #ffffff;
    --border: rgba(15, 23, 42, 0.14);
    --text: #0f172a;
    --muted: #475569;
    --muted-2: #64748b;
}

html[data-admin-theme="light"] body {
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.10), transparent 32%),
        radial-gradient(circle at top right, rgba(139, 92, 246, 0.10), transparent 35%),
        var(--bg);
    color: var(--text);
}

html[data-admin-theme="light"] .omx-sidebar {
    background: rgba(255, 255, 255, 0.78);
}

html[data-admin-theme="light"] .omx-crud-card,
html[data-admin-theme="light"] .omx-card,
html[data-admin-theme="light"] .omx-login-card {
    background: rgba(255, 255, 255, 0.86);
}

html[data-admin-theme="light"] .omx-input,
html[data-admin-theme="light"] .omx-select,
html[data-admin-theme="light"] .omx-textarea {
    background: rgba(255, 255, 255, 0.95);
    color: #0f172a;
}

html[data-admin-theme="light"] .omx-crud-table thead th {
    background: rgba(226, 232, 240, 0.85);
    color: #1e3a8a;
}

html[data-admin-theme="light"] .omx-crud-primary {
    color: #0f172a;
}

html[data-admin-theme="light"] .omx-crud-secondary {
    color: #2563eb;
}

html[data-admin-theme="light"] .omx-crud-muted {
    color: #475569;
}

html[data-admin-theme="light"] .omx-crud-btn,
html[data-admin-theme="light"] .omx-page-link,
html[data-admin-theme="light"] .omx-flash-close {
    background: rgba(255, 255, 255, 0.82);
    color: #0f172a;
}

/* =========================================================
   CSS - Adicional CRUDS Edits
   ========================================================= */

.omx-nowrap {
    white-space: nowrap;
}

.omx-form-shell-narrow {
    width: min(100%, 760px);
}


/* =========================================================
   CSS - Show de Conversations
   ========================================================= */

.omx-form-back {
    margin-bottom: 16px;
}

.omx-meta-list--compact {
    gap: 10px;
}

.omx-meta-list--compact .omx-meta-item {
    padding: 11px 12px;
}

.omx-meta-link-btn {
    width: fit-content;
    margin-top: 4px;
}

.omx-meta-section {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.omx-meta-section__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.omx-meta-section__head h3 {
    margin: 0;
    font-size: 14px;
}


@media (max-width: 980px) {
    .omx-chat-detail--admin .omx-chat-bubble,
    .omx-chat-row--user .omx-chat-bubble {
        max-width: 92%;
    }
}

/* =========================================================
   Conversation detail - compact chat bubbles
   ========================================================= */



.omx-chat-detail--admin .omx-chat-row {
    display: flex;
    width: 100%;
}

.omx-chat-detail--admin .omx-chat-row--user {
    justify-content: flex-end;
}

.omx-chat-detail--admin .omx-chat-row--assistant,
.omx-chat-detail--admin .omx-chat-row--system {
    justify-content: flex-start;
}


.omx-chat-detail--admin .omx-chat-row--user .omx-chat-bubble {
    max-width: 58%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.94), rgba(139, 92, 246, 0.92));
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.14);
}

.omx-chat-detail--admin .omx-chat-row--assistant .omx-chat-bubble {
    max-width: 72%;
    background: rgba(15, 23, 42, 0.72);
}


@media (max-width: 980px) {
    .omx-chat-detail--admin .omx-chat-bubble,
    .omx-chat-detail--admin .omx-chat-row--user .omx-chat-bubble,
    .omx-chat-detail--admin .omx-chat-row--assistant .omx-chat-bubble {
        max-width: 92%;
    }
}


/* =========================================================
   Conversation detail - compact admin chat
   ========================================================= */


.omx-chat-detail--admin .omx-chat-row {
    display: flex;
    width: 100%;
    align-items: flex-start;
}

.omx-chat-detail--admin .omx-chat-row--user {
    justify-content: flex-end;
}

.omx-chat-detail--admin .omx-chat-row--assistant,
.omx-chat-detail--admin .omx-chat-row--system {
    justify-content: flex-start;
}



.omx-chat-detail--admin .omx-chat-row--user .omx-chat-bubble {
    max-width: 58%;
    align-items: flex-start;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.94), rgba(139, 92, 246, 0.92));
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.14);
}

.omx-chat-detail--admin .omx-chat-row--assistant .omx-chat-bubble {
    max-width: 72%;
    background: rgba(15, 23, 42, 0.72);
}


@media (max-width: 980px) {
    .omx-chat-detail--admin .omx-chat-bubble,
    .omx-chat-detail--admin .omx-chat-row--user .omx-chat-bubble,
    .omx-chat-detail--admin .omx-chat-row--assistant .omx-chat-bubble {
        max-width: 92%;
    }
}

.omx-chat-detail--admin {
    max-height: 680px;
    overflow-y: auto;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.omx-chat-detail--admin .omx-chat-bubble {
    width: auto !important;
    min-width: 0 !important;
    max-width: 68%;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 10px 14px !important;
    border-radius: 18px;
    display: inline-flex !important;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start !important;
    gap: 4px !important;
    line-height: 1.42;
    white-space: normal;
    word-break: break-word;
    align-self: flex-start;
}

.omx-chat-detail--admin .omx-chat-role {
    display: block;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 10.5px;
    font-weight: 900;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.72;
}

.omx-chat-detail--admin .omx-chat-time {
    display: block;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 10.5px;
    line-height: 1.1;
    opacity: 0.72;
}

.omx-chat-detail--admin .omx-chat-message-text {
    margin: 0;
    padding: 0;
    white-space: pre-wrap;
    word-break: break-word;
    line-height: 1.42;
}

.omx-crud-actions--nowrap {
    flex-wrap: nowrap;
}

.omx-crud-actions--nowrap .omx-inline-form {
    flex-wrap: nowrap;
}

/* =========================================================
   Configuracion - Admin del Cliente
   ========================================================= */

.omx-color-field {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
}

.omx-color-picker {
    width: 52px;
    height: 44px;
    padding: 4px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(15, 23, 42, 0.92);
    cursor: pointer;
}

.omx-settings-inline-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

@media (max-width: 900px) {
    .omx-settings-inline-grid {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   Omnix Dashboard 2.0 - Ventana para la venta
   ========================================================= */

.omx-dash2 {
    display: grid;
    gap: 18px;
}

.omx-dash2-hero {
    position: relative;
    overflow: hidden;
    min-height: 138px;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 18px;
    padding: 22px;
    border: 1px solid rgba(96, 165, 250, 0.22);
    border-radius: 24px;
    background:
        radial-gradient(circle at 18% 0%, rgba(59, 130, 246, 0.28), transparent 32%),
        radial-gradient(circle at 88% 12%, rgba(139, 92, 246, 0.22), transparent 34%),
        linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.88));
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.26);
}

.omx-dash2-hero::after {
    content: "";
    position: absolute;
    inset: auto -120px -170px auto;
    width: 360px;
    height: 360px;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.16);
    filter: blur(8px);
    pointer-events: none;
}

.omx-dash2-hero__content,
.omx-dash2-hero__side {
    position: relative;
    z-index: 1;
}

.omx-dash2-eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 10px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(96, 165, 250, 0.28);
    background: rgba(59, 130, 246, 0.12);
    color: #bfdbfe;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.omx-dash2-hero h1 {
    margin: 0;
    font-size: clamp(28px, 3.2vw, 42px);
    line-height: 1;
    letter-spacing: -0.055em;
    color: #f8fafc;
}

.omx-dash2-hero p {
    max-width: 680px;
    margin: 11px 0 0;
    color: #bfdbfe;
    font-size: 15px;
    line-height: 1.5;
}

.omx-dash2-hero__side {
    width: min(100%, 430px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
}

.omx-dash2-client-filter {
    padding: 12px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 18px;
    background: rgba(2, 6, 23, 0.28);
}

.omx-dash2-client-filter label {
    display: block;
    margin-bottom: 8px;
    color: #93c5fd;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.omx-dash2-client-filter__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.omx-dash2-range {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.omx-dash2-range span {
    min-height: 36px;
    padding: 9px 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 12px;
    background: rgba(2, 6, 23, 0.34);
    color: #cbd5e1;
    font-size: 12px;
    font-weight: 900;
}

.omx-dash2-range span.is-active {
    border-color: rgba(59, 130, 246, 0.5);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.95), rgba(139, 92, 246, 0.85));
    color: #ffffff;
}

.omx-dash2-kpi-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.omx-dash2-kpi-card {
    min-height: 126px;
    padding: 16px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 20px;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.72)),
        radial-gradient(circle at top right, rgba(148, 163, 184, 0.12), transparent 38%);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.20);
}

.omx-dash2-kpi-card__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.omx-dash2-kpi-card__top span {
    color: #94a3b8;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.omx-dash2-kpi-card__top i {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: rgba(148, 163, 184, 0.10);
    font-style: normal;
}

.omx-dash2-kpi-card strong {
    display: block;
    color: #f8fafc;
    font-size: clamp(28px, 3vw, 38px);
    line-height: 1;
    letter-spacing: -0.055em;
}

.omx-dash2-kpi-card small {
    display: block;
    margin-top: 10px;
    color: #94a3b8;
    font-size: 12px;
}

.omx-dash2-kpi-card.is-primary strong {
    color: #93c5fd;
}

.omx-dash2-kpi-card.is-success strong {
    color: #86efac;
}

.omx-dash2-kpi-card.is-info strong {
    color: #67e8f9;
}

.omx-dash2-main-grid,
.omx-dash2-insight-grid,
.omx-dash2-recent-grid {
    display: grid;
    gap: 18px;
}

.omx-dash2-main-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.65fr);
}

.omx-dash2-insight-grid {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.86fr);
}

.omx-dash2-recent-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

.omx-dash2-panel {
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.72)),
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.10), transparent 36%);
    box-shadow: 0 18px 52px rgba(0, 0, 0, 0.18);
}

.omx-dash2-panel__head {
    min-height: 68px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.13);
}

.omx-dash2-panel__head h2 {
    margin: 0;
    color: #f8fafc;
    font-size: 15px;
    line-height: 1.15;
}

.omx-dash2-panel__head p {
    margin: 5px 0 0;
    color: #94a3b8;
    font-size: 12px;
}

.omx-dash2-panel--activity,
.omx-dash2-panel--funnel,
.omx-dash2-panel--topics,
.omx-dash2-panel--smart {
    min-height: 350px;
}

.omx-dash2-activity {
    height: 220px;
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 12px;
    padding: 22px 18px 8px;
    align-items: end;
}

.omx-dash2-activity__day {
    height: 100%;
    min-width: 0;
    display: grid;
    grid-template-rows: 24px 1fr 22px;
    gap: 7px;
}

.omx-dash2-activity__numbers {
    display: flex;
    justify-content: center;
    gap: 7px;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 900;
}

.omx-dash2-activity__numbers span:first-child {
    color: #93c5fd;
}

.omx-dash2-activity__numbers span:last-child {
    color: #86efac;
}

.omx-dash2-activity__bars {
    display: flex;
    justify-content: center;
    align-items: end;
    gap: 5px;
    min-height: 140px;
    padding: 10px 5px 0;
    border-radius: 14px;
    background:
        linear-gradient(to top, rgba(148, 163, 184, 0.08) 1px, transparent 1px);
    background-size: 100% 25%;
}

.omx-dash2-activity__bars i {
    width: 15px;
    min-height: 5px;
    display: block;
    border-radius: 999px 999px 4px 4px;
}

.omx-dash2-activity__bars i.is-chat {
    background: linear-gradient(180deg, #60a5fa, rgba(37, 99, 235, 0.72));
    box-shadow: 0 0 18px rgba(59, 130, 246, 0.24);
}

.omx-dash2-activity__bars i.is-lead {
    background: linear-gradient(180deg, #86efac, rgba(22, 163, 74, 0.74));
    box-shadow: 0 0 18px rgba(34, 197, 94, 0.20);
}

.omx-dash2-activity__day strong {
    text-align: center;
    color: #64748b;
    font-size: 11px;
}

.omx-dash2-legend {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    padding: 4px 18px 18px;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 800;
}

.omx-dash2-legend span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.omx-dash2-legend i {
    width: 10px;
    height: 10px;
    border-radius: 999px;
}

.omx-dash2-legend i.is-chat {
    background: #60a5fa;
}

.omx-dash2-legend i.is-lead {
    background: #86efac;
}

.omx-dash2-funnel {
    display: grid;
    gap: 10px;
    padding: 20px 18px 18px;
}

.omx-dash2-funnel__step {
    position: relative;
    overflow: hidden;
    padding: 15px;
    border: 1px solid rgba(96, 165, 250, 0.20);
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(30, 41, 59, 0.88), rgba(15, 23, 42, 0.72)),
        radial-gradient(circle at right, rgba(59, 130, 246, 0.15), transparent 38%);
}

.omx-dash2-funnel__step.is-hot {
    border-color: rgba(34, 197, 94, 0.28);
    background:
        linear-gradient(135deg, rgba(22, 101, 52, 0.34), rgba(15, 23, 42, 0.75)),
        radial-gradient(circle at right, rgba(34, 197, 94, 0.16), transparent 38%);
}

.omx-dash2-funnel__step.is-done {
    border-color: rgba(14, 165, 233, 0.26);
    background:
        linear-gradient(135deg, rgba(12, 74, 110, 0.32), rgba(15, 23, 42, 0.75)),
        radial-gradient(circle at right, rgba(14, 165, 233, 0.14), transparent 38%);
}

.omx-dash2-funnel__step span {
    display: block;
    color: #cbd5e1;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.omx-dash2-funnel__step strong {
    display: block;
    margin-top: 6px;
    color: #f8fafc;
    font-size: 32px;
    line-height: 1;
    letter-spacing: -0.04em;
}

.omx-dash2-funnel__step small {
    display: block;
    margin-top: 6px;
    color: #94a3b8;
    font-size: 12px;
}

.omx-dash2-funnel__connector {
    width: 2px;
    height: 14px;
    margin-left: 26px;
    background: linear-gradient(180deg, rgba(96, 165, 250, 0.65), rgba(34, 197, 94, 0.55));
    border-radius: 999px;
}

.omx-dash2-pill {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 6px;
    padding: 6px 9px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(148, 163, 184, 0.09);
    color: #cbd5e1;
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
}

.omx-dash2-pill.is-primary {
    color: #bfdbfe;
    border-color: rgba(59, 130, 246, 0.28);
    background: rgba(59, 130, 246, 0.12);
}

.omx-dash2-pill.is-success {
    color: #bbf7d0;
    border-color: rgba(34, 197, 94, 0.28);
    background: rgba(34, 197, 94, 0.12);
}

.omx-dash2-pill.is-info {
    color: #a5f3fc;
    border-color: rgba(6, 182, 212, 0.28);
    background: rgba(6, 182, 212, 0.12);
}

.omx-dash2-pill.is-warning {
    color: #fde68a;
    border-color: rgba(245, 158, 11, 0.28);
    background: rgba(245, 158, 11, 0.12);
}

.omx-dash2-pill.is-danger {
    color: #fecaca;
    border-color: rgba(239, 68, 68, 0.28);
    background: rgba(239, 68, 68, 0.12);
}

.omx-dash2-pill.is-muted {
    color: #cbd5e1;
    border-color: rgba(148, 163, 184, 0.20);
    background: rgba(148, 163, 184, 0.10);
}

.omx-dash2-topic-bars {
    display: grid;
    gap: 14px;
    padding: 18px;
}

.omx-dash2-topic-row {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
}

.omx-dash2-topic-row__label {
    min-width: 0;
}

.omx-dash2-topic-row__label strong {
    display: block;
    overflow: hidden;
    color: #f8fafc;
    font-size: 13px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.omx-dash2-topic-row__label span {
    display: block;
    margin-top: 3px;
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
}

.omx-dash2-topic-row__track {
    height: 17px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.12);
}

.omx-dash2-topic-row__track i {
    display: block;
    min-width: 4px;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.72), rgba(96, 165, 250, 0.96));
    box-shadow: 0 0 22px rgba(59, 130, 246, 0.20);
}

.omx-dash2-smart-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding: 18px;
}

.omx-dash2-smart-card {
    min-height: 158px;
    display: grid;
    align-content: start;
    justify-items: start;
    gap: 10px;
    padding: 14px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 18px;
    background: rgba(2, 6, 23, 0.26);
}

.omx-dash2-smart-card > span {
    color: #94a3b8;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.omx-dash2-smart-card > strong {
    color: #f8fafc;
    font-size: 18px;
    line-height: 1.1;
}

.omx-dash2-ring {
    --value: 0;
    width: 66px;
    height: 66px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background:
        radial-gradient(circle closest-side, rgba(15, 23, 42, 0.96) 72%, transparent 73% 100%),
        conic-gradient(#60a5fa calc(var(--value) * 1%), rgba(148, 163, 184, 0.13) 0);
}

.omx-dash2-ring.is-success {
    background:
        radial-gradient(circle closest-side, rgba(15, 23, 42, 0.96) 72%, transparent 73% 100%),
        conic-gradient(#22c55e calc(var(--value) * 1%), rgba(148, 163, 184, 0.13) 0);
}

.omx-dash2-ring span {
    color: #f8fafc;
    font-size: 12px;
    font-weight: 900;
}

.omx-dash2-health-badge {
    width: fit-content;
    padding: 7px 9px;
    border-radius: 999px;
    color: #cbd5e1;
    background: rgba(148, 163, 184, 0.10);
    border: 1px solid rgba(148, 163, 184, 0.18);
    font-size: 11px;
    font-weight: 900;
}

.omx-dash2-smart-card.is-success .omx-dash2-health-badge {
    color: #bbf7d0;
    border-color: rgba(34, 197, 94, 0.26);
    background: rgba(34, 197, 94, 0.12);
}

.omx-dash2-smart-card.is-warning .omx-dash2-health-badge {
    color: #fde68a;
    border-color: rgba(245, 158, 11, 0.26);
    background: rgba(245, 158, 11, 0.12);
}

.omx-dash2-smart-card.is-danger .omx-dash2-health-badge {
    color: #fecaca;
    border-color: rgba(239, 68, 68, 0.26);
    background: rgba(239, 68, 68, 0.12);
}

.omx-dash2-smart-link {
    color: #93c5fd;
    font-size: 12px;
    font-weight: 900;
}

.omx-dash2-smart-link:hover {
    color: #bfdbfe;
}

.omx-dash2-language-mini {
    display: grid;
    gap: 9px;
    padding: 0 18px 18px;
}

.omx-dash2-language-mini div {
    display: grid;
    grid-template-columns: 85px minmax(0, 1fr) 34px;
    gap: 10px;
    align-items: center;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 800;
}

.omx-dash2-language-mini i {
    height: 9px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.12);
}

.omx-dash2-language-mini b {
    display: block;
    height: 100%;
    min-width: 4px;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(6, 182, 212, 0.65), rgba(103, 232, 249, 0.95));
}

.omx-dash2-language-mini strong {
    color: #e5e7eb;
    text-align: right;
}

.omx-dash2-table-wrap {
    overflow-x: auto;
}

.omx-dash2-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.omx-dash2-table th {
    padding: 11px 14px;
    color: #93c5fd;
    background: rgba(30, 41, 59, 0.62);
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
    font-size: 10.5px;
    font-weight: 900;
    letter-spacing: 0.07em;
    text-align: left;
    text-transform: uppercase;
}

.omx-dash2-table td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.11);
    color: #cbd5e1;
    vertical-align: middle;
}

.omx-dash2-table tr:hover td {
    background: rgba(59, 130, 246, 0.045);
}

.omx-dash2-table td strong {
    display: block;
    color: #f8fafc;
    font-size: 12.5px;
    line-height: 1.25;
}

.omx-dash2-table td span {
    display: block;
    margin-top: 3px;
    color: #64748b;
    font-size: 11px;
}

.omx-dash2-link-btn,
.omx-dash2-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(15, 23, 42, 0.58);
    color: #e5e7eb;
    font-weight: 900;
}

.omx-dash2-link-btn {
    min-height: 32px;
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 12px;
    white-space: nowrap;
}

.omx-dash2-icon-btn {
    width: 32px;
    height: 32px;
    border-radius: 999px;
}

.omx-dash2-link-btn:hover,
.omx-dash2-icon-btn:hover {
    border-color: rgba(59, 130, 246, 0.55);
    background: rgba(59, 130, 246, 0.14);
}

.omx-dash2-empty,
.omx-dash2-empty-cell {
    color: #94a3b8;
    text-align: center;
}

.omx-dash2-empty {
    padding: 34px 18px;
    border: 1px dashed rgba(148, 163, 184, 0.18);
    border-radius: 18px;
    background: rgba(2, 6, 23, 0.20);
}

.omx-dash2-empty-cell {
    padding: 28px 14px !important;
}

/* =========================================================
   Omnix Dashboard 2.0 - Light mode support
   ========================================================= */

html[data-admin-theme="light"] .omx-dash2-hero {
    background:
        radial-gradient(circle at 18% 0%, rgba(59, 130, 246, 0.16), transparent 32%),
        radial-gradient(circle at 88% 12%, rgba(139, 92, 246, 0.13), transparent 34%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(239, 246, 255, 0.88));
}

html[data-admin-theme="light"] .omx-dash2-hero h1,
html[data-admin-theme="light"] .omx-dash2-kpi-card strong,
html[data-admin-theme="light"] .omx-dash2-panel__head h2,
html[data-admin-theme="light"] .omx-dash2-topic-row__label strong,
html[data-admin-theme="light"] .omx-dash2-smart-card > strong,
html[data-admin-theme="light"] .omx-dash2-table td strong {
    color: #0f172a;
}

html[data-admin-theme="light"] .omx-dash2-hero p {
    color: #475569;
}

html[data-admin-theme="light"] .omx-dash2-kpi-card,
html[data-admin-theme="light"] .omx-dash2-panel {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.86)),
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.08), transparent 36%);
}

html[data-admin-theme="light"] .omx-dash2-smart-card,
html[data-admin-theme="light"] .omx-dash2-client-filter {
    background: rgba(241, 245, 249, 0.72);
}

html[data-admin-theme="light"] .omx-dash2-table th {
    color: #1d4ed8;
    background: rgba(226, 232, 240, 0.88);
}

html[data-admin-theme="light"] .omx-dash2-table td {
    color: #334155;
}

html[data-admin-theme="light"] .omx-dash2-ring {
    background:
        radial-gradient(circle closest-side, rgba(255, 255, 255, 0.98) 72%, transparent 73% 100%),
        conic-gradient(#2563eb calc(var(--value) * 1%), rgba(148, 163, 184, 0.20) 0);
}

html[data-admin-theme="light"] .omx-dash2-ring.is-success {
    background:
        radial-gradient(circle closest-side, rgba(255, 255, 255, 0.98) 72%, transparent 73% 100%),
        conic-gradient(#16a34a calc(var(--value) * 1%), rgba(148, 163, 184, 0.20) 0);
}

html[data-admin-theme="light"] .omx-dash2-ring span,
html[data-admin-theme="light"] .omx-dash2-language-mini strong {
    color: #0f172a;
}

/* =========================================================
   Omnix Dashboard 2.0 - Responsive
   ========================================================= */

@media (max-width: 1300px) {
    .omx-dash2-kpi-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .omx-dash2-main-grid,
    .omx-dash2-insight-grid,
    .omx-dash2-recent-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 920px) {
    .omx-dash2-hero {
        flex-direction: column;
    }

    .omx-dash2-hero__side {
        width: 100%;
    }

    .omx-dash2-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .omx-dash2-smart-grid {
        grid-template-columns: 1fr;
    }

    .omx-dash2-topic-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .omx-dash2-panel__head {
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .omx-dash2 {
        gap: 14px;
    }

    .omx-dash2-hero {
        padding: 18px;
        border-radius: 20px;
    }

    .omx-dash2-client-filter__row {
        grid-template-columns: 1fr;
    }

    .omx-dash2-range {
        justify-content: flex-start;
    }

    .omx-dash2-range span {
        flex: 1;
    }

    .omx-dash2-kpi-grid {
        grid-template-columns: 1fr;
    }

    .omx-dash2-kpi-card {
        min-height: 112px;
    }

    .omx-dash2-activity {
        overflow-x: auto;
        grid-template-columns: repeat(7, 58px);
        padding-bottom: 12px;
    }

    .omx-dash2-activity__bars i {
        width: 12px;
    }

    .omx-dash2-language-mini div {
        grid-template-columns: 78px minmax(0, 1fr) 30px;
    }
}

/* =========================================================
   Omnix Dashboard 2.0 - Header compacto tipo CRUD
   ========================================================= */

.omx-dash2-hero {
    display: none;
}

.omx-dash2-toolbar-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(96, 165, 250, 0.24);
    border-radius: 22px;
    background:
        radial-gradient(circle at 14% 0%, rgba(59, 130, 246, 0.20), transparent 32%),
        radial-gradient(circle at 86% 10%, rgba(139, 92, 246, 0.17), transparent 34%),
        linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.70));
    box-shadow: 0 18px 52px rgba(0, 0, 0, 0.18);
}

.omx-dash2-toolbar-card__glow {
    position: absolute;
    inset: -120px auto auto 18%;
    width: 360px;
    height: 220px;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.16);
    filter: blur(26px);
    pointer-events: none;
}

.omx-dash2-toolbar-form {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: end;
    padding: 12px;
}

.omx-dash2-toolbar-main {
    display: grid;
    grid-template-columns: minmax(320px, 1fr) auto;
    gap: 10px;
    align-items: end;
    min-width: 0;
}

.omx-dash2-toolbar-field {
    min-width: 0;
}

.omx-dash2-toolbar-field label {
    display: block;
    margin: 0 0 7px;
    color: #93c5fd;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.omx-dash2-toolbar-field .omx-select {
    height: 42px;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.72);
    border-color: rgba(148, 163, 184, 0.22);
}

.omx-dash2-toolbar-static {
    min-height: 42px;
    display: flex;
    align-items: center;
    padding: 10px 14px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.72);
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 800;
}

.omx-dash2-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 0;
    white-space: nowrap;
}

.omx-dash2-toolbar-actions .omx-crud-btn {
    height: 40px;
    min-height: 40px;
}

.omx-dash2-toolbar-range {
    display: flex;
    justify-content: flex-end;
    align-items: end;
    gap: 8px;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.omx-dash2-toolbar-range button {
    height: 40px;
    min-width: 72px;
    padding: 9px 13px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.62);
    color: #e5e7eb;
    cursor: pointer;
    font-size: 12px;
    font-weight: 900;
}

.omx-dash2-toolbar-range button:hover {
    border-color: rgba(59, 130, 246, 0.55);
    background: rgba(59, 130, 246, 0.14);
}

.omx-dash2-toolbar-range button.is-active {
    border-color: rgba(59, 130, 246, 0.50);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.95), rgba(139, 92, 246, 0.88));
    color: #ffffff;
    box-shadow: 0 12px 28px rgba(59, 130, 246, 0.18);
}

/* Modo claro */
html[data-admin-theme="light"] .omx-dash2-toolbar-card {
    background:
        radial-gradient(circle at 14% 0%, rgba(59, 130, 246, 0.13), transparent 32%),
        radial-gradient(circle at 86% 10%, rgba(139, 92, 246, 0.11), transparent 34%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(239, 246, 255, 0.82));
}

html[data-admin-theme="light"] .omx-dash2-toolbar-field .omx-select,
html[data-admin-theme="light"] .omx-dash2-toolbar-static,
html[data-admin-theme="light"] .omx-dash2-toolbar-range button {
    background: rgba(255, 255, 255, 0.82);
    color: #0f172a;
}

/* Responsive */
@media (max-width: 1100px) {
    .omx-dash2-toolbar-form {
        grid-template-columns: 1fr;
    }

    .omx-dash2-toolbar-range {
        justify-content: flex-start;
    }
}

@media (max-width: 720px) {
    .omx-dash2-toolbar-main {
        grid-template-columns: 1fr;
    }

    .omx-dash2-toolbar-actions {
        width: 100%;
    }

    .omx-dash2-toolbar-actions .omx-crud-btn {
        flex: 1;
    }

    .omx-dash2-toolbar-range {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .omx-dash2-toolbar-range button {
        min-width: 0;
        width: 100%;
    }
}
.omx-dash2-kpi-card__text-value {
    max-width: 100%;
    overflow: hidden;
    font-size: clamp(20px, 2vw, 28px) !important;
    line-height: 1.08 !important;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* =========================================================
   Omnix Dashboard 2.0 - Rangos dinámicos
   ========================================================= */

.omx-dash2-activity {
    overflow-x: auto;
}

.omx-dash2-activity__day {
    min-width: 54px;
}

/* =========================================================
   Omnix Dashboard 2.0 - Oportunidades detectadas
   ========================================================= */

.omx-dash2-opportunities {
    overflow: hidden;
    border: 1px solid rgba(96, 165, 250, 0.20);
    border-radius: 22px;
    background:
        radial-gradient(circle at 8% 0%, rgba(59, 130, 246, 0.16), transparent 30%),
        radial-gradient(circle at 90% 10%, rgba(139, 92, 246, 0.12), transparent 32%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.72));
    box-shadow: 0 18px 52px rgba(0, 0, 0, 0.18);
}

.omx-dash2-opportunities__head {
    min-height: 68px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.13);
}

.omx-dash2-opportunities__head h2 {
    margin: 0;
    color: #f8fafc;
    font-size: 15px;
    line-height: 1.15;
}

.omx-dash2-opportunities__head p {
    margin: 5px 0 0;
    color: #94a3b8;
    font-size: 12px;
}

.omx-dash2-opportunities__head > span {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 32px;
    padding: 7px 10px;
    border: 1px solid rgba(96, 165, 250, 0.26);
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.12);
    color: #bfdbfe;
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
}

.omx-dash2-opportunity-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    padding: 18px;
}

.omx-dash2-opportunity {
    position: relative;
    overflow: hidden;
    min-height: 118px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 13px;
    align-items: flex-start;
    padding: 15px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(30, 41, 59, 0.72), rgba(15, 23, 42, 0.62));
}

.omx-dash2-opportunity::after {
    content: "";
    position: absolute;
    inset: auto -45px -65px auto;
    width: 140px;
    height: 140px;
    border-radius: 999px;
    opacity: 0.16;
    background: #60a5fa;
    pointer-events: none;
}

.omx-dash2-opportunity__icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: rgba(148, 163, 184, 0.11);
    font-size: 19px;
}

.omx-dash2-opportunity strong {
    display: block;
    color: #f8fafc;
    font-size: 14px;
    line-height: 1.2;
}

.omx-dash2-opportunity p {
    margin: 6px 0 0;
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.45;
}

.omx-dash2-opportunity.is-success {
    border-color: rgba(34, 197, 94, 0.25);
}

.omx-dash2-opportunity.is-success::after {
    background: #22c55e;
}

.omx-dash2-opportunity.is-success .omx-dash2-opportunity__icon {
    background: rgba(34, 197, 94, 0.13);
}

.omx-dash2-opportunity.is-warning {
    border-color: rgba(245, 158, 11, 0.25);
}

.omx-dash2-opportunity.is-warning::after {
    background: #f59e0b;
}

.omx-dash2-opportunity.is-warning .omx-dash2-opportunity__icon {
    background: rgba(245, 158, 11, 0.13);
}

.omx-dash2-opportunity.is-danger {
    border-color: rgba(239, 68, 68, 0.25);
}

.omx-dash2-opportunity.is-danger::after {
    background: #ef4444;
}

.omx-dash2-opportunity.is-danger .omx-dash2-opportunity__icon {
    background: rgba(239, 68, 68, 0.13);
}

.omx-dash2-opportunity.is-info {
    border-color: rgba(6, 182, 212, 0.25);
}

.omx-dash2-opportunity.is-info::after {
    background: #06b6d4;
}

.omx-dash2-opportunity.is-info .omx-dash2-opportunity__icon {
    background: rgba(6, 182, 212, 0.13);
}

.omx-dash2-opportunity.is-primary {
    border-color: rgba(59, 130, 246, 0.25);
}

.omx-dash2-opportunity.is-primary::after {
    background: #3b82f6;
}

.omx-dash2-opportunity.is-primary .omx-dash2-opportunity__icon {
    background: rgba(59, 130, 246, 0.13);
}

/* Modo claro */
html[data-admin-theme="light"] .omx-dash2-opportunities {
    background:
        radial-gradient(circle at 8% 0%, rgba(59, 130, 246, 0.12), transparent 30%),
        radial-gradient(circle at 90% 10%, rgba(139, 92, 246, 0.09), transparent 32%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 252, 0.84));
}

html[data-admin-theme="light"] .omx-dash2-opportunities__head h2,
html[data-admin-theme="light"] .omx-dash2-opportunity strong {
    color: #0f172a;
}

html[data-admin-theme="light"] .omx-dash2-opportunity {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(241, 245, 249, 0.78));
}

/* Responsive */
@media (max-width: 1100px) {
    .omx-dash2-opportunity-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .omx-dash2-opportunities__head {
        flex-direction: column;
    }

    .omx-dash2-opportunity {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   Omnix Login 2.0 - Acceso premium
   ========================================================= */

.omx-login-body {
    min-height: 100vh;
    overflow-x: hidden;
}

.omx-login-v2 {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 28px;
    background:
        radial-gradient(circle at 12% 14%, rgba(59, 130, 246, 0.24), transparent 32%),
        radial-gradient(circle at 82% 18%, rgba(139, 92, 246, 0.22), transparent 34%),
        radial-gradient(circle at 50% 100%, rgba(6, 182, 212, 0.10), transparent 35%),
        var(--bg);
}

.omx-login-v2-shell {
    width: min(100%, 1120px);
    min-height: 640px;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(380px, 0.85fr);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 30px;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.82));
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.38);
}

.omx-login-v2-brand-panel {
    position: relative;
    overflow: hidden;
    min-height: 640px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 28px;
    padding: 38px;
    border-right: 1px solid rgba(148, 163, 184, 0.14);
    background:
        radial-gradient(circle at 18% 12%, rgba(59, 130, 246, 0.28), transparent 34%),
        radial-gradient(circle at 88% 82%, rgba(139, 92, 246, 0.16), transparent 32%),
        linear-gradient(160deg, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.86));
}

.omx-login-v2-glow {
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 999px;
    filter: blur(12px);
    pointer-events: none;
}

.omx-login-v2-glow--one {
    top: -190px;
    left: -130px;
    background: rgba(59, 130, 246, 0.26);
}

.omx-login-v2-glow--two {
    right: -190px;
    bottom: -190px;
    background: rgba(139, 92, 246, 0.20);
}

.omx-login-v2-brand,
.omx-login-v2-copy,
.omx-login-v2-metrics,
.omx-login-v2-badges {
    position: relative;
    z-index: 1;
}

.omx-login-v2-brand {
    display: flex;
    align-items: center;
    gap: 13px;
}

.omx-login-v2-logo,
.omx-login-v2-mini-logo {
    display: grid;
    place-items: center;
    border-radius: 17px;
    color: #ffffff;
    font-weight: 950;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    box-shadow: 0 18px 42px rgba(59, 130, 246, 0.28);
}

.omx-login-v2-logo {
    width: 52px;
    height: 52px;
    font-size: 24px;
}

.omx-login-v2-mini-logo {
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    font-size: 20px;
}

.omx-login-v2-brand span {
    display: block;
    color: #f8fafc;
    font-size: 20px;
    font-weight: 950;
    line-height: 1.1;
}

.omx-login-v2-brand strong {
    display: block;
    margin-top: 3px;
    color: #93c5fd;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.omx-login-v2-eyebrow {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 16px;
    padding: 7px 11px;
    border: 1px solid rgba(96, 165, 250, 0.30);
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.12);
    color: #bfdbfe;
    font-size: 11px;
    font-weight: 950;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.omx-login-v2-copy h1 {
    max-width: 620px;
    margin: 0;
    color: #f8fafc;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 0.95;
    letter-spacing: -0.07em;
}

.omx-login-v2-copy p {
    max-width: 580px;
    margin: 18px 0 0;
    color: #bfdbfe;
    font-size: 16px;
    line-height: 1.58;
}

.omx-login-v2-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.omx-login-v2-metrics article {
    min-height: 94px;
    padding: 15px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(30, 41, 59, 0.66), rgba(15, 23, 42, 0.54));
}

.omx-login-v2-metrics strong {
    display: block;
    color: #f8fafc;
    font-size: 24px;
    line-height: 1;
    letter-spacing: -0.04em;
}

.omx-login-v2-metrics span {
    display: block;
    margin-top: 8px;
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.35;
    font-weight: 800;
}

.omx-login-v2-badges {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
}

.omx-login-v2-badges span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 7px 10px;
    border: 1px solid rgba(96, 165, 250, 0.22);
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.10);
    color: #cbd5e1;
    font-size: 11px;
    font-weight: 900;
}

.omx-login-v2-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 42px;
    background:
        radial-gradient(circle at 90% 0%, rgba(59, 130, 246, 0.10), transparent 30%),
        rgba(15, 23, 42, 0.82);
}

.omx-login-v2-card-head {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 26px;
}

.omx-login-v2-card-head h2 {
    margin: 0;
    color: #f8fafc;
    font-size: 26px;
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.omx-login-v2-card-head p {
    margin: 6px 0 0;
    color: #94a3b8;
    font-size: 13px;
    line-height: 1.4;
}

.omx-login-v2-form {
    display: grid;
    gap: 16px;
}

.omx-login-v2-field {
    margin: 0;
}

.omx-login-v2-input-wrap {
    position: relative;
}

.omx-login-v2-input-wrap span {
    position: absolute;
    left: 14px;
    top: 50%;
    z-index: 1;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 12px;
    font-weight: 950;
    pointer-events: none;
}

.omx-login-v2-input-wrap .omx-input {
    height: 50px;
    padding-left: 44px;
    border-radius: 16px;
    background: rgba(2, 6, 23, 0.34);
    border-color: rgba(148, 163, 184, 0.20);
}

.omx-login-v2-input-wrap .omx-input::placeholder {
    color: rgba(148, 163, 184, 0.62);
}

.omx-login-v2-submit {
    width: 100%;
    min-height: 52px;
    margin-top: 4px;
    border-radius: 16px;
    font-size: 14px;
    box-shadow: 0 18px 42px rgba(59, 130, 246, 0.24);
}

.omx-login-v2-submit span {
    font-size: 17px;
    line-height: 1;
}

.omx-login-v2-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.omx-login-v2-foot strong {
    color: #93c5fd;
}

/* Light mode */
html[data-admin-theme="light"] .omx-login-v2 {
    background:
        radial-gradient(circle at 12% 14%, rgba(59, 130, 246, 0.14), transparent 32%),
        radial-gradient(circle at 82% 18%, rgba(139, 92, 246, 0.12), transparent 34%),
        #f4f7fb;
}

html[data-admin-theme="light"] .omx-login-v2-shell {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(239, 246, 255, 0.88));
}

html[data-admin-theme="light"] .omx-login-v2-brand-panel {
    background:
        radial-gradient(circle at 18% 12%, rgba(59, 130, 246, 0.18), transparent 34%),
        radial-gradient(circle at 88% 82%, rgba(139, 92, 246, 0.11), transparent 32%),
        linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(239, 246, 255, 0.86));
}

html[data-admin-theme="light"] .omx-login-v2-card {
    background:
        radial-gradient(circle at 90% 0%, rgba(59, 130, 246, 0.10), transparent 30%),
        rgba(255, 255, 255, 0.84);
}

html[data-admin-theme="light"] .omx-login-v2-brand span,
html[data-admin-theme="light"] .omx-login-v2-copy h1,
html[data-admin-theme="light"] .omx-login-v2-card-head h2,
html[data-admin-theme="light"] .omx-login-v2-metrics strong {
    color: #0f172a;
}

html[data-admin-theme="light"] .omx-login-v2-copy p,
html[data-admin-theme="light"] .omx-login-v2-card-head p {
    color: #475569;
}

html[data-admin-theme="light"] .omx-login-v2-input-wrap .omx-input {
    background: rgba(255, 255, 255, 0.92);
    color: #0f172a;
}

/* Responsive */
@media (max-width: 980px) {
    .omx-login-v2 {
        padding: 18px;
        align-items: start;
    }

    .omx-login-v2-shell {
        min-height: auto;
        grid-template-columns: 1fr;
    }

    .omx-login-v2-brand-panel {
        min-height: auto;
        padding: 28px;
    }

    .omx-login-v2-card {
        padding: 28px;
    }

    .omx-login-v2-copy h1 {
        font-size: clamp(30px, 8vw, 46px);
    }
}

@media (max-width: 640px) {
    .omx-login-v2 {
        padding: 12px;
    }

    .omx-login-v2-shell {
        border-radius: 24px;
    }

    .omx-login-v2-brand-panel {
        padding: 22px;
        gap: 24px;
    }

    .omx-login-v2-card {
        padding: 22px;
    }

    .omx-login-v2-metrics {
        grid-template-columns: 1fr;
    }

    .omx-login-v2-card-head {
        align-items: flex-start;
    }

    .omx-login-v2-foot {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* =========================================================
   Omnix Sidebar 2.0 - Panel vertical premium
   ========================================================= */

.omx-sidebar {
    position: sticky;
    top: 0;
    overflow: hidden;
    padding: 22px 18px;
    background:
        radial-gradient(circle at 10% 0%, rgba(59, 130, 246, 0.20), transparent 34%),
        radial-gradient(circle at 90% 28%, rgba(139, 92, 246, 0.14), transparent 34%),
        linear-gradient(180deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.86));
    border-right: 1px solid rgba(96, 165, 250, 0.16);
    box-shadow: 18px 0 52px rgba(0, 0, 0, 0.18);
}

.omx-sidebar::before {
    content: "";
    position: absolute;
    inset: -130px auto auto -120px;
    width: 280px;
    height: 280px;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.18);
    filter: blur(18px);
    pointer-events: none;
}

.omx-sidebar::after {
    content: "";
    position: absolute;
    inset: auto -150px -140px auto;
    width: 300px;
    height: 300px;
    border-radius: 999px;
    background: rgba(139, 92, 246, 0.13);
    filter: blur(20px);
    pointer-events: none;
}

.omx-sidebar > * {
    position: relative;
    z-index: 1;
}

/* Marca superior */
.omx-brand {
    min-height: 72px;
    margin-bottom: 22px;
    padding: 12px;
    border: 1px solid rgba(96, 165, 250, 0.18);
    border-radius: 20px;
    background:
        linear-gradient(135deg, rgba(30, 41, 59, 0.74), rgba(15, 23, 42, 0.58));
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.18);
}

.omx-brand .omx-logo {
    width: 48px;
    height: 48px;
    border-radius: 17px;
    background:
        radial-gradient(circle at 25% 18%, rgba(255, 255, 255, 0.32), transparent 24%),
        linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: #ffffff;
    font-size: 22px;
    font-weight: 950;
    box-shadow:
        0 16px 34px rgba(59, 130, 246, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.omx-brand h1 {
    color: #f8fafc;
    font-size: 19px;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.omx-brand p {
    color: #93c5fd;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* Navegación */
.omx-nav {
    gap: 7px;
    padding: 6px 0;
}

.omx-nav a {
    position: relative;
    min-height: 44px;
    justify-content: flex-start;
    gap: 11px;
    padding: 11px 12px 11px 13px;
    border-radius: 15px;
    color: #94a3b8;
    border: 1px solid transparent;
    background: transparent;
    font-size: 13px;
    font-weight: 850;
    transition:
        color 0.18s ease,
        background 0.18s ease,
        border-color 0.18s ease,
        transform 0.18s ease,
        box-shadow 0.18s ease;
}

.omx-nav a::before {
    content: "•";
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(148, 163, 184, 0.08);
    color: #64748b;
    font-size: 15px;
    font-weight: 950;
    transition:
        background 0.18s ease,
        color 0.18s ease,
        transform 0.18s ease;
}

.omx-nav a::after {
    content: "";
    position: absolute;
    left: -18px;
    top: 10px;
    bottom: 10px;
    width: 3px;
    border-radius: 999px;
    background: transparent;
    transition: background 0.18s ease;
}

/* Iconos por posición del menú */
.omx-nav a:nth-child(1)::before {
    content: "⌂";
}

.omx-nav a:nth-child(2)::before {
    content: "🏢";
    font-size: 14px;
}

.omx-nav a:nth-child(3)::before {
    content: "👥";
    font-size: 14px;
}

.omx-nav a:nth-child(4)::before {
    content: "🎯";
    font-size: 14px;
}

.omx-nav a:nth-child(5)::before {
    content: "💬";
    font-size: 14px;
}

.omx-nav a:nth-child(6)::before {
    content: "📚";
    font-size: 14px;
}

.omx-nav a:nth-child(7)::before {
    content: "⚙";
}

.omx-nav a:nth-child(8)::before {
    content: "🧾";
    font-size: 14px;
}

.omx-nav a:nth-child(9)::before {
    content: "☁";
}

.omx-nav a:hover {
    color: #f8fafc;
    background:
        linear-gradient(135deg, rgba(59, 130, 246, 0.13), rgba(139, 92, 246, 0.08));
    border-color: rgba(96, 165, 250, 0.20);
    transform: translateX(2px);
}

.omx-nav a:hover::before {
    color: #bfdbfe;
    background: rgba(59, 130, 246, 0.16);
}

.omx-nav a.active {
    color: #ffffff;
    background:
        linear-gradient(135deg, rgba(59, 130, 246, 0.28), rgba(139, 92, 246, 0.18));
    border-color: rgba(96, 165, 250, 0.32);
    box-shadow:
        0 14px 32px rgba(59, 130, 246, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.omx-nav a.active::before {
    color: #ffffff;
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.28), transparent 26%),
        linear-gradient(135deg, #3b82f6, #8b5cf6);
    box-shadow: 0 10px 22px rgba(59, 130, 246, 0.22);
}

.omx-nav a.active::after {
    background: linear-gradient(180deg, #60a5fa, #8b5cf6);
}

/* Footer del sidebar */
.omx-sidebar-footer {
    left: 18px;
    right: 18px;
    bottom: 18px;
    padding: 13px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(30, 41, 59, 0.62), rgba(15, 23, 42, 0.48));
    color: #94a3b8;
    font-size: 11px;
    line-height: 1.45;
}

.omx-sidebar-footer strong,
.omx-sidebar-footer b {
    color: #bfdbfe;
}

/* Light mode */
html[data-admin-theme="light"] .omx-sidebar {
    background:
        radial-gradient(circle at 10% 0%, rgba(59, 130, 246, 0.12), transparent 34%),
        radial-gradient(circle at 90% 28%, rgba(139, 92, 246, 0.10), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(239, 246, 255, 0.82));
    border-right-color: rgba(15, 23, 42, 0.10);
}

html[data-admin-theme="light"] .omx-brand,
html[data-admin-theme="light"] .omx-sidebar-footer {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.90), rgba(239, 246, 255, 0.74));
}

html[data-admin-theme="light"] .omx-brand h1,
html[data-admin-theme="light"] .omx-nav a.active {
    color: #0f172a;
}

html[data-admin-theme="light"] .omx-nav a {
    color: #475569;
}

html[data-admin-theme="light"] .omx-nav a:hover {
    color: #0f172a;
    background:
        linear-gradient(135deg, rgba(59, 130, 246, 0.10), rgba(139, 92, 246, 0.07));
}

html[data-admin-theme="light"] .omx-nav a.active {
    background:
        linear-gradient(135deg, rgba(59, 130, 246, 0.16), rgba(139, 92, 246, 0.10));
}

/* Responsive mantiene comportamiento actual */
@media (max-width: 820px) {
    .omx-sidebar {
        display: none;
    }
}

/* =========================================================
   Omnix Sidebar 2.0 - Logout específico por URL
   ========================================================= */

.omx-nav a[href*="logout"]::before,
.omx-nav a[href*="admin/logout"]::before {
    content: "⎋" !important;
    font-size: 15px !important;
    color: #cbd5e1;
    background: rgba(148, 163, 184, 0.08);
}

.omx-nav a[href*="logout"],
.omx-nav a[href*="admin/logout"] {
    margin-top: 8px;
    color: #94a3b8;
}

.omx-nav a[href*="logout"]:hover,
.omx-nav a[href*="admin/logout"]:hover {
    color: #fecaca;
    border-color: rgba(239, 68, 68, 0.28);
    background:
        linear-gradient(135deg, rgba(239, 68, 68, 0.12), rgba(15, 23, 42, 0.30));
}

.omx-nav a[href*="logout"]:hover::before,
.omx-nav a[href*="admin/logout"]:hover::before {
    color: #fecaca;
    background: rgba(239, 68, 68, 0.14);
}

/* Modo claro */
html[data-admin-theme="light"] .omx-nav a[href*="logout"],
html[data-admin-theme="light"] .omx-nav a[href*="admin/logout"] {
    color: #475569;
}

html[data-admin-theme="light"] .omx-nav a[href*="logout"]:hover,
html[data-admin-theme="light"] .omx-nav a[href*="admin/logout"]:hover {
    color: #b91c1c;
    border-color: rgba(239, 68, 68, 0.22);
    background:
        linear-gradient(135deg, rgba(239, 68, 68, 0.08), rgba(255, 255, 255, 0.72));
}

html[data-admin-theme="light"] .omx-nav a[href*="logout"]:hover::before,
html[data-admin-theme="light"] .omx-nav a[href*="admin/logout"]:hover::before {
    color: #b91c1c;
    background: rgba(239, 68, 68, 0.10);
}

/* =========================================================
   Omnix Sidebar 2.0 - Footer pegado abajo
   ========================================================= */

.omx-sidebar {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.omx-sidebar .omx-brand {
    flex: 0 0 auto;
}

.omx-sidebar .omx-nav {
    flex: 1 1 auto;
    align-content: start;
}

/* La tarjeta del usuario queda abajo */
.omx-sidebar-footer {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    margin-top: auto;
    flex: 0 0 auto;
}

/* Separar un poco el enlace Salir de la tarjeta inferior */
.omx-nav a[href*="logout"],
.omx-nav a[href*="admin/logout"] {
    margin-top: 10px;
    margin-bottom: 12px;
}

/* =========================================================
   Omnix Brand Icon - Imagen oficial
   ========================================================= */

.omx-logo-img-box {
    overflow: hidden;
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.20), transparent 26%),
        linear-gradient(135deg, rgba(59, 130, 246, 0.18), rgba(139, 92, 246, 0.16)) !important;
}

.omx-logo-img-box img {
    width: 82%;
    height: 82%;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 8px 18px rgba(59, 130, 246, 0.35));
}


.omx-logo img {
    width: 82%;
    height: 82%;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 8px 18px rgba(59, 130, 246, 0.35));
}