.saved-reports{width:min(640px,calc(100% - 32px));max-height:80vh;border:1px solid #bacbe0;border-radius:14px;padding:24px;color:#173455;background:#fff;box-shadow:0 20px 70px #132d5140}.saved-reports::backdrop{background:#102d5266}.saved-reports h2{margin:0 0 8px}.saved-reports p{line-height:1.5}.saved-report-list{display:grid;gap:10px;margin:20px 0;max-height:50vh;overflow:auto}.saved-report-item{display:grid;gap:6px;text-align:left;white-space:normal;overflow-wrap:anywhere;background:#eef4fc;color:#173455;border:1px solid #c5d6ec}.saved-report-item span{font-size:.85em;font-weight:400}.report-toolbar button[hidden]{display:none}@media print{.saved-reports{display:none!important}}

.autosave-status{flex-basis:100%;font-size:12px;color:#526781}@media print{.autosave-status{display:none}}

body.has-report-library{padding-right:310px}.report-library{position:fixed;right:0;top:64px;bottom:0;width:290px;max-height:none;border-radius:0;padding:18px 14px;box-sizing:border-box;overflow:auto;box-shadow:none;border-width:0 0 0 1px}.report-library h2{font-size:18px}.report-library p{font-size:12px;margin:8px 0}.report-library .saved-report-list{max-height:none;margin:12px 0;gap:9px}.report-library details{border-bottom:1px solid #d6dfeb;padding-bottom:8px}.report-library summary{cursor:pointer;font-size:13px;font-weight:600;overflow-wrap:anywhere;padding:8px 0}.report-library .saved-report-item{margin-top:6px;padding:9px;border-radius:5px;text-decoration:none;font-size:12px}.report-library .saved-report-item:hover{background:#dce8f8}@media(max-width:700px){body.has-report-library{padding-right:0}.report-library{position:static;width:auto;margin:16px;border:1px solid #bacbe0;max-height:none}}@media print{body.has-report-library{padding-right:0}}

body.has-embedded-report #report-pages{display:none!important}#embedded-report{display:block;width:100%;height:calc(100dvh - 140px);min-height:550px;border:1px solid #ccd3df;background:#e6e9ee}.saved-report-item[aria-current=page]{border-color:#365ca4;background:#dce8f8}@media print{#embedded-report{display:none}}

body.has-report-library{padding-right:480px}.report-library{width:460px;padding:12px}.report-library h2{font-size:16px}.report-library p{display:none}.report-library .saved-report-list{gap:4px;margin:8px 0}.report-library details{padding-bottom:3px}.report-library summary{padding:5px 0;font-size:12px;line-height:1.3}.report-library .saved-report-item{display:block;margin-top:3px;padding:5px 7px;font-size:11px;line-height:1.3}.report-library .report-branch{border:0}.report-library .report-branch>summary{padding:0;cursor:pointer}.report-library .report-branch>summary>.saved-report-item{display:inline-block;width:calc(100% - 18px);vertical-align:middle}.report-subitems{margin-left:14px;padding-left:7px;border-left:1px solid #ccd3df}@media(max-width:700px){body.has-report-library{padding-right:0}.report-library{width:auto}}

.report-share-mail{display:grid;gap:12px;margin:16px 0}.report-share-mail label{display:grid;gap:6px;font-size:13px;font-weight:600}.report-share-mail input{box-sizing:border-box;width:100%;padding:10px;border:1px solid #bacbe0;border-radius:6px;font:inherit}.report-share-mail button{justify-self:start}.report-share-mail p{font-size:12px;color:#526781;margin:0}.saved-reports textarea{box-sizing:border-box;margin:0 0 12px}

body.has-properties{padding-left:210px}#report-properties{position:fixed;left:0;top:64px;bottom:0;width:210px;box-sizing:border-box;overflow:auto;background:#f5f7fa;border-right:1px solid #ccd3df;padding:12px}#report-properties .report-parameters{display:flex;flex-direction:column;gap:8px;margin:0}#report-properties label{display:flex;flex-direction:column;gap:3px;font:11px Arial;color:#365ca4}#report-properties input,#report-properties textarea{box-sizing:border-box;width:100%;min-width:0;font:12px Arial;padding:5px 6px;border:1px solid #bcc5d4;border-radius:3px;background:#fff;color:#24364c}#report-properties textarea{height:52px;resize:vertical}#report-properties input[type=file]{font-size:10px;padding:4px}#report-properties button{font:11px Arial;align-self:start;padding:5px 7px}body.no-active-report #report-pages{display:none!important}@media(max-width:700px){body.has-properties{padding-left:160px}#report-properties{width:160px;padding:8px}}@media print{#report-properties{display:none}body.has-properties{padding-left:0}}

.library-report-row{display:flex;align-items:center;gap:4px;min-width:0}.library-report-row>.saved-report-item{flex:1;min-width:0}.report-library .report-branch>summary>.library-report-row{display:inline-flex;width:calc(100% - 18px);vertical-align:middle}.report-library .report-item-action{flex:none;box-sizing:border-box;width:24px;height:24px;padding:0;font-size:13px;line-height:22px;background:#edf3fc;color:#365ca4;border:1px solid #bacbe0;border-radius:4px}.report-library .report-item-action:disabled{background:#f0f0f0;border-color:#ddd;color:#aaa;cursor:default}.manufacturer-send form,.manufacturer-send label{display:grid;gap:9px}.manufacturer-send textarea{width:100%;padding:9px;font:14px Arial;border:1px solid #bacbe0;border-radius:5px}.manufacturer-send form button{justify-self:start}

/* Shared full-width toolbar and aligned workspace columns. */
body.report-view.has-properties{padding-top:56px}
body.has-properties .report-toolbar{position:fixed;z-index:20;top:0;left:0;right:0;height:56px;box-sizing:border-box;max-width:none;margin:0;padding:8px 14px;background:#f5f7fa;border-bottom:1px solid #ccd3df;flex-wrap:nowrap}
.report-toolbar .account-bar{margin:0 0 0 16px;padding:0;max-width:none;flex:none}
.report-toolbar .autosave-status{display:none}
body.has-properties #report-properties,body.has-properties .report-library{top:56px}
body.has-properties #embedded-report{height:calc(100dvh - 56px);min-height:0;border:0}
body.has-properties #report-message:not(:empty){position:fixed;z-index:30;bottom:12px;left:222px;margin:0;padding:10px 14px;background:#fff;border:1px solid #ccd3df;border-radius:5px;max-width:600px}
#report-split-slot:empty{display:none}
@media(max-width:900px){.report-toolbar .account-bar span{display:none}.report-toolbar .account-bar{margin-left:0}}
@media print{body.report-view.has-properties{padding-top:0}}

.report-toolbar button:disabled{background:#e9edf2;color:#98a2af;border-color:#d3d8df;cursor:default}

/* Properties occupy the free area in the top toolbar. */
body.report-view.has-properties{padding-left:0;padding-top:var(--workspace-top,100px)}
body.has-properties .report-toolbar{height:auto;min-height:56px;align-items:flex-start;gap:8px}
body.has-properties .report-toolbar>strong{margin:8px 4px 0 0;flex:none}
body.has-properties #report-properties{position:static;flex:1;min-width:200px;width:auto;max-height:180px;overflow:auto;padding:0;border:0;background:transparent}
#report-properties .report-parameters{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:5px 8px}
#report-properties textarea{height:42px}
#report-properties button{align-self:end}
body.has-properties .report-library{top:var(--workspace-top,100px)}
body.has-properties #embedded-report{height:calc(100dvh - var(--workspace-top,100px))}
body.has-properties #report-message:not(:empty){left:12px}
.report-toolbar #report-split-slot,.report-toolbar>#report-share,.report-toolbar>#report-account-save,.report-toolbar>.account-bar{margin-top:4px}
@media(max-width:1100px){body.has-properties .report-toolbar{flex-wrap:wrap}body.has-properties #report-properties{flex-basis:calc(100% - 130px)}}
@media print{body.report-view.has-properties{padding-top:0}}

/* Three rows: title, actions, editable properties. */
body.has-properties .report-toolbar{display:flex;flex-direction:column;align-items:stretch;gap:7px;padding:8px 12px}
body.has-properties .report-toolbar>strong{margin:0;line-height:22px}
.report-functions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;border-top:1px solid #dce4ef;padding-top:7px}
.report-functions .account-bar{margin-left:auto}
.report-fields-row{display:flex;align-items:flex-end;gap:10px;border-top:1px solid #dce4ef;padding-top:7px}
body.has-properties .report-fields-row #report-properties{flex:1;max-height:none;overflow:visible;min-width:0}
#report-properties .report-parameters{grid-template-columns:repeat(7,minmax(95px,1fr)) auto;align-items:end}
#report-properties textarea{height:42px}
#report-properties input:disabled,#report-properties textarea:disabled{background:#e9edf2;color:#98a2af;border-color:#d3d8df}
.report-fields-row>button{flex:none;margin-bottom:0}
@media(max-width:1100px){#report-properties .report-parameters{grid-template-columns:repeat(4,minmax(95px,1fr))}}
@media(max-width:650px){#report-properties .report-parameters{grid-template-columns:repeat(2,minmax(95px,1fr))}}

#report-properties .report-parameters{grid-template-columns:repeat(7,minmax(95px,1fr))}@media(max-width:1100px){#report-properties .report-parameters{grid-template-columns:repeat(4,minmax(95px,1fr))}}@media(max-width:650px){#report-properties .report-parameters{grid-template-columns:repeat(2,minmax(95px,1fr))}}

.report-title-row{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:32px}.report-title-row strong{margin:0;line-height:22px}.report-title-row .account-bar{margin:0 0 0 auto}

#report-properties .report-parameters{grid-template-columns:minmax(95px,.85fr) minmax(110px,1fr) minmax(230px,2.6fr) minmax(130px,1.1fr) minmax(110px,1fr) minmax(150px,1.3fr) 65px}
#report-properties select{box-sizing:border-box;width:100%;height:27px;font:12px Arial;padding:4px;border:1px solid #bcc5d4;border-radius:3px;background:#fff;color:#24364c}
#report-properties select:disabled{background:#e9edf2;color:#98a2af}
@media(max-width:1100px){#report-properties .report-parameters{grid-template-columns:repeat(3,minmax(95px,1fr))}#report-properties label:has(select){max-width:70px}}

/* Reserve the same expander space for all top-level reports. */
.report-library details[data-project]>.library-report-row{margin-left:18px}
.report-library .report-branch>summary{display:flex;align-items:center;list-style:none}
.report-library .report-branch>summary::-webkit-details-marker{display:none}
.report-library .report-branch>summary::before{content:'\25B6';flex:0 0 18px;font-size:10px}
.report-library .report-branch[open]>summary::before{content:'\25BC'}
.report-library .report-branch>summary>.library-report-row{display:flex;flex:1;width:auto;min-width:0}

/* Clear controls, with distinct active, focused and unavailable states. */
body.has-properties .report-toolbar{background:#edf2f8;border-bottom:2px solid #a7b8ce}
.report-functions,.report-fields-row{border-top-color:#bac9dc}
.report-toolbar button{min-height:34px;padding:7px 13px;font-size:12px;font-weight:700;border:1px solid #244985;border-radius:5px;background:#365ca4;color:#fff;box-shadow:0 1px 2px #17345524;cursor:pointer}
.report-toolbar button.secondary{background:#fff;color:#244985;border-color:#6683ae}
.report-toolbar button:not(:disabled):hover{background:#244985;color:#fff;border-color:#173455}
.report-toolbar button:focus-visible,.report-library .report-item-action:focus-visible{outline:3px solid #78a8ed;outline-offset:2px}
.report-toolbar button:disabled{background:#e0e5ec;color:#7a8697;border-color:#c0cad7;box-shadow:none;cursor:default}
#report-properties label{font-size:12px;font-weight:700;color:#29476d;gap:4px}
#report-properties input,#report-properties textarea,#report-properties select{min-height:34px;height:34px;padding:6px 8px;font:13px Arial;color:#182d48;background:#fff;border:1px solid #829bbd;border-radius:4px;box-shadow:inset 0 1px 2px #1734550c}
#report-properties input[type=file]{font-size:11px;padding:5px}
#report-properties input:not(:disabled):hover,#report-properties select:not(:disabled):hover{border-color:#365ca4}
#report-properties input:focus,#report-properties textarea:focus,#report-properties select:focus{border-color:#365ca4;outline:2px solid #9cbae4;outline-offset:1px}
#report-properties input:disabled,#report-properties textarea:disabled,#report-properties select:disabled{background:#e0e5ec;color:#7a8697;border-color:#c0cad7;box-shadow:none}
.report-library .report-item-action{border-color:#829bbd;color:#244985;background:#fff;font-weight:700}
.report-library .report-item-action:not(:disabled):hover{background:#365ca4;color:#fff;border-color:#244985}

.report-subitems{margin-left:26px;padding-left:7px;border-left:1px solid #bdcce0}
.report-document-row{display:flex;align-items:center;gap:4px;margin-top:4px;margin-bottom:4px;min-width:0}
.saved-document-item{flex:1;min-width:0;overflow-wrap:anywhere;font-size:11px;padding:5px 7px;border:1px solid #c5d6ec;border-radius:4px;background:#fff;text-decoration:none;color:#29476d}
.report-document-row input[type=checkbox]{width:18px;height:18px;flex:none;margin:0 3px;accent-color:#365ca4;cursor:pointer}

/* Left library; report and document actions are part of their tiles. */
body.report-view.has-properties.has-report-library{padding-left:480px;padding-right:0}
body.has-properties .report-library{left:0;right:auto;border-width:0 1px 0 0}
body.has-properties #report-message:not(:empty){left:492px}
.report-library .library-report-row,.report-library .report-document-row{box-sizing:border-box;border:1px solid #c5d6ec;border-radius:5px;background:#eef4fc;padding:2px 4px 2px 0;gap:3px;margin-top:3px}
.report-library .report-document-row{background:#fff}
.report-document-row details.saved-document-item{display:block;min-width:0}
.report-document-row details.saved-document-item summary{cursor:pointer;overflow-wrap:anywhere}
.report-document-row details.saved-document-item>a,.report-document-row details.saved-document-item>button{display:block;margin:5px 0 0 12px;font-size:11px}
.report-library .library-report-row:hover,.report-library .report-document-row:hover{border-color:#829bbd;background:#e5eefb}
.report-library .library-report-row{position:relative}
.report-library .report-heir-widget{position:absolute;left:-1px;top:-1px;width:19px;height:19px;z-index:20}
.report-library .report-heir-corner{display:block;width:19px;height:19px;background:#d62828;clip-path:polygon(0 0,100% 0,0 100%);cursor:help}
.report-library .report-heir-corner.inactive{background:#8793a3}
.report-library .report-heir-corner:focus-visible{outline:2px solid #365ca4;outline-offset:2px}
.report-library .report-heir-tooltip{display:none;position:absolute;left:16px;top:0;min-width:210px;max-width:360px;padding:8px 10px;border:1px solid #aabbd1;border-radius:5px;background:#fff;color:#173455;box-shadow:0 6px 22px #172b4a35;font:11px/1.45 Arial;white-space:normal;overflow-wrap:anywhere}
.report-library .report-heir-widget:hover .report-heir-tooltip,.report-library .report-heir-widget:focus-within .report-heir-tooltip{display:block}
.report-library .report-heir-node{display:block;white-space:nowrap}
.report-library .report-heir-node.inactive{color:#8793a3}
.report-library .saved-report-list{overflow:visible}
.report-library .library-report-row:has([aria-current=page]){border-color:#365ca4;background:#dce8f8}
.report-library .library-report-row>.saved-report-item,.report-library .report-document-row>.saved-document-item{border:0;background:transparent;margin:0;box-shadow:none;padding:5px 7px;border-radius:3px}
.report-library .library-report-row>.saved-report-item:hover,.report-library .report-document-row>.saved-document-item:hover{background:transparent}
.report-library .report-item-action{border:0;background:transparent;box-shadow:none;width:23px;height:23px;line-height:21px}
.report-library .report-item-action:disabled{border:0;background:transparent;color:#a0aaba}
.report-library .report-document-row input[type=checkbox]{margin:0 3px}
@media(max-width:700px){body.report-view.has-properties.has-report-library{padding-left:0;padding-right:0}body.has-properties .report-library{border:1px solid #bacbe0}body.has-properties #report-message:not(:empty){left:12px}}
@media print{body.report-view.has-properties.has-report-library{padding-left:0}}
.label-format-dialog{width:min(560px,calc(100vw - 48px));box-sizing:border-box;border:1px solid #bacbe0;border-radius:14px;padding:24px;color:#193858;background:white;box-shadow:0 20px 70px #19385855}
.label-format-dialog::backdrop{background:#19385866}
.label-format-dialog h2{margin:0 0 20px}.label-format-dialog label{display:block;font-weight:bold}.label-format-dialog select{display:block;width:100%;padding:12px;margin-top:8px;border:1px solid #829bbd;border-radius:5px;background:white;color:#193858;font:inherit}
.label-format-dialog p{line-height:1.45}.label-format-dialog>div{margin-top:20px;display:flex;justify-content:flex-end;gap:12px}.label-format-dialog button{padding:10px 16px;border:1px solid #365ca4;border-radius:5px;background:#365ca4;color:white;font-weight:bold;cursor:pointer}

#report-properties label[data-parameter="Bauvorhaben"],#report-properties label[data-parameter="Bauvorhaben_Ort"]{order:1;grid-column:span 2}
#report-properties label[data-parameter="Bauvorhaben_Strasse"]{order:1;grid-column:span 3}
@media(max-width:1100px){#report-properties label[data-parameter^="Bauvorhaben"]{grid-column:auto;max-width:none}}

.report-command-menu,.report-command-submenu{position:relative}
.report-command-panel{position:absolute;top:calc(100% + 4px);left:0;min-width:210px;padding:6px;background:#fff;border:1px solid #a7b8ce;border-radius:6px;box-shadow:0 8px 24px #17345530;z-index:30}
.report-command-panel[hidden]{display:none}
.report-command-panel>button,.report-command-panel>span>button,.report-command-submenu>button{display:block;width:100%;text-align:left;margin:0!important;white-space:nowrap}
.report-command-panel>button+button,.report-command-submenu{margin-top:5px}
.report-command-submenu>.report-command-panel{left:100%;top:0;margin-left:6px}
.report-information-panel{width:360px;max-height:calc(100dvh - 155px);overflow:auto;box-sizing:border-box}
.report-information-panel .report-fields-row{display:flex;flex-direction:column;align-items:stretch;border:0;padding:4px;gap:14px}
body.has-properties .report-information-panel #report-properties{position:static;width:100%;min-width:0;max-height:none;overflow:visible;flex:none;padding:0;border:0}
.report-information-panel #report-properties .report-parameters{display:flex;flex-direction:column;align-items:stretch;gap:10px}
.report-information-panel #report-properties label{order:0;max-width:none;grid-column:auto}
.report-information-panel #report-properties label:has(select){max-width:90px}
.report-information-panel .report-fields-row>button{width:100%;margin:0}
@media(max-width:650px){.report-command-submenu>.report-information-panel{position:fixed;top:145px;left:10px;right:10px;margin:0;width:auto;max-height:calc(100dvh - 160px)}}

.report-save-actions{display:flex;gap:8px}.report-save-actions button{flex:1;white-space:nowrap;padding-left:8px;padding-right:8px}

/* Matching white command and document tiles. */
.report-command-panel>button,.report-command-panel>.report-command-submenu>button{background:#fff;color:#244985;border:1px solid #aebfda;box-shadow:none;text-align:left}
.report-command-panel>button:not(:disabled):hover,.report-command-panel>.report-command-submenu>button:not(:disabled):hover{background:#eef4fc;color:#173455;border-color:#829bbd}
.report-command-panel>button+button,.report-command-panel>.report-command-submenu{margin-top:6px}
.report-library .report-document-row{background:#fff;margin-top:6px;margin-bottom:6px;padding:2px 4px;min-height:32px}
.report-library .report-document-row:hover{background:#fff}
.report-library .report-document-row>.saved-document-item:hover{background:transparent}
.report-document-row details.saved-document-item summary{padding:5px 0}
.report-title-row .manager-brand{display:inline-flex;align-items:flex-start;gap:3px;white-space:nowrap}
.manager-brand sup{display:inline-block;position:relative;top:-5px;line-height:0}
.manager-brand sup img{display:block;width:25px;height:auto}
.mail-draft-dialog{width:min(520px,calc(100vw - 32px))}
.mail-draft-dialog .draft-download{display:inline-block;padding:10px 15px;margin:8px 0 14px;border:1px solid #244985;border-radius:5px;background:#365ca4;color:#fff;font-weight:700;text-decoration:none}
.mail-draft-dialog .draft-download[hidden]{display:none}
.mail-draft-dialog .draft-download:hover{background:#244985}
#report-top-save{display:inline-flex;align-items:center;justify-content:center;min-width:96px}
#report-top-save:disabled{background:#e9edf2;border-color:#d3d8df;color:#98a2af}
#report-top-save.pending{background:#c52732;border-color:#a91d27;color:#fff}
#report-top-save.pending:hover{background:#a91d27}
.report-library .report-inbox .library-report-row{background:#fff0d8;border-color:#e6a34b}
.report-library .report-inbox .library-report-row:hover{background:#ffe6bd;border-color:#c98323}
.report-library .report-inbox .library-report-row:has([aria-current=page]){background:#ffdb9e;border-color:#b96c10}
.report-library .library-report-row:is(.sender-deactivated,.self-archived),.report-library .library-report-row:is(.sender-deactivated,.self-archived):hover,.report-library .library-report-row:is(.sender-deactivated,.self-archived):has([aria-current=page]){background:#d9d9d9;border-color:#a5a5a5;color:#414141}
.report-library .library-report-row:is(.sender-deactivated,.self-archived) .saved-report-item,.report-library .library-report-row:is(.sender-deactivated,.self-archived) .report-item-action{color:#414141}
.report-library .report-library-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}
.report-library .report-library-heading h2{margin:0}
.report-library .report-archive-toggle{display:inline-flex;align-items:center;gap:5px;color:#334b68;font-size:11px;font-weight:600;white-space:nowrap;cursor:pointer}
.report-library .report-archive-toggle input{width:14px;height:14px;margin:0;accent-color:#365ca4}
.report-library .report-signal{display:inline-flex;flex:none;flex-direction:row;align-items:center;justify-content:center;gap:2px;box-sizing:border-box;width:43px;height:18px;margin:0 3px;padding:2px;border:1px solid #778493;border-radius:5px;background:#34404d}
.report-library .report-signal:disabled{opacity:1;cursor:help}
.report-library .signal-light{display:block;box-sizing:border-box;width:10px;height:10px;min-width:10px;min-height:10px;margin:0;padding:0;border-radius:50%;border:1px solid #81909e;background:#65717c;cursor:pointer}
.report-library .signal-light:disabled{opacity:1;cursor:not-allowed}
.report-library .signal-light.red{background:#875054;border-color:#a66b70}
.report-library .signal-light.yellow{background:#9c8b4d;border-color:#b8a45e}
.report-library .signal-light.green{background:#4e8060;border-color:#679f78}
.report-library .signal-light.red.lit{background:#e34141;border-color:#ff7777;box-shadow:0 0 4px #e34141}
.report-library .signal-light.yellow.lit{background:#f7ce32;border-color:#ffe074;box-shadow:0 0 4px #f7ce32}
.report-library .signal-light.green.lit{background:#2ac563;border-color:#74e99a;box-shadow:0 0 4px #2ac563}
body.has-report-library{padding-right:576px}
.report-library{width:552px}
body.report-view.has-properties.has-report-library{padding-left:552px;padding-right:0}
body.has-properties #report-message:not(:empty){left:564px}
@media(max-width:700px){body.has-report-library{padding-right:0}.report-library{width:auto}body.report-view.has-properties.has-report-library{padding-left:0}body.has-properties #report-message:not(:empty){left:12px}}
