/* Shared table controls: never force horizontal scrolling on narrow screens. */
@media (max-width: 700px) {
  .simpletable_wrapper {
    overflow-x: visible;
  }

  .simpletable_wrapper .simpletable_top {
    align-items: center;
    flex-direction: column;
    gap: 0.55rem;
  }

  .simpletable_wrapper .simpletable_length,
  .simpletable_wrapper .simpletable_filter {
    flex: 0 1 auto;
    max-width: 340px;
    width: 100%;
  }

  .simpletable_wrapper .simpletable_length label {
    justify-content: center;
  }

  .simpletable_wrapper .simpletable_filter label {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    justify-content: center;
    width: 100%;
  }

  .simpletable_wrapper .simpletable_filter input {
    min-width: 0;
    width: 100%;
  }
}
