﻿/* ==========================
   SmartLEX UX (SaaS) v1
   Scope: SOLO dentro de .ux-saas
   ========================== */

/* Tokens (variables) SOLO dentro del scope */
.ux-saas {
    --bg: #f5f7fb;
    --card: #fff;
    --text: #0f172a;
    --muted: #64748b;
    --line: #e5e7eb;
    --brand: #6d28d9;
    --brand2: #4f2dbb;
    --ok: #16a34a;
    --bad: #dc2626;
    --shadow: 0 10px 30px rgba(15,23,42,.08);
    --r: 16px;
    /* tipografía y fondo SOLO para la sección SaaS */
    font-family: system-ui,-apple-system,Segoe UI,Roboto,Arial;
    color: var(--text);
    background: var(--bg);
}

    .ux-saas * {
        box-sizing: border-box;
    }

    /* Layout base */
    .ux-saas .wrap {
        max-width: 560px;
        margin: 0 auto;
        padding: 14px 14px 92px;
    }

    .ux-saas .topbar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 6px 2px 14px;
    }

    .ux-saas .brand {
        font-weight: 900;
        letter-spacing: .3px;
        color: var(--brand2);
        font-size: 18px;
    }

    .ux-saas .tag {
        font-size: 12px;
        color: var(--muted);
    }

    .ux-saas .card {
        background: var(--card);
        border: 1px solid var(--line);
        border-radius: var(--r);
        box-shadow: var(--shadow);
        overflow: hidden;
    }

    .ux-saas .hero {
        padding: 18px 16px;
        background: radial-gradient(900px 200px at 30% 0%, rgba(109,40,217,.18), transparent 55%), radial-gradient(900px 200px at 90% 10%, rgba(79,45,187,.18), transparent 55%), linear-gradient(180deg,#fff,#fbfbff);
        border-bottom: 1px solid var(--line);
    }

        .ux-saas .hero h1 {
            margin: 0 0 8px;
            font-size: 24px;
            line-height: 1.1;
            letter-spacing: -.3px;
        }

        .ux-saas .hero p {
            margin: 0;
            color: var(--muted);
            font-size: 14px;
            line-height: 1.35;
        }

    .ux-saas .bullets {
        margin: 14px 0 0;
        padding: 0;
        list-style: none;
        display: grid;
        gap: 10px;
    }

        .ux-saas .bullets li {
            display: flex;
            gap: 10px;
            align-items: flex-start;
            padding: 12px;
            border: 1px solid var(--line);
            border-radius: 14px;
            background: #fff;
            color: var(--text);
            font-size: 14px;
        }

    .ux-saas .dot {
        width: 22px;
        height: 22px;
        border-radius: 8px;
        background: rgba(109,40,217,.12);
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--brand);
        font-weight: 900;
        flex: 0 0 auto;
    }

    /* Steps */
    .ux-saas .steps {
        padding: 14px;
        border-bottom: 1px solid var(--line);
        background: linear-gradient(180deg,#fff,#fbfbff);
    }

    .ux-saas .steps-row {
        display: flex;
        gap: 10px;
    }

    .ux-saas .step {
        flex: 1;
        text-align: center;
        padding: 10px 8px;
        border-radius: 14px;
        border: 1px solid var(--line);
        color: var(--muted);
        font-size: 12px;
        line-height: 1.15;
        background: #fff;
    }

        .ux-saas .step b {
            display: block;
            color: var(--text);
            font-size: 12px;
        }

        .ux-saas .step.active {
            border-color: rgba(109,40,217,.35);
            background: rgba(109,40,217,.08);
            color: #3f2a9a;
        }

        .ux-saas .step.completed {
            background: rgba(22,163,74,.12);
            border-color: rgba(22,163,74,.4);
            color: #15803d;
        }

    .ux-saas .content {
        padding: 16px;
    }

    .ux-saas .viewAnim {
        animation: stepIn .18s ease-out;
    }

@keyframes stepIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ux-saas h2 {
    margin: 10px 0;
    font-size: 20px;
    letter-spacing: -.2px;
}

.ux-saas .sub {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.35;
}

.ux-saas .sectionTitle {
    margin: 18px 0 10px;
    font-size: 12px;
    color: var(--muted);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .9px;
}

/* Forms */
.ux-saas .grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

    .ux-saas .grid.two {
        grid-template-columns: 1fr;
    }

.ux-saas .field label {
    display: block;
    margin: 0 0 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.ux-saas .field input,
.ux-saas .field select,
.ux-saas .field textarea {
    width: 100%;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid var(--line);
    font-size: 15px;
    outline: none;
    background: #fff;
}

    .ux-saas .field input:focus,
    .ux-saas .field select:focus,
    .ux-saas .field textarea:focus {
        border-color: rgba(109,40,217,.55);
        box-shadow: 0 0 0 4px rgba(109,40,217,.12);
    }

/* Checkbox tiles */
.ux-saas .checks {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.ux-saas .tile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
}

    .ux-saas .tile .txt {
        font-weight: 800;
        color: var(--text);
        font-size: 15px;
    }

    .ux-saas .tile small {
        display: block;
        color: var(--muted);
        font-weight: 600;
        font-size: 12px;
        margin-top: 3px;
    }

    .ux-saas .tile input[type=checkbox] {
        width: 22px;
        height: 22px;
        accent-color: var(--brand);
    }

.ux-saas .divider {
    height: 1px;
    background: var(--line);
    margin: 16px 0;
}

/* Bottom bar */
.ux-saas .bottom-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(245,247,251,.92);
    border-top: 1px solid var(--line);
    backdrop-filter: blur(8px);
    padding: 10px 14px env(safe-area-inset-bottom);
    z-index: 9998;
}

.ux-saas .bottom-inner {
    max-width: 560px;
    margin: 0 auto;
    display: flex;
    gap: 10px;
}

.ux-saas .btn {
    flex: 1;
    border: none;
    border-radius: 16px;
    padding: 13px 14px;
    font-weight: 900;
    font-size: 15px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

    .ux-saas .btn:active {
        transform: scale(.99);
    }

.ux-saas .btn-primary {
    background: var(--brand);
    color: #fff;
}

.ux-saas .btn-ghost {
    background: #fff;
    border: 1px solid var(--line);
    color: var(--text);
}

.ux-saas .btn-disabled {
    opacity: .5;
    cursor: default;
}

.ux-saas .btn-new {
    background: #0ea5e9;
    color: #fff;
}

/* Success */
.ux-saas .success {
    padding: 16px;
    border-radius: 16px;
    border: 1px solid rgba(22,163,74,.25);
    background: rgba(22,163,74,.08);
    text-align: center;
    color: #065f46;
}

.ux-saas .code {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 14px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid rgba(22,163,74,.25);
    font-weight: 900;
    color: var(--text);
    letter-spacing: .5px;
}

/* Toast */
.ux-saas .toast {
    position: fixed;
    left: 50%;
    top: 14px;
    transform: translateX(-50%);
    background: #111827;
    color: #fff;
    padding: 10px 14px;
    border-radius: 14px;
    font-weight: 800;
    font-size: 13px;
    box-shadow: 0 10px 30px rgba(0,0,0,.22);
    z-index: 10000;
    display: none;
}

/* Loader overlay */
.ux-saas .overlay {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,.25);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(7px);
}

.ux-saas .spinner {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 4px solid rgba(255,255,255,.6);
    border-top-color: rgba(109,40,217,1);
    animation: spin .8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.ux-saas .overlayText {
    margin-top: 10px;
    color: #fff;
    font-weight: 900;
}

/* Desktop */
@media (min-width:900px) {
    .ux-saas .wrap {
        max-width: 760px;
    }

    .ux-saas .bottom-inner {
        max-width: 760px;
    }

    .ux-saas .grid.two {
        grid-template-columns: 1fr 1fr;
    }

    .ux-saas .checks {
        grid-template-columns: 1fr 1fr;
    }
}

/* ====== LeadGestion helpers (tu bloque x*) ====== */
.ux-saas .xcontainer {
    max-width: 900px;
    margin: auto;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,.10);
}

.ux-saas .xform-group {
    margin-bottom: 15px;
}

/* IMPORTANTE: estos inputs NO son globales, solo dentro ux-saas */
.ux-saas input,
.ux-saas select,
.ux-saas textarea {
    width: 100%;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.ux-saas .xbtn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}

.ux-saas .xbtn-primary {
    background: #0b1a4a;
    color: #fff;
}

.ux-saas .xbtn-secondary {
    background: #ccc;
}


/* Desktop: tabla normal */
.ux-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

    .ux-table th, .ux-table td {
        padding: 14px 16px;
        border-bottom: 1px solid var(--line);
    }

    .ux-table th {
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: .8px;
        color: var(--muted);
        font-weight: 900;
    }

    .ux-table td .cell {
        display: block;
    }

/* Mobile: rows -> cards */
@media (max-width: 640px) {
    .ux-table thead {
        display: none;
    }

    .ux-table, .ux-table tbody, .ux-table tr, .ux-table td {
        display: block;
        width: 100%;
    }

        .ux-table tr {
            background: #fff;
            border: 1px solid var(--line);
            border-radius: 14px;
            box-shadow: 0 10px 30px rgba(15,23,42,.06);
            margin-bottom: 12px;
            overflow: hidden;
        }

        .ux-table td {
            border: 0;
            border-top: 1px solid var(--line);
            padding: 10px 12px;
        }

            .ux-table td:first-child {
                border-top: 0;
            }

            /* Cada celda muestra label + valor */
            .ux-table td .cell {
                display: grid;
                grid-template-columns: 120px 1fr;
                gap: 10px;
                align-items: center;
                white-space: normal;
            }

                .ux-table td .cell::before {
                    content: attr(data-label);
                    color: var(--muted);
                    font-weight: 900;
                    font-size: 11px;
                    text-transform: uppercase;
                    letter-spacing: .7px;
                }

            .ux-table td .cell-actions {
                grid-template-columns: 120px 1fr;
            }
}


/* KPI container */
.leads-dashboard {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(4, minmax(0, 1fr)); /* desktop default */
    width: 100%;
}

/* KPI card */
.kpi-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 16px 16px;
    min-width: 0; /* clave anti-scroll horizontal */
    overflow: hidden; /* evita que algo se “salga” */
}

