/* Guided offers share the compact controls of the rest of the app. */
.offer-guided{container-type:inline-size;min-width:0}
.offer-guided .offer-composer-heading{margin-bottom:14px}
.offer-guided .offer-composer-heading h3{margin:0 0 4px;font-size:18px}
.offer-guided .offer-composer-heading p,.offer-guided .offer-workflow-panel>header p{margin:0;color:var(--muted);font-size:12px;line-height:1.45}
.offer-guided #mobileOfferForm{gap:14px}
.offer-guided [hidden]{display:none!important}
.offer-guided .offer-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;padding:0;border:0;background:transparent}
.offer-guided .offer-steps button{display:flex;align-items:center;gap:7px;min-width:0;min-height:42px;height:auto;padding:8px;border:1px solid var(--line);border-radius:8px;color:var(--muted);background:var(--surface-soft,#f2f5f8);text-align:left;line-height:1.25;font-size:12px;white-space:normal}
.offer-guided .offer-steps button>span,.offer-guided .offer-workflow-panel>header>span{display:grid;place-items:center;flex:0 0 24px;width:24px;height:24px;border-radius:50%;background:#fff;color:var(--teal);font-size:12px;font-weight:800}
.offer-guided .offer-steps button[aria-current]{color:#fff;background:var(--teal);border-color:var(--teal)}
.offer-guided .offer-workflow-panel{min-width:0;padding:0;border:0;background:transparent}
.offer-guided .offer-workflow-panel>header{display:flex;gap:10px;align-items:flex-start;padding:12px;margin-bottom:12px;border-left:3px solid var(--teal);border-radius:6px;background:#edf2f8}
.offer-guided #offerStep2>header{border-left-color:#477c73;background:#edf6f3}
.offer-guided #offerStep3>header{border-left-color:#7a6795;background:#f3f0f7}
.offer-guided h4{margin:0 0 4px;font-size:15px;line-height:1.3}
.offer-guided .offer-master-data{display:grid;grid-template-columns:1fr;gap:10px}
.offer-guided .offer-derived-customer{padding:9px 11px;background:var(--surface-soft,#f2f5f8)}
.offer-guided .offer-address-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px;border:0;border-radius:0}
.offer-guided .offer-party{min-width:0;align-self:start;border:1px solid var(--line);border-top:3px solid var(--teal);border-radius:9px;overflow:hidden;background:#fff}
.offer-guided .offer-party[data-offer-party=buyer]{border-top-color:#a18751}
.offer-guided .offer-party>summary{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px;padding:11px 12px;font-weight:400}
.offer-guided .offer-party>summary::after{grid-column:2;grid-row:1}
.offer-guided .offer-party-role{grid-column:1;color:var(--muted);font-size:11px;font-weight:750}
.offer-guided .offer-party>summary strong,.offer-guided .offer-party>summary>[data-party-address]{grid-column:1/-1;overflow-wrap:anywhere;line-height:1.4}
.offer-guided .offer-party>summary strong{font-size:14px}
.offer-guided [data-party-address]{font-size:12px;color:var(--muted)}
.offer-guided .offer-party-edit{grid-column:1/-1;color:var(--teal);font-size:11px;font-weight:750}
.offer-guided .offer-party-fields{display:grid;grid-template-columns:minmax(0,.7fr) minmax(0,1.3fr);gap:9px;padding:12px;border-top:1px solid var(--line)}
.offer-guided .offer-party-wide{grid-column:1/-1}
.offer-guided :is(input,select){min-width:0;height:32px;min-height:32px;padding:5px 8px;border-radius:5px}
.offer-guided label{display:grid;grid-template-rows:auto 32px;gap:5px;min-width:0;margin:0!important;font-size:12px;line-height:1.35}
.offer-guided label:has(textarea){grid-template-rows:auto auto}
.offer-guided :is(.offer-master-data,.offer-position-values)>label:not(:has(input[type="checkbox"],input[type="radio"])){grid-row:auto;grid-template-rows:auto 32px;align-self:start}
.offer-guided .offer-conditions{min-width:0;margin:12px 0;padding:12px;border:1px solid var(--line);border-radius:8px}
.offer-guided legend{padding:0 5px;font-size:13px;font-weight:750}
.offer-guided .offer-conditions-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.offer-guided .wide{grid-column:1/-1}
.offer-guided .offer-tax-details{border:1px solid var(--line);border-radius:8px;background:#fff}
.offer-guided .offer-tax-details>summary{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px;padding:10px 12px;font-size:12px}
.offer-guided .offer-tax-details>summary>span{grid-column:1;color:var(--muted);font-weight:400;overflow-wrap:anywhere}
.offer-guided .offer-tax-details>summary>span:last-of-type{color:var(--teal)}
.offer-guided .offer-tax-details>summary::after{grid-column:2;grid-row:1}
.offer-guided .mobile-offer-tax{margin:0 10px 10px;padding:10px;min-width:0}
.offer-guided .mobile-offer-tax>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.offer-guided .offer-save-hint{margin:12px 0 0;font-size:12px;line-height:1.45;color:var(--muted)}
.offer-guided .offer-workflow-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-top:4px}
.offer-guided .offer-workflow-actions button{width:auto;min-width:0;min-height:32px;height:auto;margin:0;padding:7px 12px;line-height:1.3;white-space:normal}
.offer-guided .offer-workflow-actions .primary-action{margin-left:auto}
.offer-guided .mobile-offer-summary{margin:0;padding:11px 12px;background:#edf2f8;border:1px solid var(--line);border-radius:8px}
.offer-guided .offer-section{min-width:0;margin:0 0 12px;padding:12px;border-radius:9px;background:#f5f8fa}
.offer-guided .offer-section-head{margin-bottom:10px}
.offer-guided .offer-add-position{grid-template-columns:repeat(2,minmax(0,1fr));align-items:end;padding:10px!important;margin:0 0 12px;background:#edf4f2;border-radius:7px}
.offer-guided .offer-add-position>label:nth-of-type(3){grid-column:1/-1}
.offer-guided .offer-add-position>button{grid-column:1/-1;justify-self:end;margin:0;min-height:32px}
.offer-guided .offer-position-list{margin-top:0}
.offer-guided .offer-position{grid-template-columns:auto minmax(0,1fr);gap:8px;padding:10px!important}
.offer-guided .offer-position>.offer-move{grid-column:1/-1;justify-content:flex-end}
.offer-guided .offer-position-title small{display:block;margin-bottom:8px;color:var(--muted);font-size:11px}
.offer-guided .offer-position-values{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:8px}
.offer-guided .offer-position textarea{min-height:60px;padding:8px;font-size:12px}
.offer-guided .offer-price-adjustments{margin-top:8px;border:1px solid var(--line);border-radius:6px}
.offer-guided .offer-price-adjustments summary{padding:7px 9px;font-size:11px}
.offer-guided .offer-price-adjustments>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:9px}
.offer-guided .offer-add-group{margin:0;min-height:32px}
.offer-guided .offer-review{display:grid;gap:12px}
.offer-guided .offer-review-context{display:grid;gap:4px;padding:11px 12px;background:#f5f7fa;border:1px solid var(--line);border-radius:8px;font-size:12px;overflow-wrap:anywhere}
.offer-guided .offer-review-context small{color:var(--muted);margin-top:5px}
.offer-guided .offer-review-items h5{margin:0;padding:8px 10px;font-size:12px;background:#edf4f2}
.offer-guided .offer-review-items section{border:1px solid var(--line);border-radius:8px;overflow:hidden}
.offer-guided .offer-review-items section+section{margin-top:10px}
.offer-guided .offer-review-items section>div{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:4px 9px;padding:10px;border-top:1px solid var(--line);font-size:12px;align-items:start}
.offer-guided .offer-review-items strong{white-space:pre-wrap;overflow-wrap:anywhere}
.offer-guided .offer-review-items small{grid-column:2;color:var(--muted)}
.offer-guided .offer-review-items b{grid-column:3;grid-row:1/3;text-align:right;white-space:nowrap}
@container (max-width:560px){.offer-guided .offer-address-grid{grid-template-columns:1fr}.offer-guided .offer-steps button{flex-direction:column;align-items:flex-start;font-size:11px;padding:8px 6px}.offer-guided .offer-steps strong{font-weight:650}.offer-guided .offer-position-values{grid-template-columns:repeat(2,minmax(0,1fr))}.offer-guided .offer-position-values>label:last-child{grid-column:1/-1}.offer-guided .offer-add-position{grid-template-columns:1fr}.offer-guided .mobile-offer-tax>div{grid-template-columns:1fr}.offer-guided .offer-review-items section>div{grid-template-columns:auto minmax(0,1fr)}.offer-guided .offer-review-items b{grid-column:2;grid-row:auto;text-align:left}}

.offer-guided .offer-optional{display:flex;align-items:center;gap:7px;margin:8px 0!important;font-size:11px}.offer-guided .offer-optional input{width:18px;height:18px;min-height:18px;flex:none}.offer-guided [data-offer-rich]:not(:empty){min-height:80px;border:1px solid var(--control-border);border-radius:6px;background:#fff}.offer-guided .offer-rich-toolbar{display:flex;gap:5px;flex-wrap:wrap;margin-bottom:5px}.offer-guided .offer-rich-toolbar button{width:auto;min-height:28px;height:28px;padding:4px 9px;border:1px solid var(--line);border-radius:5px;background:#fff;color:var(--ink);font-size:11px}.offer-guided .offer-composer-heading>.back-link{margin:8px 0 0}
.offer-guided .finance-rich-editor-surface{box-sizing:border-box;min-height:102px;padding:10px 11px;outline:0;white-space:pre-wrap}
.offer-guided .finance-rich-editor-surface p:only-child:has(br)::before{content:'Leistungstext eingeben …';color:#82948f;pointer-events:none}
.offer-guided .finance-rich-editor-surface p,.offer-guided .finance-rich-editor-surface div{margin:0 0 .45em}
.offer-guided .finance-rich-editor-surface ul,.offer-guided .finance-rich-editor-surface ol{margin:.25em 0 .5em;padding-left:1.5em}
.offer-guided .finance-text-tools>button.active{border-color:#0d7d73;background:#d6eee9;color:#075f57}
.offer-guided .finance-rich-editor-surface .ak-font-sans{font-family:Arial,sans-serif}.offer-guided .finance-rich-editor-surface .ak-font-serif{font-family:Georgia,serif}.offer-guided .finance-rich-editor-surface .ak-font-mono{font-family:"Courier New",monospace}
.offer-guided .finance-rich-editor-surface .ak-size-8{font-size:8pt}.offer-guided .finance-rich-editor-surface .ak-size-9{font-size:9pt}.offer-guided .finance-rich-editor-surface .ak-size-10{font-size:10pt}.offer-guided .finance-rich-editor-surface .ak-size-11{font-size:11pt}.offer-guided .finance-rich-editor-surface .ak-size-12{font-size:12pt}.offer-guided .finance-rich-editor-surface .ak-size-14{font-size:14pt}.offer-guided .finance-rich-editor-surface .ak-size-16{font-size:16pt}.offer-guided .finance-rich-editor-surface .ak-size-18{font-size:18pt}
.offer-guided .finance-rich-editor-surface .ak-color-dark{color:#233237}.offer-guided .finance-rich-editor-surface .ak-color-teal{color:#0d756b}.offer-guided .finance-rich-editor-surface .ak-color-blue{color:#155fb2}.offer-guided .finance-rich-editor-surface .ak-color-red{color:#b42318}.offer-guided .finance-rich-editor-surface .ak-color-orange{color:#b54708}.offer-guided .finance-rich-editor-surface .ak-color-gray{color:#667085}
.offer-guided .finance-rich-editor-surface .ak-align-center{text-align:center}.offer-guided .finance-rich-editor-surface .ak-align-right{text-align:right}
.offer-guided .finance-image-tools{display:inline-flex;align-items:center;flex-wrap:wrap;gap:5px;padding-left:6px;border-left:1px solid #bfd4d0}
.offer-guided .finance-image-tools[hidden]{display:none}
.offer-guided .finance-image-tools>select{width:auto;min-width:78px}
.offer-guided .finance-image-tools>.finance-image-delete{border-color:#efc6c1;color:#982f26;background:#fff4f2}
.offer-guided .finance-rich-editor-surface .ak-position-image{display:block;box-sizing:border-box;max-width:100%;margin:10px auto;padding:7px;border:1px solid #b8d4cf;border-radius:10px;background:#f3f8f7;cursor:grab;transition:border-color .15s,box-shadow .15s}
.offer-guided .finance-rich-editor-surface .ak-position-image.ak-image-width-25{width:25%}.offer-guided .finance-rich-editor-surface .ak-position-image.ak-image-width-33{width:33%}.offer-guided .finance-rich-editor-surface .ak-position-image.ak-image-width-50{width:50%}.offer-guided .finance-rich-editor-surface .ak-position-image.ak-image-width-67{width:67%}.offer-guided .finance-rich-editor-surface .ak-position-image.ak-image-width-100{width:100%}
.offer-guided .finance-rich-editor-surface .ak-position-image.ak-image-align-left{margin-left:0;margin-right:auto}.offer-guided .finance-rich-editor-surface .ak-position-image.ak-image-align-center{margin-left:auto;margin-right:auto}.offer-guided .finance-rich-editor-surface .ak-position-image.ak-image-align-right{margin-left:auto;margin-right:0}
.offer-guided .finance-rich-editor-surface .ak-position-image.ProseMirror-selectednode{border-color:#0d7d73;box-shadow:0 0 0 3px rgba(13,125,115,.18)}
.offer-guided .finance-rich-editor-surface .ak-position-image.is-newly-inserted{border-color:#168b5f;box-shadow:0 0 0 4px rgba(22,139,95,.22);animation:finance-photo-confirm 1.8s ease-out}
.offer-guided .finance-rich-editor-surface .ak-position-image img{display:block;width:100%;max-height:280px;border-radius:6px;object-fit:contain;background:#e8f1ef}
.offer-guided .finance-rich-editor-surface .ak-position-image img.is-loading{min-height:100px;opacity:.35}.offer-guided .finance-rich-editor-surface .ak-position-image img.is-error{min-height:70px;border:1px dashed #c85d52}
.offer-guided .finance-rich-editor-surface .ak-position-image figcaption{margin-top:5px;overflow-wrap:anywhere;color:#526c67;font-size:9px;line-height:1.3;text-align:center}