/* Generic Laravel portal behavior hooks. Fachmodul-spezifische Regeln sind bewusst nicht enthalten. */
[data-ui-select-menu],[data-ui-combobox],[data-table-filter-menu],[data-portal-quick-results]{isolation:isolate}
[data-test-system-refresh-progress]{display:grid;gap:8px;margin-top:12px;padding:12px;border:1px solid var(--line);border-radius:10px;background:var(--surface-soft)}
[data-test-system-refresh-progress].is-error{border-color:#c5c5c5;background:var(--danger-bg);color:var(--danger)}
[data-test-system-action-form] button.is-loading{cursor:progress;opacity:.72}
.passkey-status{min-height:19px}.note-count-badge{display:inline-grid;place-items:center;min-width:18px;height:18px;padding:0 4px;border-radius:999px;background:var(--danger);color:#fff;font-size:10px;font-weight:800}
/* 26.9.27.22 — cancellable test-system refresh progress. */
[data-test-system-refresh-progress]{grid-template-columns:minmax(0,1fr) auto;align-items:center}
.test-system-refresh-progress-copy{display:grid;gap:3px;min-width:0}
[data-test-system-cancel-form]{margin:0}
@media(max-width:699px){[data-test-system-refresh-progress]{grid-template-columns:1fr}[data-test-system-cancel-form] .ui-btn{width:100%}}
.invoice-tax-line{padding:12px;border:1px solid var(--line);border-radius:10px;background:var(--surface-soft)}
.invoice-tax-line+.invoice-tax-line{margin-top:8px}

/* 26.10.25.3 — financing utilization bar in financing overview. */
.financing-utilization{display:grid;gap:6px;min-width:0}
.financing-utilization__bar{position:relative;display:block;width:100%;max-width:172px;height:8px;border-radius:999px;background:var(--surface-soft);border:1px solid var(--line);overflow:hidden}
.financing-utilization__fill{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#333333,#929292)}
.smart-table-card .financing-utilization__bar,.smart-table-mobile-card .financing-utilization__bar{max-width:none}

.financing-project-balances__notice{font-size:12px;color:var(--text-muted, #686868);padding:0 16px 12px;line-height:1.45}

/* Financing: primary bank reconciliation, advanced/legacy workflows on demand. */
.financing-advanced-panel{padding:0;overflow:hidden}
.financing-advanced-panel__summary{list-style:none;cursor:pointer;padding:18px 22px;display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:66px}
.financing-advanced-panel__summary::-webkit-details-marker{display:none}
.financing-advanced-panel__summary strong{display:block;font-size:16px;font-weight:700;color:var(--ink)}
.financing-advanced-panel__summary small{display:block;font-size:12px;line-height:1.5;color:var(--muted,#686868);margin-top:4px}
.financing-advanced-panel__summary:focus-visible{outline:2px solid var(--ink);outline-offset:-4px;border-radius:10px}
.financing-advanced-panel__toggle{flex:none;width:26px;height:26px;border:1px solid var(--line);border-radius:7px;display:grid;place-items:center;color:var(--ink)}
.financing-advanced-panel__toggle:before{content:'+';font-size:19px;line-height:1}
.financing-advanced-panel[open] .financing-advanced-panel__toggle:before{content:'−'}
.financing-advanced-panel__content{padding:0 18px 18px;border-top:1px solid var(--line)}
.financing-account-summary-note{margin:12px 0}
@media(max-width:699px){.financing-advanced-panel__summary{padding:14px}.financing-advanced-panel__content{padding:0 12px 14px}}

/* 26.10.28.6: Financing ledger overview, secure invoice lookup and minimal disclosures. */
.financing-overview{margin:0 0 18px}
.financing-overview__heading{display:flex;align-items:center;gap:12px;margin:4px 0 12px}
.financing-overview__heading h2{font-size:16px;font-weight:700;margin:0}
.financing-overview__heading--secondary{margin-top:16px;margin-bottom:8px}
.financing-overview__checks{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.financing-overview__checks>div{border:1px solid var(--line);border-radius:12px;background:var(--surface,#fff);padding:12px 16px;display:grid;gap:5px}
.financing-overview__checks span{font-size:12px;color:var(--muted,#666)}
.financing-overview__checks strong{font-size:17px;font-weight:700}
.financing-overview__checks small{display:block;font-size:11px;line-height:1.45;color:var(--muted,#686868)}
.financing-invoice-lookup{position:relative;max-width:820px;margin:16px 0 22px}
.financing-invoice-lookup>label{display:block;font-weight:700;margin-bottom:7px}
.financing-invoice-lookup__field{display:flex;align-items:center;gap:9px;border:1px solid var(--line);border-radius:10px;padding:0 12px;background:var(--surface,#fff)}
.financing-invoice-lookup__field:focus-within{outline:2px solid var(--ink,#222);outline-offset:2px}
.financing-invoice-lookup__field svg{width:18px;height:18px;flex:none}
.financing-invoice-lookup__field input{width:100%;min-width:0;height:46px;border:none!important;outline:none!important;background:transparent;box-shadow:none!important;font-size:15px}
.financing-invoice-lookup__results{position:absolute;top:calc(100% - 24px);left:0;right:0;z-index:12;max-height:310px;overflow-y:auto;border:1px solid var(--line);border-radius:10px;background:var(--surface,#fff);box-shadow:0 14px 28px rgba(0,0,0,.10)}
.financing-invoice-lookup__result{display:grid;gap:4px;padding:11px 14px;width:100%;border:0;border-bottom:1px solid var(--line);background:transparent;text-align:left;cursor:pointer}
.financing-invoice-lookup__result span{font-size:12px;color:var(--muted,#666)}
.financing-invoice-lookup__result:hover,.financing-invoice-lookup__result:focus-visible{background:var(--surface-soft,#f2f2f2);outline:2px solid var(--ink,#222);outline-offset:-2px}
.financing-invoice-lookup__selected{font-weight:700;line-height:1.5}
.financing-invoice-lookup__amounts{margin:10px 0 14px}
.financing-invoice-lookup__presets{display:flex;flex-wrap:wrap;gap:8px}
.financing-invoice-lookup__presets button[aria-pressed="true"]{background:var(--ink,#333)!important;color:#fff!important}
.financing-section-shortcut{display:flex;flex-wrap:wrap;gap:10px;margin:16px 0}
.financing-legacy-footnote{font-size:12px;padding:8px 14px;margin:10px 0}
@media(max-width:699px){.financing-overview__checks{grid-template-columns:1fr}.financing-invoice-lookup__results{max-height:260px}.financing-overview__metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* 26.10.28.8 – Unified disclosure: arrow immediately before first heading line.
 * Card padding is defined once; no secondary indents/vertical centering on paragraphs. */
.ui-card.financing-advanced-panel{padding:0!important}
.financing-advanced-panel__summary{display:flex;align-items:flex-start;justify-content:flex-start;gap:9px;padding:18px;min-height:0}
.financing-advanced-panel__summary>.financing-advanced-panel__toggle{order:0}
.financing-advanced-panel__summary>.financing-advanced-panel__label{order:1;flex:1;min-width:0}
.financing-advanced-panel__summary .financing-advanced-panel__label strong{font-size:18px;line-height:1.22;margin:0}
.financing-advanced-panel__summary .financing-advanced-panel__label small{margin-top:3px}
.financing-advanced-panel__toggle{order:0;flex:0 0 18px;width:18px;height:22px;margin-top:0;display:flex;align-items:center;justify-content:center;border:0;background:none}
.financing-advanced-panel__toggle:before{content:''!important;display:block;width:0;height:0;border-left:7px solid transparent;border-right:7px solid transparent;border-top:11px solid currentColor;transform:rotate(-90deg);transition:transform .16s ease;transform-origin:center}
.financing-advanced-panel[open] .financing-advanced-panel__toggle:before{transform:rotate(0deg)}
@media(max-width:699px){.financing-advanced-panel__summary{padding:16px;gap:9px}}

/* 26.10.29.1: The banking ledger displays classified movements, not the bank statement. */
.financing-ledger .financing-advanced-panel__content{display:grid;gap:16px;padding:18px 20px 20px}
.financing-ledger__quick-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.financing-ledger__stat{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:6px;min-width:0;padding:0 0 12px;border-bottom:1px solid var(--line)}
.financing-ledger__stat>span{font-size:12px;line-height:1.45;color:var(--muted,#686868)}
.financing-ledger__stat>strong{font-size:17px;line-height:1.35;font-variant-numeric:tabular-nums}
.financing-ledger__source-note{margin:0;font-size:12px;line-height:1.5;color:var(--muted,#686868)}
.financing-ledger__actions{display:flex;justify-content:flex-end;align-items:center;gap:10px}
.financing-ledger__empty{margin:0;padding:16px;border:1px solid var(--line);border-radius:10px;background:var(--surface-soft,#f6f6f6);font-size:13px;line-height:1.5;color:var(--muted,#686868)}
.financing-ledger__footer{display:flex;justify-content:flex-end;align-items:center;padding-top:14px;border-top:1px solid var(--line)}
.financing-ledger__entry-form{margin:0}
.financing-ledger__entry-form>label,.financing-ledger__entry-form>.ui-field{margin:0;align-self:start;min-width:0}
.financing-ledger__entry-form>label>input,.financing-ledger__entry-form>label>.ui-input-unit{margin-top:6px}
.financing-ledger__entry-form .ui-form-actions{margin:6px 0 0}
.financing-ledger__help{margin:16px 0 0;border-top:1px solid var(--line);padding-top:12px}
.financing-ledger__help>summary{cursor:pointer;font-size:13px;font-weight:600;line-height:1.5}
.financing-ledger__help dl{margin:12px 0 0;display:grid;gap:10px}
.financing-ledger__help dl>div{display:grid;grid-template-columns:145px minmax(0,1fr);align-items:start;gap:12px;font-size:12px;line-height:1.5}
.financing-ledger__help dt{font-weight:700}
.financing-ledger__help dd{margin:0;color:var(--muted,#686868)}
#financing-account-transactions{scroll-margin-top:90px}
@media(max-width:699px){.financing-ledger .financing-advanced-panel__content{padding:14px;gap:14px}.financing-ledger__quick-stats{grid-template-columns:1fr;gap:8px}.financing-ledger__stat{padding-bottom:8px}.financing-ledger__help dl>div{grid-template-columns:1fr;gap:2px}}

/* 26.10.29.2 Actionable financing warnings: concise, high-contrast, consistent UI. */
.financing-attention{border:1px solid #dc7777;border-left:4px solid #b4232e;background:#fffafa;border-radius:12px;padding:13px 16px;margin:12px 0 20px;color:#252525}
.financing-attention__head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.financing-attention__head strong{display:flex;align-items:center;gap:9px;font-size:14px;line-height:1.45}
.financing-attention__mark{display:grid;place-items:center;width:20px;height:20px;flex:none;border-radius:50%;background:#a3222a;color:#fff;font-size:14px;font-weight:800}
.financing-attention__items{margin:10px 0 0;padding:0;list-style:none;display:grid;gap:7px}
.financing-attention__items li{display:flex;align-items:baseline;justify-content:space-between;gap:12px;font-size:13px;line-height:1.5}
.financing-attention__items li>a{white-space:nowrap;color:#9f1f2b;font-weight:700;text-decoration:underline;text-underline-offset:2px}
.financing-attention__dialog-lead{margin:0 0 14px;font-size:13px;line-height:1.5}
.financing-attention__dialog-list{display:grid;gap:10px}
.financing-attention__dialog-item{display:grid;gap:7px;border:1px solid #edd2d2;border-left:3px solid #b4232e;border-radius:9px;padding:12px;background:#fff}
.financing-attention__dialog-item strong{font-size:14px;line-height:1.45}
.financing-attention__dialog-item p{margin:0;font-size:13px;line-height:1.5}
.financing-attention__dialog-item .ui-btn{justify-self:start}
.financing-account-review__action-note{display:flex;flex-wrap:wrap;align-items:baseline;gap:8px;margin:0 0 12px;font-size:13px;line-height:1.5}
.financing-account-review__action-note strong{color:#9f1f2b}
@media(max-width:699px){.financing-attention{padding:12px}.financing-attention__head{align-items:flex-start;flex-wrap:wrap}.financing-attention__items li{flex-wrap:wrap;gap:4px}.financing-attention__items li>a{margin-left:auto}}

/* 26.10.29.3 · Unified invoice amount entry. */
.invoice-vat-field,.invoice-gross-field{display:grid;align-content:start;gap:7px;min-width:0}
.invoice-vat-field>label,.invoice-gross-field>label{font-weight:700}
.invoice-vat-field__controls{display:flex;align-items:stretch;gap:8px;min-width:0}
.invoice-vat-field__controls input{flex:1;min-width:0;width:100%}
.invoice-vat-field__controls select{flex:0 0 110px;min-width:90px;max-width:125px;padding-inline:10px}
.invoice-gross-field>input[readonly]{background:var(--surface-soft,#f4f4f4);color:var(--ink,#222);font-weight:700}
.invoice-gross-field__toggle{border:0;background:none;color:var(--ink,#303030);font:inherit;font-size:12px;text-decoration:underline;text-underline-offset:3px;cursor:pointer;padding:0;text-align:left;justify-self:start}
.invoice-gross-field__toggle:focus-visible{outline:2px solid currentColor;outline-offset:3px;border-radius:3px}
.invoice-gross-field__source{display:grid;gap:6px;margin-top:4px}
.invoice-gross-field__source[hidden]{display:none}
.invoice-gross-field__source>label{font-size:12px;font-weight:700}
@media(max-width:520px){.invoice-vat-field__controls select{flex-basis:90px}}

/* Invoice workflow 26.10.29.4: upload before entering data, preview always in sticky page actions. */
.invoice-document-first{border:1px solid var(--line);border-radius:12px;padding:16px;background:var(--surface-soft,#f7f7f7)}
.invoice-document-first>.ui-section-head{margin-bottom:12px}
.invoice-persistent-preview{white-space:nowrap;flex:0 0 auto}
.invoice-persistent-preview[aria-disabled="true"]{opacity:.5;cursor:not-allowed}
@media(max-width:699px){.invoice-persistent-preview{min-height:40px;max-width:46px;width:40px!important;padding:0!important;justify-content:center}.invoice-persistent-preview span{position:absolute!important;width:1px!important;height:1px!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}}

/* Invoice attachments have fixed document type/visibility; keep metadata compact. */
[data-upload-invoice-context="1"] .document-upload-metadata{grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(165px,.65fr)}
@media(max-width:899px){[data-upload-invoice-context="1"] .document-upload-metadata{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:699px){[data-upload-invoice-context="1"] .document-upload-metadata{grid-template-columns:minmax(0,1fr)}}

/* 26.10.29.6: choose the active monetary source directly in the amount labels. */
.invoice-amount-mode-field{display:grid;align-content:start;gap:7px;min-width:0}
.invoice-amount-mode-field__heading{display:flex;align-items:center;gap:8px;min-height:20px;flex-wrap:wrap}
.invoice-amount-mode-field__button{border:0;background:transparent;padding:0;min-height:24px;color:var(--muted,#777);font:inherit;font-weight:700;font-size:inherit;text-align:left;cursor:pointer;text-decoration:none}
.invoice-amount-mode-field.is-active .invoice-amount-mode-field__button{color:var(--ink,#222);text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:4px}
.invoice-amount-mode-field__button:focus-visible{outline:2px solid currentColor;outline-offset:3px;border-radius:2px}
.invoice-amount-mode-field>input[readonly]{background:var(--surface-soft,#f3f3f3);color:var(--muted,#777);opacity:.8;cursor:default}
.invoice-amount-mode-field.is-active>input{background:var(--surface,#fff);color:var(--ink,#222);opacity:1}
.invoice-inline-confidence{display:inline-flex;align-items:center;gap:3px;font-size:11px;line-height:1.3;font-weight:650;padding:2px 6px;border-radius:5px;background:#ededed;color:#454545;white-space:nowrap}
.invoice-inline-confidence.is-low{background:#fff2d7;color:#654c20}
.invoice-inline-confidence.is-medium{background:#efefef;color:#414141}
.invoice-inline-confidence.is-high{background:#e7efe8;color:#284a32}
label:has(>.invoice-inline-confidence){display:flex;flex-wrap:wrap;align-content:start;gap:5px 8px}
label:has(>.invoice-inline-confidence)>input,label:has(>.invoice-inline-confidence)>textarea{flex-basis:100%;min-width:0}

/* Invoice cash payment uses the same disclosure, form spacing and focus rules as other portal forms. */
.invoice-cash-payment{padding:0!important;overflow:hidden}
.invoice-cash-payment__summary{display:flex;align-items:center;gap:10px;cursor:pointer;padding:16px 18px;font-weight:700;list-style:none}
.invoice-cash-payment__summary::-webkit-details-marker{display:none}
.invoice-cash-payment__summary::before{content:"";border-top:6px solid transparent;border-bottom:6px solid transparent;border-left:8px solid currentColor;transition:transform .15s ease;flex:none}
.invoice-cash-payment[open] .invoice-cash-payment__summary::before{transform:rotate(90deg)}
.invoice-cash-payment__summary:focus-visible{outline:2px solid currentColor;outline-offset:-4px}
.invoice-cash-payment__body{padding:0 18px 18px}
.invoice-cash-payment__toggle{display:flex;align-items:center;gap:10px;margin-bottom:12px;font-weight:600;cursor:pointer}
.invoice-cash-payment__toggle input{width:18px;height:18px}
.invoice-cash-payment__body .form-grid{margin-top:8px}
.invoice-cash-payment__body .muted.small{margin-top:12px}

/* Invoice document group: initial large dropzone becomes a compact add-more control. */
[data-upload-invoice-context="1"].has-document-pages .document-dropzone{min-height:58px;padding:12px 16px;display:flex;justify-content:center;align-items:center;gap:10px}
[data-upload-invoice-context="1"].has-document-pages .document-dropzone>svg{width:20px;height:20px;flex-shrink:0}
[data-upload-invoice-context="1"].has-document-pages .document-dropzone>span{display:none}
[data-upload-invoice-context="1"].has-document-pages .document-upload-files{margin-top:10px}
[data-upload-invoice-context="1"] .document-upload-file-head{align-items:center}
[data-upload-invoice-context="1"] .document-upload-file-head .document-upload-page-actions{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
[data-upload-invoice-context="1"] .document-upload-file-name .invoice-document-part{font-size:12px;color:var(--muted);font-weight:700}
[data-document-upload-empty][hidden]{display:none!important}
.invoice-pdf-page-nav{display:flex;align-items:center;gap:10px;margin-right:auto}
.invoice-pdf-page-nav[hidden]{display:none!important}
.invoice-pdf-page-nav [data-pdf-preview-page-indicator]{font-size:13px;white-space:nowrap;font-weight:650}
@media(max-width:699px){.invoice-pdf-page-nav{gap:5px}.invoice-pdf-page-nav .ui-btn{min-height:36px;min-width:36px;padding:6px}.pdf-preview-dialog .ui-dialog-footer{flex-wrap:wrap}}

.invoice-upload-pages-count{margin:4px 0 6px;font-weight:650}
.invoice-upload-pages-count[hidden]{display:none!important}