.kpi-title {
    color: var(--muted);
    font-weight: 800;
    font-size: 12px;
    letter-spacing: .6px;
}

.kpi-value {
    margin-top: 8px;
    font-size: 28px;
    font-weight: 900;
    color: var(--text);
    line-height: 1;
}

/* Tus variantes */
.kpi-warning {
    border-left: 5px solid var(--bad);
}

.kpi-success {
    border-left: 5px solid var(--ok);
}

.kpi-dark {
    border-left: 5px solid #111827;
}

/* Mobile: 2 columnas (2-2) */
@media (max-width: 640px) {
    .leads-dashboard {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* opcional: títulos más compactos */
    .kpi-title {
        font-size: 11px;
    }

    .kpi-value {
        font-size: 26px;
    }
}

/* Muy chico: 1 columna */
@media (max-width: 360px) {
    .leads-dashboard {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 640px) {

    /* Oculta completamente el header del GridView */
    .ux-table thead,
    .ux-table tr:first-child {
        display: none !important;
    }
}

.copy-box {
    margin: 6px 0 16px;
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
}

    .copy-box input {
        margin-right: 6px;
        transform: scale(1.2);
        accent-color: var(--brand);
    }


.precio-catalogo {
    margin-top: 6px;
    font-weight: 900;
    font-size: 14px;
    color: var(--brand);
}

.badge {
    font-size: 10px;
    font-weight: 900;
    padding: 3px 6px;
    border-radius: 8px;
    letter-spacing: .5px;
}

.badge-popular {
    background: #f59e0b;
    color: #fff;
}

.badge-recomendado {
    background: #10b981;
    color: #fff;
}

.info-icon {
    font-size: 14px;
    text-decoration: none;
    color: var(--brand);
}


.checkout-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--shadow);
    margin-top: 20px;
}

