/* Flow approved layout, 2 October 2026 */
body.flow-modern{background:#f6f8fb!important;color:#222c3c!important;font-family:'Segoe UI',Arial,sans-serif!important}.flow-modern .shell.flow-main-shell{display:block!important;min-height:100vh;background:#f6f8fb!important;font-family:inherit!important}.flow-modern .workspace{width:100%!important;min-width:0}.flow-modern .workspace>.content,.sales-workspace.flow-modern .shell>.workspace>.content{max-width:1280px!important;width:100%;margin:auto!important;padding:30px 34px 50px!important;color:#222c3c!important;font-family:inherit!important}.flow-modern [hidden]{display:none!important}.flow-modern a:focus-visible,.flow-modern button:focus-visible{outline:3px solid #eaa07d!important;outline-offset:3px}.flow-header{background:#fff;border-bottom:1px solid #e5e9ef;position:relative;z-index:20}.flow-header-inner,.flow-nav-inner{max-width:1280px;margin:auto;padding:0 34px;display:flex;align-items:center;gap:25px}.flow-header-inner{min-height:76px}.flow-brand{display:flex;gap:12px;align-items:center;margin-right:auto}.flow-brand img{width:40px;height:40px;object-fit:contain;border-radius:9px}.flow-brand strong{display:block;font-size:22px;font-weight:700;line-height:1.2;letter-spacing:-.5px}.flow-brand small{display:block;font-size:11px;color:#667184;margin-top:3px;letter-spacing:0;text-transform:none}.flow-global-search input{width:260px;border:1px solid #e5e9ef;background:#f8f9fb;border-radius:8px;padding:10px 12px;font-size:12px;color:#222c3c}.flow-user{display:flex;gap:12px;align-items:center;font-size:12px;color:#667184}.flow-user form{margin:0}.flow-user button{color:#667184!important;font-size:11px!important;background:none!important;border:0!important;box-shadow:none!important;padding:4px!important}.flow-main-nav{display:flex;gap:26px;min-width:0;overflow:auto}:is(.flow-main-nav>a,.flow-main-nav .flow-nav-item>a:first-child),.flow-more>summary{display:block;padding:14px 0;border:0;border-bottom:3px solid transparent;color:#637085;font-size:14px;font-weight:600;white-space:nowrap;cursor:pointer;background:none;border-radius:0;box-shadow:none;text-transform:none;letter-spacing:0}:is(.flow-main-nav>a,.flow-main-nav .flow-nav-item>a:first-child):hover,.flow-more>summary:hover{color:#bb411f}:is(.flow-main-nav>a,.flow-main-nav .flow-nav-item>a:first-child).active{border-bottom-color:#bb411f;color:#bb411f}.flow-more{position:relative;margin:0!important;flex-shrink:0}.flow-more>summary{list-style:none}.flow-more>summary::-webkit-details-marker{display:none}.flow-more>summary span{padding-left:5px}.flow-more-panel{position:absolute;top:calc(100% + 5px);right:0;width:570px;max-width:calc(100vw - 36px);max-height:75vh;overflow:auto;border:1px solid #e5e9ef;background:white;border-radius:12px;box-shadow:0 12px 35px #24304a18;display:grid;grid-template-columns:1fr 1fr;gap:20px;padding:22px}.flow-more-panel section{min-width:0}.flow-more-panel strong{display:block;font-size:11px;color:#667184;margin:0 0 6px}.flow-more-panel a{display:block;padding:7px 9px;font-size:13px;color:#222c3c;border-radius:6px}.flow-more-panel a:hover{background:#fff1eb;color:#bb411f}.flow-modern .page-head{align-items:center!important;gap:18px!important;margin-bottom:25px!important}.flow-modern .page-head h1{font-size:28px!important;font-weight:650!important;line-height:1.25!important;letter-spacing:-.7px!important;text-transform:none!important;font-family:inherit!important;margin:0 0 6px!important}.flow-modern .page-head p{font-size:13px!important;color:#667184!important}.flow-modern .content>.page-head .eyebrow{display:none}.flow-modern .content h2,.flow-modern .content h3{font-family:inherit!important;text-transform:none!important;letter-spacing:0!important;color:#222c3c!important}.flow-modern .content h2{font-size:17px!important;font-weight:650!important;line-height:1.4}.flow-modern .content h3{font-size:14px!important;font-weight:650!important}.flow-modern .content .card{background:#fff!important;border:1px solid #e5e9ef!important;border-radius:12px!important;box-shadow:none!important;min-height:0!important;margin-bottom:20px;color:#222c3c!important}.flow-modern .content .primary,.flow-modern .content .secondary,.flow-modern .content .danger{font:600 13px/1.4 'Segoe UI',Arial,sans-serif!important;padding:10px 15px!important;border-radius:8px!important;box-shadow:none!important;letter-spacing:0!important;text-transform:none!important;display:inline-flex;align-items:center;justify-content:center;gap:6px;max-width:100%;white-space:normal}.flow-modern .content .primary{background:#bb411f!important;border:1px solid #bb411f!important;color:#fff!important}.flow-modern .content .primary:hover{background:#9c3317!important}.flow-modern .content .secondary{background:#fff!important;color:#344054!important;border:1px solid #dce2ea!important}.flow-modern .content .secondary:hover{background:#f3f5f8!important}.flow-modern .content .danger{background:#fff4f2!important;color:#a12d26!important;border:1px solid #edc9c4!important}.flow-modern .content .text-link{color:#bb411f!important;font-weight:600!important}.flow-modern .content .text-link:hover{text-decoration:underline}.flow-modern .content .hint,.flow-modern .content .lookup-note{font-size:12px!important;color:#667184!important;line-height:1.6}.flow-modern .content .notice{background:#eff4fa!important;border:1px solid #e0e8f2!important;color:#45617e!important;border-radius:8px;padding:13px 17px;font-size:12px}.flow-modern .content input:not([type=checkbox]):not([type=radio]),.flow-modern .content select,.flow-modern .content textarea{font:13px/1.5 'Segoe UI',Arial,sans-serif!important;border:1px solid #dce2e9!important;background:#fff!important;color:#222c3c!important;border-radius:7px!important;padding:10px 12px!important;box-shadow:none!important;max-width:100%}.flow-modern .content input:disabled,.flow-modern .content select:disabled,.flow-modern .content textarea:disabled{background:#f5f7fa!important;color:#627086!important;opacity:1!important}.flow-modern .content label{font-family:inherit!important;font-size:12px!important;letter-spacing:0!important;text-transform:none!important}.flow-modern .content .stats{gap:16px;margin-bottom:24px}.flow-modern .content .stats a{border:1px solid #e5e9ef!important;border-radius:12px!important;background:white!important;box-shadow:none!important;padding:18px 20px!important}.flow-modern .stats a:hover{border-color:#bbc5d4!important}.flow-modern .stats a>span{font-size:13px!important;color:#667184!important}.flow-modern .stats a>strong{font-size:28px!important;color:#222c3c!important;margin:8px 0 2px!important;line-height:1.4;font-weight:650!important}.flow-modern .stats a>small{display:block;font-size:11px;color:#667184}.flow-dashboard{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:22px;align-items:start}.flow-modern .flow-list-card{padding:0!important;overflow:hidden}.flow-card-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:19px 22px;border-bottom:1px solid #e5e9ef}.flow-card-head h2{margin:0!important}.flow-card-head .text-link{font-size:12px}.flow-table-scroll{overflow-x:auto}.flow-table{border-collapse:collapse;width:100%;text-align:left;font:13px/1.5 'Segoe UI',Arial,sans-serif}.flow-table th{background:#fafbfc;color:#69758a;padding:12px 18px;font-size:11px;font-weight:650;border-bottom:1px solid #e5e9ef;white-space:nowrap}.flow-table td{padding:16px 18px;border-bottom:1px solid #eef1f5;vertical-align:middle;font-size:13px;color:#222c3c}.flow-table tr:last-child td{border-bottom:0}.flow-table tr[data-flow-open]{cursor:pointer}.flow-table tr[data-flow-open]:hover td{background:#fbf5f1}.flow-table td strong{display:block;font-weight:600;font-size:13px;overflow-wrap:anywhere;min-width:130px}.flow-table td small{display:block;font-size:11px;color:#667184;margin-top:3px;max-width:350px;overflow-wrap:anywhere}.flow-table td:first-child{white-space:nowrap}.flow-money{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums;font-weight:600}.flow-modern .content .flow-open{font-size:12px!important;padding:6px 10px!important;white-space:nowrap}.flow-status{display:inline-flex;align-items:center;font-size:11px;font-weight:600;padding:4px 9px;border-radius:18px;background:#edf3fd;color:#315991;white-space:nowrap}.flow-status[data-status=planned],.flow-status[data-status=accepted],.flow-status[data-status=sent]{background:#f1edfb;color:#635099}.flow-status[data-status=active],.flow-status[data-status=in_progress],.flow-status[data-status=issued]{background:#fff1e6;color:#93481b}.flow-status[data-status=completed],.flow-status[data-status=closed],.flow-status[data-status=paid]{background:#eaf6ef;color:#256242}.flow-quick-links{display:grid}.flow-quick-links>a{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid #eef1f5;font-size:13px}.flow-quick-links>a:last-child{border-bottom:0}.flow-quick-links>a:hover{color:#bb411f}.flow-modern .content .sales-board{grid-template-columns:1fr!important;margin-top:0!important;gap:0!important}.flow-modern .flow-list-mode>.sales-detail{display:none!important}.flow-modern .flow-detail-mode>.sales-list{display:none!important}.flow-modern .flow-detail-mode>.sales-detail{border:0!important;background:transparent!important;overflow:visible!important}.flow-modern .flow-detail-mode .sales-panel{background:#fff;border:1px solid #e5e9ef;border-radius:12px}.flow-modern .flow-detail-mode .flow-order-summary{padding:0!important;background:transparent;border:0}.flow-modern .content:has(.flow-detail-mode)>.page-head{display:none!important}.flow-modern .content .sales-tools{padding:20px 22px;border-color:#e5e9ef}.flow-modern .sales-search input,.flow-modern .sales-search select{background:#fff!important}.flow-modern .sales-count{font-size:12px;color:#667184;opacity:1}.flow-modern .sales-links{gap:22px}.flow-modern .sales-links a{padding:9px 0 10px;border-bottom:3px solid transparent;font-weight:600;color:#667184}.flow-modern .sales-links a.flow-current{border-color:#bb411f;color:#bb411f}.flow-modern .sales-back{font-size:12px;color:#bb411f;font-weight:600;margin:0 0 16px!important;display:block;width:max-content;max-width:100%}.flow-modern .flow-detail-title h1{font-size:28px!important;font-weight:650!important;letter-spacing:-.7px!important;margin:0 0 6px!important}.flow-modern .flow-detail-title .sales-actions{margin-top:0!important;align-items:center;justify-content:flex-end}.flow-modern .flow-detail-title .sales-actions form{margin:0}.flow-detail-tabs{display:flex;gap:5px;flex-wrap:wrap;margin:0 0 20px}.flow-detail-tabs button{font:600 13px/1.5 'Segoe UI',Arial,sans-serif;background:none!important;box-shadow:none!important;border:1px solid transparent!important;color:#667184!important;padding:9px 15px!important;border-radius:7px!important;text-transform:none!important;letter-spacing:0!important}.flow-detail-tabs button[aria-selected=true]{background:#fff!important;border-color:#e5e9ef!important;color:#222c3c!important}.flow-detail-tabs button:hover{background:white!important}.flow-order-summary>section[data-flow-section]{padding:24px;background:#fff;border:1px solid #e5e9ef;border-radius:12px;min-width:0}.flow-detail-grid{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:28px}.flow-modern .flow-detail-grid h3{margin-top:0!important}.flow-modern .flow-detail-grid .sales-metadata{margin:12px 0 0!important;border:0!important;padding:0!important;grid-template-columns:repeat(2,1fr);gap:20px}.flow-modern .sales-metadata dt{color:#667184;opacity:1!important}.flow-modern .sales-metadata dd{font-size:13px!important}.flow-total-box{background:#f8fafc;padding:20px;border-radius:10px;align-self:start}.flow-document-row{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:17px;border:1px solid #e5e9ef;border-radius:8px}.flow-document-row small{display:block;color:#667184;font-size:12px}.flow-history{padding:0;margin:0;list-style:none}.flow-history li{padding:15px 0;border-bottom:1px solid #eef1f5}.flow-history li strong{display:block;font-size:13px}.flow-history li span{font-size:12px;color:#667184}.flow-modern .order-editor .page-head{flex-wrap:wrap}.flow-modern .order-editor .form-grid{gap:16px}.flow-modern .order-item{border:1px solid #e0e6ee!important;border-radius:9px!important;background:#fafbfc!important;padding:18px!important}.flow-modern .order-totals{background:#f8fafc!important;border:1px solid #e5e9ef!important;border-radius:10px;padding:20px!important}.flow-modern .order-lifecycle{margin-top:20px}.flow-modern .sales-panel>.sales-kicker{display:block;color:#667184;font-size:12px}.flow-modern dialog.address-dialog{background:#fff!important;border:1px solid #e5e9ef!important;border-radius:14px!important;box-shadow:0 20px 70px #14233430!important}.flow-modern dialog::backdrop{background:#15233c50!important}.flow-modern dialog .card{margin-bottom:0!important}.flow-modern .sales-empty{font-size:13px}.flow-modern .flow-detail-mode .sales-panel h2{font-size:25px!important}.flow-modern .position-actions{gap:10px}.flow-modern .empty{background:#f8fafc!important;color:#667184!important;font-size:13px!important}.flow-modern .content>.card>.flow-table-scroll{margin-left:-24px;margin-right:-24px}.flow-modern .flow-order-summary [data-flow-section=positions]>.secondary{margin-top:20px}
@media(max-width:1050px){.flow-header-inner,.flow-nav-inner{padding:0 24px}.flow-modern .workspace>.content,.sales-workspace.flow-modern .shell>.workspace>.content{padding:26px 24px 45px!important}.flow-dashboard{grid-template-columns:1fr!important}.flow-dashboard>aside{display:grid;grid-template-columns:1fr 1fr;gap:20px}.flow-table td,.flow-table th{padding-left:14px;padding-right:14px}.flow-main-nav{gap:23px}.flow-detail-title{flex-wrap:wrap}.flow-modern .flow-detail-title .sales-actions{justify-content:flex-start}.flow-global-search input{width:220px}}
@media(max-width:780px){.flow-header-inner{gap:16px;min-height:68px}.flow-main-nav{gap:18px}:is(.flow-main-nav>a,.flow-main-nav .flow-nav-item>a:first-child),.flow-more>summary{font-size:13px}.flow-nav-inner{gap:18px}.flow-global-search{display:none}.flow-detail-grid{grid-template-columns:1fr}.flow-more-panel{width:470px;right:0}.flow-modern .content .page-head{flex-wrap:wrap}.flow-table .flow-date-col{display:none}.flow-modern .content .card{padding:20px}.flow-modern .flow-list-card{padding:0!important}.flow-modern .sales-detail{padding:0!important}.flow-modern .content>.card>.flow-table-scroll{margin-left:-20px;margin-right:-20px}}
@media(max-width:520px){.flow-header-inner,.flow-nav-inner{padding:0 16px;gap:15px}.flow-header-inner{min-height:65px}.flow-brand strong{font-size:21px}.flow-brand small{font-size:10px;max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.flow-user>span{display:none}.flow-user button{font-size:11px!important}.flow-main-nav{flex:1;gap:18px}.flow-nav-inner{gap:14px}.flow-more-panel{width:calc(100vw - 32px);grid-template-columns:1fr 1fr;padding:16px;gap:12px}.flow-modern .workspace>.content,.sales-workspace.flow-modern .shell>.workspace>.content{padding:22px 16px 40px!important}.flow-modern .content .stats{grid-template-columns:1fr!important;gap:10px}.flow-modern .stats a{display:grid;grid-template-columns:1fr auto;align-items:center}.flow-modern .stats a>strong{grid-column:2;grid-row:1/3;margin:0!important}.flow-modern .stats a>small{grid-column:1}.flow-dashboard>aside{display:block}.flow-modern .page-head h1,.flow-modern .flow-detail-title h1{font-size:24px!important}.flow-table th,.flow-table td{padding:12px 11px;font-size:12px}.flow-table td strong{min-width:130px;font-size:12px}.flow-table td small{max-width:190px}.flow-table th{font-size:10px}.flow-status{font-size:10px;padding:4px 7px}.flow-card-head{padding:17px}.flow-card-head .text-link{white-space:nowrap}.flow-order-summary>section[data-flow-section]{padding:18px}.flow-modern .content .flow-open{font-size:11px!important;padding:6px 8px!important}.flow-modern .content .sales-tools{padding:18px}.flow-modern .sales-links{gap:15px}.flow-modern .sales-search input,.flow-modern .sales-search select{width:100%}.flow-modern .sales-metadata{gap:16px 12px}.flow-modern .content .position-grid{grid-template-columns:1fr 1fr!important}.flow-document-row{flex-wrap:wrap}}
@media print{.flow-header{display:none}.flow-modern .workspace>.content{max-width:none!important;padding:0!important}}

@media(max-width:520px){.flow-table-scroll{overflow:visible!important}.flow-table,.flow-table tbody{display:block;width:100%}.flow-table thead{display:none}.flow-table tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px 12px;padding:16px;border-bottom:1px solid #e5e9ef}.flow-table td{display:block;padding:0!important;border:0!important;min-width:0;white-space:normal}.flow-table td:first-child{grid-row:1;grid-column:1}.flow-table td:nth-child(2){grid-row:2;grid-column:1/-1}.flow-table td:has(.flow-status){grid-row:1;grid-column:2;text-align:right}.flow-table td.flow-money{grid-row:3;grid-column:1;text-align:left;align-self:center}.flow-table td.flow-money:before{content:'Betrag CHF: ';font-size:11px;font-weight:400;color:#667184}.flow-table td:last-child{grid-row:3;grid-column:2;text-align:right}.flow-table td strong{max-width:none;min-width:0;font-size:13px}.flow-table td small{max-width:none}.flow-table tr:last-child{border-bottom:0}.flow-modern .content>.card>.flow-table-scroll{margin-left:-20px;margin-right:-20px}}

/* Shared action hierarchy, status tones and mobile summaries */
.flow-modern .flow-status,.flow-modern .sales-status,.flow-modern .flow-dispatch-status{display:inline-flex;align-items:center;gap:5px;min-height:25px;padding:4px 8px;border:0!important;border-radius:6px!important;font:600 11px/1.35 'Segoe UI',Arial,sans-serif;background:#f1f3f6!important;color:#536174!important;white-space:normal;max-width:100%;vertical-align:middle}
.flow-modern .flow-status:is([data-status=planned],[data-status=planning],[data-status=sent],[data-status=issued],[data-status=accepted]){background:#edf3fb!important;color:#315d8f!important}
.flow-modern .flow-status:is([data-status=in_progress],[data-status=active],[data-status=review],[data-status=clarification]){background:#fff3df!important;color:#8c580d!important}
.flow-modern .flow-status:is([data-status=completed],[data-status=closed],[data-status=paid]){background:#ecf6ef!important;color:#286444!important}
.flow-modern .flow-status:is([data-status=rejected],[data-status=cancelled],[data-status=overdue]){background:#fbeeea!important;color:#a13c2c!important}
.flow-modern .flow-status[data-payment-state=paid]{background:#ecf6ef!important;color:#286444!important}
.flow-modern .flow-status:is([data-payment-state=open],[data-payment-state=partial]){background:#fff3df!important;color:#8c580d!important}
.flow-modern .flow-status[data-payment-state=overdue]{background:#fbeeea!important;color:#a13c2c!important}
.flow-modern .flow-status:is([data-payment-state=draft],[data-payment-state=credit]){background:#f1f3f6!important;color:#536174!important}
.flow-modern .flow-dispatch-status:is([data-dispatch-state=sent],[data-dispatch-state=mail_sent]){background:#edf3fb!important;color:#315d8f!important}
.flow-modern .flow-detail-title .sales-actions{gap:8px;flex-wrap:wrap}
.flow-modern .content .flow-main-action{min-width:120px}
.flow-modern .content .flow-action-quiet{border-color:transparent!important;background:transparent!important;color:#596b80!important}
.flow-modern .content .flow-action-quiet:hover{background:#f1f4f8!important}
.flow-extra-details{margin:22px 0 0;padding-top:16px;border:0;border-top:1px solid #e5e9ef;border-radius:0;background:transparent}
.flow-extra-details summary,.flow-extra-cell summary{cursor:pointer;font-size:12px;font-weight:600;color:#596b80;min-height:32px;display:flex;align-items:center;gap:8px;list-style:none}
.flow-extra-details summary::-webkit-details-marker,.flow-extra-cell summary::-webkit-details-marker{display:none}
.flow-extra-details summary:before,.flow-extra-cell summary:before{content:'+';font-size:16px;font-weight:400;line-height:1}
.flow-extra-details[open]>summary:before,.flow-extra-cell details[open]>summary:before{content:'−'}
.flow-table td.flow-extra-cell{display:none}
.flow-row-metadata{margin:8px 0 0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.flow-row-metadata div{min-width:0}.flow-row-metadata dt{font-size:10px;color:#69758a}.flow-row-metadata dd{margin:3px 0 0;font-size:12px;overflow-wrap:anywhere}
@media(max-width:600px){
.flow-modern .flow-detail-title{display:block!important;margin-bottom:16px!important}
.flow-modern .flow-detail-title .sales-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;width:100%;margin-top:16px!important}
.flow-modern .flow-detail-title .sales-actions>.flow-main-action{grid-column:1/-1;min-height:44px}
.flow-modern .flow-detail-title .sales-actions>a,.flow-modern .flow-detail-title .sales-actions>form{width:100%;margin:0}
.flow-modern .flow-detail-title .sales-actions>form>button{width:100%;height:100%;font-size:12px!important}
.flow-modern .flow-detail-title .sales-actions>.flow-action-quiet{font-size:12px!important}
.flow-detail-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:3px;margin-bottom:14px}
.flow-detail-tabs button{padding:9px 3px!important;font-size:12px!important;min-width:0}
.flow-order-summary>section[data-flow-section]{padding:16px}
.flow-detail-grid{grid-template-columns:minmax(0,1fr);gap:16px}
.flow-detail-primary{display:contents}
.flow-detail-primary>h3{display:none}
.flow-modern .flow-detail-grid .flow-keyfacts{grid-row:1;grid-template-columns:minmax(0,1fr) auto;gap:12px;margin:0!important}
.flow-keyfacts>div:last-child{text-align:right}
.flow-modern .flow-keyfacts dd{margin-top:6px;overflow-wrap:anywhere}
.flow-total-box{grid-row:2;padding:16px;background:#f6f8fb}
.flow-total-box h3{font-size:12px!important;margin:0 0 7px!important}
.flow-total-box .sales-total{font-size:24px!important;margin:0!important;line-height:1.3}
.flow-extra-details{grid-row:3;margin:0;padding-top:10px}
.flow-modern .flow-extra-details .sales-metadata{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 12px;margin-top:12px!important}
}
@media(max-width:520px){
.flow-table .flow-secondary-cell{display:none!important}
.flow-table td.flow-extra-cell{display:block;grid-column:1/-1;grid-row:4;text-align:left}
.flow-table td.flow-money{white-space:nowrap;font-size:14px}
.flow-table td:has(.flow-status){align-self:start}
.flow-table td:last-child{grid-row:3;grid-column:2}
.flow-table tr{gap:8px 12px;padding:14px 16px}
.flow-table td.flow-extra-cell summary{font-size:11px;min-height:28px}
.flow-modern .flow-table td .flow-status{font-size:10px;min-height:23px}
}

.flow-modern .flow-table tr[data-payment-state] td{background:transparent!important}.flow-modern .flow-table tr[data-flow-open]:hover td{background:#f8fafc!important}@media(max-width:520px){.flow-modern .flow-table tr[data-payment-state=paid] td:has(.flow-status)>small{display:none}.flow-total-box .sales-total{display:flex;align-items:center;gap:8px;font-weight:600}.flow-total-box .sales-total .profit-info{font-size:16px;font-weight:400}}

/* Compact position editor */
.flow-modern .content .position-toolbar{display:flex;justify-content:flex-end;gap:8px;margin:12px 0}
.flow-modern .content .position-toolbar button{font-size:12px!important;padding:7px 10px!important}
.flow-modern .order-item>legend{width:100%;max-width:100%;padding:0 0 10px!important}
.flow-modern .content .position-toggle{display:flex!important;align-items:flex-start;justify-content:space-between;gap:14px;width:100%;padding:12px 0 0!important;border:0!important;background:transparent!important;box-shadow:none!important;border-radius:0!important;text-align:left;cursor:pointer;color:#263447!important}
.position-toggle:after{content:'−';font-size:21px;line-height:1;color:#667184;flex:none}
.position-collapsed .position-toggle:after{content:'+'}
.position-summary-text{font-size:13px;font-weight:600;line-height:1.5;min-width:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.position-summary-values{font-size:12px;font-weight:500;color:#667184;white-space:nowrap;margin-left:auto;line-height:1.6}
.flow-modern .order-item.position-collapsed{background:white!important;padding-top:13px!important;padding-bottom:4px!important}
.flow-modern .position-collapsed .position-heading-row>[data-copy],.flow-modern .position-collapsed .position-move-actions{display:none!important}
.flow-modern .position-collapsed .position-heading-row{font-size:11px;color:#667184}
.position-body{padding-top:8px}
.flow-modern .order-item .position-body[hidden]{display:none!important}
.flow-filter-panel{display:contents}
.flow-modern .content .flow-filter-toggle,.flow-active-filters{display:none!important}
@media(max-width:600px){
.flow-compact-filter{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:10px!important;align-items:start!important}
.flow-compact-filter .flow-search-control{grid-column:1;grid-row:1;min-width:0;width:100%!important}
.flow-modern .content .flow-compact-filter label.flow-search-control{font-size:0!important;gap:0}
.flow-modern .content .flow-compact-filter input[type=search]{width:100%!important;min-width:0;font-size:16px!important;min-height:44px}
.flow-modern .content .flow-filter-toggle{display:inline-flex!important;grid-column:2;grid-row:1;min-height:44px;white-space:nowrap;font-size:12px!important}
.flow-filter-panel{display:grid;grid-template-columns:minmax(0,1fr);grid-column:1/-1;gap:12px;padding:12px;background:#f7f9fc;border:1px solid #e5e9ef;border-radius:8px}
.flow-filter-panel[data-open=false]{display:none!important}
.flow-filter-panel select,.flow-filter-panel label{width:100%!important;min-width:0}
.flow-filter-panel .position-actions{margin:0}
.flow-modern .content .flow-active-filters:not([hidden]){display:block!important;grid-column:1/-1;font-size:11px;color:#596b80;padding:0 2px}
.flow-modern .content .position-toggle{display:grid!important;grid-template-columns:minmax(0,1fr) auto;gap:7px 12px}
.position-summary-text{grid-column:1;grid-row:1}
.position-summary-values{grid-column:1;grid-row:2;margin-left:0;font-size:11px;white-space:normal}
.position-toggle:after{grid-column:2;grid-row:1/3;align-self:center}
.flow-modern .order-item{padding:14px!important}
.flow-modern .order-item .position-heading-row{gap:8px}
.flow-modern .content .position-toolbar{justify-content:stretch}.flow-modern .content .position-toolbar button{flex:1;min-height:38px}
}

/* Match existing editor specificity and keep summaries inside each position card. */
body #order-items .order-item.position-collapsed .position-move-actions{display:none!important}
body #order-items .order-item .position-toggle{padding:8px 0!important;border:0!important;background:transparent!important;border-radius:0!important;box-shadow:none!important;min-height:44px!important;text-align:left!important}
body #order-items .order-item.position-collapsed{background:#fff!important;padding-bottom:8px!important}

/* Mobile Formularbreiten und Bedienung, 20261023 */
.flow-modern .flow-main-shell,.flow-modern .workspace,.flow-modern .content{min-width:0;max-width:100%;box-sizing:border-box}
.flow-modern .content fieldset{min-inline-size:0;min-width:0;max-width:100%;box-sizing:border-box}
.flow-modern .content .entry-form,.flow-modern .content .form-grid,.flow-modern .content .position-grid,.flow-modern .content .form-grid>*,.flow-modern .content .position-grid>*{min-width:0}
.flow-modern .content .entry-form input:not([type="checkbox"]):not([type="radio"]),.flow-modern .content .entry-form select,.flow-modern .content .entry-form textarea{box-sizing:border-box;width:100%;min-width:0}
.flow-modern .content .entry-form input:not([type="checkbox"]):not([type="radio"]),.flow-modern .content .entry-form select{min-height:44px}
@media(max-width:640px){
.flow-modern .shell.flow-main-shell{width:100%!important;max-width:100%!important}
.flow-modern .workspace>.content,.sales-workspace.flow-modern .shell>.workspace>.content{width:100%!important;max-width:100%!important;padding:16px 12px 32px!important}
.flow-modern .flow-header-inner,.flow-modern .flow-nav-inner{width:100%;max-width:100%;min-width:0;box-sizing:border-box;padding-left:14px;padding-right:14px}
.flow-modern .flow-brand{min-width:0}.flow-modern .flow-brand strong{color:#263447}
.flow-modern .flow-brand small{max-width:150px}
.flow-modern .flow-user{flex-shrink:0}
.flow-modern .flow-nav-inner{gap:12px}
.flow-modern .flow-main-nav{flex:1 1 0%;width:0;min-width:0;gap:18px;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none}
.flow-modern .flow-main-nav::-webkit-scrollbar{display:none}
.flow-modern .flow-main-nav>a,.flow-modern .flow-main-nav .flow-nav-item{flex-shrink:0}
.flow-modern .content>.page-head{padding:16px!important;gap:14px;margin-bottom:16px;align-items:flex-start}
.flow-modern .content>.page-head>div{min-width:0;max-width:100%}
.flow-modern .content>.page-head p{overflow-wrap:anywhere;margin-bottom:0;line-height:1.5}
.flow-modern .content>.page-head .primary{min-height:44px}
.flow-modern .content .card{min-width:0;max-width:100%;box-sizing:border-box}
.flow-modern .content .order-editor,.flow-modern .content .order-lifecycle{padding:14px!important}
.flow-modern .order-editor>.page-head{display:flex;align-items:flex-start;gap:12px;margin-bottom:16px;min-width:0}
.flow-modern .order-editor>.page-head>h2{width:100%;margin:0}
.flow-modern .order-editor>.page-head>a,.flow-modern .order-editor>.page-head>form{max-width:100%;margin:0}
.flow-modern .order-editor .form-grid{grid-template-columns:minmax(0,1fr)!important;padding:12px!important;gap:14px!important;margin:12px 0!important}
.flow-modern .order-editor .order-fields{padding:0;margin:0;border:0;min-width:0;min-inline-size:0}
.flow-modern .content .entry-form input:not([type="checkbox"]):not([type="radio"]),.flow-modern .content .entry-form select,.flow-modern .content .entry-form textarea{font-size:16px!important}
.flow-modern .content .position-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
.flow-modern .content .order-item .position-fields,.flow-modern .content .order-item .position-heading-row{min-width:0}
.flow-modern .content .position-summary-text{min-width:0;overflow-wrap:anywhere}
.flow-modern .content .position-heading-row{flex-wrap:wrap}
.flow-modern .content .position-heading-row .position-actions{flex-wrap:wrap;gap:6px;min-width:0}
.flow-modern .content .position-actions button{min-width:40px;min-height:40px}
.flow-modern .content .entry-form>button.primary[type="submit"]{position:static!important;width:100%;min-height:48px;margin:14px 0 0;box-shadow:none!important;z-index:auto}
.flow-modern .content .order-totals{min-width:0;max-width:100%}
.flow-modern .content .order-totals>div{gap:12px;flex-wrap:wrap}
.flow-modern .content .order-lifecycle summary{max-width:100%;white-space:normal}
}
@media(max-width:360px){.flow-modern .content .position-grid{grid-template-columns:minmax(0,1fr)!important}.flow-modern .flow-nav-count{display:none}}

/* Einheitliche native Datumsfelder, besonders iOS Safari, 20261024 */
.flow-modern .shell .content input:is([type="date"],[type="time"],[type="datetime-local"],[type="month"],[type="week"]){
-webkit-appearance:none;appearance:none;display:block;box-sizing:border-box!important;
width:100%!important;inline-size:100%!important;min-width:0!important;min-inline-size:0!important;max-width:100%!important;max-inline-size:100%!important;
height:44px!important;min-height:44px!important;max-height:44px!important;margin:0!important;padding:10px 12px!important;line-height:22px!important;text-align:left;overflow:hidden;
}
.flow-modern .shell .content input:is([type="date"],[type="time"],[type="datetime-local"],[type="month"],[type="week"])::-webkit-date-and-time-value{min-width:0;min-height:22px;margin:0;padding:0;text-align:left;line-height:22px}
.flow-modern .shell .content input:is([type="date"],[type="time"],[type="datetime-local"],[type="month"],[type="week"])::-webkit-datetime-edit{min-width:0;padding:0;line-height:22px}
.flow-modern .shell .content input:is([type="checkbox"],[type="radio"]){width:20px!important;inline-size:20px!important;min-width:20px!important;max-width:20px!important;height:20px!important;min-height:20px!important;padding:0!important;flex:0 0 20px;align-self:center}
.flow-modern .shell .content .form-grid>label:has(>input[type="checkbox"]){display:flex!important;flex-direction:row!important;align-items:center;align-self:end;flex-wrap:wrap;gap:8px;min-height:44px}

/* Anklickbare Spaltenüberschriften der Auftragsliste */
.flow-modern .content .flow-table th .flow-sort-button{display:inline-flex;align-items:center;justify-content:flex-start;gap:7px;width:100%;min-height:32px;margin:0;padding:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:transparent!important;color:inherit!important;font:inherit!important;text-align:inherit;white-space:nowrap;cursor:pointer;letter-spacing:inherit;text-transform:inherit}
.flow-modern .content .flow-table th.flow-money .flow-sort-button{justify-content:flex-end}
.flow-sort-arrow{display:inline-block;min-width:12px;opacity:.4;font-size:14px;line-height:1;text-transform:none}
.flow-table th[aria-sort="ascending"] .flow-sort-arrow,.flow-table th[aria-sort="descending"] .flow-sort-arrow{opacity:1;color:var(--flow-accent,#bb411f)}
.flow-modern .content .flow-table th .flow-sort-button:hover{color:var(--flow-accent,#bb411f)!important}

/* Dashboard: Monatswerte und Diagramm innerhalb der Karte, 20261024 */
.flow-dashboard-compact .dashboard-finance-columns{grid-template-columns:minmax(0,.85fr) minmax(0,1.45fr);gap:24px}
.flow-dashboard-compact .dashboard-finance-columns>*{min-width:0;max-width:100%;box-sizing:border-box}
.flow-dashboard-compact .dashboard-revenue-chart{padding:20px;min-width:0;box-sizing:border-box}
.dashboard-revenue-chart svg{display:block;width:100%;max-width:100%}
.dashboard-month-details{min-width:0;max-width:100%;padding-bottom:2px}
.dashboard-month-details dl{grid-template-columns:repeat(auto-fit,minmax(min(100%,170px),1fr));gap:8px 16px;margin:12px 0 0}
.dashboard-month-details dl>div{display:grid;grid-template-columns:minmax(0,1fr) max-content;align-items:baseline;gap:8px;min-width:0;padding:5px 0;border-bottom:1px solid #eef2f6}
.dashboard-month-details dt{min-width:0;overflow-wrap:anywhere}
.dashboard-month-details dd{margin:0;text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
@media(max-width:1050px){.flow-dashboard-compact .dashboard-finance-columns{grid-template-columns:minmax(0,1fr);gap:0}.flow-dashboard-compact .dashboard-revenue-chart{border-top:1px solid #e7edf3}}
@media(max-width:520px){.flow-dashboard-compact .dashboard-revenue-chart{padding:16px}.dashboard-month-details dl{grid-template-columns:minmax(0,1fr)}}

/* Kompakte nächste Schritte, einheitliche Listen und Ausklapppfeile */
.flow-modern .content .dashboard-next-rows{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.flow-modern .content .dashboard-next-rows>a{display:grid!important;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:'label value' 'action value';align-items:center;gap:8px 14px;min-width:0;width:100%;min-height:94px;padding:14px 16px!important;box-sizing:border-box;text-align:left!important}
.dashboard-next-rows>a>span:first-child{grid-area:label;min-width:0;overflow-wrap:anywhere}
.dashboard-next-rows>a>strong{grid-area:value;text-align:right;min-width:0;max-width:180px;font-size:21px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.dashboard-next-rows>a>.dashboard-row-action{grid-area:action;justify-self:start}
.flow-modern .content .dashboard-next-rows>a.flow-task-quiet{background:#f8fafc!important;border-color:#e5e9ef!important;color:#667085!important}
.dashboard-next-rows>a.flow-task-quiet>strong{font-size:18px;color:#667085}
.flow-modern .content .dashboard-next-rows>a.flow-task-attention{border-left:4px solid var(--flow-accent,#bb411f)!important;background:#fff9f3!important}
.flow-modern .content table th .flow-sort-button{display:inline-flex;align-items:center;justify-content:flex-start;gap:7px;width:100%;min-height:32px;margin:0;padding:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:transparent!important;color:inherit!important;font:inherit!important;text-align:inherit;white-space:nowrap;cursor:pointer;letter-spacing:inherit;text-transform:inherit}
.flow-modern .content table th.flow-money .flow-sort-button{justify-content:flex-end}
.flow-modern .content table th .flow-sort-button:hover{color:var(--flow-accent,#bb411f)!important}
.flow-modern .content .flow-filter-reset{min-height:40px;align-self:end;width:max-content;max-width:100%;font-size:12px!important;white-space:nowrap}
.flow-modern .content .flow-filter-reset[hidden]{display:none!important}
.flow-modern .content summary.flow-disclosure-toggle{position:relative;list-style:none!important;padding-right:32px!important;cursor:pointer}
.flow-modern .content summary.flow-disclosure-toggle::-webkit-details-marker{display:none}
.flow-modern .content summary.flow-disclosure-toggle::marker{content:''}
.flow-modern .content summary.flow-disclosure-toggle::before,.flow-modern .content summary.flow-disclosure-toggle::after{content:none!important;display:none!important}
.flow-disclosure-arrow{position:absolute;right:12px;top:50%;display:block;width:8px;height:8px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:translateY(-70%) rotate(45deg);pointer-events:none;opacity:.75;transition:transform .15s}
[open]>summary>.flow-disclosure-arrow{transform:translateY(-25%) rotate(225deg)}
@media(max-width:640px){.flow-modern .content .dashboard-next-rows{grid-template-columns:minmax(0,1fr)}.flow-modern .content .dashboard-next-rows>a{min-height:86px;padding:12px!important}.dashboard-next-rows>a>strong{font-size:18px;max-width:150px}.flow-compact-filter>.flow-filter-reset{grid-column:1/-1;justify-self:start;min-height:44px}}

/* Monatswerte: Monat und Betrag als eindeutig verbundene Paare */
.dashboard-month-details dl{gap:10px 12px}
.dashboard-month-details dl>div{display:flex;justify-content:flex-start;align-items:baseline;flex-wrap:wrap;gap:4px 8px;padding:9px 10px;border:1px solid #e4eaf0;border-radius:7px;background:#f8fafc;box-sizing:border-box}
.dashboard-month-details dt{flex:0 0 auto;margin:0;font-weight:600;color:#526477}
.dashboard-month-details dd{flex:0 0 auto;margin:0;text-align:left;white-space:nowrap;font-weight:700;font-variant-numeric:tabular-nums;color:#263649}

/* Stabile mobile App-Breite, 20261026 */
@media(max-width:640px){
html,body{width:100%;max-width:100%;overflow-x:clip;background:#f6f8fb!important;-webkit-text-size-adjust:100%;text-size-adjust:100%}
body.flow-modern,body.flow-modern .shell.flow-main-shell,body.flow-modern .workspace,body.flow-modern .workspace>.content{width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important}
body.flow-modern .shell.flow-main-shell{display:block!important;overflow-x:clip!important;background:#f6f8fb!important}
body.flow-modern .flow-header,body.flow-modern .flow-header-inner,body.flow-modern .flow-nav-inner{max-width:100%;box-sizing:border-box}
body.flow-modern .content>.page-head,body.flow-modern .content .order-editor,body.flow-modern .content .order-editor>.card,body.flow-modern .content .entry-form,body.flow-modern .content .form-grid,body.flow-modern .content .position-grid{min-width:0;max-width:100%;box-sizing:border-box}
body.flow-modern .flow-time-review,body.flow-modern #flow-time-review,body.flow-modern .flow-time-review-details,body.flow-modern .flow-time-review-list{min-width:0;max-width:100%;box-sizing:border-box}
}

.flow-pull-indicator{position:fixed;top:calc(env(safe-area-inset-top, 0px) + 8px);left:50%;transform:translate(-50%,-12px);z-index:10000;background:#fff;color:#222c3c;border:1px solid #d9e3ed;border-radius:999px;box-shadow:0 5px 20px #0003;padding:8px 14px;font:600 13px/1.4 system-ui,sans-serif;opacity:0;pointer-events:none;transition:opacity .15s,transform .15s;white-space:nowrap}.flow-pull-indicator.visible{opacity:1;transform:translate(-50%,0)}

/* Main menu: native horizontal swiping plus visible controls, 03.11.2026. */
.flow-nav-scroll{display:flex;align-items:center;gap:6px;flex:0 1 auto;min-width:0;max-width:100%}
.flow-nav-scroll .flow-main-nav{flex:1 1 auto;min-width:0;overflow-x:auto;overflow-y:hidden;flex-wrap:nowrap;-webkit-overflow-scrolling:touch;touch-action:pan-x pinch-zoom;overscroll-behavior-x:contain;scrollbar-width:none}
.flow-nav-scroll .flow-main-nav::-webkit-scrollbar{display:none}
.flow-nav-scroll .flow-main-nav>*{flex:0 0 auto}
.flow-nav-scroll .flow-main-nav a{-webkit-user-drag:none;user-select:none;-webkit-user-select:none}
.flow-nav-scroll-button{display:none!important;flex:0 0 30px;width:30px;min-width:30px;height:40px;min-height:40px;padding:0!important;align-items:center;justify-content:center;border:0!important;border-radius:8px!important;background:transparent!important;color:#8794a3!important;font:18px/1 system-ui!important;box-shadow:none!important;letter-spacing:0!important}
.flow-nav-scroll[data-overflow="true"] .flow-nav-scroll-button{display:inline-flex!important}
.flow-nav-scroll-button:disabled{opacity:.28!important;cursor:default}
.flow-nav-scroll-button:focus-visible{outline:2px solid #bb411f;outline-offset:2px}
@media(max-width:780px){.flow-nav-scroll{flex:1 1 0%;min-width:0}.flow-nav-scroll .flow-main-nav{width:0;gap:18px}.flow-nav-inner{gap:10px!important}}
