﻿



/*
    Clases param gestionar los formatos de las tabs de navegacion
    - htTab
*/

.tabs-container {
    flex: 1;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
}

    /* no cambiar el orden o no sale bien */
    .tabs-container #htTab {
        width: 100%;
        flex: 1;
        position: relative;
        z-index: 1;
    }

#htTab > div.rz-tabview-panels:first-of-type {
    background-color: transparent !important;
    border: none !important;
}

    #htTab > div.rz-tabview-panels:first-of-type > .rz-tabview-panel {
        height: calc(100vh - 115px);
        display: flex;
        flex-direction: column;
        padding: 5px 0px 0px 0px !important;
    }



/*INICIO ----- Clases para las primeras pestañas*/
#htTab > ul.rz-tabview-nav:first-of-type {
    align-items: flex-end;
    overflow-x: auto;
    height: 25px;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE y Edge */
}

/* Pestaña seleccionada */
#htTab > ul.rz-tabview-nav:first-of-type li.rz-tabview-selected {
    background-color: #f4f5d7 !important;
    border-color: #f4f5d7 !important;
    transform: scale(1) !important;
    transform-origin: center bottom !important;
    opacity: 1 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    height: 25px;
}

/* Transiciones y propiedades generales de las pestañas */
#htTab > ul.rz-tabview-nav:first-of-type li {
    transition: transform 0.2s ease, opacity 0.2s ease, width 0.2s ease, margin 0.2s ease;
    flex-shrink: 0 !important;
}

/* Ocultar scrollbar en Chrome, Safari y Opera */
#htTab > ul.rz-tabview-nav:first-of-type::-webkit-scrollbar {
    display: none;
}

#htTab > ul.rz-tabview-nav:first-of-type li a {
    padding: 0px 5px !important;
}

/*Pestañas no seleccionadas - reducidas al 80% sin huecos*/
#htTab > ul.rz-tabview-nav:first-of-type li:not(.rz-tabview-selected) {
    transform: scale(0.9) !important;
    transform-origin: center bottom !important;
    opacity: 0.9 !important;
    margin-left: -8px !important;
    margin-right: -8px !important;
}

/*FIN ---- Clases para las primeras pestañas*/
/* Estilos para los botones de scroll - deben estar sobre las pestañas */
.tab-scroll-button {
    position: absolute;
    top: 2px;
    z-index: 1000 !important;
    background-color: rgba(255, 255, 255, 0.95);
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 24px;
    height: 24px;
    font-weight: bold;
}

.tab-scroll-button:hover {
    background-color: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.tab-scroll-button:active {
    background-color: rgba(240, 240, 240, 1);
}

.tab-scroll-right {
    right: 0px;
}


/* Estilos para el texto y botón de cerrar */
.tab-text-container {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.tab-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

/* Estilos para las pestañas de EmpresaPage (htTabsPage) */
.tabs-container #htTabsPage {
    width: 100%;
    flex: 1;
    position: relative;
    z-index: 1;
}

#htTabsPage > ul.rz-tabview-nav:first-of-type {
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE y Edge */
    flex-wrap: nowrap !important;
}

/* Ocultar scrollbar en Chrome, Safari y Opera */
#htTabsPage > ul.rz-tabview-nav:first-of-type::-webkit-scrollbar {
    display: none;
}

#htTabsPage > ul.rz-tabview-nav:first-of-type li {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
}



