/*************************************************************
 GENESYS UI / SALIX MODERNIZACIÓN
 Estilos comunes para aplicaciones WebForms Genesys / Athlon

 Objetivo:
 - Centralizar la identidad visual base de la plataforma.
 - Evitar estilos duplicados en cada página ASPX.
 - Mantener componentes reutilizables para MasterPage, grillas,
   botoneras, formularios, TreeView, imágenes y utilidades.

 Convenciones:
 - Prefijo gv-*  : GridView moderno.
 - Prefijo gx-*  : componentes Genesys nuevos.
 - Prefijo page-*: cabecera común de página.
 - Prefijo bg-*  : utilidades de color heredadas/reutilizables.

 Versión: 1.1.0
*************************************************************/

/* =========================================================
   0) BASE GENERAL DE APLICACIÓN
   ========================================================= */


.main-content {
    background: #0f2a3d;
    border-radius: 12px;
}

.main-content,
.content-wrapper,
#mainContent {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.opaco {
    opacity: .5;
    pointer-events: none;
}


/* =========================================================
   1) PALETA Y UTILIDADES DE FONDO
   =========================================================
   Uso:
   - Badges, referencias de grilla, estados visuales heredados.
   - Mantener estas clases por compatibilidad con páginas existentes.
   ========================================================= */

/* Neutros */
.bg-blanco {
    background-color: #fdfefe !important;
}

.bg-gris {
    background-color: #d5d8dc !important;
}

.bg-gris-osc {
    background-color: #aeb2b5 !important;
}

/* Cálidos claros */
.bg-amarillo {
    background-color: #F1F5C1 !important;
}

.bg-amarillo-osc {
    background-color: #D4D78B !important;
}

.bg-naranja {
    background-color: #f6ddcc !important;
}

.bg-naranja-osc {
    background-color: #e5b899 !important;
}

.bg-rosa {
    background-color: #f2d7d5 !important;
}

.bg-rosa-osc {
    background-color: #e6a8a3 !important;
}

/* Fríos claros */
.bg-celeste {
    background-color: #d4e6f1 !important;
}

.bg-celeste-osc {
    background-color: #9ec6e0 !important;
}

.bg-verde {
    background-color: #d4efdf !important;
}

.bg-verde-osc {
    background-color: #9ed6b9 !important;
}

.bg-lila {
    background-color: #D6BFDB !important;
}

.bg-lila-osc {
    background-color: #b588c0 !important;
}

/* Contraste / acentos */
.bg-azul {
    background-color: #6287B5 !important;
}

.bg-azul-claro {
    background-color: #9cb4d4 !important;
}

.bg-dorado {
    background-color: #FAF3DD !important;
}

.bg-durazno {
    background-color: #FFE5CC !important;
}

.bg-salmon {
    background-color: #FFD9D9 !important;
}

.bg-rosado {
    background-color: #FDE2E4 !important;
}

.bg-limon {
    background-color: #F6FDDC !important;
}

.bg-menta {
    background-color: #E4F9F5 !important;
}

.bg-agua {
    background-color: #EAF6FF !important;
}

.bg-lavanda {
    background-color: #EDE7F6 !important;
}

.bg-hueso {
    background-color: #F5F5F5 !important;
}

.bg-marfil {
    background-color: #FFFDF0 !important;
}

/* =========================================================
   3) BOTONERA DE ACCIONES DE PÁGINA
   =========================================================
   Uso:
   - panBotonera.
   - Acciones generales de la página, no necesariamente de la grilla.
   - No debe alinearse obligatoriamente con la grilla.
   ========================================================= */

.gx-actionbar {
    margin: 0 0 8px 0 !important;
    padding: 12px 32px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 0 0 10px 10px;
    box-sizing: border-box;
}

.gx-actionbar-title {
    font-size: .9rem;
    font-weight: 600;
    color: rgba(255,255,255,.65);
}

.gx-actionbar .ibtn-round-36 {
    width: 36px;
    height: 36px;
}

    .gx-actionbar .ibtn-round-36:hover {
        transform: translateY(-1px);
    }

/* Compatibilidad con toolbar anterior. */
.action-bar {
    min-height: 40px;
}

.action-btn {
    width: 36px;
    height: 36px;
    padding: 6px;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0,0,0,.25);
    transition: all 0.2s ease;
}

    .action-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 10px rgba(0,0,0,.35);
    }

/* =========================================================
   4) GRIDVIEW MODERNO / gv-modern
   =========================================================
   Uso:
   - GridView ASP.NET con Bootstrap.
   - Reemplaza estilos legacy como table-bordered / grid-header-light.
   - Variante limpia: sin bordes verticales.
   ========================================================= */

.gv-cap {
    border: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
}

