/* MajorDoc · gabarit commun, variante d'ESSAI de Zuri (/gabarit, 21/11/2026). Tenu à la main, à côté de la barre fabriquée.
   1. La tête : seule la photo mène à l'accueil ; la flèche est un vrai bouton de 32 px (retour de Gautier, 21/11). */
#mdb-gal .gw { display: none !important; }
#mdb-gal { gap: 5px !important; padding: 3px !important; background: transparent !important; }
#mdb-gal img { width: 30px !important; height: 30px !important; cursor: pointer; transition: box-shadow .15s; }
#mdb-gal img:hover { box-shadow: 0 0 0 1.5px #fff, 0 0 0 3px #2F6BFF; }
#mdb-gal svg { width: 14px; height: 14px; box-sizing: content-box !important; padding: 9px !important; border-radius: 10px !important; background: #EEF1FA; color: #3A4664; flex: 0 0 auto; transition: background .15s, color .15s, transform .2s; }
#mdb-gal svg:hover, #mdb-gal.on svg { background: #DCE3F7; color: #0D1631; }

/* 2. Un seul patient : la pastille du haut (retour de Gautier, 21/11 : le bandeau marine faisait double emploi). La barre la crée,
      patient_zuri.js y pose le sous-titre (d'où vient le patient, à quelle heure) et la flèche du menu. */
#mdb-pat { cursor: pointer; max-width: 330px !important; padding-right: 4px !important; transition: background .15s, box-shadow .15s; }
#mdb-pat:hover { background: #E8EDF9 !important; }
#mdb-pat small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#mdb-pat[data-mode="ailleurs"] > span:first-child { background: linear-gradient(135deg, #0A56F0, #22B8CF) !important; }
#mdb-pat[data-mode="local"] > span:first-child { background: #8A93AB !important; }
#mdb-pat[data-mode="homonyme"] { box-shadow: inset 0 0 0 1.5px #E8A317 !important; background: #FFF8E6 !important; }
#mdb-pat[data-mode="homonyme"] small { color: #9A6B00 !important; }
#mdb-pat[data-mode="homonyme"] > span:first-child { background: #E8A317 !important; }
#mdb-pat .mdz-ch { flex: none; display: grid; place-items: center; width: 28px; height: 28px; margin-left: 2px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #3A4664; cursor: pointer; transition: background .15s, color .15s; }
#mdb-pat .mdz-ch:hover, #mdb-pat .mdz-ch:focus-visible, #mdb-pat .mdz-ch[aria-expanded="true"] { background: #D5DDF3; color: #0D1631; outline: none; }
#mdz-menu { position: fixed; z-index: 90; min-width: 236px; max-width: 290px; padding: 6px; border-radius: 14px; background: #fff; color: #0D1631;
  font: 500 13px/1.2 Inter, system-ui, -apple-system, 'Segoe UI', sans-serif; box-shadow: 0 22px 44px -18px rgba(13,22,49,.38), 0 0 0 1px #E1E6F3; }
#mdz-menu button { display: flex; align-items: center; width: 100%; height: 36px; padding: 0 12px; border: 0; border-radius: 10px; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
#mdz-menu button:hover, #mdz-menu button:focus-visible { background: #F1F4FB; outline: none; }
#mdz-menu button.pr { font-weight: 650; }
#mdz-menu p { margin: 4px 0 0; padding: 8px 12px 6px; border-top: 1px solid #EEF1FA; font-size: 11.5px; line-height: 1.4; color: #6F7890; }
@media (max-width: 1280px) { #mdb-pat { max-width: 240px !important; } }
/* le repère de l’étape en cours pend SOUS le filet : dans une barre de 44 px il recouvrait le bas de la pastille du patient */
#mdb-fil.dans a.n.on { width: 22px !important; height: 22px !important; transform: translate(-50%, -18%) !important; box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 22%, #fff), 0 6px 14px -6px var(--c) !important; }
#mdb-fil.dans a.n.on:hover { transform: translate(-50%, -18%) scale(1.12) !important; }

/* 3. Le gabarit : la barre horizontale (44 px) va jusqu'au bord gauche, le rail des menus de Zuri commence dessous, sa marque du haut s'efface
      (cadrage de Gautier, 21/11 : horizontal = MajorDoc et le parcours du patient, vertical = les menus du logiciel). Poste seulement. */
@media (min-width: 761px) {
  .app > .main > .top { position: fixed !important; left: 0; right: 0; top: 0; height: 44px !important; padding-left: 8px !important; z-index: 40 !important; }
  .app > .main { padding-top: 44px; }
  .app > .side > .side-in { top: 44px !important; height: calc(100% - 44px) !important; }
  .app > .side .brand { height: auto !important; min-height: 10px; padding: 6px 12px !important; }
  .app > .side .brand > img, .app > .side .brand > b, .app > .side .brand > .pill { display: none !important; }
  #mdb-gal.dans { margin-left: 0 !important; margin-right: -3px !important; height: 38px !important; }
}

/* [RECHERCHE-2111] les fiches du cabinet, sous la recherche du haut */
#mdz-fiches { position: fixed; z-index: 90; max-width: calc(100vw - 16px); padding: 8px; border-radius: 18px; background: #fff; color: #0D1631; font: 500 13px/1.3 Inter, ui-sans-serif, system-ui, sans-serif;
  box-shadow: 0 28px 60px -22px rgba(8,16,41,.55), 0 0 0 1px rgba(13,22,49,.10); }
#mdz-fiches h5 { margin: 6px 10px 6px; font: 700 10.5px/1 Inter, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: #6F7890; }
#mdz-fiches button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 12px; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
#mdz-fiches button:hover, #mdz-fiches button.on, #mdz-fiches button:focus-visible { background: #F1F4FB; outline: none; }
#mdz-fiches button.on { box-shadow: inset 0 0 0 1.5px #0A56F0; }
#mdz-fiches button i { flex: none; width: 30px; height: 30px; border-radius: 999px; background: linear-gradient(135deg, #0A56F0, #22B8CF); color: #fff; font: 700 11px/30px Inter, sans-serif; text-align: center; font-style: normal; }
#mdz-fiches .tx { display: grid; min-width: 0; }
#mdz-fiches .tx b { font-weight: 650; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#mdz-fiches .tx small { font-size: 11.5px; color: #6F7890; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#mdz-fiches p { margin: 0; padding: 10px 10px 8px; font-size: 12px; line-height: 1.45; color: #6F7890; }
#mdz-fiches p.aide { margin-top: 4px; padding-top: 8px; border-top: 1px solid #EEF1FA; font-size: 11px; }
