/* Tiny Media: phone and tablet layout for osTicket client pages */
@media (max-width: 880px) {
  html, body { overflow-x: hidden; }
  #container { width: auto !important; max-width: 100%; margin: 0; box-shadow: none; }
  #header { height: auto; padding: 10px 14px; display: flex; flex-direction: column-reverse; align-items: flex-start; }
  #header .pull-right { float: none !important; width: 100%; }
  #header p { width: auto !important; padding: 6px 0 0; font-size: 13px; }
  #logo { height: auto; display: block; }
  #header #logo img { max-width: 70vw; max-height: 56px; }
  .valign-helper { display: none; }
  #nav { margin: 0; height: auto; white-space: normal; padding: 6px 8px; display: flex; flex-wrap: wrap; gap: 4px; }
  #nav li { display: block; }
  #nav li a { margin-left: 0; height: 32px; line-height: 32px; font-size: 14px; }
  #content { margin: 0 14px; padding: 14px 0; min-height: 0; }
  .main-content, .sidebar, #landing_page #new_ticket, #landing_page #check_status,
  #faq, .search-form, #kb-search, #ticketForm, #clientLogin, #reply,
  .thread-body, .thread-entry, .faq-content { width: auto !important; max-width: 100% !important; float: none !important; }
  .main-content { margin: 0 !important; }
  .sidebar { margin-top: 20px; }
  img, video, iframe { max-width: 100% !important; height: auto; }
  table { max-width: 100%; }
  #ticketForm > table, #ticketForm table, #clientLogin table, form table { width: 100% !important; }
  #ticketForm > table td, form table td, form table th { display: block; width: auto !important; padding: 4px 0 !important; }
  input[type=text], input[type=email], input[type=password], input[type=tel], select, textarea,
  #clientLogin div textarea, #reply textarea, .redactor-box, .redactor-editor {
    width: 100% !important; max-width: 100% !important; box-sizing: border-box; font-size: 16px; }
  input[type=submit], input[type=button], input[type=reset], .button, button { font-size: 16px; padding: 8px 14px; margin: 4px 4px 4px 0; }
  #kb-search div, #kb-search #cid, #kb-search #topic-id { width: 100% !important; float: none !important; display: block; margin: 4px 0; }
  table.list, #ticketTable { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  #footer { padding: 10px 14px 16px; }
  #nav { background: #f3f3f3 !important; border-top: 1px solid #ddd; box-shadow: none; }
  .row { margin: 0 !important; }
  .span8, .span4, .span12, .span6 { width: auto !important; float: none !important; margin: 0 !important; display: block; }
  .span4.pull-right { margin-top: 20px !important; }
  .searchbar input { width: 100% !important; }
  #clientLogin { padding: 12px !important; background-position: 95% 90% !important; }
  #clientLogin > div[style*="table-row"], #clientLogin div[style*="table-cell"] { display: block !important; padding: 8px 0 !important; }
  #clientLogin .login-box { width: auto !important; float: none !important; padding: 0 !important; border: 0 !important; box-shadow: none !important; }
  #clientLogin input[type=text], #clientLogin input[type=password] { width: 100% !important; height: 40px; margin: 4px 0; }
  .article-title, .faq-content { float: none !important; }
}
