/* DASM R8.2 LIVE — Teams density promoted from accepted STAGING behaviour. */
html body #view-teams .teams-grid{align-items:start!important}
html body #view-teams .team-card{align-self:start!important}
html body #view-teams .squad-list{align-content:start!important}
html body #view-teams .squad-row,
html body #view-teams .team-player-owner-link{box-sizing:border-box!important}

@media (min-width:1101px) and (hover:hover) and (pointer:fine){
  html body #view-teams .team-card{padding:12px!important}
  html body #view-teams .team-card-head{margin-bottom:6px!important}
  html body #view-teams .squad-head{padding:3px 5px!important;margin:0 0 1px!important;min-height:0!important}
  html body #view-teams .squad-list{gap:2px!important}
  html body #view-teams .squad-row{min-height:23px!important;height:auto!important;padding:2px 5px!important;line-height:1.08!important}
  html body #view-teams .team-player-owner-link{min-height:18px!important;height:auto!important;padding:0!important;line-height:1.08!important}
  html body #view-teams .team-value{margin-top:5px!important;padding-top:5px!important}
}
@media (min-width:900px) and (max-width:1366px) and (orientation:landscape) and (hover:none) and (pointer:coarse){
  html body #view-teams .team-card{padding:11px!important}
  html body #view-teams .team-card-head{margin-bottom:6px!important}
  html body #view-teams .squad-head{padding:3px 5px!important;margin:0 0 1px!important;min-height:0!important}
  html body #view-teams .squad-list{gap:2px!important}
  html body #view-teams .squad-row{min-height:26px!important;height:auto!important;padding:2px 5px!important;line-height:1.1!important}
  html body #view-teams .team-player-owner-link{min-height:22px!important;height:auto!important;padding:0!important;line-height:1.1!important}
  html body #view-teams .team-value{margin-top:5px!important;padding-top:5px!important}
}
@media (min-width:761px) and (max-width:1100px) and (orientation:portrait){
  html body #view-teams .team-card-head{margin-bottom:6px!important}
  html body #view-teams .squad-list{gap:2px!important}
  html body #view-teams .squad-row{min-height:27px!important;height:auto!important;padding:2px 5px!important;line-height:1.1!important}
  html body #view-teams .team-player-owner-link{min-height:23px!important;height:auto!important;padding:0!important;line-height:1.1!important}
  html body #view-teams .team-value{margin-top:5px!important;padding-top:5px!important}
}
@media (max-width:760px){
  html body #view-teams .squad-row{min-height:30px!important}
  html body #view-teams .team-player-owner-link{min-height:24px!important}
}


/* R8.65 — Team value aligns directly under the squad £ column. */
#view-teams .team-card>.team-value{
  display:grid!important;
  grid-template-columns:30px minmax(0,1fr) 34px 39px 42px 36px!important;
  column-gap:4px!important;
  align-items:center!important;
  justify-content:initial!important;
  padding-left:6px!important;
  padding-right:6px!important;
}
#view-teams .team-card>.team-value>span{
  grid-column:1 / 4!important;
  justify-self:start!important;
  padding-right:0!important;
  white-space:nowrap!important;
  font-size:8.5px!important;
  line-height:1!important;
  font-weight:950!important;
  letter-spacing:.035em!important;
}
#view-teams .team-card>.team-value>strong{
  grid-column:4!important;
  justify-self:start!important;
  text-align:left!important;
  min-width:0!important;
  white-space:nowrap!important;
  font-size:14px!important;
  line-height:1!important;
  font-weight:950!important;
}
@media(max-width:760px){
  #view-teams .team-card>.team-value{
    grid-template-columns:27px minmax(0,1fr) 31px 35px 40px 32px!important;
    column-gap:4px!important;
  }
  #view-teams .team-card>.team-value>span{font-size:8.5px!important}
  #view-teams .team-card>.team-value>strong{font-size:13px!important}
}


/* R8.3 LIVE — align Current Team Value with the squad price column. */
#view-teams .team-card>.team-value{
  display:grid!important;
  grid-template-columns:30px minmax(0,1fr) 34px 39px 42px 36px!important;
  column-gap:4px!important;
  align-items:center!important;
  justify-content:initial!important;
  box-sizing:border-box!important;
  padding-left:6px!important;
  padding-right:6px!important;
}
#view-teams .team-card>.team-value>span{
  grid-column:1 / 4!important;
  justify-self:start!important;
  padding:0!important;
  font-size:7.5px!important;
  line-height:1!important;
  font-weight:950!important;
  white-space:nowrap!important;
}
#view-teams .team-card>.team-value>strong{
  grid-column:4!important;
  justify-self:end!important;
  min-width:0!important;
  padding:0!important;
  text-align:right!important;
  font-size:13.5px!important;
  line-height:1!important;
  font-weight:950!important;
  white-space:nowrap!important;
}
@media(max-width:520px){
  #view-teams .team-card>.team-value{
    grid-template-columns:27px minmax(0,1fr) 31px 35px 40px 32px!important;
  }
  #view-teams .team-card>.team-value>span{font-size:8.5px!important}
  #view-teams .team-card>.team-value>strong{font-size:14.5px!important}
}
