/* ============================================================
   EthosMED — trim the study-switcher controls in the viewer side panel.

   WHAT IS HIDDEN
     * the study header row inside the series panel (date, description,
       modality, image count)
     * the chevron that accompanies that header
     * the "display settings" glyph next to the list/thumbnails toggle

   WHAT IS KEPT
     * the left panel strip and its SWITCHER
     * the panel itself, the series toggle and the series thumbnails

   WHY
     The study header exists to switch between studies. This deployment opens
     exactly one study, named by the StudyInstanceUID in the URL, and the server
     refuses to enumerate studies (IsStudyEnumeration in OhifOrthancProxyHandler),
     so those controls can only ever show that one study or fail.

   IMPORTANT — DO NOT HIDE [data-cy="side-panel-header-left"].
     That element is the left panel SWITCHER, not part of the study header.
     The 3.13.14 ethoMED build only had one left panel (the series list), so
     hiding the switcher was harmless and was done here. The veterinary layout
     declares FOUR left panels — series list, Patient, Podiatry and Local study
     (see vetLayout in modes/vet/src/index.tsx) — and all three vet panels are
     reachable only through that switcher. Hiding it made the species, owner and
     local-study panels unreachable, so the rules that did so are deliberately
     removed. If a future build ever needs them gone, hide the study header, not
     the switcher.

   IMPORTANT — DO NOT RE-ADD THE "first child band" RULE.
     The 3.13.0 build wrapped the study header in its own first-child div, so
     hiding `[data-cy="studyBrowser-panel"] > div > div:first-child` removed it.
     In 3.13.14 that selector matches the accordion ROOT instead, which contains
     the content region and every thumbnail. Hiding it collapsed the whole panel
     to zero height. The header is now the `h3`, and the thumbnail region is the
     h3's following sibling, so hiding `h3` alone trims the header and leaves the
     series thumbnails visible.

   CACHE
     The filename is not content-hashed, so it must revalidate. Its <location>
     entry is in the APPLICATION ROOT Web.config, alongside the other
     post-build patched files. */

/* The study header row (date, description, modality, image count).
   The series thumbnails live in the h3's next sibling, so they survive this.
   Scoped to the series panel, so the vet panels' own headers are untouched. */
[data-cy="studyBrowser-panel"] h3 {
    display: none !important;
}

/* The chevron that accompanies the hidden header. */
[data-cy="studyBrowser-panel"] h3 + svg {
    display: none !important;
}

/* The sliders ("display settings") glyph on the left of the Studies band, next
   to the list/thumbnails toggle. It opens the display-set options for the study
   list, which is not used here.

   Matched by its stable SVG group id, `icon-display-settings`, with :has(), since
   the icon itself has no data-cy/aria-label and its wrapper divs carry only
   generic layout classes. The list/thumbnails buttons are siblings in a separate
   container, so they are unaffected. On a browser without :has() support the rule
   is dropped and the icon simply stays visible - it hides nothing else. */
svg:has(g#icon-display-settings) {
    display: none !important;
}
