.fx-page { display: grid; gap: var(--abstand-gruppe); min-width: 0; }
.fx-heading { margin: 0; }
.fx-heading p { margin-bottom: 0; }

.fx-upload {
  display: grid;
  gap: var(--abstand-klein);
  min-width: 0;
  margin: 0;
  padding: var(--abstand);
  border: 1px solid var(--kontur);
  border-radius: var(--rund);
  background: var(--flaeche-inhalt);
}
.fx-upload-header { display: flex; align-items: center; justify-content: space-between; gap: var(--abstand); min-width: 0; }
.fx-upload-intro { display: grid; gap: 0.2rem; min-width: 0; }
.fx-upload .beitrag-dateien-titel { margin: 0; }
.fx-upload-description { margin: 0; color: var(--marke-gedaempft-kraeftig); font-size: var(--schrift-klein); line-height: 1.45; }
.fx-upload-meta { display: grid; justify-items: end; min-width: 0; max-width: 56%; text-align: right; }
.fx-upload-summary { display: grid; justify-items: end; gap: 0.1rem; min-width: 0; }
.fx-upload-count { color: var(--marke-text); font-weight: 500; white-space: nowrap; }
.fx-upload-status-summary { color: var(--marke-gedaempft-kraeftig); font-size: var(--schrift-klein); line-height: 1.4; }
.fx-upload .fx-message { max-width: 34rem; margin: 0; color: var(--marke-gedaempft-kraeftig); }
.fx-message { overflow-wrap: anywhere; }
.fx-dropzone {
  box-sizing: border-box;
  min-height: 6rem;
  padding: 0.65rem 1rem;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.55rem;
  border-style: dashed;
  border-width: 1.5px;
  border-color: var(--marke-blaugrau);
  background: var(--marke-flaeche);
  color: var(--marke-text);
}
.fx-dropzone:hover { border-color: var(--marke-blaugrau); background: var(--flaeche-akzent); }
.fx-dropzone .beitrag-dateien-dropzone-sinnbild { width: 1.5rem; height: 1.5rem; color: var(--marke-blau); }
.fx-dropzone .beitrag-dateien-dropzone-text { font-size: inherit; font-weight: 500; }
.fx-dropzone-hint { color: var(--marke-blau); font-weight: 500; text-decoration: underline; text-underline-offset: 0.15em; }
.fx-dropzone--active { border-color: var(--marke-blau); background: var(--flaeche-akzent); box-shadow: inset 0 0 0 1px var(--marke-blaugrau); color: var(--marke-text); }
.fx-upload-footer { display: flex; align-items: center; justify-content: space-between; gap: var(--abstand); min-height: 1.25rem; }
.fx-upload-notice, .fx-upload .fx-message { color: var(--marke-gedaempft-kraeftig); font-size: var(--schrift-klein); }
.fx-upload-footer .fx-message { min-height: 1rem; text-align: right; }

