/* Onglets présentés en menu latéral (même forme que les modules Lait et Clients) :
   - grand écran : menu fixe au bord (début de ligne : à droite en arabe, à gauche en français/anglais)
   - mobile / tablette (≤ 991 px) : tiroir ouvert par un bouton rond flottant
   Généré par assets/js/tab-drawer.js à partir de la barre d'onglets d'origine de la page (masquée). */

:root { --td-w: 250px; }

.td-orig-hidden { display: none !important; }

.td-sidebar {
  position: fixed; top: 0; bottom: 0; inset-inline-start: 0; width: var(--td-w);
  background: linear-gradient(180deg, #036666 0%, #023e3e 100%); color: #fff;
  z-index: 2000; overflow-y: auto; overflow-x: hidden;
  box-shadow: 4px 0 10px rgba(0, 0, 0, .12); transition: transform .3s ease;
  font-family: 'Cairo', 'Inter', sans-serif;
}
[dir="rtl"] .td-sidebar { box-shadow: -4px 0 10px rgba(0, 0, 0, .12); }

.td-head { padding: 1.6rem 1rem; text-align: center; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.td-head .td-title { font-size: 1.15rem; font-weight: 700; margin: 0; color: #fff; line-height: 1.4; }

.td-nav { list-style: none; margin: 14px 0 0; padding: 0 0 24px; }
.td-nav li { margin: 0; padding: 0; }
.td-nav a {
  display: flex; align-items: center; gap: 14px; margin: 5px 14px; padding: 12px 16px;
  border-radius: 10px; color: rgba(255, 255, 255, .82); text-decoration: none; cursor: pointer;
  font-size: 15px; line-height: 1.35; transition: background .2s; user-select: none;
}
/* Intitulé de section (menus à nombreux onglets) : jaune */
.td-nav .td-group {
  margin: 16px 22px 4px; padding: 0 0 4px; font-size: 12px; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; color: #facc15; border-bottom: 1px solid rgba(250, 204, 21, .4);   /* jaune */
}
.td-nav .td-group:first-child { margin-top: 4px; }
.td-nav a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.td-nav a.active { background: #fff !important; color: #036666 !important; font-weight: 700; box-shadow: 0 4px 15px rgba(0, 0, 0, .2); }
.td-nav a i, .td-nav a svg { width: 20px; flex: 0 0 20px; text-align: center; }

/* Le contenu de la page laisse la place au menu (grand écran) */
body.td-on { padding-inline-start: var(--td-w) !important; }

.td-toggle {
  display: none; position: fixed; bottom: 20px; right: 20px; z-index: 2001; width: 60px; height: 60px;
  border-radius: 50%; border: 0; background: linear-gradient(135deg, #036666 0%, #047857 100%); color: #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, .3); align-items: center; justify-content: center; font-size: 20px; cursor: pointer;
}
[dir="rtl"] .td-toggle { right: auto; left: 20px; }
.td-backdrop { display: none; position: fixed; inset: 0; background: rgba(0, 0, 0, .35); z-index: 1999; }

@media (max-width: 991.98px) {
  body.td-on { padding-inline-start: 0 !important; }
  .td-sidebar { transform: translateX(-100%); }
  [dir="rtl"] .td-sidebar { transform: translateX(100%); }
  .td-sidebar.open { transform: none; }
  .td-toggle { display: flex; }
  .td-backdrop.open { display: block; }
}

@media print {
  .td-sidebar, .td-toggle, .td-backdrop { display: none !important; }
  body.td-on { padding-inline-start: 0 !important; }
}
