/* Browser-width corrections validated against Figma nodes 385:1297, 387:1798, 387:797. */
.equipment-grid span{grid-template-columns:40px minmax(0,1fr);grid-template-rows:auto auto;column-gap:12px;row-gap:2px;align-items:center}
.equipment-grid span:before{grid-column:1;grid-row:1/3;align-self:center}
.equipment-grid span b{grid-column:2;grid-row:2;margin:0}

/* The Figma review layout needs its summary card below the matrix before the table loses a usable width. */
@media (max-width:1400px){
  .review-workspace,.result-workspace{grid-template-columns:1fr}
  .matrix-card,.document-table{max-width:100%;overflow-x:auto;overflow-y:hidden}
  .matrix-card table,.document-table table{min-width:980px}
}

/* At this width the Figma allocation rows need the full content column; retain the right rail below it. */
@media (max-width:1700px){
  .allocation-layout{grid-template-columns:1fr}
  .exact-allocation{overflow:visible}
  .exact-allocation article{min-width:0;grid-template-columns:minmax(180px,1.5fr) minmax(160px,1.3fr) 60px auto auto 90px}
  .exact-allocation footer{min-width:0;grid-template-columns:1fr auto auto}
}
@media (max-width:1050px){
  .exact-allocation{overflow-x:auto;overflow-y:hidden}
  .exact-allocation article,.exact-allocation footer{min-width:900px}
}
