/* Students Home - Registrations layout (organiser). Design only: no ids, classes, scripts or logic changed.

   ALL SCREENS: the status messages ("Loading registrations...", "No registrations yet.",
   "Could not load registrations. Please refresh the page.") now wrap inside the box in the page's
   normal font and a calm grey, instead of running past the edge in bold green on one line. */
#regist207or19 tr:not(#regist207or20) td.sh-registration-message{
  white-space:normal!important;overflow-wrap:anywhere;word-break:normal;
  font-family:"DM Sans",system-ui,sans-serif!important;font-weight:500!important;font-size:14px;line-height:1.5;
  color:#718078!important;text-align:center!important;padding:22px 16px!important}

/* PHONES (700px and under).
   The 4-column table forced a sideways slide; each registration is now a tidy card:
   guest + status on top, then event, then ticket. Desktop is untouched.
   No ids, classes, scripts or logic are changed. */
@media (max-width:700px){
  #regist207or17{overflow-x:visible!important;background:transparent!important;border:none!important;box-shadow:none!important}
  #regist207or18{display:block!important;width:100%!important;min-width:0!important;border:none!important}
  #regist207or19{display:block!important;width:100%!important}
  #regist207or20{display:none!important}

  #regist207or19>tr:not(#regist207or20){
    display:grid!important;grid-template-columns:minmax(0,1fr) auto;gap:6px 12px;align-items:center;
    box-sizing:border-box;margin:0 0 12px;padding:14px;background:#fff;
    border:1px solid #E5E9E3;border-radius:14px;box-shadow:0 2px 8px rgba(23,77,57,.05)}
  #regist207or19>tr:not(#regist207or20)>td{display:block!important;padding:0!important;border:none!important;background:transparent!important;min-width:0;overflow-wrap:anywhere}
  #regist207or19>tr:not(#regist207or20)>td:nth-child(1){grid-column:1;grid-row:1;font-weight:700;font-size:16px;line-height:1.35}
  #regist207or19>tr:not(#regist207or20)>td:nth-child(2){grid-column:1/-1;grid-row:2;font-size:14px;line-height:1.4;color:#202923}
  #regist207or19>tr:not(#regist207or20)>td:nth-child(3){grid-column:1/-1;grid-row:3;font-size:13px;color:#718078}
  #regist207or19>tr:not(#regist207or20)>td:nth-child(4){grid-column:2;grid-row:1;justify-self:end;text-align:right}
  /* loading / empty message row: full width */
  #regist207or19>tr>td.sh-registration-message{grid-column:1/-1!important;grid-row:auto!important;text-align:center;justify-self:stretch}
}
