/* Menu latéral commun à toutes les pages athlète.
   Chargé après les styles de chaque page : il fixe la largeur, la densité et
   l'état actif ; les couleurs viennent d'apple-ui.css / light-theme.css.
   En dessous de 769 px, mobile-nav.js remplace ce menu. */
:root { --wie-nav-w: 164px; }

@media (min-width: 769px) {
  html .left-nav {
    width: var(--wie-nav-w) !important;
    padding: 14px 10px 12px !important;
    gap: 10px !important;
  }

  html:not(.wie-embedded) .left-nav ~ main {
    margin-left: var(--wie-nav-w) !important;
    width: calc(100vw - var(--wie-nav-w)) !important;
    max-width: calc(100vw - var(--wie-nav-w)) !important;
  }
}

html .left-nav .nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 4px 12px !important;
  background: transparent !important;
  box-shadow: none !important;
  text-decoration: none;
}

html .left-nav .nav-logo img {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  object-fit: cover;
}

html .left-nav .nav-logo span {
  font-size: 0.95rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.12em !important;
}

html .left-nav .athlete-select {
  width: 100%;
  min-height: 32px !important;
  height: 32px;
  padding: 0 24px 0 9px !important;
  border-radius: 9px !important;
  font-size: 0.74rem !important;
  font-weight: 600;
  text-overflow: ellipsis;
}

html .left-nav .nav-pages {
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  gap: 1px !important;
  flex: 1;
}

html .left-nav .nav-pages .page-link {
  display: block;
  min-height: 0 !important;
  padding: 6px 9px !important;
  border-radius: 8px !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transform: none !important;
}

/* Actif sobre : fond teinté et texte bleu, sans bordure ni ombre. */
html[data-theme] .left-nav .nav-pages .page-link.active,
html .left-nav .nav-pages .page-link.active {
  border-color: transparent !important;
  box-shadow: none !important;
  font-weight: 700 !important;
}

/* Entrée « À traiter » au-dessus du choix de l'athlète. */
html .left-nav .inbox-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 6px 9px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #4db8ff;
  background: #4db8ff14;
  text-decoration: none;
}
html .left-nav .inbox-link:hover { background: #4db8ff26; }
html .left-nav .inbox-count {
  min-width: 20px;
  padding: 1px 6px;
  border-radius: 999px;
  background: #4db8ff;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  text-align: center;
}
html[data-theme="light"] .left-nav .inbox-link { color: #1e88e5; background: #1e88e514; }
html[data-theme="light"] .left-nav .inbox-count { background: #1e88e5; }
html .left-nav .dashboard-link {
  display: block;
  padding: 6px 9px;
  margin-bottom: -6px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: inherit;
  opacity: 0.85;
  text-decoration: none;
}
html .left-nav .dashboard-link:hover { opacity: 1; background: #4db8ff14; }