.gv-modern,
.gv-modern.table-bordered {
    border: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

    .gv-modern > :not(caption) > * > th,
    .gv-modern > :not(caption) > * > td {
        border: 0 !important;
    }

    .gv-modern thead,
    .gv-modern thead tr {
        background: transparent !important;
    }

        .gv-modern thead th,
        .gv-modern .gvh,
        .gv-modern .gvh th {
            background: linear-gradient(180deg, #1f2937 0%, #111827 100%) !important;
            color: #fff !important;
            border: 0 !important;
            text-shadow: 0 1px 0 rgba(0,0,0,.35);
            font-weight: 600;
            line-height: 1.15;
            padding-top: .55rem;
            padding-bottom: .55rem;
            position: sticky;
            top: 0;
            z-index: 2;
            box-shadow: inset 0 1px 0 rgba(255,255,255,.18), inset 0 -1px 0 rgba(0,0,0,.12);
        }

            .gv-modern thead th:first-child {
                border-top-left-radius: 12px !important;
            }

            .gv-modern thead th:last-child {
                border-top-right-radius: 12px !important;
            }

            .gv-modern thead th + th {
                box-shadow: inset 1px 0 0 rgba(255,255,255,.10), inset 0 -1px 0 rgba(0,0,0,.08);
            }

            .gv-modern thead th a,
            .gv-modern thead th a:link,
            .gv-modern thead th a:visited,
            .gv-modern thead th a:hover,
            .gv-modern thead th a:focus,
            .gv-modern thead th * {
                color: #fff !important;
                text-decoration: none !important;
            }

    .gv-modern .th-action,
    .gv-modern .td-action {
        text-align: center;
        vertical-align: middle;
        width: 48px;
        padding-left: .25rem !important;
        padding-right: .25rem !important;
    }

    .gv-modern.table-striped > tbody > tr:nth-of-type(odd) > * {
        --bs-table-accent-bg: #fafafa;
        color: inherit;
    }

    .gv-modern tbody tr:hover {
        background-color: rgba(255,255,255,0.05);
    }

    .gv-modern thead th.sorted-asc::after {
        content: " ▲";
        font-size: .75rem;
    }

    .gv-modern thead th.sorted-desc::after {
        content: " ▼";
        font-size: .75rem;
    }

.td-action img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.table-responsive {
    overflow-x: auto;
}


/* =========================================================
   5) BLOQUE EDICIÓN / FORMULARIOS GENESYS
   =========================================================
   Uso:
   - panEdit, panABM, panInfo.
   - Fondo oscuro de aplicación + card clara para formularios.
   - Obligatoriedad: usar * en label, no colores permanentes.
   - Validación: usar is-invalid solo cuando falle validación.
   ========================================================= */

.gx-edit-panel {
    margin: 12px 24px;
    padding: 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 14px;
}

.gx-edit-state {
    margin: 12px 0 16px 0;
    padding: 10px 16px;
    border-radius: 10px;
    background: rgba(255,255,255,0.9);
    color: #475569;
    font-size: 0.95rem;
    font-weight: 500;
}

.gx-form-card {
    background: #ffffff !important;
    border-radius: 12px;
    padding: 20px 24px;
    box-shadow: 0 6px 18px rgba(0,0,0,.25);
}

.gx-form-card-header {
    background: #f8fafc;
    font-size: 1rem;
    color: #64748b;
    font-weight: 600;
}

.gx-form-card-body {
    padding: 20px 24px 24px 24px;
}

    .gx-form-card-body .mb-3 {
        margin-bottom: 18px !important;
    }

.gx-form-card .form-label {
    color: #334155 !important;
}

.gx-form-card .form-control {
    border-color: #ced4da !important;
    box-shadow: none !important;
}

.form-control {
    border-radius: 8px;
    padding: 10px 12px;
}

    .form-control:focus {
        border-color: #3b82f6 !important;
    }

.btn-athlon {
    background: #1f7a5c;
    border: none;
    color: #fff;
    padding: 8px 18px;
    border-radius: 8px;
    font-weight: 500;
    letter-spacing: .3px;
    transition: all .2s ease;
    margin-top: 16px;
}

    .btn-athlon:hover {
        background: #18634a;
    }


/* =========================================================
   6) BOTONES DE IMAGEN 36x36
   =========================================================
   Uso:
   - ImageButton legacy y acciones de botoneras/grillas.
   - Estado normal: icono limpio, sin borde ni fondo permanente.
   - Hover: fondo azul muy tenue.
   - ibtn-con-datos: indica que la funcionalidad contiene información
     mediante un punto azul discreto en la esquina superior derecha.
   - Se conservan las clases ibtn-borde-* por compatibilidad legacy.
   ========================================================= */

input[type="image"].ibtn-round-36 {
    box-sizing: border-box;
    width: 36px;
    height: 36px;
    padding: 5px;
    margin-right: .35rem;
    vertical-align: middle;

    border: none !important;
    border-radius: 8px;
    outline: none !important;
    box-shadow: none !important;
    background-color: transparent !important;

    transition: background-color .15s ease, transform .15s ease;
}

input[type="image"].ibtn-round-36:hover {
    background-color: rgba(13, 110, 253, .07) !important;
}

input[type="image"].ibtn-round-36:focus {
    outline: none !important;
}

/* Estado informativo: la funcionalidad contiene datos.
   El punto se dibuja como una segunda capa de fondo para no requerir
   cambios en el HTML/WebForms ni pseudo-elementos. */
input[type="image"].ibtn-round-36.ibtn-con-datos {
    background-color: transparent !important;
    background-image: radial-gradient(
        circle at calc(100% - 4px) 4px,
        #0d6efd 0,
        #0d6efd 2.5px,
        transparent 3px
    ) !important;
    background-repeat: no-repeat !important;
    box-shadow: none !important;
}

/* Mantiene visible el indicador al pasar el mouse. */
input[type="image"].ibtn-round-36.ibtn-con-datos:hover {
    background-color: rgba(13, 110, 253, .07) !important;
}

/* Estado de selección real. No confundir con "contiene datos". */
.ibtn-selected {
    background-color: rgba(13, 110, 253, .10) !important;
}

/* Compatibilidad con páginas legacy que aún utilizan bordes de estado.
   En los botones modernos ibtn-round-36 el borde base está desactivado. */
.ibtn-borde-blanco {
    border-color: #fff !important;
}

.ibtn-borde-rojo {
    border-color: #dc3545 !important;
}

.ibtn-borde-gris {
    border-color: #aeb2b5 !important;
}

.ibtn-borde-amarillo {
    border-color: #FAF3DD !important;
}

.ibtn-borde-verde {
    border-color: #198754 !important;
}

/* Separación para grupos de botones en columnas auto.
   Nota: afecta cualquier .col-auto global; mantener por compatibilidad. */
.col-auto {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem;
}


/* =========================================================
   7) BÚSQUEDA Y CONTROLES AUXILIARES
   ========================================================= */

.chk-gap input[type="checkbox"] {
    margin-left: .5rem;
}

.btn-buscar {
    background-color: #34495e;
    color: #fff;
    border-radius: 50px;
    padding: .375rem 1rem;
    border: none;
}


/* =========================================================
   8) TREEVIEW / Árboles Genesys
   =========================================================
   Uso:
   - TreeViews con ID que contiene TreeG.
   - Badges, íconos y nodos jerárquicos.
   ========================================================= */

[id*="TreeG"] .n-wrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding-left: 8px;
}

[id*="TreeG"] .n-ico {
    font-size: 16px;
    opacity: .9;
}

[id*="TreeG"] .n-badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 999px;
    border: 1px solid transparent;
}

[id*="TreeG"] .n-text {
    font-weight: 500;
}

[id*="TreeG"] .n-root {
    border-left: 4px solid #6c757d;
}

[id*="TreeG"] .n-badge.n-root {
    background: #f1f3f5;
    color: #495057;
    border-color: #dee2e6;
}

[id*="TreeG"] .n-badge.n-proy {
    background: #e8f5e9;
    color: #2e7d32;
    border-color: #a5d6a7;
}

[id*="TreeG"] .n-badge.n-ticket {
    background: #e3f2fd;
    color: #1565c0;
    border-color: #90caf9;
}

[id*="TreeG"] .n-badge.n-interv {
    background: #fff3e0;
    color: #ef6c00;
    border-color: #ffcc80;
}

