/* Buscar Cliente uses the same native research panel as lead tracking. */
:root .company-search-workspace{
  display:grid;width:100%;min-width:0;max-width:none;margin:0;
  grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;
  gap:clamp(8px,var(--lead-gap,8px),12px);
}
:root .company-search-workspace>.companies-page{width:100%;min-width:0;max-width:none;margin:0}
:root:not(.layout-editing) .company-search-workspace>.companies-page>.adjustable-card{
  left:0!important;top:0!important;width:100%!important;min-width:0;max-width:100%;
}
.company-search-workspace .companies-page :is(.card,.toolbar,.toolbar-action,.filters,.section-row,.right-tools,.table-wrap){min-width:0;max-width:100%;box-sizing:border-box}
:root .company-search-workspace>.company-browser-card{position:sticky;top:0;align-self:start;min-width:0;width:100%}
:root .company-browser-card>.research-panel{height:var(--research-panel-height,720px);min-height:0}
:root .company-browser-card :is(.desktop-browser-shell,.desktop-research-viewport){min-height:0}
.company-browser-card .research-panel-head{flex-wrap:wrap;gap:10px}
.company-browser-card .research-panel-head>div:first-child{min-width:0}
.company-browser-card .research-panel-head .tiny{overflow-wrap:anywhere}
.company-browser-card .research-mode-switch{flex-wrap:wrap}
.company-search-workspace .companies-page .toolbar{grid-template-columns:minmax(0,1fr)}
.company-search-workspace .companies-page .toolbar-action{flex-wrap:wrap}
.company-search-workspace .companies-page .toolbar-action>button:not(.icon-button){flex:1 1 auto}
.company-search-workspace .companies-page .search-section-head{flex-wrap:wrap}
.company-search-workspace .companies-page .filters{grid-template-columns:repeat(2,minmax(0,1fr))}
.company-search-workspace .companies-page .filters>[hidden]{display:none}
.company-search-workspace .companies-page .right-tools{flex-wrap:wrap}
.company-search-workspace .companies-page .section-row{gap:12px}
.company-search-workspace .companies-page .right-tools{width:100%;justify-content:space-between}
.company-search-workspace .companies-page .sort-field{width:auto;flex:0 1 155px}
.company-search-workspace .companies-page .data-table{display:block;min-width:0;width:100%}
.company-search-workspace .companies-page .data-table thead{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.company-search-workspace .companies-page .data-table tbody{display:grid;padding:0 16px 16px;gap:12px}
.company-search-workspace .companies-page .data-table tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:16px;min-width:0;border:var(--border-width) solid var(--border-soft);border-radius:var(--radius-medium);background:var(--bg-card)}
.company-search-workspace .companies-page .data-table td{display:block;position:static;right:auto;min-width:0;padding:0;border:0;box-shadow:none;background:transparent;overflow-wrap:anywhere}
.company-search-workspace .companies-page .data-table td:is(:first-child,:last-child){grid-column:1/-1;padding:0}
.company-search-workspace .companies-page .data-table td:nth-child(2)::before{content:'Segmento'}
.company-search-workspace .companies-page .data-table td:nth-child(3)::before{content:'Localização'}
.company-search-workspace .companies-page .data-table td:nth-child(4)::before{content:'Funcionários'}
.company-search-workspace .companies-page .data-table td:nth-child(5){grid-column:1/-1;order:1}
.company-search-workspace .companies-page .data-table td:last-child{order:2}
.company-search-workspace .companies-page .data-table td:nth-child(5)::before{content:'Potencial'}
.company-search-workspace .companies-page .data-table td:nth-child(6)::before{content:'Score'}
.company-search-workspace .companies-page .data-table td::before{display:block;margin-bottom:4px;font-size:11px;font-weight:700;color:var(--ink-secondary)}
.company-search-workspace .companies-page .data-table tr:has(.search-empty){display:block;border:0;background:transparent;padding:0}
.company-search-workspace .companies-page .company-cell{min-width:0}
.company-search-workspace .companies-page .company-cell>div:last-child{min-width:0}
.company-search-workspace .companies-page .employee-count{white-space:normal}
.company-search-workspace .companies-page .search-empty{max-width:560px;margin:0 auto}
.company-search-workspace .company-potential-filter{margin-top:12px}
.company-search-workspace .company-potential-filter>.shortcut-label{display:block;margin-bottom:8px}
.company-search-workspace .company-potential-filter .chips{padding:0;gap:7px}
.company-search-workspace .potential-chip{max-width:100%;white-space:normal;text-align:left}
.company-search-workspace .potential-chip>span{min-width:0;overflow-wrap:anywhere}
.company-search-workspace .company-potential-badges{display:flex;flex-wrap:wrap;gap:6px}
.company-search-workspace .commercial-segment-basis{display:block;margin-top:4px;color:var(--ink-secondary);font-size:var(--font-small);line-height:1.4}
:root .company-search-workspace:not(:has(>.company-browser-card)){grid-template-columns:minmax(0,1fr)}
@media(max-width:1100px){
  :root .company-search-workspace{grid-template-columns:minmax(0,1fr)}
  :root .company-search-workspace>.company-browser-card{position:relative;top:auto}
}
@container(max-width:440px){
  .company-search-workspace .companies-page .filters{grid-template-columns:minmax(0,1fr)}
  .company-search-workspace .companies-page .data-table tr{grid-template-columns:minmax(0,1fr)}
}
