/* Show every guest field without horizontal scrolling on phones. */
@media (max-width: 720px) {
  #boardScreen .table-wrap { overflow-x: hidden; }
  #boardScreen .table { display: block; width: 100%; min-width: 0; }
  #boardScreen .table thead { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
  #boardScreen .table tbody { display: grid; gap: 8px; padding: 8px; }
  #boardScreen .table tbody tr[data-id] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 8px;
    min-width: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
  }
  #boardScreen .table tbody tr[data-id] > td {
    display: grid;
    align-content: start;
    gap: 3px;
    min-width: 0;
    height: auto;
    padding: 2px 0;
    border: 0;
  }
  #boardScreen .table tbody tr[data-id] > td::before {
    content: attr(data-mobile-label);
    min-height: 13px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: .03em;
    text-transform: uppercase;
  }
  #boardScreen .table tbody tr[data-id] > td.guest-select-cell {
    display: flex !important;
    grid-column: 1 / -1;
    width: auto;
    min-width: 0;
    align-items: center;
    padding: 0 0 5px;
  }
  #boardScreen .table tbody tr[data-id] > td.guest-select-cell::before,
  #boardScreen .table tbody tr[data-id] > td:last-child::before { display: none; }
  #boardScreen .table tbody tr[data-id] > td:last-child { grid-column: 1 / -1; }
  #boardScreen .table tbody tr[data-id] > td.hidden { display: none !important; }
  #boardScreen .table tbody tr[data-id] :is(input:not([type=checkbox]),select) {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 32px;
    padding: 5px 6px;
    font-size: 11px;
  }
  #boardScreen .table tbody tr[data-id] .tag-dropdown { min-width: 0; }
  #boardScreen .table tbody tr[data-id] .tag-dropdown > summary { min-height: 32px; padding: 5px 7px; }
  #boardScreen .guest-mobile-tag-chips { display: flex; flex-wrap: wrap; gap: 4px; min-width: 0; }
  #boardScreen .guest-mobile-tag-chip {
    max-width: 100%;
    padding: 3px 6px;
    border-radius: 999px;
    background: var(--sage);
    color: var(--green);
    font-size: 10px;
    line-height: 1.3;
    overflow-wrap: anywhere;
  }
  #boardScreen .guest-mobile-tag-extra { background: #f2ede5; color: #71583b; font-weight: 700; }
  #boardScreen .table tbody tr.empty { display: block; }
  #boardScreen .table tbody tr.empty td { display: block; width: 100%; }
}
@media (min-width: 721px) {
  #boardScreen .guest-mobile-tag-chips { display: none; }
}
