body.dzw-modal-open{overflow:hidden}
.dzw-modal-overlay{position:fixed;inset:0;z-index:999999;display:flex;align-items:center;justify-content:center;padding:20px;background:rgba(15,31,47,.62);backdrop-filter:blur(3px)}
.dzw-modal-overlay[hidden]{display:none!important}
.dzw-modal{box-sizing:border-box;width:min(680px,calc(100vw - 32px));max-height:min(84vh,720px);overflow:hidden;padding:0;color:#182b3e;background:#fff;border:1px solid #d7e4ee;border-radius:16px;box-shadow:0 24px 70px rgba(8,25,41,.25);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.dzw-modal-head{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:58px;padding:14px 18px;border-bottom:1px solid #e5edf3;background:#fff}
.dzw-modal-title{margin:0;color:#18324a;font-size:18px!important;font-weight:750;line-height:1.25}
.dzw-modal-x{appearance:none!important;-webkit-appearance:none!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 34px!important;width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important;margin:0!important;padding:0!important;border:1px solid #d8e4ed!important;border-radius:50%!important;background:#f7fafc!important;color:#52677a!important;box-shadow:none!important;cursor:pointer!important;font:400 23px/1 Arial,sans-serif!important;text-indent:0!important}
.dzw-error-modal{display:flex;flex-direction:column}
.dzw-error-modal>.dzw-error-search{margin:14px 18px 0}
.dzw-error-search{box-sizing:border-box!important;width:calc(100% - 36px)!important;height:42px!important;min-height:42px!important;padding:0 12px!important;border:1px solid #c9d8e3!important;border-radius:9px!important;outline:0!important;background:#fff!important;color:#182b3e!important;font:400 14px/1.2 inherit!important}
.dzw-error-search:focus{border-color:#6e9cc0!important;box-shadow:0 0 0 3px rgba(73,126,167,.12)!important}
.dzw-error-list{margin:12px 18px 0;max-height:300px;overflow:auto;border:1px solid #dbe5ed;border-radius:10px;background:#fff;scrollbar-width:thin;scrollbar-color:#b7c7d3 transparent}
.dzw-error-category{position:sticky;top:0;z-index:2;padding:8px 12px;border-bottom:1px solid #dbe5ed;background:#edf3f7;color:#52677a;font-size:11px!important;font-weight:800;line-height:1.2;text-transform:uppercase;letter-spacing:.05em}
.dzw-error-option{appearance:none!important;-webkit-appearance:none!important;display:flex!important;align-items:center!important;gap:7px!important;width:100%!important;min-height:38px!important;margin:0!important;padding:8px 12px!important;border:0!important;border-bottom:1px solid #edf2f5!important;border-radius:0!important;background:#fff!important;color:#20384e!important;box-shadow:none!important;text-align:left!important;cursor:pointer!important;text-transform:none!important;letter-spacing:normal!important}
.dzw-error-option:last-child{border-bottom:0!important}.dzw-error-option:hover{background:#f4f8fb!important}.dzw-error-option.is-selected{background:#e7f2fb!important;color:#173b5b!important;box-shadow:inset 3px 0 0 #2f6f9f!important}.dzw-error-option>span:last-child{display:block;min-width:0;color:inherit!important;white-space:normal!important}.dzw-star{flex:0 0 auto;color:#d89c00!important;font-size:13px;line-height:1}.dzw-recent{display:inline-flex;align-items:center;flex:0 0 auto;border-radius:999px;background:#e8f0f7;color:#2f4f6f!important;padding:2px 6px;font-size:9px;font-weight:800;white-space:nowrap}.dzw-empty{padding:20px;color:#718196;text-align:center;background:#fff;font-size:13px}
.dzw-error-preview{margin:12px 18px 0;padding:13px 14px;border:1px solid #dce7ef;border-radius:10px;background:#f7fafc}.dzw-error-preview-title{display:block;color:#18324a;font-size:14px!important;font-weight:800;line-height:1.35}.dzw-error-preview p{margin:6px 0 10px;color:#344b60;font-size:13px!important;line-height:1.5;white-space:pre-line}.dzw-error-extra,.dzw-rejection-reason{box-sizing:border-box!important;width:100%!important;padding:9px 10px!important;border:1px solid #cad8e3!important;border-radius:8px!important;background:#fff!important;color:#182b3e!important;resize:vertical!important;font:400 13px/1.4 inherit!important}
.dzw-modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:12px;padding:13px 18px 16px;border-top:1px solid #edf2f5;background:#fff}.dzw-btn{appearance:none!important;-webkit-appearance:none!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:36px!important;margin:0!important;padding:8px 14px!important;border:1px solid transparent!important;border-radius:8px!important;box-shadow:none!important;cursor:pointer!important;text-decoration:none!important;text-transform:none!important;letter-spacing:normal!important}.dzw-btn-light{background:#eef3f7!important;border-color:#d8e4ed!important;color:#2f4f6f!important}.dzw-btn-primary{background:#2f4f6f!important;border-color:#2f4f6f!important;color:#fff!important}.dzw-btn:disabled{opacity:.5!important;cursor:not-allowed!important}.dzw-modal-note{margin:14px 18px 8px;color:#64748b;font-size:13px}.dzw-rejection-modal .dzw-rejection-reason{width:calc(100% - 36px)!important;margin:0 18px}
.dzw-status-wrap{display:inline-flex;align-items:center}.dzw-status-badge{appearance:none!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;border:1px solid transparent!important;border-radius:999px!important;padding:6px 11px!important;font-size:12px!important;font-weight:750!important;line-height:1.2!important;white-space:nowrap!important;box-shadow:none!important}.dzw-status-badge.has-popup{cursor:pointer!important}.dzw-status-ubermittelt{background:#dbeafe!important;border-color:#93c5fd!important;color:#1e3a8a!important}.dzw-status-in-bearbeitung{background:#ffedd5!important;border-color:#fdba74!important;color:#9a3412!important}.dzw-status-identitat{background:#e0f2fe!important;border-color:#38bdf8!important;color:#075985!important}.dzw-status-fehler{background:#fee2e2!important;border-color:#fca5a5!important;color:#991b1b!important}.dzw-status-abgelehnt{background:#e5e7eb!important;border-color:#9ca3af!important;color:#374151!important}.dzw-status-zugelassen{background:#dcfce7!important;border-color:#86efac!important;color:#166534!important}.dzw-status-abgemeldet{background:#dcfce7!important;border-color:#86efac!important;color:#166534!important}.dzw-status-message{white-space:pre-line;line-height:1.55;padding:0 18px 18px;color:#344b60;font-size:13px!important}.dzw-correction-slot{margin:0 18px 18px}.dzw-correction-data{display:none!important}
.dzw-admin-status{display:flex;align-items:center;gap:6px;min-width:185px}.dzw-admin-status-select{box-sizing:border-box;width:175px;min-width:175px;height:36px;min-height:36px;margin:0;padding:5px 30px 5px 9px;border:1px solid #93c5fd;border-radius:7px;background:#dbeafe;color:#1e3a8a;font:600 13px/1.2 inherit;cursor:pointer}.dzw-admin-status-select:has(option[value="In Bearbeitung"]:checked){background:#ffedd5;border-color:#fdba74;color:#9a3412}.dzw-admin-status-select:has(option[value="Identität"]:checked){background:#e0f2fe;border-color:#38bdf8;color:#075985}.dzw-admin-status-select:has(option[value="Fehler"]:checked){background:#fee2e2;border-color:#fca5a5;color:#991b1b}.dzw-admin-status-select:has(option[value="Abgelehnt"]:checked){background:#e5e7eb;border-color:#9ca3af;color:#374151}.dzw-admin-status-select:has(option[value="Zugelassen"]:checked){background:#dcfce7;border-color:#86efac;color:#166534}.dzw-admin-status-select:has(option[value="Abgemeldet"]:checked){background:#dcfce7;border-color:#86efac;color:#166534}.dzw-admin-status-feedback{font-size:11px;white-space:nowrap;color:#52677a}.dzw-edit-error-button{appearance:none!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;width:28px!important;height:28px!important;min-width:28px!important;margin:0!important;padding:0!important;border:1px solid #fca5a5!important;border-radius:50%!important;background:#fff5f5!important;color:#991b1b!important;text-decoration:none!important;cursor:pointer!important;font:700 14px/1 inherit!important;box-shadow:none!important}.dzw-edit-error-button:hover{background:#fee2e2!important}
@media(max-width:700px){.dzw-modal-overlay{padding:8px;align-items:flex-end}.dzw-modal{width:100%;max-height:92vh;border-radius:14px 14px 0 0}.dzw-modal-head{min-height:54px;padding:12px 14px}.dzw-modal-title{font-size:17px!important}.dzw-error-modal>.dzw-error-search{margin:12px 14px 0}.dzw-error-search{width:calc(100% - 28px)!important}.dzw-error-list,.dzw-error-preview{margin-left:14px;margin-right:14px}.dzw-error-list{max-height:38vh}.dzw-modal-actions{padding:12px 14px 14px;flex-direction:column-reverse}.dzw-btn{width:100%!important}.dzw-modal-note{margin-left:14px;margin-right:14px}.dzw-rejection-modal .dzw-rejection-reason{width:calc(100% - 28px)!important;margin-left:14px;margin-right:14px}}
/* 2.0.4: Status-Popups im Händlerportal immer klar anklickbar */
.dzw-status-badge[data-dzw-open-status]{cursor:pointer!important;pointer-events:auto!important}
.dzw-status-badge[data-dzw-open-status]:hover{filter:brightness(.97);box-shadow:0 0 0 3px rgba(47,79,111,.08)!important}

/* 2.0.5 – kompakte Typografie und zuverlässiges Händler-Popup */
.dzw-error-option{
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
  font-size:13px!important;
  font-weight:600!important;
  line-height:1.3!important;
}
.dzw-error-category{
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
  font-size:11px!important;
  font-weight:800!important;
  line-height:1.2!important;
}
.dzw-btn{
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
  font-size:13px!important;
  font-weight:700!important;
  line-height:1.2!important;
}
.dzw-error-search{
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
  font-size:14px!important;
  font-weight:400!important;
  line-height:1.2!important;
}
.dzw-error-preview-title{font-size:14px!important}
.dzw-error-preview p{font-size:13px!important;line-height:1.45!important}

.dzw-native-dialog{
  width:min(560px,calc(100vw - 32px));
  max-width:560px;
  margin:auto;
  padding:0;
  border:0;
  border-radius:16px;
  color:#182b3e;
  background:transparent;
  box-shadow:none;
}
.dzw-native-dialog::backdrop{background:rgba(15,31,47,.62);backdrop-filter:blur(3px)}
.dzw-native-dialog-card{overflow:hidden;background:#fff;border:1px solid #d7e4ee;border-radius:16px;box-shadow:0 24px 70px rgba(8,25,41,.25);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.dzw-native-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;border-bottom:1px solid #e5edf3}
.dzw-native-dialog-head strong{font-size:18px!important;font-weight:750!important;line-height:1.25!important;color:#18324a!important}
.dzw-native-dialog-x{appearance:none!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important;margin:0!important;padding:0!important;border:1px solid #d8e4ed!important;border-radius:50%!important;background:#f7fafc!important;color:#52677a!important;box-shadow:none!important;cursor:pointer!important;font-family:Arial,sans-serif!important;font-size:23px!important;font-weight:400!important;line-height:1!important}
.dzw-native-dialog-message{padding:16px;color:#344b60;font-size:14px!important;line-height:1.55!important}
.dzw-native-dialog-note{margin:0 16px 12px;padding:10px 12px;border:1px solid #f5d7a1;border-radius:9px;background:#fff8eb;color:#7a4b0a;font-size:13px!important;line-height:1.4!important}
.dzw-native-dialog-actions{display:flex;justify-content:flex-end;padding:12px 16px 16px;border-top:1px solid #edf2f5}
.dzw-status-badge.has-popup{cursor:pointer!important}
@media(max-width:700px){
  .dzw-native-dialog{width:calc(100vw - 16px)}
  .dzw-native-dialog-head{padding:12px 14px}
  .dzw-native-dialog-head strong{font-size:16px!important}
  .dzw-native-dialog-message{padding:14px;font-size:13px!important}
}

/* 2.0.6 – Händler-Statusdialog */
.dzw-status-wrap{display:inline-flex!important;align-items:center!important;gap:8px!important;max-width:100%!important}
.dzw-status-pencil{appearance:none!important;width:34px!important;height:34px!important;min-width:34px!important;padding:0!important;border:1px solid #ef4444!important;border-radius:999px!important;background:#fff!important;color:#dc2626!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;font-size:18px!important;line-height:1!important;cursor:pointer!important;box-shadow:none!important}
.dzw-status-pencil:hover{background:#fff1f2!important}
.dzw-status-popup-data,.dzw-correction-link-html{display:none!important}
.dzw-status-modal{width:min(620px,calc(100vw - 30px))!important;max-width:620px!important}
.dzw-status-modal .dzw-modal-head{padding:20px 24px!important;border-bottom:1px solid #e2e8f0!important}
.dzw-status-modal .dzw-modal-title{font-size:22px!important;font-weight:750!important;color:#142b44!important}
.dzw-status-modal .dzw-status-message{margin:0!important;padding:24px!important;color:#c81e1e!important;font-size:16px!important;line-height:1.65!important;white-space:pre-line!important}
.dzw-status-modal .dzw-status-message:before{content:'!';display:inline-flex;align-items:center;justify-content:center;float:left;width:30px;height:30px;margin:0 16px 12px 0;border:2px solid currentColor;border-radius:50%;font-weight:800;font-size:20px;line-height:1}
.dzw-status-modal .dzw-correction-slot{display:flex!important;justify-content:flex-end!important;gap:10px!important;margin:0 24px 22px!important;padding-top:18px!important;border-top:1px solid #e2e8f0!important}
.dzw-status-modal .dzw-correction-slot .dzw-correct-now{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:42px!important;padding:10px 18px!important;border-radius:8px!important;background:#dc2626!important;color:#fff!important;font-size:14px!important;font-weight:700!important;text-decoration:none!important;border:0!important}
.dzw-status-modal .dzw-correction-slot .dzw-correct-now:hover{background:#b91c1c!important;color:#fff!important}
.dzw-status-modal .dzw-close-status{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:42px!important;padding:10px 18px!important;border:1px solid #cbd5e1!important;border-radius:8px!important;background:#f8fafc!important;color:#172033!important;font-size:14px!important;font-weight:650!important;cursor:pointer!important}
@media(max-width:640px){.dzw-status-modal .dzw-status-message{font-size:14px!important;padding:18px!important}.dzw-status-modal .dzw-correction-slot{margin:0 18px 18px!important;flex-direction:column-reverse!important}.dzw-status-modal .dzw-correction-slot>*{width:100%!important}}

/* 2.0.8 – Händlerstatus: ausschließlich externe Assets, da Formidable <style>/<script> aus View-Zellen entfernt. */
.dz-hp__view .dzw-status-wrap,
.frm_display .dzw-status-wrap,
.dzw-status-wrap{display:inline-flex!important;align-items:center!important;gap:8px!important;white-space:nowrap!important}
.dz-hp__view .dzw-status-badge,
.frm_display .dzw-status-badge,
.dzw-status-wrap .dzw-status-badge{appearance:none!important;-webkit-appearance:none!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;width:auto!important;min-width:0!important;min-height:34px!important;margin:0!important;padding:7px 13px!important;border:1px solid transparent!important;border-radius:999px!important;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;font-size:13px!important;font-weight:700!important;line-height:1.2!important;text-transform:none!important;letter-spacing:0!important;box-shadow:none!important}
.dz-hp__view button.dzw-status-badge.has-popup,
.frm_display button.dzw-status-badge.has-popup,
.dzw-status-wrap button.dzw-status-badge.has-popup{cursor:pointer!important;pointer-events:auto!important}
.dz-hp__view .dzw-status-fehler,.frm_display .dzw-status-fehler,.dzw-status-wrap .dzw-status-fehler{background:#fee2e2!important;border-color:#fca5a5!important;color:#b91c1c!important}
.dz-hp__view .dzw-status-abgelehnt,.frm_display .dzw-status-abgelehnt,.dzw-status-wrap .dzw-status-abgelehnt{background:#e5e7eb!important;border-color:#9ca3af!important;color:#374151!important}
.dz-hp__view .dzw-status-in-bearbeitung,.frm_display .dzw-status-in-bearbeitung,.dzw-status-wrap .dzw-status-in-bearbeitung{background:#ffedd5!important;border-color:#fdba74!important;color:#9a3412!important}.dzw-status-identitat{background:#e0f2fe!important;border-color:#38bdf8!important;color:#075985!important}
.dz-hp__view .dzw-status-zugelassen,.frm_display .dzw-status-zugelassen,.dzw-status-wrap .dzw-status-zugelassen{background:#dcfce7!important;border-color:#86efac!important;color:#166534!important}.dzw-status-abgemeldet{background:#dcfce7!important;border-color:#86efac!important;color:#166534!important}
.dz-hp__view .dzw-status-ubermittelt,.frm_display .dzw-status-ubermittelt,.dzw-status-wrap .dzw-status-ubermittelt{background:#dbeafe!important;border-color:#93c5fd!important;color:#1e3a8a!important}
.dz-hp__view .dzw-status-pencil,.frm_display .dzw-status-pencil,.dzw-status-wrap .dzw-status-pencil{appearance:none!important;-webkit-appearance:none!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;width:34px!important;min-width:34px!important;height:34px!important;min-height:34px!important;margin:0!important;padding:0!important;border:1px solid #ef4444!important;border-radius:50%!important;background:#fff!important;color:#dc2626!important;font-family:Arial,sans-serif!important;font-size:17px!important;font-weight:700!important;line-height:1!important;box-shadow:none!important;cursor:pointer!important}
.dzw-status-popup-data{display:none!important}

/* 2.2.0 – Korrekturstatus im Personal-Portal */
.dzw-admin-status{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:5px!important}
.dzw-admin-status-row{display:flex!important;align-items:center!important;gap:6px!important}
.dzw-correction-state{display:inline-flex!important;align-items:center!important;min-height:24px!important;padding:4px 8px!important;border:1px solid transparent!important;border-radius:999px!important;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;font-size:10px!important;font-weight:800!important;line-height:1.15!important;white-space:nowrap!important}
.dzw-correction-open{background:#fff7ed!important;border-color:#fdba74!important;color:#9a3412!important}
.dzw-correction-submitted{background:#dbeafe!important;border-color:#93c5fd!important;color:#1e3a8a!important}
.dzw-correction-done{background:#dcfce7!important;border-color:#86efac!important;color:#166534!important}

.dzw-correction-new{background:#fee2e2!important;border-color:#fca5a5!important;color:#991b1b!important}


/* 3.1.0 – Auftragsansicht im Personal-Portal */
.dzw-admin-actions{margin-top:7px}
.dzw-entry-details-button{appearance:none;display:inline-flex;align-items:center;justify-content:center;min-height:32px;padding:6px 10px;border:1px solid #b9cddd;border-radius:8px;background:#fff;color:#0a4d8c;font:inherit;font-size:12px;font-weight:700;line-height:1.2;cursor:pointer}
.dzw-entry-details-button:hover,.dzw-entry-details-button:focus{background:#eaf1f6;border-color:#8eacbf;color:#003064}
.dzw-entry-details-modal{width:min(920px,calc(100vw - 32px));max-height:88vh;overflow:hidden}
.dzw-entry-details-subtitle{padding:0 22px 12px;color:#718196;font-size:13px}
.dzw-entry-details-body{overflow:auto;padding:0 22px 22px}
.dzw-entry-details-table{width:100%;border-collapse:collapse}
.dzw-entry-details-table th,.dzw-entry-details-table td{padding:12px 14px;border:1px solid #d7e4ee;vertical-align:top;text-align:left}
.dzw-entry-details-table th{width:34%;background:#edf3f7;color:#536a80;font-size:12px}
.dzw-entry-details-table td{color:#182b3e;font-size:13px;white-space:pre-wrap;word-break:break-word}
.dzw-entry-details-table a{color:#0a4d8c;font-weight:700}
.dzw-entry-details-loading,.dzw-entry-details-empty,.dzw-entry-details-error{padding:28px;border:1px solid #d7e4ee;border-radius:12px;background:#f8fbfd;text-align:center;color:#607489}
.dzw-entry-details-error{border-color:#fecaca;background:#fff1f2;color:#991b1b}
@media(max-width:680px){.dzw-entry-details-table th,.dzw-entry-details-table td{display:block;width:100%}.dzw-entry-details-table th{border-bottom:0}}


/* 3.2.0 – Scroll-Fix */
.dzw-modal-overlay{
  overflow-x:hidden!important;
  overflow-y:auto!important;
  align-items:flex-start!important;
  overscroll-behavior:contain
}
.dzw-modal{
  max-height:none!important;
  overflow:visible!important;
  margin:auto!important
}
.dzw-error-modal,
.dzw-rejection-modal,
.dzw-entry-details-modal{
  max-height:none!important
}
.dzw-entry-details-body{
  max-height:calc(100vh - 220px);
  overflow-y:auto!important;
  overscroll-behavior:contain
}
body.dzw-modal-open{overflow:hidden!important}
