/* Ansichten B: Völker, Stand-Durchsicht, Bio, Bericht, Assistent, Planer, Honig, Doku, Übersicht */

/* Fußnote unter KPI-Kacheln (statt langer Hilfstexte in der Kachel) */
.kpi-fussnote { margin: -4px 0 14px; color: var(--ink-2); font-size: .82rem; line-height: 1.4; overflow-wrap: break-word; }
.mw-leer { margin: 4px 0 12px; }

/* Stockkarte: Königinnen-Farbe, Farbpunkt direkt am Namen */
.q-farbe { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }

/* Durchsichten: Handy-Karten, Desktop-Tabelle */
.dur-mobil { display: none; list-style: none; margin: 0; padding: 0; }
.dur-mobil li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.dur-mobil li:last-child { border-bottom: 0; }
.dur-kopf { display: flex; align-items: center; gap: 8px; }
.dur-kopf b { font-size: 1rem; }
.dur-kopf small { color: var(--ink-2); }
.dur-kopf .icon-btn { margin-left: auto; }
.dur-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.dur-chip { display: inline-flex; gap: 4px; padding: 2px 9px; border-radius: 99px; background: var(--surface-2); color: var(--ink-2); font-size: .8rem; white-space: nowrap; }
.dur-chip b { color: var(--ink); font-weight: 650; }
.dur-notiz { display: block; margin-top: 5px; color: var(--ink-2); font-size: .8rem; overflow-wrap: break-word; }
@media (max-width: 700px) {
  .dur-mobil { display: block; }
  .dur-desktop { display: none; }
}
@media print {
  .dur-mobil { display: none; }
  .dur-desktop { display: block; }
}

