/* Here, the content of the common custom CSS defined into Home - Setup - Display - CSS*/
/* MASQUER VERSION DOLIBAR */

.aversion {
 display: none !important;
}

a.login_table_title {
 display: none !important;
}

/* AGRANDIR LOGO AVENELINK SUR LOGIN */

#img_logo {
 transform: scale(2);
 transform-origin: center;
 margin-top: 35px; /* Espace avant le logo */
 margin-bottom: 20px; /* Espace après le logo */
}

/* MASQUER LOGO PRINT POUR AFFICHAGE PAGE SANS MENU */

div[title="Afficher page d'impression de la zone centrale"] {
 display: none !important;
}

/* ARRIERE SIDE BARRE */

html, body {
 margin: 0;
 padding: 0;
 height: 100%;
 overflow-y: auto; /* autorise le scroll global */
}

/* Menu haut : fixe en hauteur */
.tmenudiv {
 height: 60px; /* ajuste si besoin */
 flex-shrink: 0;
}

/* Conteneur principal */
#id-left {
 height: calc(100vh - 60px);
 overflow-y: auto; /* scroll du menu latéral */
}

/* Contenu principal (exemple : le contenu à droite du menu) */
#id-right, #id-content, .content-wrapper {
 height: calc(100vh - 60px);
 overflow-y: auto; /* scroll du contenu */
}

/* OPTIMISATION MOBILE */

@media (max-width: 768px) {
 /* Conteneur menu en flex horizontal avec scroll horizontal */
 .tmenu {
 display: flex !important;
 overflow-x: auto;
 overflow-y: hidden;
 white-space: nowrap;
 -webkit-overflow-scrolling: touch; /* scroll fluide sur iOS */
 }

 /* Chaque item garde sa taille naturelle, ne rétrécit pas */
 .tmenu li {
 flex: 0 0 auto;
 }

 /* Masquer le texte sous les icônes */
 .tmenu .tmenulabel {
 display: none !important;
 }

 /* Centrer verticalement les icônes dans chaque item */
 .tmenu > li > div.tmenucenter {
 padding: 0 8px !important;
 height: 48px;
 display: flex !important;
 align-items: center !important;
 justify-content: center !important;
 }

 /* Taille et style des icônes */
 .tmenu .mainmenu > span {
 font-size: 1.3rem !important;
 line-height: 1rem !important;
 display: block;
 }
}