/* =====================================================================================================================
   RUESS UI 2026 – Modul 6 „Kunden, Recruiting, Administration“ (3.3.0). Audit Bewerbungen, Karte IG/HoGa, Aus-/Eingangs-
   protokolle, Benutzer, Ideenpool, Kosten IT 1440/375: 0 Funde (außer Leaflet-Kartenhinweis, fremdes Bauteil).
   Aus-/Eingangsprotokolle: Werkzeugleiste/Reiter über lager-2026.css (gleiche ap-Bausteine). Hier: Recruiting + Ideenpool.
   ===================================================================================================================== */
/* Bewerbungen: eigener Seitenkopf doppelte den gemeinsamen Kopf (Titel zweimal) */
html[data-ui="lageplan"] #appBox #bewerbungenView .seiten-kopf { display: none !important; }
/* Bewerbungen: Status-Auswahl (Zu prüfen, Alle, …) als Umschalter wie überall – aktiv („an“) Anthrazit; vorher normale Knöpfe ohne sichtbare Auswahl */
html[data-seiten="2026"] #appBox #bewerbungenView .bw-filter { display: flex; flex-wrap: wrap; gap: 4px !important; }
html[data-seiten="2026"] #appBox #bewerbungenView .bw-filter > .bw-btn {
  min-height: var(--u-h-tab) !important; height: var(--u-h-tab) !important; padding: 0 14px !important; border-radius: 999px !important;
  border: 1px solid transparent !important; background: transparent !important; color: var(--ds-text) !important; box-shadow: none !important;
  font-size: var(--u-fs-sm) !important; font-weight: 600 !important;
}
html[data-seiten="2026"] #appBox #bewerbungenView .bw-filter > .bw-btn:hover { background: var(--ds-surface-hover) !important; }
html[data-seiten="2026"] #appBox #bewerbungenView .bw-filter > .bw-btn.an { background: var(--lp-anthrazit) !important; border-color: var(--lp-anthrazit) !important; color: #fff !important; }

/* Ideenpool: Suche EIN Feld (vorher Feldrahmen innerhalb des Suchrahmens), Fokusring am Rahmen */
html[data-seiten="2026"] #appBox #ideasView .ip-search {
  display: flex; align-items: center; gap: 8px; height: var(--u-h-field); padding: 0 12px !important;
  border: 1px solid var(--ds-line-strong) !important; border-radius: var(--u-r) !important; background: var(--ds-surface) !important; color: var(--ds-muted);
}
html[data-seiten="2026"] #appBox #ideasView .ip-search:focus-within { border-color: var(--ds-focus) !important; box-shadow: var(--u-ring); }
html[data-seiten="2026"] #appBox #ideasView .ip-search input {
  border: 0 !important; box-shadow: none !important; background: transparent !important; padding: 0 !important; height: 38px !important; min-height: 38px !important; flex: 1 1 auto; min-width: 0;
}
html[data-seiten="2026"] #appBox #ideasView .ip-search input:focus { box-shadow: none !important; }

/* Karte IG/HoGa – Kundenportfolio (Audit 17.11. mit echten Daten): Einträge sind <button>; die allgemeine Knopf-Regel machte daraus
   grüne 36-px-Knöpfe, Adresse und Umsatz abgeschnitten, graue Adresse auf Lime 2,36:1. Jetzt ruhige Listenzeile: Farbpunkt, Name,
   Nr. · PLZ Ort (grau), Umsatz rechts – Hover hell, Fokusring. */
html[data-seiten="2026"] #appBox .sales-customer-results .sales-customer-result {
  display: grid !important; grid-template-columns: 10px minmax(0, 1fr) auto; align-items: center; gap: 10px;
  width: 100%; min-height: 52px !important; height: auto !important; padding: 8px 10px !important; margin: 0 !important;
  background: var(--ds-surface) !important; color: var(--ds-ink) !important; text-align: left; box-shadow: none !important;
  border: 0 !important; border-bottom: 1px solid var(--ds-line) !important; border-radius: 0 !important; font-weight: 400 !important;
}
html[data-seiten="2026"] #appBox .sales-customer-results .sales-customer-result:hover { background: var(--ds-surface-hover) !important; }
html[data-seiten="2026"] #appBox .sales-customer-results .sales-customer-result:focus-visible { outline: none !important; box-shadow: inset var(--u-ring) !important; }
html[data-seiten="2026"] #appBox .sales-customer-results .sales-customer-result .sales-customer-dot { width: 10px; height: 10px; border-radius: 999px; }
html[data-seiten="2026"] #appBox .sales-customer-results .sales-customer-result-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
html[data-seiten="2026"] #appBox .sales-customer-results .sales-customer-result-main strong { font-size: var(--u-fs-sm); font-weight: 600; color: var(--ds-ink) !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html[data-seiten="2026"] #appBox .sales-customer-results .sales-customer-result-main small { font-size: var(--u-fs-xs); color: var(--ds-muted) !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html[data-seiten="2026"] #appBox .sales-customer-results .sales-customer-result > b { font: 600 var(--u-fs-xs)/1 var(--lp-mono) !important; color: var(--ds-ink) !important; white-space: nowrap; }
/* Kundenzahl-Pille neben „Kundenportfolio“: dunkle Schrift auf Lime (vorher Weiß auf Grün 3,77:1) */
html[data-seiten="2026"] #appBox #salesVisibleCustomerCount { background: var(--ds-brand) !important; color: var(--ds-on-brand) !important; }

