/* 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 {
        filter: brightness(0) invert(1);
    }


/* 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: hidden !important;
}

/* Logo Cicumba - sin animación */

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

.header-right-side img,
.header-right-side svg,
.header-left-side img,
.header-left-side svg {
    filter: brightness(0) invert(1);
}



/* 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;
}

/* 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 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.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;
}

/* 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;
}

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

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

/* Iconos en header (blancos) */
.header-right-side .xaf-image,
.header-left-side .xaf-image {
    color: white !important;
    background-color: white !important;
}

/* Reemplaza icono "Hamburger" por tres lineas clasicas */
.xaf-image[style*="IImageService/Hamburger"] {
    -webkit-mask: none !important;
    mask: none !important;
    color: #ffffff !important;
    background-color: #5a9b80 !important;
    background-image:
        linear-gradient(#ffffff, #ffffff),
        linear-gradient(#ffffff, #ffffff),
        linear-gradient(#ffffff, #ffffff) !important;
    background-repeat: no-repeat !important;
    background-size: 14px 2px, 14px 2px, 14px 2px !important;
    background-position: center 7px, center 11px, center 15px !important;
    border-radius: 6px !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15) !important;
}

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

