/* verwaltung-links.css — v18: Dialog „Musterabfrage senden" (Empfänger + Linkliste) */

.vw-modal.lk-modal { width: min(720px, calc(100vw - 32px)); max-width: none; }

.lk-form { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 10px; align-items: end; margin-top: 2px; }
.lk-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.lk-field .vw-share-label { margin: 0; }
.lk-create { white-space: nowrap; }
.lk-invalid { border-color: #DC2626 !important; box-shadow: 0 0 0 3px #DC262622; }
.lk-err { margin-top: 8px; font-size: 13px; color: #B91C1C; }

.lk-new { margin-top: 14px; padding: 12px; border: 1px solid #A7DDC3; background: #F2FBF6; border-radius: 10px; }
.lk-new-head { display: flex; align-items: center; gap: 7px; font-size: 13px; color: #166B47; margin-bottom: 9px; }
.lk-new .vw-share-linkrow { margin: 0; }

.lk-list-head { display: flex; align-items: center; gap: 8px; margin: 18px 0 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #6B7686; }
.lk-count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #EEF1F5; color: #4B5563; font-size: 12px; font-weight: 700; letter-spacing: 0; }
.lk-empty { padding: 14px; border: 1px dashed #D4DAE3; border-radius: 10px; color: #8A94A4; font-size: 13px; text-align: center; }

.lk-list { display: flex; flex-direction: column; gap: 6px; max-height: 260px; overflow-y: auto; padding-right: 2px; }
.lk-row { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border: 1px solid #E4E8EF; border-radius: 10px; background: #fff; }
.lk-row.is-new { border-color: var(--accent-line, #F78E1133); background: var(--accent-soft, #F78E111A); }
.lk-row-main { flex: 1; min-width: 0; }
.lk-row-name { font-size: 14px; font-weight: 600; color: #1F2733; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lk-row-sub { font-size: 12px; color: #8A94A4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lk-row-acts { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.lk-ico { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border: 1px solid transparent; border-radius: 8px; background: none; color: #6B7686; cursor: pointer; }
.lk-ico:hover { background: #F1F4F8; color: #1F2733; }
.lk-ico-del:hover { background: #FEF2F2; color: #DC2626; }
.lk-del-confirm { padding: 5px 10px; font-size: 13px; }

.lk-status { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; min-width: 104px; padding: 3px 9px; border-radius: 999px; border: 1px solid; font-size: 12px; font-weight: 700; justify-content: center; }
.lk-status::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: currentColor; }
.lk-status.is-offen { color: #6B7686; background: #F3F5F8; border-color: #6B768644; }
.lk-status.is-eingegangen { color: #0B76B8; background: #EFF7FD; border-color: #0EA5E944; }
.lk-status.is-uebernommen { color: #0E9F6E; background: #ECFDF5; border-color: #0E9F6E44; }
.lk-status.is-abgelaufen { color: #B91C1C; background: #FEF2F2; border-color: #B91C1C44; }

/* Eingang: Kennzeichnung, an wen der Link ging */
.ei-chip.ei-chip-linked { color: #475569; background: #F1F5F9; border: 1px solid #CBD5E1; }

@media (max-width: 640px) {
  .lk-form { grid-template-columns: 1fr; }
  .lk-status { min-width: 0; }
}

/* Kontakt-Vorschläge im Empfängerfeld (Autocomplete): zuletzt verwendete
   Link-Empfänger, Stammdaten und Pfarrenverzeichnis, gruppiert. */
.lk-field-suggest { position: relative; }
.lk-suggest {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 40;
  width: min(420px, 88vw); max-height: 320px; overflow-y: auto;
  background: #fff; border: 1px solid #E2E8F0; border-radius: 12px;
  box-shadow: 0 16px 34px rgba(15, 23, 42, .16);
}
.lk-sug-sect { font: 700 11px/1.3 'Inter', system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #94A3B8; padding: 9px 14px 5px; }
.lk-sug-item {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  padding: 7px 14px; border: 0; background: none; cursor: pointer;
}
.lk-sug-item.is-sel { background: #FFF7ED; }
.lk-sug-avatar {
  width: 30px; height: 30px; border-radius: 999px; flex-shrink: 0;
  background: #EEF2F7; color: #475569; font: 700 12px/1 'Inter', system-ui, sans-serif;
  display: inline-flex; align-items: center; justify-content: center; text-transform: uppercase;
}
.lk-sug-item.is-sel .lk-sug-avatar { background: var(--accent, #F78E11); color: #fff; }
.lk-sug-main { display: flex; flex-direction: column; min-width: 0; }
.lk-sug-name { font: 600 14px/1.35 'Inter', system-ui, sans-serif; color: #0F172A; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lk-sug-mail { font: 400 12px/1.35 'Inter', system-ui, sans-serif; color: #64748B; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lk-sug-badge { margin-left: auto; flex-shrink: 0; font: 600 11px/1.2 'Inter', system-ui, sans-serif; border-radius: 999px; padding: 3px 9px; }
.lk-sug-badge.is-zuletzt { background: #ECFDF5; color: #047857; }
.lk-sug-badge.is-stammdaten { background: #EEF2FF; color: #4338CA; }
.lk-sug-badge.is-pfarre { background: #FFF7ED; color: #B45309; }
.lk-sug-foot { border-top: 1px solid #F1F5F9; padding: 7px 14px; font: 400 12px/1.4 'Inter', system-ui, sans-serif; color: #94A3B8; }

/* Erfolgsbox nach dem Erzeugen: Versand-Zeile unter dem Link */
.lk-new-mailrow { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.lk-new-mailhint { font: 400 12px/1.5 'Inter', system-ui, sans-serif; color: #64748B; }
.lk-new-sent {
  display: inline-flex; align-items: center; gap: 6px;
  font: 600 13px/1.4 'Inter', system-ui, sans-serif; color: #166534;
}
