@media screen and (max-width: 800px) {
  /* Fill the full mobile navigation row; keep the main ticket buttons below. */
  #nav { display: flex; align-items: center; flex-wrap: wrap; min-height: 60px; box-sizing: border-box; background: linear-gradient(#dedede, #c6c6c6); }
  #nav > li:has(> a.new), #nav > li:has(> a.status) { display: none !important; }
  #landing_page .sidebar, #landing_page .main-content { width: 100%; float: none; box-sizing: border-box; }
  #landing_page .sidebar { margin-bottom: 20px; }
  #ticketForm > table, #ticketForm > table > tbody, #ticketForm > table > tbody > tr, #ticketForm > table > tbody > tr > td { display: block; width: 100% !important; box-sizing: border-box; }
  #ticketForm > table > tbody > tr > td { padding: 6px 0; }
  #ticketForm input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=submit]):not([type=reset]), #ticketForm select { width: 100%; }
  .form-header { margin-top: 18px; }
  .buttons { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
}
