/* V799as — final native-list cascade correction.
   Native buttons remain the touch/click mechanism, but selectable list values
   must retain the original flat table appearance. Category controls are not
   targeted by this file. */

/* The phone workspace contains older high-specificity button rules. Repeat the
   standsCard id deliberately so this final release rule wins without changing
   any shared button component or controller behaviour. */
html body #standsCard#standsCard#standsCard td.standListSelectCellV799aq,
html body #standsCard#standsCard#standsCard td.standListSelectCellV799ap{
  padding:0!important;
  white-space:normal!important;
  background-clip:padding-box!important;
}

html body #standsCard#standsCard#standsCard button.standListSelectButtonV799aq,
html body #standsCard#standsCard#standsCard button.standListSelectButtonV799ap{
  -webkit-appearance:none!important;
  appearance:none!important;
  box-sizing:border-box!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  width:100%!important;
  min-width:100%!important;
  height:auto!important;
  min-height:32px!important;
  max-height:none!important;
  margin:0!important;
  padding:8px 10px!important;
  border:0!important;
  border-width:0!important;
  border-style:none!important;
  border-color:transparent!important;
  border-radius:0!important;
  outline-offset:-3px!important;
  box-shadow:none!important;
  -webkit-box-shadow:none!important;
  filter:none!important;
  transform:none!important;
  background:transparent!important;
  background-color:transparent!important;
  background-image:none!important;
  color:inherit!important;
  font:inherit!important;
  font-weight:inherit!important;
  line-height:1.25!important;
  text-align:left!important;
  text-decoration:none!important;
  cursor:pointer!important;
  touch-action:manipulation!important;
  -ms-touch-action:manipulation!important;
  -webkit-tap-highlight-color:transparent!important;
}

html body #standsCard#standsCard#standsCard button.standListSelectButtonV799aq::before,
html body #standsCard#standsCard#standsCard button.standListSelectButtonV799aq::after,
html body #standsCard#standsCard#standsCard button.standListSelectButtonV799ap::before,
html body #standsCard#standsCard#standsCard button.standListSelectButtonV799ap::after{
  content:none!important;
  display:none!important;
}

html body #standsCard#standsCard#standsCard button.standListStandButtonV799aq,
html body #standsCard#standsCard#standsCard button.standListStandButtonV799ap{
  white-space:nowrap!important;
  font-weight:950!important;
}

/* Desktop splitter layouts remain single-line. */
html body #standsCard#standsCard#standsCard button.standListCompanyButtonV799aq,
html body #standsCard#standsCard#standsCard button.standListCompanyButtonV799ap{
  min-width:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  font-weight:800!important;
}

/* Phone and tablet responsive layouts: allow the name to occupy two lines.
   Width is used here rather than a transient body class so full-height and
   50/50 cloned/moved list states receive identical treatment. */
@media (max-width:1100px){
  html body #standsCard#standsCard#standsCard tbody tr{
    height:auto!important;
    min-height:0!important;
  }

  html body #standsCard#standsCard#standsCard td.standListSelectCellV799aq,
  html body #standsCard#standsCard#standsCard td.standListSelectCellV799ap,
  html body #standsCard#standsCard#standsCard td.standListCompanyCell{
    height:auto!important;
    white-space:normal!important;
  }

  html body #standsCard#standsCard#standsCard button.standListSelectButtonV799aq,
  html body #standsCard#standsCard#standsCard button.standListSelectButtonV799ap{
    min-height:44px!important;
  }

  html body #standsCard#standsCard#standsCard button.standListCompanyButtonV799aq,
  html body #standsCard#standsCard#standsCard button.standListCompanyButtonV799ap{
    display:-webkit-box!important;
    height:auto!important;
    min-height:44px!important;
    max-height:calc(2.4em + 16px)!important;
    padding-top:8px!important;
    padding-bottom:8px!important;
    white-space:normal!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    overflow-wrap:anywhere!important;
    word-break:normal!important;
    line-height:1.2!important;
    -webkit-box-orient:vertical!important;
    -webkit-line-clamp:2!important;
  }
}

/* Kiosk can be wider than a tablet viewport, so apply the same two-line rule
   explicitly while preserving its compact Stand no column. */
html body.touchscreenMode #standsCard#standsCard#standsCard tbody tr{
  height:auto!important;
  min-height:0!important;
}
html body.touchscreenMode #standsCard#standsCard#standsCard td.standListSelectCellV799aq,
html body.touchscreenMode #standsCard#standsCard#standsCard td.standListSelectCellV799ap,
html body.touchscreenMode #standsCard#standsCard#standsCard td.standListCompanyCell{
  height:auto!important;
  white-space:normal!important;
}
html body.touchscreenMode #standsCard#standsCard#standsCard button.standListSelectButtonV799aq,
html body.touchscreenMode #standsCard#standsCard#standsCard button.standListSelectButtonV799ap{
  min-height:48px!important;
}
html body.touchscreenMode #standsCard#standsCard#standsCard button.standListCompanyButtonV799aq,
html body.touchscreenMode #standsCard#standsCard#standsCard button.standListCompanyButtonV799ap{
  display:-webkit-box!important;
  height:auto!important;
  min-height:48px!important;
  max-height:calc(2.4em + 16px)!important;
  padding-top:8px!important;
  padding-bottom:8px!important;
  white-space:normal!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  overflow-wrap:anywhere!important;
  word-break:normal!important;
  line-height:1.2!important;
  -webkit-box-orient:vertical!important;
  -webkit-line-clamp:2!important;
}

/* Selected/pending state remains a single full-width row highlight, including
   Public's separate favourite-star cell. */
html body #standsCard#standsCard#standsCard tbody tr.rowSel > td,
html body #standsCard#standsCard#standsCard tbody tr.rowBulkSel > td,
html body #standsCard#standsCard#standsCard tbody tr.rowPendingOverviewV799i > td,
html body #standsCard#standsCard#standsCard tbody tr.rowPendingPressV799n > td{
  background:color-mix(in srgb,var(--accentText) 14%,white)!important;
}
html body #standsCard#standsCard#standsCard tbody tr.rowSel button.standListSelectButtonV799aq,
html body #standsCard#standsCard#standsCard tbody tr.rowBulkSel button.standListSelectButtonV799aq,
html body #standsCard#standsCard#standsCard tbody tr.rowPendingOverviewV799i button.standListSelectButtonV799aq,
html body #standsCard#standsCard#standsCard tbody tr.rowPendingPressV799n button.standListSelectButtonV799aq,
html body #standsCard#standsCard#standsCard tbody tr.rowSel button.standListSelectButtonV799ap,
html body #standsCard#standsCard#standsCard tbody tr.rowBulkSel button.standListSelectButtonV799ap,
html body #standsCard#standsCard#standsCard tbody tr.rowPendingOverviewV799i button.standListSelectButtonV799ap,
html body #standsCard#standsCard#standsCard tbody tr.rowPendingPressV799n button.standListSelectButtonV799ap{
  background:transparent!important;
  box-shadow:none!important;
  -webkit-box-shadow:none!important;
}