.checkout-line {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
    border-bottom: 1px solid var(--line);
}

    .checkout-line.descuento {
        color: #dc2626;
        font-weight: 700;
    }

.checkout-total {
    display: flex;
    justify-content: space-between;
    padding-top: 14px;
    font-size: 18px;
    font-weight: 900;
    color: var(--brand2);
}

.slx-encuesta-container {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    padding: 20px;
}

.slx-encuesta-card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    max-width: 650px;
    width: 100%;
    padding: 35px;
}

.slx-title {
    text-align: center;
    margin-bottom: 10px;
    font-size: 28px;
    color: #2c3e50;
}

.slx-subtitle {
    text-align: center;
    margin-bottom: 35px;
    color: #666;
}

.slx-question {
    margin-bottom: 35px;
}

    .slx-question h3 {
        font-size: 18px;
        margin-bottom: 10px;
    }

.slx-help {
    font-size: 13px;
    color: #888;
    margin-bottom: 10px;
}

.slx-checkboxlist input {
    margin-right: 8px;
}

.slx-checkboxlist label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid #eee;
    border-radius: 6px;
    margin-bottom: 8px;
    background: #fafafa;
    cursor: pointer;
    width: 100%;
}

    .slx-checkboxlist label:hover {
        background: #f1f5ff;
        border-color: #2a6df4;
    }

