/* Seletor de unidades (25/11/2026): botão no lugar do <select> e lista pesquisável. Nada fica cortado: os textos quebram de linha. */
.sel-btn{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;min-height:44px;text-align:left;font:14.5px var(--f-body);color:var(--ink);background:var(--surface);border:1.5px solid var(--line-strong);border-radius:var(--r-s);padding:9px 12px;cursor:pointer}
.sel-btn:hover:not(:disabled){border-color:var(--accent)}
.sel-btn:disabled{opacity:.6;cursor:not-allowed}
.sel-btn.vazio .sel-txt{color:var(--muted)}
.sel-btn .sel-txt{min-width:0;overflow-wrap:anywhere}
.sel-btn .ic{flex:0 0 18px;width:18px;height:18px}
dialog.sel-dlg{margin:auto;height:auto;max-height:min(88vh,760px);width:min(640px,calc(100% - 24px));border-radius:var(--r-l);animation:none}
.sel-corpo{display:grid;gap:12px;padding:20px 20px 18px;max-height:min(88vh,760px);grid-template-rows:auto auto minmax(0,1fr) auto}
.sel-corpo h3{font-size:22px;margin:0;font-weight:800}
.sel-corpo input[type=search]{font:15px var(--f-body);color:var(--ink);background:var(--surface);border:1.5px solid var(--line-strong);border-radius:var(--r-s);padding:10px 12px;min-height:46px;width:100%;box-sizing:border-box}
.sel-lista{overflow:auto;display:flex;flex-direction:column;gap:6px;min-height:120px;max-height:55vh;padding-right:2px}
.sel-lista>*{flex:0 0 auto}
.sel-grupo{font-size:12.5px;font-weight:800;color:var(--muted);letter-spacing:.03em;padding:8px 4px 2px}
.sel-op{display:grid;grid-template-columns:minmax(118px,max-content) minmax(0,1fr);align-items:start;gap:2px 16px;width:100%;min-height:44px;height:auto;text-align:left;font:inherit;line-height:1.35;color:var(--ink);background:var(--surface);border:1.5px solid var(--line);border-radius:var(--r-s);padding:10px 14px;cursor:pointer}
.sel-op:hover,.sel-op.ativo{border-color:var(--accent);background:var(--accent-soft)}
.sel-op:focus-visible{outline:3px solid var(--accent);outline-offset:2px}
.sel-op.atual{border-color:var(--accent);box-shadow:inset 3px 0 0 var(--accent)}
.sel-op.limpa{color:var(--muted)}
.sel-un{grid-column:1;font-weight:800;white-space:nowrap}
.sel-nome{grid-column:2;min-width:0;overflow-wrap:anywhere}
.sel-nota{grid-column:2;font-size:12.5px;color:var(--muted)}
.sel-op.limpa .sel-un{grid-column:1/-1}
@media (max-width:600px){dialog.sel-dlg{width:calc(100% - 16px)}.sel-corpo{padding:16px 14px}.sel-op{grid-template-columns:minmax(0,1fr)}.sel-un,.sel-nome,.sel-nota{grid-column:1}}
