:root {
    /* colores de sección */
    --theme-bg-primary: #ffffff;
    --theme-Text-color-primary: #222222;
    --theme-Bg-color-secundary: rgba(138, 138, 140, 0.78);
    --theme-text-secundary: #000000;

    /* colores neutros, contornos, sombras etc*/
    --theme-svg-filter: drop-shadow(0 0 7px #adadad);
    --theme-hover-btn: rgba(43, 43, 43, 0.96);;
}


/*===================== btn primarios ====================*/

.btn-bg-primary {
    background: var(--theme-bg-primary) !important;
    color: var(--theme-Text-color-primary) !important;
}

.svg-bg-primary {
    fill: var(--theme-Text-color-primary) !important;
    color: var(--theme-Text-color-primary) !important;
}

.btn-bg-primary:hover,
.btn-bg-primary:focus,
.btn-bg-primary:disabled {
    background: color-mix(in srgb, var(--theme-Bg-color-secundary) 60%, transparent) !important;
    color: var(--theme-Text-color-primary) !important;
    box-shadow: 0 10px 32px var(--theme-hover-btn)20, 0 2px 12px var(--theme-hover-btn) 13 !important;
    transform: scale(1.20) !important;
    filter: brightness(1.07) !important;
    opacity: 0.8 !important;
}

/*===================== btn secundarios ====================*/

.btn-bg-redirect-catalogo{
    background-color: #CCD;
}

.btn-bg-secundary {
    background: var(--theme-Bg-color-secundary) !important;
    color: var(--theme-text-secundary) !important;
}

.svg-bg-secundary {
    fill: var(--theme-text-secundary) !important;
    color: var(--theme-text-secundary) !important;
}

.btn-color-secundary{
    color: var(--theme-Bg-color-secundary) !important;
}

/* Cambiar tamño de svg en módulos */
.svg-forma-secundary{
    transform: scale(1.3);
}

.btn-bg-secundary:hover,
.btn-bg-secundary:disabled {
    background: color-mix(in srgb, var(--theme-bg-primary) 60%, transparent) !important;
    color: var(--theme-text-secundary) !important;
    box-shadow: 0 10px 32px var(--theme-hover-btn)20, 0 2px 12px var(--theme-hover-btn) 13 !important;
    transform: scale(1.1) !important;
    filter: brightness(1.07) !important;
    opacity: 0.8 !important;
}

/*===================== estilos para menu secundario option activa
      con etiquetas  list-group-item list-group-item-action ====================*/
.a-nav-List-group.active {
    background: var(--theme-Bg-color-secundary);
    color: var(--theme-text-secundary);
    box-shadow: 0 4px 5px var(--theme-accent-light) !important;
    transform: scale(1.1);
    transition: all 0.30s ease !important;
    z-index: 2;
}

.a-nav-List-group.active .nav-svg {
    fill: var(--theme-text-secundary) !important;
    color: var(--theme-text-secundary) !important;
}

.a-nav-List-group.active svg {
    fill: var(--theme-text-secundary) !important;
    color: var(--theme-text-secundary) !important;
}

.a-nav-List-group.active .nav-text {
    fill: var(--theme-text-secundary) !important;
    color: var(--theme-text-secundary) !important;
    filter: var(--theme-svg-filter) !important;
    border-radius: 5px;
    font-size: 0.90rem;
    padding: 2px;
}

/*===================== btn hover ====================*/
.btn-secundary-hover {
    fill: var(--theme-Bg-color-secundary) !important;
}

.btn-secundary-hover:hover {
    transform: scale(1.1);
    background-color: var(--theme-Bg-color-secundary) !important;
    color: var(--theme-text-secundary) !important;
}

.btn-secundary-hover:hover img{
    filter: var(--theme-text-secundary) !important;
}

.btn-secundary-hover:hover svg{
    filter: var(--theme-text-secundary) !important;
}

/*------------------------------Forma de los botones---------------------------- */
.btn-forma-style{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 2.8rem;
    border-radius: 43%;
    transform: scale(0.9);
    box-shadow:
            0 4px 18px rgba(18,81,166,0.14),
            0 2px 8px rgba(99,195,255,0.09);
    border: none !important;
    transition:
            background 0.18s,
            color 0.18s,
            box-shadow 0.22s,
            transform 0.16s;
    outline: none;
    position: relative;
    cursor: pointer;
    z-index: 1;
    padding: 0 !important;
}

.btn-forma-add-modification{
    transform: scale(0.8);
}


/*-------------------------------------- PERSONALZIACIÓN BARRAS SCROLL --------------------------------*/
.custom-scrollbar {
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    /* Firefox - scrollbar moderno */
    scrollbar-width: auto;
    scrollbar-color: rgba(235, 235, 235, 0.6) transparent;
}

.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/*===================== color primarios ====================*/
.bg-primary {
    background: var(--theme-bg-primary) !important;
    color: var(--theme-Text-color-primary) !important;
}

/*===================== color secundarios ====================*/
.bg-secundary {
    background: var(--theme-Bg-color-secundary) !important;
    color: var(--theme-text-secundary) !important;
}

/*===================== color secundarios ====================*/
.bg-secundary-range {
    accent-color: var(--theme-Bg-color-secundary) !important;
}

/*------------------------------------- Estilos Ag celdas AgGrid -----------------------------------------*/
.ag-header-cell-label, .ag-header-group-cell-label {
    text-align: center;
    justify-content: center;
}

.ag-theme-alpine .ag-cell {
    line-height: 1.2 !important;  /* Menos espacio entre líneas */
    padding: 4px 8px !important;  /* Ajusta padding si quieres más compacto */
}

.cell-multiline-ellipsis {
    display: -webkit-box !important;
    -webkit-line-clamp: 4 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: normal !important;
    font-size: 0.90em;
    text-decoration: none;
    max-height: 5.3em;
    text-align: left;
    vertical-align: middle;
}


.cell-multiline-body {
    align-items: center;
}