.slx-checkboxlist input {
    margin: 0;
}

.slx-submit {
    text-align: center;
    margin-top: 20px;
}

.slx-btn {
    background: #2a6df4;
    border: none;
    color: #fff;
    padding: 12px 25px;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
}

    .slx-btn:hover {
        background: #1f54c4;
    }

.slx-thanks {
    text-align: center;
    margin-top: 30px;
    color: #2c3e50;
}

.slx-checkboxlist label {
    padding: 12px;
    border: 1px solid #eee;
    border-radius: 6px;
    margin-bottom: 6px;
    background: #fafafa;
}



.modal-content {
    border-radius: 14px;
}

.nav-tabs .nav-link.active {
    background-color: #6f2dbd;
    color: white;
    border-radius: 8px 8px 0 0;
}

.form-control-lg {
    border-radius: 10px;
}



.Afooter-lexify {
    width: 100%;
    background: #0f172a; /* dark elegante */
    color: #cbd5e1;
    font-size: 13px;
    border-top: 1px solid #1e293b;
    padding: 12px 20px;
}

.Afooter-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: auto;
    flex-wrap: wrap;
}

.Afooter-left .brand {
    font-weight: 700;
    color: #a855f7; /* púrpura LEXIFY */
    margin-right: 8px;
}

.Afooter-left .version {
    font-size: 11px;
    color: #64748b;
}

.Afooter-center {
    text-align: center;
    flex: 1;
}

.Afooter-right {
    display: flex;
    gap: 15px;
    align-items: center;
}

    .Afooter-right a {
        color: #94a3b8;
        text-decoration: none;
    }

        .Afooter-right a:hover {
            color: #ffffff;
        }

.Astatus {
    font-size: 12px;
    font-weight: 500;
}

.status.online {
    color: #22c55e;
}