[id*="TreeG"] td,
[id*="TreeG"] span,
[id*="TreeG"] a {
    vertical-align: middle !important;
    line-height: 1.2 !important;
}

.node-bold {
    font-weight: 700;
}

.tv-node.selected {
    text-transform: uppercase;
}

.tv-host {
    position: relative;
}


/* =========================================================
   9) FOTOS / AVATARS
   ========================================================= */

[id*="TreeG"] img[src^="data:image"],
[id*="TreeG"] img[src*="VGFoto.ashx"],
.img-usuarios img[src^="data:image/"] {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    margin-right: 8px !important;
    box-shadow: 0 0 0 2px #fff inset !important;
}

[id^="MainContent_TreeG"] img[alt=""] {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    margin-right: 8px !important;
    box-shadow: 0 0 0 2px #fff inset !important;
}


/* =========================================================
   10) MENÚ CONTEXTUAL
   ========================================================= */

#ctxMenu {
    position: absolute !important;
    display: none;
    z-index: 99999;
    min-width: 260px;
    width: max-content;
    white-space: nowrap;
}

    #ctxMenu.show {
        display: block;
    }


/* =========================================================
   11) FOOTER SALIX
   =========================================================
   Uso:
   - Pie institucional.
   - Debe acompañar, no competir con el contenido.
   ========================================================= */

.footer-salix {
    padding: 10px 20px !important;
    min-height: auto !important;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    background: linear-gradient(180deg, #0b1f2a 0%, #081821 100%);
    border-top: 1px solid rgba(255,255,255,0.08);
}

    .footer-salix img {
        max-height: 40px !important;
        opacity: 0.85;
    }

    .footer-salix strong {
        font-weight: 500;
    }

    .footer-salix .row {
        align-items: center;
        gap: 10px;
    }
/* ================================================================================================================================== */
/* ESTILOS SALIX */
/* ================================================================================================================================== */
/* Header Titulos */
.bg-header {
    background-color: #222529; /* color negro com oel titulo */
    box-shadow: 0 6px 6px -4px rgba(0, 0, 0, 0.25);
}



/* ── CSS PERSONALISADO ── */
/* ── salix Search Panel ─────────────────────────── */
.salix-search-panel {
    background: #f4f5f7;
    border-radius: 14px;
    padding: 16px;
}

/* Banner */
.salix-info-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 102, 255, 0.2);
    border: 2px solid #0066ff;
    border-radius: 20px;
    padding: 14px 18px;
    color: #0148B3;
    font-size: 14px;
    width: 70%;
}

.salix-info-icon {
    width: 25px;
    height: 25px;
    fill: #0148B3;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Cards (grupos) */
.salix-group {
    background: #ffffff;
    border-radius: 14px;
    padding: 20px;
    margin-top: 18px;
    box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}

/* Header grupo */
.salix-group-header {
    margin-bottom: 16px;
}

.salix-group-label {
    font-size: 13px;
    font-weight: 600;
    color: #3a3a3a;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .salix-group-label::before {
        content: '';
        width: 3px;
        height: 14px;
        background: #0066ff;
        border-radius: 2px;
    }

/* Campos */
.salix-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Labels */
.salix-label {
    font-size: 12px;
    font-weight: 600;
    color: #5a5a5a;
    text-transform: uppercase;
}

/* Inputs */
.salix-input,
.salix-input.form-control,
.salix-input.form-select {
    height: 40px !important;
    background: #f8f8f8 !important;
    border: 1px solid #d6d6d6 !important;
    border-radius: 10px !important;
    padding: 0 12px !important;
    font-size: 14px !important;
    color: #333 !important;
    transition: all 0.2s ease;
    cursor: pointer !important;
}

    /* Focus */
    .salix-input:focus {
        border-color: #f0a64b !important;
        box-shadow: 0 0 0 3px rgba(240,166,75,0.2) !important;
        background: #fff !important;
    }

select.salix-input {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-color: #f8f8f8 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23666' viewBox='0 0 16 16'%3E%3Cpath d='M1.5 5l6 6 6-6'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 12px !important;
    padding-right: 35px !important;
}

/* Hint */
.salix-hint {
    font-size: 11px;
    color: #8a8a8a;
}

/* Barra inferior */
.salix-actions-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 10px;
    margin-top: 20px;
}

/* Texto ayuda */
.salix-actions-hint {
    font-size: 13px;
    color: #555;
}

/* Botón secundario */
.salix-btn-sec {
    height: 40px;
    padding: 0 18px;
    border-radius: 12px;
    border: 1px solid #d6d6d6;
    background: #fff;
    color: #555;
    cursor: pointer;
}

    .salix-btn-sec:hover {
        background: #f5f5f5;
    }

.salix-dot {
    width: 8px;
    height: 8px;
    background-color: #0066ff;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
}

/* Botón principal */
.salix-btn-pri {
    height: 40px;
    padding: 0 22px;
    border-radius: 12px;
    border: 1px solid #0066ff;
    background: #fff;
    color: #333;
    font-weight: 500;
    cursor: pointer;
}

    /* Hover */
    .salix-btn-pri:hover {
        color: #ffffffff;
        background: #2D81FE;
    }

