/* SIMURBAN 0.9.286 — correção de altura da ferramenta Estradas.
   A seção ativa era limitada a uma altura menor que o próprio painel e ainda
   recebia overflow:hidden do layout compacto, cortando os botões de Extras. */
body.city-mode #toolPanel[data-active-tool="road"]{
  max-height:calc(100vh - 126px)!important;
}
body.city-mode #toolPanel[data-active-tool="road"] .classic-tool-section.active{
  max-height:calc(100vh - 184px)!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  overscroll-behavior:contain;
  scrollbar-gutter:stable;
  padding-bottom:12px!important;
}
body.city-mode #toolPanel[data-active-tool="road"] .classic-tool-group:has(.road-extra-grid){
  min-height:62px!important;
  align-self:start!important;
}
body.city-mode #toolPanel[data-active-tool="road"] .road-extra-grid{
  min-height:34px!important;
}
body.city-mode #toolPanel[data-active-tool="road"] .road-extra-grid button{
  min-height:32px!important;
  height:32px!important;
}
body.city-mode #toolPanel[data-active-tool="road"] .classic-tool-section.active::-webkit-scrollbar{width:8px}
body.city-mode #toolPanel[data-active-tool="road"] .classic-tool-section.active::-webkit-scrollbar-thumb{
  background:rgba(139,207,98,.42);
  border:2px solid transparent;
  border-radius:8px;
  background-clip:padding-box;
}

/* Em 768p/720p o conteúdo cabe sem sacrificar os botões ou sobrepor a bottombar. */
@media (max-height:800px) and (min-width:1101px){
  body.city-mode #toolPanel[data-active-tool="road"] .classic-tool-section.active{
    gap:6px!important;
    padding:8px 8px 10px!important;
  }
  body.city-mode #toolPanel[data-active-tool="road"] .classic-tool-group{padding:7px!important}
  body.city-mode #toolPanel[data-active-tool="road"] .icon-choice{
    height:40px!important;
    min-height:40px!important;
  }
  body.city-mode #toolPanel[data-active-tool="road"] .speed-quick-buttons .icon-choice{
    height:42px!important;
    min-height:42px!important;
  }
}
