/* Prevent horizontal scroll on the whole page from long content/buttons */
body {
  overflow-x: hidden;
}

/* Bigger touch targets on small screens */
@media (max-width: 576px) {
  .btn {
    padding: 0.5rem 0.9rem;
    font-size: 0.95rem;
  }

  .btn-sm {
    padding: 0.35rem 0.6rem;
    font-size: 0.85rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  /* Stack action buttons in table rows instead of cramming side by side */
  td .btn {
    display: inline-block;
    margin-bottom: 4px;
  }
}

/* Search + language switcher in the navbar: full width on mobile instead of squeezed */
@media (max-width: 991.98px) {
  .navbar-collapse form {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    width: 100%;
  }

  .navbar-collapse .form-select {
    width: 100% !important;
  }
}