.salix-btn-sec,
.salix-btn-pri {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

/* GRID MODERNA */
.salix-grid-card {
    border-radius: 14px;
    overflow: hidden;
}

.salix-grid-row {
    background-color: #f8fafc;
}

.salix-grid-row-font {
    font-size: 14px;
    font-weight: 400 !important;
    color: #30302E !important;
}

.salix-grid-header {
    background: #f8f9fb;
    font-size: 12px;
    text-transform: uppercase;
    color: #6c757d;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

.salix-grid-row:hover {
    background-color: rgba(0,0,0,0.03);
    transition: 0.2s;
}

.salix-grid-row-alt {
    background-color: #fcfcfd;
}


/* badge naranja custom */
.bg-orange {
    background-color: #0066ff;
}

/* CONTENEDOR */
.salix-pager {
    display: flex;
    justify-content: center;
    padding: 12px;
    gap: 6px;
    background: #fff;
    border-top: 1px solid #eee;
}

    /* LINKS */
    .salix-pager a,
    .salix-pager span {
        display: inline-block;
        min-width: 32px;
        height: 32px;
        line-height: 32px;
        text-align: center;
        border-radius: 8px;
        font-size: 13px;
        text-decoration: none;
    }

    /* PAGINAS */
    .salix-pager a {
        color: #555;
        background: #f5f6f8;
        transition: all 0.2s ease;
    }

        .salix-pager a:hover {
            background: #e9ecef;
        }

    /* PAGINA ACTUAL */
    .salix-pager span {
        background: #E8A020;
        color: #1A1A2E;
        font-weight: 600;
    }

/* hover suave */
.salix-grid tbody tr:hover {
    background-color: #f8f9fa;
    transition: all 0.2s ease;
}

/* fila seleccionada (click) */
.salix-grid .row-selected {
    background-color: #f1f5ff !important; /* azul muy suave */
    box-shadow: inset 3px 0 0 #0d6efd; /* borde izquierdo */
}

/* alternativa SOLO borde sin fondo */
.salix-grid .row-selected-border {
    background-color: transparent !important;
    box-shadow: inset 3px 0 0 #0d6efd;
}

/*.salix-detail-header {
    display: flex;
    align-items: center;
    gap: 18px;
    background: #fff;
    border-radius: 14px;
    padding: 16px 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    overflow-x: auto;
}
*/
.salix-detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 140px;
}

    .salix-detail-item.highlight {
        background: #fff4e5;
        padding: 8px 12px;
        border-radius: 12px;
    }

.salix-detail-label {
    font-size: 11px;
    color: #777;
    display: block;
}

.salix-divider {
    width: 1px;
    height: 40px;
    background: #e0e0e0;
}


/* ICONOS */
.salix-icon {
    width: 28px;
    height: 28px;
}

.salix-icon-sm {
    width: 18px;
    height: 18px;
}

/* CARDS */
.salix-card-white {
    background: #fff;
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}

.salix-card-white-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    margin-bottom: 12px;
}



/* LISTAS */
.salix-info-list div {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid #eee;
    font-size: 13px;
}

.salix-info-list span {
    color: #777;
}

.salix-action-cell {
    padding: 2px !important;
    width: 36px;
}

.salix-action-btn {
    width: 28px;
    height: 28px;
    padding: 3px;
    border-radius: 6px;
    transition: all 0.15s ease;
}

    .salix-action-btn:hover {
        background-color: rgba(0,0,0,0.06);
        transform: scale(1.05);
    }

/* IMÁGENES PASOS2 */
.salix-image-item {
    text-align: center;
}

.salix-img {
    max-width: 160px;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.2s;
}

    .salix-img:hover {
        transform: scale(1.05);
    }

.img-evidencia {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
}

/* ===== OCULTAR CONTROLES LEGACY PASOS2 ===== */
.legacy-hidden {
    display: none !important;
}


/* HEADER vista detalle PASOS2 */
.salix-detail-header {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border-radius: 14px;
    width: 100%;
    margin-right: 5px;
    margin-left: 5px;
    padding: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    overflow-x: auto;
    animation: fadeSlideUp 0.4s ease;
}

.icon_header_car {
    width: 80px;
    height: 80px;
    object-fit: cover;
}

.icon_header {
    width: 30px;
    height: 30px;
    object-fit: cover;
}

.header-title, .header-item-subtitle {
    font-size: 14px;
    color: #686868;
}


.header-item-title {
    font-size: 20px;
    font-weight: 700;
}

.header-item-subtitle {
    color: #30302E;
}

.salix-highlight {
    background: #fff4e5;
    padding: 8px 12px;
    border-radius: 12px;
}

/* IMÁGENES */
.salix-images-container {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 10px;
}

/* CARDS GRID  */
.salix-card {
    background: #1a1d22;
    border-radius: 12px;
    padding: 16px;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.salix-card-dark-title {
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 14px;
    opacity: 0.8;
}

.salix-info-item {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

    .salix-info-item span {
        opacity: 0.7;
    }

    .salix-info-item label {
        font-weight: 500;
    }

/* resumen arriba PASOS2 */
.highlight-card {
    background: linear-gradient(135deg, #1f232a, #2b313a);
}

.resume-item {
    display: flex;
    flex-direction: column;
    margin-right: 20px;
}

    .resume-item span {
        font-size: 12px;
        opacity: 0.6;
    }

.value {
    font-size: 18px;
    font-weight: 600;
}

.highlight {
    color: #00e0ff;
}

.status {
    color: #00d26a;
}

/* Fade + slide al cargar */
@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#imgExpandida {
    animation: fadeSlideUp 0.3s ease;
}

.kv {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #eee;
    padding: 4px 0;
}

    .kv span {
        color: #6c757d;
    }

.txt {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
    pointer-events: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: auto !important;
    text-align: right;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
}
/******ESTILOS QUE ESTABAN EN LA SITE.MASTER de GENESYS***************/
.genesys-masterbar {
    min-height: 58px;
    margin-bottom: 14px;
    padding: 8px 14px;
    background: #20262c;
    color: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,.16);
}
    .genesys-masterbar .btn {
        padding: 4px 8px;
    }

    .genesys-masterbar .form-select {
        min-height: 40px;
        font-size: .95rem;
    }


*//* Mata cualquier fondo blanco intermedio */
body, form, #MainContent {
    background: transparent !important;
}

/* ============================================================
   SITE MASTER - MODOS PÚBLICO / AUTENTICADO
   ============================================================ */

.genesys-publicbar {
    min-height: 92px;
    padding: 14px 28px;
    background: rgba(16, 22, 28, .94);
    color: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 32px rgba(0,0,0,.22);
    backdrop-filter: blur(12px);
}

.genesys-public-brand {
    display: flex;
    align-items: center;
    gap: 20px;
}

.genesys-public-logo,
.public-brand-logo {
    height: 68px;
    width: auto;
    max-width: 260px;
    object-fit: contain;
    filter: drop-shadow(0 0 12px rgba(255,255,255,.16));
}

