.crm-form-wrapper {
    display: flex;
    justify-content: center;
    padding: 30px;
    background-color: #f4f6f9;
}

.crm-card {
    width: 420px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.crm-card-header {
    padding: 18px 24px;
    border-bottom: 1px solid #eee;
    background-color: #fafafa;
}

    .crm-card-header h4 {
        margin: 0;
        font-weight: 600;
        font-size: 16px;
        color: #333;
    }

.crm-card-body {
    padding: 24px;
}

.form-group {
    margin-bottom: 18px;
}

    .form-group label {
        display: block;
        font-size: 13px;
        font-weight: 500;
        margin-bottom: 6px;
        color: #555;
    }

.form-control {
    width: 100%;
    height: 38px;
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #dcdcdc;
    font-size: 14px;
    transition: all 0.2s ease;
}

    .form-control:focus {
        border-color: #006d4e; /* tu verde SICAFI */
        box-shadow: 0 0 0 2px rgba(0, 109, 78, 0.1);
        outline: none;
    }
/* ============================= */
/* PAGE WRAPPER */
/* ============================= */
.soc-page {
    width: 100%;
    margin: 0;
    padding: 0;
}

.soc-page-inner {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 20px 24px 40px;
}

/* ============================= */
/* HEADER */
/* ============================= */
.soc-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.soc-title {
    font-weight: 600;
    color: #006d4e;
    letter-spacing: 1px;
}

/* ============================= */
/* BUTTON */
/* ============================= */
.soc-btn-primary {
    background-color: #006d4e !important;
    border-color: #006d4e !important;
    color: white !important;
    border-radius: 6px !important;
    padding: 6px 18px !important;
}

    .soc-btn-primary:hover {
        background-color: #00543c !important;
    }

/* ============================= */
/* GRID STYLE */
/* ============================= */
.soc-grid .e-gridheader {
    background-color: transparent;
    border-bottom: 2px solid #006d4e;
}

.soc-grid .e-headercell {
    font-weight: 600;
    color: #222;
}

.soc-grid .e-rowcell {
    border-bottom: 1px solid #dcdcdc;
    padding: 10px 8px;
}

.soc-grid .e-row:hover {
    background-color: #f6f9f8;
}

/* solo líneas horizontales */
.soc-grid .e-gridcontent {
    border: none;
}

/* ============================= */
/* DIALOG */
/* ============================= */
.soc-dialog .e-dlg-header {
    font-weight: 600;
    color: #006d4e;
}
/* Sidebar fondo principal */
.soc-sf-sidebar.e-sidebar {
    background-color: #006d4e !important;
    color: #ffffff !important;
}

/* Texto general dentro del sidebar */
.soc-sf-sidebar .e-menu,
.soc-sf-sidebar .e-menu .e-menu-item,
.soc-sf-sidebar .e-menu .e-menu-item .e-menu-text {
    color: #ffffff !important;
    background-color: transparent !important;
}

    /* Hover del menú */
    .soc-sf-sidebar .e-menu .e-menu-item:hover {
        background-color: rgba(255, 255, 255, 0.15) !important;
    }

    /* Item activo */
    .soc-sf-sidebar .e-menu .e-menu-item.e-selected {
        background-color: rgba(255, 255, 255, 0.25) !important;
        color: #ffffff !important;
    }

/* Header superior */
.soc-sidebar-header {
    background-color: #006d4e;
    color: #ffffff;
}

/* Botón cerrar */
.soc-sidebar-close {
    color: #ffffff;
}
/* Fondo real del sidebar */
.soc-sf-sidebar,
.soc-sf-sidebar.e-sidebar,
.soc-sf-sidebar .e-sidebar,
.soc-sf-sidebar .e-sidebar-content {
    background-color: #006d4e !important;
    color: #ffffff !important;
}

    /* Fondo del menú interno */
    .soc-sf-sidebar .e-menu {
        background-color: #006d4e !important;
    }

        /* Items del menú */
        .soc-sf-sidebar .e-menu .e-menu-item {
            background-color: transparent !important;
            color: #ffffff !important;
        }

        /* Texto del menú */
        .soc-sf-sidebar .e-menu .e-menu-text {
            color: #ffffff !important;
        }

        /* Hover */
        .soc-sf-sidebar .e-menu .e-menu-item:hover {
            background-color: rgba(255,255,255,0.15) !important;
        }

        /* Seleccionado */
        .soc-sf-sidebar .e-menu .e-menu-item.e-selected {
            background-color: rgba(255,255,255,0.25) !important;
        }
        /* Quitar fondo gris del item seleccionado */
        .soc-sf-sidebar .e-menu .e-menu-item.e-selected,
        .soc-sf-sidebar .e-menu .e-menu-item.e-focused,
        .soc-sf-sidebar .e-menu .e-menu-item.e-active {
            background-color: rgba(255,255,255,0.20) !important;
            color: #ffffff !important;
        }

        /* Quitar fondo gris por defecto */
        .soc-sf-sidebar .e-menu .e-menu-item {
            background-color: transparent !important;
        }

            /* Hover elegante */
            .soc-sf-sidebar .e-menu .e-menu-item:hover {
                background-color: rgba(255,255,255,0.15) !important;
            }

    /* Forzar fondo corporativo completo */
    .soc-sf-sidebar.e-sidebar,
    .soc-sf-sidebar .e-sidebar-content,
    .soc-sf-sidebar .e-menu,
    .soc-sf-sidebar .e-menu-parent {
        background-color: #006d4e !important;
    }

        /* Quitar fondo gris del item */
        .soc-sf-sidebar .e-menu .e-menu-item,
        .soc-sf-sidebar .e-menu-parent .e-menu-item {
            background-color: transparent !important;
            color: #ffffff !important;
        }

            /* Quitar gris cuando está seleccionado */
            .soc-sf-sidebar .e-menu .e-menu-item.e-selected,
            .soc-sf-sidebar .e-menu .e-menu-item.e-focused,
            .soc-sf-sidebar .e-menu .e-menu-item.e-active {
                background-color: rgba(255,255,255,0.20) !important;
                color: #ffffff !important;
            }

            /* Hover */
            .soc-sf-sidebar .e-menu .e-menu-item:hover {
                background-color: rgba(255,255,255,0.15) !important;
                color: #ffffff !important;
            }

            /* Iconos blancos */
            .soc-sf-sidebar .e-menu .e-menu-item .e-menu-icon {
                color: #ffffff !important;
            }
.e-sidebar-overlay {
    background-color: transparent !important;
}
.e-sidebar-overlay,
.e-backdrop {
    display: none !important;
    background: transparent !important;
}

/* Quitar fondo del anchor interno */
.soc-sf-sidebar .e-menu-item .e-menu-url {
    background-color: transparent !important;
    color: #ffffff !important;
}

/* Quitar fondo del wrapper interno */
.soc-sf-sidebar .e-menu-item .e-anchor-wrap {
    background-color: transparent !important;
}

/* Forzar item seleccionado */
.soc-sf-sidebar .e-menu-item.e-selected .e-menu-url,
.soc-sf-sidebar .e-menu-item.e-active .e-menu-url {
    background-color: rgba(255,255,255,0.20) !important;
    color: #ffffff !important;
}

/* Hover real */
.soc-sf-sidebar .e-menu-item:hover .e-menu-url {
    background-color: rgba(255,255,255,0.15) !important;
    color: #ffffff !important;
}
/* Fondo base completo */
.soc-sf-sidebar .e-menu-parent.e-vertical {
    background-color: #006d4e !important;
}

    /* Quitar fondo gris real */
    .soc-sf-sidebar .e-menu-parent.e-vertical .e-menu-item {
        background-color: transparent !important;
    }

        /* Quitar gris del anchor */
        .soc-sf-sidebar .e-menu-parent.e-vertical .e-menu-item .e-menu-url {
            background-color: transparent !important;
            color: #ffffff !important;
        }

        /* Hover */
        .soc-sf-sidebar .e-menu-parent.e-vertical .e-menu-item:hover,
        .soc-sf-sidebar .e-menu-parent.e-vertical .e-menu-item:hover .e-menu-url {
            background-color: rgba(255,255,255,0.15) !important;
            color: #ffffff !important;
        }

        /* Seleccionado */
        .soc-sf-sidebar .e-menu-parent.e-vertical .e-menu-item.e-selected,
        .soc-sf-sidebar .e-menu-parent.e-vertical .e-menu-item.e-selected .e-menu-url {
            background-color: rgba(255,255,255,0.25) !important;
            color: #ffffff !important;
        }

/* ============================= */
/* MÓDULO CONTACTO / BARRA DE HERRAMIENTAS */
/* ============================= */
.contacto-module { }

.soc-contact-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}
.soc-contact-stepper-wrap {
    flex: 1;
    min-width: 0;
    max-width: 100%;
}
.soc-contact-stepper-wrap .soc-contact-stepper {
    width: 100%;
}
@media (max-width: 900px) {
    .soc-contact-header-row { flex-direction: column; align-items: flex-start; }
    .soc-contact-stepper-wrap { width: 100%; }
}

