:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#213b4c;background:#edf1f4;font-synthesis:none;--blue:#087bad;--border:#dce5eb;--muted:#7b8d99}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer;touch-action:manipulation}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid #0781bc;outline-offset:3px}button{border:0}button:disabled{opacity:.5}input,select,textarea{font-size:16px;min-width:0;max-width:100%;color:#213b4c}input,select,textarea{border:1px solid #dce5eb;border-radius:9px;padding:11px;background:white;width:100%;outline:none}input:focus,textarea:focus,select:focus{border-color:#69abd0}input::placeholder,textarea::placeholder{color:#a1adb6}input[type=date]{min-height:44px}label{font-size:11px;color:#5e788a;font-weight:650;display:grid;gap:7px}label small{font-size:10px;font-weight:400;color:#8b9ba6}.app-shell{max-width:480px;margin:auto;min-height:100dvh;background:#f7f9fb;padding-bottom:105px}header{padding:calc(12px + env(safe-area-inset-top)) 18px 11px;display:flex;align-items:center;gap:9px;background:#fff;border-bottom:1px solid #e9eef2}header img{border-radius:9px}.brand{font-size:18px;line-height:1;font-weight:750;letter-spacing:-.5px}.brand>span{font-weight:450}.brand>small{font-size:7px;display:block;letter-spacing:2.4px;margin-top:5px;color:#7a8c98}.save-indicator{margin-left:auto;font-size:9px;color:#6e8998;display:flex;gap:5px;align-items:center}.save-indicator i{width:5px;height:5px;border-radius:50%;background:#4a9b76}.save-indicator.failed{color:#a54740}.save-indicator.failed i{background:#a54740}nav{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;background:#fff;padding:0 14px 0;border-bottom:1px solid #e2e9ee}nav button{padding:12px 0 11px;background:none;color:#a0aeb8;font-size:10px;border-bottom:2px solid transparent}nav button span{font-size:12px;margin-left:5px;font-weight:600}nav button.active{color:#087bad;border-bottom-color:#087bad}main{padding:22px 17px 8px}.section-kicker{font-size:8px;font-weight:750;letter-spacing:1.5px;color:#7f96a4;margin-bottom:8px}h1{font-size:23px;line-height:1.2;letter-spacing:-.7px;margin:0 0 8px;font-weight:700}h2{font-size:15px;margin:0;font-weight:650;letter-spacing:-.2px}.intro{font-size:11px;line-height:1.55;color:#8395a1;margin:0 0 18px}.depth-card{display:flex;align-items:center;justify-content:space-between;background:white;border:1px solid #dfe8ee;border-radius:12px;padding:13px 15px;margin:19px 0 18px;box-shadow:0 3px 9px #284f6403}.depth-card span{display:block;font-size:10px;color:#7a929f}.depth-card strong{display:block;font-size:28px;letter-spacing:-1px;line-height:1.15;margin-top:4px;font-weight:650}.depth-card strong small{font-size:14px;letter-spacing:0;color:#8297a4;font-weight:450;margin-left:2px}.depth-detail{text-align:right}.depth-detail span{color:#4e738a;font-size:10px;font-weight:600}.depth-detail small{color:#a0aeb8;font-size:9px;display:block;margin-top:5px}.soil-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.soil-choice{border:1px solid #dce5eb;border-radius:10px;background:#fff;padding:11px 9px 8px;display:flex;flex-direction:column;align-items:center;min-width:0;box-shadow:0 2px 3px #284f6404;transition:border-color .1s,transform .1s}.soil-choice:active{transform:scale(.97);border-color:#1783b7}.soil-name{font-size:11px;font-weight:650;line-height:1.3;min-height:15px;display:flex;align-items:center;justify-content:center;color:#304d60;text-align:center;margin-bottom:9px;word-break:normal;overflow-wrap:anywhere}.soil-swatch{display:block;width:100%;height:32px;border-radius:5px;overflow:hidden;border:1px solid #00000012}.soil-swatch svg{display:block;width:100%;height:100%}.soil-code{font-size:9px;color:#8d9da7;margin-top:7px;line-height:1;letter-spacing:.4px}.text-action{display:flex;justify-content:center;align-items:center;gap:8px;width:100%;padding:12px 5px;background:none;color:#6d8799;font-size:10px;font-weight:600}.text-action span{font-size:13px;color:#8fa7b5}#soilSearchWrap{margin:0 0 12px}.record-title{display:flex;align-items:center;justify-content:space-between;margin:16px 0 11px}.record-title h2{font-size:13px}.record-title>span{font-size:10px;color:#93a3af}.empty-note{border:1px dashed #d7e2e9;color:#92a3ae;border-radius:9px;padding:16px 12px;font-size:10px;text-align:center}.layer-item{display:grid;grid-template-columns:5px 1fr auto 28px;align-items:center;gap:10px;background:#fff;border:1px solid #e2e9ee;border-radius:9px;padding:10px 9px;margin-bottom:6px}.layer-color{width:5px;height:27px;border-radius:3px}.layer-item strong{font-size:11px;font-weight:650;display:block}.layer-item small{font-size:9px;color:#95a5af;display:block;margin-top:3px}.layer-item .layer-range{font-size:10px;font-weight:600;color:#4d7085;white-space:nowrap}.layer-item button{background:none;font-size:17px;color:#a6b4bc;width:28px;height:30px}.form-card,.pipe-card,.component-card{background:#fff;border:1px solid #dfe7ed;border-radius:12px;padding:16px;margin:15px 0;display:grid;gap:16px}.two-col{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}.primary{display:inline-flex;align-items:center;justify-content:center;gap:12px;border:1px solid #0072a5;background:#087bad;color:white;border-radius:9px;font-size:12px;font-weight:650;padding:12px 15px;min-height:43px;box-shadow:0 2px 4px #006a9617}.primary:active{background:#006b99}.primary span{font-size:17px;line-height:1;font-weight:450}.wide{width:100%}footer{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:min(100%,480px);border-top:1px solid #e0e8ee;background:#fffffff5;backdrop-filter:none;padding:12px 17px calc(12px + env(safe-area-inset-bottom));display:flex;align-items:center;gap:14px;justify-content:space-between;z-index:5}footer strong{font-size:10px;font-weight:650;display:block;color:#59798e}footer small{font-size:8px;color:#92a4af;display:block;margin-top:5px}footer .primary{min-height:38px;padding:9px 13px;font-size:11px}.pipe-card{gap:15px}.pipe-heading{display:flex;gap:11px;align-items:center}.pipe-heading small{font-size:10px;color:#91a2ad;display:block;margin-top:3px}.pipe-symbol{width:33px;height:38px;border:1px solid #bbd8e8;border-radius:7px;background:#e6f2f8;display:grid;place-items:center;font-size:24px;color:#217eab}.filter-symbol{font-size:27px}.quantity-row{display:grid;grid-template-columns:38px 38px 38px minmax(0,1fr);gap:8px;align-items:center}.quantity-row>button{height:38px;border:1px solid #d9e5ed;border-radius:8px;background:#f9fbfc;color:#416d86;font-size:19px}.quantity-row>strong{text-align:center;font-size:23px;font-weight:600}.quantity-row>label{display:flex;align-items:center;gap:7px;justify-content:end;font-size:10px}.quantity-row select{max-width:90px;font-size:13px;padding:9px 7px;min-height:38px}.pipe-total{border-top:1px solid #edf1f4;padding-top:11px;font-size:11px;color:#6f8d9e}.compact-form{padding:13px}.subheading{font-size:13px;margin:22px 0 8px}.component-card{padding:0;gap:0;overflow:hidden}.toggle-row{padding:14px;display:flex;align-items:center;justify-content:space-between;font-size:12px;color:#385a70;cursor:pointer}.toggle-row+.toggle-row{border-top:1px solid #edf1f4}.toggle-row input{position:absolute;opacity:0;width:1px;height:1px}.toggle{position:relative;width:36px;height:21px;background:#e0e7ec;border-radius:12px}.toggle:after{content:'';position:absolute;top:3px;left:3px;width:15px;height:15px;background:#fff;border-radius:50%;box-shadow:0 1px 3px #0002;transition:transform .15s}.toggle-row input:checked+.toggle{background:#1684b5}.toggle-row input:checked+.toggle:after{transform:translateX(15px)}.toggle-row input:focus-visible+.toggle{outline:2px solid #1288bd;outline-offset:2px}.component-fields{padding:0 14px 14px}dialog{border:1px solid #dce5eb;border-radius:19px 19px 0 0;box-shadow:0 -8px 40px #173c5c20;margin:auto auto 0;width:min(100%,480px);max-width:480px;max-height:92dvh;overflow:auto;padding:10px 21px calc(24px + env(safe-area-inset-bottom));color:#213b4c}dialog::backdrop{background:#193a4f65;backdrop-filter:none}.sheet-handle{width:33px;height:4px;background:#d6e0e7;border-radius:4px;margin:0 auto 22px}.sheet-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:19px}.sheet-top h2{font-size:21px;font-weight:650;line-height:1.3}.sheet-top .section-kicker{font-size:8px;margin-bottom:5px}.close-sheet{width:30px;height:30px;background:#f0f4f7;border-radius:50%;font-size:22px;color:#6b8797;flex:none}.chosen-strip{height:24px;overflow:hidden;border-radius:5px;margin-bottom:24px}.chosen-strip svg{width:100%;height:100%;display:block}.thickness-label{font-size:12px;gap:10px}.thickness-input{display:flex;align-items:center;border:1px solid #cddfe9;border-radius:10px;padding:0 14px}.thickness-input input{border:0;padding:13px 0;font-size:28px;font-weight:600;letter-spacing:-.5px;width:100%;background:none;outline:none}.thickness-input span{color:#8ba1af;font-size:16px}.presets{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;margin:13px 0}.presets button{background:white;border:1px solid #d4e2eb;border-radius:7px;padding:10px 3px;font-size:11px;color:#547c93}.presets button.selected{background:#e4f2fa;border-color:#2690bf;color:#087bad}.range-preview{color:#648398;font-size:12px;text-align:center;padding:10px;margin:8px 0 12px}.form-error{color:#ad4b44;font-size:11px;line-height:1.5;margin:5px 0 12px}.form-error:empty{display:none}.fine-print{font-size:10px;line-height:1.6;color:#91a0ab;margin:15px 0 0}.export-summary{border:1px solid #dfe8ee;background:#f8fbfd;border-radius:9px;padding:14px;font-size:12px;line-height:1.8;margin:18px 0;color:#53788e}#toast{position:fixed;bottom:95px;left:50%;transform:translateX(-50%);background:#24475bed;color:#fff;padding:11px 16px;border-radius:9px;font-size:11px;max-width:90vw;z-index:30;opacity:0;pointer-events:none;transition:opacity .15s}#toast.visible{opacity:1}[hidden]{display:none!important}@media(min-width:600px){.app-shell{border-left:1px solid #e1e7ec;border-right:1px solid #e1e7ec;box-shadow:0 0 50px #274c5e08}}