.genesys-public-title {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

    .genesys-public-title span {
        font-size: 22px;
        font-weight: 800;
        color: #fff;
        letter-spacing: -.3px;
    }

    .genesys-public-title small {
        margin-top: 3px;
        color: rgba(255,255,255,.72);
        font-weight: 500;
        font-size: 15px;
    }

.genesys-public-actions .btn {
    border-radius: 999px;
    padding: 10px 22px;
    font-weight: 700;
    font-size: 1rem;
}

.genesys-public-actions .btn-outline-light {
    border-color: rgba(255,255,255,.35);
}

.genesys-public-actions .btn-success {
    background: linear-gradient(135deg, #16c7b7, #47c91f);
    border: 0;
    box-shadow: 0 8px 20px rgba(29, 201, 128, .26);
}

.genesys-public-separator {
    height: 3px;
    margin-top: 10px;
    border-radius: 999px;
    background: linear-gradient(90deg, #47c91f, #16c7b7, #19a8ff);
}

.genesys-auth-shell,
.genesys-public-shell {
    width: 100%;
    margin-bottom: 10px;
}

.genesys-public-logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.genesys-page-filter-title {
    color: rgba(255,255,255,.82) !important;
    font-weight: 400;
}

.genesys-page-filter {
    color: #ffffff !important;
    font-weight: 600;
}

.genesys-page-logo {
    max-width: 130px;
    max-height: 52px;
    padding: 7px 12px;
    background: #ffffff;
    border-radius: 10px;
    object-fit: contain;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
/* FIN BLOQUE AGREGADO 20260712*/


/* Panel subtítulo */
#panFiltro {
    margin-top: 2px !important;
    min-height: 0 !important;
    padding: 0 !important;
}

    /* Si está vacío, no ocupa espacio */
    #panFiltro:empty {
        display: none !important;
    }

/*********************************************************************************************************************/
/* NUEVO LOOK&FEEL */
/*********************************************************************************************************************/
/* ============================================================
   TIPOGRAFÍA GLOBAL GENESYS
   ============================================================ */
@font-face {
    font-family: "Inter";
    src: url("/GenesysShared/fonts/InterVariable.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --genesys-font-family: "Inter", "Segoe UI", Arial, sans-serif;
}
html,
body {
    background: #f7f9fc;
}
html,
body,
button,
input,
select,
textarea,
.form-control,
.form-select,
.btn,
.table {
    font-family: var(--genesys-font-family) !important;
}
/* ============================================================
   GENESYS - BARRA SUPERIOR DE APLICACIÓN
   ============================================================ */

.genesys-topbar {
    width: 100vw;
    min-height: 64px;
    /* Sale del container Bootstrap y ocupa todo el viewport */
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 8px 32px;
    color: #fff;
    background: linear-gradient( 105deg, #062c68 0%, #064b9f 52%, #0878e8 100% );
    border: 0;
    border-radius: 0;
    box-shadow: 0 2px 8px rgba(9, 45, 96, .12);
    font-family: var(--genesys-font-family);
}
    .genesys-topbar .form-select {
        height: 42px;
        min-width: 300px;
        color: #fff;
        background-color: rgba(255, 255, 255, .08);
        border: 1px solid rgba(255, 255, 255, .28);
        border-radius: 9px;
        font-size: 15px;
        font-weight: 400;
        box-shadow: none;
    }

    .genesys-topbar .form-select:focus {
        border-color: rgba(255, 255, 255, .50);
        box-shadow: 0 0 0 2px rgba(255, 255, 255, .08);
    }
    .genesys-topbar .user-name,
    .genesys-topbar .account-name {
        font-weight: 400;
    }

    .genesys-topbar strong,
    .genesys-topbar .fw-semibold {
        font-weight: 500 !important;
    }
/* ============================================================
   GENESYS - SELECTOR DE USUARIO REPRESENTADO
   ============================================================ */

/* El selector cerrado pertenece al header y mantiene texto blanco */
.genesys-user-select {
    color: #ffffff;
}

    /* El desplegable nativo debe ser oscuro sobre blanco */
    .genesys-user-select option {
        color: #1e293b;
        background-color: #ffffff;
    }
/* ============================================================
LOGO DE LA APLICACIÓN - BARRA SUPERIOR
============================================================ */

.genesys-app-brand {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    height: 44px;
}

.genesys-app-logo {
    display: block;
    width: auto;
    height: 42px;
    max-width: 250px;
    object-fit: contain;
}
    /* ============================================================
   GENESYS - ICONOS DE ACCIÓN DE LA CABECERA
   ============================================================ */

    /*
 * Los iconos de la barra superior son acciones compactas.
 * No deben heredar el aspecto de los botones gráficos utilizados
 * en botoneras y grillas.
 */
    .genesys-topbar input[type="image"],
    .genesys-topbar .genesys-header-icon {
        box-sizing: border-box;
        width: 32px;
        height: 32px;
        padding: 4px;
        margin: 0 3px;
        object-fit: contain;
        background: transparent !important;
        border: 0 !important;
        border-radius: 6px;
        box-shadow: none !important;
        outline: none !important;
        vertical-align: middle;
        transition: background-color .15s ease, opacity .15s ease;
    }

        /* Feedback al pasar el mouse */
        .genesys-topbar input[type="image"]:hover,
        .genesys-topbar .genesys-header-icon:hover {
            background-color: rgba(255, 255, 255, .10) !important;
        }

        /* Evita aureolas/bordes de los estilos generales */
        .genesys-topbar input[type="image"]:focus,
        .genesys-topbar input[type="image"]:active {
            outline: none !important;
            box-shadow: none !important;
        }
/* ============================================================
   ACCIONES DE LA BARRA SUPERIOR
   ============================================================ */

/*
 * Botones de acción compactos utilizados en la cabecera.
 * El SVG contiene toda la representación gráfica del icono;
 * el botón no agrega borde, fondo ni contenedor visual.
 */
.genesys-action-btn {
    box-sizing: border-box;
    width: 32px !important;
    height: 32px !important;
    padding: 4px !important;
    margin: 0 2px;
    object-fit: contain;
    background: transparent !important;
    border: 0 !important;
    border-radius: 6px !important;
    box-shadow: none !important;
    outline: none !important;
    opacity: .90;
    vertical-align: middle;
    transition: background-color .15s ease, opacity .15s ease;
}

    /* Feedback discreto al pasar el mouse */
    .genesys-action-btn:hover {
        background-color: rgba(255, 255, 255, .10) !important;
        opacity: 1;
    }

    /* Sin borde ni aureola al recibir foco */
    .genesys-action-btn:focus,
    .genesys-action-btn:active {
        outline: none !important;
        box-shadow: none !important;
    }

    /*
 * Acciones potencialmente sensibles, por ejemplo Logout.
 * Por ahora mantienen el mismo tratamiento visual.
 * La clase queda disponible para diferenciarlas posteriormente.
 */
    .genesys-action-btn.is-danger {
        background: transparent !important;
    }
/* ============================================================
   GENESYS - MENÚ LATERAL / TREEVIEW
   ============================================================
   Única definición del menú lateral de Site.Master.
   El TreeView de navegación se limita a .tt-treeview para no
   interferir con otros árboles Genesys ([id*="TreeG"]).
   ============================================================ */

.tt-sidemenu {
    position: fixed;
    top: 0;
    left: 0;
    width: 380px;
    height: 100vh;
    max-height: 100vh;
    z-index: 1055;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 8px 0 28px rgba(15, 55, 100, .14);
    transform: translateX(-100%);
    transition: transform .25s ease;
}

body.tt-sidemenu-open .tt-sidemenu {
    transform: translateX(0);
}

/* Cabecera */
.tt-sidemenu-header {
    flex: 0 0 auto;
    min-height: 64px;
    color: #ffffff;
    background: linear-gradient(90deg, #0b3f82 0%, #0878f9 100%);
    border-bottom: 1px solid rgba(255,255,255,.12);
}

.tt-sidemenu-header .fw-semibold {
    font-size: 1.05rem;
    font-weight: 600 !important;
}

.tt-sidemenu-header .bi-list {
    font-size: 1.35rem;
}

.tt-sidemenu-header #btnMenuClose {
    width: 38px;
    height: 38px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.40);
    border-radius: 8px;
    box-shadow: none;
}

.tt-sidemenu-header #btnMenuClose:hover,
.tt-sidemenu-header #btnMenuClose:focus {
    color: #ffffff;
    background: rgba(255,255,255,.16);
    border-color: rgba(255,255,255,.58);
    box-shadow: none;
}

/* Cuerpo */
.tt-sidemenu-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 12px 10px 20px !important;
    background: #ffffff;
}

/* Overlay */
.tt-sidemenu-overlay {
    position: fixed;
    inset: 0;
    z-index: 1050;
    background: rgba(15, 23, 42, .28);
    backdrop-filter: blur(1px);
}

body.tt-sidemenu-open .tt-sidemenu-overlay {
    display: block;
}

/* TreeView de navegación generado por ASP.NET */
.tt-treeview {
    width: 100%;
    font-family: inherit !important;
    font-size: .92rem;
    color: #334155;
}

.tt-treeview table {
    border-collapse: separate;
    border-spacing: 0 2px;
    margin: 0;
    padding: 0;
    cursor: pointer;
}

.tt-treeview td {
    vertical-align: middle !important;
}

.tt-treeview td:last-child {
    width: 100%;
}

.tt-treeview a,
.tt-treeview span {
    line-height: 1.35;
}

.tt-treeview a {
    display: block;
    width: 100%;
    padding: 4px 7px;
    color: #334155 !important;
    text-decoration: none !important;
    border-radius: 6px;
    transition: background-color .15s ease, color .15s ease;
    cursor: pointer;
}

.tt-treeview a:hover {
    color: #075fc7 !important;
    background-color: #f1f6fd;
    text-decoration: none !important;
}

.tt-treeview a:focus {
    color: #075fc7 !important;
    background-color: #eef5ff;
    outline: none;
}
/* Título del menú */
.tt-sidemenu-title {
    gap: 10px;
}

.tt-sidemenu-title-icon {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

/* Botón cerrar */
.tt-sidemenu-close {
    width: 42px;
    height: 42px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 9px;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease;
}

    .tt-sidemenu-close svg {
        width: 20px;
        height: 20px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
        stroke-linecap: round;
    }

    .tt-sidemenu-close:hover {
        color: #ffffff;
        background: rgba(255, 255, 255, 0.16);
        border-color: rgba(255, 255, 255, 0.55);
    }

/* ==========================================================
   GENESYS - CABECERA DE PÁGINA
   ========================================================== */

/*
 * Contenedor exterior.
 * Mantiene la cabecera alineada con el área principal
 * de contenido de las aplicaciones Genesys.
 */

.genesys-page-header-wrapper {
    width: 100%;
    padding: 16px 24px 10px 24px;
    margin: 0;
    box-sizing: border-box;
}
.genesys-page-header {
    position: relative;
    width: 100%;
    min-height: 110px;
    padding: 14px 40px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient( 110deg, #104693 0%, #0d63c9 55%, #1192f5 100% );
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(15, 55, 100, .10);
}

.genesys-page-header-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    width: 100%;
}

.genesys-page-header-text {
    position: relative;
    z-index: 2;
}

.genesys-page-title {
    display: block;
    margin: 0;
    font-family: var(--genesys-font-family);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.15;
    color: #fff;
}

.genesys-page-subtitle {
    margin-top: 3px;
    font-family: var(--genesys-font-family);
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.25;
    color: rgba(255,255,255,.95);
}

.genesys-page-header-visual {
    position: absolute;
    right: 28px;
    top: 50%;
    transform: translateY(-50%);
    height: 112px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    pointer-events: none;
}

.genesys-page-header-image {
    display: block;
    width: auto;
    height: 100%;
    max-width: 320px;
    object-fit: contain;
}
/* ==========================================================
   IMAGEN DECORATIVA DEL SISTEMA
   ========================================================== */

.genesys-page-header-art {
    position: absolute;
    right: 28px;
    bottom: 0;
    height: 108px;
    width: auto;
    max-width: 38%;
    object-fit: contain;
    object-position: right bottom;
    pointer-events: none;
    user-select: none;
}


/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 992px) {

    .genesys-page-header {
        width: 92%;
        height: 110px;
        padding: 0 24px;
    }

    .genesys-page-title {
        font-size: 24px;
    }

    .genesys-page-subtitle {
        font-size: 16px;
    }

    .genesys-page-header-art {
        right: 18px;
        height: 92px;
        opacity: 0.75;
    }
}


@media (max-width: 576px) {

    .genesys-page-header-wrapper {
        padding-top: 16px;
    }

    .genesys-page-header {
        width: calc(100% - 24px);
        height: 100px;
        padding: 0 20px;
    }

    .genesys-page-title {
        font-size: 21px;
    }

    .genesys-page-subtitle {
        font-size: 14px;
    }

    .genesys-page-header-art {
        right: 8px;
        height: 82px;
        max-width: 45%;
        opacity: 0.45;
    }
}
/* ==========================================================
   PANEL BOTONERA DE ACCIONES
   ========================================================== */

.genesys-toolbar {
    width: 100%;
    min-height: 64px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #dfe5ec;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
    margin-bottom: 16px;
}
/* ==========================================================
   OTROS PANELES
   ========================================================== */

.genesys-surface {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.035), 0 8px 20px rgba(15, 23, 42, 0.025);
}
/* ============================================================
   GENESYS - CAMPOS DE SOLO LECTURA
   Título y valor para formularios de consulta
   ============================================================ */