.fx-list { display: grid; gap: var(--abstand-klein); min-width: 0; }
.fx-toolbar { display: flex; align-items: center; justify-content: space-between; gap: var(--abstand); min-width: 0; }
.fx-toolbar-left { display: flex; align-items: center; gap: var(--abstand); min-width: 0; }
.fx-jobs-heading { flex: none; margin: 0; color: var(--marke-dunkel); font-size: var(--schrift-h3); line-height: 1.35; }
.fx-toolbar-tools { display: flex; align-items: center; justify-content: flex-end; gap: var(--abstand-klein); min-width: 0; }
.fx-toolbar-left .posteingang-suche { box-sizing: border-box; width: 18rem; min-width: 12rem; height: var(--aktionshoehe); }
.fx-toolbar-left .posteingang-suche-feld { width: 100%; }
.fx-toolbar-left .posteingang-suche-feld:focus-visible { outline: 0; }
.fx-status-filter { box-sizing: border-box; width: 10rem; min-width: 9rem; height: var(--aktionshoehe); min-height: var(--aktionshoehe); padding: 0 0.75rem; font-size: var(--schrift-bedienung); }
.fx-toolbar-tools .btn { box-sizing: border-box; height: var(--aktionshoehe); min-height: var(--aktionshoehe); white-space: nowrap; }
.fx-selected-count { color: var(--marke-gedaempft-kraeftig); font-size: var(--schrift-klein); white-space: nowrap; }
.fx-zip-download { flex: none; }
.fx-list-message { margin: 0; }
.fx-jobs-frame { min-width: 0; }
.fx-jobs-table { width: 100%; min-width: 58rem; table-layout: fixed; }
.fx-jobs-table th, .fx-jobs-table td { height: 3.125rem; padding: 0.4rem 0.75rem; vertical-align: middle; }
.fx-jobs-table th:first-child, .fx-jobs-table td:first-child { width: 2.5rem; text-align: center; }
.fx-jobs-table th:nth-child(2), .fx-jobs-table td:nth-child(2) { width: 26%; }
.fx-jobs-table th:nth-child(3), .fx-jobs-table td:nth-child(3) { width: 10rem; white-space: nowrap; }
.fx-jobs-table th:nth-child(4), .fx-jobs-table td:nth-child(4) { width: 10.5rem; }
.fx-jobs-table td:nth-child(4) .pille { white-space: nowrap; overflow-wrap: normal; }
.fx-jobs-table th:last-child, .fx-jobs-table td:last-child { width: 5.5rem; }
.fx-jobs-table th:last-child { font-size: 0; text-align: right; }
.fx-select-visible, .fx-job-select-checkbox { width: 1rem; height: 1rem; margin: 0; accent-color: var(--marke-blau); }
.fx-job-name, .fx-job-result { min-width: 0; }
.fx-job-open { display: block; max-width: 100%; margin: 0; padding: 0; text-align: left; color: var(--marke-text); }
.fx-job-open:hover { color: var(--marke-dunkel); text-decoration: underline; }
.fx-job-file-label { display: inline-flex; align-items: center; gap: var(--abstand-klein); max-width: 100%; }
.fx-job-file-label strong { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.fx-pdf-icon { width: 1rem; height: 1rem; flex: none; color: var(--marke-gedaempft-kraeftig); }
.fx-job-time { color: var(--marke-gedaempft-kraeftig); font-variant-numeric: tabular-nums; }
.fx-job-result { color: var(--marke-gedaempft-kraeftig); font-size: var(--schrift-klein); line-height: 1.25; overflow-wrap: anywhere; }
.fx-job-actions { white-space: nowrap; }
.fx-row-actions { display: grid; grid-template-columns: repeat(2, 2.25rem); justify-content: end; align-items: center; gap: 0.25rem; }
.fx-row-action, .fx-row-action-placeholder { display: inline-flex; width: 2.25rem; height: 2.25rem; align-items: center; justify-content: center; }
.fx-row-action--remove { color: var(--status-fehler); }
.fx-row-action--remove:hover, .fx-row-action--remove:focus-visible { color: var(--status-fehler); background: var(--status-fehler-flaeche); }
.fx-empty-row td { color: var(--marke-gedaempft-kraeftig); }

.modal.detail-modal.fx-detail-modal { height: fit-content; max-height: 85vh; }
.fx-detail-modal .modal-inhalt { flex: 0 1 auto; gap: var(--abstand); scrollbar-gutter: stable; }
.fx-detail-modal .modal-fuss:empty { display: none; }
.fx-detail-modal .modal-fuss { gap: 0.5rem; }
.fx-detail-modal .modal-fuss .btn { flex: none; }
.fx-original-badge { align-self: center; color: var(--status-erfolg-text); white-space: nowrap; }
.fx-job-detail-content { display: grid; gap: var(--abstand); min-width: 0; }
.fx-job-detail-content > h3, .fx-job-detail-content > p { margin-block: 0; }
.fx-result-summary { color: var(--marke-text); font-weight: 500; }
.fx-warning { margin: 0; padding: var(--abstand-klein) var(--abstand); border-radius: var(--rund-klein); color: var(--status-warnung); background: var(--status-warnung-flaeche); }
.fx-help { margin: 0; color: var(--marke-gedaempft-kraeftig); font-size: var(--schrift-klein); line-height: 1.45; }
.fx-review-heading { margin: 0; font-size: var(--schrift-h3); line-height: 1.35; }
.fx-fields { display: grid; min-width: 0; border-top: 1px solid var(--marke-linie); }
.fx-field-header, .fx-field { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(6rem, 0.7fr) minmax(8rem, 0.9fr) minmax(8rem, 0.65fr); align-items: center; gap: var(--abstand-klein); }
.fx-field-header { padding: 0.45rem 0; border-bottom: 1px solid var(--marke-linie); color: var(--marke-gedaempft-kraeftig); font-size: var(--schrift-klein); font-weight: 500; }
.fx-field-header > :last-child { min-width: 0; text-align: center; overflow-wrap: anywhere; }
.fx-field { padding: 0.6rem 0; border-bottom: 1px solid var(--marke-linie); }
.fx-field-context { display: flex; align-items: flex-start; gap: 0.65rem; min-width: 0; }
.fx-field-context > input[type="checkbox"] { width: 1rem; height: 1rem; flex: none; margin: 0.25rem 0 0; padding: 0; accent-color: var(--marke-blau); }
.fx-field-source, .fx-field-value { display: grid; gap: 0.15rem; min-width: 0; }
.fx-field-source > strong, .fx-field-source > span { overflow-wrap: anywhere; }
.fx-field-source > span { color: var(--marke-gedaempft-kraeftig); font-size: var(--schrift-klein); }
.fx-field-source > strong { font-size: var(--schrift-bedienung); font-weight: 500; font-variant-numeric: tabular-nums; }
.fx-field-known { min-height: var(--aktionshoehe); display: flex; align-items: center; font-size: var(--schrift-bedienung); font-variant-numeric: tabular-nums; }
.fx-field select, .fx-field input[type="date"] { box-sizing: border-box; width: 100%; min-width: 0; height: var(--aktionshoehe); min-height: var(--aktionshoehe); padding-inline: 0.55rem; font-size: var(--schrift-klein); }
.fx-field--incomplete select[aria-invalid="true"], .fx-field--incomplete input[aria-invalid="true"] { border-color: var(--status-warnung); background: var(--status-warnung-flaeche); }
.fx-field-actions { display: flex; justify-content: center; }
.fx-field-edit { width: 2.25rem; height: 2.25rem; min-height: 2.25rem; padding: 0; }
.fx-excluded-note { color: var(--marke-gedaempft-kraeftig); font-size: var(--schrift-klein); line-height: 1.35; }
.fx-field-error { display: block; margin-top: 0.15rem; color: var(--status-fehler); font-size: var(--schrift-klein); line-height: 1.4; overflow-wrap: anywhere; }
.fx-review-consent { display: flex; align-items: flex-start; gap: var(--abstand-klein); width: 100%; box-sizing: border-box; margin: 0; padding: var(--abstand-klein) var(--abstand); border-radius: var(--rund-klein); background: var(--marke-flaeche); font-size: var(--schrift-klein); font-weight: 400; color: inherit; }
.fx-review-consent[hidden] { display: none; }
.fx-review-consent input { width: 1rem; height: 1rem; flex: none; margin: 0.2rem 0 0; padding: 0; accent-color: var(--marke-blau); }
.fx-review-consent > span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.fx-review-actions { display: flex; width: 100%; min-width: 0; align-items: center; justify-content: space-between; gap: var(--abstand); }
.fx-review-progress { color: var(--marke-gedaempft-kraeftig); font-size: var(--schrift-klein); }
.fx-review-actions .btn { flex: none; min-height: var(--aktionshoehe); }
.fx-reconciliation { display: grid; gap: var(--abstand-klein); padding-top: var(--abstand); border-top: 1px solid var(--kontur); }
.fx-reconciliation h3, .fx-reconciliation h4, .fx-reconciliation p { margin: 0; }
.fx-proof { display: grid; gap: var(--abstand-klein); min-width: 0; }
.fx-proof h3, .fx-proof p { margin: 0; }
.fx-proof-frame { min-width: 0; }
.fx-proof-table { width: 100%; min-width: 48rem; table-layout: fixed; font-size: var(--schrift-klein); }
.fx-proof-table th, .fx-proof-table td { padding: 0.45rem 0.5rem; white-space: normal; overflow-wrap: anywhere; vertical-align: top; }
.fx-proof-table th { letter-spacing: normal; text-transform: none; }
.fx-proof-table th:first-child, .fx-proof-table td:first-child { width: 3.5rem; }
.fx-proof-table th:nth-child(2), .fx-proof-table td:nth-child(2) { width: 7rem; }
.fx-proof-table th:nth-child(3), .fx-proof-table td:nth-child(3) { width: 7rem; }
.fx-proof-table th:nth-child(4), .fx-proof-table td:nth-child(4) { width: 6.5rem; }
.fx-proof-table th:nth-child(5), .fx-proof-table td:nth-child(5) { width: 11rem; }
.fx-proof-table td:nth-child(3), .fx-proof-table td:nth-child(4) { text-align: right; font-variant-numeric: tabular-nums; }
.fx-proof-list { display: grid; gap: var(--abstand-klein); margin: 0; padding-left: var(--abstand-gruppe); font-size: var(--schrift-klein); line-height: 1.45; overflow-wrap: anywhere; }
.fx-technical { min-width: 0; padding: 0.75rem 1rem; border: 1px solid var(--marke-linie); border-radius: var(--rund-klein); background: var(--marke-flaeche); }
.fx-technical summary { color: var(--marke-text); font-size: var(--schrift-klein); font-weight: 500; cursor: pointer; }
.fx-info-list { display: grid; grid-template-columns: minmax(9rem, 0.38fr) minmax(0, 1fr); gap: 0.45rem var(--abstand); margin: var(--abstand-klein) 0 0; min-width: 0; }
.fx-info-list { font-size: var(--schrift-klein); line-height: 1.45; }
.fx-info-list dt { color: var(--marke-gedaempft-kraeftig); }
.fx-info-list dd { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.fx-technical-list code { display: inline-block; max-width: 100%; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.75rem; line-height: 1.35; white-space: normal; overflow-wrap: anywhere; word-break: normal; }

@media (max-width: 1100px) {
  .fx-toolbar { align-items: flex-start; flex-direction: column; }
  .fx-toolbar-tools { width: 100%; justify-content: flex-start; flex-wrap: wrap; }
}
@media (min-width: 681px) and (max-width: 900px) {
  .fx-jobs-table { min-width: 0; }
  .fx-jobs-table th, .fx-jobs-table td { padding: 0.45rem 0.5rem; }
  .fx-jobs-table th:nth-child(2), .fx-jobs-table td:nth-child(2) { width: 25%; }
  .fx-jobs-table th:nth-child(3), .fx-jobs-table td:nth-child(3) { width: 9.5rem; white-space: normal; }
  .fx-jobs-table th:nth-child(4), .fx-jobs-table td:nth-child(4) { width: 10rem; }
  .fx-jobs-table th:last-child, .fx-jobs-table td:last-child { width: 5.25rem; }
}
@media (max-width: 680px) {
  .fx-upload-header { align-items: flex-start; flex-direction: column; gap: var(--abstand-klein); }
  .fx-upload-meta, .fx-upload-summary { justify-items: start; max-width: none; text-align: left; }
  .fx-upload-footer { align-items: flex-start; flex-direction: column; gap: 0.2rem; }
  .fx-upload .fx-message { text-align: left; }
  .fx-toolbar-left { align-items: stretch; flex-direction: column; width: 100%; gap: var(--abstand-klein); }
  .fx-toolbar-left .posteingang-suche { width: 100%; }
  .fx-status-filter { width: 100%; }
  .fx-field-header { display: none; }
  .fx-field { grid-template-columns: minmax(0, 1fr) 2.25rem; gap: 0.35rem 0.75rem; padding: 0.7rem 0; }
  .fx-field-context { grid-column: 1 / -1; }
  .fx-field-value { grid-column: 1; grid-template-columns: minmax(6.25rem, 0.35fr) minmax(0, 1fr); align-items: center; }
  .fx-field-value::before { content: attr(data-label); color: var(--marke-gedaempft-kraeftig); font-size: var(--schrift-klein); }
  .fx-field-known, .fx-field select, .fx-field input[type="date"] { grid-column: 2; }
  .fx-field-actions { grid-column: 2; grid-row: 2 / span 2; align-self: center; }
  .fx-review-actions { align-items: flex-end; flex-direction: column; }
  .fx-review-progress { align-self: flex-start; }
  .fx-detail-modal .modal-fuss { align-items: stretch; flex-direction: column; }
  .fx-detail-modal .modal-fuss .btn { width: 100%; }
  .fx-info-list { grid-template-columns: minmax(7rem, 0.38fr) minmax(0, 1fr); gap: 0.35rem 0.65rem; }
}
