/* RUESS Hub 2.79.12 - Einkauf-Aufgabe: grosser Dialog mit Bestellung und Lieferschein (Marvin 09.11.). Nur helle Farben (Dunkelmodus invertiert global). */
#eaDialog.ea-modal { align-items: stretch; padding: 2.5vh 2vw; }
#eaDialog .ea-dialog { width: min(1480px, 100%); max-width: none; height: 95vh; max-height: none; display: flex; flex-direction: column; padding: 0; overflow: hidden; }
#eaDialog .ea-kopf { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 14px 18px 12px; border-bottom: 1px solid #e4e9e2; }
#eaDialog .ea-kopf h3 { margin: 0 0 4px; font-size: 18px; }
#eaDialog .ea-kopf p { margin: 0; font-size: 13.5px; color: #4b5650; }
#eaDialog .ea-kopf-knoepfe { display: flex; gap: 8px; align-items: center; flex: 0 0 auto; }
#eaDialog .ea-inhalt { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(420px, 46%) minmax(0, 1fr); }
#eaDialog .ea-links { overflow-y: auto; padding: 14px 16px 18px 18px; display: flex; flex-direction: column; gap: 12px; border-right: 1px solid #e4e9e2; }
#eaDialog .ea-rechts { display: flex; flex-direction: column; min-height: 0; background: #f4f6f1; }
#eaDialog .ea-karte { border: 1px solid #e4e9e2; border-radius: 10px; padding: 12px 14px; background: #fff; }
#eaDialog .ea-karte h4 { margin: 0 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: #667174; }
#eaDialog .ea-gross { margin: 0 0 10px; font-size: 16px; font-weight: 700; color: #1f2a24; }
#eaDialog .ea-notiz { border-left: 4px solid #e2a23b; background: #fff8ec; border-radius: 8px; padding: 10px 12px; }
#eaDialog .ea-notiz small { font-weight: 700; color: #8a5300; text-transform: uppercase; font-size: 11px; letter-spacing: .04em; }
#eaDialog .ea-notiz p { margin: 4px 0 0; font-size: 14px; color: #2f3a33; white-space: pre-wrap; }
#eaDialog .ea-fakten { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; margin: 0 0 10px; }
#eaDialog .ea-fakten dt { font-size: 11.5px; color: #7a8580; font-weight: 600; }
#eaDialog .ea-fakten dd { margin: 0; font-size: 13.5px; color: #1f2a24; }
#eaDialog .ea-mengen { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
#eaDialog .ea-mengen > div { border: 1px solid #e4e9e2; border-radius: 8px; padding: 6px 10px; text-align: center; }
#eaDialog .ea-mengen small { display: block; font-size: 11px; color: #7a8580; }
#eaDialog .ea-mengen b { font-size: 20px; font-variant-numeric: tabular-nums; }
#eaDialog .ea-mengen .offen { border-color: #f0d6a6; background: #fff8ec; }
#eaDialog .ea-mengen .problem { border-color: #f3c3bd; background: #fdeeec; }
#eaDialog .ea-tabelle-rahmen { max-height: 220px; overflow: auto; border: 1px solid #eef1ec; border-radius: 8px; }
#eaDialog .ea-pos td, #eaDialog .ea-pos th { font-size: 12.5px; padding: 4px 8px; }
#eaDialog .ea-pos .zahl { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
#eaDialog .ea-pos tr.ea-aktiv td { background: #eef6e2; font-weight: 700; }
#eaDialog .ea-verlauf td { font-size: 12.5px; }
#eaDialog .ea-aktion { border-color: #cfe3ae; }
#eaDialog .ea-aktion h4 { color: #3f6b12; }
#eaDialog button.ea-link { min-height: 0; padding: 0; border: 0; background: none; color: #2f6f8f; font-weight: 600; text-decoration: underline; font-size: 13px; }
#eaDialog .ea-pdf-kopf { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid #e4e9e2; background: #fff; }
#eaDialog .ea-pdf-kopf select { width: auto; max-width: 320px; min-height: 30px; padding: 2px 8px; border-radius: 6px; font-size: 13px; }
#eaDialog .ea-ls-name { font-weight: 700; font-size: 13.5px; }
#eaDialog .ea-pdf-art { display: inline-flex; margin-left: auto; }
#eaDialog .ea-pdf-art button { min-height: 28px; padding: 0 10px; border: 1px solid #d7ddd0; background: #fff; color: #4b5650; border-radius: 0; font-size: 12.5px; }
#eaDialog .ea-pdf-art button:first-child { border-radius: 6px 0 0 6px; }
#eaDialog .ea-pdf-art button:last-child { border-radius: 0 6px 6px 0; border-left: 0; }
#eaDialog .ea-pdf-art button.an { background: #eef4dc; border-color: #b9d06a; color: #2f4a08; font-weight: 700; }
#eaDialog .ea-pdf-art button:disabled { opacity: .45; }
#eaDialog .ea-pdf { flex: 1; min-height: 0; display: flex; }
#eaDialog .ea-pdf iframe { flex: 1; width: 100%; border: 0; }
#eaDialog .ea-pdf > p { margin: 16px; }
#eaDialog .ea-pdf-leer { margin: auto; text-align: center; padding: 24px; color: #4b5650; }
@media (max-width: 1000px) {
  #eaDialog .ea-inhalt { grid-template-columns: 1fr; overflow-y: auto; }
  #eaDialog .ea-links { overflow: visible; border-right: 0; }
  #eaDialog .ea-rechts { min-height: 70vh; }
  #eaDialog .ea-fakten, #eaDialog .ea-mengen { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
#eaDialog a.ap-btn { display: inline-flex; align-items: center; text-decoration: none; }
#eaDialog .ea-aktion textarea { min-height: 64px; height: 64px; resize: vertical; }
#eaDialog .ea-aktion h4 { margin-bottom: 6px; }

/* 2.79.18: weitere Faelle zur selben Bestellung - als klickbare Zeilen mit Status, Melder, Datum; gleiche Position = Hinweis "doppelt gemeldet?" */
#eaDialog .ea-andere { display: flex; flex-direction: column; gap: 6px; margin: 10px 0 12px; }
#eaDialog .ea-andere > b { font-size: 12px; color: #4b5650; }
#eaDialog .ea-ander { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; width: 100%; padding: 8px 10px; border: 1px solid #dfe5da; border-radius: 8px; background: #fff; text-align: left; font-size: 13px; cursor: pointer; color: #263029; }
#eaDialog .ea-ander:hover { border-color: #a2bf13; background: #f6f9ee; }
#eaDialog .ea-ander-nr { font-weight: 700; }
#eaDialog .ea-doppelt { padding: 1px 8px; border-radius: 999px; background: #fdf0d8; color: #8a5a00; font-size: 11.5px; font-weight: 600; }
#eaDialog .ea-ander-pfeil { margin-left: auto; color: #6b7a2a; font-weight: 600; font-size: 12px; }
/* PDF jetzt vom Hub gezeichnet (pdf.js): Bereich scrollt, Seiten zentriert */
#eaDialog #eaPdf.rd-host { overflow: auto; padding: 12px; background: #eef1ec; }
