/* Resident search controls only. No staff, secretary, admin or lookup styling. */
@layer gentri-refinement {
  @media screen {
    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app:not(.bims-admin-shell):not(.staff-walkin-intake) :is(#citizen-home-search-form,#citizen-route-search-form,#citizen-recovery-search-control,#citizen-notifications-search-control) {
      position: relative !important;
      display: flex !important;
      align-items: stretch !important;
      gap: 0 !important;
      width: 100% !important;
      min-width: 0 !important;
      min-height: 50px !important;
      height: auto !important;
      padding: 0 !important;
      border: 1px solid #bfaed6 !important;
      border-radius: 12px !important;
      background: var(--native-surface,#fff) !important;
      overflow: hidden !important;
      box-sizing: border-box !important;
      box-shadow: none !important;
    }
    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app:not(.bims-admin-shell):not(.staff-walkin-intake) :is(#citizen-home-search-form,#citizen-route-search-form,#citizen-recovery-search-control,#citizen-notifications-search-control):focus-within {
      border-color: #6d28d9 !important;
      outline: 3px solid #e8ddfa !important;
      outline-offset: 2px !important;
    }
    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app:not(.bims-admin-shell):not(.staff-walkin-intake) :is(#citizen-home-search-form,#citizen-route-search-form,#citizen-recovery-search-control,#citizen-notifications-search-control)>:is(#citizen-home-city-search,#citizen-route-search,#citizen-recovery-query,#citizen-notifications-query)[type=search] {
      position: static !important;
      flex: 1 1 0 !important;
      width: 0 !important;
      min-width: 0 !important;
      max-width: none !important;
      min-height: 48px !important;
      height: auto !important;
      margin: 0 !important;
      padding: 11px 13px !important;
      border: 0 !important;
      border-radius: 0 !important;
      background: transparent !important;
      color: var(--native-on-surface,#25143d) !important;
      font: inherit !important;
      font-size: 16px !important;
      line-height: 1.5 !important;
      box-shadow: none !important;
      outline: 0 !important;
      box-sizing: border-box !important;
    }
    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app:not(.bims-admin-shell):not(.staff-walkin-intake) :is(#citizen-home-search-form,#citizen-route-search-form,#citizen-recovery-search-control,#citizen-notifications-search-control)>button[type=submit] {
      position: static !important;
      display: inline-flex !important;
      flex: 0 0 auto !important;
      align-items: center !important;
      justify-content: center !important;
      gap: 8px !important;
      width: auto !important;
      min-width: 92px !important;
      min-height: 48px !important;
      height: auto !important;
      margin: 0 !important;
      padding: 10px 15px !important;
      border: 0 !important;
      border-radius: 0 !important;
      background: #6d28d9 !important;
      color: #fff !important;
      font: inherit !important;
      font-size: 14px !important;
      font-weight: 650 !important;
      line-height: 1.35 !important;
      white-space: nowrap !important;
      box-shadow: none !important;
      transform: none !important;
      box-sizing: border-box !important;
    }
    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app:not(.bims-admin-shell):not(.staff-walkin-intake) :is(#citizen-home-search-form,#citizen-route-search-form,#citizen-recovery-search-control,#citizen-notifications-search-control)>button[type=submit]:hover { background: #5b21b6 !important; }
    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app:not(.bims-admin-shell):not(.staff-walkin-intake) :is(#citizen-home-search-form,#citizen-route-search-form,#citizen-recovery-search-control,#citizen-notifications-search-control)>button[type=submit]:focus-visible { outline: 3px solid #fff !important; outline-offset: -5px !important; }
    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app:not(.bims-admin-shell):not(.staff-walkin-intake) [data-citizen-search-control]>button :is(svg,.bpw-icon) { flex: none !important; width: 18px !important; height: 18px !important; color: inherit !important; }
    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app:not(.bims-admin-shell):not(.staff-walkin-intake) .citizen-history-search { display: block !important; }
    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app:not(.bims-admin-shell):not(.staff-walkin-intake) .citizen-history-search>label { display: block !important; margin-bottom: 8px !important; }
    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app:not(.bims-admin-shell):not(.staff-walkin-intake) .citizen-notifications-search>.citizen-search-field { flex: 1 1 280px; min-width: 0; }
    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app:not(.bims-admin-shell):not(.staff-walkin-intake) .citizen-search-field>label { margin-bottom: 6px; }
    html:root[data-bims-theme][data-citizen-theme=dark] body.public-service-body.citizen-native-app:not(.bims-admin-shell):not(.staff-walkin-intake) :is(#citizen-home-search-form,#citizen-route-search-form,#citizen-recovery-search-control,#citizen-notifications-search-control) { border-color: var(--native-outline,#bfaed6) !important; }
  }
}


/* Resident pagers use the same single-row control without staff selectors. */
body:has([data-citizen-native-shell]):not(.staff-walkin-intake):not(.bims-admin-shell) .citizen-pagination{display:flex;flex-wrap:nowrap;align-items:center;justify-content:center;gap:4px;max-width:100%;margin:20px 0 8px;padding:0;border:0;background:transparent;box-shadow:none}
body:has([data-citizen-native-shell]):not(.staff-walkin-intake):not(.bims-admin-shell) .citizen-pagination :is(.citizen-pagination__direction,.citizen-pagination__number){display:inline-flex;flex:0 0 auto;box-sizing:border-box;align-items:center;justify-content:center;width:44px;min-width:44px;height:44px;min-height:44px;margin:0;padding:6px 2px;border:1px solid #ddd2ed;border-radius:9px;background:#fff;color:#4c1d95;font-size:13px;line-height:1.2;font-weight:600;text-decoration:none;white-space:nowrap;box-shadow:none}
body:has([data-citizen-native-shell]):not(.staff-walkin-intake):not(.bims-admin-shell) .citizen-pagination .is-current{border-color:#6d28d9;background:#6d28d9;color:#fff}
body:has([data-citizen-native-shell]):not(.staff-walkin-intake):not(.bims-admin-shell) .citizen-pagination .is-disabled{opacity:.5;cursor:default}
body:has([data-citizen-native-shell]):not(.staff-walkin-intake):not(.bims-admin-shell) .citizen-pagination svg{width:18px;height:18px;flex:none}
body:has([data-citizen-native-shell]):not(.staff-walkin-intake):not(.bims-admin-shell) .citizen-pagination a:hover{border-color:#6d28d9;background:#f3edff}
body:has([data-citizen-native-shell]):not(.staff-walkin-intake):not(.bims-admin-shell) .citizen-pagination a:focus-visible{outline:2px solid #6d28d9;outline-offset:2px}

body:has([data-citizen-native-shell]):not(.staff-walkin-intake):not(.bims-admin-shell) .citizen-pagination svg path{fill:none!important;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

@layer gentri-refinement{html:root[data-bims-theme][data-citizen-theme] body:has([data-citizen-native-shell]):not(.staff-walkin-intake):not(.bims-admin-shell) .citizen-pagination a{color:#4c1d95!important}}
