@media screen and (max-width: 768px) {
  
  body {
    padding: 0 5px;
    margin: 0;
  }

  #search, 
  #form, 
  footer {
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
    margin-left: auto;
    margin-right: auto;
  }

  #search form {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  
  #search-field,
  #form input[type="text"], 
  #form textarea, 
  #form select {
    box-sizing: border-box;
    width: 100% !important;
  }
  
  #entries {
    width: 100% !important;
    margin: 15px auto 0 auto;
    table-layout: auto;
  }

  .col-id, 
  .col-ts {
    display: none !important;
  }

  .col-msg, 
  .col-rep {
    min-width: 0 !important; 
    max-width: none !important;
    word-wrap: break-word;
  }

  .col-st {
    width: auto !important;
    white-space: normal !important; 
  }

  #entries th,
  #entries td {
    padding: 6px !important;
    font-size: 0.9em;
  }

  #entries td h3 {
    margin-bottom: 5px;
  }

  footer ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0;
    margin: 0;
  }

  footer li {
    float: none;
    text-align: center;
    border-left: 1px solid !important;
    border-top: 1px solid !important;
    margin-top: -1px;
  }

  footer li:first-child {
    border-left: 1px solid !important;
  }

  #copyright {
    padding: 0 10px;
    line-height: 1.6;
  }
}