label.genesys-field-label {
    display: block;
    width: 100%;
    margin: 0 0 0.25rem 0;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.25rem;
}

.genesys-field-value {
    display: block;
    width: 100%;
    min-height: 1.5rem;
    margin: 0;
    color: #1e293b;
    font-size: 0.94rem;
    font-weight: 500;
    line-height: 1.5rem;
    overflow-wrap: anywhere;
}

    .genesys-field-value:empty::after {
        content: "—";
        color: #94a3b8;
        font-weight: 400;
    }
 /* ============================================================
   GENESYS - BUSCADOR
   ============================================================ */
.genesys-filter-control {
    width: 295px;
    max-width: 100%;
}

.genesys-search-row {
    width: 100%;
    padding: 0;
    margin-bottom: 20px;
}
.genesys-search-box {
    position: relative;
    display: inline-block;
}

.genesys-search-input {
    width: 345px;
    padding-left: 42px;
    color: #1e293b;
    font-weight: 400;
}

    .genesys-search-input::placeholder {
        color: #8a97ad;
        font-weight: 400;
        opacity: 1;
    }
.genesys-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #8190a8;
    pointer-events: none;
    z-index: 2;
}

    .genesys-search-icon svg {
        display: block;
        width: 100%;
        height: 100%;
        stroke: currentColor;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
    }
