/* Novaris v0.8.35 — Gebäudeseite ausgelagert
   Ziel: keine weitere Gebäude-Layout-Patch-Hölle im globalen styles.css.
   Diese Datei wird nach styles.css geladen und ist ab jetzt die einzige Stelle
   für Layout-Regeln der Route /?route=buildings.
*/

.nv-workspace-v0801:has(> .buildings-page-v0823){
  overflow:hidden!important;
  padding:8px!important;
}

.nv-workspace-v0801 > .buildings-page-v0823.command-subpage-v079,
.buildings-page-v0823{
  display:grid!important;
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  max-height:100%!important;
  overflow:hidden!important;
  padding-bottom:0!important;
  gap:8px!important;
  grid-template-rows:minmax(0,1fr) 154px!important;
}

.buildings-top-v0823{
  min-height:0!important;
  height:100%!important;
  overflow:hidden!important;
  align-items:stretch!important;
  grid-template-columns:minmax(0,1fr) minmax(350px,390px)!important;
}

.buildings-scene-v0823{
  min-height:0!important;
  height:100%!important;
  overflow:hidden!important;
}

.buildings-scene-copy-v0823{
  top:28px!important;
  left:28px!important;
  max-width:min(680px,calc(100% - 56px))!important;
}

.buildings-scene-copy-v0823 h2{
  font-size:clamp(38px,4.3vw,64px)!important;
  line-height:.96!important;
  margin:4px 0 8px!important;
}

.buildings-scene-metrics-v0823{
  margin-top:14px!important;
}

.buildings-selected-pill-v0823{
  left:24px!important;
  bottom:24px!important;
  z-index:5!important;
}

.buildings-scene-v0823 .building-queue-banner-v0716.building-queue-banner-v0825{
  position:absolute!important;
  left:24px!important;
  bottom:96px!important;
  top:auto!important;
  margin:0!important;
  width:auto!important;
  max-width:min(420px,calc(100% - 48px))!important;
  z-index:4!important;
}

.buildings-detail-v0823{
  min-height:0!important;
  height:100%!important;
  overflow:hidden!important;
}

.buildings-detail-v0823 .building-detail-panel-v0712{
  min-height:0!important;
  height:100%!important;
  max-height:100%!important;
  overflow:hidden!important;
  padding:10px!important;
  grid-template-rows:minmax(0,1fr) auto!important;
}

.buildings-detail-v0823 .building-detail-scroll-v0712{
  min-height:0!important;
  overflow:auto!important;
  padding-right:4px!important;
}

.buildings-detail-v0823 .building-detail-copy-v0712 h3{
  font-size:clamp(30px,2.25vw,42px)!important;
}

.buildings-list-panel-v0823{
  display:grid!important;
  grid-template-rows:auto minmax(0,1fr)!important;
  height:154px!important;
  min-height:154px!important;
  max-height:154px!important;
  overflow:hidden!important;
  padding:8px 12px 9px!important;
  gap:7px!important;
}

.buildings-list-head-v0823{
  margin:0!important;
  align-items:flex-start!important;
}

.buildings-list-head-v0823 span{
  margin:0!important;
  font-size:11px!important;
}

.buildings-list-head-v0823 small{
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}

.building-card-grid-v0823{
  display:grid!important;
  min-height:0!important;
  height:100%!important;
  max-height:100%!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  align-content:start!important;
  justify-content:start!important;
  grid-template-columns:repeat(auto-fill,minmax(232px,262px))!important;
  grid-auto-rows:minmax(82px,auto)!important;
  gap:8px!important;
  padding:0 6px 4px 1px!important;
  scrollbar-gutter:stable!important;
}

.building-card-grid-v0823 .building-thumb-card-v0712{
  width:100%!important;
  min-width:0!important;
  min-height:82px!important;
  height:auto!important;
  display:grid!important;
  grid-template-columns:76px minmax(0,1fr)!important;
  gap:9px!important;
  align-items:center!important;
  padding:8px!important;
}

.building-card-grid-v0823 .building-thumb-card-v0712 img{
  width:76px!important;
  height:54px!important;
  object-fit:cover!important;
  border-radius:11px!important;
}

.building-card-grid-v0823 .building-thumb-card-v0712 div{min-width:0!important;}
.building-card-grid-v0823 .building-thumb-card-v0712 b,
.building-card-grid-v0823 .building-thumb-card-v0712 small,
.building-card-grid-v0823 .building-thumb-card-v0712 em{
  display:block!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}

.building-capacity-row-v0829{
  grid-column:1 / -1!important;
  min-width:0!important;
}

.building-capacity-row-v0829 small{
  display:block!important;
  white-space:normal!important;
  line-height:1.35!important;
}

@media(max-width:1500px), (max-height:850px){
  .nv-workspace-v0801 > .buildings-page-v0823.command-subpage-v079,
  .buildings-page-v0823{grid-template-rows:minmax(0,1fr) 142px!important;}
  .buildings-top-v0823{grid-template-columns:minmax(0,1fr) minmax(330px,360px)!important;}
  .buildings-list-panel-v0823{height:142px!important;min-height:142px!important;max-height:142px!important;}
  .building-card-grid-v0823{grid-template-columns:repeat(auto-fill,minmax(214px,244px))!important;grid-auto-rows:minmax(76px,auto)!important;}
  .building-card-grid-v0823 .building-thumb-card-v0712{min-height:76px!important;grid-template-columns:70px minmax(0,1fr)!important;}
  .building-card-grid-v0823 .building-thumb-card-v0712 img{width:70px!important;height:50px!important;}
  .buildings-scene-v0823 .building-queue-banner-v0716.building-queue-banner-v0825{bottom:88px!important;}
  .buildings-scene-copy-v0823 h2{font-size:clamp(34px,4vw,52px)!important;}
}