@media (max-width: 768px) {
    .Afooter-container {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .Afooter-right {
        justify-content: center;
    }
}


/* HEADER PRO */
.custom-header {
    position: relative;
    z-index: 1;
    height: 40px; /* 🔥 le damos espacio real */
}

/* BODY CON ESPACIO PARA FOTO */
.Aprofile-body img {
    max-width: 110px;
    max-height: 110px;
}

/* CONTENEDOR FOTO */
.Aavatar-wrapper {
    position: absolute;
    top: 20px; /* 🔥 antes estaba negativo */
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}
/* FOTO */
.Aavatar-img {
    width: 110px !important;
    height: 110px !important;
    object-fit: cover !important; /* 🔥 clave */
    border-radius: 10%;
    border: 4px solid #fff;
    box-shadow: 0 6px 18px rgba(0,0,0,0.2);
    display: block;
}

    /* HOVER (opcional pero PRO) */
    .Aavatar-img:hover {
        transform: scale(1.05);
        transition: 0.2s ease-in-out;
    }

.Aavatar-img {
    background-color: #eee;
}

#FichaCliente {
    position: relative;
    overflow: hidden; /* 🔥 evita que la foto invada fuera del card */
}

/* =========================================
   SMARTLEX LAYOUT + FOOTER FINAL
   Dejar este bloque UNA sola vez, al final
   ========================================= */

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

form#form1 {
    min-height: 100vh;
}

#main-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* El template ya define .page-wrapper; aquí solo lo hacemos crecer */
.page-wrapper {
    flex: 1 0 auto;
    min-height: auto !important;
    display: flex;
    flex-direction: column;
}

/* Contenido interno */
.slx-layout-content {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

/* Ocultar panel lateral de configuración */
.right-side-toggle,
.right-sidebar {
    display: none !important;
}

/* Footer */
.slx-footer-v2 {
    margin-top: auto;
    flex-shrink: 0;
    width: 100%;
    background: #0f172a;
    border-top: 3px solid #6d28d9;
    color: #e5e7eb;
    position: relative;
    z-index: 20;
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
}

.slx-footer-v2__inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-sizing: border-box;
    font-size: 13px;
    line-height: 1.4;
}

.slx-footer-v2__left,
.slx-footer-v2__center,
.slx-footer-v2__right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.slx-footer-v2__left {
    min-width: 180px;
}

.slx-footer-v2__center {
    flex: 1;
    justify-content: center;
    text-align: center;
    color: #cbd5e1;
}

.slx-footer-v2__right {
    min-width: 220px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.slx-footer-v2__brand {
    font-weight: 700;
    font-size: 15px;
    color: #a855f7;
    letter-spacing: 0.2px;
}

.slx-footer-v2__version {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(168, 85, 247, 0.14);
    color: #ddd6fe;
    font-size: 11px;
    font-weight: 600;
}

.slx-footer-v2__right a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s ease;
}

    .slx-footer-v2__right a:hover {
        color: #ffffff;
        text-decoration: underline;
    }

.slx-footer-v2__status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #e2e8f0;
    font-weight: 500;
}

.slx-footer-v2__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
    display: inline-block;
}

@media (max-width: 991px) {
    .slx-footer-v2__inner {
        flex-direction: column;
        text-align: center;
        padding: 14px 18px;
    }

    .slx-footer-v2__left,
    .slx-footer-v2__center,
    .slx-footer-v2__right {
        width: 100%;
        min-width: auto;
        justify-content: center;
    }

    .slx-footer-v2__right {
        gap: 14px;
    }
}


/* CSS LISTADO DE TAREAS*/
.smart-task-wrap {
    width: 100%;
}

/* CONTENEDOR DESKTOP */
.smart-task-table {
    width: 100%;
    border: 1px solid #e8edf3;
    border-radius: 16px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 4px 18px rgba(0,0,0,0.04);
}

/* HEADER Y FILAS */
.smart-task-head,
.smart-task-row {
    display: grid;
    grid-template-columns: 170px 1.1fr 2.2fr 1.2fr;
    align-items: center;
}

