@import url('open.iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

.button-link {
    text-decoration: unset;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

/* ---------------------------
   Textos generales del template
---------------------------- */
.title {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-bottom: 0.625rem;
}
.dxbl-grid-header th {
    text-transform: uppercase;
}

    .title.title-secondary {
        padding-top: 0.313rem;
        padding-bottom: 0;
        color: var(--bs-secondary-color);
    }

.title-header-text {
    font-size: 2.5rem;
    line-height: 3rem;
    font-weight: 600;
    letter-spacing: 0rem;
    padding: 0.3125rem 0;
}

.title-content-text {
    font-size: 1.75rem;
    font-weight: 400;
    line-height: 2.5rem;
    letter-spacing: 0rem;
}

.main-content {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
}

.block-content {
    width: 31.25rem;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    max-width: 100%;
}

.or {
    display: flex;
    flex-direction: row;
    align-items: center;
}

    .or .or-line {
        border-bottom: 1px solid var(--bs-body-color);
        width: 100%;
        opacity: 0.2;
    }

    .or .or-text {
        padding: 0 0.625rem 0 0.625rem;
        font-size: 0.75rem;
        line-height: 1.125rem;
        color: var(--bs-body-color);
        opacity: 0.7;
    }

.links-area {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    padding-top: 0.625rem;
}

.links-container {
    display: flex;
    gap: 0.25rem;
    justify-content: center;
    align-items: center;
}

    .links-container .dot {
        height: 0.3125rem;
        width: 0.3125rem;
        margin: 0 0.1875rem;
        border-radius: 50%;
        background-color: var(--bs-body-color);
        opacity: 0.7;
    }

.manage-layout {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.info-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.15;
    background: var(--bs-primary);
    z-index: -1;
}

.info-message {
    padding: 0.625rem 1rem 0.625rem 1rem;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .info-message.info-panel {
        margin-bottom: 0.625rem;
    }

.manage-content {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.large-input {
    height: 4.3125rem;
    font-size: 1.875rem;
}

.title-content-text-secondary {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.button-group {
    display: flex;
    flex-direction: row;
    gap: 0.625rem;
}

.confirm-button {
    margin-top: 0.3125rem;
}

.display-desktop {
    display: block;
}

.display-mobile {
    display: none;
}

.icon-external-provider {
    width: 1rem;
    height: 1rem;
}

.icon-google {
    background-image: url("/images/account/providers/google-logo.svg");
}

.icon-facebook {
    background-image: url("/images/account/providers/facebook-logo.svg");
}

.icon-microsoft {
    background-image: url("/images/account/providers/microsoft-logo.svg");
}

.icon-twitter {
    background-image: url("/images/account/providers/x-logo.svg");
}

/* ---------------------------
   LOGIN
---------------------------- */
.login-shell {
    min-height: 100vh;
}

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(135deg, #002633 0%, #00384b 100%);
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border-radius: 14px;
    padding: 2.5rem;
    box-shadow: 0 20px 45px rgba(0, 0, 0, .25);
}

.login-brand {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo {
    max-width: 120px;
    margin-bottom: 1rem;
}

.login-brand h1 {
    font-size: 1.8rem;
    margin: 0;
    color: #002633;
    font-weight: 700;
}

.login-brand p {
    color: #5a6b75;
    font-size: .95rem;
}

.form-label {
    font-weight: 600;
    color: #002633;
    font-size: 0.95rem;
    margin-bottom: 6px;
}

.login-input {
    height: 46px;
    border-radius: 8px;
    border: 1px solid #cfd8dc;
    background-color: #f4f7f9;
    color: #002633;
    padding: 0 12px;
    transition: all .2s ease;
}

    .login-input:focus {
        background-color: #ffffff;
        border-color: #002633;
        box-shadow: 0 0 0 .15rem rgba(0, 38, 51, .15);
        outline: none;
    }

    .login-input::placeholder {
        color: #90a4ae;
    }

.login-card input {
    background-color: #f4f7f9 !important;
    color: #002633 !important;
    border: 1px solid #cfd8dc !important;
}

.login-btn-primary {
    height: 46px;
    background: #002633;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    color: white;
}

    .login-btn-primary:hover {
        background: #00384b;
    }

.login-btn-success {
    height: 46px;
    background: #0f4f63;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    color: white;
}

    .login-btn-success:hover {
        background: #0b3c4a;
    }

.agent-box {
    background: #f3f7f9;
    border-left: 4px solid #002633;
    padding: .9rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.agent-label {
    font-size: .75rem;
    text-transform: uppercase;
    color: #7b8b95;
    letter-spacing: .05em;
}

.agent-name {
    font-weight: 600;
    color: #002633;
    font-size: 1rem;
}

.login-alert-error {
    background: #ffe4e4;
    border: 1px solid #ffb3b3;
    color: #9c1c1c;
    border-radius: 6px;
}

.login-alert-info {
    background: #e6f3f7;
    border: 1px solid #b6dbe5;
    color: #0f4f63;
    border-radius: 6px;
}

.login-link {
    color: #002633;
}

/* ---------------------------
   APP / LAYOUT GENERAL
---------------------------- */
:root {
    --innovika-blue: #002633;
    --innovika-blue-soft: #0b3a4a;
    --innovika-page: #f4f7f9;
    --innovika-text: #1f2d36;
    --innovika-muted: #6c7a86;
}

.page {
    background-color: var(--innovika-page) !important;
}

/* Sidebar / Drawer */
.navigation-drawer,
.navigation-drawer .dxbl-drawer-panel,
.navigation-drawer .dxbl-drawer-body,
.navigation-drawer .dxbl-drawer-header,
.navigation-drawer .dxbl-drawer-footer {
    background: linear-gradient(180deg, var(--innovika-blue) 0%, var(--innovika-blue-soft) 100%) !important;
    color: #ffffff !important;
    border-right: none !important;
}

/* Header del sidebar */
.innovika-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1rem;
    min-height: 76px;
    border-bottom: 1px solid rgba(255, 255, 255, .10);
    background: transparent !important;
}

.innovika-brand {
    display: flex;
    align-items: center;
}

.innovika-drawer-title {
    color: #ffffff;
    font-size: 1.55rem;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -.02em;
}

/* Botones del drawer */
.navigation-drawer .menu-button-nav,
.navigation-drawer .menu-button,
.navigation-drawer .dxbl-btn {
    color: #ffffff !important;
}

/* Menú lateral */
.navigation-drawer .nav-link {
    color: rgba(255, 255, 255, .92) !important;
    border-radius: 10px;
    margin: 4px 10px;
    padding: 10px 12px;
    transition: all .2s ease;
}

    .navigation-drawer .nav-link:hover {
        background-color: rgba(255, 255, 255, .10) !important;
        color: #ffffff !important;
    }

    .navigation-drawer .nav-link.active {
        background-color: rgba(255, 255, 255, .16) !important;
        color: #ffffff !important;
        font-weight: 600;
    }

/* Oculta el checkbox raro del template */
.navbar-toggler {
    display: none !important;
}

/* Área superior derecha */
.nav-buttons-container {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .75rem 1rem;
    background-color: #ffffff;
    border-bottom: 1px solid #e3e8ec;
}

    .nav-buttons-container .menu-button,
    .nav-buttons-container .menu-button-nav,
    .nav-buttons-container .dxbl-btn {
        color: var(--innovika-blue) !important;
    }

/* Contenido principal */
.p-4 {
    background-color: var(--innovika-page);
    min-height: calc(100vh - 64px);
    color: var(--innovika-text);
}

/* Oculta pie demo residual */
.footer-button,
.docs-icon,
.demos-icon {
    display: none !important;
}

/* Ajustes responsivos */
@media (max-width: 768px) {
    .display-desktop {
        display: none;
    }

    .display-mobile {
        display: block;
    }
}

.inicio-crm {
    width: 100%;
    min-height: calc(100vh - 140px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.inicio-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 720px;
    width: 100%;
}

.inicio-logo {
    max-width: 420px;
    width: 100%;
    height: auto;
    object-fit: contain;
}
.header-action-button {
    color: #002633 !important;
    font-weight: 500;
}

.header-action-button:hover {
    color: #00384b !important;
}
/* ---------------------------
   LEADS - GRID Y POPUP
---------------------------- */

/* Encabezado de página */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

    .page-header h3 {
        margin: 0;
        color: #002633;
        font-weight: 700;
    }

/* Botón Nuevo Lead */
.lead-button {
    background-color: #002633 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    font-weight: 600;
}

/* Grid */
.grid-leads,
.grid-leads .dxbl-grid,
.grid-leads .dxbl-grid-table,
.grid-leads .dxbl-grid-content,
.grid-leads .dxbl-grid-content-table {
    background-color: #ffffff !important;
    color: #1f2d36 !important;
}

    .grid-leads .dxbl-grid-header {
        background-color: #eef3f6 !important;
        color: #002633 !important;
        font-weight: 700 !important;
    }

        .grid-leads .dxbl-grid-header th,
        .grid-leads .dxbl-grid-header td {
            background-color: #eef3f6 !important;
            color: #002633 !important;
            border-color: #d8e1e6 !important;
        }

    .grid-leads .dxbl-grid-data-row td {
        background-color: #ffffff !important;
        color: #1f2d36 !important;
        border-color: #e6ecef !important;
    }

    .grid-leads .dxbl-grid-data-row:nth-child(even) td {
        background-color: #f9fbfc !important;
    }

    .grid-leads .dxbl-grid-data-row:hover td {
        background-color: #eef6f9 !important;
    }

    .grid-leads .dxbl-pager,
    .grid-leads .dxbl-pager-panel {
        background-color: #ffffff !important;
        color: #1f2d36 !important;
        border-top: 1px solid #e3e8ec !important;
    }

    /* Filter row */
    .grid-leads .dxbl-grid-filter-row td,
    .grid-leads .dxbl-grid-filter-row input {
        background-color: #ffffff !important;
        color: #1f2d36 !important;
    }

/* Popup */
.dxbl-popup,
.dxbl-popup-content,
.dxbl-popup-body {
    background-color: #ffffff !important;
    color: #1f2d36 !important;
}

.dxbl-popup-header {
    background-color: #f4f7f9 !important;
    color: #002633 !important;
    font-weight: 700 !important;
    border-bottom: 1px solid #e3e8ec !important;
}

.dxbl-popup-footer {
    background-color: #ffffff !important;
    border-top: 1px solid #e3e8ec !important;
}

/* Overlay del popup */
.dxbl-modal,
.dxbl-popup-modal-overlay {
    background-color: rgba(0, 0, 0, 0.35) !important;
}

/* Formulario dentro del popup */
.lead-form label,
.lead-form .form-label {
    color: #002633 !important;
    font-weight: 600 !important;
    font-size: 0.95rem;
    margin-bottom: 6px;
}

.lead-form .form-control,
.lead-form input,
.lead-form select,
.lead-form textarea {
    background-color: #f8fafb !important;
    color: #1f2d36 !important;
    border: 1px solid #cfd8dc !important;
    border-radius: 8px !important;
    min-height: 42px;
}

    .lead-form .form-control:focus,
    .lead-form input:focus,
    .lead-form select:focus,
    .lead-form textarea:focus {
        background-color: #ffffff !important;
        border-color: #002633 !important;
        box-shadow: 0 0 0 0.15rem rgba(0, 38, 51, 0.12) !important;
        outline: none !important;
    }

.lead-form option {
    color: #1f2d36;
    background-color: #ffffff;
}

/* Botones del popup */
.lead-popup-actions {
    display: flex;
    justify-content: flex-end;
    gap: .5rem;
    margin-top: 1rem;
}

    .lead-popup-actions .dxbl-btn {
        border-radius: 8px !important;
        font-weight: 600 !important;
    }

/* Validaciones */
.lead-form .validation-message {
    color: #b42318 !important;
    font-size: 0.85rem;
}

/* Inputs con texto tenue */
.lead-form input::placeholder,
.lead-form select::placeholder {
    color: #8a9aa5;
}
/* Forzar labels limpios en formulario de Leads */
.lead-form label,
.lead-form .form-label,
.lead-form .col-md-6 label,
.lead-form .dxbl-fl label {
    display: block !important;
    background: transparent !important;
    background-color: transparent !important;
    color: #002633 !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    line-height: 1.2 !important;
    margin-bottom: 8px !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

/* También asegura que los contenedores no hereden fondos raros */
.lead-form .mb-3,
.lead-form .col-md-6,
.lead-form .row {
    background: transparent !important;
}
.lead-label {
    display: block !important;
    background: transparent !important;
    color: #002633 !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    margin-bottom: 8px !important;
    padding: 0 !important;
}
/* Popup de Leads: labels forzados */
.lead-popup .lead-field-label,
.lead-popup label.lead-field-label {
    display: block !important;
    color: #002633 !important;
    background: none !important;
    background-color: transparent !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    line-height: 1.2 !important;
    margin-bottom: 8px !important;
    padding: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    text-shadow: none !important;
    outline: none !important;
}

.lead-popup .lead-form,
.lead-popup .lead-form .row,
.lead-popup .lead-form .col-md-6,
.lead-popup .lead-form .mb-3 {
    background: transparent !important;
}

/* Si el theme de DevExpress mete color raro al texto seleccionado */
.lead-popup .lead-field-label::selection {
    background: transparent !important;
    color: #002633 !important;
}

.lead-popup .lead-field-label::-moz-selection {
    background: transparent !important;
    color: #002633 !important;
}

.lead-note-button {
    background-color: #0f4f63 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    padding: 4px 10px !important;
}

.lead-nota-item {
    background: #f8fafb;
    border: 1px solid #d9e3e8;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 10px;
}

.lead-nota-fecha {
    font-size: 0.82rem;
    color: #6c7a86;
    margin-bottom: 6px;
    font-weight: 600;
}

.lead-nota-texto {
    color: #1f2d36;
    white-space: pre-wrap;
}
.lead-nota-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 6px;
}

.lead-note-delete-button {
    background-color: #c62828 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    padding: 4px 10px !important;
}

    .lead-note-delete-button:hover {
        background-color: #a61f1f !important;
    }
.lead-toolbar {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 1rem;
}

.lead-search-box {
    max-width: 420px;
    background-color: #ffffff !important;
    color: #1f2d36 !important;
    border: 1px solid #cfd8dc !important;
    border-radius: 8px !important;
    min-height: 42px;
}

    .lead-search-box:focus {
        border-color: #002633 !important;
        box-shadow: 0 0 0 0.15rem rgba(0, 38, 51, 0.12) !important;
    }

.lead-edit-button {
    background-color: #0b3a4a !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    padding: 4px 10px !important;
}

    .lead-edit-button:hover {
        background-color: #002633 !important;
    }
.lead-popup {
    max-width: 720px !important;
}

    .lead-popup .dxbl-popup-root,
    .lead-popup .dxbl-popup,
    .lead-popup .dxbl-popup-content {
        max-width: 720px !important;
        width: 90vw !important;
    }

@media (max-width: 768px) {
    .lead-popup .dxbl-popup-root,
    .lead-popup .dxbl-popup,
    .lead-popup .dxbl-popup-content {
        width: 95vw !important;
        max-width: 95vw !important;
    }
}
.lead-grid-wrapper {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    border-radius: 10px;
}

    .lead-grid-wrapper .grid-leads {
        min-width: 1100px;
    }

/* Móvil */
@media (max-width: 768px) {
    .lead-grid-wrapper .grid-leads {
        min-width: 980px;
    }

    .grid-leads .dxbl-grid-header th,
    .grid-leads .dxbl-grid-data-row td,
    .grid-leads .dxbl-grid-filter-row td {
        padding: 8px 6px !important;
        font-size: 0.85rem !important;
    }

    .lead-edit-button,
    .lead-note-button {
        font-size: 0.75rem !important;
        padding: 3px 8px !important;
        min-width: auto !important;
    }

    .lead-search-box {
        max-width: 100%;
    }

    .page-header {
        flex-direction: column;
        align-items: stretch;
        gap: .75rem;
    }

        .page-header h3 {
            margin-bottom: 0;
        }

    .lead-button {
        width: 100%;
    }
}
.lead-filtros {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.lead-filtro-item {
    min-width: 240px;
}

.lead-filtro-label {
    display: block;
    font-weight: 600;
    color: #002633;
    margin-bottom: 6px;
    font-size: 0.92rem;
}

@media (max-width: 768px) {
    .lead-filtros {
        flex-direction: column;
    }

    .lead-filtro-item {
        width: 100%;
        min-width: 100%;
    }
}
.perfil-page {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 2rem 1rem;
}

.perfil-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 700px;
}

    .perfil-card h3 {
        margin-bottom: 1.5rem;
        color: #002633;
        font-weight: 700;
    }

.perfil-label {
    display: block;
    font-weight: 600;
    color: #002633;
    margin-bottom: 6px;
}
.lead-reject-button-icon {
    background-color: #d32f2f !important;
    color: #ffffff !important;
    border-radius: 50% !important;
    width: 34px;
    height: 34px;
}
/* Botón editar */
.lead-edit-icon {
    background-color: #1976d2 !important;
    color: #ffffff !important;
    border-radius: 50% !important;
    width: 34px;
    height: 34px;
}

/* Botón notas */
.lead-note-icon {
    background-color: #546e7a !important;
    color: #ffffff !important;
    border-radius: 50% !important;
    width: 34px;
    height: 34px;
}

/* Botón rechazar */
.lead-reject-icon {
    background-color: #d32f2f !important;
    color: #ffffff !important;
    border-radius: 50% !important;
    width: 34px;
    height: 34px;
}

    .lead-reject-icon:hover {
        background-color: #b71c1c !important;
    }

/* Popup de notas responsive */
.lead-notas-popup .dxbl-popup-root,
.lead-notas-popup .dxbl-popup,
.lead-notas-popup .dxbl-popup-content {
    width: 90vw !important;
    max-width: 720px !important;
}

.lead-notas-popup-body {
    background: #ffffff;
    padding: 20px;
    border-radius: 0 0 10px 10px;
    max-height: 75vh;
    overflow-y: auto;
    overflow-x: hidden;
}

.lead-notas-popup textarea,
.lead-notas-popup .form-control,
.lead-notas-popup input {
    width: 100% !important;
    box-sizing: border-box;
}

.lead-nota-item {
    word-break: break-word;
    overflow-wrap: anywhere;
}

.lead-nota-fecha {
    font-size: 0.82rem;
    color: #6c7a86;
    margin-bottom: 6px;
    font-weight: 600;
}

.lead-nota-texto {
    color: #1f2d36;
    white-space: pre-wrap;
    word-break: break-word;
    overflow-wrap: anywhere;
}

@media (max-width: 768px) {
    .lead-notas-popup .dxbl-popup-root,
    .lead-notas-popup .dxbl-popup,
    .lead-notas-popup .dxbl-popup-content {
        width: 95vw !important;
        max-width: 95vw !important;
    }

    .lead-notas-popup-body {
        padding: 14px;
        max-height: 80vh;
    }

    .lead-nota-item {
        padding: 10px 12px;
    }

    .lead-nota-fecha {
        font-size: 0.78rem;
        line-height: 1.2;
    }

    .lead-nota-texto {
        font-size: 0.92rem;
    }
}
.flujo-popup .dxbl-popup-root,
.flujo-popup .dxbl-popup,
.flujo-popup .dxbl-popup-content {
    width: 88vw !important;
    max-width: 920px !important;
}

.flujo-popup-body {
    background: #ffffff;
    padding: 20px;
    border-radius: 0 0 10px 10px;
    max-height: 78vh;
    overflow-y: auto;
    overflow-x: hidden;
}

.flujo-paso-card {
    background: #f8fafb;
    border: 1px solid #d9e3e8;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 14px;
}

.flujo-paso-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: .75rem;
}

.flujo-paso-header-left {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.flujo-paso-titulo {
    font-weight: 700;
    color: #002633;
}

.flujo-toggle-button {
    background: transparent !important;
    color: #002633 !important;
    border: none !important;
    width: 30px;
    height: 30px;
    border-radius: 50% !important;
}

    .flujo-toggle-button:hover {
        background: #eef3f6 !important;
    }

.flujo-subpasos {
    padding-left: .75rem;
    border-left: 3px solid #dfe7eb;
    margin-top: .75rem;
}

.flujo-subpaso-item {
    margin-bottom: 1rem;
}

.flujo-subpaso-label {
    font-weight: 600;
    color: #002633;
    margin-bottom: 6px;
    font-size: 0.92rem;
}

.flujo-acciones {
    display: flex;
    justify-content: flex-end;
    gap: .75rem;
    margin-top: 1.25rem;
}

.avance-cell {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.avance-barra-bg {
    width: 120px;
    height: 10px;
    background: #dfe7eb;
    border-radius: 999px;
    overflow: hidden;
}

.avance-barra-fill {
    height: 100%;
    background: linear-gradient(90deg, #0f4f63, #1976d2);
    border-radius: 999px;
}

.avance-texto {
    font-size: 0.85rem;
    font-weight: 600;
    color: #002633;
}

@media (max-width: 768px) {
    .flujo-popup .dxbl-popup-root,
    .flujo-popup .dxbl-popup,
    .flujo-popup .dxbl-popup-content {
        width: 96vw !important;
        max-width: 96vw !important;
    }

    .flujo-popup-body {
        padding: 14px;
        max-height: 82vh;
    }

    .flujo-paso-header {
        align-items: flex-start;
    }

    .flujo-acciones {
        flex-direction: column;
    }

        .flujo-acciones .dxbl-btn {
            width: 100%;
        }

    .avance-cell {
        flex-direction: column;
        align-items: flex-start;
        gap: .35rem;
    }

    .avance-barra-bg {
        width: 100px;
    }

    .lead-grid-wrapper .grid-leads {
        min-width: 900px;
    }
}
.config-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.config-link {
    flex: 1;
}

.config-arrow-btn {
    background: transparent;
    border: none;
    color: white;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
}

    .config-arrow-btn:hover {
        opacity: 0.85;
    }

.sub-nav-link {
    padding-left: 2.5rem !important;
    font-size: 0.95rem;
}

/* =========================
   POPUP EQUIPOS ESTILO CLARO
   ========================= */

.equipo-popup .dx-overlay-content,
.equipo-popup .dx-popup-content,
.equipo-popup .dxbs-popup-body,
.equipo-popup .dxbl-popup-content {
    background: #ffffff !important;
    color: #111111 !important;
    border-radius: 0 0 12px 12px;
}

/* Header del popup */
.equipo-popup .dx-popup-title,
.equipo-popup .dxbs-popup-header,
.equipo-popup .dxbl-popup-header {
    background: #ffffff !important;
    color: #0b2c48 !important;
    font-weight: 700;
    border-bottom: 1px solid #e5e7eb;
}

/* Contenedor interno */
.equipo-form {
    background: #ffffff !important;
    color: #111111 !important;
    padding: 0.25rem 0.25rem 0.5rem 0.25rem;
}

    /* Labels */
    .equipo-form label,
    .equipo-form .lead-label,
    .equipo-form .form-label {
        color: #111111 !important;
        font-weight: 600;
        margin-bottom: 0.35rem;
        display: inline-block;
    }

    /* Títulos de sección */
    .equipo-form h5,
    .equipo-form h6 {
        color: #111111 !important;
        font-weight: 700;
        margin-bottom: 0.75rem;
    }

    /* Inputs */
    .equipo-form .form-control,
    .equipo-form .form-select,
    .equipo-form input,
    .equipo-form select,
    .equipo-form textarea {
        background: #ffffff !important;
        color: #111111 !important;
        border: 1px solid #ced4da !important;
        border-radius: 8px;
    }

        /* Focus */
        .equipo-form .form-control:focus,
        .equipo-form .form-select:focus,
        .equipo-form input:focus,
        .equipo-form select:focus,
        .equipo-form textarea:focus {
            border-color: #86b7fe !important;
            box-shadow: 0 0 0 0.2rem rgba(13,110,253,.15) !important;
            color: #111111 !important;
            background: #ffffff !important;
        }

    /* Checkbox */
    .equipo-form .form-check-input {
        background-color: #ffffff !important;
        border: 1px solid #adb5bd !important;
    }

    /* Tabla de miembros */
    .equipo-form .table {
        background: #ffffff !important;
        color: #111111 !important;
        border-color: #dee2e6 !important;
    }

        .equipo-form .table th {
            background: #f8f9fa !important;
            color: #111111 !important;
            font-weight: 700;
            border-color: #dee2e6 !important;
        }

        .equipo-form .table td {
            background: #ffffff !important;
            color: #111111 !important;
            border-color: #dee2e6 !important;
            vertical-align: middle;
        }

    /* Línea divisoria */
    .equipo-form hr {
        border-color: #dee2e6 !important;
        opacity: 1;
    }

/* Footer del popup */
.equipo-popup .dxbs-popup-footer,
.equipo-popup .dxbl-popup-footer,
.equipo-popup .dx-popup-bottom {
    background: #ffffff !important;
    border-top: 1px solid #e5e7eb;
}

/* Mensajes de error */
.equipo-form .alert-danger {
    background: #f8d7da;
    color: #842029;
    border: 1px solid #f5c2c7;
}
.filtro-equipo-select {
    background-color: #ffffff !important;
    color: #212529 !important;
    border: 1px solid #ced4da !important;
}

    .filtro-equipo-select:focus {
        background-color: #ffffff !important;
        color: #212529 !important;
        border-color: #86b7fe !important;
        box-shadow: 0 0 0 0.2rem rgba(13,110,253,.15) !important;
    }

.lead-search-box {
    background-color: #ffffff !important;
    color: #212529 !important;
}
.btn-contactos-icono,
.btn-icono-editar,
.btn-icono-eliminar {
    min-width: 38px;
    height: 34px;
    padding: 0.3rem 0.6rem;
    border-radius: 8px;
}

.btn-contactos-icono {
    background: #0b3b59 !important;
    color: #fff !important;
    border: none !important;
}

.btn-icono-editar {
    background: #0d6efd !important;
    color: #fff !important;
    border: none !important;
}

.btn-icono-eliminar {
    background: #dc3545 !important;
    color: #fff !important;
    border: none !important;
}

@import url('open.iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

.button-link {
    text-decoration: unset;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

/* ---------------------------
   Textos generales del template
---------------------------- */
.title {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-bottom: 0.625rem;
}

    .title.title-secondary {
        padding-top: 0.313rem;
        padding-bottom: 0;
        color: var(--bs-secondary-color);
    }

.title-header-text {
    font-size: 2.5rem;
    line-height: 3rem;
    font-weight: 600;
    letter-spacing: 0rem;
    padding: 0.3125rem 0;
}

.title-content-text {
    font-size: 1.75rem;
    font-weight: 400;
    line-height: 2.5rem;
    letter-spacing: 0rem;
}

.main-content {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
}

.block-content {
    width: 31.25rem;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    max-width: 100%;
}

.or {
    display: flex;
    flex-direction: row;
    align-items: center;
}

    .or .or-line {
        border-bottom: 1px solid var(--bs-body-color);
        width: 100%;
        opacity: 0.2;
    }

    .or .or-text {
        padding: 0 0.625rem 0 0.625rem;
        font-size: 0.75rem;
        line-height: 1.125rem;
        color: var(--bs-body-color);
        opacity: 0.7;
    }

.links-area {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    padding-top: 0.625rem;
}

.links-container {
    display: flex;
    gap: 0.25rem;
    justify-content: center;
    align-items: center;
}

    .links-container .dot {
        height: 0.3125rem;
        width: 0.3125rem;
        margin: 0 0.1875rem;
        border-radius: 50%;
        background-color: var(--bs-body-color);
        opacity: 0.7;
    }

.manage-layout {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.info-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.15;
    background: var(--bs-primary);
    z-index: -1;
}

.info-message {
    padding: 0.625rem 1rem 0.625rem 1rem;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .info-message.info-panel {
        margin-bottom: 0.625rem;
    }

.manage-content {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.large-input {
    height: 4.3125rem;
    font-size: 1.875rem;
}

.title-content-text-secondary {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.button-group {
    display: flex;
    flex-direction: row;
    gap: 0.625rem;
}

.confirm-button {
    margin-top: 0.3125rem;
}

.display-desktop {
    display: block;
}

.display-mobile {
    display: none;
}

.icon-external-provider {
    width: 1rem;
    height: 1rem;
}

.icon-google {
    background-image: url("/images/account/providers/google-logo.svg");
}

.icon-facebook {
    background-image: url("/images/account/providers/facebook-logo.svg");
}

.icon-microsoft {
    background-image: url("/images/account/providers/microsoft-logo.svg");
}

.icon-twitter {
    background-image: url("/images/account/providers/x-logo.svg");
}

/* ---------------------------
   LOGIN
---------------------------- */
.login-shell {
    min-height: 100vh;
}

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(135deg, #002633 0%, #00384b 100%);
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border-radius: 14px;
    padding: 2.5rem;
    box-shadow: 0 20px 45px rgba(0, 0, 0, .25);
}

.login-brand {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo {
    max-width: 120px;
    margin-bottom: 1rem;
}

.login-brand h1 {
    font-size: 1.8rem;
    margin: 0;
    color: #002633;
    font-weight: 700;
}

.login-brand p {
    color: #5a6b75;
    font-size: .95rem;
}

.form-label {
    font-weight: 600;
    color: #002633;
    font-size: 0.95rem;
    margin-bottom: 6px;
}

.login-input {
    height: 46px;
    border-radius: 8px;
    border: 1px solid #cfd8dc;
    background-color: #f4f7f9;
    color: #002633;
    padding: 0 12px;
    transition: all .2s ease;
}

    .login-input:focus {
        background-color: #ffffff;
        border-color: #002633;
        box-shadow: 0 0 0 .15rem rgba(0, 38, 51, .15);
        outline: none;
    }

    .login-input::placeholder {
        color: #90a4ae;
    }

.login-card input {
    background-color: #f4f7f9 !important;
    color: #002633 !important;
    border: 1px solid #cfd8dc !important;
}

.login-btn-primary {
    height: 46px;
    background: #002633;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    color: white;
}

    .login-btn-primary:hover {
        background: #00384b;
    }

.login-btn-success {
    height: 46px;
    background: #0f4f63;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    color: white;
}

    .login-btn-success:hover {
        background: #0b3c4a;
    }

.agent-box {
    background: #f3f7f9;
    border-left: 4px solid #002633;
    padding: .9rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.agent-label {
    font-size: .75rem;
    text-transform: uppercase;
    color: #7b8b95;
    letter-spacing: .05em;
}

.agent-name {
    font-weight: 600;
    color: #002633;
    font-size: 1rem;
}

.login-alert-error {
    background: #ffe4e4;
    border: 1px solid #ffb3b3;
    color: #9c1c1c;
    border-radius: 6px;
}

.login-alert-info {
    background: #e6f3f7;
    border: 1px solid #b6dbe5;
    color: #0f4f63;
    border-radius: 6px;
}

.login-link {
    color: #002633;
}

/* ---------------------------
   APP / LAYOUT GENERAL
---------------------------- */
:root {
    --innovika-blue: #002633;
    --innovika-blue-soft: #0b3a4a;
    --innovika-page: #f4f7f9;
    --innovika-text: #1f2d36;
    --innovika-muted: #6c7a86;
}

.page {
    background-color: var(--innovika-page) !important;
}

/* Sidebar / Drawer */
.navigation-drawer,
.navigation-drawer .dxbl-drawer-panel,
.navigation-drawer .dxbl-drawer-body,
.navigation-drawer .dxbl-drawer-header,
.navigation-drawer .dxbl-drawer-footer {
    background: linear-gradient(180deg, var(--innovika-blue) 0%, var(--innovika-blue-soft) 100%) !important;
    color: #ffffff !important;
    border-right: none !important;
}

/* Header del sidebar */
.innovika-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1rem;
    min-height: 76px;
    border-bottom: 1px solid rgba(255, 255, 255, .10);
    background: transparent !important;
}

.innovika-brand {
    display: flex;
    align-items: center;
}

.innovika-drawer-title {
    color: #ffffff;
    font-size: 1.55rem;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -.02em;
}

/* Botones del drawer */
.navigation-drawer .menu-button-nav,
.navigation-drawer .menu-button,
.navigation-drawer .dxbl-btn {
    color: #ffffff !important;
}

/* Menú lateral */
.navigation-drawer .nav-link {
    color: rgba(255, 255, 255, .92) !important;
    border-radius: 10px;
    margin: 4px 10px;
    padding: 10px 12px;
    transition: all .2s ease;
}

    .navigation-drawer .nav-link:hover {
        background-color: rgba(255, 255, 255, .10) !important;
        color: #ffffff !important;
    }

    .navigation-drawer .nav-link.active {
        background-color: rgba(255, 255, 255, .16) !important;
        color: #ffffff !important;
        font-weight: 600;
    }

/* Oculta el checkbox raro del template */
.navbar-toggler {
    display: none !important;
}

/* Área superior derecha */
.nav-buttons-container {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .75rem 1rem;
    background-color: #ffffff;
    border-bottom: 1px solid #e3e8ec;
}

    .nav-buttons-container .menu-button,
    .nav-buttons-container .menu-button-nav,
    .nav-buttons-container .dxbl-btn {
        color: var(--innovika-blue) !important;
    }

/* Contenido principal */
.p-4 {
    background-color: var(--innovika-page);
    min-height: calc(100vh - 64px);
    color: var(--innovika-text);
}

/* Oculta pie demo residual */
.footer-button,
.docs-icon,
.demos-icon {
    display: none !important;
}

/* Ajustes responsivos */
@media (max-width: 768px) {
    .display-desktop {
        display: none;
    }

    .display-mobile {
        display: block;
    }
}

.header-action-button {
    color: #002633 !important;
    font-weight: 500;
}

 .header-action-button:hover {
        color: #00384b !important;
 }

.inicio-crm {
    width: 100%;
    min-height: calc(100vh - 140px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.inicio-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 720px;
    width: 100%;
}

.inicio-logo {
    max-width: 420px;
    width: 100%;
    height: auto;
    object-fit: contain;
}


/* ---------------------------
   LEADS - GRID Y POPUP
---------------------------- */

/* Encabezado de página */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

    .page-header h3 {
        margin: 0;
        color: #002633;
        font-weight: 700;
    }

/* Botón Nuevo Lead */
.lead-button {
    background-color: #002633 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    font-weight: 600;
}

/* Grid */
.grid-leads,
.grid-leads .dxbl-grid,
.grid-leads .dxbl-grid-table,
.grid-leads .dxbl-grid-content,
.grid-leads .dxbl-grid-content-table {
    background-color: #ffffff !important;
    color: #1f2d36 !important;
}

    .grid-leads .dxbl-grid-header {
        background-color: #eef3f6 !important;
        color: #002633 !important;
        font-weight: 700 !important;
    }

        .grid-leads .dxbl-grid-header th,
        .grid-leads .dxbl-grid-header td {
            background-color: #eef3f6 !important;
            color: #002633 !important;
            border-color: #d8e1e6 !important;
        }

    .grid-leads .dxbl-grid-data-row td {
        background-color: #ffffff !important;
        color: #1f2d36 !important;
        border-color: #e6ecef !important;
    }

    .grid-leads .dxbl-grid-data-row:nth-child(even) td {
        background-color: #f9fbfc !important;
    }

    .grid-leads .dxbl-grid-data-row:hover td {
        background-color: #eef6f9 !important;
    }

    .grid-leads .dxbl-pager,
    .grid-leads .dxbl-pager-panel {
        background-color: #ffffff !important;
        color: #1f2d36 !important;
        border-top: 1px solid #e3e8ec !important;
    }

    /* Filter row */
    .grid-leads .dxbl-grid-filter-row td,
    .grid-leads .dxbl-grid-filter-row input {
        background-color: #ffffff !important;
        color: #1f2d36 !important;
    }

/* Popup */
.dxbl-popup,
.dxbl-popup-content,
.dxbl-popup-body {
    background-color: #ffffff !important;
    color: #1f2d36 !important;
}

.dxbl-popup-header {
    background-color: #f4f7f9 !important;
    color: #002633 !important;
    font-weight: 700 !important;
    border-bottom: 1px solid #e3e8ec !important;
}

.dxbl-popup-footer {
    background-color: #ffffff !important;
    border-top: 1px solid #e3e8ec !important;
}

/* Overlay del popup */
.dxbl-modal,
.dxbl-popup-modal-overlay {
    background-color: rgba(0, 0, 0, 0.35) !important;
}

/* Formulario dentro del popup */
.lead-form label,
.lead-form .form-label {
    color: #002633 !important;
    font-weight: 600 !important;
    font-size: 0.95rem;
    margin-bottom: 6px;
}

.lead-form .form-control,
.lead-form input,
.lead-form select,
.lead-form textarea {
    background-color: #f8fafb !important;
    color: #1f2d36 !important;
    border: 1px solid #cfd8dc !important;
    border-radius: 8px !important;
    min-height: 42px;
}

    .lead-form .form-control:focus,
    .lead-form input:focus,
    .lead-form select:focus,
    .lead-form textarea:focus {
        background-color: #ffffff !important;
        border-color: #002633 !important;
        box-shadow: 0 0 0 0.15rem rgba(0, 38, 51, 0.12) !important;
        outline: none !important;
    }

.lead-form option {
    color: #1f2d36;
    background-color: #ffffff;
}

/* Botones del popup */
.lead-popup-actions {
    display: flex;
    justify-content: flex-end;
    gap: .5rem;
    margin-top: 1rem;
}

    .lead-popup-actions .dxbl-btn {
        border-radius: 8px !important;
        font-weight: 600 !important;
    }

/* Validaciones */
.lead-form .validation-message {
    color: #b42318 !important;
    font-size: 0.85rem;
}

/* Inputs con texto tenue */
.lead-form input::placeholder,
.lead-form select::placeholder {
    color: #8a9aa5;
}
/* Forzar labels limpios en formulario de Leads */
.lead-form label,
.lead-form .form-label,
.lead-form .col-md-6 label,
.lead-form .dxbl-fl label {
    display: block !important;
    background: transparent !important;
    background-color: transparent !important;
    color: #002633 !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    line-height: 1.2 !important;
    margin-bottom: 8px !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

/* También asegura que los contenedores no hereden fondos raros */
.lead-form .mb-3,
.lead-form .col-md-6,
.lead-form .row {
    background: transparent !important;
}

.lead-label {
    display: block !important;
    background: transparent !important;
    color: #002633 !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    margin-bottom: 8px !important;
    padding: 0 !important;
}
/* Popup de Leads: labels forzados */
.lead-popup .lead-field-label,
.lead-popup label.lead-field-label {
    display: block !important;
    color: #002633 !important;
    background: none !important;
    background-color: transparent !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    line-height: 1.2 !important;
    margin-bottom: 8px !important;
    padding: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    text-shadow: none !important;
    outline: none !important;
}

.lead-popup .lead-form,
.lead-popup .lead-form .row,
.lead-popup .lead-form .col-md-6,
.lead-popup .lead-form .mb-3 {
    background: transparent !important;
}

/* Si el theme de DevExpress mete color raro al texto seleccionado */
.lead-popup .lead-field-label::selection {
    background: transparent !important;
    color: #002633 !important;
}

.lead-popup .lead-field-label::-moz-selection {
    background: transparent !important;
    color: #002633 !important;
}

.lead-note-button {
    background-color: #0f4f63 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    padding: 4px 10px !important;
}

.lead-nota-item {
    background: #f8fafb;
    border: 1px solid #d9e3e8;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 10px;
}

.lead-nota-fecha {
    font-size: 0.82rem;
    color: #6c7a86;
    margin-bottom: 6px;
    font-weight: 600;
}

.lead-nota-texto {
    color: #1f2d36;
    white-space: pre-wrap;
}

.lead-nota-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 6px;
}

.lead-note-delete-button {
    background-color: #c62828 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    padding: 4px 10px !important;
}

    .lead-note-delete-button:hover {
        background-color: #a61f1f !important;
    }

.lead-toolbar {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 1rem;
}

.lead-search-box {
    max-width: 420px;
    background-color: #ffffff !important;
    color: #1f2d36 !important;
    border: 1px solid #cfd8dc !important;
    border-radius: 8px !important;
    min-height: 42px;
}

    .lead-search-box:focus {
        border-color: #002633 !important;
        box-shadow: 0 0 0 0.15rem rgba(0, 38, 51, 0.12) !important;
    }

.lead-edit-button {
    background-color: #0b3a4a !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    padding: 4px 10px !important;
}

    .lead-edit-button:hover {
        background-color: #002633 !important;
    }

.lead-popup {
    max-width: 720px !important;
}

    .lead-popup .dxbl-popup-root,
    .lead-popup .dxbl-popup,
    .lead-popup .dxbl-popup-content {
        max-width: 720px !important;
        width: 90vw !important;
    }

@media (max-width: 768px) {
    .lead-popup .dxbl-popup-root,
    .lead-popup .dxbl-popup,
    .lead-popup .dxbl-popup-content {
        width: 95vw !important;
        max-width: 95vw !important;
    }
}

.lead-grid-wrapper {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    border-radius: 10px;
}

    .lead-grid-wrapper .grid-leads {
        min-width: 1100px;
    }

/* Móvil */
@media (max-width: 768px) {
    .lead-grid-wrapper .grid-leads {
        min-width: 980px;
    }

    .grid-leads .dxbl-grid-header th,
    .grid-leads .dxbl-grid-data-row td,
    .grid-leads .dxbl-grid-filter-row td {
        padding: 8px 6px !important;
        font-size: 0.85rem !important;
    }

    .lead-edit-button,
    .lead-note-button {
        font-size: 0.75rem !important;
        padding: 3px 8px !important;
        min-width: auto !important;
    }

    .lead-search-box {
        max-width: 100%;
    }

    .page-header {
        flex-direction: column;
        align-items: stretch;
        gap: .75rem;
    }

        .page-header h3 {
            margin-bottom: 0;
        }

    .lead-button {
        width: 100%;
    }
}

.lead-filtros {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.lead-filtro-item {
    min-width: 240px;
}

.lead-filtro-label {
    display: block;
    font-weight: 600;
    color: #002633;
    margin-bottom: 6px;
    font-size: 0.92rem;
}

@media (max-width: 768px) {
    .lead-filtros {
        flex-direction: column;
    }

    .lead-filtro-item {
        width: 100%;
        min-width: 100%;
    }
}

.perfil-page {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 2rem 1rem;
}

.perfil-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 700px;
}

    .perfil-card h3 {
        margin-bottom: 1.5rem;
        color: #002633;
        font-weight: 700;
    }

.perfil-label {
    display: block;
    font-weight: 600;
    color: #002633;
    margin-bottom: 6px;
}

.lead-reject-button-icon {
    background-color: #d32f2f !important;
    color: #ffffff !important;
    border-radius: 50% !important;
    width: 34px;
    height: 34px;
}
/* Botón editar */
.lead-edit-icon {
    background-color: #1976d2 !important;
    color: #ffffff !important;
    border-radius: 50% !important;
    width: 34px;
    height: 34px;
}

/* Botón notas */
.lead-note-icon {
    background-color: #546e7a !important;
    color: #ffffff !important;
    border-radius: 50% !important;
    width: 34px;
    height: 34px;
}

/* Botón rechazar */
.lead-reject-icon {
    background-color: #d32f2f !important;
    color: #ffffff !important;
    border-radius: 50% !important;
    width: 34px;
    height: 34px;
}

    .lead-reject-icon:hover {
        background-color: #b71c1c !important;
    }

/* Popup de notas responsive */
.lead-notas-popup .dxbl-popup-root,
.lead-notas-popup .dxbl-popup,
.lead-notas-popup .dxbl-popup-content {
    width: 90vw !important;
    max-width: 720px !important;
}

.lead-notas-popup-body {
    background: #ffffff;
    padding: 20px;
    border-radius: 0 0 10px 10px;
    max-height: 75vh;
    overflow-y: auto;
    overflow-x: hidden;
}

.lead-notas-popup textarea,
.lead-notas-popup .form-control,
.lead-notas-popup input {
    width: 100% !important;
    box-sizing: border-box;
}

.lead-nota-item {
    word-break: break-word;
    overflow-wrap: anywhere;
}

.lead-nota-fecha {
    font-size: 0.82rem;
    color: #6c7a86;
    margin-bottom: 6px;
    font-weight: 600;
}

.lead-nota-texto {
    color: #1f2d36;
    white-space: pre-wrap;
    word-break: break-word;
    overflow-wrap: anywhere;
}

@media (max-width: 768px) {
    .lead-notas-popup .dxbl-popup-root,
    .lead-notas-popup .dxbl-popup,
    .lead-notas-popup .dxbl-popup-content {
        width: 95vw !important;
        max-width: 95vw !important;
    }

    .lead-notas-popup-body {
        padding: 14px;
        max-height: 80vh;
    }

    .lead-nota-item {
        padding: 10px 12px;
    }

    .lead-nota-fecha {
        font-size: 0.78rem;
        line-height: 1.2;
    }

    .lead-nota-texto {
        font-size: 0.92rem;
    }
}

.flujo-popup .dxbl-popup-root,
.flujo-popup .dxbl-popup,
.flujo-popup .dxbl-popup-content {
    width: 88vw !important;
    max-width: 920px !important;
}

.flujo-popup-body {
    background: #ffffff;
    padding: 20px;
    border-radius: 0 0 10px 10px;
    max-height: 78vh;
    overflow-y: auto;
    overflow-x: hidden;
}

.flujo-paso-card {
    background: #f8fafb;
    border: 1px solid #d9e3e8;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 14px;
}

.flujo-paso-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: .75rem;
}

.flujo-paso-header-left {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.flujo-paso-titulo {
    font-weight: 700;
    color: #002633;
}

.flujo-toggle-button {
    background: transparent !important;
    color: #002633 !important;
    border: none !important;
    width: 30px;
    height: 30px;
    border-radius: 50% !important;
}

    .flujo-toggle-button:hover {
        background: #eef3f6 !important;
    }

.flujo-subpasos {
    padding-left: .75rem;
    border-left: 3px solid #dfe7eb;
    margin-top: .75rem;
}

.flujo-subpaso-item {
    margin-bottom: 1rem;
}

.flujo-subpaso-label {
    font-weight: 600;
    color: #002633;
    margin-bottom: 6px;
    font-size: 0.92rem;
}

.flujo-acciones {
    display: flex;
    justify-content: flex-end;
    gap: .75rem;
    margin-top: 1.25rem;
}

.avance-cell {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.avance-barra-bg {
    width: 120px;
    height: 10px;
    background: #dfe7eb;
    border-radius: 999px;
    overflow: hidden;
}

.avance-barra-fill {
    height: 100%;
    background: linear-gradient(90deg, #0f4f63, #1976d2);
    border-radius: 999px;
}

.avance-texto {
    font-size: 0.85rem;
    font-weight: 600;
    color: #002633;
}

@media (max-width: 768px) {
    .flujo-popup .dxbl-popup-root,
    .flujo-popup .dxbl-popup,
    .flujo-popup .dxbl-popup-content {
        width: 96vw !important;
        max-width: 96vw !important;
    }

    .flujo-popup-body {
        padding: 14px;
        max-height: 82vh;
    }

    .flujo-paso-header {
        align-items: flex-start;
    }

    .flujo-acciones {
        flex-direction: column;
    }

        .flujo-acciones .dxbl-btn {
            width: 100%;
        }

    .avance-cell {
        flex-direction: column;
        align-items: flex-start;
        gap: .35rem;
    }

    .avance-barra-bg {
        width: 100px;
    }

    .lead-grid-wrapper .grid-leads {
        min-width: 900px;
    }
}

.config-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.config-link {
    flex: 1;
}

.config-arrow-btn {
    background: transparent;
    border: none;
    color: white;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
}

    .config-arrow-btn:hover {
        opacity: 0.85;
    }

.sub-nav-link {
    padding-left: 2.5rem !important;
    font-size: 0.95rem;
}

/* =========================
   POPUP EQUIPOS ESTILO CLARO
   ========================= */

.equipo-popup .dx-overlay-content,
.equipo-popup .dx-popup-content,
.equipo-popup .dxbs-popup-body,
.equipo-popup .dxbl-popup-content {
    background: #ffffff !important;
    color: #111111 !important;
    border-radius: 0 0 12px 12px;
}

/* Header del popup */
.equipo-popup .dx-popup-title,
.equipo-popup .dxbs-popup-header,
.equipo-popup .dxbl-popup-header {
    background: #ffffff !important;
    color: #0b2c48 !important;
    font-weight: 700;
    border-bottom: 1px solid #e5e7eb;
}

/* Contenedor interno */
.equipo-form {
    background: #ffffff !important;
    color: #111111 !important;
    padding: 0.25rem 0.25rem 0.5rem 0.25rem;
}

    /* Labels */
    .equipo-form label,
    .equipo-form .lead-label,
    .equipo-form .form-label {
        color: #111111 !important;
        font-weight: 600;
        margin-bottom: 0.35rem;
        display: inline-block;
    }

    /* Títulos de sección */
    .equipo-form h5,
    .equipo-form h6 {
        color: #111111 !important;
        font-weight: 700;
        margin-bottom: 0.75rem;
    }

    /* Inputs */
    .equipo-form .form-control,
    .equipo-form .form-select,
    .equipo-form input,
    .equipo-form select,
    .equipo-form textarea {
        background: #ffffff !important;
        color: #111111 !important;
        border: 1px solid #ced4da !important;
        border-radius: 8px;
    }

        /* Focus */
        .equipo-form .form-control:focus,
        .equipo-form .form-select:focus,
        .equipo-form input:focus,
        .equipo-form select:focus,
        .equipo-form textarea:focus {
            border-color: #86b7fe !important;
            box-shadow: 0 0 0 0.2rem rgba(13,110,253,.15) !important;
            color: #111111 !important;
            background: #ffffff !important;
        }

    /* Checkbox */
    .equipo-form .form-check-input {
        background-color: #ffffff !important;
        border: 1px solid #adb5bd !important;
    }

    /* Tabla de miembros */
    .equipo-form .table {
        background: #ffffff !important;
        color: #111111 !important;
        border-color: #dee2e6 !important;
    }

        .equipo-form .table th {
            background: #f8f9fa !important;
            color: #111111 !important;
            font-weight: 700;
            border-color: #dee2e6 !important;
        }

        .equipo-form .table td {
            background: #ffffff !important;
            color: #111111 !important;
            border-color: #dee2e6 !important;
            vertical-align: middle;
        }

    /* Línea divisoria */
    .equipo-form hr {
        border-color: #dee2e6 !important;
        opacity: 1;
    }

/* Footer del popup */
.equipo-popup .dxbs-popup-footer,
.equipo-popup .dxbl-popup-footer,
.equipo-popup .dx-popup-bottom {
    background: #ffffff !important;
    border-top: 1px solid #e5e7eb;
}

/* Mensajes de error */
.equipo-form .alert-danger {
    background: #f8d7da;
    color: #842029;
    border: 1px solid #f5c2c7;
}

.filtro-equipo-select {
    background-color: #ffffff !important;
    color: #212529 !important;
    border: 1px solid #ced4da !important;
}

    .filtro-equipo-select:focus {
        background-color: #ffffff !important;
        color: #212529 !important;
        border-color: #86b7fe !important;
        box-shadow: 0 0 0 0.2rem rgba(13,110,253,.15) !important;
    }

.lead-search-box {
    background-color: #ffffff !important;
    color: #212529 !important;
}

.btn-contactos-icono,
.btn-icono-editar,
.btn-icono-eliminar {
    min-width: 38px;
    height: 34px;
    padding: 0.3rem 0.6rem;
    border-radius: 8px;
}

.btn-contactos-icono {
    background: #0b3b59 !important;
    color: #fff !important;
    border: none !important;
}

.btn-icono-editar {
    background: #0d6efd !important;
    color: #fff !important;
    border: none !important;
}

.btn-icono-eliminar {
    background: #dc3545 !important;
    color: #fff !important;
    border: none !important;
}

/* =========================================================
   CONTACTOS - FORZAR TEMA CLARO
   
========================================================= */

.contactos-popup,
.contacto-edit-popup{
    color: #111111 !important;
}

    /* Popup completo */
    .contactos-popup .dxbl-popup,
    .contactos-popup .dxbl-popup-content,
    .contactos-popup .dxbl-popup-body,
    .contactos-popup .dxbl-popup-header,
    .contactos-popup .dxbl-popup-footer,
    .contactos-popup .dxbs-popup-body,
    .contactos-popup .dxbs-popup-header,
    .contactos-popup .dxbs-popup-footer,
    .contactos-popup .dx-popup-content,
    .contactos-popup .dx-popup-title,
    .contactos-popup .dx-popup-bottom,
    .contactos-popup .dx-overlay-content,
    .contacto-edit-popup .dxbl-popup,
    .contacto-edit-popup .dxbl-popup-content,
    .contacto-edit-popup .dxbl-popup-body,
    .contacto-edit-popup .dxbl-popup-header,
    .contacto-edit-popup .dxbl-popup-footer,
    .contacto-edit-popup .dxbs-popup-body,
    .contacto-edit-popup .dxbs-popup-header,
    .contacto-edit-popup .dxbs-popup-footer,
    .contacto-edit-popup .dx-popup-content,
    .contacto-edit-popup .dx-popup-title,
    .contacto-edit-popup .dx-popup-bottom,
    .contacto-edit-popup .dx-overlay-content {
        background: #ffffff !important;
        color: #111111 !important;
    }

    /* Header */
    .contactos-popup .dxbl-popup-header,
    .contactos-popup .dxbs-popup-header,
    .contactos-popup .dx-popup-title,
    .contacto-edit-popup .dxbl-popup-header,
    .contacto-edit-popup .dxbs-popup-header,
    .contacto-edit-popup .dx-popup-title {
        background: #ffffff !important;
        color: #002633 !important;
        border-bottom: 1px solid #dee2e6 !important;
        font-weight: 700 !important;
    }

    /* Footer */
    .contactos-popup .dxbl-popup-footer,
    .contactos-popup .dxbs-popup-footer,
    .contactos-popup .dx-popup-bottom,
    .contacto-edit-popup .dxbl-popup-footer,
    .contacto-edit-popup .dxbs-popup-footer,
    .contacto-edit-popup .dx-popup-bottom {
        background: #ffffff !important;
        border-top: 1px solid #dee2e6 !important;
    }

/* Cuerpo */
.contactos-popup-body,
.contacto-edit-form {
    background: #ffffff !important;
    color: #111111 !important;
}

    /* Texto interno */
    .contactos-popup-body,
    .contactos-popup-body *:not(.badge):not(.bi),
    .contacto-edit-form,
    .contacto-edit-form *:not(.badge):not(.bi) {
        color: #111111 !important;
    }

/* Tabla */
.contactos-table,
.contactos-table thead,
.contactos-table tbody,
.contactos-table tr {
    background: #ffffff !important;
}

    .contactos-table th {
        background: #f8f9fa !important;
        color: #111111 !important;
        font-weight: 700 !important;
        border-color: #dee2e6 !important;
    }

    .contactos-table td {
        background: #ffffff !important;
        color: #111111 !important;
        border-color: #dee2e6 !important;
    }

    .contactos-table tbody tr:hover td {
        background: #f5f7f9 !important;
    }

/* Formulario edición contacto */
.contacto-edit-form label,
.contacto-edit-form .form-label {
    color: #111111 !important;
    font-weight: 600 !important;
}

.contacto-edit-form .form-control,
.contacto-edit-form .form-select,
.contacto-edit-form input,
.contacto-edit-form select,
.contacto-edit-form textarea {
    background: #ffffff !important;
    color: #111111 !important;
    border: 1px solid #ced4da !important;
    border-radius: 8px !important;
}

    .contacto-edit-form .form-control:focus,
    .contacto-edit-form .form-select:focus,
    .contacto-edit-form input:focus,
    .contacto-edit-form select:focus,
    .contacto-edit-form textarea:focus {
        background: #ffffff !important;
        color: #111111 !important;
        border-color: #86b7fe !important;
        box-shadow: 0 0 0 0.2rem rgba(13,110,253,.15) !important;
    }

/* Botón de contactos del grid */
.btn-contactos-icono,
.btn-contactos-icono .dxbl-btn,
.btn-contactos-icono span,
.btn-contactos-icono i,
.btn-contactos-icono .bi {
    background: #ffffff !important;
    color: #0d6efd !important;
    border: 1px solid #cfd8dc !important;
    border-radius: 8px !important;
}

/* Botones editar/eliminar */
.btn-icono-editar,
.btn-icono-editar span,
.btn-icono-editar i,
.btn-icono-editar .bi {
    background: #0d6efd !important;
    color: #ffffff !important;
    border: none !important;
}

.btn-icono-eliminar,
.btn-icono-eliminar span,
.btn-icono-eliminar i,
.btn-icono-eliminar .bi {
    background: #dc3545 !important;
    color: #ffffff !important;
    border: none !important;
}
/* =========================================================
   POPUP CONTACTOS - VERSION CLARA Y LIMPIA
========================================================= */

.contactos-popup .dxbl-popup,
.contactos-popup .dxbl-popup-content,
.contactos-popup .dxbl-popup-body,
.contactos-popup .dxbl-popup-header,
.contactos-popup .dxbl-popup-footer,
.contactos-popup .dxbs-popup,
.contactos-popup .dxbs-popup-content,
.contactos-popup .dxbs-popup-body,
.contactos-popup .dxbs-popup-header,
.contactos-popup .dxbs-popup-footer,
.contactos-popup .dx-popup-content,
.contactos-popup .dx-popup-title,
.contactos-popup .dx-popup-bottom,
.contactos-popup .dx-overlay-content {
    background: #ffffff !important;
    color: #111111 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12) !important;
}

/* Header */
.contactos-popup .dxbl-popup-header,
.contactos-popup .dxbs-popup-header,
.contactos-popup .dx-popup-title {
    background: #ffffff !important;
    color: #002633 !important;
    border-bottom: 1px solid #e9ecef !important;
    font-weight: 700 !important;
}

/* Footer */
.contactos-popup .dxbl-popup-footer,
.contactos-popup .dxbs-popup-footer,
.contactos-popup .dx-popup-bottom {
    background: #ffffff !important;
    border-top: 1px solid #e9ecef !important;
}

/* Contenido */
.contactos-popup-body {
    background: #ffffff !important;
    color: #111111 !important;
    padding: 0.75rem 0.85rem 0.5rem 0.85rem !important;
}

    .contactos-popup-body h5 {
        color: #111111 !important;
        font-weight: 700 !important;
        margin-bottom: 0.1rem !important;
    }

    .contactos-popup-body small {
        color: #6c757d !important;
    }

/* Tabla */
.contactos-table {
    background: #ffffff !important;
    border: 1px solid #dee2e6 !important;
}

    .contactos-table th {
        background: #f8f9fa !important;
        color: #111111 !important;
        font-weight: 700 !important;
        border-color: #dee2e6 !important;
    }

    .contactos-table td {
        background: #ffffff !important;
        color: #111111 !important;
        border-color: #dee2e6 !important;
        vertical-align: middle !important;
    }

    .contactos-table tbody tr:hover td {
        background: #f5f7f9 !important;
    }

/* Botón nuevo contacto */
.btn-nuevo-contacto-claro,
.btn-nuevo-contacto-claro .dxbl-btn,
.btn-nuevo-contacto-claro span,
.btn-nuevo-contacto-claro i {
    background: #0d6efd !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
}

/* Botón cerrar */
.contactos-popup .flujo-acciones .dxbl-btn,
.contactos-popup .flujo-acciones button {
    border-radius: 8px !important;
}

/* Botones de acciones dentro de la tabla */
.btn-icono-editar,
.btn-icono-editar span,
.btn-icono-editar i,
.btn-icono-editar .bi {
    background: #0d6efd !important;
    color: #ffffff !important;
    border: none !important;
}

.btn-icono-eliminar,
.btn-icono-eliminar span,
.btn-icono-eliminar i,
.btn-icono-eliminar .bi {
    background: #dc3545 !important;
    color: #ffffff !important;
    border: none !important;
}

/* Botón de icono del grid más claro */
.btn-contactos-icono,
.btn-contactos-icono .dxbl-btn,
.btn-contactos-icono span,
.btn-contactos-icono i,
.btn-contactos-icono .bi {
    background: #ffffff !important;
    color: #0d6efd !important;
    border: 1px solid #d0d7de !important;
    border-radius: 8px !important;
}
/* =========================================================
   POPUP EDICION CONTACTO - CONTROLES CLAROS
========================================================= */

/* Checkbox / switch CFD */
.contacto-edit-form .contacto-check {
    width: 2.6rem !important;
    height: 1.35rem !important;
    cursor: pointer !important;
    background-color: #dee2e6 !important;
    border: 1px solid #adb5bd !important;
    box-shadow: none !important;
}

    .contacto-edit-form .contacto-check:checked {
        background-color: #198754 !important;
        border-color: #198754 !important;
    }

.contacto-edit-form .form-check-label {
    color: #111111 !important;
    font-weight: 600 !important;
}

/* Botón guardar claro */
.btn-guardar-contacto-claro,
.btn-guardar-contacto-claro .dxbl-btn,
.btn-guardar-contacto-claro span,
.btn-guardar-contacto-claro i {
    background: #0d6efd !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
}

/* Botón cancelar claro */
.btn-cancelar-contacto-claro,
.btn-cancelar-contacto-claro .dxbl-btn,
.btn-cancelar-contacto-claro span,
.btn-cancelar-contacto-claro i {
    background: #6c757d !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
}
/* =========================================================
   FLUJO CLIENTES - ESTILO CLARO
   ========================================================= */

.cliente-flujo-page {
    width: 100%;
    color: var(--innovika-text);
}

.cliente-flujo-header {
    margin-bottom: 1rem;
}

    .cliente-flujo-header h3 {
        margin: 0;
        color: #002633;
        font-weight: 700;
    }

    .cliente-flujo-header p {
        margin: .25rem 0 0;
        color: var(--innovika-muted);
    }

.cliente-flujo-layout {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.cliente-flujo-panel {
    background: #ffffff;
    border: 1px solid #dfe7eb;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(15, 34, 53, 0.06);
    overflow: hidden;
}

.cliente-flujo-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: #f8fafb;
    border-bottom: 1px solid #e6ecef;
}

    .cliente-flujo-panel-header h5 {
        margin: 0;
        color: #002633;
        font-weight: 700;
    }

    .cliente-flujo-panel-header span {
        color: #6c7a86;
        font-size: .9rem;
    }

.cliente-flujo-loading,
.cliente-flujo-empty {
    background: #ffffff;
    border: 1px dashed #cfd8dc;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    color: #6c7a86;
}

.cliente-flujo-table-wrap {
    max-height: calc(100vh - 240px);
    overflow: auto;
}

.cliente-flujo-table {
    width: 100%;
    border-collapse: collapse;
}

    .cliente-flujo-table thead th {
        position: sticky;
        top: 0;
        z-index: 1;
        background: #f8fafb;
        color: #002633;
        font-weight: 700;
        font-size: .92rem;
        padding: .85rem .75rem;
        border-bottom: 1px solid #e6ecef;
        text-align: left;
    }

    .cliente-flujo-table tbody td {
        padding: .85rem .75rem;
        border-bottom: 1px solid #eef3f6;
        vertical-align: top;
        color: #1f2d36;
        background: #ffffff;
    }

    .cliente-flujo-table tbody tr {
        cursor: pointer;
        transition: background-color .18s ease;
    }

        .cliente-flujo-table tbody tr:hover td {
            background: #f7fbfd;
        }

        .cliente-flujo-table tbody tr.selected td {
            background: #eaf4f8;
        }

.cliente-flujo-nombre {
    font-weight: 700;
    color: #163447;
}

.cliente-flujo-clave,
.cliente-flujo-agente-sec {
    font-size: .86rem;
    color: #6c7a86;
    margin-top: .2rem;
}

.cliente-flujo-agente {
    font-weight: 600;
    color: #0f4f63;
}

.cliente-flujo-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 54px;
    padding: .28rem .55rem;
    border-radius: 999px;
    background: #e6f3f7;
    color: #0f4f63;
    font-size: .82rem;
    font-weight: 700;
}

.cliente-flujo-detalle {
    padding-bottom: 1rem;
}

.cliente-flujo-resumen {
    padding: 1.25rem 1.25rem .75rem;
    border-bottom: 1px solid #eef3f6;
}

.cliente-flujo-resumen-titulo {
    font-size: 1.35rem;
    font-weight: 700;
    color: #002633;
    margin-bottom: .75rem;
}

.cliente-flujo-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: .5rem 1rem;
    color: #1f2d36;
}

.cliente-flujo-pasos {
    padding: 1rem 1.25rem 0;
}

.cliente-flujo-paso-card {
    background: #f9fbfc;
    border: 1px solid #e3eaee;
    border-radius: 14px;
    padding: 1rem 1rem;
    margin-bottom: .9rem;
}

.cliente-flujo-paso-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.cliente-flujo-paso-titulo {
    font-weight: 700;
    color: #163447;
}

.cliente-flujo-subpasos {
    margin-top: .85rem;
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.cliente-flujo-subpaso-item {
    background: #ffffff;
    border: 1px solid #e6ecef;
    border-radius: 12px;
    padding: .85rem .95rem;
}

.cliente-flujo-subpaso-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: .5rem;
}

.cliente-flujo-subpaso-label {
    margin: 0;
    font-weight: 600;
    color: #284556;
}

.cliente-flujo-input {
    background: #ffffff !important;
    border: 1px solid #cfd8dc !important;
    border-radius: 10px !important;
    color: #1f2d36 !important;
}

    .cliente-flujo-input:focus {
        border-color: #0f4f63 !important;
        box-shadow: 0 0 0 .15rem rgba(15, 79, 99, .12) !important;
    }

.cliente-flujo-switch {
    cursor: pointer;
}

    .cliente-flujo-switch:checked {
        background-color: #0f4f63;
        border-color: #0f4f63;
    }

@media (max-width: 992px) {
    .cliente-flujo-layout {
        grid-template-columns: 1fr;
    }

    .cliente-flujo-table-wrap {
        max-height: 360px;
    }

    .cliente-flujo-meta-grid {
        grid-template-columns: 1fr;
    }
}
/* Toggle botón */

.cliente-flujo-paso-actions {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.cliente-flujo-toggle {
    border: none;
    background: #e6f3f7;
    color: #0f4f63;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 8px;
    padding: .25rem .5rem;
    cursor: pointer;
    transition: all .15s ease;
}

    .cliente-flujo-toggle:hover {
        background: #d4e9f0;
    }

    /*VENTAS */

.btn-ventas-icono,
.btn-ventas-icono .dxbl-btn,
.btn-ventas-icono span,
.btn-ventas-icono i,
.btn-ventas-icono .bi {
    background: #ffffff !important;
    color: #198754 !important;
    border: 1px solid #d0d7de !important;
    border-radius: 8px !important;
}

.ventas-popup .dxbl-popup,
.ventas-popup .dxbl-popup-content,
.ventas-popup .dxbl-popup-body,
.ventas-popup .dxbl-popup-header,
.ventas-popup .dxbl-popup-footer,
.ventas-popup .dxbs-popup-body,
.ventas-popup .dxbs-popup-header,
.ventas-popup .dxbs-popup-footer,
.ventas-popup .dx-popup-content,
.ventas-popup .dx-popup-title,
.ventas-popup .dx-popup-bottom,
.ventas-popup .dx-overlay-content {
    background: #ffffff !important;
    color: #111111 !important;
}

.ventas-popup-body {
    background: #ffffff !important;
    color: #111111 !important;
    padding: 0.75rem 0.85rem 0.5rem 0.85rem !important;
}

.ventas-table {
    background: #ffffff !important;
    border: 1px solid #dee2e6 !important;
}

    .ventas-table th {
        background: #f8f9fa !important;
        color: #111111 !important;
        font-weight: 700 !important;
        border-color: #dee2e6 !important;
        white-space: nowrap;
    }

    .ventas-table td {
        background: #ffffff !important;
        color: #111111 !important;
        border-color: #dee2e6 !important;
        white-space: nowrap;
    }

    .ventas-table tbody tr:hover td {
        background: #f5f7f9 !important;
    }

.cliente-flujo-filtros {
    margin-bottom: 0.75rem;
}

.cliente-flujo-busqueda {
    background: #ffffff !important;
    color: #111111 !important;
    border: 1px solid #ced4da !important;
}
/* =========================
   CONFIG FLUJO CLIENTES
   ========================= */

.cfg-topbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.cfg-header {
    display: flex;
    flex-direction: column;
    gap: .2rem;
}

.cfg-title {
    margin: 0;
    color: #002633;
    font-weight: 700;
}

.cfg-subtitle {
    color: #6c7a86;
    font-size: 0.95rem;
}

.cfg-toolbar {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.cfg-toolbar-hint {
    color: #6c7a86;
    font-size: 0.9rem;
}

.cfg-tree-wrap {
    background: #ffffff;
    border: 1px solid #d9e3e8;
    border-radius: 12px;
    padding: 10px;
    overflow: auto;
}

.cfg-tree .dxbl-treelist,
.cfg-tree .dxbl-grid {
    background: #ffffff !important;
}

.cfg-tree .dxbl-grid-header th,
.cfg-tree .dxbl-treelist-header th {
    background: #f8fafb !important;
    color: #002633 !important;
    font-weight: 700 !important;
}

.cfg-tree .dxbl-grid-data-row td,
.cfg-tree .dxbl-treelist-data-row td {
    color: #1f2d36 !important;
    vertical-align: middle;
}

.cfg-actions-cell {
    display: flex;
    gap: .5rem;
    align-items: center;
}

.kober-grid-iconbtn {
    font-size: 1rem !important;
    text-decoration: none !important;
}

.cfg-footnote {
    margin-top: .8rem;
    color: #6c7a86;
    font-size: 0.9rem;
}

.kober-btn-edit {
    background-color: #0b3a4a !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    padding: 8px 14px !important;
}

    .kober-btn-edit:hover {
        background-color: #002633 !important;
    }

.kober-alert {
    background: #fff4e5;
    color: #8a5a00;
    border: 1px solid #f3d19c;
    border-radius: 10px;
    padding: 10px 14px;
}

.kober-popup .dx-overlay-content,
.kober-popup .dx-popup-content,
.kober-popup .dxbs-popup-body,
.kober-popup .dxbl-popup-content {
    background: #ffffff !important;
    color: #111111 !important;
}

.kober-popup .dx-popup-title,
.kober-popup .dxbs-popup-header,
.kober-popup .dxbl-popup-header {
    background: #ffffff !important;
    color: #0b2c48 !important;
    font-weight: 700;
    border-bottom: 1px solid #e5e7eb;
}

.popup-body-scroll {
    background: #ffffff;
    padding: 16px 18px;
    max-height: 75vh;
    overflow-y: auto;
}

.popup-actions {
    display: flex;
    justify-content: flex-end;
    gap: .75rem;
    margin-top: .5rem;
}

.popup-confirm-text {
    font-size: 1rem;
    color: #1f2d36;
    margin-bottom: 1rem;
}

.popup-confirm-card {
    background: #f8fafb;
    border: 1px solid #d9e3e8;
    border-radius: 10px;
    padding: 12px 14px;
}

.popup-confirm-subtext {
    color: #6c7a86;
    font-size: 0.9rem;
    margin-top: .25rem;
}

.popup-alert-top {
    margin-top: 1rem;
}
/* =========================================
   OVERRIDE FINAL - CONFIG FLUJO CLIENTES
   PONER AL FINAL DEL ARCHIVO
========================================= */

.cfg-tree-wrap {
    background: #ffffff !important;
    border: 1px solid #d9e3e8 !important;
    border-radius: 12px !important;
    padding: 10px !important;
    overflow: auto !important;
}

/* Contenedor principal del TreeList */
.cfg-tree,
.cfg-tree .dxbl-grid,
.cfg-tree .dxbl-treelist,
.cfg-tree .dxbl-grid-table,
.cfg-tree .dxbl-treelist-table,
.cfg-tree .dxbl-grid-container {
    background: #ffffff !important;
    color: #1f2d36 !important;
}

    /* Header */
    .cfg-tree th,
    .cfg-tree .dxbl-grid-header th,
    .cfg-tree .dxbl-treelist-header th,
    .cfg-tree .dx-header-row > td,
    .cfg-tree .dx-header-row > th {
        background: #f4f6f8 !important;
        color: #002633 !important;
        font-weight: 700 !important;
        border-bottom: 1px solid #d9e3e8 !important;
    }

    /* Celdas */
    .cfg-tree td,
    .cfg-tree .dxbl-grid-data-row td,
    .cfg-tree .dxbl-treelist-data-row td,
    .cfg-tree .dx-data-row td {
        background: #ffffff !important;
        color: #1f2d36 !important;
        border-bottom: 1px solid #eef2f5 !important;
        vertical-align: middle !important;
    }

        /* Links o texto interno */
        .cfg-tree td *,
        .cfg-tree th * {
            color: inherit !important;
        }

    /* Hover */
    .cfg-tree .dx-data-row:hover td,
    .cfg-tree .dxbl-grid-data-row:hover td,
    .cfg-tree .dxbl-treelist-data-row:hover td {
        background: #f8fafb !important;
        color: #1f2d36 !important;
    }

    /* Fila enfocada/seleccionada */
    .cfg-tree .dx-row-focused td,
    .cfg-tree .dx-state-focused td,
    .cfg-tree .dx-selection td,
    .cfg-tree .dxbl-grid-data-row.dx-state-focused td,
    .cfg-tree .dxbl-treelist-data-row.dx-state-focused td {
        background: #e8f1fb !important;
        color: #002633 !important;
    }

    /* Expand/collapse icon */
    .cfg-tree .dx-treelist-expanded,
    .cfg-tree .dx-treelist-collapsed,
    .cfg-tree .dxbl-treelist-expand-button {
        color: #0b3a4a !important;
    }

/* Botones superiores */
.kober-btn-edit,
.kober-btn-edit .dxbl-btn,
.cfg-toolbar .dxbl-button,
.cfg-toolbar .dxbl-btn {
    background-color: #0b3a4a !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    padding: 8px 16px !important;
}

    .kober-btn-edit:hover,
    .kober-btn-edit .dxbl-btn:hover,
    .cfg-toolbar .dxbl-button:hover,
    .cfg-toolbar .dxbl-btn:hover {
        background-color: #002633 !important;
        color: #ffffff !important;
    }

/* Botones de iconos editar/eliminar */
.kober-grid-iconbtn,
.kober-grid-iconbtn .dxbl-btn,
.kober-grid-iconbtn span {
    color: #0b3a4a !important;
    background: transparent !important;
    text-decoration: none !important;
    font-size: 1.05rem !important;
}

    .kober-grid-iconbtn:hover,
    .kober-grid-iconbtn .dxbl-btn:hover,
    .kober-grid-iconbtn span:hover {
        color: #002633 !important;
    }
/* ===== FLECHA TREE LIST VISIBLE ===== */

.cfg-tree .dx-treelist-collapsed,
.cfg-tree .dx-treelist-expanded,
.cfg-tree .dxbl-treelist-expand-button,
.cfg-tree .dxbl-treelist-collapse-button,
.cfg-tree .dx-treelist-icon-container,
.cfg-tree .dxbl-treelist-command-expand,
.cfg-tree .dx-command-expand {
    color: #0b3a4a !important;
    fill: #0b3a4a !important;
    opacity: 1 !important;
    visibility: visible !important;
}

    .cfg-tree .dx-treelist-collapsed::before,
    .cfg-tree .dx-treelist-expanded::before,
    .cfg-tree .dxbl-treelist-expand-button::before,
    .cfg-tree .dxbl-treelist-collapse-button::before,
    .cfg-tree .dx-command-expand::before {
        color: #0b3a4a !important;
        opacity: 1 !important;
    }

.cfg-tree svg,
.cfg-tree svg path {
    fill: #0b3a4a !important;
    stroke: #0b3a4a !important;
}
/* =========================================
   POPUPS DE PASOS / SUBPASOS EN MODO CLARO
========================================= */

.kober-popup .dx-overlay-content,
.kober-popup .dx-popup-content,
.kober-popup .dxbs-popup-body,
.kober-popup .dxbl-popup-content,
.kober-popup .dxbl-popup,
.kober-popup .dxbl-popup-body,
.kober-popup .dxbs-popup,
.kober-popup .dx-popup-wrapper {
    background: #ffffff !important;
    color: #111111 !important;
}

/* Header */
.kober-popup .dx-popup-title,
.kober-popup .dxbs-popup-header,
.kober-popup .dxbl-popup-header {
    background: #ffffff !important;
    color: #0b2c48 !important;
    border-bottom: 1px solid #e5e7eb !important;
    font-weight: 700 !important;
}

/* Body */
.kober-popup .popup-body-scroll,
.kober-popup .dx-formlayout,
.kober-popup .dxbl-fl,
.kober-popup .dxbl-form-layout {
    background: #ffffff !important;
    color: #111111 !important;
}

/* Labels */
.kober-popup label,
.kober-popup .dxbl-fl-caption,
.kober-popup .dxbl-fl-item-caption,
.kober-popup .dxbl-caption,
.kober-popup .dx-formlayout-item-caption,
.kober-popup .dxbl-text,
.kober-popup .form-label {
    color: #111111 !important;
    font-weight: 600 !important;
    opacity: 1 !important;
}

/* Inputs / textbox / spin / combo */
.kober-popup input,
.kober-popup textarea,
.kober-popup select,
.kober-popup .dxbl-text-edit,
.kober-popup .dxbl-spin-edit,
.kober-popup .dxbl-combobox,
.kober-popup .dxbl-edit,
.kober-popup .dxbl-input,
.kober-popup .dx-editor-input,
.kober-popup .dx-texteditor-input,
.kober-popup .dxbl-text-edit input,
.kober-popup .dxbl-spin-edit input,
.kober-popup .dxbl-combobox input {
    background: #ffffff !important;
    color: #111111 !important;
    border-color: #ced4da !important;
}

/* Contenedor visual de editores DevExpress */
.kober-popup .dxbl-text-edit,
.kober-popup .dxbl-spin-edit,
.kober-popup .dxbl-combobox,
.kober-popup .dxbl-edit {
    background: #ffffff !important;
    border: 1px solid #ced4da !important;
    border-radius: 8px !important;
    color: #111111 !important;
}

/* Placeholder */
.kober-popup input::placeholder,
.kober-popup textarea::placeholder {
    color: #6c757d !important;
}

/* Focus */
.kober-popup .dxbl-text-edit:focus-within,
.kober-popup .dxbl-spin-edit:focus-within,
.kober-popup .dxbl-combobox:focus-within,
.kober-popup .dxbl-edit:focus-within {
    border-color: #86b7fe !important;
    box-shadow: 0 0 0 0.2rem rgba(13,110,253,.15) !important;
}

/* Dropdown arrow combo/spin */
.kober-popup .dxbl-btn,
.kober-popup .dx-dropdowneditor-button,
.kober-popup .dx-spinbutton,
.kober-popup .dxbl-spin-button,
.kober-popup .dxbl-dropdown-button {
    background: #ffffff !important;
    color: #0b3a4a !important;
    border-left: 1px solid #ced4da !important;
}

/* Checkbox */
.kober-popup .dxbl-checkbox,
.kober-popup .dxbl-check,
.kober-popup .dxbl-check-editor,
.kober-popup input[type="checkbox"] {
    background: #ffffff !important;
    color: #111111 !important;
}

/* Footer */
.kober-popup .dxbl-popup-footer,
.kober-popup .dxbs-popup-footer,
.kober-popup .dx-popup-bottom {
    background: #ffffff !important;
    border-top: 1px solid #e5e7eb !important;
}

/* ===== FILA SELECCIONADA EN TREE ===== */

.cfg-tree .dx-row-focused td,
.cfg-tree .dx-state-focused td,
.cfg-tree .dx-selection td,
.cfg-tree .dxbl-grid-data-row.dx-state-focused td,
.cfg-tree .dxbl-treelist-data-row.dx-state-focused td,
.cfg-tree tr.dx-row-focused td,
.cfg-tree tr.dx-state-focused td {
    background: #dbeafe !important;
    color: #0b2c48 !important;
    font-weight: 600 !important;
}

/* Hover suave para que no se confunda con selección */
.cfg-tree .dx-data-row:hover td,
.cfg-tree .dxbl-grid-data-row:hover td,
.cfg-tree .dxbl-treelist-data-row:hover td {
    background: #f8fafc !important;
    color: #1f2d36 !important;
}

/* Que los iconos dentro de la fila seleccionada sigan viéndose */
.cfg-tree .dx-row-focused td .kober-grid-iconbtn,
.cfg-tree .dx-state-focused td .kober-grid-iconbtn,
.cfg-tree .dx-selection td .kober-grid-iconbtn {
    color: #0b3a4a !important;
}
/* =========================================
   FIX MINIMO - LABELS POPUP NUEVO LEAD
   ========================================= */

.lead-popup label,
.lead-popup .form-label,
.lead-popup .lead-label,
.lead-popup .lead-field-label,
.lead-popup .col-md-6 > label,
.lead-popup .mb-3 > label,
.lead-popup .dxbl-fl label,
.lead-popup .dxbl-fl-caption,
.lead-popup .dxbl-fl-item-caption,
.lead-popup .dxbl-caption {
    color: #002633 !important;
    font-weight: 700 !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    background: transparent !important;
    text-shadow: none !important;
}

/* por si DevExpress o el theme mete color raro al contenedor */
.lead-popup,
.lead-popup .dxbl-popup,
.lead-popup .dxbl-popup-content,
.lead-popup .dxbl-popup-body {
    color: #1f2d36 !important;
}

    /* opcional: mejora separación visual del texto del campo */
    .lead-popup label,
    .lead-popup .form-label,
    .lead-popup .lead-label,
    .lead-popup .lead-field-label {
        margin-bottom: 8px !important;
        font-size: 0.95rem !important;
        line-height: 1.2 !important;
    }

/*  CUANDO TIENE NOTAS (VERDE) */
.lead-note-icon.has-notes {
    background: #2e7d32 !important;
    color: white !important;
}

    /* icono interno */
    .lead-note-icon.has-notes i,
    .lead-note-icon.has-notes span,
    .lead-note-icon.has-notes .bi {
        color: white !important;
    }


/* Botón notas clientes - normal */
.btn-notas-icono,
.btn-notas-icono.dxbl-btn,
.btn-notas-icono .dxbl-btn {
    min-width: 38px;
    height: 34px;
    padding: 0.3rem 0.6rem;
    border-radius: 999px !important;
    background: #e9f2fb !important;
    color: #4a79a8 !important;
    border: 1px solid #cfd8e3 !important;
}

    /* Icono normal */
    .btn-notas-icono span,
    .btn-notas-icono i,
    .btn-notas-icono .bi {
        color: #4a79a8 !important;
    }

    /*  CUANDO TIENE NOTAS  VERDE */
    .btn-notas-icono.btn-notas-con-registro,
    .btn-notas-icono.btn-notas-con-registro.dxbl-btn,
    .btn-notas-icono.btn-notas-con-registro .dxbl-btn {
        background: #2e7d32 !important; /* verde principal */
        border: 1px solid #1b5e20 !important;
        color: #ffffff !important;
        box-shadow: 0 0 0 2px rgba(46, 125, 50, 0.15) !important;
    }

        /* Icono interno en blanco */
        .btn-notas-icono.btn-notas-con-registro span,
        .btn-notas-icono.btn-notas-con-registro i,
        .btn-notas-icono.btn-notas-con-registro .bi {
            color: #ffffff !important;
        }

        /* Hover más intenso */
        .btn-notas-icono.btn-notas-con-registro:hover,
        .btn-notas-icono.btn-notas-con-registro.dxbl-btn:hover,
        .btn-notas-icono.btn-notas-con-registro .dxbl-btn:hover {
            background: #1b5e20 !important;
            border-color: #144d17 !important;
        }

/* =========================================
   POPUP CONFIGURACION FLUJO LEADS
========================================= */

.kober-popup .dxbl-popup-content,
.kober-popup .dxbl-popup-body {
    background: #ffffff !important;
    color: #1f2d36 !important;
}

.kober-popup .dxbl-fl-caption,
.kober-popup .dxbl-form-layout-item-caption,
.kober-popup label {
    color: #002633 !important;
    font-weight: 700 !important;
}

.kober-popup .dxbl-text-edit,
.kober-popup .dxbl-spin-edit,
.kober-popup .dxbl-combobox,
.kober-popup input,
.kober-popup select {
    background: #ffffff !important;
    color: #1f2d36 !important;
    border: 1px solid #cfd8df !important;
    border-radius: 8px !important;
}

    .kober-popup .dxbl-text-edit input,
    .kober-popup .dxbl-spin-edit input,
    .kober-popup .dxbl-combobox input {
        color: #1f2d36 !important;
        background: #ffffff !important;
    }

.cfg-check-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 38px;
    padding-top: 6px;
}

.cfg-check-text {
    color: #002633;
    font-weight: 600;
}

.kober-popup .dxbl-checkbox,
.kober-popup .dxbl-check {
    transform: scale(1.1);
}

.cfg-popup-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 12px;
    padding-top: 10px;
}

.cfg-btn-cancelar,
.cfg-btn-aplicar {
    min-width: 110px;
    min-height: 42px;
    border-radius: 10px !important;
    font-weight: 700 !important;
    padding: 0 18px !important;
}

.cfg-btn-cancelar {
    background: #f3f5f7 !important;
    color: #3b4b57 !important;
    border: 1px solid #cfd8df !important;
}

    .cfg-btn-cancelar:hover {
        background: #e8edf1 !important;
        color: #24323c !important;
    }

.cfg-btn-aplicar {
    background: #0d6efd !important;
    color: #ffffff !important;
    border: 1px solid #0d6efd !important;
}

    .cfg-btn-aplicar:hover {
        background: #0b5ed7 !important;
        border-color: #0b5ed7 !important;
        color: #ffffff !important;
    }

/* =========================================
   POPUP ELIMINAR - CONFIG FLUJO LEADS
========================================= */

.popup-confirm-text {
    color: #1f2d36;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 14px;
}

.popup-confirm-card {
    background: #f8fafc;
    border: 1px solid #d8e1e8;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 18px;
}

    .popup-confirm-card b {
        color: #002633;
        font-size: 1rem;
    }

.popup-confirm-subtext {
    color: #6b7c88;
    margin-top: 4px;
    font-size: 0.92rem;
}

.popup-alert-top {
    margin-bottom: 14px;
}

.cfg-popup-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 14px;
    padding-top: 6px;
}

.cfg-btn-cancelar,
.cfg-btn-eliminar {
    min-width: 110px;
    min-height: 42px;
    border-radius: 10px !important;
    font-weight: 700 !important;
    padding: 0 18px !important;
}

/* cancelar */
.cfg-btn-cancelar {
    background: #f3f5f7 !important;
    color: #3b4b57 !important;
    border: 1px solid #cfd8df !important;
}

    .cfg-btn-cancelar:hover {
        background: #e8edf1 !important;
        color: #24323c !important;
        border-color: #bcc8d1 !important;
    }

/* eliminar */
.cfg-btn-eliminar {
    background: #dc3545 !important;
    color: #ffffff !important;
    border: 1px solid #dc3545 !important;
}

    .cfg-btn-eliminar:hover {
        background: #bb2d3b !important;
        border-color: #bb2d3b !important;
        color: #ffffff !important;
    }

/* =========================================
   POPUPS CONFIG FLUJO CLIENTES
========================================= */

.kober-popup .dxbl-popup-content,
.kober-popup .dxbl-popup-body {
    background: #ffffff !important;
    color: #1f2d36 !important;
}

.kober-popup .dxbl-fl-caption,
.kober-popup .dxbl-form-layout-item-caption,
.kober-popup label {
    color: #002633 !important;
    font-weight: 700 !important;
}

.kober-popup .dxbl-text-edit,
.kober-popup .dxbl-spin-edit,
.kober-popup .dxbl-combobox,
.kober-popup input,
.kober-popup select {
    background: #ffffff !important;
    color: #1f2d36 !important;
    border: 1px solid #cfd8df !important;
    border-radius: 8px !important;
}

    .kober-popup .dxbl-text-edit input,
    .kober-popup .dxbl-spin-edit input,
    .kober-popup .dxbl-combobox input {
        color: #1f2d36 !important;
        background: #ffffff !important;
    }

.cfg-check-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 38px;
    padding-top: 6px;
}

.cfg-check-text {
    color: #002633;
    font-weight: 600;
}

.kober-popup .dxbl-checkbox,
.kober-popup .dxbl-check {
    transform: scale(1.1);
}

.cfg-popup-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 14px;
    padding-top: 8px;
}

.cfg-btn-cancelar,
.cfg-btn-aplicar,
.cfg-btn-eliminar {
    min-width: 110px;
    min-height: 42px;
    border-radius: 10px !important;
    font-weight: 700 !important;
    padding: 0 18px !important;
}

.cfg-btn-cancelar {
    background: #f3f5f7 !important;
    color: #3b4b57 !important;
    border: 1px solid #cfd8df !important;
}

    .cfg-btn-cancelar:hover {
        background: #e8edf1 !important;
        color: #24323c !important;
        border-color: #bcc8d1 !important;
    }

.cfg-btn-aplicar {
    background: #0d6efd !important;
    color: #ffffff !important;
    border: 1px solid #0d6efd !important;
}

    .cfg-btn-aplicar:hover {
        background: #0b5ed7 !important;
        border-color: #0b5ed7 !important;
        color: #ffffff !important;
    }

.cfg-btn-eliminar {
    background: #dc3545 !important;
    color: #ffffff !important;
    border: 1px solid #dc3545 !important;
}

    .cfg-btn-eliminar:hover {
        background: #bb2d3b !important;
        border-color: #bb2d3b !important;
        color: #ffffff !important;
    }

.popup-confirm-text {
    color: #1f2d36;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 14px;
}

.popup-confirm-card {
    background: #f8fafc;
    border: 1px solid #d8e1e8;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 18px;
}

    .popup-confirm-card b {
        color: #002633;
        font-size: 1rem;
    }

.popup-confirm-subtext {
    color: #6b7c88;
    margin-top: 4px;
    font-size: 0.92rem;
}

.popup-alert-top {
    margin-bottom: 14px;
}
.notas-popup .notas-label,
.notas-popup .form-label,
.notas-popup label {
    color: #ffffff !important;
}
/*Notificaciones */
.menciones-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border: 1px solid #d9e2e8;
    border-radius: 10px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
    z-index: 3000;
    max-height: 260px;
    overflow-y: auto;
}

.mencion-item {
    padding: 10px 12px;
    cursor: pointer;
    border-bottom: 1px solid #eef3f6;
}

    .mencion-item:last-child {
        border-bottom: none;
    }

    .mencion-item:hover {
        background: #f4f8fb;
    }

.mencion-nombre {
    font-weight: 600;
    color: #002633;
}

.mencion-user {
    font-size: 0.85rem;
    color: #6c7a86;
}
.menciones-wrapper {
    position: relative;
    z-index: 1;
}

.menciones-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border: 1px solid #d9e2e8;
    border-radius: 10px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
    z-index: 99999;
    max-height: 260px;
    overflow-y: auto;
}

.mencion-item {
    padding: 10px 12px;
    cursor: pointer;
    border-bottom: 1px solid #eef3f6;
}

    .mencion-item:last-child {
        border-bottom: none;
    }

    .mencion-item:hover {
        background: #f4f8fb;
    }

.mencion-nombre {
    font-weight: 700;
    color: #002633;
}

.mencion-user {
    font-size: 0.85rem;
    color: #6c7a86;
}
/* Popup general */
.lead-notas-popup .dx-popup-content {
    overflow: visible !important;
}

/* Contenedor */
.lead-notas-popup-body {
    max-height: 75vh;
    overflow-y: auto;
    padding: 10px;
}

/* Textarea más controlado */
.notas-textarea {
    min-height: 90px;
    max-height: 160px;
    resize: vertical;
}

/* Wrapper menciones */
.menciones-wrapper {
    position: relative;
}

/* Dropdown de usuarios */
.menciones-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border: 1px solid #d9e2e8;
    border-radius: 10px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.18);
    z-index: 999999;
    max-height: 250px;
    overflow-y: auto;
}
.menciones-dropdown {
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}
.menciones-wrapper {
    position: relative;
    z-index: 1;
}

.menciones-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border: 1px solid #d9e2e8;
    border-radius: 10px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
    z-index: 99999;
    max-height: 260px;
    overflow-y: auto;
}

.mencion-item {
    padding: 10px 12px;
    cursor: pointer;
    border-bottom: 1px solid #eef3f6;
}

    .mencion-item:last-child {
        border-bottom: none;
    }

    .mencion-item:hover {
        background: #f4f8fb;
    }

.mencion-nombre {
    font-weight: 700;
    color: #002633;
}

.mencion-user {
    font-size: 0.85rem;
    color: #6c7a86;
}

.notas-textarea {
    min-height: 90px;
    max-height: 160px;
    resize: vertical;
}
.filtro-blanco {
    background-color: #ffffff !important;
    color: #212529 !important;
    border: 1px solid #ced4da !important;
    border-radius: 8px !important;
}

    .filtro-blanco:focus {
        background-color: #ffffff !important;
        color: #212529 !important;
        border-color: #86b7fe !important;
        box-shadow: 0 0 0 0.2rem rgba(13,110,253,.15) !important;
    }

.check-cliente {
    width: 18px;
    height: 18px;
    cursor: pointer;
    background-color: #ffffff !important;
    border: 1px solid #adb5bd !important;
    border-radius: 4px;
}

    /* cuando está marcado */
    .check-cliente:checked {
        background-color: #0d6efd !important;
        border-color: #0d6efd !important;
    }

    /* efecto hover bonito */
    .check-cliente:hover {
        border-color: #0d6efd !important;
    }