/* verwaltung-eingang.css — Eingang (Mitarbeiter-Abfragen) */

.ei-head-actions { display: flex; gap: 10px; align-items: center; }

/* Tabs Offen / Erledigt */
.ei-tabs { display: inline-flex; gap: 2px; background: #EEF1F5; border-radius: 11px; padding: 3px; margin-bottom: 16px; }
.ei-tab {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: inherit; font-size: 13px; font-weight: 600; color: #5B6675;
  background: none; border: 0; border-radius: 9px; padding: 7px 16px; cursor: pointer;
  transition: all .12s;
}
.ei-tab.active { background: #fff; color: #1E2630; box-shadow: 0 1px 3px rgba(15,23,42,.08); }
.ei-tab-count {
  font-size: 11px; font-weight: 700; min-width: 18px; height: 18px; padding: 0 5px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; background: var(--accent); color: #fff;
}
.ei-tab-count.is-muted { background: #D7DDE6; color: #5B6675; }

.ei-note {
  display: flex; gap: 9px; align-items: flex-start;
  background: #FFF7ED; border: 1px solid #F78E1133; color: #8a5a16;
  border-radius: 10px; padding: 10px 14px; font-size: 13px; line-height: 1.45;
  margin-bottom: 18px; max-width: 860px;
}
.ei-note svg { flex: none; margin-top: 2px; }

.ei-list { display: flex; flex-direction: column; gap: 14px; max-width: 980px; }

.ei-card {
  background: #fff; border: 1px solid #E5E9F0; border-radius: 14px;
  padding: 16px 18px; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.ei-card.is-open { border-color: var(--accent-line); }
.ei-card-row { display: flex; gap: 18px; align-items: stretch; justify-content: space-between; }
.ei-card-main { min-width: 0; flex: 1; }

.ei-card-top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.ei-chip {
  font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px;
  border: 1px solid transparent; white-space: nowrap;
}
.ei-chip-demo { color: #6B7686; background: #EEF1F5; border-color: #D7DDE6; }
.ei-chip-new { color: #fff; background: var(--accent); border-color: var(--accent); }
.ei-chip-done { color: #1F8A4D; background: #E4F5EA; border-color: #1F8A4D44; }
.ei-when { font-size: 12px; color: #8A94A6; margin-left: auto; cursor: default; }

.ei-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 18px; }
.ei-kv { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ei-kv label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: #8A94A6; }
.ei-kv span { font-size: 14px; color: #1E2630; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ei-missing-v { color: #A8B0BE !important; font-weight: 400 !important; font-style: italic; }
.ei-kv-toggle { justify-content: flex-end; }

/* Details aufklappen */
.ei-details-btn {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  font-family: inherit; font-size: 13px; font-weight: 700; color: var(--accent);
  background: none; border: 0; padding: 2px 0; cursor: pointer;
}
.ei-details-btn svg { transition: transform .15s; }
.ei-details-btn.is-open svg { transform: rotate(180deg); }
.ei-detail {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 22px;
  margin-top: 14px; padding-top: 14px; border-top: 1px dashed #E5E9F0;
}
.ei-detail-col { min-width: 0; }
.ei-detail-h {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  color: #8A94A6; margin-bottom: 8px;
}
.ei-dkv { display: flex; gap: 10px; align-items: baseline; padding: 3px 0; font-size: 13px; }
.ei-dkv-k { color: #6B7686; flex: 0 0 44%; line-height: 1.4; }
.ei-dkv-v { color: #1E2630; font-weight: 600; min-width: 0; line-height: 1.4; }
.ei-missing { font-size: 13px; color: #8A94A6; font-style: italic; line-height: 1.5; }

/* Löschen als dezentes Icon */
.ei-del-icon {
  align-self: flex-end;
  width: 34px; height: 34px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center;
  font-family: inherit; background: none; border: 1px solid transparent; color: #A8B0BE; cursor: pointer;
  transition: all .12s;
}
.ei-del-icon:hover { color: #B4232A; background: #FDF2F2; border-color: #F2C5C5; }

.ei-card-actions { display: flex; flex-direction: column; gap: 8px; justify-content: center; flex: none; align-items: stretch; }
.ei-card-actions .vw-btn-primary, .ei-card-actions .vw-btn-outline { justify-content: center; }
.ei-del { color: #B4232A; }
.ei-confirm-row { display: flex; gap: 8px; }

/* Badge am Eingang-Navigationspunkt (Bottom-Nav + Burger-Menü) */
.bn-icon-wrap { position: relative; }
.bn-badge {
  position: absolute; top: -4px; right: -8px;
  min-width: 17px; height: 17px; padding: 0 4px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; background: var(--accent); color: #fff;
  font-size: 11px; font-weight: 700; border: 2px solid #fff;
}
.chrome-menu-count {
  margin-left: auto; min-width: 18px; height: 18px; padding: 0 5px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; background: var(--accent); color: #fff;
  font-size: 11px; font-weight: 700;
}

@media (max-width: 760px) {
  .ei-card-row { flex-direction: column; }
  .ei-card-grid { grid-template-columns: 1fr; }
  .ei-card-actions { flex-direction: row; }
  .ei-detail { grid-template-columns: 1fr; }
  .ei-kv-toggle { justify-content: flex-start; }
}

/* Exakter Eingangs-Zeitstempel rechts unten in der aufgeklappten Detailansicht */
.ei-detail-stamp {
  grid-column: 1 / -1;
  display: flex; justify-content: flex-end; gap: 16px;
  margin-top: 10px; padding-top: 10px; border-top: 1px solid #F1F5F9;
  font: 500 12px/1.5 'Inter', system-ui, sans-serif; color: #94A3B8;
}

/* Zusammenfassung der Angaben als PDF (Wunsch der Rechtsabteilung): eigene
   Zeile unter den Detailspalten, vor dem Eingangs-Zeitstempel. */
.ei-detail-pdf { grid-column: 1 / -1; display: flex; justify-content: flex-start; padding-top: 4px; }
.ei-detail-pdf .vw-btn-outline { font-size: 13px; padding: 7px 14px; }
/* Funktions-Audit M5/M6 */
.ei-chip-progress { color: #92400E; background: #FEF3C7; border-color: #F59E0B55; }
.ei-chip-korr { color: #1D4ED8; background: #EFF6FF; border-color: #1D4ED844; }
.ei-chip-old { color: #475569; background: #F1F5F9; border-color: #94A3B855; text-decoration: line-through; }
