/* Bereich E Auswertung: die Statistiken, der Reiter „Rücksendungen“ am Produkt, die Seiten der Produkthinweise,
   ihre Fenster und der Hinweis in der Kaufbox. Klassen .nb-aw-…; gemeinsame Regeln der Nachbauten in
   assets/stil.css. Elemente, die absolut stehen und Ziel eines Ausschnitts sein können, behalten ihre Lage über
   .nb-fenster vor der Klasse (der Scheinwerfer setzt position: relative). */

/* --- Leinwand der Statistiken und des Reiters am Produkt ----------------- */

.nb-aw-rand { padding: 18px 20px 22px; }
.nb-aw-leinwand { position: relative; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.nb-aw-leinwand--menue { padding-bottom: 56px; }
.nb-aw-filter { display: flex; justify-content: flex-end; margin: -4px 0 -4px; }
.nb-aw-satz { font-size: 11px; line-height: 1.5; color: var(--nb-text2); }
/* beim Laden wie im Plugin: alles außer Reitern, Zeitraum und Kreisel grau und blass */
.nb-aw-leinwand--laden > .nb-aw-kz, .nb-aw-leinwand--laden > .nb-aw-spalten, .nb-aw-leinwand--laden > .nb-tafel, .nb-aw-leinwand--laden > .nb-aw-satz { filter: grayscale(1); opacity: 0.4; }
.nb-aw-satz--karte { margin-top: 2px; }

.nb-aw-zeit { display: inline-flex; align-items: center; gap: 10px; }
.nb-aw-zeit__label { font-size: 11.5px; color: var(--nb-text2); white-space: nowrap; }
.nb-aw-zeit__knoepfe { display: inline-flex; }
.nb-aw-zeit__k { padding: 4px 11px; border: 1px solid var(--nb-linie); border-left-width: 0; background: var(--weiss); font-size: 11.5px; font-weight: 500; white-space: nowrap; }
.nb-aw-zeit__k:first-child { border-left-width: 1px; border-radius: 5px 0 0 5px; }
.nb-aw-zeit__k:last-child { border-radius: 0 5px 5px 0; }
.nb-aw-zeit__k--an { border-color: var(--nb-blau); background: var(--nb-blau); color: var(--weiss); }

/* --- Kennzahlen: Zeile darunter darf umbrechen, Kacheln warten grau ----- */

.nb-aw-kz .nb-kz__k { position: relative; }
.nb-aw-kz .nb-kz__fuss { white-space: normal; line-height: 1.4; }
.nb-aw-kz__blass .nb-kz__kopf, .nb-aw-kz__blass .nb-kz__wert, .nb-aw-kz__blass .nb-kz__fuss { color: #b3bdc8; }
.nb-aw-kz__blass .nb-kz__sy { background: var(--nb-grund2); color: #b3bdc8; }
.nb-fenster .nb-aw-tipp { position: absolute; left: 12px; top: calc(100% - 8px); padding: 5px 9px; border-radius: 4px; background: #1f2937; color: var(--weiss); font-size: 11px; white-space: nowrap; }
.nb-aw-tipp::before { content: ""; position: absolute; left: 16px; top: -4px; border: 4px solid transparent; border-top: 0; border-bottom-color: #1f2937; }

.nb-aw-kreisel { display: block; box-sizing: border-box; width: 28px; height: 28px; border: 3px solid var(--nb-linie2); border-top-color: var(--nb-akzent); border-radius: 50%; }
.nb-fenster .nb-aw-kreisel--seite { position: absolute; left: calc(50% - 16px); top: 150px; width: 32px; height: 32px; }
.nb-aw-kreisel--klein { position: absolute; top: 12px; right: 12px; width: 15px; height: 15px; border-width: 2px; }
.nb-aw-kreisel--zelle { display: inline-block; width: 12px; height: 12px; border-width: 2px; vertical-align: middle; }

/* --- Karten, Spalten, Diagramme ------------------------------------------ */

.nb-aw-spalten { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.nb-aw-spalten--breit { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.nb-aw-tafel--tab > .nb-tafel__inhalt { padding: 0; gap: 0; }
.nb-aw-tafel__titel { display: flex; align-items: center; gap: 6px; }
.nb-aw-tafel__rechts { display: flex; align-items: center; gap: 14px; }
.nb-aw-kopfnotiz { font-size: 11px; color: var(--nb-text2); text-align: right; }

.nb-aw-dia { display: block; width: 100%; height: auto; }
.nb-aw-dia text { font-size: 9px; fill: var(--nb-text3); }
.nb-aw-dia .nb-aw-dia__legende { font-size: 9.5px; fill: var(--nb-text2); }
.nb-aw-dia-leer { height: 150px; border-radius: 6px; background: var(--nb-grund2); }
.nb-aw-dia-leer--eins { height: 118px; }
.nb-aw-dia-leer--warten { display: flex; align-items: center; justify-content: center; }

.nb-aw-kvs { display: flex; flex-direction: column; }
.nb-aw-kv { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 0; border-top: 1px solid var(--nb-linie2); font-size: 11.5px; line-height: 1.35; }
.nb-aw-kv:first-child { padding-top: 0; border-top: 0; }
.nb-aw-kv b { white-space: nowrap; }

/* --- Balkenlisten und Anteile mit Balken ---------------------------------- */

.nb-aw-balken { display: flex; flex-direction: column; gap: 11px; }
.nb-aw-balken__kopf { display: flex; justify-content: space-between; gap: 10px; font-size: 11.5px; }
.nb-aw-balken__wert { flex: none; white-space: nowrap; }
.nb-aw-balken__wert small { font-size: 10.5px; color: var(--nb-text2); }
.nb-aw-balken__spur { display: block; height: 6px; margin-top: 5px; border-radius: 3px; background: var(--nb-grund2); }
.nb-aw-balken__fuellung { display: block; height: 100%; border-radius: 3px; background: #1f8fd4; }
.nb-aw-balken__leer { font-size: 11.5px; color: var(--nb-text2); }
.nb-aw-ton-1 { background: #7b4fd1; }
.nb-aw-ton-2 { background: #d9930a; }
.nb-aw-ton-3 { background: #1f936a; }
.nb-aw-ton-4 { background: #c0392b; }

.nb-aw-anteil { display: inline-flex; align-items: center; gap: 8px; }
.nb-aw-anteil__spur { display: inline-block; width: 52px; height: 6px; border-radius: 3px; background: var(--nb-grund2); }
.nb-aw-anteil__spur i { display: block; height: 100%; border-radius: 3px; background: #1f8fd4; }

.nb-aw-w-0 { width: 0; }
.nb-aw-w-5 { width: 5%; }
.nb-aw-w-10 { width: 10%; }
.nb-aw-w-15 { width: 15%; }
.nb-aw-w-20 { width: 20%; }
.nb-aw-w-25 { width: 25%; }
.nb-aw-w-30 { width: 30%; }
.nb-aw-w-35 { width: 35%; }
.nb-aw-w-40 { width: 40%; }
.nb-aw-w-45 { width: 45%; }
.nb-aw-w-50 { width: 50%; }
.nb-aw-w-55 { width: 55%; }
.nb-aw-w-60 { width: 60%; }
.nb-aw-w-65 { width: 65%; }
.nb-aw-w-70 { width: 70%; }
.nb-aw-w-75 { width: 75%; }
.nb-aw-w-80 { width: 80%; }
.nb-aw-w-85 { width: 85%; }
.nb-aw-w-90 { width: 90%; }
.nb-aw-w-95 { width: 95%; }
.nb-aw-w-100 { width: 100%; }

/* --- Tabellen: rechtsbündige Zahlen, Sortierpfeil, Zeilenmenü ------------- */

/* getrennte Ränder: bei border-collapse: collapse zeichnet Chrome keinen Scheinwerfer an Zellen und Spaltenköpfen */
.nb-tab.nb-aw-tab { border-collapse: separate; border-spacing: 0; }
.nb-aw-tab .nb-aw-r { text-align: right; }
.nb-aw-tab__kopf { display: inline-flex; align-items: center; gap: 4px; }
.nb-aw-tab__kopf .nb-sy { width: 11px; height: 11px; color: var(--nb-blau); }
.nb-aw-tab__mehr { position: relative; }
.nb-aw-tab__leer { padding: 14px 16px; font-size: 12px; color: var(--nb-text2); }
.nb-aw-rolle { height: 6px; margin: 8px 12px 10px; border-radius: 3px; background: var(--nb-grund2); }
.nb-aw-rolle i { display: block; width: 66%; height: 100%; border-radius: 3px; background: #c3ccd6; }
.nb-aw-rolle--rechts i { margin-left: 34%; }
.nb-aw-hell { color: #ccc; }
.nb-aw-hoch { color: #8a5a00; font-weight: 600; }
.nb-aw-blass { color: var(--nb-text2); }
.nb-aw-werte { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; }
.nb-aw-schnitt { display: inline-block; max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.nb-aw-schnitt--kurz { max-width: 118px; }
.nb-aw-schnitt--breit { max-width: 400px; }
.nb-aw-schnitt--text { max-width: 218px; }

.nb-fenster .nb-aw-kontext { position: absolute; top: calc(100% - 6px); right: 8px; display: flex; flex-direction: column; min-width: 170px; padding: 6px 0; border: 1px solid var(--nb-linie); border-radius: 6px; background: var(--weiss); box-shadow: 0 10px 24px -10px rgba(15, 23, 42, 0.35); text-align: left; }
.nb-aw-kontext__e { padding: 6px 14px; font-size: 12px; font-weight: 400; color: var(--nb-text); white-space: nowrap; }
.nb-aw-kontext__e--rot { color: var(--nb-rot); }

/* --- Reiter am Produkt: Reiterleiste, vier Zahlen, Karte „Hinweise“ ------- */

.nb-aw-laschen { display: flex; align-items: flex-end; gap: 10px; }
.nb-aw-laschen > .nb-laschen { flex: 1; }
.nb-aw-laschen__pfeil { display: flex; align-items: center; padding: 8px 0; color: var(--nb-text3); }

.nb-aw-zahlen { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.nb-aw-zahl { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.nb-aw-zahl__label { font-size: 11.5px; color: var(--nb-text2); }
.nb-aw-zahl__wert { overflow: hidden; font-size: 16px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.nb-aw-zahl__wert--hoch { color: #8a5a00; }
.nb-aw-zahl__unter { overflow: hidden; font-size: 10.5px; color: var(--nb-text2); text-overflow: ellipsis; white-space: nowrap; }

.nb-aw-hk__vorschlag { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 6px 6px 6px 12px; border-left: 3px solid var(--nb-akzent); border-radius: 4px; background: var(--nb-blau-hell); font-size: 12px; line-height: 1.45; }
.nb-aw-hk__knoepfe { display: flex; flex: none; gap: 6px; }
.nb-aw-hk__knoepfe .nb-knopf { padding: 4px 10px; font-size: 11.5px; }
.nb-aw-knopf-rand { border-color: var(--nb-rot); background: var(--weiss); color: var(--nb-rot); }
.nb-aw-hk__leer { font-size: 12px; color: var(--nb-text2); }
.nb-aw-hk__variante { font-size: 12px; line-height: 1.5; }
.nb-fenster .nb-aw-hk__zeilen { display: flex; flex-direction: column; gap: 4px; padding-left: 18px; list-style: disc; font-size: 12px; }

/* --- Listen mit Seitenleiste: Suche, Filter, Leerzustand, Meldung ------- */

.nb-aw-suche { display: flex; align-items: center; gap: 8px; max-width: 420px; padding: 7px 12px; border: 1px solid var(--nb-linie); border-radius: 6px; background: var(--nb-grund); font-size: 12px; color: #8a9bb0; }
.nb-aw-mitleiste { display: flex; align-items: stretch; min-height: 230px; margin: 0 -18px -18px 0; }
.nb-aw-mitleiste__haupt { display: flex; flex: 1; flex-direction: column; min-width: 0; padding: 0 16px 18px 0; }
.nb-aw-leiste { display: flex; flex: none; flex-direction: column; align-items: center; gap: 10px; width: 46px; padding-top: 2px; border-left: 1px solid var(--nb-linie2); color: #5b6b80; }
.nb-aw-leiste__k { position: relative; display: flex; align-items: center; justify-content: center; width: 30px; height: 28px; border-radius: 6px; }
.nb-aw-leiste__k--an { background: var(--nb-blau-hell); color: var(--nb-blau); }
.nb-aw-leiste__k em { position: absolute; top: -4px; right: -4px; min-width: 15px; height: 15px; padding: 0 4px; border-radius: 8px; background: var(--nb-blau); color: var(--weiss); font: 700 9px/15px sans-serif; text-align: center; }
.nb-aw-filterfeld { display: flex; flex: none; flex-direction: column; gap: 12px; width: 232px; padding: 0 14px 18px; border-left: 1px solid var(--nb-linie2); }
.nb-aw-filterfeld__kopf { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 2px 0 9px; border-bottom: 1px solid var(--nb-linie2); font-size: 12.5px; }
.nb-aw-wahlchip { padding: 1px 7px; border-radius: 4px; background: var(--nb-grund2); font-size: 11px; white-space: nowrap; }

.nb-aw-leer { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 44px 20px; text-align: center; }
.nb-aw-leer > i { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-bottom: 6px; border-radius: 50%; background: var(--nb-grund2); color: var(--nb-text2); }
.nb-aw-leer > i .nb-sy { width: 20px; height: 20px; }
.nb-aw-leer b { font-size: 14px; }
.nb-aw-leer__text { max-width: 460px; font-size: 12px; line-height: 1.5; color: var(--nb-text2); }

.nb-aw-meldung { display: flex; align-items: center; gap: 10px; max-width: 440px; margin: 0 0 12px auto; padding: 10px 14px; border-left: 4px solid var(--nb-gruen); border-radius: 6px; background: var(--weiss); box-shadow: 0 10px 24px -12px rgba(15, 23, 42, 0.35); font-size: 12px; line-height: 1.45; }
.nb-aw-meldung .nb-sy { color: var(--nb-gruen-text); }

/* --- Fenster: Hinweis anlegen, ablehnen, löschen ------------------------ */

.nb-aw-felder { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.nb-aw-notiz { padding: 7px 11px; border-left: 3px solid #b9c3cf; border-radius: 4px; background: var(--nb-grund); font-size: 11.5px; line-height: 1.5; color: var(--nb-text2); }
.nb-aw-fenstertext { font-size: 12.5px; line-height: 1.55; }

/* --- Kaufbox: mehrere Hinweise als Liste --------------------------------- */

.nb-fenster .nb-aw-kaufhinweis ul { display: flex; flex-direction: column; gap: 3px; padding-left: 16px; list-style: disc; }
