/* Mobile-only compatibility for original Superio + NYSARON directory. */
@media (max-width: 1199px) {
  /* Anchor dropdowns to the full header, not to a narrow icon. */
  #apus-header-mobile > .container,
  #apus-header-mobile > .container > .row,
  #apus-header-mobile > .container > .row > .flex-middle,
  #apus-header-mobile > .container > .row > .flex-middle > .col-xs-6,
  #apus-header-mobile > .container > .row > .flex-middle > .col-xs-6 > .flex-middle,
  #apus-header-mobile .message-top,
  #apus-header-mobile .top-wrapper-menu { position: static; }
  #apus-header-mobile .message-top .notifications-wrapper,
  #apus-header-mobile .top-wrapper-menu .inner-top-menu {
    left: auto; right: 12px; width: min(330px, calc(100% - 24px));
    min-width: 0; max-width: calc(100% - 24px); box-sizing: border-box;
    max-height: 65vh; max-height: 65dvh; overflow-y: auto;
    overflow-wrap: anywhere; overscroll-behavior: contain; z-index: 20;
  }
  #apus-header-mobile .logo img, #apus-mobile-menu .logo img { max-width: 100%; height: auto; }
  #apus-header-mobile .logo-theme img { max-width: min(120px, 100%); }
  #apus-header-mobile .btn-showmenu, #apus-header-mobile .btn-menu-account,
  #apus-header-mobile .message-notification, #apus-mobile-menu .btn-toggle-canvas {
    min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center;
  }
  #apus-header-mobile .btn-showmenu { align-items: center; margin-inline-start: 4px; }
  #apus-header-mobile .message-top { margin-inline-start: 4px; }
  #apus-mobile-menu { height: 100vh; height: 100dvh; overflow-y: auto; overscroll-behavior: contain; }
  #apus-mobile-menu .apus-offcanvas-body { min-width: 0; width: 100%; }
  #apus-mobile-menu .navbar a, #apus-mobile-menu .header-mobile-bottom .btn {
    white-space: normal; overflow-wrap: anywhere; }
  #apus-mobile-menu .offcanvas-content { height: auto; min-height: 0; }
  #apus-header-mobile .inner-top-menu a { white-space: normal; overflow-wrap: anywhere; }
}
@media (max-width: 767px) {
  .filter-listing-form .form-group, .filter-listing-form .form-group-inner,
  .filter-listing-form .wrapper-submit, .filter-listing-form .select2-container { min-width: 0; max-width: 100%; }
  .filter-listing-form .form-control, .filter-listing-form .select2-search__field { font-size: 16px; max-width: 100%; }
  .filter-listing-form .btn-submit, .filter-listing-form .advance-search-btn,
  .widget-job-search-form .btn { white-space: normal; overflow-wrap: anywhere; height: auto; min-height: 44px; }
  .filter-listing-form.horizontal .advance-search-wrapper { position: static; box-sizing: border-box; max-width: 100%; padding: 12px; }
  .offcanvas-filter-sidebar { height: 100vh; height: 100dvh; }
  .widget-job-search-form .widget-title, .widget-job-search-form .des { overflow-wrap: anywhere; }
  .nys-site .nys-header-actions { min-width: 0; }
  .nys-site .nys-header-actions .nys-btn { display: inline-flex; white-space: normal; }
  .nys-site .nys-nav a, .nys-site .nys-btn { min-height: 44px; }
  .nys-site .nys-nav a { display: inline-flex; align-items: center; }
  .nys-site .nys-card, .nys-site .nys-filters > *, .nys-site .nys-search > *, .nys-site .nys-form > * { min-width: 0; }
  .nys-site input:not([type=checkbox]):not([type=radio]), .nys-site select, .nys-site textarea { font-size: 16px; max-width: 100%; }
  .nys-site .nys-btn, .nys-site .nys-card h3, .nys-site .nys-card p { overflow-wrap: anywhere; white-space: normal; }
  .nys-site .nys-layout-records .nys-cards { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 380px) {
  #apus-header-mobile > .container > .row > .flex-middle > .col-xs-6 { padding-inline: 8px; }
  .nys-site .nys-search { flex-wrap: wrap; }
  .nys-site .nys-search .nys-btn { width: 100%; }
}
