.xreport-settings,.xreport-overlay{font-family:inherit;color:#233246}.xreport-settings{display:none}.xreport-layout{display:grid;grid-template-columns:260px minmax(0,1fr);gap:16px;padding:16px}.xreport-sidebar,.xreport-card,.xreport-panel{border:1px solid #dfe5ec;border-radius:8px;background:#fff}.xreport-sidebar{overflow:hidden}.xreport-sidebar-head,.xreport-card-head,.xreport-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px}.xreport-sidebar-head{padding:12px;border-bottom:1px solid #e6ebf1}.xreport-sidebar-head strong,.xreport-card-head strong{font-size:13px}.xreport-list{padding:6px}.xreport-list-button{display:flex;flex-direction:column;gap:2px;width:100%;padding:10px;border:0;border-radius:6px;background:transparent;text-align:left;cursor:pointer}.xreport-list-button:hover,.xreport-list-button.is-active{background:#edf4fa}.xreport-list-button strong{font-size:12px}.xreport-list-button small{font-size:10px;color:#748294}.xreport-main{display:flex;flex-direction:column;gap:14px}.xreport-card{padding:14px}.xreport-card-head{margin-bottom:12px}.xreport-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.xreport-button,.xreport-icon-button{border:1px solid #cbd5df;background:#fff;border-radius:6px;color:#34465a;font:inherit;font-size:11px;font-weight:700;cursor:pointer}.xreport-button{display:inline-flex;align-items:center;gap:5px;padding:7px 10px}.xreport-button:hover,.xreport-icon-button:hover{background:#f4f7fa}.xreport-button.primary{border-color:var(--color-primary,#1b6ca8);background:var(--color-primary,#1b6ca8);color:#fff}.xreport-button.danger{border-color:#d85f5f;color:#a53232}.xreport-button.link{border:0;background:transparent;color:var(--color-primary,#1b6ca8);padding-left:0;padding-right:0}.xreport-icon-button{width:30px;height:30px;display:inline-flex;align-items:center;justify-content:center}.xreport-button .material-icons,.xreport-icon-button .material-icons{font-size:17px}.xreport-empty{padding:18px;color:#758395;font-size:11px}.xreport-status{margin-top:10px;font-size:11px;color:#567086}.xreport-status.is-error{color:#a63232}.xreport-status.is-success{color:#287542}.xreport-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 14px}.xreport-field{display:flex;flex-direction:column;gap:4px;font-size:10px;color:#647487}.xreport-field.wide{grid-column:1/-1}.xreport-field input,.xreport-field select,.xreport-field textarea,.xreport-form-input,.xreport-form-select,.xreport-form-textarea{width:100%;box-sizing:border-box;border:1px solid #cbd5df;border-radius:5px;background:#fff;padding:7px 8px;color:#24364a;font:inherit;font-size:12px}.xreport-field textarea,.xreport-form-textarea{min-height:82px;resize:vertical}.xreport-check{display:flex;align-items:center;gap:7px;font-size:11px;color:#34465a}.xreport-check input{width:16px;height:16px}.xreport-tabs{display:flex;gap:4px;border-bottom:1px solid #dfe5ec;padding:0 14px}.xreport-tab{border:0;background:transparent;padding:10px 12px;font:inherit;font-size:11px;font-weight:700;color:#66778a;cursor:pointer;border-bottom:2px solid transparent}.xreport-tab.is-active{color:var(--color-primary,#1b6ca8);border-bottom-color:var(--color-primary,#1b6ca8)}.xreport-table-list{width:100%;border-collapse:collapse}.xreport-table-list th,.xreport-table-list td{border-bottom:1px solid #edf0f4;padding:8px;text-align:left;font-size:11px;vertical-align:middle}.xreport-table-list th{font-size:9px;text-transform:uppercase;letter-spacing:.03em;color:#718092}.xreport-builder{display:grid;grid-template-columns:190px minmax(300px,1fr) 300px;gap:12px;min-height:520px}.xreport-palette,.xreport-canvas,.xreport-properties{border:1px solid #dfe5ec;border-radius:7px;background:#fff;overflow:auto}.xreport-pane-title{position:sticky;top:0;z-index:2;background:#f7f9fb;border-bottom:1px solid #e4e9ef;padding:9px 10px;font-size:10px;font-weight:800;color:#536579}.xreport-palette-list{display:flex;flex-direction:column;gap:4px;padding:8px}.xreport-palette-item{border:1px solid #dbe2ea;background:#fff;border-radius:5px;padding:7px;text-align:left;font:inherit;font-size:10px;cursor:pointer}.xreport-palette-item:hover{background:#f0f5f9;border-color:#bfcbd6}.xreport-section{margin:10px;border:1px solid #d9e2ea;border-radius:7px;background:#fafbfd}.xreport-section-head{display:flex;align-items:center;gap:6px;padding:7px;background:#f2f5f8;border-bottom:1px solid #dfe5ec}.xreport-section-title{flex:1;border:0;background:transparent;font:inherit;font-size:11px;font-weight:700;min-width:0}.xreport-columns{display:grid;gap:8px;padding:8px}.xreport-columns.cols-1{grid-template-columns:1fr}.xreport-columns.cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.xreport-column{min-height:110px;border:1px dashed #cbd5df;border-radius:5px;padding:6px;background:#fff}.xreport-field-card{position:relative;border:1px solid #dbe2e9;border-radius:5px;background:#fff;padding:7px 28px 7px 8px;margin:0 0 5px;cursor:pointer}.xreport-field-card.is-active{border-color:var(--color-primary,#1b6ca8);box-shadow:0 0 0 1px var(--color-primary,#1b6ca8)}.xreport-field-card strong{display:block;font-size:10px}.xreport-field-card small{display:block;font-size:9px;color:#7a8898;margin-top:2px}.xreport-field-remove{position:absolute;right:4px;top:4px;width:22px;height:22px;border:0;background:transparent;color:#8b98a6;cursor:pointer}.xreport-add-field{display:flex;align-items:center;justify-content:center;width:100%;border:0;background:transparent;color:var(--color-primary,#1b6ca8);padding:7px;font:inherit;font-size:10px;font-weight:700;cursor:pointer}.xreport-properties-body{padding:10px}.xreport-hint{padding:8px 9px;border-radius:5px;background:#eef6fb;color:#46657d;font-size:10px;line-height:1.45;margin:8px 0}.xreport-template-meta{display:grid;grid-template-columns:2fr 1fr;gap:10px;margin-bottom:12px}.xreport-targets{display:flex;gap:10px;flex-wrap:wrap;padding:8px;border:1px solid #dfe5ec;border-radius:6px}.xreport-overlay{position:fixed;inset:0;z-index:3000;display:flex;align-items:center;justify-content:center;padding:20px;background:rgba(22,32,44,.48)}.xreport-dialog{width:min(1200px,96vw);max-height:94vh;display:flex;flex-direction:column;background:#fff;border-radius:10px;box-shadow:0 20px 70px rgba(0,0,0,.25);overflow:hidden}.xreport-dialog.medium{width:min(760px,95vw)}.xreport-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 16px;border-bottom:1px solid #dfe5ec}.xreport-dialog-head h2{margin:0;font-size:16px}.xreport-dialog-body{padding:14px;overflow:auto}.xreport-dialog-foot{display:flex;justify-content:flex-end;gap:8px;padding:11px 14px;border-top:1px solid #dfe5ec;background:#fafbfd}.xreport-form-section{margin-bottom:16px}.xreport-form-section>h3{font-size:13px;margin:0 0 8px;padding-bottom:5px;border-bottom:1px solid #e5e9ee}.xreport-form-columns{display:grid;gap:14px}.xreport-form-columns.cols-1{grid-template-columns:1fr}.xreport-form-columns.cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.xreport-form-field{margin-bottom:10px}.xreport-form-label{display:block;margin-bottom:4px;font-size:10px;font-weight:700;color:#536579}.xreport-form-input[readonly],.xreport-form-textarea[readonly]{background:#f4f6f8;color:#526170}.xreport-source-note{font-size:9px;color:#748294;margin-top:3px}.xreport-check-field{display:flex;align-items:center;gap:7px}.xreport-check-field input{width:17px;height:17px}.xreport-repeat-table{width:100%;border-collapse:collapse;margin-top:5px}.xreport-repeat-table th,.xreport-repeat-table td{border:1px solid #dbe2e9;padding:5px;vertical-align:top}.xreport-repeat-table th{background:#f4f6f8;font-size:9px}.xreport-repeat-table input,.xreport-repeat-table select{min-width:75px;width:100%;box-sizing:border-box;border:1px solid #cbd5df;border-radius:4px;padding:5px;font:inherit;font-size:10px}.xreport-signature-wrap{border:1px solid #d7dfe7;border-radius:6px;padding:8px;background:#fafbfd}.xreport-signature-canvas{width:100%;height:150px;display:block;background:#fff;border:1px solid #cbd5df;border-radius:4px;touch-action:none}.xreport-signature-meta{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:7px}.xreport-file-reports{border-bottom:1px solid #e4e9ee;padding:10px 0 12px;margin-bottom:10px}.xreport-file-reports-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:7px}.xreport-file-reports-head strong{font-size:11px}.xreport-file-list{display:flex;flex-direction:column;}.xreport-badge{display:inline-flex;width:max-content;padding:2px 6px;border-radius:999px;background:#fff0cf;color:#7e641d;font-size:9px;font-weight:700}.xreport-badge.final{background:#e6f4e9;color:#2f7140}.xreport-final-note{padding:9px;border-radius:6px;background:#edf6ef;color:#356b43;font-size:10px;margin-bottom:10px}@media(max-width:1100px){.xreport-builder{grid-template-columns:160px 1fr}.xreport-properties{grid-column:1/-1;max-height:300px}}@media(max-width:800px){.xreport-layout{grid-template-columns:1fr}.xreport-sidebar{max-height:220px}.xreport-grid,.xreport-template-meta,.xreport-form-columns.cols-2,.xreport-signature-meta{grid-template-columns:1fr}.xreport-builder{grid-template-columns:1fr}.xreport-palette{max-height:190px}.xreport-overlay{padding:5px}.xreport-dialog{width:100%;max-height:98vh;border-radius:7px}}


/* Berichte öffnen über die gesamte Zeile, mit Titel und Metadaten darunter. */
.xreport-file-row{display:grid;grid-template-columns:minmax(0,1fr) max-content;align-items:start;gap:3px 12px}
.xreport-file-description{display:flex;flex-direction:column;gap:3px;min-width:0;overflow-wrap:anywhere}


.xreport-file-row>.xreport-badge{display:inline-flex;justify-self:end;padding:2px 8px;background:#edf2f7;color:#52687a;font-size:11px;font-weight:600;line-height:1.4}
.xreport-file-row>.xreport-badge.final{background:#e5f3ec;color:#256547}


/* Settings use the shared list and dialog components. Legacy classes remain
   for the report builder's formatting, image and preview extensions. */
.xreport-settings-table-scroll { overflow-x:auto; }
.xreport-settings-table-scroll > .xcraft-list { min-width:760px; }
:root .xreport-template-row { display:grid; grid-template-columns:minmax(170px,2fr) minmax(110px,1fr) 65px minmax(150px,1.3fr) 20px; gap:20px; align-items:center; }
:root .xreport-layout-row { display:grid; grid-template-columns:minmax(170px,2fr) minmax(180px,2fr) minmax(170px,1fr) 20px; gap:20px; align-items:center; }
.xreport-settings-table-head { min-width:760px; padding:10px 12px 10px 15px; box-sizing:border-box; font-size:12px; font-weight:600; color:#64748b; }
.xreport-settings-table-scroll .xcraft-list-row > span { min-width:0; overflow-wrap:anywhere; }
:root :is(#xreportTemplateOverlay,#xreportLayoutOverlay).address-edit-overlay { padding:20px; box-sizing:border-box; z-index:99999; background:rgba(15,23,42,.42); backdrop-filter:blur(2px); }
:root :is(#xreportTemplateOverlay,#xreportLayoutOverlay) .address-edit-dialog { border-radius:5px; box-shadow:0 18px 48px rgba(15,23,42,.24); width:min(1280px,96vw); max-height:94vh; }
:root #xreportLayoutOverlay .address-edit-dialog { width:min(760px,96vw); }
:root :is(#xreportTemplateOverlay,#xreportLayoutOverlay) .address-edit-header { background:#fff; padding:12px 16px; }
:root :is(#xreportTemplateOverlay,#xreportLayoutOverlay) .address-edit-title { font-size:17px; font-weight:700; color:#0f172a; }
:root :is(#xreportTemplateOverlay,#xreportLayoutOverlay) .address-edit-body { min-height:0; overflow:auto; padding:14px 16px; }
:root :is(#xreportTemplateOverlay,#xreportLayoutOverlay) .address-edit-footer { background:#fff; padding:10px 16px; align-items:center; flex-wrap:wrap; }
:root :is(#xreportTemplateOverlay,#xreportLayoutOverlay) .address-edit-field { font-size:13px; gap:6px; }
:root :is(#xreportTemplateOverlay,#xreportLayoutOverlay) .address-edit-control { border:1px solid #bccbd5; border-radius:2px; background:#fafafa; color:#0f172a; font-family:inherit; font-size:14px; padding:4px 8px; min-height:28px; box-sizing:border-box; width:100%; }
:root :is(#xreportTemplateOverlay,#xreportLayoutOverlay) textarea.address-edit-control { min-height:82px; }
:root :is(#xreportTemplateOverlay,#xreportLayoutOverlay) .address-edit-control:focus { outline:none; border-color:#063f6c; box-shadow:0 0 0 2px rgba(6,63,108,.12); }
:root :is(#xreportTemplateOverlay,#xreportLayoutOverlay) .address-edit-button { border-radius:2px; min-height:30px; display:inline-flex; align-items:center; justify-content:center; font-size:14px; font-weight:500; }
:root :is(#xreportTemplateOverlay,#xreportLayoutOverlay) .leistung-secondary-danger { display:inline-flex; align-items:center; justify-content:center; min-height:30px; order:-1; margin-right:auto; }
:root :is(#xreportTemplateOverlay,#xreportLayoutOverlay) input[type=checkbox] { accent-color:#063f6c; }
:root #xreportTemplateOverlay .xreport-section-title { width:auto!important; max-width:none!important; flex:1; min-width:0; }
:root #xreportTemplateOverlay [data-section-columns] { width:110px!important; flex:0 0 110px; min-width:105px; }
#xreportTemplateOverlay .xreport-source-note { font-size:12px; white-space:normal; overflow-wrap:anywhere; }
#xreportTemplateOverlay .xreport-field-card { padding-left:32px; }
.xreport-drag-handle { position:absolute; left:3px; top:7px; display:flex; align-items:center; justify-content:center; width:24px; height:26px; padding:0; border:0; background:transparent; color:#64748b; cursor:grab; touch-action:none; }
.xreport-drag-handle .material-icons { font-size:20px; }
.xreport-palette-item[draggable=true] { cursor:grab; touch-action:none; }
.xreport-is-dragging .xreport-column { transition:background .1s; }
.xreport-drop-target { background:#fff9f0; border-color:#f28c18; }
.xreport-drop-marker { height:3px; margin:5px 0; background:#f28c18; border-radius:2px; pointer-events:none; }
@media(max-width:800px) { :root :is(#xreportTemplateOverlay,#xreportLayoutOverlay).address-edit-overlay { padding:8px; } :root :is(#xreportTemplateOverlay,#xreportLayoutOverlay) .address-edit-body { padding:12px; } .xreport-section-head { flex-wrap:wrap; } }

:root .xreport-pattern-modal { z-index:100001; }
