/*
 * "Dokument ausfüllen" (assets/js/ee-doc-fill.js). Builds on the "Projekt teilen" dialog styles
 * (ee-share-dialog.css: .eesh-root/.eesh-dlg/.eesh-btn/.eesh-chip/.eesh-load); only the table and drop zone here.
 */
.eedf-dlg { width: min(920px, 100%); }
.eedf-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: 100%; min-height: 160px; margin-top: 18px; border: 1.5px dashed var(--ees-border); border-radius: 20px; background: var(--ees-field); color: var(--ees-text); cursor: pointer; font: 600 15px/1.2 var(--ees-font); }
.eedf-drop small { font: 500 12px/1.2 var(--ees-font); color: var(--ees-text-dim); }
.eedf-drop.is-over, .eedf-drop:hover { border-color: var(--ees-accent); background: var(--ees-accent-soft); }
.eedf-tbl { margin-top: 16px; max-height: min(60vh, 640px); overflow-y: auto; border-radius: 14px; border: 1px solid var(--ees-border); }
.eedf-row { display: grid; grid-template-columns: minmax(120px, 1fr) minmax(200px, 2fr) minmax(90px, .8fr); gap: 12px; align-items: start; padding: 10px 14px; border-top: 1px solid var(--ees-border); }
.eedf-row:first-child { border-top: 0; }
.eedf-row--head { position: sticky; top: 0; z-index: 1; background: var(--ees-surface); font: 600 11px/1 var(--ees-font); letter-spacing: .9px; text-transform: uppercase; color: var(--ees-text-faint); }
.eedf-lbl { font: 600 13px/1.35 var(--ees-font); color: var(--ees-text); overflow-wrap: anywhere; padding-top: 10px; }
.eedf-val { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.eedf-in { width: 100%; min-height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--ees-border); background: var(--ees-field); color: var(--ees-text); font: 500 14px/1 var(--ees-font); box-sizing: border-box; }
.eedf-in:placeholder-shown { border-color: rgba(255, 159, 10, .6); }
.eedf-cb { width: 20px; height: 20px; margin-top: 9px; }
.eedf-chips { gap: 4px; }
.eedf-chip { min-height: 28px; max-width: 100%; padding: 0 10px; border-radius: 8px; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eedf-src { display: block; padding-top: 10px; font: 500 12px/1.3 var(--ees-font); color: var(--ees-text-dim); overflow-wrap: anywhere; }
.eedf-miss { display: inline-block; margin-top: 8px; padding: 3px 8px; border-radius: 6px; background: rgba(255, 159, 10, .16); color: #c77c02; font: 600 11px/1.2 var(--ees-font); }
.eedf-err { color: #ff453a; }
@media (max-width: 640px) {
    .eedf-row { grid-template-columns: 1fr; gap: 4px; }
    .eedf-row--head { display: none; }
    .eedf-lbl, .eedf-src { padding-top: 0; }
}
.eedf-tpls { align-items: center; margin-top: 12px; }
.eedf-save { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.eedf-save .eedf-in { flex: 1 1 220px; width: auto; }
.eedf-miss[hidden] { display: none; }
.eedf-dlg a.eesh-btn { text-decoration: none; }
