/* Stage 13: search/filter controls. Loaded last, without changing form behavior. */
body :is(.ui-filter-bar,.toolbar,.company-search,.my-work-search,.device-search,.work-search,.intake-site-search,.notice-filters){align-items:flex-end;gap:8px}
body :is(.toolbar form.search,.company-search,.my-work-search,.device-search,.work-search,.intake-site-search){display:flex;min-width:0}
body :is(.toolbar form.search,.company-search){gap:8px}
body :is(.toolbar,.company-search,.my-work-search,.ledger-filters,.visit-filters,.audit-search,.organization-filters,.history-filters,.notice-filters) label{margin:0;min-width:0;gap:8px}
body :is(.toolbar,.company-search,.my-work-search,.ledger-filters,.visit-filters,.audit-search,.organization-filters,.history-filters,.notice-filters,.device-search,.work-search,.intake-site-search) :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select){min-height:var(--eum-control-height);height:var(--eum-control-height);padding:8px 12px;border-radius:var(--eum-control-radius);font-size:var(--eum-font-control);line-height:1.5;min-width:0;margin:0}
body :is(.toolbar,.company-search,.my-work-search,.ledger-filters,.visit-filters,.audit-search,.organization-filters,.history-filters,.notice-filters,.device-search,.work-search,.intake-site-search) .btn{min-height:var(--eum-control-height);padding:8px 14px;border-radius:var(--eum-control-radius);font-size:var(--eum-font-control);line-height:1.5;margin:0;flex-shrink:0}
body :is(.ledger-filters,.visit-filters,.audit-search,.organization-filters,.history-filters){align-items:end}
body :is(.ledger-filters,.visit-filters,.audit-search,.organization-filters,.history-filters)>.actions{align-self:end;margin:0;gap:8px;flex-wrap:wrap}
body .toolbar.ui-filter-bar{display:grid;grid-template-columns:auto minmax(150px,190px) minmax(300px,1fr);align-items:end;gap:16px}
body .ui-filter-bar .tabs{align-items:end;align-self:end;margin:0}
body .ui-filter-bar label.inquiry-extra{flex-direction:column;align-items:stretch;font-size:12px;color:var(--eum-muted)}
body .ui-filter-bar form.search{width:100%;align-items:flex-end;min-width:0}
body .ui-filter-bar #search.search .list-search-label{min-width:0;flex:1}
body .company-search .list-search-label{flex:1;min-width:0}
body :is(.toolbar form.search,.company-search,.device-search,.work-search,.intake-site-search)>input{flex:1;min-width:0;width:auto}
body .notice-filter-control{align-items:center}
body .visit-filters .visit-checkbox{align-self:end;min-height:var(--eum-control-height);margin:0!important}
@media(max-width:1199px){
 body .toolbar.ui-filter-bar{grid-template-columns:minmax(0,1fr) minmax(150px,190px)}
 body .ui-filter-bar form.search{grid-column:1/-1}
 body .my-work-search{flex-wrap:wrap}
}
@media(max-width:767px){
 body .toolbar.ui-filter-bar{grid-template-columns:minmax(0,1fr);gap:12px}
 body .ui-filter-bar form.search{grid-column:auto}
 body :is(.toolbar form.search,.company-search,.device-search,.work-search,.intake-site-search){flex-wrap:wrap;width:100%}
 body :is(.toolbar form.search,.company-search,.device-search,.work-search,.intake-site-search)>input,
 body :is(.ui-filter-bar #search.search,.company-search)>.list-search-label{flex:1 1 100%;min-width:0;width:100%}
 body .my-work-search>label{flex:1 1 100%;width:100%}
 body :is(.toolbar,.company-search,.my-work-search,.ledger-filters,.visit-filters,.audit-search,.organization-filters,.history-filters,.notice-filters,.device-search,.work-search,.intake-site-search) :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select){height:var(--eum-touch-height);min-height:var(--eum-touch-height);font-size:16px}
 body :is(.toolbar,.company-search,.my-work-search,.ledger-filters,.visit-filters,.audit-search,.organization-filters,.history-filters,.notice-filters,.device-search,.work-search,.intake-site-search) .btn{min-height:var(--eum-touch-height);min-width:44px;flex:0 0 auto}
 body .visit-filters .visit-checkbox{min-height:var(--eum-touch-height)}
 body .notice-filters{flex-wrap:wrap}
 body .notice-filter-control{flex-direction:column;align-items:stretch;flex:1;min-width:120px}
}
@media(max-width:479px){
 body :is(.visit-filters,.audit-search,.organization-filters){grid-template-columns:minmax(0,1fr)}
}
