/* V799ar — keep native quick-tap list controls while restoring the original
   flat table-row appearance. Category controls are intentionally untouched. */

/* V799aq renamed the generated native button classes while retaining the
   V799ap stylesheet. Target both names so cached V799ap markup remains safe. */
#standsCard tbody td.standListSelectCellV799aq,
#standsCard tbody td.standListSelectCellV799ap{
  padding:0!important;
  background-clip:padding-box!important;
}

#standsCard .standListSelectButtonV799aq,
#standsCard .standListSelectButtonV799ap{
  -webkit-appearance:none!important;
  appearance:none!important;
  box-sizing:border-box!important;
  display:flex!important;
  align-items:center!important;
  width:100%!important;
  min-width:100%!important;
  min-height:32px!important;
  margin:0!important;
  padding:8px 10px!important;
  border:0!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-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;
}

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

#standsCard .standListSelectButtonV799aq:focus-visible,
#standsCard .standListSelectButtonV799ap:focus-visible{
  outline:2px solid color-mix(in srgb,var(--accentText) 72%,white)!important;
}

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

/* Desktop keeps its original single-line rows because the list can be widened
   with the splitter. Responsive and kiosk overrides below allow two lines. */
#standsCard .standListCompanyButtonV799aq,
#standsCard .standListCompanyButtonV799ap{
  min-width:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  font-weight:800!important;
}

/* Selection and pending feedback belongs to the whole line, not separate
   cell-shaped controls. This also includes the Public favourite-star cell. */
#standsCard tbody tr.rowSel > td,
#standsCard tbody tr.rowBulkSel > td,
#standsCard tbody tr.rowPendingOverviewV799i > td,
#standsCard tbody tr.rowPendingPressV799n > td{
  background:color-mix(in srgb,var(--accentText) 14%,white)!important;
}

#standsCard tbody tr.rowSel .standListSelectButtonV799aq,
#standsCard tbody tr.rowBulkSel .standListSelectButtonV799aq,
#standsCard tbody tr.rowPendingOverviewV799i .standListSelectButtonV799aq,
#standsCard tbody tr.rowPendingPressV799n .standListSelectButtonV799aq,
#standsCard tbody tr.rowSel .standListSelectButtonV799ap,
#standsCard tbody tr.rowBulkSel .standListSelectButtonV799ap,
#standsCard tbody tr.rowPendingOverviewV799i .standListSelectButtonV799ap,
#standsCard tbody tr.rowPendingPressV799n .standListSelectButtonV799ap{
  background:transparent!important;
  box-shadow:none!important;
}

@supports selector(tr:has(button:active)){
  #standsCard tbody tr:has(.standListSelectButtonV799aq:active) > td,
  #standsCard tbody tr:has(.standListSelectButtonV799ap:active) > td{
    background:color-mix(in srgb,var(--accentText) 9%,white)!important;
  }
}

/* Phone/tablet responsive workspaces: names may use a second line. The desktop
   splitter layout does not carry a responsiveWorkspace class and stays compact. */
body[class*="responsiveWorkspace"] #standsCard .standListCompanyButtonV799aq,
body[class*="responsiveWorkspace"] #standsCard .standListCompanyButtonV799ap,
body.touchscreenMode #standsCard .standListCompanyButtonV799aq,
body.touchscreenMode #standsCard .standListCompanyButtonV799ap{
  display:-webkit-box!important;
  align-items:initial!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;
  max-height:calc(2.4em + 16px)!important;
  -webkit-box-orient:vertical!important;
  -webkit-line-clamp:2!important;
}

body[class*="responsiveWorkspace"] #standsCard .standListSelectButtonV799aq,
body[class*="responsiveWorkspace"] #standsCard .standListSelectButtonV799ap,
body.touchscreenMode #standsCard .standListSelectButtonV799aq,
body.touchscreenMode #standsCard .standListSelectButtonV799ap{
  min-height:48px!important;
}

/* The kiosk only needs a compact stand-number column; the Exhibitor column
   receives the remaining width and can use the shared two-line treatment. */
body.touchscreenMode #standsCard .tableScroll table,
body.touchscreenMode #standsCard .tableScroll > table{
  width:100%!important;
  min-width:100%!important;
  table-layout:fixed!important;
}
body.touchscreenMode #standsCard .tableScroll th:first-child,
body.touchscreenMode #standsCard .tableScroll td:first-child{
  box-sizing:border-box!important;
  width:88px!important;
  min-width:88px!important;
  max-width:88px!important;
}
body.touchscreenMode #standsCard .tableScroll th:nth-child(2),
body.touchscreenMode #standsCard .tableScroll td:nth-child(2){
  width:auto!important;
  min-width:0!important;
  max-width:none!important;
}

/* Keep the Public favourite star compact beside the wrapping name. */
body[class*="responsiveWorkspace"] #standsCard .visitListCell,
body.touchscreenMode #standsCard .visitListCell{
  width:44px!important;
  min-width:44px!important;
  max-width:44px!important;
  padding-left:2px!important;
  padding-right:2px!important;
}