.soc-contact-toolbar {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    width: 100%;
    min-height: 48px;
    padding: 10px 20px;
    margin: 0 0 16px 0;
    background-color: #006d4e;
    border-radius: 8px;
    box-sizing: border-box;
}

.soc-contact-toolbar .e-btn {
    background-color: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    color: #fff !important;
    border-radius: 6px !important;
    padding: 8px 16px !important;
}

.soc-contact-toolbar .e-btn:hover:not(:disabled) {
    background-color: rgba(255, 255, 255, 0.25) !important;
    border-color: rgba(255, 255, 255, 0.8) !important;
    color: #fff !important;
}

.soc-contact-toolbar .e-btn.e-disabled,
.soc-contact-toolbar .e-btn:disabled {
    opacity: 0.5;
}

.soc-search-wrap { display: flex; align-items: center; }
.soc-tabs { margin-top: 20px; }
.soc-tab-headers {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 20px;
}
.soc-tab {
    padding: 10px 20px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 14px;
    color: #555;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}
.soc-tab:hover { color: #006d4e; }
.soc-tab.active { color: #006d4e; font-weight: 600; border-bottom-color: #006d4e; }
.soc-tab-content { min-height: 200px; }
/* Pestaña Histórico: estilo gris */
.soc-tab-content-historico { background: #f0f0f0; border-radius: 8px; padding: 16px; }
.soc-historico-grid-wrap { background: #fff; border: 1px solid #ddd; border-radius: 6px; overflow: hidden; }
.soc-historico-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.soc-historico-table thead { background: #006d4e; color: #fff; }
.soc-historico-table th { padding: 10px 12px; text-align: left; font-weight: 600; border-bottom: 2px solid #005a40; }
.soc-historico-table td { padding: 10px 12px; border-bottom: 1px solid #e5e5e5; color: #555; }
.soc-historico-table tbody tr:hover { background: #f8f8f8; }
.soc-historico-table th:nth-child(1) { width: 140px; }
.soc-historico-table th:nth-child(2) { width: 160px; }

/* Pestaña Documentos */
.soc-documentos-section { margin-top: 0; }
.soc-documentos-form { margin-bottom: 24px; padding: 16px; background: #f8f9fa; border-radius: 8px; }
.soc-documentos-form-title { margin: 0 0 12px; font-size: 1rem; color: #222; }
.soc-documentos-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; }
.soc-doc-field { min-width: 180px; }
.soc-doc-field label { display: block; font-size: 12px; color: #555; margin-bottom: 4px; }
.soc-doc-field .e-outline { width: 100%; }
.soc-doc-field-btn { align-self: flex-end; }
.soc-input-file { display: block; font-size: 13px; padding: 6px 0; }
.soc-doc-file-name { font-size: 12px; color: #666; margin-left: 8px; }
.soc-documentos-list-wrap h4 { margin: 0 0 12px; font-size: 1rem; color: #222; }
.soc-docs-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.soc-docs-table thead { background: #006d4e; color: #fff; }
.soc-docs-table th { padding: 10px 12px; text-align: left; font-weight: 600; }
.soc-docs-table td { padding: 10px 12px; border-bottom: 1px solid #e5e5e5; color: #555; }
.soc-docs-table tbody tr:hover { background: #f8f8f8; }
.soc-link-doc { background: none; border: none; color: #006d4e; cursor: pointer; padding: 0; font-size: inherit; text-decoration: underline; }
.soc-link-doc:hover { color: #005a40; }

/* Modal visor PDF */
.soc-pdf-viewer-dialog .e-dlg-content { padding: 0; height: calc(85vh - 50px) !important; }
.soc-pdf-viewer-iframe { width: 100%; height: 100%; min-height: 70vh; border: none; display: block; }

.soc-buscar-contacto {
    border: 1px solid rgba(0,109,78,0.3);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
    background: #fafafa;
}
/* Sombra verde en el campo de buscar contacto */
.soc-buscar-contacto .e-input-group:focus-within,
.soc-buscar-contacto .e-input:focus {
    box-shadow: none !important;
    outline: none;
    border-color: #006d4e !important;
}
.soc-buscar-contacto .e-input-group.e-input-focus {
    box-shadow: none !important;
    border-color: #006d4e !important;
}
/* Evita doble borde/recuadro dentro del textbox de búsqueda */
.soc-buscar-contacto .e-input-group .e-input,
.soc-buscar-contacto .e-control-wrapper .e-input {
    border: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    background: transparent !important;
}
.soc-buscar-contacto h4,
.soc-milista-section h4 { margin: 0 0 12px 0; font-size: 15px; color: #333; }
.soc-contact-results { margin-top: 12px; }
.soc-contact-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
}
.soc-contact-row:last-child { border-bottom: none; }

/* Botón Mostrar en color verde #006d4e (Buscar contacto, Mi Lista, grid Oportunidades) */
.soc-buscar-contacto .e-btn.e-primary,
.soc-milista-section .e-btn.e-primary,
.soc-milista-modal .e-btn.e-primary,
.soc-card-oportunidades .e-btn.e-primary {
    background-color: #006d4e !important;
    border-color: #006d4e !important;
    color: #fff !important;
}
.soc-buscar-contacto .e-btn.e-primary:hover:not(:disabled),
.soc-milista-section .e-btn.e-primary:hover:not(:disabled),
.soc-milista-modal .e-btn.e-primary:hover:not(:disabled),
.soc-card-oportunidades .e-btn.e-primary:hover:not(:disabled) {
    background-color: #005a40 !important;
    border-color: #005a40 !important;
    color: #fff !important;
}

/* Scheduler: botón Guardar del editor y color de citas en verde #006d4e.
   La clase body se añade desde Scheduler.razor para que el diálogo (renderizado en portal) también se estilice. */
body.soc-scheduler-page-active .e-dialog .e-footer-content .e-btn.e-primary,
body.soc-scheduler-page-active .e-dialog .e-btn.e-primary {
    background-color: #006d4e !important;
    border-color: #006d4e !important;
    color: #fff !important;
}
body.soc-scheduler-page-active .e-dialog .e-footer-content .e-btn.e-primary:hover:not(:disabled),
body.soc-scheduler-page-active .e-dialog .e-btn.e-primary:hover:not(:disabled) {
    background-color: #005a40 !important;
    border-color: #005a40 !important;
    color: #fff !important;
}
/* Citas del calendario (eventos) en verde */
.soc-scheduler-es .e-appointment,
.soc-scheduler-page .e-schedule .e-appointment {
    background-color: #006d4e !important;
    border-color: #005a40 !important;
}
.soc-scheduler-es .e-appointment:hover,
.soc-scheduler-page .e-schedule .e-appointment:hover {
    background-color: #005a40 !important;
    border-color: #004d36 !important;
}

.soc-milista-section {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    background: #fff;
}
/* Fila 1: tres columnas del mismo ancho (Datos, Reuniones, Prioridades). Fila 2: Oportunidades ancho completo */
.soc-datos-detalle {
    display: grid;
    grid-template-columns: minmax(200px, 1fr) minmax(200px, 1fr) minmax(200px, 1fr);
    gap: 20px;
    align-items: stretch;
}
/* Cada panel respeta su columna y no invade la de al lado */
.soc-datos-contacto-card,
.soc-card-evento,
.soc-card-prioridades {
    min-width: 0;
    overflow-wrap: break-word;
}
.soc-card-oportunidades {
    grid-column: 1 / -1;
}
@media (max-width: 1000px) {
    .soc-datos-detalle { grid-template-columns: 1fr; }
    .soc-card-oportunidades { grid-column: 1; }
}
/* Bordes de contenedores: Datos del Contacto, Mis Reuniones, Top 5 Prioridades, Oportunidades */
.soc-datos-contacto-card,
.soc-card-evento,
.soc-card-prioridades,
.soc-card-oportunidades {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    background: #fff;
}

.soc-datos-contacto-card,
.soc-card-evento,
.soc-card-prioridades,
/* Enlace del número de oportunidad (móvil y escritorio): mismo destino que el botón Mostrar */
.soc-link-oportunidad {
    color: #006d4e;
    font-weight: 500;
    text-decoration: none;
}
.soc-link-oportunidad:hover {
    text-decoration: underline;
}

/* Monto solicitado en grid Oportunidades (Contactos): visible en móvil; oculto en escritorio */
.soc-monto-en-linea,
.soc-monto-solicitado-movil {
    display: block !important;
    visibility: visible !important;
    font-size: 13px;
    color: #333;
    margin-top: 4px;
    font-weight: 500;
}
.soc-monto-label {
    font-weight: 600;
    color: #555;
    margin-right: 4px;
}
.soc-oportunidad-cell {
    display: block;
}

@media (min-width: 769px) {
    .soc-card-oportunidades .soc-monto-en-linea,
    .soc-card-oportunidades .soc-monto-solicitado-movil {
        display: none !important;
    }
}

.soc-card-evento {
    min-height: 420px;
}
.soc-timeline-wrap { margin-top: 8px; }
.soc-timeline-list { list-style: none; margin: 8px 0 0; padding: 0; border-left: 2px solid rgba(0,109,78,0.35); padding-left: 12px; }
.soc-timeline-item { position: relative; padding-bottom: 12px; }
.soc-timeline-item::before { content: ""; position: absolute; left: -17px; top: 4px; width: 8px; height: 8px; border-radius: 50%; background: #006d4e; }
.soc-timeline-time { font-size: 12px; font-weight: 600; color: #006d4e; display: block; margin-bottom: 2px; }
.soc-timeline-content { display: block; }
.soc-timeline-title { font-weight: 600; color: #222; }
.soc-timeline-desc { font-size: 12px; color: #666; margin-top: 2px; display: block; }
.soc-timeline-actions { margin-top: 6px; }
.soc-timeline-actions .soc-btn-link { font-size: 12px; padding: 0; }
.soc-timeline-item.soc-cosa-completed .soc-timeline-title { text-decoration: line-through; opacity: 0.85; }
.soc-timeline-item.soc-cosa-completed .soc-timeline-desc { opacity: 0.85; }
/* Filtro Cosas por hacer: Activas / Terminadas */
.soc-cosas-filtro { display: flex; gap: 0; margin-bottom: 12px; }
.soc-filtro-btn { padding: 6px 14px; font-size: 13px; border: 1px solid #ccc; background: #fff; color: #555; cursor: pointer; border-radius: 0; }
.soc-filtro-btn:first-child { border-radius: 6px 0 0 6px; }
.soc-filtro-btn:last-child { border-radius: 0 6px 6px 0; border-left: none; }
.soc-filtro-btn:hover { background: #f5f5f5; color: #333; }
.soc-filtro-btn.soc-filtro-btn-active { background: #006d4e; color: #fff; border-color: #006d4e; }
.soc-filtro-btn.soc-filtro-btn-active:hover { background: #005a40; color: #fff; }
.soc-card-prioridades {
    min-height: 420px;
}

/* MyDay: grid tres columnas iguales (Mis Reuniones | Actividades | Cosas por hacer) */
.soc-myday-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    align-items: start;
}
@media (max-width: 1000px) {
    .soc-myday-grid { grid-template-columns: 1fr; }
}
/* MyDay: Mis Reuniones - mismo aspecto que Contacto: fondo blanco, título y línea/dot verde, texto gris */
.myday-module .soc-myday-timeline-card { min-height: 320px; background: #fff; }
.myday-module .soc-myday-timeline-title { color: #006d4e; font-size: 1rem; margin: 0 0 12px; font-weight: 600; }
/* MyDay: Actividades */
.myday-module .soc-myday-actividades-card { min-height: 320px; background: #fff; }
.myday-module .soc-myday-actividades-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; flex-wrap: wrap; gap: 8px; }
.myday-module .soc-myday-actividades-title { color: #222; font-size: 1rem; margin: 0; font-weight: 600; }
/* MyDay: Cosas por hacer */
.myday-module .soc-myday-cosas-card { min-height: 320px; background: #fff; }
.myday-module .soc-myday-cosas-card .soc-myday-actividades-header { margin-bottom: 12px; }
.myday-module .soc-myday-cosas-title { color: #222; font-size: 1rem; margin: 0; font-weight: 600; }
.soc-cosas-list { display: flex; flex-direction: column; gap: 10px; margin-top: 0; }
.soc-cosa-card { border-radius: 6px; padding: 10px 12px; background: #f8f9fa; border-left: 3px solid #006d4e; }
.soc-cosa-card.soc-cosa-completed { opacity: 0.75; border-left-color: #6b7280; }
.soc-cosa-card-title { font-weight: 600; font-size: 14px; color: #333; margin-bottom: 4px; }
.soc-cosa-card-desc { font-size: 13px; color: #555; margin-bottom: 6px; white-space: pre-wrap; }
.soc-cosa-card-meta { font-size: 12px; color: #666; }
.soc-form-row-inline.soc-switch-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.soc-form-row-inline.soc-switch-row .soc-check-label { margin: 0; }

.soc-card-prioridades .soc-placeholder { border: 1px solid #fcc; border-radius: 6px; padding: 8px; }
.soc-prioridades-list { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.soc-prioridad-card { border-radius: 6px; padding: 10px 12px; background: #fff; }
.soc-prioridad-title { font-weight: 600; font-size: 14px; color: #333; margin-bottom: 4px; }
.soc-prioridad-comment { font-size: 13px; color: #555; margin-bottom: 6px; }
.soc-prioridad-date { font-size: 12px; color: #666; text-align: right; }
.soc-badge-registrado {
    background: #006d4e;
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
}
.soc-badge-descartado {
    background: #b91c1c;
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
}
.soc-badge-btn {
    border: 0;
    cursor: pointer;
    font-weight: 600;
}
.soc-badge-btn:hover {
    filter: brightness(0.96);
}
.soc-dl { margin: 0; }
.soc-dl dt { font-weight: 600; color: #555; font-size: 12px; margin-top: 8px; }
.soc-dl dt:first-child { margin-top: 0; }
.soc-dl dd { margin: 2px 0 0 0; }
.soc-placeholder { color: #888; font-size: 13px; margin: 8px 0; }
.soc-placeholder.soc-error-msg { color: #c00; font-weight: 500; margin-bottom: 12px; }
.soc-detalles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.soc-detalle-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    background: #fff;
}
.soc-detalle-card h4 { margin: 0 0 12px 0; font-size: 14px; color: #006d4e; }
.soc-form-row { margin-bottom: 12px; }
.soc-form-row label { display: block; font-size: 12px; color: #555; margin-bottom: 4px; }
.soc-form-row .e-input-group { width: 100%; }
.soc-seguimiento-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
@media (max-width: 768px) { .soc-seguimiento-columns { grid-template-columns: 1fr; } }
.soc-seguimiento-col {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    background: #fff;
}
.soc-seguimiento-col h4 { margin: 0 0 12px 0; font-size: 14px; }
.soc-seguimiento-col .e-btn { margin-bottom: 12px; }

.soc-agenda-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; flex-wrap: wrap; gap: 8px; }
.soc-agenda-header h4 { margin: 0; }
.soc-agenda-date { margin-bottom: 12px; }
.soc-agenda-date .e-input { width: 100%; max-width: 220px; }
.soc-agenda-list { display: flex; flex-direction: column; gap: 10px; }
.soc-agenda-card {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 12px;
    background: #fafafa;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.soc-agenda-card-title { font-weight: 600; color: #222; }
.soc-agenda-card-time { font-size: 12px; color: #666; }
.soc-agenda-card .soc-btn-link { align-self: flex-end; color: #006d4e; padding: 4px 0; }
.soc-form-nuevo-evento .soc-form-row { margin-bottom: 16px; }
.soc-form-nuevo-evento .soc-form-row label { display: block; font-size: 12px; color: #555; margin-bottom: 6px; }
.soc-form-row-group { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.soc-datetime-row { display: flex; gap: 8px; flex-wrap: wrap; }
.soc-datetime-row .e-input { flex: 1; min-width: 100px; }
.soc-dialog-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 20px; padding-top: 16px; border-top: 1px solid #eee; }
@media (max-width: 500px) { .soc-form-row-group { grid-template-columns: 1fr; } }

.soc-form-actividad .soc-form-row { margin-bottom: 16px; }
.soc-form-actividad .soc-form-row label { display: block; font-size: 12px; color: #555; margin-bottom: 6px; }
.soc-form-row-inline { margin-bottom: 12px; }
.soc-form-row-inline .soc-check-label { display: flex; align-items: center; gap: 8px; cursor: pointer; font-weight: normal; }
.soc-form-row-inline .soc-check-label input { margin: 0; }

.soc-actividades-list { display: flex; flex-direction: column; gap: 10px; }
.soc-actividad-card {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 12px;
    background: #fafafa;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.soc-actividad-card.soc-actividad-prioritaria { border-left: 4px solid rgba(0, 109, 78, 0.5); }
.soc-actividad-card-title { font-weight: 600; color: #222; }
.soc-actividad-card-comment { font-size: 13px; color: #555; }
.soc-actividad-card-date { font-size: 12px; color: #666; }
.soc-actividad-card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; flex-wrap: wrap; gap: 8px; }
.soc-actividad-check { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #555; cursor: default; }
.soc-actividad-check input { margin: 0; }
.soc-actividad-card-footer .soc-btn-link { color: #006d4e; }

.soc-form-nota .soc-form-row { margin-bottom: 16px; }
.soc-form-nota .soc-form-row label { display: block; font-size: 12px; color: #555; margin-bottom: 6px; }
.soc-form-hint { display: block; font-size: 11px; color: #777; margin-top: 4px; }

.soc-notas-list { display: flex; flex-direction: column; gap: 10px; }
.soc-nota-card {
    border: 1px solid #006d4e;
    border-radius: 6px;
    padding: 12px;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.soc-nota-card-title { font-weight: 600; color: #222; font-size: 14px; }
.soc-nota-card-body { font-size: 13px; color: #555; }
.soc-nota-card-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.soc-nota-meta { font-size: 11px; color: #888; }
.soc-nota-card-footer .soc-btn-link { color: #006d4e; }

.mt-2 { margin-top: 8px; }
.text-muted { color: #888; font-size: 12px; }
.soc-datos-list { display: flex; flex-direction: column; }

/* Oportunidad */
.oportunidad-module .soc-opportunity-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.oportunidad-module .soc-opportunity-stepper-box {
    flex: 1 1 560px;
    min-width: 320px;
    margin-top: 8px;
    padding: 10px 12px;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    background: #fff;
}
.oportunidad-module .soc-opportunity-stepper {
    width: 100%;
    --e-primary: #006d4e;
    --e-primary-color: #006d4e;
}
.oportunidad-module .soc-opportunity-stepper .e-step-label {
    font-size: 11px;
}
/* Stepper en verde corporativo */
.oportunidad-module .soc-opportunity-stepper .e-stepper-progressbar {
    background-color: #e0e0e0 !important;
    height: 3px !important;
    min-height: 3px !important;
}
.oportunidad-module .soc-opportunity-stepper .e-stepper-progressbar-value,
.oportunidad-module .soc-opportunity-stepper .e-progressbar-value {
    background-color: #006d4e !important;
    height: 3px !important;
    min-height: 3px !important;
}
/* Quitar el cuadro verde del paso actual: el contenedor del paso en progreso sin fondo */
.oportunidad-module .soc-opportunity-stepper .e-step-container.e-step-inprogress,
.oportunidad-module .soc-opportunity-stepper .e-step-container.e-step-selected,
.oportunidad-module .soc-opportunity-stepper li.e-step-container.e-step-inprogress,
.oportunidad-module .soc-opportunity-stepper li.e-step-container.e-step-selected {
    background: transparent !important;
    box-shadow: none !important;
}
/* Círculo del paso: verde en completados e in-progress; icono blanco */
.oportunidad-module .soc-opportunity-stepper .e-step-container.e-step-inprogress .e-step.e-indicator,
.oportunidad-module .soc-opportunity-stepper .e-step-container.e-step-selected .e-step.e-indicator,
.oportunidad-module .soc-opportunity-stepper .e-step-container.e-step-completed .e-step.e-indicator {
    background-color: #006d4e !important;
    border-color: #006d4e !important;
    color: #fff !important;
}
.oportunidad-module .soc-opportunity-stepper .e-step.e-indicator .e-icons {
    color: #fff !important;
}
.oportunidad-module .soc-opportunity-stepper .e-step-container.e-step-completed .e-step.e-indicator .e-icons {
    color: #fff !important;
}
.oportunidad-module .soc-opportunity-stepper .e-step-container.e-step-inprogress .e-step-label,
.oportunidad-module .soc-opportunity-stepper .e-step-container.e-step-completed .e-step-label {
    color: #006d4e !important;
    font-weight: 600;
}
.oportunidad-module .soc-opportunity-stepper .e-step-container.e-step-inprogress .e-step-text,
.oportunidad-module .soc-opportunity-stepper .e-step-container.e-step-completed .e-step-text,
.oportunidad-module .soc-opportunity-stepper .e-step-container.e-step-inprogress .e-step-label-container,
.oportunidad-module .soc-opportunity-stepper .e-step-container.e-step-completed .e-step-label-container,
.oportunidad-module .soc-opportunity-stepper .e-stepper-item a,
.oportunidad-module .soc-opportunity-stepper .e-stepper-item .e-step-text {
    color: #006d4e !important;
}
/* Líneas/conectores en verde; sin fondo para no dibujar el cuadro verde del paso actual */
.oportunidad-module .soc-opportunity-stepper .e-step-container.e-step-completed::before,
.oportunidad-module .soc-opportunity-stepper .e-step-container.e-step-completed::after {
    border-color: #006d4e !important;
    background-color: transparent !important;
}
.oportunidad-module .soc-opportunity-stepper .e-step-container.e-step-inprogress::before,
.oportunidad-module .soc-opportunity-stepper .e-step-container.e-step-inprogress::after {
    border-color: #006d4e !important;
    background-color: transparent !important;
    box-shadow: none !important;
}
/* Selectores extra para variaciones del tema bootstrap5 (evitar azul residual) */
.oportunidad-module .soc-opportunity-stepper .e-stepper-item.e-selected .e-step-label,
.oportunidad-module .soc-opportunity-stepper .e-stepper-item.e-selected .e-step-text,
.oportunidad-module .soc-opportunity-stepper .e-stepper-item.e-active .e-step-label,
.oportunidad-module .soc-opportunity-stepper .e-stepper-item.e-active .e-step-text,
.oportunidad-module .soc-opportunity-stepper .e-stepper-item.e-step-inprogress .e-step-label,
.oportunidad-module .soc-opportunity-stepper .e-stepper-item.e-step-inprogress .e-step-text,
.oportunidad-module .soc-opportunity-stepper .e-stepper-item.e-step-completed .e-step-label,
.oportunidad-module .soc-opportunity-stepper .e-stepper-item.e-step-completed .e-step-text {
    color: #006d4e !important;
}
.oportunidad-module .soc-opportunity-stepper .e-stepper-item.e-selected .e-step.e-indicator,
.oportunidad-module .soc-opportunity-stepper .e-stepper-item.e-active .e-step.e-indicator,
.oportunidad-module .soc-opportunity-stepper .e-stepper-item.e-step-inprogress .e-step.e-indicator,
.oportunidad-module .soc-opportunity-stepper .e-stepper-item.e-step-completed .e-step.e-indicator {
    background: #006d4e !important;
    border-color: #006d4e !important;
    color: #fff !important;
}
/* Último paso completado: icono verde con fondo blanco (sin "cuadro" verde) */
.oportunidad-module .soc-opportunity-stepper .soc-step-last-active .e-step.e-indicator {
    background: #fff !important;
    border-color: #006d4e !important;
    color: #006d4e !important;
}
/* Quitar cualquier recuadro/fondo verde de los items (incluida la etapa actual) */
.oportunidad-module .soc-opportunity-stepper .e-stepper-item {
    background-color: transparent !important;
    box-shadow: none !important;
    border: none !important;
}
.oportunidad-module .soc-opportunity-stepper .e-stepper-item.e-selected::before,
.oportunidad-module .soc-opportunity-stepper .e-stepper-item.e-active::before,
.oportunidad-module .soc-opportunity-stepper .e-stepper-item.e-step-inprogress::before,
.oportunidad-module .soc-opportunity-stepper .e-stepper-item.e-selected::after,
.oportunidad-module .soc-opportunity-stepper .e-stepper-item.e-active::after,
.oportunidad-module .soc-opportunity-stepper .e-stepper-item.e-step-inprogress::after {
    background: transparent !important;
    box-shadow: none !important;
}
/* Fallback agresivo: fuerza verde en cualquier variante de clase del Stepper (líneas y colores, no fondo de item) */
.oportunidad-module .soc-opportunity-stepper,
.oportunidad-module .soc-opportunity-stepper * {
    --e-primary: #006d4e !important;
    --e-primary-color: #006d4e !important;
}
.oportunidad-module .soc-opportunity-stepper a,
.oportunidad-module .soc-opportunity-stepper [class*="label"],
.oportunidad-module .soc-opportunity-stepper [class*="text"],
.oportunidad-module .soc-opportunity-stepper [class*="active"],
.oportunidad-module .soc-opportunity-stepper [class*="selected"] {
    color: #006d4e !important;
}
.oportunidad-module .soc-opportunity-stepper [class*="progress"],
.oportunidad-module .soc-opportunity-stepper [class*="connector"],
.oportunidad-module .soc-opportunity-stepper [class*="line"] {
    border-color: #006d4e !important;
    background-color: #006d4e !important;
}

/* Overrides finales: iconos azules del stepper a verde corporativo
   Aplica a pasos completados y al paso actual, usando selectores genéricos
   por si el tema cambia las clases internas del indicador */
.oportunidad-module .soc-opportunity-stepper li[class*="step-container"][class*="step-completed"] [class*="step-indicator"],
.oportunidad-module .soc-opportunity-stepper li[class*="step-container"][class*="step-inprogress"] [class*="step-indicator"],
.oportunidad-module .soc-opportunity-stepper li[class*="step-container"][class*="step-selected"] [class*="step-indicator"] {
    background-color: #006d4e !important;
    border-color: #006d4e !important;
    color: #fff !important;
}
.oportunidad-module .soc-opportunity-stepper li[class*="step-container"][class*="step-completed"] [class*="step-indicator"] .e-icons,
.oportunidad-module .soc-opportunity-stepper li[class*="step-container"][class*="step-inprogress"] [class*="step-indicator"] .e-icons,
.oportunidad-module .soc-opportunity-stepper li[class*="step-container"][class*="step-selected"] [class*="step-indicator"] .e-icons {
    color: #fff !important;
}
.oportunidad-module .soc-opportunity-stepper li[class*="step-container"][class*="step-completed"] [class*="step-label"],
.oportunidad-module .soc-opportunity-stepper li[class*="step-container"][class*="step-inprogress"] [class*="step-label"],
.oportunidad-module .soc-opportunity-stepper li[class*="step-container"][class*="step-selected"] [class*="step-label"] {
    color: #006d4e !important;
}

/* Verde solo en iconos de pasos ya pasados o actual (completados / in-progress).
   Los pasos pendientes quedan con estilo por defecto (gris, imagen 2). */
.oportunidad-module .soc-opportunity-stepper .e-step-container.e-step-completed .e-step.e-indicator .e-user,
.oportunidad-module .soc-opportunity-stepper .e-step-container.e-step-completed .e-step.e-indicator .e-edit,
.oportunidad-module .soc-opportunity-stepper .e-step-container.e-step-completed .e-step.e-indicator .e-folder,
.oportunidad-module .soc-opportunity-stepper .e-step-container.e-step-completed .e-step.e-indicator .e-home,
.oportunidad-module .soc-opportunity-stepper .e-step-container.e-step-completed .e-step.e-indicator .e-columns,
.oportunidad-module .soc-opportunity-stepper .e-step-container.e-step-completed .e-step.e-indicator .e-check,
.oportunidad-module .soc-opportunity-stepper .e-step-container.e-step-inprogress .e-step.e-indicator .e-user,
.oportunidad-module .soc-opportunity-stepper .e-step-container.e-step-inprogress .e-step.e-indicator .e-edit,
.oportunidad-module .soc-opportunity-stepper .e-step-container.e-step-inprogress .e-step.e-indicator .e-folder,
.oportunidad-module .soc-opportunity-stepper .e-step-container.e-step-inprogress .e-step.e-indicator .e-home,
.oportunidad-module .soc-opportunity-stepper .e-step-container.e-step-inprogress .e-step.e-indicator .e-columns,
.oportunidad-module .soc-opportunity-stepper .e-step-container.e-step-inprogress .e-step.e-indicator .e-check,
.oportunidad-module .soc-opportunity-stepper .e-step-container.e-step-selected .e-step.e-indicator .e-user,
.oportunidad-module .soc-opportunity-stepper .e-step-container.e-step-selected .e-step.e-indicator .e-edit,
.oportunidad-module .soc-opportunity-stepper .e-step-container.e-step-selected .e-step.e-indicator .e-folder,
.oportunidad-module .soc-opportunity-stepper .e-step-container.e-step-selected .e-step.e-indicator .e-home,
.oportunidad-module .soc-opportunity-stepper .e-step-container.e-step-selected .e-step.e-indicator .e-columns,
.oportunidad-module .soc-opportunity-stepper .e-step-container.e-step-selected .e-step.e-indicator .e-check {
    background-color: #006d4e !important;
    color: #fff !important;
}

.soc-resumen-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
@media (max-width: 900px) { .soc-resumen-grid { grid-template-columns: 1fr; } }
.soc-resumen-fields { grid-column: 1; }
.soc-resumen-stages {
    grid-column: 1 / -1;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    background: #fff;
}
.soc-resumen-stages h4 { margin: 0 0 12px 0; font-size: 14px; }
.soc-stages-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.soc-stage {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    background: #e8e8e8;
    color: #666;
}
.soc-stage.active {
    background: #006d4e;
    color: #fff;
}
.soc-buscar-oportunidad { padding: 8px 0; }
.soc-opportunity-results { margin-top: 12px; }
.soc-opportunity-result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid rgba(0,109,78,0.25);
    border-radius: 6px;
    margin-bottom: 8px;
}
.soc-opportunity-contact-list {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-top: 8px;
    max-height: 220px;
    overflow-y: auto;
}
.soc-opportunity-contact-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
}
.soc-opportunity-contact-row:last-child { border-bottom: none; }
.soc-selected-contact { margin-top: 8px; color: #006d4e; font-size: 14px; }
.soc-toggle-row { display: flex; align-items: center; gap: 12px; }
.soc-switch-label { position: relative; display: inline-block; width: 44px; height: 24px; }
.soc-switch-input { opacity: 0; width: 0; height: 0; }
.soc-switch-slider {
    position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0;
    background: #ccc; border-radius: 24px; transition: 0.3s;
}
.soc-switch-slider::before {
    content: ""; position: absolute; height: 18px; width: 18px; left: 3px; bottom: 3px;
    background: #fff; border-radius: 50%; transition: 0.3s;
}
.soc-switch-input:checked + .soc-switch-slider { background: #006d4e; }
.soc-switch-input:checked + .soc-switch-slider::before { transform: translateX(20px); }
.soc-btn-link { background: none; border: none; color: #006d4e; cursor: pointer; font-size: 13px; padding: 4px 0; }
.soc-btn-link:hover { text-decoration: underline; }

/* Dashboard Home */
.soc-dashboard-page { padding: 16px 24px; }
.soc-dashboard-title { font-weight: 600; color: #006d4e; margin: 0 0 20px 0; font-size: 1.5rem; }
.soc-dashboard-grid { display: flex; flex-direction: column; gap: 16px; }
.soc-dashboard-cards { display: grid; grid-template-columns: repeat(7, 1fr); gap: 16px; }
.soc-dashboard-card { border-radius: 8px; border: 1px solid #e0e0e0; background: #fff; overflow: hidden; }
.soc-dashboard-panel-header { background: rgba(0,109,78,0.08); color: #006d4e; font-weight: 600; padding: 12px 16px; font-size: 14px; }
.soc-dashboard-panel-content { padding: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 72px; }
.soc-dashboard-count { font-size: 1.75rem; font-weight: 700; color: #006d4e; display: block; }
.soc-dashboard-label { font-size: 13px; color: #666; margin-top: 4px; }
.soc-dashboard-card-wide { min-height: 180px; }
.soc-dashboard-card-wide .soc-dashboard-panel-content { min-height: 120px; align-items: flex-start; justify-content: flex-start; }
.soc-dashboard-chart-wrap { width: 100%; }
.soc-dashboard-chart-title { margin: 0 0 12px 0; font-size: 14px; font-weight: 600; color: #333; }
.soc-dashboard-chart-box { width: 100%; min-height: 260px; padding: 16px; border: 1px solid #e0e0e0; border-radius: 8px; background: #fafafa; }
.soc-dashboard-barchart { display: flex; flex-direction: column; gap: 12px; }
.soc-dashboard-barchart-row { display: grid; grid-template-columns: 160px 1fr 48px; align-items: center; gap: 12px; min-height: 28px; }
.soc-dashboard-barchart-label { font-size: 13px; color: #333; }
.soc-dashboard-barchart-bar-bg { height: 24px; background: #e8e8e8; border-radius: 4px; overflow: hidden; }
.soc-dashboard-barchart-bar { height: 100%; background: linear-gradient(90deg, #006d4e 0%, #008f63 100%); border-radius: 4px; min-width: 4px; transition: width 0.35s ease; }
.soc-dashboard-barchart-value { font-size: 14px; font-weight: 600; color: #006d4e; text-align: right; }

/* Kanban de oportunidades (HTML/CSS, sin Syncfusion para evitar removeChild/circuit) */
.soc-kanban-page { padding: 16px 24px; min-height: calc(100vh - 120px); }
.soc-kanban-title { font-weight: 600; color: #006d4e; margin: 0 0 20px 0; font-size: 1.5rem; }
.soc-scheduler-page { padding: 16px 24px; min-height: calc(100vh - 120px); }
.soc-scheduler-title { font-weight: 600; color: #006d4e; margin: 0 0 20px 0; font-size: 1.5rem; }
.soc-kanban-simple {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 12px;
    min-height: calc(100vh - 180px);
    align-items: stretch;
}
.soc-kanban-column {
    flex: 0 0 220px;
    min-width: 220px;
    background: #f5f5f5;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.soc-kanban-column-header {
    background: rgba(0,109,78,0.12);
    color: #006d4e;
    font-weight: 600;
    padding: 12px 14px;
    font-size: 14px;
    border-bottom: 1px solid rgba(0,109,78,0.2);
}
.soc-kanban-column-cards {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.soc-kanban-card {
    background: #fff;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    padding: 12px 14px;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: box-shadow 0.2s, border-color 0.2s;
}
.soc-kanban-card:hover {
    border-color: #006d4e;
    box-shadow: 0 2px 8px rgba(0,109,78,0.15);
}
.soc-kanban-card-title { font-weight: 600; font-size: 14px; color: #006d4e; margin-bottom: 6px; }
.soc-kanban-card-summary { font-size: 12px; color: #555; line-height: 1.35; margin-bottom: 10px; }
.soc-kanban-card-move { margin-top: 10px; padding-top: 10px; border-top: 1px solid #eee; }
.soc-kanban-card-move-label { font-size: 11px; color: #666; display: block; margin-bottom: 4px; }
.soc-kanban-card-select { width: 100%; font-size: 12px; padding: 6px 8px; border: 1px solid #d0d0d0; border-radius: 4px; background: #fff; color: #333; }
.soc-kanban-card-select:focus { border-color: #006d4e; outline: none; }
.soc-kanban-card-empty { font-size: 13px; color: #999; text-align: center; padding: 20px 10px; }

@media (max-width: 768px) {
    .soc-kanban-simple { gap: 12px; min-height: 400px; }
    .soc-kanban-column { flex: 0 0 200px; min-width: 200px; }
}

/* Gráfico tipo candlestick / columnas: suma de montos por etapa */
.soc-candlestick-chart-box {
    width: 100%;
    min-height: 280px;
    padding: 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
}
.soc-candlestick-chart {
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: 100%;
    min-height: 240px;
}
.soc-candlestick-yaxis {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 32px;
    width: 52px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-size: 11px;
    color: #555;
    padding-right: 8px;
    text-align: right;
}
.soc-candlestick-area {
    position: relative;
    flex: 1;
    min-height: 160px;
    margin-left: 52px;
    margin-bottom: 28px;
}
.soc-candlestick-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, #e8e8e8 1px, transparent 1px),
        linear-gradient(to bottom, #e8e8e8 1px, transparent 1px);
    background-size: calc(100% / 7) calc(100% / var(--yticks, 6));
    background-repeat: repeat;
    border-radius: 4px;
}
.soc-candlestick-bars {
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 0;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    gap: 4px;
    padding: 0 4px;
}
.soc-candlestick-candle {
    flex: 1;
    min-width: 0;
    max-width: 48px;
    background: linear-gradient(180deg, #008f63 0%, #006d4e 100%);
    border-radius: 4px 4px 0 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 4px;
    transition: height 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.soc-candlestick-candle-value {
    font-size: 10px;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 0 2px rgba(0,0,0,0.4);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
.soc-candlestick-xaxis {
    display: flex;
    justify-content: space-around;
    gap: 4px;
    margin-left: 52px;
    padding: 0 12px 0 4px;
    font-size: 10px;
    color: #555;
    text-align: center;
}
.soc-candlestick-xlabel {
    flex: 1;
    max-width: 48px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.soc-candlestick-chart-box .soc-candlestick-chart { position: relative; }
@media (max-width: 1000px) {
    .soc-dashboard-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .soc-dashboard-cards { grid-template-columns: 1fr; }
}

/* =========================================================
   RESPONSIVE MÓVIL - Todas las páginas
========================================================= */

@media (max-width: 768px) {
    .soc-dashboard-page,
    .soc-page-inner,
    .contacto-module {
        max-width: 100%;
        box-sizing: border-box;
    }

    .soc-dashboard-page {
        padding: 12px 16px 24px;
        min-height: 0;
    }

    .soc-dashboard-title {
        font-size: 1.25rem;
        margin-bottom: 16px;
    }

    .soc-dashboard-grid {
        gap: 12px;
    }

    .soc-page-inner {
        padding: 12px 16px 24px;
    }

    .soc-page-header {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 24px;
        gap: 12px;
    }

    .soc-title {
        font-size: 1.25rem;
    }

    .soc-contact-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .soc-contact-stepper-wrap {
        width: 100%;
        overflow-x: hidden;
    }

    .soc-contact-stepper-wrap .soc-contact-stepper {
        width: 100%;
        max-width: 100%;
    }

    .soc-contact-toolbar {
        padding: 8px 12px;
        gap: 8px;
        min-height: 44px;
        flex-wrap: wrap;
        max-width: 100%;
    }

    .soc-contact-toolbar .e-btn {
        padding: 8px 12px !important;
        min-height: 40px;
    }

    /* Pestañas en varias filas para que quepan sin scroll horizontal */
    .soc-tabs,
    .soc-tab-content {
        max-width: 100%;
        overflow-x: hidden;
    }

    .soc-tab-headers {
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
        margin-left: 0;
        margin-right: 0;
        padding-left: 0;
        padding-right: 0;
    }

    .soc-tab {
        padding: 8px 12px;
        font-size: 13px;
        white-space: normal;
        flex-shrink: 0;
    }

    .soc-datos-detalle {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .soc-card-oportunidades {
        grid-column: 1;
    }

    .soc-datos-contacto-card,
    .soc-card-evento,
    .soc-card-prioridades,
    .soc-card-oportunidades {
        min-height: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-wrap: break-word;
        overflow-x: hidden;
    }

    .soc-datos-detalle {
        overflow-x: hidden;
    }

    .soc-card-evento {
        min-height: 0;
    }

    .soc-card-prioridades {
        min-height: 0;
    }

    /* Cada tarjeta de prioridad ocupa solo el ancho de pantalla */
    .soc-prioridad-card {
        max-width: 100%;
        box-sizing: border-box;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .soc-prioridad-title,
    .soc-prioridad-comment {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    /* Grid Oportunidades en móvil: solo No. Oportunidad (col 1) y Monto solicitado (col 3); ocultas 2, 4, 5 y botón (6) */
    .soc-card-oportunidades table th:nth-child(2),
    .soc-card-oportunidades table th:nth-child(4),
    .soc-card-oportunidades table th:nth-child(5),
    .soc-card-oportunidades table td:nth-child(2),
    .soc-card-oportunidades table td:nth-child(4),
    .soc-card-oportunidades table td:nth-child(5),
    .soc-card-oportunidades .e-grid th:nth-child(2),
    .soc-card-oportunidades .e-grid th:nth-child(4),
    .soc-card-oportunidades .e-grid th:nth-child(5),
    .soc-card-oportunidades .e-grid td:nth-child(2),
    .soc-card-oportunidades .e-grid td:nth-child(4),
    .soc-card-oportunidades .e-grid td:nth-child(5),
    .soc-card-oportunidades .soc-grid .e-headercell:nth-child(2),
    .soc-card-oportunidades .soc-grid .e-headercell:nth-child(4),
    .soc-card-oportunidades .soc-grid .e-headercell:nth-child(5),
    .soc-card-oportunidades .soc-grid .e-rowcell:nth-child(2),
    .soc-card-oportunidades .soc-grid .e-rowcell:nth-child(4),
    .soc-card-oportunidades .soc-grid .e-rowcell:nth-child(5) {
        display: none !important;
    }

    /* Columna 1 (No. Oportunidad): ancho flexible; en móvil el enlace abre la oportunidad */
    .soc-card-oportunidades table th:nth-child(1),
    .soc-card-oportunidades table td:nth-child(1),
    .soc-card-oportunidades .e-grid th:nth-child(1),
    .soc-card-oportunidades .e-grid td:nth-child(1),
    .soc-card-oportunidades .soc-grid .e-headercell:nth-child(1),
    .soc-card-oportunidades .soc-grid .e-rowcell:nth-child(1) {
        width: 1% !important;
        min-width: 0 !important;
        max-width: calc(100% - 110px) !important;
    }

    /* Columna 3 (Monto solicitado): visible en móvil, sin botón */
    .soc-card-oportunidades table th:nth-child(3),
    .soc-card-oportunidades table td:nth-child(3),
    .soc-card-oportunidades .e-grid th:nth-child(3),
    .soc-card-oportunidades .e-grid td:nth-child(3),
    .soc-card-oportunidades .soc-grid .e-headercell:nth-child(3),
    .soc-card-oportunidades .soc-grid .e-rowcell:nth-child(3) {
        display: table-cell !important;
        width: 110px !important;
        min-width: 90px !important;
        max-width: 120px !important;
        visibility: visible !important;
        white-space: nowrap;
    }

    /* En móvil: monto solicitado visible en la primera columna del grid Oportunidades */
    .soc-card-oportunidades .soc-monto-en-linea,
    .soc-card-oportunidades .soc-monto-solicitado-movil {
        display: block !important;
        visibility: visible !important;
    }
    .soc-card-oportunidades .soc-oportunidad-cell {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    /* En móvil ocultar columna del botón Mostrar: se usa el enlace de la columna 1 */
    .soc-card-oportunidades table th:nth-child(6),
    .soc-card-oportunidades table td:nth-child(6),
    .soc-card-oportunidades .e-grid th:nth-child(6),
    .soc-card-oportunidades .e-grid td:nth-child(6),
    .soc-card-oportunidades .soc-grid .e-headercell:nth-child(6),
    .soc-card-oportunidades .soc-grid .e-rowcell:nth-child(6),
    .soc-card-oportunidades .e-headercell.soc-col-mostrar,
    .soc-card-oportunidades .e-rowcell.soc-col-mostrar,
    .soc-card-oportunidades .e-rowcell:has(.e-btn),
    .soc-card-oportunidades .e-grid th:last-child,
    .soc-card-oportunidades .e-grid td:last-child,
    .soc-card-oportunidades .e-grid .e-headercell:last-child,
    .soc-card-oportunidades .e-grid .e-rowcell:last-child,
    .soc-card-oportunidades table th:last-child,
    .soc-card-oportunidades table td:last-child {
        display: none !important;
    }

    .soc-card-oportunidades .soc-grid,
    .soc-card-oportunidades .e-grid,
    .soc-card-oportunidades .e-gridcontent {
        width: 100% !important;
        max-width: 100% !important;
    }

    .soc-grid-oportunidades-wrap {
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        box-sizing: border-box;
    }

    .soc-card-oportunidades .e-grid,
    .soc-card-oportunidades .e-gridcontent {
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    /* Que la celda del botón no se recorte: asegurar que el botón sea visible */
    .soc-card-oportunidades .e-grid .e-rowcell .e-btn,
    .soc-card-oportunidades .e-grid td .e-btn {
        visibility: visible !important;
        display: inline-flex !important;
    }

    .soc-card-oportunidades .e-grid .e-gridcontent table,
    .soc-card-oportunidades .e-grid .e-gridheader table {
        width: 100% !important;
        table-layout: fixed !important;
    }

    .soc-card-oportunidades .e-grid colgroup col:nth-child(2),
    .soc-card-oportunidades .e-grid colgroup col:nth-child(4),
    .soc-card-oportunidades .e-grid colgroup col:nth-child(5),
    .soc-card-oportunidades .e-grid colgroup col:nth-child(6) {
        width: 0 !important;
        min-width: 0 !important;
    }

    .soc-card-oportunidades .e-grid colgroup col:nth-child(3) {
        width: 110px !important;
        min-width: 90px !important;
    }

    .soc-card-oportunidades .e-gridpager,
    .soc-card-oportunidades .e-pager,
    .soc-card-oportunidades .e-pagercontainer {
        max-width: 100% !important;
        flex-wrap: wrap !important;
        font-size: 12px !important;
    }

    .soc-card-oportunidades .e-pager .e-pagercontainer {
        justify-content: center !important;
    }

    .soc-historico-grid-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        max-width: 100%;
        margin: 0;
    }

    .soc-historico-table {
        min-width: 400px;
    }

    .soc-grid,
    .e-grid {
        min-width: 0;
        max-width: 100%;
    }

    /* Contenedor para grids Syncfusion: scroll interno, no expande la página (oportunidades usa overflow hidden y columnas ocultas) */
    .soc-main-content .e-gridcontainer,
    .soc-page-inner .e-gridcontainer {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        max-width: 100%;
    }

    .soc-detalles-grid {
        grid-template-columns: 1fr;
    }

    .soc-resumen-grid {
        grid-template-columns: 1fr;
    }

    .soc-seguimiento-columns {
        grid-template-columns: 1fr;
    }

    .soc-form-row-group {
        grid-template-columns: 1fr;
    }

    .soc-buscar-contacto {
        padding: 12px;
    }

    .soc-dl dt,
    .soc-dl dd {
        word-break: break-word;
    }

    .soc-milista-section {
        padding: 12px;
    }

    .soc-dialog .e-dlg-content {
        padding: 12px;
    }

    .soc-dialog .e-dlg-header {
        padding: 12px 16px;
    }

    .soc-dialog .e-dlg-content,
    .soc-dialog .e-dlg-overlay {
        max-width: 100vw;
    }

    .e-dialog {
        max-width: calc(100vw - 24px) !important;
    }

    .soc-page .e-input,
    .soc-page .e-dropdownlist {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .soc-page-inner {
        padding: 10px 12px 20px;
    }

    .soc-contact-toolbar {
        padding: 6px 10px;
        gap: 6px;
    }

    .soc-contact-toolbar .e-btn {
        padding: 6px 10px !important;
        font-size: 12px;
    }

    .soc-tab-headers {
        gap: 2px;
    }

    .soc-tab {
        padding: 6px 10px;
        font-size: 12px;
    }

    .soc-title {
        font-size: 1.1rem;
    }

    .soc-datos-contacto-card,
    .soc-card-evento,
    .soc-card-prioridades,
    .soc-card-oportunidades {
        padding: 12px;
    }

    .soc-grid .e-rowcell {
        padding: 8px 6px;
        font-size: 12px;
    }

    .soc-grid .e-headercell {
        font-size: 12px;
    }
}
