/* The search overlay must cover the sticky Odoo website header (z-index 1100).
   Keep its stacking level constant even while opening: the legacy all-property
   transition otherwise animates z-index and hides the close button behind
   the navigation. Scoped to the Tecnomocion overlay only. */
#tm-search-panel.search-panel {
  z-index: 1800 !important;
  transition: opacity .25s ease, visibility .25s ease !important;
}

/* Tecnomocion inner pages: reuse the working Home search layout.
   Home stays unchanged. Avoid generic search-panel collisions.
   Isolated from StageTec/Academy and independent of Odoo editor's form rules. */
body:not(.home-remix) #tm-search-panel.open {
  display:flex!important;
  flex-direction:column!important;
  justify-content:flex-start!important;
  align-items:center!important;
  gap:14px!important;
  padding:72px 24px 38px!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  box-sizing:border-box!important;
}
body:not(.home-remix) #tm-search-panel > small,
body:not(.home-remix) #tm-search-panel > h2,
body:not(.home-remix) #tm-search-panel > label,
body:not(.home-remix) #tm-search-panel > .search-results,
body:not(.home-remix) #tm-search-panel > .star-tools,
body:not(.home-remix) #tm-search-panel > .search-help {
  position:relative;
  z-index:2;
  flex-shrink:0;
  box-sizing:border-box;
}
body:not(.home-remix) #tm-search-panel > h2 {
  font-size:clamp(36px,5.5vw,74px)!important;
  line-height:1.05!important;
  margin:2px auto 12px!important;
  text-align:center!important;
  max-width:100%!important;
}
body:not(.home-remix) #tm-search-panel > label {
  display:flex!important;
  flex-direction:row!important;
  align-items:stretch!important;
  width:min(780px,100%)!important;
  max-width:780px!important;
  min-height:62px!important;
  padding:6px!important;
  margin:0 auto!important;
  border-radius:9px!important;
  background:#fff!important;
  box-shadow:0 12px 32px #0006!important;
  gap:6px!important;
}
body:not(.home-remix) #tm-search-panel > label > input#globalSearch {
  display:block!important;
  visibility:visible!important;
  opacity:1!important;
  position:relative!important;
  min-width:0!important;
  flex:1 1 auto!important;
  width:auto!important;
  min-height:48px!important;
  height:auto!important;
  margin:0!important;
  padding:10px 16px!important;
  border:0!important;
  border-radius:6px!important;
  outline-offset:-3px;
  background:#fff!important;
  color:#111820!important;
  font:500 16px/1.35 Inter,Arial,sans-serif!important;
}
body:not(.home-remix) #tm-search-panel > label > input#globalSearch::placeholder {color:#6b7280!important;opacity:1;}
body:not(.home-remix) #tm-search-panel > label > button {
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  position:relative!important;
  flex:0 0 auto!important;
  width:auto!important;
  min-width:125px!important;
  min-height:48px!important;
  height:auto!important;
  padding:10px 22px!important;
  margin:0!important;
  border:0!important;
  border-radius:6px!important;
  background:#e3032e!important;
  color:#fff!important;
  font:800 13px Inter,Arial,sans-serif!important;
  cursor:pointer!important;
}
body:not(.home-remix) #tm-search-panel > .search-results {
  width:min(860px,100%)!important;
  margin:4px auto 0!important;
}
body:not(.home-remix) #tm-search-panel > .star-tools,
body:not(.home-remix) #tm-search-panel > .search-help {width:min(1060px,100%)!important;margin-left:auto!important;margin-right:auto!important;}
@media(max-width:600px){
  body:not(.home-remix) #tm-search-panel.open {padding:62px 14px 24px!important;gap:12px!important;}
  body:not(.home-remix) #tm-search-panel > label {min-height:55px!important;padding:5px!important;}
  body:not(.home-remix) #tm-search-panel > label > input#globalSearch {font-size:14px!important;padding:8px!important;min-height:44px!important;}
  body:not(.home-remix) #tm-search-panel > label > button {min-width:84px!important;min-height:44px!important;padding:8px 9px!important;font-size:11px!important;}
  body:not(.home-remix) #tm-search-panel > .search-results {grid-template-columns:1fr!important;}
}
