/* Reiter „Nachweispaket" im Admin-Bereich, Variante „Eine Seite".
   Eigene Klassen tragen das Präfix np-. Farben und Maße kommen aus den Variablen
   von index.html; Karten, Knöpfe und Balken sind die der Seite (g-card, g-btn, cn-progress). */
#adminNachweispaket { max-width: 920px; padding-bottom: 60px; }
#adminNachweispaket [hidden] { display: none !important; }

.np-h { font-size: 13px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.4px; margin: 26px 0 10px; }
.np-klein { font-size: 12.5px; color: var(--text-muted); line-height: 1.55; }
.np-rot { color: var(--red); }
.np-karte-kopf { justify-content: space-between; margin-bottom: 14px; }
a.np-anleitung { display: inline-block; text-decoration: none; }
.np-name { overflow-wrap: anywhere; min-width: 0; }

/* Feld zum Hochladen */
.np-zone { border: 2px dashed var(--border2); border-radius: var(--radius); padding: 34px 20px; text-align: center; background: var(--surface); cursor: pointer; transition: border-color .15s, background .15s; }
.np-zone:hover, .np-zone:focus-visible, .np-zone.np-drueber { border-color: var(--accent); background: var(--surface2); outline: none; }
.np-zone-t { font-size: 15px; font-weight: 600; color: var(--text); }
.np-zone-t u { color: var(--accent); }
.np-zone-s { font-size: 12.5px; color: var(--text-muted); margin-top: 6px; }
.np-datei { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 10px; overflow-wrap: anywhere; }
.np-datei span { font-size: 12.5px; font-weight: 400; color: var(--text-muted); }

/* Meldungen */
.np-meld { font-size: 13px; line-height: 1.55; border-radius: var(--radius-sm); padding: 10px 14px; margin: 12px 0; overflow-wrap: anywhere; }
.np-meld.np-err { background: #fef2f2; border: 1px solid #fecaca; color: var(--red); }
.np-meld.np-warn { background: #fffbeb; border: 1px solid #fde68a; color: var(--yellow); }
.np-meld.np-info { background: var(--surface2); border: 1px solid var(--border); color: var(--text-muted); }

/* Nach dem Prüfen */
.np-zusammen { font-size: 14px; color: var(--text); line-height: 1.6; margin: 4px 0 14px; }
.np-knoepfe { margin-bottom: 14px; }
.np-fuss { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.np-fenster { margin: 10px 0; }
.np-spalten { display: grid; grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)); gap: 12px; margin: 10px 0 4px; }
.np-spalten .db-input { width: 100%; }
.np-spalten small { display: block; font-size: 11.5px; color: var(--text-muted); margin-top: 4px; }
.np-spalten small.np-fehlt { color: var(--red); font-weight: 600; }

/* Auf- und zuklappbare Abschnitte */
details.np-det { border-top: 1px solid var(--border); padding: 10px 0 2px; margin-top: 12px; }
details.np-det > summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--text); list-style-position: inside; }
details.np-det > summary span { font-weight: 400; color: var(--text-muted); }
details.np-det > summary span.np-rot { font-weight: 600; color: var(--red); }
details.np-det > div { padding: 10px 0 6px; }
.np-protokoll { margin-top: 26px; }
.np-protokoll details.np-det { border-top: none; margin-top: 0; padding: 0; }

/* Vorschau je Zeile */
.np-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 2px 0 10px; }
.np-chip { border: 1px solid var(--border2); background: var(--surface); color: var(--text-muted); border-radius: 999px; padding: 4px 12px; font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.np-chip.np-an { background: var(--accent); border-color: var(--accent); color: #fff; }
.np-tab-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }
table.np-tab { width: 100%; border-collapse: collapse; font-size: 12.5px; }
table.np-tab th { text-align: left; font-size: 11.5px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.3px; padding: 8px 10px; background: var(--surface2); border-bottom: 1px solid var(--border); white-space: nowrap; }
table.np-tab td { padding: 7px 10px; border-bottom: 1px solid var(--border); color: var(--text); vertical-align: top; overflow-wrap: anywhere; }
table.np-tab tr:last-child td { border-bottom: none; }
table.np-tab td.np-z { color: var(--text-muted); white-space: nowrap; }
table.np-tab td.np-n { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 11.5px; word-break: break-all; }
table.np-tab td.np-n .np-klein { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 12.5px; word-break: normal; }
.np-mehr { margin: 8px 0; }
.np-vorschau > .np-klein { margin-top: 8px; }

/* Status eines Pakets, Vorschau einer Zeile */
.np-st { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.np-st.np-ok, .np-st.np-fertig { background: #dcfce7; color: var(--green); }
.np-st.np-problem, .np-st.np-gescheitert { background: #fee2e2; color: var(--red); white-space: normal; }
.np-st.np-hinweis, .np-st.np-wartet { background: #fef9c3; color: var(--yellow); }
.np-st.np-laeuft { background: var(--accent-dim); color: var(--accent); }
.np-st.np-abgebrochen { background: #f1f5f4; color: var(--text-muted); }

/* Fertiges Paket */
.np-teil { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.np-teil:last-child { border-bottom: none; }
.np-teil-n { flex: 1; min-width: 0; font-size: 13px; font-weight: 600; color: var(--text); overflow-wrap: anywhere; }
.np-teil-s { font-size: 12px; font-weight: 400; color: var(--text-muted); margin-top: 2px; }
.np-teil-s.np-rot { color: var(--red); }
.np-prob { font-size: 13px; color: var(--text); padding: 6px 0; border-bottom: 1px solid var(--border); display: flex; gap: 4px 12px; flex-wrap: wrap; }
.np-prob i { font-style: normal; color: var(--text-muted); white-space: nowrap; }
.np-prob i:first-child { min-width: 68px; }
.np-prob span { overflow-wrap: anywhere; }
.np-prob b { color: var(--red); font-weight: 600; }
.np-prob + .np-klein { margin-top: 8px; }
.np-satz { display: flex; gap: 10px; align-items: flex-start; }
.np-satz textarea { flex: 1; min-height: 74px; resize: vertical; font: inherit; font-size: 13px; line-height: 1.5; color: var(--text); background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; }

/* Protokoll */
.np-prot { font: 12px/1.6 ui-monospace, Menlo, Consolas, monospace; color: var(--text); padding: 6px 0; border-bottom: 1px solid var(--border); overflow-wrap: anywhere; }
.np-prot:last-child { border-bottom: none; }

/* Kurze Rückmeldung am unteren Rand; blendet sich selbst aus */
.np-toast-ort { position: fixed; left: 0; right: 0; bottom: 28px; z-index: 1001; display: flex; justify-content: center; pointer-events: none; }
.np-toast { background: var(--accent); color: #fff; font-size: 13px; font-weight: 600; padding: 9px 16px; border-radius: 999px; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25); max-width: calc(100vw - 30px); animation: np-toast 3.2s ease forwards; }
@keyframes np-toast {
  0% { opacity: 0; transform: translateY(6px); }
  8%, 80% { opacity: 1; transform: none; }
  100% { opacity: 0; visibility: hidden; }
}

@media (max-width: 600px) {
  .np-teil, .np-satz { flex-direction: column; align-items: stretch; }
  table.np-tab { min-width: 640px; }
}
