/* Stable header geometry and compact attachment upload. */
.stage-navigation-enabled .topbar .nav-scroller{max-height:var(--nav-expanded-height,40px);transition:max-height 280ms cubic-bezier(.22,.7,.2,1),opacity 200ms ease,transform 280ms cubic-bezier(.22,.7,.2,1)!important}
.stage-navigation-enabled .deal-stage-nav{transition:top 280ms cubic-bezier(.22,.7,.2,1),box-shadow 200ms ease;overflow-anchor:none}
.stage-navigation-enabled .deal-editor-main>.form-panel{border:0!important;box-shadow:none!important;border-radius:0!important;padding:0!important;background:transparent!important}
.stage-navigation-enabled .stage-navigation-form>details.stage-section{padding:8px 0!important}
.stage-navigation-enabled .stage-navigation-form input,.stage-navigation-enabled .stage-navigation-form select,.stage-navigation-enabled .stage-navigation-form textarea{touch-action:pan-y}
html[data-theme=light] .stage-nav-node.past-stage{border:2px solid #24835f;color:#176344;background:#effaf4;font-weight:700}
html[data-theme=light] .stage-nav-node.actual-stage{border:2px solid #24835f;box-shadow:0 0 0 2px #c4e6d4}
.stage-nav-timeline button[aria-pressed=true] .stage-nav-node{border-width:2px}
.dl-upload-panel{box-sizing:border-box;max-height:calc(100dvh - 24px)!important;padding:14px!important;overscroll-behavior:contain;scroll-padding-bottom:64px}
.dl-upload-panel #dl-upload-form{gap:8px!important}
.dl-upload-panel p{margin:4px 0!important;line-height:1.35}
.dl-upload-panel fieldset{gap:2px!important;margin:0!important;min-width:0}
.dl-upload-panel legend{margin-bottom:3px!important}
.dl-upload-panel fieldset label{box-sizing:border-box;min-height:44px!important;height:auto!important;padding:5px 7px!important;margin:0!important;line-height:1.3}
.dl-upload-panel input[type=radio]{appearance:auto!important;flex:0 0 18px!important;width:18px!important;height:18px!important;min-height:18px!important;padding:0!important;margin:0!important;border-radius:50%;accent-color:#6257df;box-shadow:none!important;outline:none!important;background:transparent!important}
.dl-upload-panel input[type=radio]:focus-visible{outline:2px solid #6257df!important;outline-offset:3px}
.dl-upload-panel .upload-quotation-fields{gap:8px!important;margin:0!important}
.dl-upload-panel label:not(:has(input[type=radio])){gap:4px!important;margin:0!important;font-size:12px}
.dl-upload-panel input:not([type=radio]):not([type=hidden]):not([type=file]){min-height:40px!important;height:40px!important;padding:7px 8px!important}
.dl-upload-panel #dl-upload-permissions{font-size:11px}
.dl-upload-panel footer{position:sticky;bottom:-14px;background:var(--sd-canvas,var(--white));z-index:2;padding:10px 0 8px;margin:0!important;border-top:1px solid var(--sd-rule,var(--line))}
/* Each open stage owns its sticky summary; the next stage pushes it away. */
.pipeline-stage{overflow:visible!important}
.pipeline-stage[open]>.pipeline-stage-summary{position:sticky;top:var(--pipeline-sticky-top,108px);z-index:15;background:var(--sd-canvas,var(--white));border-radius:10px;box-shadow:0 3px 8px #24324712;transition:box-shadow 200ms ease}
.pipeline-stage>.pipeline-archive-content,.pipeline-stage>.pipeline-archive-content .pipeline-cards{overflow:visible!important;max-height:none!important}
.pipeline-stage-summary{scroll-margin-top:var(--pipeline-sticky-top,108px)}
@media(prefers-reduced-motion:reduce){.stage-navigation-enabled .topbar .nav-scroller,.stage-navigation-enabled .deal-stage-nav,.pipeline-stage-summary{transition:none!important}}

@media(max-width:1100px){body.stage-navigation-enabled>.topbar{min-height:60px!important;grid-template-rows:auto auto;align-content:start}}