.smart-task-head {
    background: #f4f7fb;
    border-bottom: 1px solid #e6ebf1;
    font-weight: 700;
    color: #35506f;
    font-size: 14px;
}

    .smart-task-head > div,
    .smart-task-row > div {
        padding: 18px 16px;
        border-right: 1px solid #edf1f5;
    }

        .smart-task-head > div:last-child,
        .smart-task-row > div:last-child {
            border-right: none;
        }

.smart-task-row {
    background: #fff;
    border-bottom: 1px solid #edf1f5;
    transition: background .15s ease;
}

    .smart-task-row:last-child {
        border-bottom: none;
    }

    .smart-task-row:hover {
        background: #fafcff;
    }

/* BADGE ESTADO */
.task-status-badge {
    display: inline-block;
    min-width: 120px;
    text-align: center;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 14px;
    padding: 11px 16px;
    border-radius: 999px;
    text-decoration: none !important;
    border: 1px solid transparent;
    box-shadow: 0 6px 14px rgba(0,0,0,0.10);
    line-height: 1.2;
}

    .task-status-badge:hover {
        color: #ffffff !important;
        text-decoration: none !important;
        opacity: .92;
    }

/* TEXTOS */
.task-main-text {
    font-weight: 700;
    color: #1f3d5c;
    line-height: 1.4;
}

.task-secondary-text {
    color: #556f8d;
    line-height: 1.5;
}

/* TAGS */
.task-tag {
    display: inline-block;
    padding: 7px 12px;
    border-radius: 10px;
    background: #eef3fb;
    color: #36527a;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
}

.task-tag-light {
    background: #f3f6f9;
    color: #536b84;
}

.task-tag-outline {
    background: #ffffff;
    border: 1px solid #d7e0ea;
    color: #536b84;
}

/* MOBILE CARDS */
.smart-task-card {
    background: #ffffff;
    border: 1px solid #e9edf2;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 14px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}

.smart-task-card-top {
    margin-bottom: 12px;
}

.smart-task-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #22364d;
    line-height: 1.35;
    margin-bottom: 10px;
}

.smart-task-card-desc {
    font-size: 14px;
    color: #586f87;
    line-height: 1.55;
    margin-bottom: 14px;
}

.smart-task-card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 14px;
}

.task-card-field {
    background: #f8fafd;
    border: 1px solid #edf1f5;
    border-radius: 12px;
    padding: 10px 12px;
}

    .task-card-field .label {
        display: block;
        font-size: 12px;
        color: #7a8da6;
        margin-bottom: 4px;
        text-transform: uppercase;
        letter-spacing: .3px;
    }

    .task-card-field .value {
        display: block;
        font-size: 14px;
        font-weight: 600;
        color: #2f4761;
        line-height: 1.4;
    }

.smart-task-card-action {
    text-align: right;
}

/* VISIBILIDAD */
.desktop-task-table {
    display: block;
}

.desktop-task-row {
    display: grid;
}

.mobile-task-card {
    display: none;
}

/* RESPONSIVE */
@media (max-width: 767px) {
    .desktop-task-table {
        display: none;
    }

    .desktop-task-row {
        display: none;
    }

    .mobile-task-card {
        display: block;
    }

    .smart-task-card-grid {
        grid-template-columns: 1fr;
    }
}





.desktop-task-table {
    display: block;
}

.mobile-task-list {
    display: none;
}

.desktop-task-row {
    display: grid;
}

@media (max-width: 767px) {
    .desktop-task-table {
        display: none;
    }

    .mobile-task-list {
        display: block;
    }
}



.smartlex-report-card {
    background: #fff;
    border: 1px solid #e9edf2;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,.04);
}

.smartlex-report-header {
    padding: 16px 18px;
    border-bottom: 1px solid #eef2f6;
    font-weight: 700;
    color: #183153;
}

