/* Turnierfix 1.10.0 preview: contain native iOS Safari date/time controls inside their grid tracks.
   Scope is intentionally limited to tournament create/edit forms. Native pickers remain intact. */
@media (max-width:700px){
  #newTournament>.grid>div:has(>input[type="date"]),
  #newTournament>.grid>div:has(>input[type="time"]),
  #tournamentList [id^="edit_"]>.grid>div:has(>input[type="date"]),
  #tournamentList [id^="edit_"]>.grid>div:has(>input[type="time"]){
    min-width:0;
    max-width:100%;
    overflow:hidden;
  }

  #newTournament>.grid input[type="date"],
  #newTournament>.grid input[type="time"],
  #tournamentList [id^="edit_"]>.grid input[type="date"],
  #tournamentList [id^="edit_"]>.grid input[type="time"]{
    display:block;
    box-sizing:border-box;
    inline-size:100%;
    width:100%;
    min-inline-size:0;
    min-width:0;
    max-inline-size:100%;
    max-width:100%;
    -webkit-appearance:none;
    appearance:none;
  }

  #newTournament>.grid input[type="date"]::-webkit-date-and-time-value,
  #newTournament>.grid input[type="time"]::-webkit-date-and-time-value,
  #tournamentList [id^="edit_"]>.grid input[type="date"]::-webkit-date-and-time-value,
  #tournamentList [id^="edit_"]>.grid input[type="time"]::-webkit-date-and-time-value{
    min-width:0;
    text-align:center;
  }
}
