/* jorge_inv — Durchsuchen mit Seiten (v2, 02.11.): Umschalter „Taschen | Brieftasche | Schlüssel“ im Kopf
   der Durchsuchung, gleiche Bauart wie der Liste/Kacheln-Umschalter (.ansicht in liste_v25.css). */
#inv-root .fb-seg { display: none; }
#inv-root .col-stash.fb-such .fb-seg { display: inline-flex; flex: none; height: 28px; margin: 0 10px 3px auto; align-self: flex-end;
  background: rgba(255,255,255,.05); clip-path: var(--pg); pointer-events: auto; }
#inv-root .fb-seg button { border: none; background: none; color: var(--text-mute); padding: 0 8px; cursor: pointer;
  font: 600 11px var(--font); white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; pointer-events: auto; }
#inv-root .fb-seg button::after { content: attr(data-n); font: 600 9.5px var(--mono); color: var(--text-mute); }
#inv-root .fb-seg button[data-seite="taschen"]::after, #inv-root .fb-seg button[data-n="0"]::after { content: none; }
#inv-root .fb-seg button:hover { color: var(--text); }
#inv-root .fb-seg button.an { color: #fff; background: rgba(255,255,255,.1); box-shadow: inset 0 -2px 0 var(--accent2); }
#inv-root .fb-seg button.an::after { color: var(--text-mid); }
#inv-root .fb-seg button:focus-visible { outline: 1px solid var(--accent2); outline-offset: -1px; }
/* Platz im Kopf: Titel kürzer, Gewicht schmaler */
#inv-root .col-stash.fb-such .col-head { gap: 0; }
#inv-root .col-stash.fb-such .col-title { flex: 1 1 auto; min-width: 64px; overflow: visible; }
#inv-root .col-stash.fb-such .col-title h2 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#inv-root .col-stash.fb-such .col-tag { white-space: nowrap; }
#inv-root .col-stash.fb-such .col-title h2 { max-width: 100%; }
#inv-root .col-stash.fb-such .fb-seg { margin-left: 8px; margin-right: 8px; }
#inv-root .col-stash.fb-such .weight-meter { width: auto; min-width: 0; flex: none; }
#inv-root .col-stash.fb-such .weight-meter .weight-text { white-space: nowrap; }

/* Seiten: Taschen = #stashList, sonst #fbWrap */
#inv-root .fb-wrap { display: none; }
#inv-root .col-stash.fb-auf-brieftasche #stashList, #inv-root .col-stash.fb-auf-schluessel #stashList { display: none; }
#inv-root .col-stash.fb-auf-brieftasche .fb-wrap, #inv-root .col-stash.fb-auf-schluessel .fb-wrap {
  display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; pointer-events: auto; }

#inv-root .fb-liste { list-style: none; margin: 0; padding: 0 4px 6px 0; overflow-y: auto; min-height: 0; flex: 0 1 auto; }
#inv-root .fb-karte { display: grid; grid-template-columns: 36px minmax(0,1fr) auto; align-items: center; gap: 10px;
  padding: 8px 10px; background: rgba(255,255,255,.025); position: relative; }
#inv-root .fb-karte + .fb-karte { margin-top: 3px; }
#inv-root .fb-karte::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: rgba(255,255,255,.12); }
#inv-root .fb-nehmbar::before { background: linear-gradient(178deg, #da6652, #e2199a 58%, #8b2fd6); }
#inv-root .fb-ic { width: 36px; height: 36px; display: grid; place-items: center; }
#inv-root .fb-ic img { width: 30px; height: 30px; object-fit: contain; display: block; }
#inv-root .fb-body { min-width: 0; }
#inv-root .fb-name { font: 600 12.5px var(--font); color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#inv-root .fb-meta { font-size: 10px; color: var(--text-mute); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#inv-root .fb-anz { font-size: 10px; color: var(--text-mute); font-weight: 600; }

#inv-root .fb-nehmbar { cursor: pointer; }
#inv-root .fb-nehmbar:hover { background: rgba(255,255,255,.06); }
#inv-root .fb-nehmen { width: auto; height: 26px; padding: 0 11px; border-radius: 8px; border: 1px solid var(--line-mid, rgba(255,255,255,.14));
  background: #1b1e25; color: var(--text); font: 600 11px var(--font); cursor: pointer; pointer-events: auto; }
#inv-root .fb-nehmen:hover { border-color: var(--accent2); color: #fff; }
#inv-root .fb-nehmen:focus-visible { outline: 1px solid var(--accent2); outline-offset: 1px; }
#inv-root .fb-wartet { opacity: .5; pointer-events: none; }

#inv-root .fb-gesperrt .fb-ic img { filter: grayscale(.6); opacity: .7; }
#inv-root .fb-gesperrt .fb-name { color: var(--text-mid); }
#inv-root .fb-key .fb-ic img { filter: none; opacity: .9; }
#inv-root .fb-schloss { width: 26px; height: 26px; display: grid; place-items: center; color: var(--text-mute); }
#inv-root .fb-schloss svg { width: 13px; height: 13px; fill: currentColor; }
#inv-root .fb-tag { font-size: 9.5px; font-weight: 600; color: var(--text-mute); padding: 3px 7px; background: rgba(255,255,255,.05); }

#inv-root .fb-leer { padding: 14px 10px; font: 500 12px var(--font); color: var(--text-mute); }
#inv-root .fb-hinweis { flex: none; padding: 9px 2px 2px; font: 500 11px var(--font); color: var(--text-mute); }