.smartlex-report-body {
    padding: 18px;
}

.smartlex-section-box {
    border: 1px solid #e7edf4;
    background: #fafcff;
    border-radius: 12px;
    padding: 12px 14px;
}

.smartlex-btn-soft {
    border-radius: 10px;
    padding: 8px 14px;
    font-weight: 600;
}


/* ===========================
   SMARTLEX - PROPUSTA COMERCIAL
   =========================== */

.smartlex-module-card {
    background: #ffffff;
    border: 1px solid #d9e3ee;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(25, 42, 70, 0.05);
}

    .smartlex-module-card .card-header {
        background: #ffffff;
        border-bottom: 1px solid #edf2f7;
        border-radius: 16px 16px 0 0 !important;
        font-weight: 700;
        color: #17365d;
    }

.smartlex-section-picker {
    border: 1px solid #dbe3ea;
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 12px;
    background: #fdfefe;
}

    .smartlex-section-picker .form-check-input {
        margin-top: 0.2rem;
    }

.smartlex-client-chip {
    background: linear-gradient(135deg, #f5f9ff 0%, #ecf3fb 100%);
    border: 1px solid #d3e1f1;
    border-radius: 14px;
    padding: 14px 16px;
}

.smartlex-preview-paper {
    background: #ffffff;
    border: 1px solid #dbe3ea;
    border-radius: 18px;
    overflow: hidden;
}

.smartlex-preview-band {
    background: linear-gradient(90deg, #1e63d7 0%, #1c3f77 100%);
    color: #fff;
    padding: 22px 24px;
}

.smartlex-preview-body {
    padding: 28px;
}

.smartlex-editor-host {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}

.smartlex-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.smartlex-badge-state {
    font-size: 12px;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 999px;
}

.smartlex-badge-borrador {
    background: #eef2f7;
    color: #506070;
}

.smartlex-badge-enviada {
    background: #fff3cd;
    color: #856404;
}

.smartlex-badge-aceptada {
    background: #d1e7dd;
    color: #0f5132;
}

.smartlex-badge-rechazada {
    background: #f8d7da;
    color: #842029;
}

.smartlex-table-clean thead th {
    background: #f4f7fb;
    color: #17365d;
    font-weight: 700;
    border-color: #dbe3ea;
}

.smartlex-table-clean td {
    vertical-align: middle;
    border-color: #e6edf5;
}

.slx-action-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.slx-btn-action {
    min-width: 220px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 12px;
    font-weight: 600;
    padding: 10px 16px;
    text-decoration: none !important;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    transition: all .18s ease-in-out;
}

    .slx-btn-action:hover {
        transform: translateY(-1px);
        box-shadow: 0 5px 14px rgba(0,0,0,.10);
    }

    .slx-btn-action i {
        font-size: 14px;
        line-height: 1;
    }

    .slx-btn-action.btn-primary {
        background: linear-gradient(135deg, #1e63d7 0%, #174ea6 100%);
        border-color: #174ea6;
    }

    .slx-btn-action.btn-success {
        background: linear-gradient(135deg, #198754 0%, #157347 100%);
        border-color: #157347;
    }

    .slx-btn-action.btn-info {
        background: linear-gradient(135deg, #0dcaf0 0%, #0aa2c0 100%);
        border-color: #0aa2c0;
    }

    .slx-btn-action.btn-secondary {
        background: #6c757d;
        border-color: #6c757d;
    }

    .slx-btn-action.btn-danger {
        background: linear-gradient(135deg, #dc3545 0%, #b02a37 100%);
        border-color: #b02a37;
    }

    .slx-btn-action.btn-outline-danger {
        border-width: 1px;
        background: #fff;
    }

@media (max-width: 768px) {
    .slx-btn-action {
        width: 100%;
        min-width: 100%;
    }
}

.slx-action-panel {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.slx-action-group {
    background: #f8fbff;
    border: 1px solid #dbe3ea;
    border-radius: 14px;
    padding: 14px;
}

.slx-action-group-main {
    background: linear-gradient(180deg, #f8fbff 0%, #f3f8ff 100%);
}

.slx-action-group-secondary {
    background: #fcfcfd;
}

.slx-action-group-title {
    font-size: 13px;
    font-weight: 700;
    color: #17365d;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: .4px;
}

.slx-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.slx-btn-action {
    min-width: 220px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 12px;
    font-weight: 600;
    padding: 10px 16px;
    text-decoration: none !important;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    transition: all .18s ease-in-out;
}

    .slx-btn-action:hover {
        transform: translateY(-1px);
        box-shadow: 0 5px 14px rgba(0,0,0,.10);
    }

    .slx-btn-action i {
        font-size: 14px;
        line-height: 1;
    }

.slx-btn-main {
    min-width: 240px;
}

.slx-btn-action.btn-primary {
    background: linear-gradient(135deg, #1e63d7 0%, #174ea6 100%);
    border-color: #174ea6;
}

.slx-btn-action.btn-success {
    background: linear-gradient(135deg, #198754 0%, #157347 100%);
    border-color: #157347;
}

.slx-btn-action.btn-info {
    background: linear-gradient(135deg, #0dcaf0 0%, #0aa2c0 100%);
    border-color: #0aa2c0;
    color: #fff !important;
}

.slx-btn-action.btn-secondary {
    background: #6c757d;
    border-color: #6c757d;
}

.slx-btn-action.btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #b02a37 100%);
    border-color: #b02a37;
}

.slx-btn-action.btn-outline-danger {
    background: #fff;
    border-width: 1px;
}

@media (max-width: 768px) {
    .slx-btn-action,
    .slx-btn-main {
        width: 100%;
        min-width: 100%;
    }
}

.slx-btn-action.btn-outline-danger {
    background: #fff;
    border: 1px solid #dc3545;
    color: #dc3545 !important;
}

    .slx-btn-action.btn-outline-danger i {
        color: #dc3545 !important;
    }

    .slx-btn-action.btn-outline-danger:hover,
    .slx-btn-action.btn-outline-danger:focus,
    .slx-btn-action.btn-outline-danger:active {
        background: #fff5f5 !important;
        border-color: #dc3545 !important;
        color: #b02a37 !important;
    }

        .slx-btn-action.btn-outline-danger:hover i,
        .slx-btn-action.btn-outline-danger:focus i,
        .slx-btn-action.btn-outline-danger:active i {
            color: #b02a37 !important;
        }

<style >
.slx-table-editable th {
    background: #f4f7fb;
    color: #17365d;
    font-weight: 700;
    white-space: nowrap;
    font-size: 13px;
}

.slx-table-editable td {
    vertical-align: middle;
}

.slx-table-editable textarea,
.slx-table-editable input,
.slx-table-editable select {
    font-size: 13px;
}

    .slx-table-editable textarea.form-control {
        min-height: 64px;
        resize: vertical;
    }

.slx-total-box {
    text-align: right;
    font-size: 20px;
    font-weight: 700;
    color: #17365d;
}

.slx-total-label {
    display: block;
    font-size: 12px;
    color: #6c7a89;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .4px;
    margin-bottom: 2px;
}

.slx-row-actions {
    display: flex;
    gap: 6px;
    justify-content: center;
}

    .slx-row-actions .btn {
        width: 34px;
        height: 34px;
        padding: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
    }

        .slx-row-actions .btn i {
            font-size: 13px;
            line-height: 1;
        }

.slx-empty-detail {
    padding: 28px 12px !important;
    color: #7b8a9a;
    text-align: center;
    font-style: italic;
}

.slx-money {
    text-align: right;
    font-weight: 700;
    color: #17365d;
    white-space: nowrap;
}

</style >