/* Karte IG – Vertriebsgebiete (Audit 17.11. mit echten Daten, Handy): Gebietskarten grün, Unterzeile 2,36:1, Inhalt abgeschnitten.
   Jetzt weiße Karte mit Farbstreifen des Gebiets (--territory-color), Name, Unterzeile grau, Kürzel rechts. */
html[data-seiten="2026"] #appBox .sales-territory-card {
  display: grid !important; grid-template-columns: 6px minmax(0, 1fr) auto; align-items: center; gap: 10px;
  width: 100%; min-height: 52px !important; height: auto !important; padding: 8px 12px 8px 8px !important; text-align: left;
  background: var(--ds-surface) !important; color: var(--ds-ink) !important; border: 1px solid var(--ds-line) !important; border-radius: 12px !important; box-shadow: none !important;
}
html[data-seiten="2026"] #appBox .sales-territory-card:hover { background: var(--ds-surface-hover) !important; }
html[data-seiten="2026"] #appBox .sales-territory-card:is(.active, .is-active, [aria-pressed="true"]) { border-color: var(--territory-color, var(--lp-anthrazit)) !important; box-shadow: inset 0 0 0 1px var(--territory-color, var(--lp-anthrazit)) !important; }
html[data-seiten="2026"] #appBox .sales-territory-card .sales-territory-color { align-self: stretch; width: 6px; min-height: 32px; border-radius: 4px; background: var(--territory-color, var(--ds-line-strong)) !important; }
html[data-seiten="2026"] #appBox .sales-territory-card .sales-territory-person { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
html[data-seiten="2026"] #appBox .sales-territory-card .sales-territory-person strong { font-size: var(--u-fs-sm); font-weight: 600; color: var(--ds-ink) !important; }
html[data-seiten="2026"] #appBox .sales-territory-card .sales-territory-person small { font-size: var(--u-fs-xs); color: var(--ds-muted) !important; white-space: normal; }
html[data-seiten="2026"] #appBox .sales-territory-card .sales-territory-code { font: 600 11px/1 var(--lp-mono); color: var(--ds-text) !important; } /* 3.5.1: war --ds-muted auf #f0f2ed = 4,46:1 (Rundgang klassisch) */

/* 3.5.1 (Marvin 25.11., Karte IG „sieht net so schön aus“):
   - Gebietskarten schrumpften in der Flex-Liste (feste Höhe) auf 52 px, die Unterzeile lief unten heraus -> Karten behalten ihre Höhe, Liste etwas höher.
   - Kürzel als kleines Schild oben rechts statt Block, der den Text drückt.
   - „Kunden suchen“ war ein großer Lime-Block (188×62, Text zweizeilig) -> Nebenaktion: weiß, Kontur, eine Zeile, 40 px. */
html[data-seiten="2026"] #appBox .sales-territory-list > .sales-territory-card { flex: 0 0 auto; }
html[data-seiten="2026"] #appBox .sales-territory-list { max-height: 300px; }
html[data-seiten="2026"] #appBox .sales-territory-card .sales-territory-person small { line-height: 1.35; }
html[data-seiten="2026"] #appBox .sales-territory-card .sales-territory-code { align-self: start; padding: 3px 6px; border-radius: var(--ds-radius-sm); background: var(--ds-surface-2) !important; }
html[data-seiten="2026"] #appBox .sales-map-search.collapsed { width: auto !important; border: 0; background: transparent; box-shadow: none; overflow: visible; }
html[data-seiten="2026"] #appBox #salesMapSearchToggle {
  display: inline-flex !important; align-items: center; gap: var(--ds-space-2); width: auto !important; min-height: 40px !important; height: 40px; padding: 0 var(--ds-space-4) !important;
  border: 1px solid var(--ds-line-strong) !important; border-radius: var(--ds-radius-md) !important; background: var(--ds-surface) !important; color: var(--ds-ink) !important;
  box-shadow: var(--ds-shadow-2) !important; white-space: nowrap; font-size: var(--ds-font-sm); font-weight: 600;
}
html[data-seiten="2026"] #appBox .sales-map-search:not(.collapsed) #salesMapSearchToggle { width: 100% !important; box-shadow: none !important; border-width: 0 0 1px !important; border-radius: 0 !important; }
html[data-seiten="2026"] #appBox #salesMapSearchToggle > span { font-size: 18px; line-height: 1; }
html[data-seiten="2026"] #appBox #salesMapSearchToggle > strong { font-weight: 600; }
html[data-seiten="2026"] #appBox #salesMapSearchToggle:hover { background: var(--ds-surface-hover) !important; }
html[data-seiten="2026"] #appBox .sales-territory-card .sales-territory-person small.sales-territory-umsatz { color: var(--ds-text) !important; font-weight: 600; }
html[data-seiten="2026"] #appBox .sales-territory-list > .sales-territory-card { max-height: none !important; height: auto !important; min-height: fit-content !important; flex-shrink: 0 !important; } /* 3.5.1: nie kleiner als der Inhalt (vorher min-height 0 -> 18 px am Handy) */
html[data-seiten="2026"] #appBox .sales-territory-list { grid-auto-rows: auto; }
