/* Native guest pages only. Keep osTicket's forms, auth and ticket controls. */
#container {
  width: min(100%, 900px);
}
#header p {
  width: auto;
}
#header #logo img {
  max-width: min(45vw, 260px);
}
#nav {
  height: auto;
  min-height: 26px;
  white-space: normal;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
#nav li {
  float: none;
}
#nav li a {
  display: inline-block;
  padding-top: 6px;
  padding-bottom: 6px;
}
#content {
  overflow-wrap: anywhere;
}
#content table {
  max-width: 100%;
}
#ticketForm > table,
#clientLogin table {
  width: 100%;
}
#ticketForm input:not([type='checkbox']):not([type='radio']),
#ticketForm select,
#ticketForm textarea,
.redactor-box,
.select2-container {
  max-width: 100%;
  box-sizing: border-box;
}
#ticketForm .redactor-toolbar {
  white-space: normal;
}
#ticketForm input,
#ticketForm select,
#ticketForm .redactor-editor {
  font-size: 16px;
}
#ticketForm .buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
#ticketForm input[type='submit'],
#ticketForm input[type='reset'],
#ticketForm input[type='button'] {
  min-height: 40px;
}
a:focus-visible,
input:focus-visible,
select:focus-visible,
button:focus-visible {
  outline: 3px solid #2464a5;
  outline-offset: 3px;
}
@media (max-width: 640px) {
  #header {
    padding: 0 12px;
  }
  #nav {
    margin: 0 12px;
    padding: 4px;
  }
  #content {
    padding: 16px 12px;
  }
  #ticketForm table,
  #ticketForm tbody,
  #ticketForm tr,
  #ticketForm td {
    display: block;
    width: 100% !important;
    box-sizing: border-box;
  }
  #ticketForm input[type='email'],
  #ticketForm input[type='text'],
  #ticketForm select {
    width: 100%;
  }
  #ticketForm .filedrop {
    width: auto;
    min-width: 0;
  }
  #ticketInfo,
  #ticketThread {
    width: 100%;
  }
  #ticketInfo td {
    overflow-wrap: anywhere;
  }
  .thread-body img {
    max-width: 100%;
    height: auto;
  }
  #landing_page .sidebar,
  #landing_page .main-content {
    float: none;
    width: auto;
  }
  #clientLogin {
    display: block;
    width: auto;
  }
  #clientLogin input {
    max-width: 100%;
    box-sizing: border-box;
  }
  #reply {
    width: 100%;
  }
}

@media (max-width: 640px) {
  #clientLogin > div,
  #clientLogin .login-box,
  #clientLogin .instructions {
    display: block;
    width: auto;
    padding: 0;
  }
}
@media (max-width: 640px) {
  #content .main-content,
  #content .sidebar {
    float: none;
    width: 100%;
    box-sizing: border-box;
  }
  #content .sidebar {
    margin-bottom: 20px;
  }
  #content .sidebar .button {
    max-width: 100%;
    box-sizing: border-box;
  }
}
