﻿/* Style de base pour les onglets myTab */
myTab{
    width:100%
}
myTabHeader {
    display: flex;
    border-bottom: 2px solid #cfd8dc;
    margin-bottom: 0.5rem;
    width: 100%;
    flex-wrap: wrap;
}

    myTabHeader button {
        background: transparent;
        border: none;
        padding: 8px 16px;
        cursor: pointer;
        font: 14px/1.4 Segoe UI, Arial, sans-serif;
        color: #455a64;
        border-bottom: 2px solid transparent;
        transition: all 0.2s ease;
        border-radius: 0;
        justify-content: space-between;
    }

        myTabHeader button:hover {
            color: #0d47a1;
        }

        myTabHeader button.active {
            color: #0d47a1;
            font-weight: 600;
            border-bottom-color: #1976d2;
        }

myTabItem {
    /*display: none;
    padding: 8px;
    width: 100%;
    height: calc(100% - 35px);*/ /* tabHeader en moins*/
    display: flex; /* toujours flex */
    flex-direction: column;
    flex: 1 1 auto; /* prend la place dispo */
    min-height: 0; /* 🔑 autorise le scroll */
    overflow: hidden;
}

tabItem {
    display: flex;
    width: -webkit-fill-available;
    flex-direction: column;
    gap: 0.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0; /* 🔑 encore */
    overflow-y: auto;
    inset: 0;
    contain: size
}


    myTabItem[style*="display: block"] {
        animation: fadeIn 0.25s ease-in;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

tabitem.inactive {
    height: 0;
    overflow: hidden;
    display: none;
}

tabitem.active {
    height: auto;
    overflow: auto;
    position: relative;
}

mytabitem.inactive {
    height: 0;
    overflow: hidden;
    display: none;
}

mytabitem.active {
    height: auto;
    overflow: auto;
    position: relative;
}



.app-mobile tabsmodule tabstrip {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    scrollbar-width: none;
    flex-wrap: wrap;
}

    .app-mobile tabsmodule tabstrip::-webkit-scrollbar {
        display: none;
    }

.app-mobile tabheader {
    flex: 0 0 auto;
    white-space: nowrap;
}
.app-desktop tabsmodule tabstrip {
    display: flex;
    flex-direction: column;
    overflow: visible;
}

.app-desktop tabheader {
    white-space: normal;
}
