/* GALBC R9.71.29 – presentation-only common selector placement.
   Same visual pattern as Captura > Canastas y triángulos:
   "Todas las granjas" + farm pills + "Estanques · N" in the SAME row.
   Keep all existing buttons/events and the common two-column modal. */
#galbc-test#galbc-test .galbc-pond-trigger121,
#galbc-test#galbc-test #gt-main .galbc-native-feed121 #rd-ponds109,
#galbc-test#galbc-test #gt-main .galbc-native-compare121 [data-ponds],
#galbc-test#galbc-test #gt-main .compare113 .galbc-compare-toolbar122 [data-ponds] {
 margin-left:0!important; margin-right:0!important; order:initial!important; align-self:center!important;
 position:static!important; right:auto!important; float:none!important;
}
/* Capture basket + water: the native farm row already owns its layout. */
#galbc-test #gt-main.galbc-unified .bi-filters > .row {
 display:flex!important; flex-flow:row wrap!important; align-items:center!important;
 justify-content:flex-start!important; gap:5px!important;
}
#galbc-test #gt-main.galbc-unified .bi-filters > .row > #galbc-pond-selector121 {
 margin-left:0!important;
}
/* Analytics toolbar: do not push the selector into an isolated right-hand slot.
   The existing 'Todas las granjas' control is moved to the beginning via JS. */
#galbc-test #gt-main.galbc-unified #an98-toolbar .an98-right > [role=group],
#galbc-test #gt-main.galbc-unified .health-app .h-standard-toolbar > .row {
 display:flex!important; flex-flow:row wrap!important; align-items:center!important;
 justify-content:flex-start!important; gap:5px!important; min-width:0!important;
}
#galbc-test #gt-main.galbc-unified #an98-toolbar .an98-right > [role=group] > #galbc-pond-selector121,
#galbc-test #gt-main.galbc-unified .health-app .h-standard-toolbar #galbc-pond-selector121 {
 margin-left:0!important; flex:0 0 auto!important;
}
/* Salud y Patología: make the native pond sidebar invisible only when the
   common floating selector was successfully mounted (galbc-unified). */
#galbc-test#galbc-test #gt-main.galbc-unified .health-app.h-standard-analytics .bi-layout {
 display:grid!important; grid-template-columns:minmax(0,1fr)!important; gap:0!important;
 width:100%!important; max-width:100%!important;
}
#galbc-test#galbc-test #gt-main.galbc-unified .health-app.h-standard-analytics .bi-layout > .bi-ponds {display:none!important;}
#galbc-test#galbc-test #gt-main.galbc-unified .health-app.h-standard-analytics .bi-layout > .bi-content {
 width:100%!important; max-width:none!important; min-width:0!important;
}
/* Captura > Alimentación: native pond trigger belongs next to Raceways
   inside the scrollable farm line, NOT in a separate fixed right slot. */
#galbc-test #gt-main #rd-selectors109 > .rd-farmbar126 {
 display:block!important; width:100%!important; overflow:visible!important;
}
#galbc-test #gt-main #rd-selectors109 .rd-farm-scroll126 {
 display:flex!important; flex-flow:row nowrap!important; flex-wrap:nowrap!important;
 align-items:center!important; justify-content:flex-start!important; gap:6px!important;
 width:100%!important; min-width:0!important; max-width:100%!important;
 overflow-x:auto!important; overflow-y:hidden!important; box-sizing:border-box!important;
 -webkit-overflow-scrolling:touch; overscroll-behavior-x:contain;
}
#galbc-test#galbc-test #gt-main #rd-selectors109 .rd-farm-scroll126 > #rd-ponds109 {
 flex:0 0 auto!important; margin:0!important; max-width:none!important;
}
/* Narrow view: filters and pond selector stay in one swipeable row.
   Scroll moves through the farm pills and finally to the pond selector. */
@media(max-width:760px){
 #galbc-test #gt-main.galbc-unified #an98-toolbar .an98-right > [role=group],
 #galbc-test #gt-main.galbc-unified .health-app .h-standard-toolbar > .row,
 #galbc-test #gt-main.galbc-unified .bi-filters > .row {
  flex-flow:row nowrap!important; flex-wrap:nowrap!important; max-width:100%!important;
  width:100%!important; overflow-x:auto!important; overflow-y:hidden!important;
  -webkit-overflow-scrolling:touch; scrollbar-width:thin; overscroll-behavior-x:contain;
 }
 #galbc-test #gt-main.galbc-unified #an98-toolbar .an98-right > [role=group] > *,
 #galbc-test #gt-main.galbc-unified .health-app .h-standard-toolbar > .row > *,
 #galbc-test #gt-main.galbc-unified .bi-filters > .row > * {
  flex:0 0 auto!important; white-space:nowrap!important;
 }
}
