/* TEMA CICUMBA PASTEL - Header, Sidebar y Group Panels */

/* Group panel headers */
div.dxbl-group-header {
    background-color: #8bbaa5 !important;
    color: white !important;
}

    div.dxbl-group-header > div.dxbl-text {
        color: white !important;
    }

    div.dxbl-group-header img.dxbl-image,
    div.dxbl-group-header img.xaf-layout-group-icon {
        width: 15px !important;
        height: 15px !important;
        min-width: 15px !important;
        min-height: 15px !important;
        object-fit: contain !important;
        filter: brightness(0) invert(1) drop-shadow(0 1px 2px rgba(0, 0, 0, 0.12)) !important;
    }


/* Header (parte derecha e izquierda) - difuminado con efecto de luz */
.header-right-side.w-100.overflow-hidden.d-flex.align-items-center {
    background: linear-gradient(180deg, #3d7260 0%, #5a9b80 50%, #8bbaa5 100%) !important;
    color: white !important;
    box-shadow: 0 2px 10px rgba(61, 114, 96, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.10) !important;
    position: relative !important;
    overflow: visible !important;
    z-index: 100 !important;
}

/* Efecto de luz - usa background-position para no necesitar overflow:hidden */
.header-right-side.w-100.overflow-hidden.d-flex.align-items-center::before {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: linear-gradient(
        100deg,
        transparent 0%,
        transparent 35%,
        rgba(255,255,255,0.12) 42%,
        rgba(255,255,255,0.25) 50%,
        rgba(255,255,255,0.12) 58%,
        transparent 65%,
        transparent 100%
    ) !important;
    background-size: 300% 100% !important;
    animation: header-shine 6s ease-in-out infinite !important;
    pointer-events: none !important;
    z-index: 0 !important;
}

@keyframes header-shine {
    0% { background-position: 200% 0; }
    40% { background-position: -100% 0; }
    100% { background-position: -100% 0; }
}

.header-left-side.d-flex.align-items-center {
    background: #2d5e4a !important;
    color: white !important;
    box-shadow: 0 2px 10px rgba(61, 114, 96, 0.25) !important;
    position: relative !important;
    overflow: visible !important;
    z-index: 101 !important;
}

@media (max-width: 575.98px) {
    .header-left-side.d-flex.align-items-center {
        flex: 0 0 52px !important;
        min-width: 52px !important;
        max-width: 52px !important;
        overflow: visible !important;
        z-index: 1020 !important;
    }

    .header-left-side [data-action-id="ShowNavigationItem"],
    .header-left-side .xaf-action[data-action-id="ShowNavigationItem"],
    .header-left-side .xaf-toolbar-item[data-action-id="ShowNavigationItem"],
    .header-left-side .dxbl-toolbar-btn[data-action-id="ShowNavigationItem"] {
        display: inline-flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        z-index: 1021 !important;
        flex-shrink: 0 !important;
    }

    .header-left-side [data-action-id="ShowNavigationItem"] .dxbl-toolbar-btn,
    .header-left-side .dxbl-toolbar-btn[data-action-id="ShowNavigationItem"],
    .header-left-side button[data-action-id="ShowNavigationItem"] {
        align-items: center !important;
        background: transparent !important;
        border-color: transparent !important;
        box-shadow: none !important;
        display: inline-flex !important;
        height: 44px !important;
        justify-content: center !important;
        min-height: 44px !important;
        min-width: 44px !important;
        padding: 0 !important;
        width: 44px !important;
    }

    .header-left-side [data-action-id="ShowNavigationItem"] .xaf-image,
    .header-left-side [data-action-id="ShowNavigationItem"] .dxbl-image,
    .header-left-side [data-action-id="ShowNavigationItem"] img,
    .header-left-side [data-action-id="ShowNavigationItem"] svg {
        background-color: transparent !important;
        color: #ffffff !important;
        filter: brightness(0) invert(1) !important;
        height: 24px !important;
        min-height: 24px !important;
        min-width: 24px !important;
        opacity: 1 !important;
        width: 24px !important;
    }
}

/* Logo Cicumba - sin animación */

.header-right-side .dxbl-text,
.header-left-side .dxbl-text {
    color: white !important;
}

/* Iconos del header en blanco (no aplicar a foto de perfil / avatar) */
.header-right-side img:not(.hm-badge-icon):not(.hc-badge-icon),
.header-right-side svg:not(.hm-badge-icon):not(.hc-badge-icon),
.header-left-side img,
.header-left-side svg {
    filter: brightness(0) invert(1);
}

.header-right-side .account-container img,
.header-right-side .account-container .dxbl-image,
.header-right-side .logo-container img,
.xaf-user-menu-popup .logo-container img,
.xaf-user-menu .logo-container img,
.xaf-user-menu-popup .logo-container .dxbl-image,
.xaf-user-menu .logo-container .dxbl-image,
.dxbl-popup:has(.xaf-btn.my-details) .logo-container img,
.dxbl-popup:has(.xaf-btn.my-details) .logo-container .dxbl-image {
    filter: none !important;
}



/* Todos los botones de toolbar secundarios */
.dxbl-btn-secondary.dxbl-toolbar-btn {
    background-color: #8bbaa5 !important;
    color: white !important;
    border-color: #8bbaa5 !important;
}

    .dxbl-btn-secondary.dxbl-toolbar-btn span {
        color: white !important;
    }

    .dxbl-btn-secondary.dxbl-toolbar-btn img {
        filter: brightness(0) invert(1);
    }




/* =====================================================
   PANEL DE USUARIO - Diseño armonizado pastel
   ===================================================== */

/* Contenedor del dropdown de usuario */
.xaf-user-menu-popup,
.xaf-user-menu,
.dxbl-popup:has(.xaf-btn.my-details),
.dxbl-popup:has(.xaf-btn.log-off) {
    background: #ffffff !important;
    border: 1px solid rgba(90, 155, 128, 0.15) !important;
    border-radius: 14px !important;
    box-shadow: 0 8px 30px rgba(90, 155, 128, 0.15), 0 2px 8px rgba(0,0,0,0.06) !important;
    overflow: hidden !important;
    z-index: 9999 !important;
}

/* Zona superior del avatar - degradado suave */
.logo-container {
    border: 3px solid rgba(255, 255, 255, 0.80) !important;
    box-shadow: 0 3px 12px rgba(139, 186, 165, 0.20) !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #8bbaa5, #a0ccb8) !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Popup usuario: caja fija; la foto se rellena con position absolute (evita flex center + inline 80px) */
.xaf-user-menu-popup .logo-container,
.xaf-user-menu .logo-container,
.dxbl-popup:has(.xaf-btn.my-details) .logo-container {
    width: 80px !important;
    height: 80px !important;
    min-width: 80px !important;
    min-height: 80px !important;
    max-width: 80px !important;
    max-height: 80px !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
    border-width: 2px !important;
    position: relative !important;
    padding: 0 !important;
    align-items: stretch !important;
}

/*
 * Si hay <img> con src real, ocultar .xaf-image duplicado.
 * No usar solo :has(.dxbl-image img): un img vacío ocultaba la máscara con background (OAuth)
 * y dejaba el círculo en blanco.
 */
.xaf-user-menu-popup .logo-container:has(.dxbl-image img[src]:not([src=""])) .xaf-image,
.xaf-user-menu .logo-container:has(.dxbl-image img[src]:not([src=""])) .xaf-image,
.dxbl-popup:has(.xaf-btn.my-details) .logo-container:has(.dxbl-image img[src]:not([src=""])) .xaf-image {
    display: none !important;
}

.xaf-user-menu-popup .logo-container img,
.xaf-user-menu .logo-container img,
.dxbl-popup:has(.xaf-btn.my-details) .logo-container img {
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center center !important;
    border-radius: 50% !important;
    filter: none !important;
    display: block !important;
    flex: none !important;
}

.xaf-user-menu-popup .logo-container .dxbl-image,
.xaf-user-menu .logo-container .dxbl-image,
.dxbl-popup:has(.xaf-btn.my-details) .logo-container .dxbl-image {
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: none !important;
    max-height: none !important;
    display: block !important;
    line-height: 0 !important;
    font-size: 0 !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    flex: none !important;
}

.xaf-user-menu-popup .logo-container .dxbl-image img,
.xaf-user-menu .logo-container .dxbl-image img,
.dxbl-popup:has(.xaf-btn.my-details) .logo-container .dxbl-image img {
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center center !important;
    border-radius: 50% !important;
    filter: none !important;
    display: block !important;
    vertical-align: top !important;
}

/*
 * CICUMBA CHECKPOINT — Avatar menú
 * 1) IImageService en mask (URL sin "http") — icono; mask-size pequeño en placeholder si aplica.
 * 2a) Foto en background-image o background:url(...) — mask:none + background-size:cover.
 * 2b) Foto solo en mask:url(https//…) con mask-size inline pequeño — NO mask:none (deja foto invisible);
 *     forzar mask-size:cover + centrado (mismo síntoma "ojito" en menú).
 * 3) Sin foto remota — placeholder mask 52%.
 * DX/Google: url('https…') y url("https…") — NO coincide [style*="url(http"] (no hay "http" inmediato tras '(').
 */
html body .xaf-user-menu-popup .logo-container .xaf-image[style*="url(http"]:not([style*="IImageService"]),
html body .xaf-user-menu-popup .logo-container .xaf-image[style*="url(Http"]:not([style*="IImageService"]),
html body .xaf-user-menu-popup .logo-container .xaf-image[style*="url(//"]:not([style*="IImageService"]),
html body .xaf-user-menu-popup .logo-container .xaf-image[style*="url('http"]:not([style*="IImageService"]),
html body .xaf-user-menu-popup .logo-container .xaf-image[style*="url('Http"]:not([style*="IImageService"]),
html body .xaf-user-menu-popup .logo-container .xaf-image[style*="url('//"]:not([style*="IImageService"]),
html body .xaf-user-menu-popup .logo-container .xaf-image[style*='url("http']:not([style*="IImageService"]),
html body .xaf-user-menu-popup .logo-container .xaf-image[style*='url("Http']:not([style*="IImageService"]),
html body .xaf-user-menu-popup .logo-container .xaf-image[style*='url("//']:not([style*="IImageService"]),
html body .xaf-user-menu .logo-container .xaf-image[style*="url(http"]:not([style*="IImageService"]),
html body .xaf-user-menu .logo-container .xaf-image[style*="url(Http"]:not([style*="IImageService"]),
html body .xaf-user-menu .logo-container .xaf-image[style*="url(//"]:not([style*="IImageService"]),
html body .xaf-user-menu .logo-container .xaf-image[style*="url('http"]:not([style*="IImageService"]),
html body .xaf-user-menu .logo-container .xaf-image[style*="url('Http"]:not([style*="IImageService"]),
html body .xaf-user-menu .logo-container .xaf-image[style*="url('//"]:not([style*="IImageService"]),
html body .xaf-user-menu .logo-container .xaf-image[style*='url("http']:not([style*="IImageService"]),
html body .xaf-user-menu .logo-container .xaf-image[style*='url("Http']:not([style*="IImageService"]),
html body .xaf-user-menu .logo-container .xaf-image[style*='url("//']:not([style*="IImageService"]),
html body .dxbl-popup:has(.xaf-btn.my-details) .logo-container .xaf-image[style*="url(http"]:not([style*="IImageService"]),
html body .dxbl-popup:has(.xaf-btn.my-details) .logo-container .xaf-image[style*="url(Http"]:not([style*="IImageService"]),
html body .dxbl-popup:has(.xaf-btn.my-details) .logo-container .xaf-image[style*="url(//"]:not([style*="IImageService"]),
html body .dxbl-popup:has(.xaf-btn.my-details) .logo-container .xaf-image[style*="url('http"]:not([style*="IImageService"]),
html body .dxbl-popup:has(.xaf-btn.my-details) .logo-container .xaf-image[style*="url('Http"]:not([style*="IImageService"]),
html body .dxbl-popup:has(.xaf-btn.my-details) .logo-container .xaf-image[style*="url('//"]:not([style*="IImageService"]),
html body .dxbl-popup:has(.xaf-btn.my-details) .logo-container .xaf-image[style*='url("http']:not([style*="IImageService"]),
html body .dxbl-popup:has(.xaf-btn.my-details) .logo-container .xaf-image[style*='url("Http']:not([style*="IImageService"]),
html body .dxbl-popup:has(.xaf-btn.my-details) .logo-container .xaf-image[style*='url("//']:not([style*="IImageService"]) {
    -webkit-mask-size: cover !important;
    mask-size: cover !important;
    -webkit-mask-position: center center !important;
    mask-position: center center !important;
    -webkit-mask-repeat: no-repeat !important;
    mask-repeat: no-repeat !important;
}

/* 2a — foto en capa background (no confundir con mask:url https, ver 2b) */
html body .xaf-user-menu-popup .logo-container .xaf-image[style*="background-image"][style*="url("],
html body .xaf-user-menu-popup .logo-container .xaf-image[style*="background-image"][style*="URL("],
html body .xaf-user-menu-popup .logo-container .xaf-image[style*="background:"][style*="url(http"],
html body .xaf-user-menu-popup .logo-container .xaf-image[style*="background:"][style*="url(Http"],
html body .xaf-user-menu-popup .logo-container .xaf-image[style*="background:"][style*="url(//"],
html body .xaf-user-menu-popup .logo-container .xaf-image[style*="background:"][style*="url('http"],
html body .xaf-user-menu-popup .logo-container .xaf-image[style*="background:"][style*="url('Http"],
html body .xaf-user-menu-popup .logo-container .xaf-image[style*="background:"][style*="url('//"],
html body .xaf-user-menu-popup .logo-container .xaf-image[style*="background:"][style*='url("http'],
html body .xaf-user-menu-popup .logo-container .xaf-image[style*="background:"][style*='url("Http'],
html body .xaf-user-menu-popup .logo-container .xaf-image[style*="background:"][style*='url("//'],
html body .xaf-user-menu .logo-container .xaf-image[style*="background-image"][style*="url("],
html body .xaf-user-menu .logo-container .xaf-image[style*="background-image"][style*="URL("],
html body .xaf-user-menu .logo-container .xaf-image[style*="background:"][style*="url(http"],
html body .xaf-user-menu .logo-container .xaf-image[style*="background:"][style*="url(Http"],
html body .xaf-user-menu .logo-container .xaf-image[style*="background:"][style*="url(//"],
html body .xaf-user-menu .logo-container .xaf-image[style*="background:"][style*="url('http"],
html body .xaf-user-menu .logo-container .xaf-image[style*="background:"][style*="url('Http"],
html body .xaf-user-menu .logo-container .xaf-image[style*="background:"][style*="url('//"],
html body .xaf-user-menu .logo-container .xaf-image[style*="background:"][style*='url("http'],
html body .xaf-user-menu .logo-container .xaf-image[style*="background:"][style*='url("Http'],
html body .xaf-user-menu .logo-container .xaf-image[style*="background:"][style*='url("//'],
html body .dxbl-popup:has(.xaf-btn.my-details) .logo-container .xaf-image[style*="background-image"][style*="url("],
html body .dxbl-popup:has(.xaf-btn.my-details) .logo-container .xaf-image[style*="background-image"][style*="URL("],
html body .dxbl-popup:has(.xaf-btn.my-details) .logo-container .xaf-image[style*="background:"][style*="url(http"],
html body .dxbl-popup:has(.xaf-btn.my-details) .logo-container .xaf-image[style*="background:"][style*="url(Http"],
html body .dxbl-popup:has(.xaf-btn.my-details) .logo-container .xaf-image[style*="background:"][style*="url(//"],
html body .dxbl-popup:has(.xaf-btn.my-details) .logo-container .xaf-image[style*="background:"][style*="url('http"],
html body .dxbl-popup:has(.xaf-btn.my-details) .logo-container .xaf-image[style*="background:"][style*="url('Http"],
html body .dxbl-popup:has(.xaf-btn.my-details) .logo-container .xaf-image[style*="background:"][style*="url('//"],
html body .dxbl-popup:has(.xaf-btn.my-details) .logo-container .xaf-image[style*="background:"][style*='url("http'],
html body .dxbl-popup:has(.xaf-btn.my-details) .logo-container .xaf-image[style*="background:"][style*='url("Http'],
html body .dxbl-popup:has(.xaf-btn.my-details) .logo-container .xaf-image[style*="background:"][style*='url("//"] {
    box-sizing: border-box !important;
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    flex: none !important;
    border-radius: 50% !important;
    -webkit-mask: none !important;
    mask: none !important;
    -webkit-mask-image: none !important;
    mask-image: none !important;
    background-color: transparent !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

/* Placeholder: sin foto remota (incluye comillas en url('https…') / url("https…")) */
.xaf-user-menu-popup .logo-container > .xaf-image:not([style*="background-image"][style*="url("]):not([style*="background-image"][style*="URL("]):not([style*="url(http"]):not([style*="url(Http"]):not([style*="url(//"]):not([style*="url('http"]):not([style*="url('Http"]):not([style*="url('//"]):not([style*='url("http']):not([style*='url("Http']):not([style*='url("//']):not([style*="background:"][style*="url(http"]):not([style*="background:"][style*="url(Http"]):not([style*="background:"][style*="url(//"]):not([style*="background:"][style*="url('http"]):not([style*="background:"][style*="url('Http"]):not([style*="background:"][style*="url('//"]):not([style*="background:"][style*='url("http']):not([style*="background:"][style*='url("Http']):not([style*="background:"][style*='url("//']),
.xaf-user-menu .logo-container > .xaf-image:not([style*="background-image"][style*="url("]):not([style*="background-image"][style*="URL("]):not([style*="url(http"]):not([style*="url(Http"]):not([style*="url(//"]):not([style*="url('http"]):not([style*="url('Http"]):not([style*="url('//"]):not([style*='url("http']):not([style*='url("Http']):not([style*='url("//']):not([style*="background:"][style*="url(http"]):not([style*="background:"][style*="url(Http"]):not([style*="background:"][style*="url(//"]):not([style*="background:"][style*="url('http"]):not([style*="background:"][style*="url('Http"]):not([style*="background:"][style*="url('//"]):not([style*="background:"][style*='url("http']):not([style*="background:"][style*='url("Http']):not([style*="background:"][style*='url("//']),
.dxbl-popup:has(.xaf-btn.my-details) .logo-container > .xaf-image:not([style*="background-image"][style*="url("]):not([style*="background-image"][style*="URL("]):not([style*="url(http"]):not([style*="url(Http"]):not([style*="url(//"]):not([style*="url('http"]):not([style*="url('Http"]):not([style*="url('//"]):not([style*='url("http']):not([style*='url("Http']):not([style*='url("//']):not([style*="background:"][style*="url(http"]):not([style*="background:"][style*="url(Http"]):not([style*="background:"][style*="url(//"]):not([style*="background:"][style*="url('http"]):not([style*="background:"][style*="url('Http"]):not([style*="background:"][style*="url('//"]):not([style*="background:"][style*='url("http']):not([style*="background:"][style*='url("Http']):not([style*="background:"][style*='url("//']) {
    box-sizing: border-box !important;
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    flex: none !important;
    border-radius: 50% !important;
    background-color: rgba(255, 255, 255, 0.95) !important;
    -webkit-mask-size: 52% 52% !important;
    mask-size: 52% 52% !important;
    -webkit-mask-position: center !important;
    mask-position: center !important;
    -webkit-mask-repeat: no-repeat !important;
    mask-repeat: no-repeat !important;
}

/* Especificidad > site.css (html body + toolbar 16px) */
html body .xaf-user-menu-popup .logo-container img,
html body .xaf-user-menu .logo-container img,
html body .xaf-user-menu-popup .logo-container .dxbl-image,
html body .xaf-user-menu .logo-container .dxbl-image,
html body .xaf-user-menu-popup .logo-container .dxbl-image img,
html body .xaf-user-menu .logo-container .dxbl-image img,
html body .dxbl-popup:has(.xaf-btn.my-details) .logo-container img,
html body .dxbl-popup:has(.xaf-btn.my-details) .logo-container .dxbl-image,
html body .dxbl-popup:has(.xaf-btn.my-details) .logo-container .dxbl-image img {
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center center !important;
    filter: none !important;
    opacity: 1 !important;
}

/* Contenedor con avatar y nombre */
.d-flex.flex-column.align-items-center.justify-content-center.w-100 {
    background: linear-gradient(180deg, #8bbaa5 0%, #a0ccb8 100%) !important;
    padding: 1.2rem 1rem !important;
    border-bottom: none !important;
    border-radius: 0 !important;
}

/* Menu de usuario - container del nombre */
.user-name-container {
    color: white !important;
    padding: 4px 0 !important;
}

.user-name-container .user-name-title {
    color: rgba(255, 255, 255, 0.70) !important;
    font-size: 11px !important;
    font-weight: 400 !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
}

.user-name-container .user-name {
    color: white !important;
    font-weight: 600 !important;
    font-size: 13px !important;
}

/* --- Botones de accion sobre fondo blanco --- */

/* Boton "Mis datos" */
.xaf-btn.my-details {
    background: white !important;
    background-color: white !important;
    color: #3a5a4d !important;
    border: 1.5px solid rgba(90, 155, 128, 0.25) !important;
    border-radius: 10px !important;
    margin: 10px 14px 6px 14px !important;
    padding: 10px 12px !important;
    font-weight: 500 !important;
    font-size: 13px !important;
    transition: all 0.25s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 4px !important;
    column-gap: 4px !important;
}

.xaf-btn.my-details:hover {
    background: rgba(90, 155, 128, 0.08) !important;
    background-color: rgba(90, 155, 128, 0.08) !important;
    border-color: #5a9b80 !important;
    color: #2d4a3e !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 3px 10px rgba(90, 155, 128, 0.12) !important;
}

.xaf-btn.my-details .xaf-image {
    background-color: #8bbaa5 !important;
    color: #8bbaa5 !important;
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    min-height: 16px !important;
    margin: 0 !important;
    margin-inline-end: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border: none !important;
    flex-shrink: 0 !important;
}

.xaf-btn.my-details .dxbl-text {
    margin-left: 0 !important;
    margin-inline-start: 0 !important;
}

/*
 * site.css aplica filter: invert(1) a .dxbl-toolbar-btn img (icono blanco);
 * en botones blancos del menu usuario el lapiz desaparece.
 */
html body .xaf-user-menu-popup .xaf-btn .xaf-image,
html body .xaf-user-menu .xaf-btn .xaf-image,
html body .dxbl-popup:has(.xaf-btn.my-details) .xaf-btn .xaf-image,
html body .xaf-user-menu-popup .xaf-btn img,
html body .xaf-user-menu .xaf-btn img,
html body .dxbl-popup:has(.xaf-btn.my-details) .xaf-btn img,
html body .xaf-user-menu-popup .xaf-btn .dxbl-image,
html body .xaf-user-menu .xaf-btn .dxbl-image,
html body .dxbl-popup:has(.xaf-btn.my-details) .xaf-btn .dxbl-image,
html body .xaf-user-menu-popup .xaf-btn .dxbl-image img,
html body .xaf-user-menu .xaf-btn .dxbl-image img,
html body .dxbl-popup:has(.xaf-btn.my-details) .xaf-btn .dxbl-image img {
    filter: none !important;
    opacity: 1 !important;
}

/* Boton "Cerrar sesion" */
.xaf-btn.log-off {
    background: white !important;
    background-color: white !important;
    color: #c45050 !important;
    border: 1.5px solid rgba(196, 80, 80, 0.20) !important;
    border-radius: 10px !important;
    margin: 4px 14px 12px 14px !important;
    padding: 10px 16px !important;
    font-weight: 500 !important;
    font-size: 13px !important;
    transition: all 0.25s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
}

.xaf-btn.log-off:hover {
    background: rgba(196, 80, 80, 0.06) !important;
    background-color: rgba(196, 80, 80, 0.06) !important;
    border-color: #c45050 !important;
    color: #a03a3a !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 3px 10px rgba(196, 80, 80, 0.10) !important;
}

.xaf-btn.log-off .xaf-image {
    background-color: #c45050 !important;
    color: #c45050 !important;
    width: 15px !important;
    height: 15px !important;
    min-width: 15px !important;
    min-height: 15px !important;
    border-radius: 6px !important;
    box-shadow: 0 1px 4px rgba(196, 80, 80, 0.12) !important;
}

/* Settings-bar: movido a cicumba-harmony.css (seccion 25) para ganar cascada */

/* =====================================================
   ICONOS Y TEXTOS GLOBALES
   ===================================================== */

/* Iconos mask en header (blancos); la cuenta y el popup se sobreescriben abajo */
.header-right-side .xaf-image,
.header-left-side .xaf-image:not([style*="align-justify"]):not([style*="/menu"]) {
    color: white !important;
    background-color: white !important;
}

.header-right-side .account-container .xaf-image,
.xaf-user-menu-popup .logo-container .xaf-image,
.xaf-user-menu .logo-container .xaf-image,
.dxbl-popup:has(.xaf-btn.my-details) .logo-container .xaf-image {
    filter: none !important;
}

/* Cabecera: ocultar .xaf-image duplicado cuando hay foto en <img> (cualquier wrapper) */
.header-right-side .account-container:has(.dxbl-image img[src]:not([src=""])) .xaf-image,
html body .header-right-side .account-container .dxbl-toolbar-btn:has(img[src]:not([src=""])) .xaf-image {
    display: none !important;
}

/* Cabecera: un solo renglón centrado; evita franja clara bajo el avatar */
html body .header-right-side .account-container .dxbl-toolbar-btn {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 0 !important;
    overflow: hidden !important;
}

/* Cabecera: tamaños con especificidad por encima de site.css (html body + toolbar 16px) */
html body .header-right-side .account-container .dxbl-toolbar-btn .dxbl-image,
html body .header-right-side .account-container .dxbl-toolbar-btn img,
html body .header-right-side .account-container .dxbl-toolbar-btn .dxbl-image img,
html body .header-right-side .account-container img,
html body .header-right-side .account-container .dxbl-image {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center center !important;
    border-radius: 50% !important;
    filter: none !important;
    opacity: 1 !important;
    display: block !important;
    flex: none !important;
    line-height: 0 !important;
    font-size: 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    align-self: center !important;
}

html body .header-right-side .account-container .dxbl-toolbar-btn .dxbl-image img {
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    vertical-align: top !important;
}

/* Cabecera 2b — misma lógica que menú: foto solo en mask:url(https) */
html body .header-right-side .account-container .xaf-image[style*="url(http"]:not([style*="IImageService"]),
html body .header-right-side .account-container .xaf-image[style*="url(Http"]:not([style*="IImageService"]),
html body .header-right-side .account-container .xaf-image[style*="url(//"]:not([style*="IImageService"]),
html body .header-right-side .account-container .xaf-image[style*="url('http"]:not([style*="IImageService"]),
html body .header-right-side .account-container .xaf-image[style*="url('Http"]:not([style*="IImageService"]),
html body .header-right-side .account-container .xaf-image[style*="url('//"]:not([style*="IImageService"]),
html body .header-right-side .account-container .xaf-image[style*='url("http']:not([style*="IImageService"]),
html body .header-right-side .account-container .xaf-image[style*='url("Http']:not([style*="IImageService"]),
html body .header-right-side .account-container .xaf-image[style*='url("//']:not([style*="IImageService"]) {
    -webkit-mask-size: cover !important;
    mask-size: cover !important;
    -webkit-mask-position: center center !important;
    mask-position: center center !important;
    -webkit-mask-repeat: no-repeat !important;
    mask-repeat: no-repeat !important;
}

/* Cabecera 2a — foto en background / background-image (también url('https…')) */
html body .header-right-side .account-container .xaf-image[style*="background-image"][style*="url("],
html body .header-right-side .account-container .xaf-image[style*="background-image"][style*="URL("],
html body .header-right-side .account-container .xaf-image[style*="background:"][style*="url(http"],
html body .header-right-side .account-container .xaf-image[style*="background:"][style*="url(Http"],
html body .header-right-side .account-container .xaf-image[style*="background:"][style*="url(//"],
html body .header-right-side .account-container .xaf-image[style*="background:"][style*="url('http"],
html body .header-right-side .account-container .xaf-image[style*="background:"][style*="url('Http"],
html body .header-right-side .account-container .xaf-image[style*="background:"][style*="url('//"],
html body .header-right-side .account-container .xaf-image[style*="background:"][style*='url("http'],
html body .header-right-side .account-container .xaf-image[style*="background:"][style*='url("Http'],
html body .header-right-side .account-container .xaf-image[style*="background:"][style*='url("//"] {
    -webkit-mask: none !important;
    mask: none !important;
    -webkit-mask-image: none !important;
    mask-image: none !important;
    background-color: transparent !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    margin: 0 !important;
}

/* Menú lateral: icono hamburguesa clásico (tres líneas), sin pastilla blanca */
.header-left-side [data-action-id="ShowNavigationItem"] .xaf-image,
.header-left-side .xaf-image[style*="align-justify"],
.header-left-side .xaf-image[style*="/menu"] {
    background-color: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.header-left-side [data-action-id="ShowNavigationItem"],
.header-left-side .xaf-toolbar-item[data-action-id="ShowNavigationItem"],
.header-left-side .dxbl-toolbar-btn[data-action-id="ShowNavigationItem"] {
    pointer-events: auto !important;
    position: relative !important;
    z-index: 2 !important;
}

/* Nombre de usuario en dropdown */
.user-name-container .user-name,
.user-name-container .user-name-title {
    /* Ya definidos arriba */
}

