.sidebar-search { display:flex; align-items:center; justify-content:space-between; gap:8px; width:100%; padding:10px 12px; margin:0 0 20px; color:#626d58; background:#fff; font-weight:400; }
.sidebar-search > span { display:flex; align-items:center; gap:8px; }
.sidebar-search svg { width:17px; height:17px; }
.sidebar-search kbd,.global-search-dialog kbd { font-family:inherit; font-size:10px; color:#738069; border:1px solid #dfe4d7; border-radius:4px; padding:2px 4px; white-space:nowrap; }
dialog.global-search-dialog { width:min(720px,calc(100vw - 32px)); max-width:none; max-height:85dvh; padding:0; border:1px solid #dfe5d9; border-radius:13px; box-shadow:0 20px 70px #17200f40; overflow:hidden; color:#30372b; }
html[data-development="true"] dialog.global-search-dialog { border:1px solid #dfe5d9; max-height:85dvh; }
.global-search-dialog::backdrop { background:#26311f66; }
.global-search-head { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:17px 20px 12px; }
.global-search-head h2 { margin:0; font-size:17px; }
.global-search-head button { flex-shrink:0; }
.global-search-input { display:flex; align-items:center; gap:10px; margin:0 20px; padding:0 12px; border:1px solid #c9d3be; border-radius:7px; background:#fff; }
.global-search-input:focus-within { outline:2px solid #6b8a46; outline-offset:1px; }
.global-search-input > svg { width:19px; height:19px; color:#68765e; flex-shrink:0; }
.global-search-input input { margin:0; border:0; outline:none; box-shadow:none; padding:12px 0; min-width:0; flex:1; font-size:15px; width:100%; }
.global-search-input input:focus { outline:none; box-shadow:none; }
.global-search-hint { font-size:12px; color:#6b7562; margin:9px 20px 13px; line-height:1.4; }
#global-search-results { max-height:calc(85dvh - 190px); overflow:auto; overscroll-behavior:contain; border-top:1px solid #e0e5da; }
#global-search-results h3 { margin:0; padding:14px 20px 7px; display:flex; gap:8px; align-items:center; color:#65715b; text-transform:uppercase; font-size:11px; letter-spacing:.6px; font-weight:500; }
#global-search-results h3 > span { border-radius:10px; padding:2px 6px; background:#eff2eb; font-size:10px; }
#global-search-results button[data-search-result] { display:flex; align-items:center; gap:13px; width:100%; padding:13px 20px; border:0; border-radius:0; background:#fff; text-align:left; font-weight:400; color:inherit; }
#global-search-results button.selected { background:#f0f5e9; }
.global-search-icon { display:flex; align-items:center; justify-content:center; width:32px; height:32px; flex:0 0 32px; border-radius:6px; background:#eff2eb; color:#6e7b62; }
.global-search-icon svg { width:19px; height:19px; }
.global-search-copy { flex:1; min-width:0; }
.global-search-copy strong { display:block; font-size:13px; font-weight:600; overflow-wrap:anywhere; }
.global-search-copy small { display:block; font-size:12px; color:#6b7562; margin-top:4px; line-height:1.4; overflow-wrap:anywhere; }
.global-search-arrow { color:#6c785f; }
.global-search-footer { display:flex; justify-content:space-between; gap:12px; padding:10px 20px; border-top:1px solid #e0e5da; font-size:11px; color:#727c68; }
.global-search-empty { padding:28px 20px; margin:0; color:#69745f; font-size:13px; }
.global-search-more { margin:2px 20px 10px; font-size:11px; color:#6d775f; }
@media(max-width:550px) {
 #global-search-results button[data-search-result] { flex-wrap:wrap; gap:8px; padding:12px 16px; }
 .global-search-copy { flex-basis:calc(100% - 52px); }
 #global-search-results .badge { margin-left:40px; }
 .global-search-arrow { margin-left:auto; }
 .global-search-head { padding:14px 16px 10px; }
 .global-search-input { margin:0 16px; }
 .global-search-hint { margin:9px 16px 12px; }
 .global-search-footer { padding:10px 16px; flex-wrap:wrap; }
}

dialog.global-search-dialog[open] { display:flex; flex-direction:column; }
.global-search-head,.global-search-input,.global-search-hint,.global-search-footer { flex-shrink:0; }
#global-search-results { min-height:0; flex:0 1 auto; }

#companies-filter.potential-company-filters { display:grid; grid-template-columns:minmax(220px,2fr) minmax(160px,1.25fr) minmax(140px,1fr) minmax(125px,1fr) auto; align-items:end; gap:12px; }
#companies-filter.potential-company-filters > label { min-width:0; }
.potential-companies-table td:first-child { min-width:220px; }
@media(max-width:1100px) { #companies-filter.potential-company-filters { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:550px) { #companies-filter.potential-company-filters { grid-template-columns:1fr; } }

@media(min-width:651px) {
 .sidebar nav { min-height:0; overflow-y:auto; }
 .sidebar > .brand,.sidebar-search,.sidebar footer { flex-shrink:0; }
}