/* ============================================================
   GENESYS - BOTÓN PRIMARIO
   ============================================================ */

.genesys-btn-primary {
    min-height: 42px;
    padding: 8px 20px;
    background: #0878f9;
    border: 1px solid #0878f9;
    border-radius: 8px;
    color: #ffffff;
    font-weight: 500;
    box-shadow: 0 3px 8px rgba(8, 120, 249, 0.16);
    transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}

    .genesys-btn-primary:hover,
    .genesys-btn-primary:focus {
        background: #066be0;
        border-color: #066be0;
        color: #ffffff;
    }

/* ============================================================
   GENESYS - INPUTS / SELECTS
   ============================================================ */

.genesys-input {
    min-height: 42px;
    padding: 8px 14px;
    background-color: #ffffff;
    border: 1px solid #d9e0ea;
    border-radius: 8px;
    color: #1e293b;
    font-size: 0.95rem;
    box-shadow: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

    .genesys-input:focus {
        background-color: #ffffff;
        border-color: #2f80ed;
        box-shadow: 0 0 0 3px rgba(47, 128, 237, 0.10);
        outline: none;
    }

/* ============================================================
   GENESYS - PANEL DE EDICIÓN
   ============================================================ */

.panEdit {
    width: 100%;
    padding: 24px;
    background: #ffffff;
    border: 1px solid #e2e7ee;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
    margin-bottom: 16px;
}

.genesys-edit-header {
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-bottom: 1px solid #e4e9f1;
    background: #ffffff;
    color: #0f274d;
    font-size: 0.95rem;
    font-weight: 600;
}

.genesys-edit-body {
    padding: 22px 24px 24px;
}
.genesys-form-label {
    margin-bottom: 0;
    color: #334155;
    font-size: 0.94rem;
    font-weight: 500;
}

.genesys-form-help {
    color: #7b879b;
    font-size: 0.85rem;
    line-height: 1.4;
}
/* ============================================================
   GENESYS - SELECT2 / DROPDOWNLIST CON BÚSQUEDA
   ============================================================
   IMPORTANTE:
   - No define width, min-width ni max-width.
   - El ancho pertenece al diseño de cada página.
   - Sólo normaliza la apariencia visual de Select2.
   ============================================================ */

.genesys-select-search + .select2-container {
    font-family: var(--genesys-font-family);
    font-size: 0.95rem;
}

    /* Control cerrado */
    .genesys-select-search + .select2-container
    .select2-selection--single {
        height: 42px;
        min-height: 42px;
        display: flex;
        align-items: center;
        background-color: #ffffff;
        border: 1px solid #d9e0ea;
        border-radius: 8px;
        box-shadow: none;
        transition: border-color .15s ease, box-shadow .15s ease;
    }

        /* Texto seleccionado */
        .genesys-select-search + .select2-container
        .select2-selection--single
        .select2-selection__rendered {
            width: 100%;
            padding-left: 14px;
            padding-right: 34px;
            color: #1e293b;
            font-size: 0.95rem;
            line-height: normal;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        /* Flecha */
        .genesys-select-search + .select2-container
        .select2-selection--single
        .select2-selection__arrow {
            top: 0;
            right: 7px;
            height: 40px;
        }

/* Foco / desplegado */
.genesys-select-search + .select2-container--focus
.select2-selection--single,
.genesys-select-search + .select2-container--open
.select2-selection--single {
    border-color: #2f80ed;
    box-shadow: 0 0 0 3px rgba(47, 128, 237, .10);
}

/* Dropdown */
.select2-dropdown {
    background: #ffffff;
    border: 1px solid #d9e0ea;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .14);
}

/* Zona de búsqueda */
.select2-search--dropdown {
    padding: 8px;
    background: #ffffff;
}

/* Input de búsqueda */
.select2-container--default
.select2-search--dropdown
.select2-search__field {
    width: 100%;
    height: 36px;
    padding: 6px 10px;
    color: #1e293b;
    font-family: var(--genesys-font-family);
    font-size: 0.9rem;
    background: #ffffff;
    border: 1px solid #d9e0ea;
    border-radius: 6px;
    outline: none;
    box-sizing: border-box;
}

    .select2-container--default
    .select2-search--dropdown
    .select2-search__field:focus {
        border-color: #2f80ed;
        box-shadow: 0 0 0 3px rgba(47, 128, 237, .10);
    }

/* Lista */
.select2-results__options {
    overflow-x: hidden !important;
}

/* Opciones */
.select2-results__option {
    padding: 8px 12px;
    color: #334155;
    font-family: var(--genesys-font-family);
    font-size: 0.9rem;
    white-space: normal;
}

/* Opción seleccionada */
.select2-container--default
.select2-results__option--selected {
    background-color: #eef5ff;
    color: #1e293b;
}

/* Opción activa / hover */
.select2-container--default
.select2-results__option--highlighted.select2-results__option--selectable {
    background-color: #0878f9;
    color: #ffffff;
}

/* Placeholder */
.select2-container--default
.select2-selection--single
.select2-selection__placeholder {
    color: #8a97ad;
}

/* ============================================================
   SELECT2 - VARIANTE BARRA SUPERIOR GENESYS
   ============================================================ */

/* Control cerrado */
.genesys-topbar
.genesys-select-header
.select2-selection--single {
    height: 42px !important;
    min-height: 42px !important;
    background: rgba(255, 255, 255, .08) !important;
    border: 1px solid rgba(255, 255, 255, .28) !important;
    border-radius: 9px !important;
    box-shadow: none !important;
}

/* Texto seleccionado */
.genesys-topbar
.genesys-select-header
.select2-selection__rendered {
    color: #ffffff !important;
    line-height: 40px !important;
    padding-left: 12px !important;
    padding-right: 30px !important;
}

/* Flecha */
.genesys-topbar
.genesys-select-header
.select2-selection__arrow {
    height: 40px !important;
}

    .genesys-topbar
    .genesys-select-header
    .select2-selection__arrow b {
        border-color: rgba(255, 255, 255, .80) transparent transparent transparent !important;
    }

/* Abierto */
.genesys-topbar
.genesys-select-header.select2-container--open
.select2-selection__arrow b {
    border-color: transparent transparent rgba(255, 255, 255, .80) transparent !important;
}

/* Focus / abierto */
.genesys-topbar
.genesys-select-header.select2-container--focus
.select2-selection--single,
.genesys-topbar
.genesys-select-header.select2-container--open
.select2-selection--single {
    border-color: rgba(255, 255, 255, .55) !important;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, .10) !important;
}


/* ============================================================
   GENESYS - CHECKBOX
   ============================================================ */

.genesys-check {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
}

    .genesys-check .genesys-checkbox {
        display: inline-flex;
        align-items: center;
        margin: 0;
    }

        .genesys-check .genesys-checkbox input[type="checkbox"] {
            width: 18px;
            height: 18px;
            margin: 0;
            flex: 0 0 18px;
            accent-color: #0878f9;
            cursor: pointer;
        }

    .genesys-check label {
        margin: 0;
        color: #1e293b;
        font-size: 0.95rem;
        line-height: 1.35;
        cursor: pointer;
    }

    .genesys-check .genesys-checkbox input[type="checkbox"]:disabled {
        cursor: default;
        opacity: .55;
    }
.genesys-switch-row {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
}

.genesys-switch {
    display: inline-flex;
    align-items: center;
}

    .genesys-switch input[type="checkbox"] {
        appearance: none;
        -webkit-appearance: none;
        width: 36px;
        height: 20px;
        margin: 0;
        position: relative;
        border: 1px solid #cbd5e1;
        border-radius: 20px;
        background: #e2e8f0;
        cursor: pointer;
        transition: .18s ease;
    }

        .genesys-switch input[type="checkbox"]::after {
            content: "";
            position: absolute;
            width: 14px;
            height: 14px;
            left: 2px;
            top: 2px;
            border-radius: 50%;
            background: #ffffff;
            box-shadow: 0 1px 3px rgba(0,0,0,.20);
            transition: .18s ease;
        }

        .genesys-switch input[type="checkbox"]:checked {
            background: #0878f9;
            border-color: #0878f9;
        }

            .genesys-switch input[type="checkbox"]:checked::after {
                transform: translateX(16px);
            }

.genesys-switch-row label {
    margin: 0;
    color: #1e293b;
    font-size: .95rem;
}
.genesys-section-title {
    margin: 4px 0 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e6ebf2;
    color: #0f4fa8;
    font-size: 1.05rem;
    font-weight: 600;
}

/* ============================================================
   GENESYS - GRID
   ============================================================ */

.genesys-grid-panel {
    width: 100%;
    padding: 12px 0 0 0;
}

.genesys-grid-container {
    width: 100%;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #dfe5ee;
    border-radius: 10px;
}


/* ------------------------------------------------------------
   Tabla
   ------------------------------------------------------------ */

.genesys-grid {
    width: 100%;
    margin-bottom: 0 !important;
    border-collapse: separate;
    border-spacing: 0;
    color: #1e293b;
    font-size: 0.95rem;
}


    /* ------------------------------------------------------------
   Encabezado
   ------------------------------------------------------------ */

    .genesys-grid > tbody > tr:first-child {
        /* no aplicar nada aquí: GridView genera su header aparte */
    }

    .genesys-grid th {
        height: 56px;
        padding: 10px 12px;
        background: #fbfcfe !important;
        color: #172554 !important;
        border-top: 0 !important;
        border-left: 0 !important;
        border-right: 1px solid #e6ebf2 !important;
        border-bottom: 1px solid #dfe5ee !important;
        font-size: 0.86rem !important;
        font-weight: 600 !important;
        text-align: center;
        vertical-align: middle;
        white-space: nowrap;
    }

        .genesys-grid th:last-child {
            border-right: 0 !important;
        }


        /* Links generados por AllowSorting */

        .genesys-grid th a {
            color: #172554 !important;
            text-decoration: none !important;
            font-weight: 600 !important;
        }

            .genesys-grid th a:hover {
                color: #0878f9 !important;
                text-decoration: none !important;
            }


    /* ------------------------------------------------------------
   Filas / celdas
   ------------------------------------------------------------ */

    .genesys-grid td {
        height: 64px;
        padding: 10px 12px;
        background: #ffffff;
        color: #1e293b;
        border-top: 0 !important;
        border-left: 0 !important;
        border-right: 1px solid #e6ebf2 !important;
        border-bottom: 1px solid #e6ebf2 !important;
        vertical-align: middle;
    }

        .genesys-grid td:last-child {
            border-right: 0 !important;
        }

    .genesys-grid tr:last-child td {
        border-bottom: 0 !important;
    }


    /* ------------------------------------------------------------
   Hover de fila
   ------------------------------------------------------------ */

    .genesys-grid tbody tr:hover td {
        background-color: #f8fbff;
    }
/* ============================================================
   GENESYS - GRID ACTIONS
   ============================================================ */
.genesys-grid-action-primary {
    background-color: #eef5ff;
}

    .genesys-grid-action-primary:hover {
        background-color: #e1edff;
    }
.genesys-grid-action {
    width: 36px;
    height: 36px;
    padding: 7px;
    margin: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    object-fit: contain;
    transition: background-color .15s ease, transform .15s ease;
}

    .genesys-grid-action:hover {
        background-color: #eef5ff;
    }

    .genesys-grid-action:active {
        transform: scale(.96);
    }
/* ============================================================
   GENESYS - GRID ACTION DATA INDICATOR
   Indica que la acción posee información asociada
   ============================================================ */

.genesys-grid-action-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.genesys-data-indicator {
    position: absolute;
    top: 3px;
    right: 2px;
    width: 6px;
    height: 6px;
    background-color: #0878f9;
    border-radius: 50%;
    pointer-events: none;
}
/* TEST-GENESYS-CSS-20260921-0851 */