/* Keep wide data inside its own region; never hide page overflow. */
.app-content, .app-content section, .table-region { min-width: 0; }
.app-content { overflow-wrap: anywhere; }
.app-content input, .app-content select, .app-content textarea { max-width: 100%; }
.table-region { max-width: 100%; overflow-x: auto; }
.responsive-table { font-variant-numeric: tabular-nums; }
@media (max-width: 639px) {
  .page-heading { flex-direction: column; align-items: stretch; gap: 1rem; }
  .page-heading > .flex { flex-wrap: wrap; }
  .responsive-table { display: block; overflow: visible; border-radius: 0; }
  .responsive-table thead { display: none; }
  .responsive-table tbody { display: block; }
  .responsive-table tr { display: block; padding: .75rem 1rem; border-top-width: 1px; }
  .responsive-table td { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: .75rem; padding: .5rem 0; text-align: left; overflow-wrap: anywhere; }
  .responsive-table td::before { content: attr(data-label); font-weight: 600; }
  .responsive-table td[colspan] { display: block; }
  .responsive-table td[colspan]::before { content: none; }
  .responsive-table td > * { min-width: 0; }
  .responsive-table a { min-height: 44px; display: inline-flex; align-items: center; }
  .pilot-filters > div, .pilot-filters > button { width: 100%; min-width: 0; }
  .pilot-filters input, .pilot-filters select { width: 100%; min-width: 0; }
}

.password-toggle { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; }
.error-dialog { width: min(90vw, 32rem); margin: auto; max-height: 80vh; overflow: auto; }
.error-dialog::backdrop { background: rgb(0 0 0 / 40%); }