/* Stand-Durchsicht */
.sd-rows { padding-bottom: 110px; }
.sd-check { cursor: pointer; align-items: center; }
.sd-check input { width: 22px; height: 22px; min-width: 22px; flex: none; margin: 0; }
.sd-check span { white-space: nowrap; }
.sd-field.full { grid-column: 1 / -1; }
@media (min-width: 701px) {
  .sd-grid-alle { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) { .sd-rows { padding-bottom: 150px; } }

/* Assistent */
.as-key-hinweis { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.as-chip { font: inherit; font-size: .9rem; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 99px; padding: 8px 14px; min-height: 40px; cursor: pointer; text-align: left; }
.as-chip:hover { border-color: var(--honey); background: var(--honey-l); }

/* Übersicht: Hinweisliste bricht nicht mitten im Wort */
.hinweise li { overflow-wrap: break-word; word-break: normal; hyphens: manual; }
.hinweise .badge { white-space: nowrap; flex: none; margin-right: 4px; }

/* Tablet/kleiner Desktop: Schleudern-Tabelle ohne seitliches Scrollen, Charge/Menge nicht umbrechen */
.zelle-stapel > b:first-child { white-space: nowrap; }
.zelle-stapel > span:first-child > b:first-child { white-space: nowrap; }
@media (min-width: 701px) and (max-width: 1100px) {
  .quali-breit { min-width: 160px; }
  .tbl td, .tbl th { padding-left: 8px; padding-right: 8px; }
}

/* Lager > Eimer: Eimernummer (z. B. NV-28112026/E1) nicht umbrechen */
@media (min-width: 701px) { .eg-zeile { grid-template-columns: minmax(9.5rem, max-content) 11rem 1fr auto; } }
.eg-zeile > :first-child { white-space: nowrap; }

/* Wachs und Mittelwände: zwei getrennte Bestände mit Eingang/Ausgang */
.field[hidden] { display: none !important; }
.wb-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.wb-tab { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; font: inherit; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; min-height: 56px; cursor: pointer; box-shadow: var(--shadow); }
.wb-tab b { font-size: 1.25rem; color: var(--ink); font-weight: 700; }
.wb-tab.on { border-color: var(--honey); background: var(--honey-l); color: var(--ink); }
.wb-kopf { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-bottom: 8px; }
.wb-gross { display: flex; flex-direction: column; gap: 2px; }
.wb-zahl { font-size: 2.2rem; line-height: 1.1; font-weight: 750; }
.wb-zahl small { font-size: 1rem; font-weight: 600; color: var(--ink-2); }
.wb-knoepfe { display: flex; gap: 10px; flex: 1 1 260px; max-width: 420px; }
.wb-knoepfe .btn-lg { flex: 1 1 0; }
.wb-block h3 { margin: 14px 0 8px; }
.wb-kurz-zahlen { display: flex; flex-wrap: wrap; gap: 6px 24px; margin-bottom: 6px; }
.wb-kurz-zahlen b { font-size: 1.15rem; margin-left: 4px; }
.wb-kurz .btn { min-height: 40px; }
@media (max-width: 700px) {
  .wb-tabs { gap: 8px; }
  .wb-knoepfe { max-width: none; flex-basis: 100%; }
  .wb-zahl { font-size: 1.9rem; }
}

/* Bio-Kontrolle: Dokumente je Kontrolle */
.kdok-liste { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; }
.kdok-liste .file-link { white-space: normal; margin-right: 0; padding: 4px 0; max-width: 28ch; overflow-wrap: anywhere; }

/* Auswertung: Schnitt je Volk */
.ertrag-karte { margin-bottom: 10px; }
.ertrag-karte select { margin-left: 8px; font: inherit; }
.ertrag-gross { font-size: 2rem; }
.ertrag-vgl { margin-top: 4px; }
.vgl-auf { color: var(--ok-ink, var(--ok)); font-weight: 600; }
.vgl-ab { color: var(--danger-ink, var(--danger)); font-weight: 600; }
.ertrag-hinweis { background: var(--warn-l); margin: 10px 0; }
.vk-knoepfe { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.vk-zaehler { font-size: .85rem; color: var(--ink-2); margin-bottom: 4px; }
.balken { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.balken-zeile { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 10px; font-variant-numeric: tabular-nums; }
.balken-zeile .balken-sorte { overflow-wrap: anywhere; }
.balken-zeile:has(.balken-sorte) { grid-template-columns: minmax(70px, 110px) 1fr auto; }
.balken-spur { height: 14px; background: var(--line); border-radius: 7px; overflow: hidden; }
.balken-fuell { display: block; height: 100%; background: var(--honey); border-radius: 7px; }

/* Kontrollmappe (Bio-Kontrolle): Bildschirm */
.mp-dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 10px 0 14px; }
.mp-dl dt { color: var(--ink-2); }
.mp-dl dd { margin: 0; overflow-wrap: anywhere; }
.mp-toc { margin: 6px 0 0; padding-left: 1.4em; line-height: 1.7; }
.mp-toc-h { margin-top: 14px; }
.mp-zeitraum .mp-jahr { display: inline-flex; align-items: center; gap: 8px; margin-left: 8px; font-weight: 600; }
.mp-zeitraum select { font: inherit; min-height: 40px; }
.mp-luecken li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 8px 0; }
.mp-luecken .mp-text { flex: 1 1 220px; min-width: 0; overflow-wrap: break-word; }
.mp-open { white-space: nowrap; }
.mp-luecken .mp-open { min-height: 40px; display: inline-flex; align-items: center; }
.mp-url { display: none; }
.mp-fname { overflow-wrap: anywhere; }
.mp-hinweis { margin: 0 0 8px; font-weight: 600; }
.mp-bar { flex-wrap: wrap; gap: 8px; }
@media (max-width: 700px) {
  .mp-open { padding: 6px 0; }
  .mp-zeitraum .mp-jahr { margin: 8px 0 0; display: flex; }
}

/* Kontrollmappe: Druck (nur .mappe, andere Druckansichten bleiben unberührt) */
@media print {
  .mappe .mp-sec { break-before: page; margin: 0 0 8px; }
  .mappe .mp-cover { break-inside: avoid; margin-bottom: 0; padding: 0; border: 0; }
  .mappe .mp-cover h1 { font-size: 26pt; margin: 24mm 0 10mm; }
  .mappe .mp-toc { font-size: 12pt; line-height: 1.8; }
  .mappe .mp-dl { font-size: 11pt; }
  .mappe .mp-hinweis { font-size: 10.5pt; }
  .mappe h2 { font-size: 14pt; border-bottom: 1.5px solid #000; padding-bottom: 3px; }
  .mappe h3 { font-size: 11pt; margin: 10px 0 4px; break-after: avoid; }
  .mappe .table-wrap { overflow: visible; }
  .mappe .tbl { font-size: 9px; }
  .mappe .tbl th { color: #000; text-transform: none; letter-spacing: 0; white-space: normal; border-bottom: 1.5px solid #000; background: #eee; }
  .mappe .tbl td, .mappe .tbl th { padding: 2px 4px; }
  .mappe .tbl tr { break-inside: avoid; }
  .mappe .tbl tbody tr { background: none !important; box-shadow: none !important; }
  .mappe .tbl, .mappe .tbl tbody { display: table; width: 100%; }
  .mappe .tbl thead { display: table-header-group; }
  .mappe .tbl tr { display: table-row; padding: 0; }
  .mappe .tbl td { display: table-cell; text-align: left; }
  .mappe .tbl td.num { text-align: right; }
  .mappe .tbl td::before { content: none !important; }
  .mappe .tbl td:empty { display: table-cell; }
  .mappe .badge { border: 1px solid #000; background: none; color: #000; height: auto; padding: 1px 5px; font-size: 8.5px; }
  .mappe .badge.danger { border-width: 2px; font-weight: 800; }
  .mappe .rep-hinweise li { break-inside: avoid; font-size: 10.5pt; }
  .mappe .mp-url { display: block; font-size: 7px; color: #000; overflow-wrap: anywhere; }
  .mappe .mp-open { text-decoration: none; }
  .mappe .kdok-liste .file-link { max-width: none; }
  .mappe .legend { color: #000; }
}