.total-length-label{font-size:11px;display:grid;grid-template-columns:1fr 112px;align-items:center;gap:14px}.total-length-label select{font-size:16px;font-weight:600;border-color:#c6dce8;background-color:#f8fbfd;min-height:44px}.pipe-card{gap:13px}

.order-footer{display:block;padding:10px 17px calc(9px + env(safe-area-inset-bottom));background:#fff;backdrop-filter:none}.footer-main-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.footer-main-actions .primary{font-size:11px;min-height:38px;padding:9px}.secondary-action{border:1px solid #c8dce8;border-radius:9px;color:#41748e;background:#fff;font-size:11px;font-weight:600;min-height:38px;padding:9px}.footer-sub-actions{display:flex;align-items:center;justify-content:space-between;margin-top:7px}.footer-sub-actions button{padding:3px 0;background:none;font-size:9px;color:#6c8a9b;font-weight:500}.footer-sub-actions span{display:inline-flex;min-width:15px;min-height:15px;border-radius:5px;background:#edf4f8;align-items:center;justify-content:center;font-size:8px;margin-left:4px}.app-shell{padding-bottom:120px}#storedOrdersList{display:grid;gap:8px;margin-top:15px}.stored-order{display:flex;align-items:center;justify-content:space-between;gap:8px;background:#fff;border:1px solid #dce6ed;border-radius:10px;padding:13px 11px;text-align:left;color:#264b62;width:100%}.stored-order.current-order{border-color:#92bed5;background:#f7fbfd}.stored-order strong{display:block;font-size:12px;line-height:1.4;font-weight:650;overflow-wrap:anywhere}.stored-order span{display:block;font-size:10px;line-height:1.5;color:#7c929f;margin-top:3px}.stored-order small{display:block;font-size:9px;color:#91a5b0;margin-top:4px}.stored-order b{font-size:9px;white-space:nowrap;color:#087bad;font-weight:600}#ordersDialog{min-height:260px;max-height:85dvh}#newOrderDialog .intro{font-size:12px;line-height:1.65}.component-fields select{font-size:16px;width:100%;min-height:44px;background:#fff}

.water-card{padding:14px;display:grid;gap:14px}.water-hint{margin:0;color:#8395a1;font-size:10px;line-height:1.5}.water-card input[type=datetime-local]{min-height:44px}



.brand .brand-wordmark{display:block;width:83px;height:auto;border-radius:0}.brand>small{margin-top:5px}

.office-card{border:1px solid #dce5eb;border-radius:10px;background:white;padding:11px;margin-bottom:18px;font-size:11px}.office-card summary{color:#087bad;font-weight:650;cursor:pointer}.office-card p{font-size:10px;line-height:1.5;color:#78909e}.office-actions{display:flex;gap:7px;flex-wrap:wrap}.office-actions button{border:1px solid #c6dce8;background:#f4f9fc;color:#237399;padding:8px;border-radius:7px;font-size:10px}.office-card a{display:inline-block;color:#087bad;margin-top:10px}.office-form{display:grid;gap:15px}

.footer-sub-actions{row-gap:6px}.footer-sub-actions button:disabled{opacity:.4}

.reset-local-action{margin-top:18px;padding:10px;border:1px solid #d7a29e;border-radius:8px;background:#fff8f7;color:#a13e37;font-size:11px;width:100%}

#profileDialog{margin:auto;width:min(100vw,1100px);max-width:100vw;height:min(96dvh,1050px);max-height:100dvh;border-radius:18px;padding:0;overflow:hidden;box-shadow:0 20px 90px #183a4b40;background:#f2f6f8}#profileDialog[open]{display:flex;flex-direction:column}.well-head{padding:16px 18px 12px;background:white;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e1eaf0;gap:12px}.well-head h2{font-size:18px;margin:0 0 4px;color:#254c60}.well-head p{font-size:10px;margin:0;color:#8197a4}.well-head button{border:1px solid #dce7ed;background:white;color:#6a8a9c;border-radius:9px;min-width:33px;min-height:33px;font-size:20px}.zoom-tools{display:flex;align-items:center;gap:7px;padding:10px 14px;background:#fff;border-bottom:1px solid #e0eaf0;flex-wrap:wrap}.zoom-tools button{border:1px solid #d1e1eb;border-radius:8px;padding:8px 10px;background:white;color:#357b9b;font-size:11px;min-height:35px}.zoom-tools .zoom-sign{font-size:19px;padding:3px 12px}.zoom-tools output{font-size:11px;color:#6e8e9f;min-width:37px;text-align:center}.zoom-tools .fit-button{background:#e9f4fa;border-color:#cce5f0}.well-hint{margin:0!important;padding:7px 15px;font-size:10px!important;color:#7c97a5!important;background:#f4f8fa}.well-viewport{position:relative;flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;touch-action:pan-x pan-y pinch-zoom;background:#eaf0f4}.well-stage{padding:12px;min-width:100%;min-height:100%;display:flow-root}.well-drawing{margin:0 auto;background:white;box-shadow:0 3px 14px #2044590b;border-radius:10px;border:1px solid #dce6ed}.well-drawing svg{width:100%;min-width:0;height:auto;display:block;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}.well-details{background:white;border-top:1px solid #dde8ef;padding:11px 15px;flex:none;max-height:27dvh;overflow:auto}.well-details summary{font-size:11px;color:#4c8199;font-weight:600;cursor:pointer}.well-data{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:12px}.well-data h3{font-size:11px;margin:0 0 8px;color:#315e75}.well-data p{margin:5px 0;font-size:10px;line-height:1.6;color:#78909e}.well-data strong{color:#4e6f81;font-weight:600}.well-details .note{font-size:9px;margin:10px 0 0;color:#92a4ad}.well-swatch{display:inline-block;width:8px;height:8px;border-radius:2px;margin-right:4px}.well-demo{font-size:8px;text-align:center;padding:6px;color:#8299a6;background:#eff5f8;border-top:1px solid #e1ebf1}@media(max-width:600px){#profileDialog{height:100dvh;width:100vw;border-radius:0}.well-head{padding:14px}.zoom-tools{padding:9px 12px;gap:6px}.zoom-tools button{font-size:10px;padding:8px}.zoom-tools .zoom-sign{font-size:19px;padding:3px 12px}.well-data{grid-template-columns:1fr 1fr;gap:8px}}

#profileCanvas{overflow:visible}#profileNotes p{font-size:11px;line-height:1.5;background:#fff6df;padding:9px;border-radius:7px;color:#69572e}#profileData p{font-size:10px;line-height:1.6;color:#78909e;margin:5px 0}.well-note{font-size:9px;margin:10px 0 0;color:#92a4ad}.profile-empty{max-width:430px;margin:30px auto;padding:20px;color:#78909e;font-size:13px;text-align:center;line-height:1.6}.zoom-tools button:disabled{opacity:.4}#profileOpen{color:#087bad;font-weight:650}

.footer-sub-actions{gap:10px;flex-wrap:wrap}

.example-load-action{margin-top:14px;padding:10px;border:1px solid #c7deeb;border-radius:8px;background:#f2f8fc;color:#347b9e;font-size:11px;width:100%}

/* Solid Mac-style header; no blurred interface surfaces. */
header{background:linear-gradient(135deg,#006a9b,#0088c7);border-bottom:0;color:#fff;box-shadow:0 5px 18px #07577925}header .brand>small{color:#d8f1fd}header .save-indicator{color:#e1f3fb}header .save-indicator i{background:#a1e7cc}header .save-indicator.failed{color:#ffe5df}header .save-indicator.failed i{background:#ffb7a8}.brand .brand-wordmark{width:88px;height:auto}dialog::backdrop{-webkit-backdrop-filter:none;backdrop-filter:none;background:#17374b73}footer{-webkit-backdrop-filter:none;backdrop-filter:none;background:#fff}.example-entry{display:block;width:100%;border:1px solid #c8dfea;background:#edf6fb;color:#267da1;border-radius:9px;padding:11px 10px;text-align:left;font-size:11px;line-height:1.5;margin:0 0 17px}.profile-empty .example-entry{margin:18px 0 0;text-align:center}

.well-head{background:linear-gradient(135deg,#006a9b,#0088c7);color:#fff;border-bottom:0}.well-head h2{color:#fff}.well-head p{color:#d8f1fd}.well-head button{background:#ffffff12;border-color:#ffffff66;color:#fff}

/* No translucent scroll surfaces or softened edges. */
html,body{background:#f7f9fb}header{position:sticky;top:0;z-index:20;isolation:isolate;opacity:1;box-shadow:none;filter:none!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important}header img{filter:none!important;opacity:1}nav,footer,.well-head,.zoom-tools{box-shadow:none;filter:none!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important}dialog::backdrop{background:#f7f9fb;opacity:1;filter:none!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important}.app-shell{box-shadow:none}dialog{box-shadow:none}

.mobile-help-link{display:grid;place-items:center;flex:none;width:27px;height:27px;border:1px solid #ffffffaa;color:white;border-radius:8px;text-decoration:none;font-size:16px;font-weight:650;background:#006a9b}.mobile-help-link:focus-visible{outline:2px solid white;outline-offset:3px}

.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}.mobile-help-link{margin-left:auto}

header{padding:10px 14px;min-height:58px}.header-menu{min-height:40px;padding:8px 13px;border:1px solid #ffffff90;border-radius:9px;color:white;background:#006a9b;font-size:14px;font-weight:600}.mobile-help-link{width:auto;min-height:40px;padding:8px 13px;font-size:14px;font-weight:600}.function-menu{display:grid;gap:10px}.function-menu button{width:100%;min-height:50px;padding:14px;text-align:left;border:1px solid #cbdfe9;border-radius:10px;background:#f5fafd;color:#326e8a;font-size:15px;font-weight:600}.function-menu button:disabled{color:#8e9fa9}.function-menu span{margin-left:8px}.order-footer{padding:10px 14px calc(10px + env(safe-area-inset-bottom))}.footer-main-actions button{min-height:46px;font-size:13px}.app-shell{padding-bottom:90px}main{padding-top:13px}#orderView h1{font-size:22px;margin-bottom:12px}#orderView .form-card{gap:10px;padding:12px;margin-top:0}#orderView label{gap:5px;font-size:11px}#orderView input,#orderView select,#orderView textarea{padding:9px 10px;min-height:42px}#orderView .office-card{margin:15px 0 5px}.optional-address{font-size:11px;color:#6b8797}.optional-address summary{padding:6px 0;cursor:pointer}.optional-address label{margin-top:7px}

/* Direkte Kontrolle ohne zusätzliche Fußzeile */
header #profileOpen{min-height:44px;padding:8px 12px;border:1px solid #ffffffb0;border-radius:9px;background:#fff;color:#006a9b;font-size:13px;font-weight:600;white-space:nowrap}header{gap:8px}.header-menu,.mobile-help-link{flex-shrink:0}@media(max-width:350px){header{padding-left:9px;padding-right:9px;gap:5px}header #profileOpen{padding:8px;font-size:12px}.header-menu,.mobile-help-link{padding:8px 9px}}

/* Originalwortmarke oben, Profilkontrolle bei den Auftragsaktionen */
header .header-wordmark{width:94px;height:auto;max-height:38px;object-fit:contain;margin-right:auto;flex-shrink:0}.order-footer{display:grid;gap:7px}.order-footer #profileOpen{display:block;width:100%;min-height:42px;border:1px solid #bbd5e4;border-radius:9px;background:#edf6fb;color:#006a9b;font-size:13px;font-weight:600;padding:9px 12px}.app-shell{padding-bottom:140px}

/* Drei gleichwertige Aktionen in einer Reihe, Original-App-Icon sichtbar */
.header-brand{display:flex;align-items:center;gap:7px;margin-right:auto;min-width:0}header .header-app-icon{display:block;width:34px;height:34px;object-fit:contain;border-radius:7px;flex-shrink:0}header .header-wordmark{width:83px;max-height:34px;margin:0}.order-footer .footer-main-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.order-footer #profileOpen,.order-footer .footer-main-actions button{width:100%;min-width:0;min-height:44px;margin:0;padding:8px 4px;font-size:11px;line-height:1.2;white-space:nowrap}.order-footer{gap:0}.app-shell{padding-bottom:90px}

/* Die Aktionsreihe muss die gesamte innere Fußleistenbreite nutzen. */
.order-footer{display:block;justify-content:normal}.order-footer .footer-main-actions{width:100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;box-sizing:border-box}.order-footer .footer-main-actions>button{width:100%;box-sizing:border-box}

/* Aufklappmenü am oberen Bildschirmrand statt unterem Dialogblatt */
#functionsDialog{position:fixed;inset:64px auto auto max(10px,calc((100vw - 480px)/2 + 14px));margin:0;width:min(330px,calc(100vw - 20px));max-width:330px;max-height:calc(100dvh - 84px);border-radius:13px;padding:14px;background:#fff;box-shadow:0 8px 28px #173c5c25;border:1px solid #cbdde8}
#functionsDialog::backdrop{background:#18394d24}
#functionsDialog .sheet-top{margin-bottom:10px;gap:8px}#functionsDialog h2{font-size:16px;margin:0}#functionsDialog .close-sheet{width:36px;height:36px;min-height:36px;border-radius:8px;background:#f0f5f8;font-size:22px}
#functionsDialog .function-menu{gap:7px}#functionsDialog .function-menu button{min-height:48px;padding:12px 14px;border-radius:8px;background:#f4f8fb;border:1px solid #d4e2eb;font-size:14px;color:#175f84;text-align:left}#functionsDialog .function-menu button:hover{background:#e8f3fa}#functionsDialog .function-menu button:disabled{color:#8c9aa4;background:#f7f9fa}

/* Auftragsliste und Dateifenster am oberen Rand statt am Bildschirmboden */
#ordersDialog,#exportDialog,#newOrderDialog,#officeDialog,#resetLocalDialog{position:fixed;inset:70px auto auto 50%;transform:translateX(-50%);margin:0;width:calc(100% - 24px);max-width:456px;max-height:calc(100dvh - 90px);min-height:0;border-radius:14px;padding:0 16px 18px;overflow:auto;background:#fff}
#ordersDialog .sheet-top,#exportDialog .sheet-top,#newOrderDialog .sheet-top,#officeDialog .sheet-top,#resetLocalDialog .sheet-top{position:sticky;top:0;z-index:3;background:#fff;padding:15px 0 10px;margin-bottom:12px}
#ordersDialog::backdrop,#exportDialog::backdrop,#newOrderDialog::backdrop,#officeDialog::backdrop,#resetLocalDialog::backdrop{background:#18394d24}

/* Vorschau: Büroübertragung als breite aufklappbare Fußleistenaktion */
.order-footer .office-card{margin:8px 0 0;padding:0;border:1px solid #c9dce8;border-radius:9px;background:#f4f9fc;max-height:55dvh;overflow:auto}
.order-footer .office-card>summary{display:flex;justify-content:space-between;align-items:center;min-height:42px;padding:10px 12px;list-style:none;cursor:pointer;font-size:12px;font-weight:600;color:#176a92;position:sticky;top:0;background:#f4f9fc;border-radius:9px}
.order-footer .office-card>summary::-webkit-details-marker{display:none}.order-footer .office-card>summary::after{content:'⌃';font-size:17px}.order-footer .office-card[open]>summary::after{content:'⌄'}
.order-footer .office-card>p{font-size:11px;line-height:1.5;margin:10px 12px;color:#526f81}.order-footer .office-card .office-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:10px 12px}.order-footer .office-card .office-actions button{min-height:44px;padding:8px 6px;font-size:11px;border-radius:8px}.app-shell{padding-bottom:140px}

/* Büroübertragung farblich von den Auftragsaktionen trennen */
.order-footer .office-card{border-color:#278653;background:#f0f8f3}.order-footer .office-card>summary{background:#21834f;color:#fff;border-radius:8px}.order-footer .office-card>summary:hover{background:#196e41}.order-footer .office-card>summary:focus-visible{outline:3px solid #8cd3aa;outline-offset:2px}

/* Gleiche Projektart-Icons wie im Büro, kompakt in der Auftragsliste */
.stored-order .project-type-icon,.icon-preview .project-type-icon{display:flex;align-items:center;justify-content:center;width:42px;height:42px;flex:0 0 42px;margin:0;border:1px solid var(--icon-border);border-radius:11px;background:linear-gradient(145deg,var(--icon-top),var(--icon-bottom))}.project-type-icon svg{width:34px;height:34px;display:block}.stored-order .stored-order-text{flex:1;min-width:0}.stored-order .stored-order-type{color:#39748e;font-size:10px;margin-top:3px}.stored-order>b{font-size:10px}.stored-order{gap:10px}

.site-origin-cone{width:24px;height:24px;object-fit:contain;vertical-align:middle;margin-right:5px;border:1px solid #b5cbd9;border-radius:6px;background:linear-gradient(145deg,#fff,#e4f0f7)}


.stored-order-row{display:grid;gap:0;border:1px solid #dce6ed;border-radius:11px;overflow:hidden;background:white}.stored-order-row .stored-order{border:0;border-radius:0}.delete-stored-order{justify-self:end;margin:0 10px 10px;min-height:40px;padding:8px 14px;border:1px solid #dbaca6;border-radius:8px;color:#a3352d;background:#fff4f2;font-size:12px}.delete-local-confirm{width:100%;min-height:44px;background:#b63a32;color:white;border-radius:9px;padding:11px;font-size:13px}#deleteOrderDialog{position:fixed;inset:70px auto auto 50%;transform:translateX(-50%);margin:0;width:calc(100% - 24px);max-width:456px;max-height:calc(100dvh - 90px);border-radius:14px;padding:16px;overflow:auto}#deleteOrderDialog::backdrop{background:#18394d24}

/* Kompakte rechte Aktionsspalte innerhalb der Auftragskarte */
.stored-order-row{position:relative;display:block}.stored-order-row .stored-order{min-height:112px;align-items:center;padding-right:86px;position:relative}.stored-order-row .stored-order>b{position:absolute;right:12px;bottom:14px}.stored-order-row .delete-stored-order{position:absolute;right:10px;top:12px;margin:0;padding:6px 10px;min-height:34px;min-width:64px;font-size:10px;border-radius:7px;z-index:1}

/* Ein gemeinsames blaues Auftragsfeld mit Löschknopf in seiner Ecke. */
.stored-order-row{background:#edf6fc;border:1px solid #c2dbe9;border-radius:10px}.stored-order-row .stored-order,.stored-order-row .stored-order.current-order{background:transparent;border:0;min-height:108px}.stored-order-row .delete-stored-order{top:8px;right:8px;min-width:58px;min-height:28px;padding:5px 8px;background:#fff;border-color:#d39c98;font-size:10px;border-radius:6px}.stored-order-row .stored-order>b{right:11px;bottom:12px}

.order-footer .office-card>summary{position:sticky;justify-content:center;text-align:center;padding-left:34px;padding-right:34px}.order-footer .office-card>summary::after{position:absolute;right:12px;top:50%;transform:translateY(-50%)}

/* Einheitliche kompakte Auswahlfelder im Ausbau */
#buildView select{width:100%;min-width:0;box-sizing:border-box;font-size:14px;padding-left:10px;padding-right:28px}#buildView .pipe-card{padding-left:12px;padding-right:12px}#buildView .total-length-label{width:100%;min-width:0}

/* Beschriftung über dem Feld: volle Kartenbreite statt schmaler 112px-Spalte. */
#buildView .total-length-label{display:grid;grid-template-columns:minmax(0,1fr);gap:7px;align-items:stretch}#buildView .total-length-label select{display:block;width:100%;min-width:0;min-height:44px;padding:10px 34px 10px 12px;text-align:left}

.backfill-calculation,.backfill-warning{font-size:12px;line-height:1.6;padding:12px;border-radius:9px;margin:8px 0}.backfill-calculation{background:#edf5fa;color:#305a70}.backfill-warning{background:#fff0dc;color:#8a4909;border:1px solid #e7bf80}

.soil-category-tabs{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:12px 0}.soil-category-tabs button{min-width:0;padding:10px 6px;border:1px solid #a6bcc9;border-radius:8px;background:#fff;color:#17455e;font:600 13px inherit}.soil-category-tabs button[aria-pressed="true"]{background:#006a9b;border-color:#006a9b;color:#fff}

.soil-company-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.soil-company-heading img{width:36px;height:36px;object-fit:contain;flex:none}.soil-category-tabs button{font-family:inherit;font-weight:600;font-size:13px}

#sharedOrdersDialog,#sharedConflictDialog{max-height:calc(100dvh - 32px);overflow-y:auto}#sharedOrdersDialog .sheet-top,#sharedConflictDialog .sheet-top{position:sticky;top:0;background:#fff;z-index:3;padding:10px 0}#sharedOrdersDialog .close-sheet,#sharedConflictDialog .close-sheet{width:auto;padding:8px 10px;font:600 12px system-ui}.shared-list{display:grid;gap:10px;margin-top:14px}.shared-order-row{display:flex;align-items:center;gap:12px;padding:13px;border:1px solid #c8d8e2;border-radius:10px;background:#f6fafe}.shared-order-row>div{flex:1;min-width:0}.shared-order-row strong,.shared-order-row span,.shared-order-row small{display:block;overflow-wrap:anywhere}.shared-order-row span{font-size:12px;margin-top:4px;color:#4d6778}.shared-order-row small{font-size:11px;color:#5e7d90;margin-top:4px}.shared-order-row button{flex:none;background:#006a9b;color:#fff;border:0;border-radius:7px;padding:10px 12px;font:600 12px system-ui}.shared-conflict-field{padding:14px;margin:12px 0;border:1px solid #c7d6df;border-radius:9px;background:#f8fbfd}.shared-conflict-field p{font-size:13px;overflow-wrap:anywhere}.shared-conflict-field select{width:100%;min-height:44px}.shared-conflict-field label{display:block;font-size:12px}#sharedConflictSave{position:sticky;bottom:0}
#sharedOrdersDialog,#sharedConflictDialog{position:fixed!important;inset:16px auto auto 50%!important;transform:translateX(-50%)!important;margin:0!important;width:min(560px,calc(100vw - 24px))!important;max-width:560px!important;max-height:calc(100dvh - 32px)!important;border-radius:16px!important;padding:12px 18px 20px!important;box-sizing:border-box}#sharedOrdersDialog .sheet-top,#sharedConflictDialog .sheet-top{top:-12px;margin-top:-2px}#sharedOrdersState{font-size:13px;color:#4a687a;line-height:1.5}#sharedOrdersList{margin-top:12px}

/* Messstellenfelder, bestehende Hauptmaske unverändert. */
.measurement-card{padding:14px}.measurement-card label:not(.toggle-row){display:block;margin-bottom:12px}.measurement-card select{width:100%}.measurement-card .subheading{margin-top:0}#gwmPreview svg{display:block;width:100%;height:auto}#gwmPreview{margin-top:10px;border-top:1px solid #d9e5eb;padding-top:8px}

/* Explicit office handoff, separate from automatic phone collaboration. */
.office-delivery{display:block;width:100%;padding:15px 12px;border:0;border-radius:9px;background:#43865b;color:#fff;font:600 14px system-ui;text-align:center;min-height:48px;cursor:pointer}.phone-sync-status,.delivery-status{font-size:12px;line-height:1.4;margin:4px 0;text-align:center}.phone-sync-status{color:#536d7b}.delivery-status:empty{display:none}#ordersSyncNow{margin-bottom:12px}#officeDeliveryDialog>button{display:block;width:100%;margin-top:10px;min-height:44px}#officeDeliveryDialog .close-sheet{width:auto}#officeDeliverySummary{margin:14px 0}button[hidden]{display:none!important}
/* Small separation between local actions and the deliberate office handoff. */
.order-footer .office-delivery{margin-top:10px}
