/*
 * Bootstrap 4's modal sizing (inside Metronic's style.bundle.css) uses `vh`, the page WITHOUT a phone browser's toolbar, so a long
 * modal's bottom edge and its buttons can sit under the toolbar (same class as Quasar's select dialogs, see
 * quasar/shared/asc-ui/src/css/dialog-viewport.scss). `dvh` follows the visible page. A browser that does not know `dvh` drops the
 * declaration and keeps Bootstrap's `vh` rule, so nothing gets worse. Each rule repeats Bootstrap's (same selector, same @media)
 * and must load after the bundle. `.modal-dialog-centered::before` needs nothing: Bootstrap ends it with `height: min-content`, so
 * its `vh` line is only a fallback. tests/Playwright/phone-rules.spec.ts (R2) checks this against the served CSS.
 */
.modal-dialog-scrollable .modal-content {
  max-height: calc(100dvh - 1rem);
}

@media (min-width: 576px) {
  .modal-dialog-scrollable .modal-content {
    max-height: calc(100dvh - 3.5rem);
  }
}

.modal-backdrop {
  height: 100dvh;
}
