:root{font-family:"Segoe UI Variable","Segoe UI",Arial,sans-serif;color:#302d3a;background:#f8f7f2;font-synthesis:none}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;min-width:320px}
button,input,select,textarea{font:inherit}
a{color:inherit;text-decoration:none}
button{cursor:pointer}
:focus-visible{outline:3px solid var(--tenant-primary,#906fc2);outline-offset:3px}
h1,h2,h3,p{margin-top:0}
h1,h2,h3{letter-spacing:-.035em}
[hidden]{display:none!important}
.app-shell{--tenant-primary:#60448c;--tenant-primary-deep:#463365;--tenant-primary-soft:#eee9f3;--tenant-primary-contrast:#fff;--canvas:#f8f7f2;--paper:#fffefa;--text:#302d3a;--muted:#706c79;--line:#ddd8db;--ok:#236a4f;--ok-soft:#e9f4ed;--warn:#855204;--warn-soft:#f9ecd5;--danger:#a82d3d;--danger-soft:#f8e7e9;display:flex;min-height:100vh;background:var(--canvas);color:var(--text)}
.app-sidebar{position:sticky;top:0;align-self:flex-start;flex:0 0 260px;height:100vh;background:#f4f1e9;border-right:1px solid var(--line);padding:28px 17px;display:flex;flex-direction:column}
.sidebar-brand{display:inline-flex;align-self:flex-start;padding:4px 9px}
.brand-lockup{display:inline-flex;align-items:center;gap:2px;white-space:nowrap}
.brand-wordmark{font-size:24px;letter-spacing:-.065em;font-weight:700;line-height:1}
.brand-spark{color:var(--tenant-primary);font-size:14px;align-self:flex-start;margin-left:2px}
.brand-logo{height:34px;max-width:160px;object-fit:contain}
.sidebar-caption{font-size:10px;font-weight:700;letter-spacing:.12em;color:var(--muted);margin:40px 10px 14px}
.side-navigation{display:grid;gap:4px}
.side-navigation a{display:flex;align-items:center;gap:12px;min-height:45px;padding:8px 11px;border-radius:9px;color:#595363;font-size:14px;font-weight:500}
.side-navigation a>span{display:grid;place-items:center;font-size:17px;width:19px;color:var(--tenant-primary)}
.side-navigation a:hover,.side-navigation a.active{background:var(--tenant-primary-soft);color:var(--tenant-primary-deep)}
.side-navigation a.active{font-weight:700}
.sidebar-bottom{margin:auto 10px 6px;display:grid;gap:4px;font-size:12px}
.sidebar-bottom span{color:var(--muted);font-size:11px}
.app-workspace{min-width:0;flex:1;display:flex;flex-direction:column}
.app-topbar{height:75px;padding:0 clamp(24px,4vw,54px);display:flex;align-items:center;justify-content:space-between;gap:15px;background:rgba(255,254,250,.88);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:10;backdrop-filter:blur(12px)}
.mobile-brand{display:none}
.topbar-context{display:flex;gap:6px;align-items:baseline;font-size:12px;color:var(--muted)}
.topbar-context strong{color:var(--text);font-size:13px}
.topbar-context strong:before{content:"/";margin-right:6px;color:#aba3ae;font-weight:400}
.view-switch{font-size:12px;color:var(--tenant-primary-deep);font-weight:700;padding:9px 12px;border:1px solid color-mix(in srgb,var(--tenant-primary) 27%,var(--paper));border-radius:8px;white-space:nowrap}
.view-switch:hover{background:var(--tenant-primary-soft)}
.view-switch-short{display:none}
.app-main{width:min(100%,1130px);margin:0 auto;padding:26px clamp(24px,4vw,54px) 90px;flex:1}
.demo-notice{font-size:11px;color:#605874;background:var(--tenant-primary-soft);border:1px solid color-mix(in srgb,var(--tenant-primary) 22%,var(--paper));border-radius:8px;padding:9px 12px;margin-bottom:30px;display:flex;gap:8px;align-items:center}
.demo-notice span{color:var(--tenant-primary);font-size:14px}
.mobile-navigation{display:none}
.eyebrow{display:block;color:var(--tenant-primary);font-size:11px;letter-spacing:.105em;font-weight:700;text-transform:uppercase}
.page-intro{margin:8px 0 30px}
.page-intro h1{font-size:clamp(30px,3.9vw,43px);line-height:1.1;margin:11px 0 10px;font-weight:700}
.page-intro p{color:var(--muted);font-size:15px;max-width:620px;line-height:1.5;margin:0}
.customer-feature,.technician-feature{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:29px 32px;border-radius:15px;background:linear-gradient(120deg,var(--tenant-primary-deep),var(--tenant-primary) 62%,color-mix(in srgb,var(--tenant-primary) 73%,white));color:var(--tenant-primary-contrast);min-height:190px}
.customer-feature .eyebrow,.technician-feature .eyebrow{color:#e4d9f6}
.customer-feature h2,.technician-feature h2{font-size:30px;line-height:1.1;margin:14px 0 7px;color:#fff}
.customer-feature p,.technician-feature p{font-size:13px;color:#eee5f6;margin:0}
.button{border:0;display:inline-flex;justify-content:center;align-items:center;gap:13px;min-height:47px;padding:11px 17px;border-radius:9px;font-weight:700;font-size:13px;line-height:1.2;white-space:normal;text-align:center;transition:background-color .14s ease,color .14s ease,transform .14s ease}
.button:hover{transform:translateY(-1px)}
.button-primary{background:var(--tenant-primary);color:var(--tenant-primary-contrast)}
.button-primary:hover{background:var(--tenant-primary-deep)}
.button-secondary{background:var(--tenant-primary-soft);color:var(--tenant-primary-deep)}
.button-secondary:hover{background:color-mix(in srgb,var(--tenant-primary) 24%,var(--paper))}
.button-light{background:#fffefa;color:var(--tenant-primary-deep);white-space:nowrap}
.button-light:hover{background:var(--tenant-primary-soft)}
.text-link{color:var(--tenant-primary-deep);font-size:13px;font-weight:700;padding:7px 0}
.text-link:hover{text-decoration:underline}
.section-heading{display:flex;justify-content:space-between;align-items:end;gap:12px;margin:38px 0 15px}
.section-heading h2{font-size:22px;margin:6px 0 0}
.section-heading.compact{margin:0 0 20px;align-items:center}
.bath-card-list{display:grid;gap:10px}
.bath-card{background:var(--paper);border:1px solid var(--line);border-radius:12px;min-height:102px;display:flex;align-items:center;gap:17px;padding:16px 21px;transition:border-color .14s ease,transform .14s ease,box-shadow .14s ease}
.bath-card:hover{border-color:color-mix(in srgb,var(--tenant-primary) 60%,var(--paper));transform:translateY(-1px);box-shadow:0 6px 22px #4b355b0e}
.bath-card-index{display:grid;place-items:center;flex:none;width:31px;height:31px;border-radius:50%;border:1px solid color-mix(in srgb,var(--tenant-primary) 40%,var(--paper));color:var(--tenant-primary);font-size:11px;font-weight:700}
.bath-card-content{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1}
.bath-card-content>strong{font-size:16px}
.bath-card-content>span:not(.status-badge){color:var(--muted);font-size:12px}
.bath-card-content .status-badge{align-self:flex-start;margin-top:6px}
.bath-card-arrow{color:var(--tenant-primary);font-size:20px}
.status-badge{display:inline-flex;align-items:center;gap:6px;padding:6px 9px;border-radius:6px;font-size:11px;font-weight:700;line-height:1.15;width:max-content;max-width:100%}
.status-icon{display:grid;place-items:center;width:16px;height:16px;border-radius:50%;font-size:11px;flex:none;background:currentColor}
.status-icon::first-letter{color:inherit}
.status-ok{color:var(--ok);background:var(--ok-soft)}
.status-notice{color:var(--warn);background:var(--warn-soft)}
.status-outside{color:var(--danger);background:var(--danger-soft)}
.status-open{color:#5e6570;background:#e9ecec}
/* A plain glyph avoids a color-only signal and stays clear at small sizes. */
.status-icon{background:transparent;width:auto;height:auto;font-size:14px}
.quick-actions{display:grid;grid-template-columns:1fr 1fr;gap:11px;margin-top:24px}
.quick-link{display:flex;align-items:center;gap:10px;border:1px solid var(--line);border-radius:10px;padding:17px;background:var(--paper);font-size:13px}
.quick-link>span:first-child{font-size:19px;color:var(--tenant-primary)}
.quick-link strong{flex:1}
.quick-link>span:last-child{color:var(--tenant-primary)}
.breadcrumb{display:flex;flex-wrap:wrap;gap:8px;color:var(--muted);font-size:12px;margin:2px 0 24px}
.breadcrumb a{color:var(--tenant-primary-deep);font-weight:700}
.detail-heading{margin-bottom:25px}
.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.surface-card{background:var(--paper);border:1px solid var(--line);border-radius:13px;padding:25px;min-width:0}
.surface-card h2{font-size:22px;margin:9px 0 16px}
.subtle-copy{font-size:13px;color:var(--muted);line-height:1.5;margin-bottom:15px}
.detail-line{display:flex;justify-content:space-between;gap:10px;border-top:1px solid var(--line);padding:13px 0;font-size:12px}
.detail-line>span{color:var(--muted)}
.detail-line strong{text-align:right}
.detail-cta{width:100%;margin-top:15px}
.parameter-list{counter-reset:item;list-style:none;margin:19px 0 0;padding:0}
.parameter-list li{counter-increment:item;display:flex;justify-content:space-between;gap:12px;border-top:1px solid var(--line);padding:15px 0;font-size:13px}
.parameter-list li span:before{content:counter(item,decimal-leading-zero);color:var(--tenant-primary);font-weight:700;margin-right:13px;font-size:11px}
.parameter-list strong{text-align:right;font-size:12px}
.fine-print{font-size:11px;color:var(--muted);line-height:1.5;margin:14px 0 0}
.secondary-actions{display:flex;flex-wrap:wrap;gap:24px;margin-top:21px}
.measurement-intro{margin-bottom:19px}
.measurement-layout{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(225px,.85fr);gap:20px;align-items:start}
.measurement-panel,.measurement-guide{background:var(--paper);border:1px solid var(--line);border-radius:13px;padding:22px;min-width:0}
.measurement-meta{display:flex;justify-content:space-between;gap:10px;font-size:11px;color:var(--muted);padding-bottom:19px;border-bottom:1px solid var(--line)}
.measurement-meta strong{color:var(--tenant-primary);font-size:12px;white-space:nowrap}
.route-active,.route-queued{display:grid;grid-template-columns:36px minmax(0,1fr);gap:14px;position:relative}
.route-active{margin-top:24px}
.route-active:after{content:"";position:absolute;left:17px;top:38px;bottom:-17px;width:1px;background:var(--line)}
.route-number{width:34px;height:34px;border-radius:50%;border:2px solid var(--tenant-primary);background:var(--paper);color:var(--tenant-primary);display:grid;place-items:center;font-size:12px;font-weight:700;position:relative;z-index:1}
.route-content{min-width:0}
.route-titleline{display:flex;justify-content:space-between;align-items:baseline;gap:9px}
.route-titleline h2{font-size:27px;margin:0 0 17px}
.route-titleline>span{font-size:10px;letter-spacing:.08em;color:var(--tenant-primary);font-weight:700}
.field-label{font-size:13px;font-weight:700;display:flex;justify-content:space-between;gap:5px;margin-bottom:8px}
.field-label span{font-size:11px;color:var(--muted);font-weight:400}
.measurement-input-wrap{display:flex;align-items:center;height:69px;border:1.5px solid color-mix(in srgb,var(--tenant-primary) 48%,var(--paper));background:#fff;border-radius:8px;padding:0 15px}
.measurement-input-wrap:focus-within{outline:3px solid color-mix(in srgb,var(--tenant-primary) 55%,white);outline-offset:2px}
.measurement-input-wrap input{border:0;outline:0;background:transparent;color:var(--text);font-size:34px;font-weight:700;width:100%;min-width:0;line-height:1}
.measurement-input-wrap>span{font-size:13px;color:var(--muted);white-space:nowrap;margin-left:8px}
.target-line{display:flex;justify-content:space-between;gap:8px;color:var(--muted);font-size:12px;margin-top:10px}
.target-line strong{color:var(--text);text-align:right}
.result-area{display:flex;justify-content:space-between;align-items:center;gap:9px;background:var(--tenant-primary-soft);border-radius:8px;padding:13px;margin-top:20px}
.result-area .eyebrow{font-size:10px}
.action-message{padding:12px;border-left:3px solid var(--warn);background:var(--warn-soft);border-radius:4px;margin-top:9px;font-size:12px;line-height:1.45}
.action-message p{margin:4px 0 0}
.action-danger{border-left-color:var(--danger);background:var(--danger-soft)}
.demo-status-control{margin-top:18px;padding:13px;background:var(--paper);border:1px dashed color-mix(in srgb,var(--tenant-primary) 37%,var(--paper));border-radius:8px}
.demo-status-control>strong{font-size:11px;color:#60516b}
.demo-status-control>div{display:flex;gap:5px;flex-wrap:wrap;margin-top:9px}
.status-choice{border:1px solid color-mix(in srgb,var(--tenant-primary) 30%,var(--paper));background:#fff;color:var(--text);border-radius:7px;font-size:11px;font-weight:600;min-height:34px;padding:7px 9px}
.status-choice[aria-pressed="true"]{background:var(--tenant-primary);border-color:var(--tenant-primary);color:var(--tenant-primary-contrast)}
.form-error{color:var(--danger);font-size:12px;font-weight:700;margin:12px 0}
.measurement-submit{width:100%;margin-top:15px;justify-content:space-between;min-height:51px}
.route-queued{margin-top:16px;align-items:center}
.route-queued .route-number{border-color:var(--line);color:var(--muted);font-size:11px}
.route-queued:before{content:"";position:absolute;top:-16px;left:17px;height:16px;width:1px;background:var(--line)}
.route-queued>div{display:flex;justify-content:space-between;gap:8px;align-items:center;border-top:1px solid var(--line);padding:13px 0}
.route-queued strong{font-size:13px}
.route-queued small{color:var(--muted);font-size:10px;letter-spacing:.05em;white-space:nowrap}
.measurement-guide .eyebrow{font-size:10px}
.measurement-guide h2{font-size:19px;margin:8px 0}
.measurement-guide p{color:var(--muted);font-size:12px}
.measurement-guide ol{list-style:none;padding:0;margin:17px 0}
.measurement-guide li{border-top:1px solid var(--line)}
.guide-step{width:100%;background:none;border:0;text-align:left;padding:13px 2px;display:grid;grid-template-columns:27px 1fr;column-gap:6px}
.guide-step>span{grid-row:span 2;font-size:12px;color:var(--tenant-primary);font-weight:700}
.guide-step strong{font-size:12px}
.guide-step small{font-size:11px;color:var(--muted);margin-top:3px}
.guide-step.selected strong{color:var(--tenant-primary)}
.report-card h2,.printable-report h2{margin:4px 0 14px}
.muted-chip{font-size:11px;color:var(--muted);background:#f2f0f0;padding:7px 10px;border-radius:6px;white-space:nowrap}
.report-row{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(110px,auto);gap:12px;align-items:center;border-top:1px solid var(--line);padding:15px 0;font-size:13px}
.report-row>span:first-child small{display:block;font-size:11px;color:var(--muted);margin-top:5px}
.report-row>strong{white-space:nowrap}
.button-row{display:flex;align-items:center;flex-wrap:wrap;gap:11px;margin:22px 0}
.report-list-card{display:flex;align-items:center;gap:14px;background:var(--paper);border:1px solid var(--line);border-radius:10px;padding:17px 19px;min-height:77px}
.report-list-card:hover{border-color:var(--tenant-primary)}
.report-list-card>span:nth-child(2){flex:1;min-width:0}
.report-list-card strong,.report-list-card small{display:block}
.report-list-card small{font-size:11px;color:var(--muted);margin-top:4px}
.report-document{font-size:25px;color:var(--tenant-primary)}
.report-list-arrow{color:var(--tenant-primary)}
.report-heading{display:flex;justify-content:space-between;align-items:center;gap:8px;border-bottom:2px solid var(--text);padding-bottom:21px}
.report-heading>div{display:grid;gap:8px}
.report-heading>div>span:last-child{font-size:10px;color:var(--muted);letter-spacing:.09em}
.report-heading>strong{font-size:13px}
.report-meta{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;padding:22px 0}
.report-meta span,.report-meta strong{display:block;font-size:12px}
.report-meta span{color:var(--muted);margin-bottom:5px}
.report-disclaimer{background:var(--tenant-primary-soft);padding:14px;border-radius:8px;margin-top:19px;font-size:11px;color:#5c506a;line-height:1.5}
.report-disclaimer p{margin:3px 0 0}
.history-row{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(100px,auto);gap:13px;align-items:center;padding:16px 0;border-top:1px solid var(--line);font-size:13px}
.history-when strong,.history-when span{display:block}
.history-when span{font-size:11px;color:var(--muted);margin-top:4px}
.visit-form{max-width:650px}
.visit-form label{display:block;font-size:13px;font-weight:700;margin:0 0 8px}
.visit-form select,.visit-form textarea{display:block;width:100%;border:1.5px solid #ada0ba;background:#fff;color:var(--text);border-radius:8px;padding:12px;font-size:16px;margin-bottom:21px}
.visit-form select{height:50px}
.visit-form textarea{resize:vertical;min-height:130px}
.visit-form .button{margin-top:18px}
.confirmation{max-width:650px}
.confirmation-icon{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;color:var(--ok);background:var(--ok-soft);font-size:24px;font-weight:700;margin-bottom:18px}
.confirmation h2{margin-bottom:9px}
.confirmation p{color:var(--muted);line-height:1.5}
.technician-feature{background:linear-gradient(120deg,var(--tenant-primary-soft),color-mix(in srgb,var(--tenant-primary-soft) 65%,white) 72%,var(--paper));border:1px solid color-mix(in srgb,var(--tenant-primary) 25%,var(--paper));color:var(--text);min-height:178px}
.technician-feature .eyebrow{color:var(--tenant-primary)}
.technician-feature h2{color:var(--text);font-size:31px}
.technician-feature p{color:var(--muted)}
.technician-feature-number{font-size:49px;font-weight:700;color:var(--tenant-primary);letter-spacing:-.07em;line-height:1;text-align:center}
.technician-feature-number span{display:block;font-size:10px;letter-spacing:.04em;color:var(--muted);margin-top:9px}
.tech-summary{display:grid;grid-template-columns:1fr 1fr;gap:11px;margin-top:16px}
.tech-summary a{display:grid;grid-template-columns:1fr auto;border:1px solid var(--line);background:var(--paper);border-radius:10px;padding:18px;min-width:0}
.tech-summary a>span:first-child{font-size:11px;color:var(--muted)}
.tech-summary strong{font-size:29px;grid-column:1;line-height:1.4}
.tech-summary small{grid-column:1;color:var(--muted);font-size:11px}
.tech-summary .summary-arrow{grid-column:2;grid-row:1/4;color:var(--tenant-primary)}
.alert-list,.request-list{display:grid;gap:10px}
.alert-list-item,.request-item{background:var(--paper);border:1px solid var(--line);border-radius:11px;padding:17px;display:flex;align-items:center;gap:13px;min-width:0}
.alert-list-item>span:nth-child(2),.request-item>div{flex:1;min-width:0}
.alert-list-item strong,.alert-list-item small,.request-item strong,.request-item small{display:block}
.alert-list-item small,.request-item small{color:var(--muted);font-size:11px;margin-top:5px}
.alert-list-item .alert-number{border:1px solid var(--tenant-primary);color:var(--tenant-primary);border-radius:50%;width:27px;height:27px;display:grid;place-items:center;font-size:11px}
.request-item p{font-size:13px;margin:10px 0 0}
.validation-message{color:var(--danger)}
.invalid{outline:1px solid var(--danger)}
#blazor-error-ui{color-scheme:light only;background:#f9ecd5;bottom:0;box-shadow:0 -1px 4px #0003;display:none;left:0;position:fixed;padding:12px 20px;width:100%;z-index:1000}
#blazor-error-ui .dismiss{position:absolute;right:15px;top:12px;cursor:pointer}
@media(max-width:1100px){.app-sidebar{flex-basis:195px}.app-topbar{padding:0 25px}.app-main{padding-left:25px;padding-right:25px}.measurement-layout{grid-template-columns:minmax(0,1.5fr) minmax(200px,.85fr)}}
@media(max-width:820px){.app-sidebar{display:none}.app-topbar{height:65px;padding:0 20px}.mobile-brand{display:block;margin-right:auto}.mobile-brand .brand-wordmark{font-size:21px}.app-main{padding:21px 22px 98px}.mobile-navigation{display:grid;grid-template-columns:repeat(4,1fr);position:fixed;bottom:0;left:0;right:0;z-index:20;background:var(--paper);border-top:1px solid var(--line);padding:5px 9px max(6px,env(safe-area-inset-bottom));box-shadow:0 -6px 25px #36274313}.mobile-navigation a{display:grid;place-items:center;gap:1px;color:var(--muted);font-size:10px;min-height:51px;border-radius:6px}.mobile-navigation a span{font-size:18px;line-height:1}.mobile-navigation a.active{background:var(--tenant-primary-soft);color:var(--tenant-primary-deep);font-weight:700}.measurement-layout{grid-template-columns:1fr}.measurement-guide{display:none}.detail-grid{grid-template-columns:1fr}.page-intro h1{font-size:35px}}
@media(max-width:560px){.app-topbar{padding:0 16px}.topbar-context{display:none}.view-switch-long{display:none}.view-switch-short{display:inline}.view-switch{font-size:11px;padding:8px 9px}.app-main{padding:18px 16px 97px}.demo-notice{font-size:10px;margin-bottom:24px}.page-intro{margin-bottom:22px}.page-intro h1{font-size:31px}.page-intro p{font-size:13px}.customer-feature,.technician-feature{align-items:flex-start;flex-direction:column;gap:19px;padding:23px;min-height:0}.customer-feature h2,.technician-feature h2{font-size:25px}.customer-feature .button{width:100%}.technician-feature-number{font-size:36px;display:flex;align-items:baseline;gap:9px}.technician-feature-number span{margin:0}.section-heading h2{font-size:20px}.section-heading .text-link{font-size:11px}.bath-card{min-height:96px;padding:14px 13px;gap:10px}.bath-card-content>strong{font-size:14px}.quick-actions{grid-template-columns:1fr}.surface-card{padding:18px}.measurement-panel{padding:17px}.route-active,.route-queued{grid-template-columns:29px minmax(0,1fr);gap:10px}.route-number{width:28px;height:28px;font-size:10px}.route-active:after,.route-queued:before{left:14px}.route-titleline h2{font-size:22px}.field-label{flex-direction:column}.measurement-input-wrap{height:66px}.target-line{font-size:11px}.result-area{flex-wrap:wrap}.status-choice{font-size:10px;min-height:40px}.route-queued>div{flex-wrap:wrap}.report-row,.history-row{grid-template-columns:1fr auto;gap:7px}.report-row .status-badge,.history-row .status-badge{grid-column:1/3}.report-meta{grid-template-columns:1fr 1fr}.tech-summary{gap:8px}.tech-summary a{padding:13px}.alert-list-item,.request-item{align-items:start;flex-wrap:wrap}.alert-list-item .status-badge,.request-item .status-badge{margin-left:40px}}
@media(max-width:360px){.brand-wordmark{font-size:19px}.view-switch{padding:6px}.app-main{padding-left:12px;padding-right:12px}.route-titleline{display:block}.route-titleline>span{display:block;margin-bottom:8px}.bath-card-index{width:26px;height:26px}.bath-card-content>span:not(.status-badge){font-size:11px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.button,.bath-card{transition:none!important}.button:hover,.bath-card:hover{transform:none}}
@media print{html,body,.app-shell{background:#fff!important;color:#000!important}.app-sidebar,.app-topbar,.mobile-navigation,.demo-notice,.no-print,.button-row,.breadcrumb,.page-intro{display:none!important}.app-main{padding:0!important;max-width:none}.printable-report{border:0;border-radius:0;padding:0}.report-disclaimer,.status-badge{print-color-adjust:exact;-webkit-print-color-adjust:exact}}
.account-shell .app-sidebar,.account-shell .view-switch,.account-shell .topbar-context{display:none}
.account-shell .mobile-brand{display:inline-flex}
.account-shell .app-main{max-width:690px}
.account-shell .app-topbar{position:static}
.account-shell .account-panel{max-width:560px;padding:28px;display:grid;gap:16px}
.account-shell .account-panel section,.account-shell .account-panel form{display:grid;gap:16px}
.account-shell .account-panel .form-floating,.account-shell .account-panel label:not(.checkbox label){display:grid;gap:7px;font-size:13px;font-weight:600}
.account-shell .account-panel input:not([type=checkbox]):not([type=hidden]){width:100%;min-height:44px;border:1px solid var(--line);border-radius:8px;background:var(--paper);padding:10px 12px;color:var(--text)}
.account-shell .account-panel .checkbox label{display:flex;align-items:center;gap:8px;font-weight:400}
.account-shell .account-panel .btn-primary{background:var(--tenant-primary);color:#fff;border:0;border-radius:9px;padding:12px 18px;font-weight:700}
.account-shell .account-panel .text-danger{color:var(--danger)}
/* Anlagen: desktop overview and process schema */
.plant-toolbar{display:flex;align-items:end;justify-content:space-between;gap:18px;margin:0 0 22px}.plant-role-preview{display:grid;gap:6px;max-width:340px;flex:1}.plant-role-preview label{font-weight:700;font-size:12px}.plant-role-preview select,.editor-fields input,.editor-fields select,.editor-select-label select,.editor-select-label textarea,.chamber-editor-header input,.inline-add input,.inline-add select,.metric-row input,.addition-row input,.addition-row select{width:100%;min-width:0;min-height:47px;border:1.5px solid #ada0ba;border-radius:8px;background:#fff;color:var(--text);padding:10px 12px;font-size:16px}.plant-role-preview select{min-height:47px;border:1.5px solid #ada0ba;border-radius:8px;padding:9px 12px;background:#fff;color:var(--text);font-size:14px}.plant-role-preview small{font-size:11px;color:var(--muted);line-height:1.4}.plant-list{display:grid;gap:12px}.plant-list-card{background:var(--paper);border:1px solid var(--line);border-radius:13px;padding:22px;display:flex;justify-content:space-between;align-items:center;gap:18px}.plant-list-identity{display:flex;align-items:center;gap:16px;min-width:0}.plant-list-identity h2{font-size:21px;margin:4px 0}.plant-list-identity p{font-size:12px;color:var(--muted);margin:0}.plant-glyph{display:grid;place-items:center;width:57px;height:57px;border-radius:12px;background:var(--tenant-primary-soft);color:var(--tenant-primary);font-size:25px;flex:none}.plant-list-actions{display:flex;align-items:center;gap:16px;flex-wrap:wrap}.plant-detail-head{display:flex;align-items:center;justify-content:space-between;gap:16px}.plant-detail-head .page-intro{margin-bottom:24px}.plant-hero-photo{max-height:330px;overflow:hidden;border-radius:14px;margin-bottom:21px;border:1px solid var(--line)}.plant-hero-photo img{width:100%;max-height:330px;object-fit:cover;display:block}.plant-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.plant-stats>div{background:var(--paper);border:1px solid var(--line);border-radius:10px;padding:16px;min-width:0}.plant-stats span,.plant-stats strong{display:block}.plant-stats span{color:var(--muted);font-size:11px}.plant-stats strong{font-size:17px;margin-top:6px;overflow-wrap:anywhere}.plant-schema{display:grid;gap:17px}.schema-chamber{background:#f1edeb;border:1px solid #d9cfdc;border-radius:14px;padding:15px}.schema-chamber-heading{display:flex;align-items:center;gap:9px;color:var(--tenant-primary-deep);margin-bottom:13px;font-size:14px}.schema-chamber-heading small{font-size:11px;color:var(--muted);margin-left:auto}.schema-chamber-icon{font-size:23px}.schema-zones{display:grid;grid-template-columns:repeat(auto-fit,minmax(215px,1fr));gap:12px}.schema-zone{background:var(--paper);border:1px solid var(--line);border-radius:10px;padding:17px;display:grid;gap:13px;min-width:0}.schema-zone-top{display:flex;align-items:center;gap:11px}.schema-tank{font-size:26px;display:grid;place-items:center;width:40px;height:40px;border-radius:8px;background:var(--tenant-primary-soft);color:var(--tenant-primary);flex:none}.schema-zone-top strong,.schema-zone-top small{display:block}.schema-zone-top strong{font-size:14px}.schema-zone-top small{color:var(--muted);font-size:11px;margin-top:3px}.schema-zone-meta,.schema-zone-footer{display:flex;justify-content:space-between;align-items:center;gap:9px;font-size:11px}.schema-zone-meta>span:first-child,.schema-zone-footer>span{color:var(--muted)}.schema-products{display:flex;flex-wrap:wrap;gap:5px}.schema-products span{border:1px solid #d8cce1;border-radius:6px;padding:6px 8px;color:var(--tenant-primary-deep);font-size:11px}.schema-zone-footer{border-top:1px solid var(--line);padding-top:9px}.schema-empty{padding:16px;color:var(--muted);font-size:13px}.plant-detail-bottom{display:grid;grid-template-columns:1fr 1fr;gap:17px;margin-top:27px}.detail-line small{color:var(--muted);line-height:1.8}
/* Anlage editor */
.editor-layout{display:grid;grid-template-columns:minmax(0,1fr) 265px;align-items:start;gap:19px}.plant-editor{min-width:0;display:grid;gap:18px}.editor-section{padding:24px}.editor-section-head{display:flex;align-items:center;gap:13px;margin-bottom:20px}.editor-section-head h2{font-size:23px;margin:4px 0 0}.editor-step{width:35px;height:35px;border:1px solid var(--tenant-primary);border-radius:50%;display:grid;place-items:center;font-size:12px;font-weight:700;color:var(--tenant-primary)}.editor-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.editor-fields.three-cols{grid-template-columns:repeat(3,minmax(0,1fr))}.editor-fields label,.editor-select-label,.chamber-editor-header label,.metric-row label,.addition-row label{display:grid;gap:7px;font-size:12px;font-weight:700;min-width:0}.required-mark{color:var(--danger)}.photo-field{margin-top:21px;padding-top:17px;border-top:1px solid var(--line)}.photo-field strong{font-size:13px}.photo-field p{color:var(--muted);font-size:12px;margin:5px 0 13px}.photo-field input[type=file]{display:block;width:100%;font-size:13px;max-width:100%}.photo-field input[type=file]::file-selector-button{border:1px solid var(--tenant-primary);border-radius:7px;color:var(--tenant-primary-deep);background:var(--tenant-primary-soft);padding:10px;margin-right:12px;font:inherit;font-weight:700;cursor:pointer}.photo-preview{display:flex;align-items:center;gap:11px;margin-top:13px}.photo-preview img{height:94px;width:140px;object-fit:cover;border-radius:8px}.photo-preview div{display:grid;gap:4px;font-size:12px;min-width:0;overflow-wrap:anywhere}.chamber-editor{border:1px solid #cfc3d8;background:#fbf9fc;border-radius:12px;padding:16px;margin-top:17px}.chamber-editor-header{display:flex;align-items:end;gap:12px;justify-content:space-between;margin-bottom:14px}.chamber-editor-header label{flex:1}.danger-link{color:var(--danger);background:none;border:0}.danger-link:hover{text-decoration:underline}.zone-editor{padding:16px;background:var(--paper);border:1px solid var(--line);border-radius:10px;margin:12px 0}.zone-editor-title{display:flex;align-items:center;gap:9px;margin-bottom:16px;font-size:13px}.zone-editor-title .danger-link{margin-left:auto}.zone-icon{background:var(--tenant-primary-soft);color:var(--tenant-primary);width:29px;height:29px;border-radius:6px;display:grid;place-items:center;font-size:19px}.zone-subsection{border-top:1px solid var(--line);margin-top:19px;padding-top:18px}.zone-subsection-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}.zone-subsection-title h4{font-size:15px;margin:4px 0 0}.count-chip{font-size:10px;border:1px solid var(--line);border-radius:20px;padding:5px 8px;white-space:nowrap}.inline-add{display:flex;gap:8px;align-items:center}.inline-add .button{flex:none}.inline-add .unit-field{max-width:91px}.custom-metric{margin-top:9px}.pin-list{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}.product-pin{display:inline-flex;align-items:center;gap:7px;background:var(--tenant-primary-soft);color:var(--tenant-primary-deep);border-radius:7px;padding:6px 7px 6px 10px;font-size:12px;max-width:100%;overflow-wrap:anywhere}.product-pin button{border:0;background:transparent;color:var(--tenant-primary-deep);font-size:19px;line-height:1}.measurement-config{display:grid;gap:7px;margin-top:13px}.metric-row{display:grid;grid-template-columns:minmax(110px,1fr) minmax(100px,1fr) 27px;align-items:end;gap:9px;padding:9px 0;border-top:1px solid var(--line)}.metric-row>div{align-self:center;min-width:0}.metric-row strong,.metric-row small{display:block;overflow-wrap:anywhere}.metric-row strong{font-size:12px}.metric-row small{font-size:10px;color:var(--muted);margin-top:3px}.metric-row input{min-height:40px;font-size:13px}.remove-small{width:30px;height:40px;border:0;background:transparent;color:var(--danger);font-size:21px}.addition-row{display:grid;grid-template-columns:1.1fr 1.3fr .7fr .65fr 27px;gap:7px;align-items:end;margin:8px 0}.addition-row input,.addition-row select{min-height:41px;font-size:13px}.add-zone{margin-top:4px}.add-chamber{margin-top:17px;width:100%;border:1px dashed var(--tenant-primary)}.contact-add{margin-top:22px;border-top:1px solid var(--line);padding-top:17px}.contact-add strong{font-size:13px}.contact-add .inline-add{margin-top:10px}.editor-select-label{margin:13px 0}.editor-select-label textarea{resize:vertical}.editor-actions{display:flex;justify-content:flex-end;gap:11px;flex-wrap:wrap}.delete-plant{justify-self:start;margin:-10px 0 10px}.editor-aside{position:sticky;top:95px}.editor-preview h2{font-size:20px;margin:8px 0}.editor-preview p{font-size:12px;color:var(--muted)}.preview-chamber{display:grid;gap:8px;border-top:1px solid var(--line);padding:13px 0;font-size:12px;overflow-wrap:anywhere}.preview-chamber span{padding-left:11px}.preview-chamber small{display:block;padding-left:14px;color:var(--muted);margin-top:3px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.confirm-dialog{border:1px solid var(--line);border-radius:14px;background:var(--paper);color:var(--text);padding:28px;width:min(460px,calc(100vw - 32px));box-shadow:0 25px 65px #281c3a40}.confirm-dialog::backdrop{background:#21163095}.confirm-dialog h2{font-size:24px;margin:9px 0}.confirm-dialog p{font-size:14px;line-height:1.5;color:var(--muted)}.dialog-actions{display:flex;justify-content:flex-end;gap:9px;flex-wrap:wrap;margin-top:24px}.button-danger{background:var(--danger);color:white}.button-danger:hover{background:#842234}
@media(max-width:1080px){.editor-layout{grid-template-columns:minmax(0,1fr) 220px}.editor-fields.three-cols{grid-template-columns:repeat(2,minmax(0,1fr))}.addition-row{grid-template-columns:repeat(2,minmax(0,1fr))}.addition-row .remove-small{align-self:center}}
@media(max-width:820px){.editor-layout{grid-template-columns:1fr}.editor-aside{position:static;grid-row:1}.editor-preview{padding:16px}.editor-preview .preview-chamber{display:inline-grid;width:49%;vertical-align:top;padding-right:9px}.plant-list-card{padding:16px}}
@media(max-width:560px){.plant-toolbar{display:grid;gap:15px}.plant-toolbar .button{width:100%}.plant-role-preview{max-width:none}.plant-list-card{align-items:flex-start;flex-direction:column}.plant-list-actions{width:100%}.plant-list-actions .button{flex:1}.plant-detail-head{display:block}.plant-detail-head>.button{margin-bottom:18px}.plant-stats{grid-template-columns:1fr 1fr}.plant-stats>div:last-child{grid-column:1/3}.plant-detail-bottom{grid-template-columns:1fr}.schema-chamber{padding:10px}.schema-zones{grid-template-columns:1fr}.editor-fields,.editor-fields.three-cols{grid-template-columns:1fr}.editor-section{padding:18px}.chamber-editor{padding:11px}.zone-editor{padding:12px}.chamber-editor-header{align-items:stretch;flex-direction:column}.chamber-editor-header .danger-link{align-self:flex-start}.inline-add{flex-wrap:wrap}.inline-add input,.inline-add select{flex:1 1 150px}.inline-add .button{flex:1 1 100%}.custom-metric .text-link{padding:9px}.metric-row{grid-template-columns:1fr 30px}.metric-row>div{grid-column:1}.metric-row label{grid-column:1}.metric-row .remove-small{grid-column:2;grid-row:1/3;align-self:center}.editor-preview .preview-chamber{width:100%}.editor-actions>*{flex:1}.photo-preview img{width:95px}.dialog-actions .button{flex:1}.zone-editor-title{flex-wrap:wrap}.zone-editor-title .danger-link{margin-left:0}}
@media(max-width:360px){.plant-stats{grid-template-columns:1fr}.plant-stats>div:last-child{grid-column:auto}.addition-row{grid-template-columns:1fr}.metric-row{grid-template-columns:minmax(0,1fr) 30px}}
@media(prefers-reduced-motion:reduce){.plant-list-card,.schema-zone,.confirm-dialog{animation:none;transition:none}}
/* Zonenart und anwendungsabhängige Verfahrensdaten */
.editor-fields.two-cols{grid-template-columns:repeat(2,minmax(0,1fr))}.exchange-interval{border-top:1px solid var(--line);margin-top:20px;padding-top:17px}.exchange-interval>strong,.process-options strong{display:block;font-size:13px;margin-bottom:10px}.exchange-interval .fine-print{margin-top:8px}.process-options{border:1px solid var(--line);border-radius:9px;padding:15px;margin-top:12px}.process-options p{color:var(--muted);font-size:12px;margin:0 0 14px}.process-options label{display:grid;gap:7px;font-size:12px;font-weight:700;max-width:340px}.process-options input{width:100%;min-height:47px;border:1.5px solid #ada0ba;border-radius:8px;padding:10px 12px;font-size:16px;background:#fff;color:var(--text)}.process-chips{display:flex;flex-wrap:wrap;gap:8px}.process-chip{border:1px solid #b8a4c8;background:#fff;color:var(--tenant-primary-deep);border-radius:8px;min-height:42px;padding:8px 11px;font-size:12px;font-weight:700}.process-chip[aria-pressed=true]{color:var(--tenant-primary-contrast);background:var(--tenant-primary);border-color:var(--tenant-primary)}.process-options .ultrasound-field{margin-top:15px}.process-note{background:var(--tenant-primary-soft);border-radius:8px;padding:12px;color:var(--tenant-primary-deep);font-size:12px;line-height:1.5}.schema-process{display:flex;flex-wrap:wrap;gap:5px}.schema-process span{font-size:10px;padding:5px 7px;border-radius:5px;background:var(--tenant-primary-soft);color:var(--tenant-primary-deep)}
.zone-basics{margin-bottom:16px}.zone-volume-field{background:var(--tenant-primary-soft);border:1px solid var(--tenant-primary);border-radius:10px;padding:11px}.zone-volume-field small{font-size:11px;font-weight:400;line-height:1.4;color:var(--text)}.zone-process-fields{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:560px){.editor-fields.two-cols{grid-template-columns:1fr}.process-options{padding:12px}.process-chips{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.process-chip{white-space:normal;text-align:left}}
@media(max-width:1080px){.zone-process-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:560px){.zone-process-fields{grid-template-columns:1fr}}
@media(max-width:360px){.process-chips{grid-template-columns:1fr}}
.zone-process-summary{display:flex;flex-wrap:wrap;gap:7px;margin:-8px 0 22px}.zone-process-summary span{border:1px solid #d8cce1;border-radius:6px;padding:7px 10px;background:var(--tenant-primary-soft);color:var(--tenant-primary-deep);font-size:11px;font-weight:700}
/* Durchlaufende Farbstufen für Zonen, unabhängig von der Kammer */
.zone-tone-1{--zone-bg:#f7f3fb;--zone-edge:#65458a}
.zone-tone-2{--zone-bg:#f0eaf8;--zone-edge:#7651a1}
.zone-tone-3{--zone-bg:#eae2f4;--zone-edge:#68418d}
.zone-tone-4{--zone-bg:#f3eaf5;--zone-edge:#88549a}
.zone-tone-5{--zone-bg:#ece2f0;--zone-edge:#79488f}
.zone-tone-6{--zone-bg:#e7dce9;--zone-edge:#633d7a}
.zone-editor.zone-tone-1,.zone-editor.zone-tone-2,.zone-editor.zone-tone-3,.zone-editor.zone-tone-4,.zone-editor.zone-tone-5,.zone-editor.zone-tone-6,.schema-zone.zone-tone-1,.schema-zone.zone-tone-2,.schema-zone.zone-tone-3,.schema-zone.zone-tone-4,.schema-zone.zone-tone-5,.schema-zone.zone-tone-6{background:var(--zone-bg);border-left:5px solid var(--zone-edge)}
.zone-editor .zone-icon,.schema-zone .schema-tank{color:#fff;background:var(--zone-edge);font-size:12px;font-weight:800;letter-spacing:.02em}
.zone-editor .process-options{background:#ffffff9e}
.chamber-editor.chamber-shade-1,.schema-chamber.chamber-shade-1{background:#f6f2f7;border-color:#d8cbdf}
.chamber-editor.chamber-shade-2,.schema-chamber.chamber-shade-2{background:#eee8f1;border-color:#cfc0d8}
.chamber-editor.chamber-shade-3,.schema-chamber.chamber-shade-3{background:#e9e2ec;border-color:#c8b7d2}
.chamber-editor[class*=chamber-shade],.schema-chamber[class*=chamber-shade]{border-left:4px solid #9d83b1}
.schema-direct{background:#f6f2f8;border:1px dashed #a68ebc}
.direct-zones-group{margin:19px 0;border-top:2px dashed #bca9ca;padding-top:17px}.direct-zones-heading h3{font-size:17px;margin:4px 0 12px}
.structure-empty{background:var(--tenant-primary-soft);border-radius:8px;padding:15px;color:var(--tenant-primary-deep);font-size:13px}
.structure-add-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:18px}
.structure-add-button{min-width:0;min-height:80px;display:flex;align-items:center;gap:12px;text-align:left;padding:14px;background:#fff;border:1.5px dashed #a88fbb;border-radius:11px;color:var(--tenant-primary-deep)}
.structure-add-button:hover{background:var(--tenant-primary-soft);border-style:solid}
.structure-add-button .structure-add-icon{display:grid;place-items:center;flex:none;width:36px;height:36px;border-radius:8px;background:var(--tenant-primary-soft);color:var(--tenant-primary);font-size:19px}
.structure-add-button strong,.structure-add-button small{display:block}.structure-add-button strong{font-size:13px}.structure-add-button small{font-size:11px;color:var(--muted);line-height:1.4;margin-top:3px}
.preview-zone{display:block;background:var(--zone-bg);border-left:4px solid var(--zone-edge);border-radius:4px;padding:8px!important;font-size:11px}
.preview-zone small{padding-left:13px!important}
@media(max-width:560px){.structure-add-actions{grid-template-columns:1fr}.structure-add-button{min-height:67px}}

/* Anlagen-QR: ruhiger Druckbereich und gut lesbarer Direktlink */
.plant-qr-section{margin-top:24px}
.plant-qr-section>h2{margin:7px 0 22px}
.qr-card{display:grid;grid-template-columns:minmax(190px,240px) minmax(0,1fr);gap:26px;align-items:start}
.qr-artwork{padding:14px;background:#fff;border:1px solid var(--line);border-radius:11px;text-align:center;color:var(--text)}
.qr-artwork .qr-image{width:100%;aspect-ratio:1;display:grid;place-items:center}
.qr-image svg{width:100%;height:auto;display:block}
.qr-artwork small{display:block;margin-top:11px;font-size:11px;font-weight:700;overflow-wrap:anywhere}
.qr-content{min-width:0}
.qr-content h3{margin:7px 0 10px;font-size:20px;line-height:1.3}
.qr-content>p{color:var(--muted);font-size:13px;line-height:1.55}
.qr-content .qr-advice{background:var(--tenant-primary-soft);border-left:3px solid var(--tenant-primary);padding:10px 13px;color:var(--tenant-primary-deep)}
.qr-link{padding:12px 13px;margin:17px 0;border:1px solid var(--line);border-radius:8px;background:var(--tenant-primary-soft);font-size:12px;font-weight:700;color:var(--tenant-primary-deep);overflow-wrap:anywhere;user-select:all}
.qr-actions{display:flex;flex-wrap:wrap;gap:10px}
.qr-actions .button{min-height:46px;white-space:normal}
.qr-actions button:disabled{opacity:.5;cursor:not-allowed}
.qr-content .qr-message{color:var(--tenant-primary-deep);font-weight:700}
.qr-ids{margin-top:22px;border-top:1px solid var(--line);padding-top:13px;font-size:12px}
.qr-ids summary{cursor:pointer;color:var(--tenant-primary-deep);font-weight:700}
.qr-ids dl{display:grid;grid-template-columns:minmax(90px,150px) minmax(0,1fr);gap:9px 14px;margin-top:16px}
.qr-ids dt{color:var(--muted)}.qr-ids dd{margin:0;overflow-wrap:anywhere;font-family:ui-monospace,monospace}
.qr-content .fine-print{font-size:11px;margin-top:22px}
.qr-demo-banner{background:var(--tenant-primary-soft);border-left:4px solid var(--tenant-primary);color:var(--tenant-primary-deep);font-size:12px;font-weight:700;padding:12px 15px;margin-bottom:20px}
@media(max-width:640px){.qr-card{grid-template-columns:1fr}.qr-artwork{max-width:255px;margin:0 auto;width:100%}.qr-ids dl{grid-template-columns:1fr;gap:4px}.qr-ids dd{margin-bottom:8px}}
@media print{.qr-actions,.qr-ids,.qr-content>.fine-print,.qr-demo-banner{display:none!important}.qr-card{grid-template-columns:200px 1fr}.qr-artwork{break-inside:avoid}}

/* Messen: erst Anlage wählen, dann Kammern/Zonen mit ihren Prüfparametern. */
.measure-plant-heading{display:flex;justify-content:space-between;align-items:start;gap:18px}
.measure-plant-heading>.button{flex:none}
.measure-process-list{display:grid;gap:17px}
.measure-zones{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,310px),1fr));gap:13px}
.measure-zone-card{background:var(--zone-bg);border:1px solid var(--line);border-left:5px solid var(--zone-edge);border-radius:10px;padding:18px;min-width:0;display:flex;flex-direction:column;gap:17px}
.measure-zone-heading{display:flex;align-items:center;gap:12px}
.measure-zone-heading .schema-tank{background:var(--zone-edge);color:#fff;font-size:12px;font-weight:800}
.measure-zone-heading strong,.measure-zone-heading small{display:block}
.measure-zone-heading strong{font-size:16px}.measure-zone-heading small{font-size:12px;color:#51495b;line-height:1.5;margin-top:3px}
.measure-zone-metrics{background:#ffffffcf;border:1px solid #ddd5e2;border-radius:8px;padding:14px}
.measure-zone-metrics>strong{display:block;font-size:12px;margin-bottom:8px}
.measure-zone-metrics p{font-size:12px;color:var(--muted)}
.measure-zone-metrics ul{padding:0;margin:0;list-style:none}
.measure-zone-metrics li{display:flex;align-items:baseline;justify-content:space-between;gap:12px;border-top:1px solid var(--line);padding:9px 0;font-size:12px}
.measure-zone-metrics li span:first-child{font-weight:700}.measure-zone-metrics li span:last-child{text-align:right;color:var(--muted)}
.measure-zone-metrics small{font-size:11px;font-weight:400;color:var(--muted)}
.measure-zone-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:auto}
.measure-zone-actions .button{min-height:46px}

/* Tabellen enthalten die genauen Zahlen; Diagramme machen den Zeitverlauf sichtbar. */
.history-overview{margin-bottom:30px}
.history-table-scroll{width:100%;overflow-x:auto}
.measurement-history-table{border-collapse:collapse;width:100%;font-size:12px;text-align:left}
.measurement-history-table th{background:var(--tenant-primary-soft);color:var(--tenant-primary-deep);font-size:11px;padding:12px 9px;white-space:nowrap}
.measurement-history-table td{padding:13px 9px;border-bottom:1px solid var(--line);vertical-align:top;overflow-wrap:anywhere}
.measurement-history-table td strong,.measurement-history-table td small{display:block}
.measurement-history-table td small{font-size:10px;color:var(--muted);margin-top:5px}
.history-sample{display:inline-flex;color:var(--tenant-primary-deep);background:var(--tenant-primary-soft);padding:6px 8px;border-radius:5px;font-size:11px;font-weight:700}
.history-filter{display:grid;gap:7px;max-width:350px;font-size:13px;font-weight:700;margin-bottom:20px}
.history-selected-zone{font-size:13px;font-weight:700;color:var(--tenant-primary-deep);margin:0 0 18px}
.history-filter select{min-height:48px;font-size:16px;border:1.5px solid #ada0ba;border-radius:8px;background:#fff;color:var(--text);padding:9px 12px;width:100%}
.trend-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.trend-card h3{font-size:18px;margin:0 0 4px}.trend-card h3 small{font-size:12px;color:var(--muted);font-weight:400}
.trend-card>p{font-size:12px;color:var(--muted);margin:0 0 15px}
.trend-chart svg{width:100%;height:auto;display:block;overflow:visible}
.trend-chart .chart-grid{stroke:#cfc9d2;stroke-width:1}
.trend-chart .chart-label{fill:var(--muted);font-size:12px}
.chart-legend{display:flex;gap:9px 16px;flex-wrap:wrap;font-size:12px;color:var(--text);margin:7px 0}
.chart-legend span{display:inline-flex;align-items:center;gap:7px}
.chart-legend i{display:inline-block;width:12px;height:12px;border-radius:50%}
.history-compare{margin-top:24px}
.history-compare h2{margin:7px 0 11px;font-size:21px}
@media(max-width:1100px){.trend-grid{grid-template-columns:1fr}}
@media(max-width:640px){.measure-plant-heading{display:block}.measure-plant-heading>.button{width:100%;margin-bottom:20px}.measure-zones{grid-template-columns:1fr}.measure-zone-metrics li{flex-direction:column;gap:3px}.measure-zone-metrics li span:last-child{text-align:left}.measure-zone-actions .button{flex:1}.measurement-history-table,.measurement-history-table tbody,.measurement-history-table tr,.measurement-history-table td{display:block}.measurement-history-table thead{display:none}.measurement-history-table tr{border:1px solid var(--line);border-radius:9px;padding:9px 13px;margin:0 0 11px}.measurement-history-table td{border:0;display:grid;grid-template-columns:80px minmax(0,1fr);gap:10px;padding:6px 0}.measurement-history-table td::before{content:attr(data-label);font-weight:700;color:var(--muted);font-size:11px}.history-overview{padding:16px}.history-overview .section-heading{gap:10px;flex-wrap:wrap}}

/* Messmatrix: Datum bleibt beim seitlichen Scrollen stehen, Zonen bleiben als Spaltengruppen erkennbar. */
.history-scroll-hint{font-size:12px;color:var(--muted);line-height:1.5;margin:3px 0 14px}
.plant-sample-chip{display:inline-flex;margin:6px 0 0;font-size:10px}
.history-table-scroll{max-height:min(70vh,700px);overflow:auto;overscroll-behavior:contain;border:1px solid var(--line);border-radius:9px;background:#fff}
.history-matrix-table{width:100%;min-width:max-content;border-collapse:separate;border-spacing:0;font-size:12px;text-align:center;color:var(--text)}
.history-matrix-table th,.history-matrix-table td{padding:11px 10px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);vertical-align:middle}
.history-matrix-table thead th{position:sticky;z-index:3;color:var(--text)}
.history-matrix-table thead tr:first-child th{top:0;height:43px}
.history-matrix-table thead tr:nth-child(2) th{top:43px;height:54px}
.history-matrix-table .matrix-date-head{left:0;z-index:5;min-width:108px;background:var(--tenant-primary-soft);text-align:left}
.history-matrix-table .matrix-date{position:sticky;left:0;z-index:2;min-width:108px;text-align:left;white-space:nowrap;background:#fffefa;font-weight:800;box-shadow:3px 0 6px #31264116}
.history-matrix-table .matrix-zone-head{background:var(--zone-bg);border-top:4px solid var(--zone-edge);font-size:13px;white-space:nowrap}
.history-matrix-table .matrix-parameter-head{background:var(--zone-bg);min-width:113px;max-width:135px;line-height:1.3;font-weight:700;white-space:normal}
.history-matrix-table .matrix-parameter-head span,.history-matrix-table .matrix-parameter-head small{display:block}
.history-matrix-table .matrix-parameter-head small{font-weight:400;margin-top:4px;color:#51495b}
.history-matrix-table .matrix-cell{min-width:113px;background:color-mix(in srgb,var(--zone-bg) 29%,white)}
.history-matrix-table .matrix-first{border-left:2px solid var(--zone-edge)}
.matrix-reading+.matrix-reading{border-top:1px dashed var(--line);padding-top:7px;margin-top:7px}
.matrix-reading strong{display:block;font-size:14px;font-variant-numeric:tabular-nums}
.matrix-reading small{display:block;font-size:10px;color:#50485c;margin-top:3px;white-space:nowrap}
.matrix-empty{color:var(--muted)}
.measurement-navigation{display:flex;align-items:stretch;gap:10px;margin-top:16px}.measurement-navigation .measurement-submit{margin:0;flex:1;min-width:0}.measurement-navigation>.button-secondary{min-height:51px;white-space:nowrap}.guide-step:disabled{cursor:default;opacity:.72}.plant-report-zone{border-top:2px solid var(--line);padding:21px 0 10px;break-inside:avoid-page}.plant-report-zone-head{display:flex;align-items:center;justify-content:space-between;gap:16px}.plant-report-zone-head h2{margin:5px 0 9px}.plant-report-zone-head .text-link{font-size:12px}.report-zone-history{margin:25px 0}.report-row>strong .corrected-mark{display:block;margin-top:5px}.corrected-mark{display:inline-block;padding:3px 6px;border-radius:5px;background:var(--tenant-primary-soft);color:var(--tenant-primary-deep);font-size:10px;font-weight:700;white-space:nowrap}.matrix-correct{display:block;margin:5px auto 0;border:0;background:transparent;color:var(--tenant-primary-deep);text-decoration:underline;cursor:pointer;font-size:11px;padding:7px 4px;min-height:32px}.matrix-correct:focus-visible,.guide-step:focus-visible{outline:3px solid var(--tenant-primary);outline-offset:2px}.correction-panel{padding:18px;border:2px solid var(--tenant-primary);background:var(--tenant-primary-soft);border-radius:10px;margin:0 0 20px}.correction-panel h3{margin:5px 0;font-size:18px}.correction-panel p{font-size:13px;line-height:1.5}.correction-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.correction-fields label{display:grid;align-content:start;gap:7px;font-weight:700;font-size:12px}.correction-fields label span{font-weight:400;color:var(--muted)}.correction-fields input,.correction-fields select{width:100%;min-height:48px;border:1.5px solid #83718c;border-radius:7px;padding:8px;background:#fff;color:var(--text);font-size:16px}.correction-fields :focus-visible{outline:3px solid var(--tenant-primary);outline-offset:2px}.correction-audit{margin-top:24px;border-top:1px solid var(--line);padding-top:12px}.correction-audit h3{font-size:17px}.correction-audit details{border:1px solid var(--line);border-radius:7px;margin:8px 0;padding:12px;font-size:12px}.correction-audit summary{cursor:pointer;font-weight:700}.correction-audit li{padding:5px 0;line-height:1.5}
@media(max-width:820px){.correction-fields{grid-template-columns:1fr}.plant-report-zone-head{align-items:flex-start;flex-direction:column}.measurement-navigation{flex-wrap:wrap}.measurement-navigation .measurement-submit{flex-basis:100%}.measurement-navigation>.button-secondary{width:100%}}
@media print{.report-zone-history .history-trends,.report-zone-history .history-overview{break-inside:auto}.report-zone-history .history-table-scroll{max-height:none;overflow:visible}.report-zone-history .history-matrix-table{min-width:0}.report-zone-history .history-matrix-table thead th,.report-zone-history .history-matrix-table .matrix-date{position:static}.correction-audit details{break-inside:avoid}}

/* Even editor rows and compact, keyboard-accessible process sections. */
.plant-main-fields{align-items:start}
.plant-main-fields>label{grid-template-rows:auto 47px;align-content:start}
.plant-main-fields>label>span{min-height:18px}
.plant-main-fields input,.plant-main-fields select{height:47px}
.zone-basics{align-items:start}
.zone-basics>label{grid-template-rows:auto 47px auto;align-content:start}
.zone-basics>label>input{height:47px}
.zone-basics .zone-volume-field{background:transparent;border:0;border-radius:0;padding:0}
.zone-basics .zone-volume-field small{color:var(--muted);line-height:1.45;overflow-wrap:anywhere}
.chamber-editor>summary,.zone-editor>summary{list-style:none;display:flex;align-items:center;gap:12px;min-height:50px;cursor:pointer}
.chamber-editor>summary::-webkit-details-marker,.zone-editor>summary::-webkit-details-marker{display:none}
.chamber-editor>summary:focus-visible,.zone-editor>summary:focus-visible{outline:3px solid var(--tenant-primary);outline-offset:3px;border-radius:6px}
.editor-chevron{display:block;flex:none;width:10px;height:10px;border-right:2px solid var(--tenant-primary-deep);border-bottom:2px solid var(--tenant-primary-deep);transform:rotate(-45deg);transition:transform .16s ease}
.chamber-editor[open]>.chamber-editor-summary .editor-chevron,.zone-editor[open]>.zone-editor-summary .editor-chevron{transform:rotate(45deg)}
.zone-editor>summary{min-height:44px}
.chamber-summary-text,.zone-summary-text{display:block;min-width:0;overflow-wrap:anywhere}
.chamber-summary-text strong,.chamber-summary-text small,.zone-summary-text strong,.zone-summary-text small{display:block}
.chamber-summary-text strong,.zone-summary-text strong{font-size:14px}
.chamber-summary-text small,.zone-summary-text small{font-size:11px;font-weight:400;line-height:1.45;color:var(--muted);margin-top:3px}
.chamber-editor-body,.zone-editor-body{border-top:1px solid var(--line);padding-top:15px;margin-top:10px}
.zone-editor-body>.zone-editor-title{margin-bottom:16px;justify-content:space-between}
@media(max-width:560px){.plant-main-fields{grid-template-columns:1fr}.zone-basics{grid-template-columns:1fr}.chamber-editor>summary,.zone-editor>summary{gap:9px}}
@media(prefers-reduced-motion:reduce){.editor-chevron{transition:none}}
.product-brix-note{display:block;margin-top:4px;color:var(--muted);font-size:11px}
.customer-directory-back{display:inline-flex;align-items:center;min-height:44px;margin-bottom:12px}
.product-assignment-company{display:grid;gap:6px;max-width:440px;margin:0 0 16px;font-size:12px;font-weight:700}
.product-assignment-company select{width:100%;min-height:46px;border:1.5px solid #ada0ba;border-radius:8px;padding:9px 12px;background:var(--paper);color:var(--text);font:inherit;font-size:14px}
.product-grant-action{flex:none;min-height:40px;padding:7px 10px;font-size:12px}
.zone-editor .product-picker-item .product-picker-grant{min-width:0;padding:7px 9px;font-size:12px}
.product-option-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}
.product-option-actions .text-link{font-size:12px;white-space:nowrap}
.notice-report-scroll{max-width:100%;overflow-x:auto;margin:12px 0}
.notice-report-table{width:100%;min-width:520px;border-collapse:collapse;text-align:left;font-size:13px}
.notice-report-table th,.notice-report-table td{padding:10px;border-bottom:1px solid var(--line);vertical-align:top}
.notice-report-table thead th{font-size:11px;color:var(--muted)}
.due-measurements{border-left:4px solid #c57938;margin:0 0 24px}
.due-measurements ul{list-style:none;margin:12px 0 0;padding:0}
.due-measurements li{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;border-top:1px solid var(--line);padding:12px 0}
.due-measurements li>div{display:grid;gap:4px}.due-measurements li small{color:var(--muted)}
.due-measurements li p{flex-basis:100%;margin:0}
.reminder-preferences{border-top:1px solid var(--line);margin-top:18px;padding-top:18px}
.reminder-switch-row{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:54px;border-bottom:1px solid var(--line)}
.reminder-switch-row>span{font-size:14px;font-weight:600}
.system-mail-placeholder{border:0;padding:0;margin:14px 0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.system-mail-placeholder label{display:grid;gap:5px}.system-mail-placeholder input{width:100%;min-width:0}
.message-photo-field{display:grid;gap:7px;margin:12px 0 16px}.message-photo-field>small{color:var(--muted)}
.message-photo-preview{display:flex;align-items:center;gap:14px;padding:10px;border:1px solid var(--line);border-radius:10px;min-width:0}
.message-photo-preview img{width:100px;height:88px;object-fit:cover;border-radius:7px}.message-photo-preview>div{display:grid;gap:6px;min-width:0;overflow-wrap:anywhere}
.notice-photo{margin:14px 0;padding:12px;border:1px solid var(--line);border-radius:10px}.notice-photo summary{cursor:pointer;font-weight:700}
.notice-photo img{display:block;max-width:min(100%,680px);max-height:720px;object-fit:contain;margin:14px 0;border-radius:8px}
.document-self-send{display:grid;align-items:start;justify-items:start;gap:7px;margin:10px 0}.document-self-send small{font-size:12px;max-width:520px}
.report-range-controls .document-self-send,.button-row .document-self-send{margin:0}
.sent-product-request{border-top:1px solid var(--line);padding:14px 0}.sent-product-request:first-of-type{border-top:0}.sent-product-request>small{color:var(--muted)}
.visit-mode-control{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 16px;margin:12px 0 22px;border:1px solid var(--line);border-radius:10px;background:var(--tenant-primary-soft)}
.visit-mode-control>div{display:grid;gap:4px;min-width:0}.visit-mode-control strong{font-size:14px}.visit-mode-control small{font-size:12px;line-height:1.4;color:var(--muted)}
.visit-form .visit-mode-switch{margin:0;flex-shrink:0}.visit-mode-switch.is-automatic .switch-track{background:var(--tenant-primary)}
.sent-technician-message{max-width:850px;overflow-wrap:anywhere}.sent-technician-message>small{color:var(--muted)}.sent-technician-message>p{margin:8px 0}
@media(max-width:430px){.visit-mode-control{align-items:flex-start;flex-direction:column}.visit-mode-switch{align-self:flex-end}}
@media(max-width:650px){.system-mail-placeholder{grid-template-columns:1fr}}
@media(max-width:420px){.product-option{flex-wrap:wrap}.product-grant-action{width:100%}}
@media(max-width:640px){.history-table-scroll{max-height:62vh}.history-matrix-table .matrix-date-head,.history-matrix-table .matrix-date{min-width:101px}.history-matrix-table th,.history-matrix-table td{padding:9px 8px}.history-matrix-table .matrix-parameter-head,.history-matrix-table .matrix-cell{min-width:103px}}

/* Messwertkorrektur bleibt über der Tabelle sichtbar, auch wenn diese weit gescrollt wurde. */
.correction-dialog{width:min(760px,calc(100vw - 28px));max-width:none;max-height:calc(100dvh - 32px);margin:auto;padding:26px 28px 20px;overflow-y:auto;overscroll-behavior:contain;border:1px solid var(--line);border-radius:14px;background:var(--paper);color:var(--text);box-shadow:0 24px 75px #281c3a45}
.correction-dialog::backdrop{background:#211630a8}
.correction-dialog-heading{display:flex;align-items:start;justify-content:space-between;gap:15px}
.correction-dialog-heading h2{font-size:24px;margin:6px 0 14px;line-height:1.2}
.correction-close{display:grid;place-items:center;flex:none;width:44px;height:44px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--text);font-size:27px;cursor:pointer}
.correction-context{font-size:13px;line-height:1.55;padding:12px 14px;background:var(--tenant-primary-soft);border-radius:8px;margin:0 0 20px}
.correction-fields label{display:grid;grid-template-rows:minmax(2.8em,auto) minmax(2.8em,auto) auto;align-content:start;gap:0;min-width:0}
.correction-fields label .correction-field-title{font-size:13px;font-weight:700;color:var(--text)}
.correction-fields label .correction-field-hint{font-size:11px;line-height:1.3;font-weight:400;color:var(--muted)}
.correction-dialog-history{margin-top:19px;border-top:1px solid var(--line);padding-top:15px}
.correction-dialog-history h3{font-size:15px;margin:0 0 9px}
.correction-dialog-history ol{max-height:172px;overflow:auto;margin:0;padding:0 0 0 21px;font-size:12px;line-height:1.55}
.correction-dialog-history li{padding:7px 0;border-bottom:1px solid var(--line)}
.correction-dialog-actions{position:sticky;bottom:-20px;display:flex;justify-content:flex-end;gap:10px;margin-top:14px;padding:15px 0 0;background:var(--paper);border-top:1px solid var(--line)}
.correction-dialog :focus-visible{outline:3px solid var(--tenant-primary);outline-offset:2px}
@media(max-width:820px){.correction-dialog{width:calc(100vw - 24px);max-height:calc(100dvh - 20px);padding:20px 17px 14px}.correction-fields label{grid-template-rows:auto auto auto;gap:5px}.correction-fields{gap:16px}.correction-dialog-actions{bottom:-14px}}

/* Ampel settings live behind compact disclosures in plant and zone editors. */
.rating-settings{border:1px solid var(--line);border-radius:11px;margin-top:18px;background:#faf9fc}.rating-settings>summary{display:flex;align-items:center;gap:10px;justify-content:space-between;cursor:pointer;padding:16px;font-weight:700;font-size:13px;min-height:51px}.rating-settings>summary::marker{color:var(--tenant-primary)}.rating-settings[open]>summary{border-bottom:1px solid var(--line)}.rating-settings-body{padding:16px;display:grid;gap:14px}.rating-settings-body>label,.rating-fields label,.rating-percent{display:grid;gap:7px;font-size:12px;font-weight:700}.rating-settings input,.rating-settings select{width:100%;min-height:45px;border:1.5px solid #ada0ba;border-radius:8px;background:#fff;color:var(--text);padding:8px 11px;font-size:16px}.rating-settings-body>label{max-width:360px}.rating-settings .fine-print{margin:0;line-height:1.5}.metric-row{grid-template-columns:minmax(100px,1fr) minmax(100px,1fr) 27px;align-items:center}.metric-target-summary{font-size:12px;color:var(--text);overflow-wrap:anywhere}.manual-mark{display:inline-block;font-size:10px;font-weight:700;color:var(--tenant-primary-deep);background:var(--tenant-primary-soft);border-radius:5px;padding:3px 6px;margin-left:5px}.zone-rating-settings{margin-top:12px}.rating-metric{border-bottom:1px solid var(--line);padding:8px 0 17px}.rating-metric:last-of-type{border-bottom:0}.rating-metric>strong{font-size:14px;display:block;margin-bottom:13px}.rating-metric>strong small{font-weight:400;color:var(--muted)}.rating-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.rating-override{display:flex;align-items:center;flex-wrap:wrap;gap:10px 15px;margin-top:14px;font-size:12px;font-weight:700}.rating-switch{border:0;background:transparent;display:inline-flex;align-items:center;gap:9px;color:var(--tenant-primary-deep);font-weight:700;min-height:44px;padding:4px;cursor:pointer}.switch-track{position:relative;width:42px;height:24px;border-radius:20px;background:#b7a7c7;display:inline-flex;align-items:center;padding:3px;transition:background .2s ease}.switch-knob{height:18px;width:18px;border-radius:50%;background:#fff;box-shadow:0 1px 4px #0003;transition:transform .2s ease}.rating-switch.is-manual{color:#8c4d17}.rating-switch.is-manual .switch-track{background:#ae681f}.rating-switch.is-manual .switch-knob{transform:translateX(18px)}.rating-switch.is-automatic .switch-track{background:var(--tenant-primary)}.rating-percent{width:135px}.rating-percent input:disabled{background:#eeeaf2;color:#665d6c;opacity:1}.rating-switch:focus-visible,.rating-settings>summary:focus-visible{outline:3px solid var(--tenant-primary);outline-offset:2px}.correction-rating{display:grid;align-content:start;gap:7px;font-size:12px}.correction-rating>span{font-size:11px;color:var(--muted)}.correction-rating .status-badge{justify-self:start}
@media(max-width:560px){.rating-fields{grid-template-columns:1fr}.rating-override{align-items:start;flex-direction:column}.rating-percent{width:100%}.metric-row{grid-template-columns:minmax(0,1fr) 30px}.metric-target-summary{grid-column:1}.metric-row .remove-small{grid-column:2;grid-row:1/3}.rating-settings>summary{flex-wrap:wrap}}
.rating-switch.is-automatic .switch-track{background:#267257}.rating-switch.is-automatic .switch-knob{background:#dff7e9}.rating-switch.is-manual .switch-knob{background:#ffe0b0}
.preset-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.preset-grid>label{display:grid;gap:6px;min-width:0;font-size:12px;font-weight:700}.preset-input{display:flex;align-items:center;gap:8px}.preset-input input{max-width:150px}.preset-input>span{font-weight:700;color:var(--muted)}
@media(max-width:560px){.preset-grid{grid-template-columns:1fr}}
.rating-settings .exclusive-check{display:flex;align-items:center;gap:9px;margin-top:10px;font-size:12px;line-height:1.45}.rating-settings .exclusive-check input{width:18px;height:18px;min-height:18px;flex:none;accent-color:var(--tenant-primary)}

/* Customer profiles, technician search and time proposals */
.customer-demo-switch{display:grid;gap:3px;font-size:10px;font-weight:700;color:var(--muted);max-width:230px;margin-left:auto}.customer-demo-switch select{height:37px;min-width:145px;max-width:100%;border:1px solid var(--line);border-radius:7px;background:var(--paper);padding:5px 8px;color:var(--text);font-size:12px}.profile-layout{display:grid;grid-template-columns:1fr 1fr;gap:17px;align-items:start}.profile-form{display:grid;gap:16px}.profile-form .editor-fields input,.customer-search input,.customer-invite input,.visit-form input[type=datetime-local]{width:100%;min-width:0;min-height:48px;border:1.5px solid #ada0ba;border-radius:8px;background:#fff;padding:9px 12px;color:var(--text);font-size:16px}.profile-form .button-row{margin-top:5px}.profile-success{background:#e9f5ed;color:#17623e;border-radius:8px;padding:11px 14px;font-size:12px;line-height:1.5}.contact-directory{display:grid;gap:9px;margin:12px 0}.contact-record{border:1px solid var(--line);border-radius:8px;padding:13px;display:flex;align-items:center;justify-content:space-between;gap:12px}.contact-record strong,.contact-record small{display:block;overflow-wrap:anywhere}.contact-record small{font-size:11px;color:var(--muted);margin-top:4px}.contact-actions{display:flex;gap:10px;flex-wrap:wrap}.contact-form{border-top:1px solid var(--line);margin-top:16px;padding-top:17px}.contact-form h3{font-size:16px;margin:0}.contact-delete-confirm{border:1px solid var(--danger);border-radius:8px;padding:14px;display:flex;align-items:center;flex-wrap:wrap;gap:9px}.contact-delete-confirm p{flex:1 1 200px;font-size:12px}.customer-search{display:flex;align-items:end;gap:12px;background:var(--paper);border:1px solid var(--line);border-radius:10px;padding:16px;margin-bottom:17px}.customer-search label{font-weight:700;font-size:12px}.customer-search input{flex:1}.customer-search>span{color:var(--muted);font-size:12px}.customer-directory{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.customer-record-title{display:flex;gap:12px;align-items:start;justify-content:space-between}.customer-record-title h2{font-size:19px;margin:5px 0}.customer-record-title p{font-size:12px;color:var(--muted);margin:0}.customer-record-meta{display:flex;gap:15px;flex-wrap:wrap;font-size:12px;overflow-wrap:anywhere;margin:15px 0}.customer-record details{border-top:1px solid var(--line);padding:12px 0}.customer-record summary{font-size:12px;font-weight:700;cursor:pointer}.customer-record-detail{display:grid;gap:5px;padding:12px 0 0;font-size:12px}.customer-record-detail p{margin:1px 0 5px;color:var(--muted)}.customer-plant-link{text-align:left;justify-self:start}.customer-invite{display:flex;align-items:end;flex-wrap:wrap;gap:9px;border-top:1px solid var(--line);padding-top:15px}.customer-invite strong{flex-basis:100%;font-size:12px}.customer-invite input{flex:1 1 180px;font-size:12px}.invitation-panel{max-width:650px}.invitation-panel h2{margin-top:0}.invitation-panel>p{font-size:13px;line-height:1.55}.calendar-download{margin-top:11px}.alert-button{width:100%;text-align:left;cursor:pointer;color:var(--text);font:inherit}.alert-button:hover{border-color:var(--tenant-primary)}.alert-button:focus-visible{outline:3px solid var(--tenant-primary);outline-offset:2px}
@media(max-width:900px){.profile-layout,.customer-directory{grid-template-columns:1fr}}
@media(max-width:620px){.customer-demo-switch{max-width:145px}.customer-demo-switch select{min-width:0;font-size:11px}.customer-search{align-items:stretch;flex-direction:column}.contact-record{align-items:start;flex-direction:column}.customer-invite .button{width:100%}.customer-record-title{flex-wrap:wrap}}
@media(max-width:400px){.customer-demo-switch{max-width:99px}.customer-demo-switch>span{display:none}.customer-demo-switch select{width:99px}.app-topbar{gap:7px}}
.measure-zone-metrics .measure-parameter-values{display:grid;justify-items:end;gap:4px;text-align:right}.measure-zone-metrics .measure-parameter-values>span:not(.status-badge){font-weight:700;color:var(--text)}.measure-zone-metrics .measure-parameter-values .status-badge{justify-self:end}.measure-zone-metrics .measure-parameter-values .status-badge span{color:inherit;text-align:inherit}
@media(max-width:640px){.measure-zone-metrics .measure-parameter-values{justify-items:start;text-align:left}.measure-zone-metrics .measure-parameter-values .status-badge{justify-self:start}}
@media(max-width:420px){.correction-dialog-heading h2{font-size:20px}.correction-dialog-actions .button{flex:1;min-width:0}}

/* Visit scheduling on touch devices and desktops. */
.appointment-picker,.meeting-calendar{border:1px solid var(--line);background:var(--paper);border-radius:12px;padding:16px;max-width:400px}
.appointment-month{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px;text-transform:capitalize}
.appointment-month .button{min-width:40px;padding:7px 11px;font-size:20px}
.appointment-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px;text-align:center}
.appointment-weekday{font-size:11px;font-weight:700;color:var(--muted);padding:6px 0}
.appointment-day,.meeting-day{min-width:0;min-height:39px;display:grid;place-items:center;border:1px solid transparent;border-radius:7px;background:transparent;color:var(--text);font:inherit}
.appointment-day{cursor:pointer}
.appointment-day:hover:not(:disabled){background:var(--tenant-primary-soft)}
.appointment-day:disabled{opacity:.35;cursor:not-allowed}
.appointment-day.is-selected,.meeting-day.is-selected{background:var(--tenant-primary);color:var(--tenant-primary-contrast);font-weight:800}
.appointment-day:focus-visible{outline:3px solid var(--tenant-primary);outline-offset:1px}
.appointment-time{display:grid;gap:8px;margin:16px 0!important;font-size:13px;font-weight:700}
.appointment-time input{min-height:46px;border:1px solid var(--line);border-radius:8px;padding:8px 12px;font:inherit;color:var(--text);background:#fff}
.meeting-calendar{max-width:355px;margin-top:18px}.meeting-calendar>strong{display:block;margin-bottom:9px;text-transform:capitalize}.meeting-calendar p{line-height:1.5;margin:14px 0 0}.meeting-calendar small{color:var(--muted)}
.chosen-date,.delivery-success,.delivery-pending{border-radius:9px;padding:12px 15px;margin:16px 0;background:var(--tenant-primary-soft);font-size:13px}.delivery-success{background:#e5f5e9;color:#174d2b}.delivery-pending{background:#fff2da;color:#704b0c}
.visit-requests{margin-top:35px}.visit-request-list{display:grid;gap:16px}.visit-request-card{max-width:850px}.visit-card-heading{display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px}.visit-card-heading strong,.visit-card-heading small{display:block}.visit-card-heading small{font-size:12px;color:var(--muted);margin-top:6px}.request-state{font-size:11px;font-weight:700;background:var(--tenant-primary-soft);color:var(--tenant-primary-deep);padding:7px 10px;border-radius:20px;align-self:flex-start}
.visit-activity{border-left:2px solid var(--line);margin:18px 0 0 10px;padding-left:24px;color:var(--muted);font-size:12px}.visit-activity li{padding-bottom:9px}.visit-activity p{margin:5px 0;color:var(--text)}
.visit-response{border-top:1px solid var(--line);margin-top:18px;padding-top:16px}.visit-response h3,.counter-calendar h4{margin:0 0 12px}.visit-response label{display:grid;gap:8px;font-size:13px;font-weight:700}.visit-response textarea{width:100%;max-width:570px;resize:vertical;border:1px solid var(--line);border-radius:8px;padding:10px;font:inherit}.visit-response .button-row{display:flex;flex-wrap:wrap;gap:8px;margin:15px 0}.counter-calendar{padding-top:12px}.counter-calendar>.button{margin-top:12px}
@media(max-width:560px){.appointment-picker,.meeting-calendar{padding:12px}.appointment-day,.meeting-day{min-height:38px}.visit-response .button-row .button{flex:1 1 150px}.visit-card-heading{flex-direction:column}}

/* Local demo administration */
.admin-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:14px}
.admin-person{border:1px solid var(--line);border-radius:10px;padding:14px;display:grid;gap:7px}
.admin-person small,.admin-customer small{display:block;color:var(--muted);font-size:12px;overflow-wrap:anywhere}
.admin-person label,.admin-customer label{display:grid;gap:6px;font-size:12px;font-weight:700}
.admin-person input,.admin-customer input,.admin-customer select,.mail-test input,.visit-form input:not([type=checkbox]){width:100%;max-width:100%;min-height:45px;border:1px solid var(--line);border-radius:8px;background:var(--paper);color:var(--text);padding:9px 11px;font:inherit;margin:0 0 14px}
.admin-add{margin-top:20px;padding-top:15px;border-top:1px solid var(--line)}
.admin-customer-list{margin-top:18px}.admin-customer{display:grid;grid-template-columns:minmax(170px,1.4fr) minmax(150px,1fr) minmax(160px,1fr);gap:14px;align-items:center;padding:16px 0;border-bottom:1px solid var(--line)}.admin-customer>div:first-child{display:grid;gap:6px}.admin-customer .request-state{justify-self:start}.admin-customer .button{white-space:nowrap}
.admin-permission-options{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;margin:18px 0 12px}
.admin-permission-options .check-row{display:grid;grid-template-columns:20px minmax(0,1fr);align-items:start;gap:11px;width:100%;margin:0;line-height:1.5;cursor:pointer}
.admin-permission-options .check-row input[type=checkbox]{width:18px;height:18px;margin:3px 0 0;accent-color:var(--tenant-primary)}
.admin-permission-options .check-row span{min-width:0;overflow-wrap:anywhere}
.visit-form .check-row{display:flex;align-items:center;gap:9px;font-weight:600;margin:0 0 20px}.visit-form .check-row input{width:18px;height:18px}.mail-test{margin-top:18px}.mail-test .button-row{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
@media(max-width:820px){.mobile-navigation.admin-navigation{grid-template-columns:repeat(6,minmax(0,1fr))}.mobile-navigation.admin-navigation a{font-size:9px}}
@media(max-width:700px){.admin-customer{grid-template-columns:1fr 1fr}.admin-customer>div:first-child{grid-column:1 / -1}}
@media(max-width:480px){.admin-customer{grid-template-columns:1fr}.admin-customer>div:first-child{grid-column:auto}}
.demo-person-selector{display:grid;gap:7px;max-width:350px;padding:13px 0;font-size:12px;font-weight:700}.demo-person-selector select{min-height:44px;border:1px solid var(--line);border-radius:8px;background:var(--paper);padding:8px;color:var(--text)}
.role-view-switch{display:flex;align-items:center;gap:8px;margin-left:auto;white-space:nowrap}
.role-view-switch .view-group{display:flex;align-items:center;gap:3px;padding:4px;border:1px solid var(--line);border-radius:10px;background:var(--canvas)}
.role-view-switch .view-group>span:first-child{padding:0 7px;color:var(--muted);font-size:10px;font-weight:700}
.role-view-switch a{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:7px 9px;border-radius:7px;color:var(--muted);font-size:12px;font-weight:700}
.role-view-switch a:hover{color:var(--tenant-primary-deep);background:var(--tenant-primary-soft)}
.role-view-switch a.active{color:var(--tenant-primary-contrast);background:var(--tenant-primary);box-shadow:0 2px 6px #302d3a20}
.view-label-short{display:none}
.admin-preview-settings{margin-top:22px}.admin-preview-settings .editor-fields{margin:18px 0}.admin-preview-settings .button-row{display:flex;gap:8px;flex-wrap:wrap}
.tech-summary .admin-mail-state{font-size:23px;letter-spacing:-.02em}
@media(max-width:1400px){.provider-topbar .topbar-context{display:none}}
@media(max-width:1000px){.provider-topbar .view-label-long{display:none}.provider-topbar .view-label-short{display:inline}}
@media(max-width:820px){.app-topbar.provider-topbar{height:auto;min-height:65px;flex-wrap:wrap;justify-content:flex-end;padding-top:8px;padding-bottom:8px;gap:8px}.provider-topbar .mobile-brand{margin-right:auto}.provider-topbar .role-view-switch{order:5;width:100%;margin:0}.provider-topbar .role-view-switch .view-group{flex:1 1 0;min-width:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.provider-topbar .role-view-switch .view-group>span:first-child{grid-column:1/-1}.provider-topbar .role-view-switch a{min-width:0}.mobile-navigation.provider-navigation{grid-template-columns:repeat(4,minmax(0,1fr))}.mobile-navigation.company-navigation,.mobile-navigation.technician-navigation{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(max-width:400px){.provider-topbar .role-view-switch a{font-size:11px;padding:7px 3px}.provider-topbar .role-view-switch .view-group>span:first-child{font-size:9px}}
.product-table-scroll{overflow-x:auto;max-width:100%;margin-top:15px}.product-table{border-collapse:collapse;width:100%;min-width:670px;text-align:left;font-size:13px}.product-table th,.product-table td{padding:12px 14px;border-bottom:1px solid var(--line);vertical-align:top}.product-table th{color:var(--muted);font-size:11px;letter-spacing:.04em;text-transform:uppercase}.product-table tbody tr:hover{background:var(--tenant-primary-soft)}.product-table .check-row{margin:0}.product-row-details{padding:12px;background:var(--paper);display:grid;gap:10px}.product-row-details label{display:grid;gap:5px}.product-picker{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:14px}.product-picker>div{min-width:0}.product-picker>div>label{display:grid;gap:6px;font-size:12px;font-weight:700}.product-picker-list{margin-top:8px;max-height:260px;overflow-y:auto;border:1px solid var(--line);border-radius:10px;padding:8px;background:var(--paper)}.product-picker-group{display:block;padding:8px 6px 5px;color:var(--muted);font-size:11px}.product-picker-item{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:8px;border-bottom:1px solid var(--line);font-size:13px}.product-picker-item:last-child{border-bottom:0}.product-picker-item span{min-width:0;overflow-wrap:anywhere}.product-picker-item small{display:block;color:var(--muted);font-size:11px;margin-top:3px}.product-picker-item button{min-width:38px;min-height:38px;padding:4px;font-size:18px}.product-remove-confirm{border:1px solid var(--danger);border-radius:10px;padding:12px;margin-top:12px}.product-remove-confirm p{margin:0 0 9px;font-size:13px}.product-remove-confirm .button{margin:3px 5px 3px 0}@media(max-width:680px){.product-picker{grid-template-columns:1fr}.product-picker-list{max-height:220px}}
.product-ribbon{display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:10px 13px;border:1px solid var(--line);background:var(--paper);border-radius:12px;margin-bottom:18px}.product-ribbon a,.product-ribbon-current{display:inline-flex;align-items:center;min-height:39px;border-radius:8px;padding:8px 12px;font-size:13px;font-weight:700;text-decoration:none;color:var(--text)}.product-ribbon a:hover{background:var(--tenant-primary-soft)}.product-ribbon-current{background:var(--tenant-primary);color:var(--tenant-primary-contrast)}.product-assignment-layout{display:grid;grid-template-columns:minmax(185px,.85fr) minmax(375px,1.9fr) minmax(210px,1fr);gap:14px;align-items:stretch}.product-assignment-panel{min-width:0;padding:18px;display:flex;flex-direction:column;max-height:690px}.product-panel-head{border-bottom:1px solid var(--line);padding-bottom:11px;margin-bottom:11px}.product-panel-head h2{font-size:18px;line-height:1.2;margin:5px 0 0;overflow-wrap:anywhere}.product-panel-head p{font-size:12px;color:var(--muted);margin:5px 0 0}.product-tree-scroll,.product-assigned-scroll{overflow-y:auto;min-height:0;max-height:540px}.product-tree-plant{border-bottom:1px solid var(--line);padding:5px 0}.product-tree-plant-row{display:flex;align-items:stretch;gap:3px}.product-tree-expand{border:0;background:transparent;color:var(--tenant-primary-deep);min-width:32px;font-size:19px;cursor:pointer}.product-tree-name,.product-tree-zone{border:0;background:transparent;color:var(--text);text-align:left;cursor:pointer;border-radius:8px;overflow-wrap:anywhere}.product-tree-name{padding:7px 4px;flex:1;font-weight:700;font-size:13px}.product-tree-name small{display:block;color:var(--muted);font-weight:400}.product-tree-zones{display:grid;gap:3px;padding:1px 0 8px 32px}.product-tree-chamber{font-size:11px;color:var(--muted);padding:9px 6px 1px;font-weight:700}.product-tree-zone{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:8px 9px;width:100%;font-size:12px}.product-tree-zone small{color:var(--muted)}.product-tree-name:hover,.product-tree-zone:hover,.product-tree-name.is-active,.product-tree-zone.is-active{background:var(--tenant-primary-soft);color:var(--tenant-primary-deep)}.product-tree-zone.is-active{font-weight:700}.product-assignment-search{display:grid;gap:6px;font-size:12px;font-weight:700;margin-bottom:11px}.product-assignment-search input{width:100%}.product-select-split{display:grid;grid-template-columns:minmax(130px,.85fr) minmax(180px,1.35fr);gap:9px;min-height:0;flex:1}.product-category-scroll,.product-options-scroll{overflow-y:auto;min-height:0;max-height:510px;border:1px solid var(--line);border-radius:9px}.product-category-scroll{background:var(--tenant-primary-soft);padding:4px}.product-category{display:flex;align-items:center;justify-content:space-between;gap:5px;width:100%;text-align:left;background:transparent;border:0;border-radius:7px;padding:10px 8px;cursor:pointer;color:var(--text);font-size:12px}.product-category span{overflow-wrap:anywhere}.product-category small{color:var(--muted)}.product-category:hover,.product-category.is-active{background:var(--paper);color:var(--tenant-primary-deep);font-weight:700}.product-options-scroll h3,.product-assigned-type{margin:0;padding:11px 10px 7px;font-size:12px;color:var(--tenant-primary-deep);overflow-wrap:anywhere}.product-options-scroll h3 small{font-weight:400;color:var(--muted)}.product-option{display:flex;align-items:center;justify-content:space-between;gap:7px;padding:9px 8px;border-bottom:1px solid var(--line);min-width:0}.product-option>div{min-width:0;overflow-wrap:anywhere}.product-option strong{display:block;font-size:12px}.product-option small{display:block;color:var(--muted);font-size:11px;margin-top:3px}.product-transfer-button{flex:0 0 34px;width:34px;height:34px;border:1px solid var(--tenant-primary);border-radius:7px;background:var(--tenant-primary-soft);color:var(--tenant-primary-deep);font-size:21px;line-height:1;cursor:pointer}.product-transfer-button:hover:not(:disabled){background:var(--tenant-primary);color:var(--tenant-primary-contrast)}.product-transfer-button:disabled{cursor:default;opacity:.55;font-size:16px}.product-transfer-remove{border-color:var(--danger);background:transparent;color:var(--danger)}.product-assigned-panel .product-remove-confirm{margin-top:auto}.product-assigned-panel .product-remove-confirm p{line-height:1.4}@media(max-width:1150px){.product-assignment-layout{grid-template-columns:minmax(170px,.7fr) minmax(340px,1.3fr)}.product-assigned-panel{grid-column:1/-1;max-height:380px}.product-assigned-scroll{max-height:220px}}@media(max-width:750px){.product-assignment-layout{grid-template-columns:1fr}.product-assignment-panel,.product-assigned-panel{grid-column:auto;max-height:none}.product-tree-scroll{max-height:235px}.product-select-split{min-height:310px}.product-category-scroll,.product-options-scroll{max-height:300px}.product-assigned-scroll{max-height:270px}}@media(max-width:420px){.product-select-split{grid-template-columns:minmax(105px,.8fr) minmax(150px,1.2fr)}.product-assignment-panel{padding:12px}.product-ribbon a,.product-ribbon-current{font-size:12px}}
/* Keep all three work areas visible on laptop screens; stack them on narrow tablets and phones. */
@media(max-width:1200px) and (min-width:801px){.product-assignment-layout{grid-template-columns:minmax(140px,.8fr) minmax(310px,1.8fr) minmax(180px,1fr);gap:9px}.product-assignment-panel,.product-assigned-panel{grid-column:auto;max-height:690px;padding:12px}.product-select-split{grid-template-columns:minmax(105px,.8fr) minmax(145px,1.2fr)}.product-assigned-scroll{max-height:540px}}
@media(max-width:800px){.product-assignment-layout{grid-template-columns:1fr}.product-assignment-panel,.product-assigned-panel{grid-column:auto;max-height:none}.product-tree-scroll{max-height:235px}.product-select-split{min-height:310px}.product-category-scroll,.product-options-scroll{max-height:300px}.product-assigned-scroll{max-height:270px}}
/* Product assignment: the category list and product results reuse one full-width pane. */
.product-select-panel .product-category-scroll,.product-select-panel .product-options-scroll{width:100%;flex:1 1 auto;max-height:510px;overflow-y:auto;overscroll-behavior:contain}.product-select-panel .product-category{min-height:45px;padding:11px 12px;gap:12px}.product-select-panel .product-category small{flex:none;white-space:nowrap}.product-category-back{align-self:flex-start;border:0;background:transparent;color:var(--tenant-primary-deep);font-size:13px;font-weight:700;min-height:36px;padding:6px 0;text-align:left}.product-category-back:hover{text-decoration:underline}.product-select-panel .product-assignment-search{margin-top:4px}.product-select-panel .product-assignment-search input{min-width:0}.product-select-panel .product-options-scroll{min-height:180px}
/* Each customer gets the available width; the long catalog scrolls inside its card. */
.customer-directory{grid-template-columns:minmax(0,1fr)}.customer-record{min-width:0}.customer-record .product-grant-toolbar{display:flex;align-items:end;gap:14px;flex-wrap:wrap;padding:10px 0 2px}.product-grant-toolbar label{display:grid;gap:6px;flex:1 1 280px;max-width:490px;font-size:12px;font-weight:700}.product-grant-toolbar input{width:100%;min-width:0}.product-grant-toolbar span{font-size:12px;color:var(--muted);padding-bottom:10px}.customer-record .product-grant-table-scroll{max-height:390px;overflow:auto;overscroll-behavior:contain;border:1px solid var(--line);border-radius:9px;margin:12px 0}.customer-record .product-table{min-width:620px}.customer-record .product-table th{position:sticky;top:0;background:var(--paper);z-index:1;box-shadow:0 1px var(--line)}.customer-record .product-table th:last-child,.customer-record .product-table td:last-child{text-align:center;width:90px}.customer-record .product-table td{overflow-wrap:anywhere}.customer-record details>.button{margin:0 0 12px}
/* Equal headings and search rows align both product lists in the zone editor. */
.zone-editor .product-picker{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:18px}.zone-editor .product-picker-column{display:flex;flex-direction:column;min-width:0}.zone-editor .product-picker-heading{display:block;min-height:22px;line-height:20px;font-size:14px}.zone-editor .product-picker-search{display:grid;gap:5px;min-height:62px;font-size:12px;font-weight:700}.zone-editor .product-picker-search input{width:100%;min-width:0;min-height:38px}.zone-editor .product-picker-search-spacer{min-height:62px}.zone-editor .product-picker-list{width:100%;max-height:275px;min-height:120px;margin-top:7px}.zone-editor .product-picker-item{min-width:0}.zone-editor .product-picker-item .button{flex:none}@media(max-width:680px){.zone-editor .product-picker{grid-template-columns:1fr}.zone-editor .product-picker-search-spacer{display:none}.zone-editor .product-picker-heading{margin-bottom:4px}.zone-editor .product-picker-list{max-height:210px}}

/* Techniker: ruhige Kundenkarten mit einer Anlage pro Zeile. */
.technician-customers{display:grid;gap:17px}
.technician-customers .customer-create{padding:0;overflow:hidden}
.customer-create summary{display:flex;align-items:center;justify-content:space-between;gap:15px;list-style:none;cursor:pointer;padding:18px 23px}
.customer-create summary::-webkit-details-marker,.customer-record-section summary::-webkit-details-marker{display:none}
.customer-create summary strong,.customer-create summary small{display:block}
.customer-create summary strong{font-size:15px;color:var(--text)}
.customer-create summary small{font-size:11px;color:var(--muted);margin-top:4px}
.customer-create-action{display:inline-flex;align-items:center;gap:10px;color:var(--tenant-primary-deep);font-size:12px;font-weight:700;white-space:nowrap}
.customer-create-action span{font-size:22px;line-height:1}
.customer-create[open] summary{border-bottom:1px solid var(--line);background:var(--tenant-primary-soft)}
.customer-create-body{padding:22px 23px 18px}
.customer-create-body .visit-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:end;gap:13px;max-width:none}
.customer-create-body .visit-form label{margin:0}
.customer-create-body .visit-form input{margin:7px 0 0}
.customer-create-body .visit-form .button{grid-column:1/-1;justify-self:start;margin-top:2px}
.technician-customers .customer-search{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:14px;margin:0;padding:13px 19px}
.technician-customers .customer-search label{white-space:nowrap}
.technician-customers .customer-search input{min-height:43px}
.technician-customers .customer-directory{display:grid;grid-template-columns:minmax(0,1fr);gap:18px}
.technician-customers .customer-record{display:block;min-width:0;padding:0;overflow:hidden;border-radius:14px}
.customer-record-header{padding:22px 25px 19px;background:linear-gradient(115deg,color-mix(in srgb,var(--tenant-primary-soft) 40%,white),var(--paper) 58%)}
.technician-customers .customer-record-title{align-items:flex-start;gap:16px}
.technician-customers .customer-record-title>div{min-width:0}
.customer-name-line{display:flex;align-items:center;gap:8px;min-width:0;margin:7px 0 5px}
.technician-customers .customer-name-line h2{font-size:21px;line-height:1.22;margin:0;overflow-wrap:anywhere}
.customer-name-edit{display:grid;place-items:center;flex:none;width:36px;height:36px;padding:7px;border:1px solid transparent;border-radius:8px;background:transparent;color:var(--tenant-primary-deep);cursor:pointer}
.customer-name-edit:hover,.customer-name-edit[aria-expanded=true]{background:var(--tenant-primary-soft);border-color:color-mix(in srgb,var(--tenant-primary) 24%,white)}
.customer-name-edit svg{width:17px;height:17px}
.technician-customers .customer-record-title .count-chip{flex:none;background:var(--paper);font-size:11px;padding:7px 10px}
.technician-customers .customer-record-meta{display:flex;align-items:flex-start;gap:22px;margin:14px 0 0;font-size:12px;color:var(--text)}
.customer-record-meta>span{display:grid;gap:5px;min-width:0;overflow-wrap:anywhere}
.customer-record-meta small{font-size:9px;letter-spacing:.08em;font-weight:700;color:var(--muted)}
.customer-name-form{margin:19px 0 0;padding:17px;background:var(--paper);border:1px solid var(--line);border-radius:10px}
.customer-name-form label{display:block;font-size:12px;font-weight:700;margin-bottom:9px}
.customer-name-form>div{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.customer-name-form input{flex:1 1 230px;min-width:0;min-height:45px;padding:9px 11px;border:1.5px solid #ada0ba;border-radius:8px;background:var(--paper);color:var(--text);font-size:16px}
.customer-name-form .button{min-height:45px}
.customer-name-form .form-error{margin:10px 0 0}
.customer-rename-success{margin:12px 0 0;color:#17623e;font-size:12px;font-weight:700}
.technician-customers .customer-record .customer-record-section{border-top:1px solid var(--line);padding:0}
.technician-customers .customer-record-section summary{display:flex;align-items:center;gap:12px;min-height:57px;padding:15px 25px;list-style:none;font-size:13px;font-weight:700;color:var(--text)}
.customer-record-section summary:hover{background:color-mix(in srgb,var(--tenant-primary-soft) 37%,white)}
.customer-record-section summary small{margin-left:auto;color:var(--muted);font-size:11px;font-weight:400;text-align:right}
.customer-record-section summary:after{content:'⌄';color:var(--tenant-primary-deep);font-size:21px;line-height:1;transform:rotate(-90deg);transition:transform .16s ease}
.customer-record-section[open] summary:after{transform:rotate(0deg)}
.customer-record-section[open] summary{background:color-mix(in srgb,var(--tenant-primary-soft) 28%,white)}
.customer-detail-body{padding:19px 25px 23px;border-top:1px solid var(--line)}
.customer-relations{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,1.25fr);gap:30px}
.customer-relations section{min-width:0}
.customer-relations h3{font-size:14px;margin:0 0 13px}
.customer-contact-row{padding:9px 0;border-bottom:1px solid var(--line);font-size:12px;overflow-wrap:anywhere}
.customer-contact-row strong,.customer-contact-row span,.customer-contact-row small{display:block}
.customer-contact-row span,.customer-contact-row small{color:var(--muted);margin-top:4px}
.customer-contact-row small{font-size:11px}
.customer-plants-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}
.customer-plants-heading .count-chip{font-size:10px}
.customer-plant-list{display:grid;gap:8px}
.customer-plant-row{display:grid;grid-template-columns:38px minmax(0,1fr) 24px;align-items:center;gap:12px;width:100%;min-height:66px;padding:10px 13px;text-align:left;background:var(--paper);border:1px solid var(--line);border-radius:9px;color:var(--text);cursor:pointer;font:inherit}
.customer-plant-row:hover{background:var(--tenant-primary-soft);border-color:color-mix(in srgb,var(--tenant-primary) 45%,white)}
.customer-plant-symbol{display:grid;place-items:center;width:38px;height:38px;border-radius:8px;background:var(--tenant-primary-soft);color:var(--tenant-primary);font-size:19px}
.customer-plant-description{display:grid;gap:4px;min-width:0}
.customer-plant-description strong{font-size:13px;overflow-wrap:anywhere}
.customer-plant-description small{font-size:11px;color:var(--muted)}
.customer-plant-arrow{justify-self:end;color:var(--tenant-primary);font-size:18px}
.customer-new-plant{margin-top:12px;min-height:42px}
.technician-customers .customer-invite{display:flex;align-items:center;gap:12px;padding:17px 25px;background:color-mix(in srgb,var(--tenant-primary-soft) 16%,white)}
.customer-invite>div{display:grid;gap:4px;flex:1 1 260px}
.technician-customers .customer-invite strong{flex-basis:auto;font-size:12px}
.customer-invite small{font-size:11px;color:var(--muted)}
.technician-customers .customer-invite input{flex:1 1 200px}
.technician-customers :is(button,input,summary):focus-visible{outline:3px solid var(--tenant-primary);outline-offset:2px}
@media(max-width:900px){.customer-relations{grid-template-columns:1fr;gap:24px}}
@media(max-width:620px){.customer-create summary,.customer-record-header,.customer-detail-body,.technician-customers .customer-record-section summary,.technician-customers .customer-invite{padding-left:17px;padding-right:17px}.customer-create-body{padding:18px 17px}.customer-create-body .visit-form{grid-template-columns:1fr}.technician-customers .customer-search{grid-template-columns:minmax(0,1fr) auto}.technician-customers .customer-search label{grid-column:1/-1}.technician-customers .customer-search input{grid-column:1;grid-row:2}.technician-customers .customer-search>span{grid-column:2;grid-row:2}.technician-customers .customer-record-title{flex-wrap:nowrap}.technician-customers .customer-name-line h2{font-size:18px}.technician-customers .customer-record-meta{gap:12px}.customer-record-section summary small{display:none}.customer-name-form>div .button{flex:1 1 120px}.customer-name-form input{flex-basis:100%}.technician-customers .customer-invite .button{width:auto;flex:1 1 170px}}
@media(prefers-reduced-motion:reduce){.customer-record-section summary:after{transition:none}}

/* Firmenprofil: lange Bezeichnungen und Adressen brauchen Raum zum Lesen und Bearbeiten. */
.company-profile-page{grid-template-columns:minmax(0,1fr);gap:18px}
.company-profile-page>section{min-width:0;padding:27px 30px}
.company-profile-page .section-heading{margin-bottom:21px}
.profile-company-name{display:grid;gap:6px;padding:17px 19px;background:var(--tenant-primary-soft);border-left:3px solid var(--tenant-primary);border-radius:8px;min-width:0}
.profile-company-name>span{font-size:11px;font-weight:700;letter-spacing:.05em;color:var(--tenant-primary-deep)}
.profile-company-name strong{font-size:18px;line-height:1.35;overflow-wrap:anywhere}
.profile-company-name small{font-size:11px;line-height:1.45;color:var(--muted)}
.company-profile-page .profile-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 20px}
.company-profile-page .profile-fields .profile-field-wide{grid-column:1/-1}
.company-profile-page .profile-fields label{align-content:start}
.company-profile-page .profile-fields input{min-width:0;text-overflow:clip}
.company-profile-page .contact-directory{grid-template-columns:minmax(0,1fr);gap:10px}
.company-profile-page .contact-record{align-items:center;gap:22px;padding:17px 19px}
.contact-record-info{display:grid;gap:5px;min-width:0;flex:1;overflow-wrap:anywhere}
.contact-record-info strong{font-size:15px;line-height:1.35}
.contact-record-info span{font-size:12px;color:var(--muted)}
.contact-record-info small{font-size:12px;line-height:1.4;margin:0;color:var(--text)}
.contact-record-info .contact-access-note{font-size:11px;color:var(--muted);margin-top:4px}
.company-profile-page .contact-actions{flex:none;align-items:center;gap:13px}
.company-profile-page .contact-actions .button{min-height:41px}
.company-profile-page .contact-form{margin-top:23px;padding-top:22px}
.company-profile-page .contact-form h3{margin-bottom:17px}
.company-profile-page :is(input,button):focus-visible{outline:3px solid var(--tenant-primary);outline-offset:2px}
@media(max-width:680px){.company-profile-page>section{padding:20px 17px}.company-profile-page .profile-fields{grid-template-columns:1fr;gap:15px}.company-profile-page .profile-fields .profile-field-wide{grid-column:auto}.company-profile-page .contact-record{align-items:stretch;flex-direction:column;gap:13px}.company-profile-page .contact-actions{width:100%;justify-content:flex-start}.company-profile-page .contact-actions .button{flex:1}.company-profile-page .profile-company-name strong{font-size:16px}}
/* Product catalog: filter first, scroll the table, inspect the selected item below. */
.provider-product-create-form :is(input,select),.provider-product-filters :is(input,select){padding:9px 11px;border:1.5px solid #ada0ba;border-radius:8px;background:var(--paper);color:var(--text);font-size:15px}
.provider-product-create-form :is(input,select):focus-visible,.provider-product-filters :is(input,select):focus-visible,.provider-product-scroll button:focus-visible{outline:3px solid var(--tenant-primary);outline-offset:2px}
.provider-product-create{margin-bottom:15px}.provider-product-create>summary,.provider-product-edit>summary{font-size:14px;font-weight:700;cursor:pointer;color:var(--tenant-primary-deep)}.provider-product-create-form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;margin-top:16px;align-items:end}.provider-product-create-form label,.provider-product-filters label{display:grid;gap:6px;min-width:0;font-size:12px;font-weight:700}.provider-product-create-form input,.provider-product-create-form select,.provider-product-filters input,.provider-product-filters select{width:100%;min-width:0;min-height:43px}.provider-product-create-form>.button{grid-column:1/-1;justify-self:start}.provider-product-filters{display:grid;grid-template-columns:1.35fr 1fr 1fr 1fr;gap:12px;margin:15px 0 13px}.provider-product-scroll{max-height:450px;overflow:auto;overscroll-behavior:contain;border:1px solid var(--line);border-radius:9px}.provider-product-scroll .product-table{margin:0;min-width:780px}.provider-product-scroll .product-table th{position:sticky;top:0;background:var(--paper);z-index:1;box-shadow:0 1px var(--line)}.provider-product-scroll .product-table .is-selected{background:var(--tenant-primary-soft)}.provider-product-detail{margin-top:16px}.provider-product-detail .zone-subsection-title{align-items:start}.provider-product-detail .zone-subsection-title p{font-size:12px;color:var(--muted);margin:4px 0}.provider-data-empty{padding:13px;border-radius:8px;background:var(--tenant-primary-soft);font-size:13px;line-height:1.5}.product-preview-note{margin:16px 0 12px;padding:11px 13px;border-left:3px solid var(--tenant-primary);background:var(--tenant-primary-soft);font-size:12px}.product-preview-note p{margin:4px 0 0}.product-band-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;margin:14px 0}.product-band-card{min-width:0;border:1px solid var(--line);border-radius:11px;background:var(--paper);padding:14px}.product-band-heading{display:flex;justify-content:space-between;align-items:start;flex-wrap:wrap;gap:8px}.product-band-heading strong,.product-band-heading small{display:block}.product-band-heading strong{font-size:16px}.product-band-heading small{font-size:11px;color:var(--muted);margin-top:3px}.product-preview-label{font-size:10px;font-weight:700;color:var(--tenant-primary-deep);background:var(--tenant-primary-soft);border-radius:5px;padding:5px 7px}.product-band-summary{display:flex;flex-wrap:wrap;gap:9px 22px;border-top:1px solid var(--line);padding-top:10px;margin-top:11px;font-size:11px;color:var(--muted)}.product-band-summary strong{display:block;color:var(--text);font-size:14px;margin-top:2px}.product-band-svg{width:100%;height:auto;min-height:185px;display:block}.product-chart-grid{stroke:var(--line);stroke-width:1}.product-chart-label{font-size:11px;fill:var(--muted)}.product-chart-band{stroke:var(--tenant-primary);stroke-opacity:.25;stroke-width:1}.product-chart-mean{stroke:var(--tenant-primary-deep);stroke-width:2.5;fill:none;stroke-linecap:round;stroke-linejoin:round}.product-chart-dot{fill:var(--tenant-primary-deep)}.provider-product-edit{border-top:1px solid var(--line);padding-top:14px;margin-top:17px}.provider-product-edit .button-row{margin:15px 0}@media(max-width:1020px){.provider-product-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.product-band-grid{grid-template-columns:1fr}}@media(max-width:600px){.provider-product-filters,.provider-product-create-form{grid-template-columns:1fr}.provider-product-detail .zone-subsection-title{flex-wrap:wrap}.product-band-card{padding:10px}}
@media(min-width:1021px){.provider-product-filters{grid-template-columns:1.25fr 1.3fr 1fr 1fr 1fr}}
.process-event-card{margin-top:20px}.process-event-card .editor-fields{margin:14px 0;align-items:end}.event-list{padding-left:20px;display:grid;gap:9px}.event-list li{font-size:13px}.event-list small{display:block;color:var(--muted);margin-top:3px}
.report-range-controls{display:flex;align-items:end;gap:10px;flex-wrap:wrap;margin-bottom:18px}.report-range-controls label{display:grid;gap:5px;font-size:12px;font-weight:700}.report-range-controls select,.report-range-controls input{min-height:44px;border:1px solid var(--line);border-radius:7px;padding:8px;background:#fff;color:var(--text)}.protocol-zone-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.protocol-zone{border:1px solid var(--line);border-radius:9px;padding:13px;break-inside:avoid}.protocol-zone h2{font-size:16px;margin:0 0 10px}.protocol-zone h2 small{display:block;font-size:11px;color:var(--muted);margin-top:3px}.protocol-reading{display:flex;justify-content:space-between;gap:10px;margin:5px 0;padding:8px;border-left:5px solid #aaa;background:#f7f7f7;font-size:12px}.protocol-reading small{display:block;font-size:10px}.protocol-reading strong{text-align:right}.report-table-scroll{overflow:auto}.protocol-table{border-collapse:collapse;width:100%;font-size:11px}.protocol-table th,.protocol-table td{padding:9px;border:1px solid var(--line);text-align:left}.protocol-green{border-left-color:#198754;background:#e9f7ed}.protocol-orange{border-left-color:#dc8300;background:#fff3df}.protocol-red{border-left-color:#c43c38;background:#fff0ee}.protocol-invalid{border-left-color:#777;background:#eeeeee;text-decoration:line-through}.protocol-table .protocol-green td:first-child{border-left:5px solid #198754}.protocol-table .protocol-orange td:first-child{border-left:5px solid #dc8300}.protocol-table .protocol-red td:first-child{border-left:5px solid #c43c38}.protocol-table .protocol-invalid td:first-child{border-left:5px solid #777}@media(max-width:680px){.protocol-zone-grid{grid-template-columns:1fr}}@media print{@page{size:A4 landscape;margin:12mm}.measurement-protocol{box-shadow:none;border:0;padding:0}.report-range-controls,.app-sidebar,.app-topbar,.mobile-navigation{display:none!important}.protocol-zone-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.protocol-reading,.protocol-table tr{-webkit-print-color-adjust:exact;print-color-adjust:exact}}
.legal-footer { display:flex; flex-wrap:wrap; justify-content:center; gap:1rem; padding:1rem 1.25rem 5rem; font-size:.85rem; }
.legal-footer a { color:inherit; text-decoration:underline; }
.legal-document { max-width:60rem; margin-bottom:1rem; }
.legal-copy { white-space:pre-wrap; overflow-wrap:anywhere; line-height:1.6; }
.legal-acceptance { display:flex; align-items:flex-start; gap:.6rem; margin:1rem 0; }
.legal-acceptance input[type=checkbox]{flex:none;width:19px;height:19px;margin:0;accent-color:var(--tenant-primary)}
.agreement-text{max-width:100%;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.65;font:inherit;font-size:13px;background:var(--paper);padding:20px;border:1px solid var(--line);border-radius:9px}
@media print{.agreement-text{border:0;padding:0;background:#fff;white-space:pre-wrap}.legal-footer{display:none}}

/* Arbeitslisten, Scan-Dialog und druckbare Messmatrix */
.sidebar-utility{margin:auto 10px 0;display:grid;gap:4px}
.sidebar-utility a{display:flex;align-items:center;gap:12px;min-height:44px;padding:8px 11px;border-radius:9px;color:#595363;font-size:14px;font-weight:500}
.sidebar-utility a>span{display:grid;place-items:center;width:19px;color:var(--tenant-primary);font-size:18px}
.sidebar-utility a:hover,.sidebar-utility a.active{background:var(--tenant-primary-soft);color:var(--tenant-primary-deep)}
.sidebar-bottom{margin:12px 10px 6px}
.other-links{display:grid;padding:8px;max-width:650px}
.other-links a{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px;border-radius:8px;border-bottom:1px solid var(--line);font-weight:700;color:var(--text)}
.other-links a:last-child{border-bottom:0}.other-links a:hover{background:var(--tenant-primary-soft)}
.customer-product-search{display:grid;gap:7px;margin:18px 0 13px;font-size:12px;font-weight:700}
.customer-product-search input{min-height:46px;min-width:0;border:1.5px solid #ada0ba;border-radius:8px;padding:10px 12px;font:inherit;font-size:15px}
.customer-product-scroll{max-height:min(64vh,630px);overflow-y:auto;overscroll-behavior:contain;border:1px solid var(--line);border-radius:10px}
.customer-product-category+.customer-product-category{border-top:1px solid var(--line)}
.customer-product-category-button{width:100%;display:flex;align-items:center;gap:12px;padding:16px;text-align:left;background:var(--paper);border:0;color:var(--text);font:inherit;cursor:pointer}
.customer-product-category-button:hover,.customer-product-category-button[aria-expanded=true]{background:var(--tenant-primary-soft)}
.customer-product-category-button>span{color:var(--tenant-primary);font-size:20px}.customer-product-category-button strong{min-width:0;overflow-wrap:anywhere}.customer-product-category-button small{margin-left:auto;white-space:nowrap;color:var(--muted)}
.customer-product-category .product-table-scroll{border-top:1px solid var(--line)}
.technician-plant-groups{display:grid;gap:12px}.technician-plant-group{padding:0;overflow:hidden}
.technician-plant-group-toggle{display:flex;align-items:center;gap:13px;width:100%;padding:18px 22px;border:0;background:var(--paper);color:var(--text);font:inherit;text-align:left;cursor:pointer}
.technician-plant-group-toggle:hover,.technician-plant-group-toggle[aria-expanded=true]{background:var(--tenant-primary-soft)}
.technician-plant-group-toggle>span:nth-child(2){display:grid;gap:4px;min-width:0;overflow-wrap:anywhere}
.technician-plant-group-toggle small{color:var(--muted);font-size:12px}.technician-plant-group-toggle .count-chip{margin-left:auto;flex:none}
.technician-plant-chevron{font-size:18px;color:var(--tenant-primary)}
.technician-plant-items{padding:12px 20px 19px;display:grid;gap:9px;border-top:1px solid var(--line)}
.technician-plant-item{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 15px;border:1px solid var(--line);border-radius:9px;background:var(--paper)}
.technician-plant-item>div{min-width:0;display:grid;gap:4px;overflow-wrap:anywhere}.technician-plant-item small{font-size:11px;color:var(--muted)}
.measure-chamber>summary,.measure-zone-card>summary{cursor:pointer;list-style:none}.measure-chamber>summary::-webkit-details-marker,.measure-zone-card>summary::-webkit-details-marker{display:none}
.measure-chamber{padding:0;overflow:hidden}.measure-chamber>summary{padding:17px 20px}.measure-chamber>.measure-zones{padding:0 17px 17px}
.measure-zone-card{display:block;padding:0}.measure-zone-card>summary{padding:16px;min-height:69px}.measure-zone-card>.measure-zone-metrics{margin:0 15px 13px}.measure-zone-card>.measure-zone-actions{margin:0 15px 17px}
.measure-chevron{display:block;flex:none;width:10px;height:10px;border-right:2px solid var(--tenant-primary);border-bottom:2px solid var(--tenant-primary);transform:rotate(-45deg);margin-left:auto;transition:transform .15s ease}
.measure-chamber[open]>summary .measure-chevron,.measure-zone-card[open]>summary .measure-chevron{transform:rotate(45deg)}
.measure-plant-settings{margin:0 0 17px;padding:11px 15px;border:1px solid var(--line);border-radius:8px;font-size:12px}.measure-plant-settings summary{cursor:pointer;color:var(--tenant-primary-deep)}.measure-plant-settings .text-link{display:inline-block;margin:12px 0 4px}
.qr-scan-launch{display:inline-flex;align-items:center;gap:7px;flex:none;min-height:40px;padding:8px 11px;border:1px solid var(--tenant-primary);border-radius:8px;background:var(--tenant-primary-soft);color:var(--tenant-primary-deep);font:inherit;font-size:12px;font-weight:700;cursor:pointer;white-space:nowrap}
.qr-scan-launch>span:first-child{font-size:19px}.qr-scan-launch:hover{background:var(--tenant-primary);color:#fff}
.qr-scan-overlay{position:fixed;inset:0;z-index:100;display:grid;place-items:center;padding:18px;background:rgba(26,20,39,.72)}
.qr-scan-panel{width:min(100%,520px);max-height:calc(100dvh - 36px);overflow-y:auto;padding:22px;background:var(--paper);border-radius:16px;box-shadow:0 22px 70px #0005;color:var(--text)}
.qr-scan-header{display:flex;align-items:start;justify-content:space-between;gap:14px}.qr-scan-header h2{margin:5px 0 0}.qr-scan-close{border:0;background:var(--tenant-primary-soft);color:var(--tenant-primary-deep);width:42px;height:42px;border-radius:8px;font-size:28px;cursor:pointer}
.qr-scan-video{display:block;width:100%;aspect-ratio:4/3;background:#14141b;object-fit:cover;border-radius:10px}.qr-scan-message{padding:10px;border-radius:7px;background:#fff1df;color:#763b00;font-weight:700}
.report-matrix-scroll{max-width:100%;overflow-x:auto}.report-matrix{border-collapse:collapse;width:100%;min-width:max-content;font-size:11px;line-height:1.35}
.report-matrix th,.report-matrix td{border:1px solid #cfc9d3;padding:7px 9px;text-align:left;vertical-align:top;min-width:82px;white-space:normal}
.report-matrix thead tr:first-child th{background:var(--tenant-primary);color:white;font-size:12px;text-align:center}
.report-matrix thead tr:nth-child(2) th{background:var(--tenant-primary-soft);min-width:108px}
.report-matrix thead th:first-child,.report-matrix tbody th{min-width:100px;position:sticky;left:0;z-index:1;background:var(--paper)}
.report-matrix thead th:first-child{z-index:2}.report-matrix thead th strong,.report-matrix thead th small,.report-matrix thead th span{display:block}.report-matrix thead th span{font-weight:400;margin-top:5px}
.report-matrix td strong,.report-matrix td small{display:block}.report-matrix td small{font-size:9px}.report-matrix-cell.matrix-within{background:#e6f4e9}.report-matrix-cell.matrix-notice{background:#fff0ce}.report-matrix-cell.matrix-outside{background:#ffe1de}.report-matrix-cell.matrix-invalid{background:#ececec;text-decoration:line-through}.report-matrix-cell.matrix-unrated{background:#f4f2f6}
.report-matrix .report-target-change th,.report-matrix .report-target-change td{background:#efeafa;color:#423061;font-size:10px}.report-target-change td strong{font-size:9px}
.history-notice-heading{display:flex;justify-content:space-between;align-items:center;gap:15px}.customer-notice-history{display:grid;gap:13px}
.metric-unit-field{display:grid;gap:7px;max-width:320px;margin:12px 0;font-size:12px}.metric-unit-field input{min-height:42px;padding:8px 10px;border:1px solid var(--line);border-radius:7px}
.measurement-input-wrap select{width:100%;min-height:58px;border:1px solid var(--line);border-radius:8px;background:var(--paper);color:var(--text);padding:10px;font:inherit;font-size:18px}.correction-fields select{min-height:44px;padding:9px;border:1px solid var(--line);border-radius:8px;background:var(--paper);font:inherit}
:is(.qr-scan-panel,.report-matrix-scroll,.sidebar-utility,.customer-product-scroll,.technician-plant-groups,.measure-process-list,.other-links) :is(a,button,input,select,summary):focus-visible,.qr-scan-launch:focus-visible{outline:3px solid var(--tenant-primary);outline-offset:2px}
@media(max-width:820px){.mobile-navigation.provider-navigation{grid-template-columns:repeat(5,minmax(0,1fr))}.qr-scan-launch>span:last-child{display:none}.qr-scan-launch{width:43px;justify-content:center}.app-topbar{gap:9px}}
@media(max-width:600px){.technician-plant-item{align-items:stretch;flex-direction:column}.technician-plant-item .button{width:100%}.report-matrix th,.report-matrix td{padding:6px}.customer-product-category-button{padding:13px}}
@media print{@page{size:A3 landscape;margin:11mm}.report-matrix-scroll{overflow:visible}.report-matrix{min-width:0;width:100%;font-size:9px}.report-matrix th,.report-matrix td{min-width:0;padding:4px;position:static!important;overflow-wrap:anywhere}.report-matrix thead{display:table-header-group}.report-matrix tr{break-inside:avoid}.report-matrix-cell,.report-matrix thead th,.report-matrix .report-target-change td{-webkit-print-color-adjust:exact;print-color-adjust:exact}.qr-scan-launch,.qr-scan-overlay,.sidebar-utility{display:none!important}}
@media(prefers-reduced-motion:reduce){.measure-chevron{transition:none}}

/* Messentwurf, Aktualität und Arbeitsliste */
.plant-start-options{display:grid;gap:12px;padding:14px;margin:0 0 20px;border:1px solid var(--line);border-radius:10px;background:var(--tenant-primary-soft)}
.plant-start-options h3{margin:0;font-size:15px}.plant-start-options p{margin:3px 0 8px;font-size:12px;color:var(--muted)}
.plant-start-options>div{display:flex;flex-wrap:wrap;gap:9px;align-items:end}.plant-start-options label{display:grid;gap:5px;flex:1 1 220px;font-size:12px;font-weight:700}
.plant-start-options select{min-width:0;width:100%;min-height:44px;padding:8px 10px;border:1px solid var(--line);border-radius:8px;background:var(--paper);color:var(--text)}
.measurement-review-check{display:flex;align-items:flex-start;gap:10px;margin:20px 0;padding:15px;border:1px solid var(--tenant-primary);border-radius:9px;background:var(--tenant-primary-soft);font-size:13px;line-height:1.5}
.measurement-review-check input{width:20px;height:20px;margin:2px 0 0;flex:none;accent-color:var(--tenant-primary)}
.metric-unit-field{max-width:100%}.metric-unit-field :is(input,select){width:100%;min-height:44px;padding:8px 10px;border:1px solid var(--line);border-radius:7px;background:var(--paper);color:var(--text);font:inherit;font-size:14px}
.draft-status{display:flex;flex-wrap:wrap;gap:4px;align-items:center;margin:14px 0;padding:10px 14px;border:1px solid var(--line);border-radius:8px;color:var(--tenant-primary-deep);background:var(--tenant-primary-soft);font-size:12px;font-weight:700}
.draft-status>span:first-child{margin-right:6px}.converted-result{display:grid;gap:4px;padding:14px;margin:15px 0;border-left:4px solid var(--tenant-primary);border-radius:7px;background:var(--tenant-primary-soft)}
.converted-result>span,.converted-result small{font-size:12px;color:var(--muted)}.converted-result strong{font-size:19px;line-height:1.3}
.draft-discard{margin-top:18px;padding-top:15px;border-top:1px solid var(--line)}.draft-discard p{font-size:13px}.draft-discard .button{margin:5px 5px 0 0}
.plant-freshness-summary{display:flex;align-items:center;flex-wrap:wrap;gap:5px 10px;margin-top:8px;font-size:12px}.plant-freshness-summary strong{color:var(--tenant-primary-deep)}
.freshness-warning{padding:3px 7px;border-radius:6px;background:#fff0ce;color:#804900;font-weight:700}.zone-freshness{display:block;font-size:12px;color:var(--muted);margin:4px 0}
.work-summary{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 18px}.work-summary span{padding:11px 15px;border-radius:8px;background:var(--tenant-primary-soft);font-size:13px}.work-summary strong{font-size:18px;margin-right:4px}
.technician-work-item{margin-bottom:14px;border-left:5px solid #d58b13}.technician-work-item.work-red{border-left-color:#aa2945}.technician-work-item h2{font-size:18px;overflow-wrap:anywhere}.work-item-heading,.technician-due-row{display:flex;align-items:flex-start;justify-content:space-between;gap:15px}
.work-item-heading .status-badge{flex:none}.work-item-actions{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.technician-work-item label{display:grid;gap:6px;margin:13px 0;font-size:12px;font-weight:700}
.technician-work-item textarea{width:100%;min-height:74px;padding:10px;border:1px solid var(--line);border-radius:8px;font:inherit;font-size:14px;color:var(--text)}
.technician-due-list{margin-top:20px}.technician-due-row{align-items:center;padding:13px 0;border-top:1px solid var(--line)}.technician-due-row>div{min-width:0;overflow-wrap:anywhere}.technician-due-row small{display:block;color:var(--muted);margin-top:4px}
.resolved-work-history{margin-top:18px}.resolved-work-history summary{cursor:pointer;font-weight:700}.resolved-work-history>div{display:grid;gap:3px;padding:10px 0;border-top:1px solid var(--line);font-size:12px}.resolved-work-history>div span{color:var(--muted);overflow-wrap:anywhere}
:is(.plant-start-options,.measurement-review-check,.draft-discard,.technician-work-item,.technician-due-list,.resolved-work-history,.metric-unit-field) :is(input,select,textarea,button,summary):focus-visible{outline:3px solid var(--tenant-primary);outline-offset:2px}
@media(max-width:620px){.work-item-heading,.technician-due-row{align-items:stretch;flex-direction:column}.technician-due-row .button{width:100%}.technician-work-item .button{min-height:44px}}

/* Kategorisierte Produktauswahl direkt im Anlageneditor. */
.zone-product-layout{display:grid;gap:20px;margin-top:14px;min-width:0}
.zone-product-column{min-width:0}
.zone-product-column>.product-picker-heading{display:block;font-size:14px;margin-bottom:9px}
.zone-product-column .customer-product-search{margin:0 0 10px}
.zone-product-scroll{max-height:310px;background:var(--paper)}
.zone-product-table{min-width:0;width:100%;table-layout:fixed}
.zone-product-table th,.zone-product-table td{overflow-wrap:anywhere;vertical-align:middle}
.zone-product-table th:first-child{width:42%}.zone-product-table th:nth-child(2){width:36%}.zone-product-table th:nth-child(3){width:22%}
.zone-product-table td:last-child{text-align:right}
.zone-product-table .product-transfer-button{min-width:44px;min-height:44px}
.zone-product-grant{min-height:42px;padding:7px 9px;font-size:12px}
.zone-product-empty{margin:0;padding:15px}
.zone-product-missing{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 15px;font-size:12px}
.zone-product-layout :is(button,input,.zone-product-scroll):focus-visible{outline:3px solid var(--tenant-primary);outline-offset:2px}
@media(max-width:620px){.zone-product-table{min-width:480px}.zone-product-scroll{max-height:260px}}
@media(max-width:820px){.mobile-navigation.operator-navigation{grid-template-columns:repeat(3,minmax(0,1fr))}.mobile-navigation.server-navigation{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Product PDFs and technician work badge */
.product-document-editor{border-top:1px solid var(--line);padding-top:16px;margin:18px 0}
.product-document-editor h3{font-size:17px;margin:0 0 5px}
.product-document-upload{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:14px}
.product-document-upload-card{border:1px solid var(--line);border-radius:10px;padding:14px;min-width:0;display:grid;gap:9px;background:var(--paper)}
.product-document-upload-card strong{font-size:13px}.product-document-upload-card small{font-size:12px;color:var(--muted);overflow-wrap:anywhere}
.product-document-upload-card input[type=file]{font:inherit;font-size:12px;width:100%;min-width:0}
.product-document-actions,.product-document-links,.product-document-link{display:flex;flex-wrap:wrap;gap:8px 13px;align-items:center}
.product-document-actions{font-size:12px}.product-document-links{display:grid;gap:7px;min-width:190px}
.product-document-link{padding:6px 0;border-bottom:1px solid var(--line);font-size:12px}
.product-document-link:last-child{border-bottom:0}.product-document-link span{font-weight:700;flex:1 0 100%}
.product-document-link a,.product-document-actions a{color:var(--tenant-primary-deep);font-weight:700}
.mobile-navigation a .mobile-work-count{position:absolute;top:2px;right:calc(50% - 27px);font-size:10px;line-height:1;min-width:18px;padding:4px;border-radius:99px;background:var(--danger);color:#fff}
.mobile-navigation a:has(.mobile-work-count){position:relative}
@media(max-width:620px){.product-document-upload{grid-template-columns:1fr}.product-document-link{gap:7px}.product-document-links{min-width:0}}

/* Navigation follows membership across administration, technician and measurement pages. */
.app-sidebar{min-height:0}
.app-sidebar .sidebar-caption{margin:25px 10px 15px}
.sidebar-menu-scroll{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;padding-right:3px}
.app-sidebar .sidebar-bottom{flex-shrink:0;margin:18px 10px 6px}
.grouped-navigation{display:grid;gap:5px}
.navigation-home,.navigation-category{display:flex;align-items:center;gap:10px;width:100%;min-height:45px;padding:10px 11px;border-radius:9px;color:#595363;font-size:13px;line-height:1.3;text-align:left}
.navigation-category{border:0;background:transparent;font-weight:650}
.navigation-home{font-weight:600;margin-bottom:5px}
.navigation-home:hover,.navigation-home.active,.navigation-category:hover,.navigation-section.has-active-page>.navigation-category{background:var(--tenant-primary-soft);color:var(--tenant-primary-deep)}
.navigation-home.active{font-weight:750}
.navigation-icon{display:grid;place-items:center;flex:0 0 19px;font-size:17px;color:var(--tenant-primary)}
.navigation-chevron{margin-left:auto;flex-shrink:0;font-size:18px;transform:rotate(-90deg);transition:transform .15s ease}
.navigation-category[aria-expanded=true] .navigation-chevron{transform:rotate(0deg)}
.navigation-submenu{margin:3px 6px 9px 20px;padding-left:10px;border-left:1px solid color-mix(in srgb,var(--tenant-primary) 25%,var(--line));display:grid;gap:2px}
.navigation-submenu a{display:flex;align-items:center;justify-content:space-between;gap:7px;min-height:40px;padding:8px 9px;border-radius:7px;font-size:12px;line-height:1.4;color:var(--muted)}
.navigation-submenu a:hover,.navigation-submenu a.active{background:var(--tenant-primary-soft);color:var(--tenant-primary-deep)}
.navigation-submenu a.active{font-weight:700}
.navigation-company{font-size:11px;line-height:1.45;overflow-wrap:anywhere;color:var(--muted);margin:5px 9px 8px}
.navigation-count{flex-shrink:0;min-width:22px;padding:3px 6px;border-radius:99px;background:var(--tenant-primary);color:var(--tenant-primary-contrast);font-size:10px;font-weight:700;text-align:center}
.topbar-context{min-width:0;flex-wrap:wrap;gap:4px 7px}
.topbar-company{flex-basis:100%;max-width:300px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}
.navigation-dialog{width:min(460px,calc(100% - 24px));max-height:calc(100dvh - 36px);margin:auto auto 16px;padding:20px;border:1px solid var(--line);border-radius:18px;background:var(--paper);color:var(--text);box-shadow:0 20px 70px #251b3940;overscroll-behavior:contain}
.navigation-dialog::backdrop{background:#251b3966;backdrop-filter:blur(3px)}
.navigation-dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:15px}
.navigation-dialog-heading h2{font-size:24px;margin:6px 0 0}
.navigation-dialog-close{display:grid;place-items:center;flex:0 0 42px;height:42px;padding:0;background:var(--tenant-primary-soft);color:var(--tenant-primary-deep);border:0;border-radius:9px;font-size:28px;line-height:1}
.navigation-dialog .navigation-home,.navigation-dialog .navigation-category{font-size:14px;min-height:47px}
.navigation-dialog .navigation-submenu a{font-size:13px;min-height:44px}
@media(max-width:820px){
 .app-topbar{height:auto;min-height:65px;flex-wrap:wrap;padding-top:10px;padding-bottom:9px;gap:8px 10px}
 .app-topbar .topbar-context{order:5;flex:1 1 100%;font-size:11px}
 .app-topbar .topbar-context strong{font-size:12px}
 .app-topbar .topbar-company{max-width:100%;flex-basis:auto;margin-left:auto}
 .mobile-navigation.grouped-mobile-navigation{grid-template-columns:repeat(var(--mobile-navigation-items),minmax(0,1fr));gap:2px}
 .grouped-mobile-navigation .mobile-menu-toggle{display:grid;place-items:center;gap:1px;color:var(--muted);font-size:10px;min-height:51px;border:0;background:transparent;border-radius:6px;padding:4px}
 .grouped-mobile-navigation .mobile-menu-toggle>span{font-size:18px;line-height:1}
 .grouped-mobile-navigation .mobile-menu-toggle:hover,.grouped-mobile-navigation .mobile-menu-toggle.active{background:var(--tenant-primary-soft);color:var(--tenant-primary-deep);font-weight:700}
}
@media print{.navigation-dialog{display:none!important}}
.navigation-category>span:nth-child(2),.navigation-home>span:nth-child(2){min-width:0;overflow-wrap:anywhere}

/* Customer-side contacts and provider-side technical support are separate. */
.customer-assigned-technician{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px 15px;padding:12px 14px;margin:0 0 16px;background:var(--tenant-primary-soft);border-radius:9px;font-size:13px}
.customer-assigned-technician>div{display:grid;gap:6px;min-width:0;flex:1 1 170px;overflow-wrap:anywhere}
.customer-assigned-technician small{font-size:9px;letter-spacing:.08em;font-weight:700;color:var(--muted)}
.customer-assigned-technician a{color:var(--tenant-primary-deep);font-weight:700;display:inline-block;justify-self:start;min-height:30px;padding:5px 0}
.customer-assigned-technician a:hover{text-decoration:underline}
.customer-support-role{font-size:11px;color:var(--tenant-primary-deep);border:1px solid var(--line);border-radius:6px;padding:5px 8px;white-space:nowrap}
.admin-customer{scroll-margin-top:110px}
.admin-customer.is-focused-customer,.admin-customer:target{background:var(--tenant-primary-soft);border-radius:10px;outline:2px solid var(--tenant-primary);outline-offset:4px}

.customer-measurement-mail { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line, #e5e7eb); }
.customer-measurement-mail label { display: grid; gap: .45rem; max-width: 32rem; font-weight: 600; }
.customer-measurement-mail select { width: 100%; min-width: 0; transition: background-color .15s, border-color .15s; }
.customer-measurement-mail select.measurement-mail-every-round { background-color: #edf7ef; border-color: #bedcc5; color: #245638; }
.customer-measurement-mail select.measurement-mail-deviations { background-color: #fff3e5; border-color: #ebcfaa; color: #805019; }
.customer-measurement-mail select option { background-color: var(--paper, #fff); color: var(--text, #18251e); }
.server-preview-banner { padding: 1rem 1.25rem; margin-bottom: 1.25rem; border: 1px solid #d9c78e; border-radius: 12px; background: #fff9e8; color: #66511c; }
.server-preview-banner p { margin: .4rem 0 0; }
.customer-measurement-mail .fine-print { margin: .6rem 0 0; }

/* Consistent field alignment for requests and legal forms. */
.workspace-form-page > .surface-card + .surface-card { margin-top: 20px; }
.workspace-form-page .visit-form { max-width: none; }
.form-stack { display: grid; gap: 18px; }
.form-stack > form { display: grid; gap: 18px; min-width: 0; }
.form-stack > label, .form-stack form > label, .form-stack details > label { display: grid; gap: 8px; font-size: 13px; font-weight: 600; min-width: 0; margin: 0; }
.form-stack input:not([type=checkbox]):not([type=hidden]), .form-stack select, .form-stack textarea { width: 100%; min-width: 0; box-sizing: border-box; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--text); padding: 12px 14px; font: inherit; margin: 0; }
.form-stack input:not([type=checkbox]):not([type=hidden]), .form-stack select { min-height: 48px; }
.form-stack textarea { min-height: 130px; resize: vertical; }
.form-stack > .button, .form-stack form > .button { justify-self: start; margin-top: 2px; }
.form-stack label:has(> input[type=checkbox]) { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; }
.form-stack input[type=checkbox] { width: 18px; height: 18px; flex: 0 0 auto; margin: 2px 0 0; }
.legal-profile-fields { align-items: start; gap: 20px 18px; }
.legal-profile-fields > label { align-self: start; display: grid; grid-template-rows: minmax(2.6em, auto) auto; align-content: start; gap: 8px; }
.legal-profile-fields > label > span { display: flex; align-items: flex-end; font-size: 13px; line-height: 1.3; }
.legal-profile-fields input { height: 48px; min-height: 48px; margin: 0; }
.legal-profile-fields textarea { min-height: 120px; margin: 0; resize: vertical; width: 100%; box-sizing: border-box; }
.legal-profile-fields .legal-field-wide { grid-column: 1 / -1; grid-template-rows: auto auto; }
.legal-annexes { margin: 18px 0; }
.legal-annexes summary { font-weight: 700; cursor: pointer; }

/* Account settings share the application card and field styles. */
.account-management-shell .app-main { max-width: 1180px; width: 100%; }
.account-settings-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.account-settings-heading .page-intro { margin-bottom: 0; }
.account-settings-heading > .button { flex-shrink: 0; margin-top: 12px; }
.account-settings-layout { display: grid; grid-template-columns: 245px minmax(0, 1fr); gap: 22px; align-items: start; }
.account-settings-nav { padding: 22px 14px; position: sticky; top: 100px; }
.account-settings-nav > .eyebrow { display: block; padding: 0 12px 18px; }
.account-settings-links { display: grid; gap: 6px; }
.account-settings-links a { display: flex; align-items: center; gap: 12px; border-radius: 9px; min-height: 46px; padding: 11px 12px; color: var(--text); font-size: 13px; line-height: 1.4; text-decoration: none; }
.account-settings-links a > span { color: var(--tenant-primary); font-size: 17px; width: 18px; text-align: center; flex-shrink: 0; }
.account-settings-links a:hover { background: var(--tenant-primary-soft); }
.account-settings-links a.active { background: var(--tenant-primary-soft); color: var(--tenant-primary-deep); font-weight: 700; }
.account-settings-content { min-width: 0; padding: 30px; }
.account-settings-content > h1, .account-settings-content > h2, .account-settings-content > h3 { margin-top: 0; font-size: 24px; line-height: 1.25; }
.account-settings-content .row, .account-settings-content [class^=col-] { width: 100%; min-width: 0; margin: 0; padding: 0; }
.account-settings-content form { display: grid; gap: 18px; }
.account-settings-content .form-floating { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.account-settings-content .form-floating > label { order: -1; font-weight: 600; font-size: 13px; }
.account-settings-content input:not([type=checkbox]):not([type=hidden]), .account-settings-content select { width: 100%; min-height: 48px; border: 1px solid var(--line); border-radius: 9px; background: #fff; padding: 12px 14px; color: var(--text); box-sizing: border-box; font: inherit; }
.account-settings-content input:disabled { background: #f5f3f7; color: var(--muted); opacity: 1; }
.account-settings-content .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 45px; padding: 12px 18px; border: 0; border-radius: 9px; font-size: 13px; font-weight: 700; text-decoration: none; line-height: 1.3; cursor: pointer; width: fit-content; margin: 4px 6px 4px 0; }
.account-settings-content .btn-primary { background: var(--tenant-primary); color: var(--tenant-primary-contrast); }
.account-settings-content .btn-danger { background: var(--danger); color: white; }
.account-settings-content .btn-link { background: var(--tenant-primary-soft); color: var(--tenant-primary-deep); }
.account-settings-content .text-danger { color: var(--danger); font-size: 13px; }
.account-settings-content .alert { padding: 15px 18px; border: 1px solid var(--line); border-radius: 9px; margin: 16px 0; }
.account-settings-content .alert-success { background: #edf7ef; color: #256741; border-color: #bfdcc8; }
.account-settings-content .alert-danger { background: #fcf0f1; color: #8f293c; border-color: #efc8cf; }
.account-settings-content .alert-warning { background: #fff8e9; color: #865d14; border-color: #eddaad; }
.account-settings-content p { line-height: 1.6; }
.account-settings-content h4 { margin: 28px 0 12px; font-size: 18px; }
.account-settings-content .input-group-append { align-self: flex-end; color: #25744b; }

/* Header actions and a compact, accessible notification inbox. */
.app-topbar .topbar-context { flex: 1; min-width: 0; }
.topbar-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-left: auto; }
.topbar-logout { margin: 0; }
.topbar-logout .button { min-height: 44px; padding: 11px 17px; white-space: nowrap; }
.server-preview-banner { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.server-preview-banner p { margin-bottom: 0; }
.server-preview-banner > form { flex-shrink: 0; }
.notification-bell { position: relative; }
.notification-toggle { display: grid; place-items: center; position: relative; width: 44px; height: 44px; padding: 9px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--muted); cursor: pointer; }
.notification-toggle svg { width: 23px; height: 23px; }
.notification-toggle:hover, .notification-toggle[aria-expanded=true] { background: var(--tenant-primary-soft); color: var(--tenant-primary); border-color: var(--tenant-primary); }
.notification-toggle.has-unread { color: var(--tenant-primary-deep); }
.notification-badge { position: absolute; top: -5px; right: -5px; display: grid; place-items: center; min-width: 19px; height: 19px; padding: 0 4px; border: 2px solid white; border-radius: 12px; background: #bf3348; color: white; font-size: 10px; font-weight: 800; line-height: 1; }
.notification-dismiss { position: fixed; inset: 0; z-index: 29; background: transparent; border: 0; cursor: default; }
.notification-panel { position: absolute; z-index: 30; right: 0; top: 54px; width: min(410px, calc(100vw - 24px)); max-height: min(570px, calc(100dvh - 110px)); background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 55px #281c3a28; overflow: auto; }
.notification-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 20px 20px 12px; }
.notification-heading h2 { margin: 0 0 5px; font-size: 18px; }
.notification-heading span { font-size: 12px; color: var(--muted); }
.notification-close { width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 24px; cursor: pointer; }
.notification-read-all { background: transparent; color: var(--tenant-primary); border: 0; padding: 6px 20px 15px; font-size: 12px; font-weight: 700; cursor: pointer; }
.notification-list { display: grid; }
.notification-item { display: grid; grid-template-columns: 7px minmax(0,1fr); gap: 11px; padding: 16px 20px; border-top: 1px solid var(--line); text-decoration: none; color: var(--text); background: var(--paper); }
.notification-item:hover { background: #f5f2f8; }
.notification-item.is-unread { background: #f4effa; }
.notification-item > span:last-child { display: grid; gap: 5px; min-width: 0; }
.notification-item strong { font-size: 13px; line-height: 1.4; }
.notification-item span span { color: var(--muted); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.notification-item small { color: var(--muted); font-size: 10px; }
.notification-unread-dot { width: 7px; height: 7px; border-radius: 50%; margin-top: 6px; }
.notification-item.is-unread .notification-unread-dot { background: #bf3348; }
.notification-empty, .notification-footer { padding: 12px 20px 20px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.notification-toggle:focus-visible, .notification-item:focus-visible, .notification-close:focus-visible { outline: 3px solid var(--tenant-primary); outline-offset: 2px; }
[id^=termin-], [id^=hinweis-], [id^=anfrage-], [id^=vertrag-], [id^=begehren-], [id^=auffaelligkeit-] { scroll-margin-top: 110px; }
@media (max-width: 760px) {
    .account-settings-layout { grid-template-columns: 1fr; gap: 16px; }
    .account-settings-nav { position: static; padding: 16px; }
    .account-settings-links { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .account-settings-content { padding: 22px; }
    .account-settings-heading { flex-direction: column; gap: 8px; }
    .legal-profile-fields > label { grid-template-rows: auto auto; }
    .legal-profile-fields > label > span { min-height: 0; }
    .topbar-actions { gap: 8px; }
    .server-preview-banner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
    .account-settings-links { grid-template-columns: 1fr; }
    .notification-panel { position: fixed; top: 70px; right: 12px; left: 12px; width: auto; max-height: calc(100dvh - 145px); }
    .topbar-actions { gap: 7px; }
    .topbar-logout .button { padding: 10px 12px; min-height: 42px; }
}

.app-topbar { backdrop-filter: none; }

.invitation-panel{padding:12px 0;max-width:42rem}.invitation-panel p{margin:8px 0}.invitation-panel label{display:flex;flex-direction:column;gap:6px;margin:12px 0}.invitation-panel .check-row{flex-direction:row;align-items:center}.invitation-panel input[type=email]{width:100%;max-width:32rem}.invitation-panel button{margin:4px 8px 4px 0}.admin-transfer{margin:24px 0;padding:20px;border:1px solid var(--border,#ddd);border-radius:16px}.public-inquiry:target{outline:3px solid #60448c;outline-offset:3px;scroll-margin-top:90px}

/* FocusOnNavigate still announces the page title. Only its non-interactive
   programmatic target loses the rectangle; links inside headings keep focus. */
h1[tabindex="-1"]:not([role]):not([contenteditable="true"]):focus-visible{outline:none;box-shadow:none}
.skip-link{position:fixed;top:12px;left:12px;z-index:200;padding:12px 18px;border-radius:8px;background:var(--tenant-primary-deep,#463365);color:white;transform:translateY(-160%)}
.skip-link:focus{transform:none}
.access-restriction-banner{display:flex;align-items:flex-start;gap:14px;padding:18px 20px;margin-bottom:24px;background:#fbecef;border:1px solid #d997a3;border-radius:12px;color:#861f30;line-height:1.5;overflow-wrap:anywhere}
.access-restriction-icon{flex:0 0 26px;width:26px;height:26px;border:2px solid currentColor;border-radius:50%;text-align:center;font-weight:800;line-height:22px}
.access-restriction-banner strong{display:block;font-size:16px}.access-restriction-banner p{margin:7px 0;font-size:14px}.access-restriction-links{display:flex;flex-wrap:wrap;gap:4px 18px}.access-restriction-links a{display:inline-flex;align-items:center;min-height:44px;text-decoration:underline;font-size:13px;font-weight:700}
/* Grid labels provide a real gap between text and the field's focus outline.
   The inset focus stroke stays inside the control, including wrapped labels. */
:is(.visit-form,.form-stack,.editor-fields,.invitation-panel) label:has(> :is(input:not([type=checkbox]):not([type=radio]),select,textarea)){display:grid;gap:9px;align-content:start;min-width:0}
:is(.visit-form,.form-stack,.editor-fields,.invitation-panel) label:has(> :is(input:not([type=checkbox]):not([type=radio]),select,textarea))>:is(input,select,textarea){margin-top:0}
:is(.visit-form,.form-stack,.editor-fields,.invitation-panel) :is(input:not([type=checkbox]):not([type=radio]),select,textarea):focus-visible{outline:3px solid var(--tenant-primary,#60448c);outline-offset:-3px}
:is(.visit-form,.form-stack) [aria-invalid=true]{border:2px solid #a82d3d!important}
.outlined-field>span{position:relative;z-index:1;line-height:1.5;padding-block:2px;background:inherit}
.provider-owner-page{display:grid;gap:24px;min-width:0}.provider-owner-page>.surface-card+.surface-card{margin-top:0}.provider-owner-page>.page-intro{margin-bottom:0}.provider-owner-page>.surface-card{width:100%;min-width:0;margin:0}.provider-owner-page .owner-action-section{display:grid;gap:16px;min-width:0}.provider-owner-page .owner-action-section+.owner-action-section{border-top:1px solid var(--line);padding-top:24px;margin-top:4px}.provider-owner-page h2,.provider-owner-page h3{margin-bottom:0}.provider-owner-page .owner-action-section p{margin:0;line-height:1.55}.provider-owner-page .owner-action-section form{display:grid;gap:18px}.provider-owner-page .owner-action-section form>.button{justify-self:start}.provider-owner-page .invitation-panel{width:100%;max-width:none;padding:0}.provider-owner-page .invitation-panel input[type=email]{max-width:none}.provider-owner-page .visit-form .button{margin-top:0}.provider-owner-page .invitation-panel button{margin:8px 8px 4px 0}.provider-owner-page .invitation-refresh{min-height:47px}.provider-owner-page .invitation-panel p,.provider-owner-page strong{overflow-wrap:anywhere}.owner-admin-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:16px;padding:20px 0;border-bottom:1px solid var(--line)}.owner-admin-row>div:first-child{display:grid;gap:8px;min-width:0}.owner-admin-row .request-state{justify-self:start}.owner-admin-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}.owner-admin-actions .button{width:auto}.owner-admin-actions .text-link{min-height:44px;padding:10px}.owner-admin-row .product-remove-confirm{grid-column:1/-1;overflow-wrap:anywhere}
@media(max-width:640px){.access-restriction-banner{padding:16px 14px;gap:10px}.provider-owner-page{gap:18px}.owner-admin-row{grid-template-columns:minmax(0,1fr);gap:12px}.owner-admin-actions{justify-content:flex-start}.owner-admin-actions>.button{flex:0 1 auto}.provider-owner-page .surface-card{padding:20px 17px}.provider-owner-page .owner-action-section+.owner-action-section{padding-top:20px}}

:is(.visit-form,.form-stack) [aria-invalid=true]:focus-visible{outline-offset:3px}

/* Smartphone measurement flow: all actions scroll with the content. */
.customer-start{max-width:850px;margin:0 auto}.customer-start-title h1{font-size:clamp(28px,4vw,38px);margin:0 0 20px}.qr-scan-launch.scan-featured{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-height:170px;width:100%;padding:24px;border:0;border-radius:18px;background:var(--tenant-primary);color:#fff;box-shadow:0 5px 18px #38255016}.scan-featured strong{font-size:28px}.scan-featured small{font-size:15px}.qr-scan-launch:not(.scan-featured) svg{width:21px;height:21px}.qr-scan-launch:not(.scan-featured) strong{font-size:12px}.manual-plant-choice{display:block;text-align:center;padding:14px;color:var(--tenant-primary-deep);font-size:14px;min-height:44px}.resume-round{display:flex;align-items:center;gap:15px;background:var(--paper);border:1px solid var(--line);border-radius:15px;padding:20px;margin:12px 0 20px;color:var(--text)}.resume-round>span{font-size:30px;color:var(--tenant-primary)}.resume-round>span:last-child{margin-left:auto}.resume-round div{display:grid;gap:5px;min-width:0;overflow-wrap:anywhere}.resume-round strong{font-size:18px}.resume-round small{color:var(--muted);font-size:12px}.compact-plant-list{display:grid;gap:12px}.compact-plant-card{background:var(--paper);border:1px solid var(--line);border-radius:14px;overflow:hidden}.compact-plant-card>a:first-child{display:flex;align-items:center;gap:12px;padding:17px;color:var(--text);min-height:80px}.compact-plant-card>a:first-child>div{display:grid;gap:5px;min-width:0;flex:1;overflow-wrap:anywhere}.compact-plant-card strong{font-size:18px}.compact-plant-card small{color:var(--muted);font-size:12px}.compact-plant-card>a:first-child>span:last-child{font-size:24px}.compact-plant-card .status-badge{font-size:11px;max-width:140px;white-space:normal}.compact-plant-card .fine-print{padding:0 17px;margin:0 0 10px}.status-action{display:block;padding:12px 17px;min-height:44px;color:var(--tenant-primary-deep);font-size:13px;text-decoration:underline}.customer-start-more{border-top:1px solid var(--line);margin-top:25px;padding:15px 0}.customer-start-more summary{min-height:44px;cursor:pointer;font-weight:700}.plant-search{display:grid;gap:8px;margin-bottom:15px}.plant-search input{width:100%;font-size:16px;min-height:48px}.hierarchy-status{display:flex;align-items:center;flex-wrap:wrap;gap:9px;margin:0 0 15px}.hierarchy-status small{color:var(--muted);font-size:12px}.status-zone-selection,.status-explanation{padding:15px;border:1px solid var(--line);border-radius:10px;margin:15px 0}.status-zone-selection summary,.status-explanation summary{cursor:pointer;min-height:36px;font-weight:700;font-size:14px}.status-explanation p{font-size:13px;line-height:1.5}.single-zone-start{margin-bottom:20px}.measure-zone-heading{flex-wrap:wrap}.measure-zone-heading>div{min-width:0;flex:1}.measure-zone-heading>.status-badge{white-space:normal;max-width:180px;font-size:11px}.schema-chamber-heading>.status-badge{white-space:normal;max-width:190px;font-size:11px}.schema-chamber-heading{flex-wrap:wrap}.measure-zone-card .status-badge{flex:none}.round-location{display:flex;align-items:center;gap:12px;max-width:800px;margin:0 auto 16px}.round-location>a:first-child{font-size:27px;padding:8px;min-width:44px;min-height:44px;color:var(--text)}.round-location div{display:grid;gap:4px;flex:1;min-width:0;overflow-wrap:anywhere}.round-location strong{font-size:22px}.round-location small{font-size:13px;color:var(--muted)}.round-progress{display:flex;align-items:center;justify-content:space-between;gap:12px;max-width:800px;margin:0 auto 10px;font-size:15px}.round-progress .button{padding:8px 12px;min-height:44px}.round-progress-bar{display:block;appearance:none;width:100%;max-width:800px;height:8px;margin:0 auto 12px;border:0;border-radius:5px;overflow:hidden;background:#ddd9e1}.round-progress-bar::-webkit-progress-bar{background:#ddd9e1}.round-progress-bar::-webkit-progress-value{background:var(--tenant-primary);border-radius:5px}.round-progress-bar::-moz-progress-bar{background:var(--tenant-primary)}.measurement-focus .draft-status{max-width:800px;margin:12px auto;font-size:12px}.draft-status.draft-failed{color:var(--danger);background:#fff1ef;border-color:var(--danger)}.draft-status.draft-saving{color:var(--muted);background:#f1efed}.round-input-panel,.round-summary,.round-completed{max-width:800px;margin:0 auto 18px;padding:22px}.round-input-panel h1{font-size:32px;line-height:1.15;margin:0 0 18px;overflow-wrap:anywhere}.round-input-panel .field-label{display:flex;flex-direction:row;justify-content:space-between;font-size:14px;margin:8px 0}.round-input-panel .field-label span{font-weight:400;color:var(--muted)}.round-input-panel .field-label:has(select),.round-input-panel .field-label:has(input){flex-direction:column;gap:7px}.round-input-panel :is(select,input){min-height:54px;font-size:18px;width:100%;min-width:0}.round-input-panel .measurement-input-wrap{height:auto;min-height:72px}.round-input-panel .measurement-input-wrap input{font-size:42px;line-height:1.15;padding:10px 14px;min-width:0}.round-input-panel .measurement-input-wrap span:empty{display:none}.round-input-panel .target-line{margin-top:16px;gap:10px;flex-wrap:wrap;font-size:13px}.round-rating{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-top:15px}.round-rating small,.round-last{color:var(--muted);font-size:12px}.round-last{margin:9px 0}.round-details{margin-top:12px;border-top:1px solid var(--line);font-size:13px;line-height:1.5}.round-details summary{min-height:44px;padding-top:12px;cursor:pointer;color:var(--tenant-primary-deep)}.round-check{padding:12px;border:1px solid var(--danger);background:#fff1ef;border-radius:9px;margin-top:12px;font-size:13px}.round-check p{margin:0 0 8px}.round-check label{display:flex;align-items:center;gap:9px;min-height:44px}.round-check input{width:22px;min-height:22px;flex:none}.round-review-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:9px;background:var(--paper);color:var(--text);border:1px solid var(--line);border-radius:10px;padding:17px;width:100%;margin-bottom:12px;text-align:left;font:inherit}.round-review-row>div{min-width:0;overflow-wrap:anywhere}.round-review-row small{display:block;font-size:12px;color:var(--muted);margin-top:5px}.round-review-row>.status-badge{grid-column:1/-1;justify-self:start;white-space:normal}.round-review-row>.text-link{grid-column:1/-1;font-size:13px}.round-review-row>strong{overflow-wrap:anywhere;max-width:200px}.round-summary h1{font-size:26px;margin:0 0 8px}.round-summary>p{font-size:14px}.round-finish{width:100%;min-height:54px;margin-top:10px}.round-points-dialog{width:min(560px,calc(100vw - 24px));max-height:min(82dvh,var(--round-viewport-height,82dvh));overflow:auto;border:1px solid var(--line);border-radius:16px;padding:20px;background:var(--paper);color:var(--text)}.round-points-dialog::backdrop{background:#24173588}.round-points-dialog .navigation-dialog-heading{margin-bottom:10px}.round-points-dialog h2{font-size:23px}.round-points-list{list-style:none;padding:0;margin:0 0 15px}.round-points-list li{border-top:1px solid var(--line)}.round-points-list .guide-step{min-height:64px;padding:12px 8px}.measurement-focus :is(button,a,input,select,summary):focus-visible,.customer-start :is(button,a,input,summary):focus-visible{outline:3px solid var(--tenant-primary);outline-offset:3px}.measurement-focus button:disabled{opacity:.6;cursor:default}.measurement-focus .app-main{padding-bottom:max(28px,env(safe-area-inset-bottom));scroll-padding-bottom:24px}.measurement-focus .measurement-navigation{flex-wrap:nowrap;gap:10px}.measurement-focus .measurement-navigation>.button-secondary{width:auto;flex:1;min-width:0}.measurement-focus .measurement-navigation .measurement-submit{flex:1;flex-basis:auto;min-height:52px;font-size:15px;padding:12px;white-space:normal}.measurement-focus .topbar-actions{gap:8px}
@media(max-width:820px){.measurement-focus .app-main{padding:16px max(12px,env(safe-area-inset-right)) max(28px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left))}.round-input-panel,.round-summary{padding:18px;border-radius:16px}.round-location strong{font-size:20px}.round-location small{font-size:12px}.round-points-dialog{margin:auto auto max(10px,env(safe-area-inset-bottom));max-height:min(82dvh,calc(var(--round-viewport-height,100dvh) - 24px))}.customer-start-title h1{font-size:28px}.scan-featured strong{font-size:26px}.qr-scan-launch.scan-featured{min-height:164px}.schema-chamber-heading>.status-badge{order:3;margin-left:35px}.schema-chamber-heading>.measure-chevron{margin-left:auto}.measure-zone-heading>.status-badge{order:3;margin-left:40px}.measure-zone-heading>.measure-chevron{margin-left:auto}}
@media(max-width:390px){.compact-plant-card>a:first-child{flex-wrap:wrap}.compact-plant-card .status-badge{max-width:none}.compact-plant-card>a:first-child>div{flex-basis:65%}.round-location>a:last-child{font-size:12px}.resume-round{padding:15px;gap:10px}.resume-round strong{font-size:16px}.round-input-panel h1{font-size:28px}}
.round-local-status{display:none;max-width:800px;margin:12px auto;padding:10px 14px;border:1px solid var(--line);border-radius:8px;font-size:12px;color:var(--muted);background:#f1efed}.round-local-status .local-offline{display:none}:root[data-measurement-pending="true"] .measurement-focus .draft-status,:root[data-measurement-connection="offline"] .measurement-focus .draft-status,:root[data-measurement-connection="checking"] .measurement-focus .draft-status{display:none}:root[data-measurement-pending="true"] .round-local-status,:root[data-measurement-connection="offline"] .round-local-status,:root[data-measurement-connection="checking"] .round-local-status{display:block}:root:is([data-measurement-connection="offline"],[data-measurement-connection="checking"]) .round-local-status .local-pending{display:none}:root:is([data-measurement-connection="offline"],[data-measurement-connection="checking"]) .round-local-status .local-offline{display:inline}
.qr-scan-dialog{width:min(520px,calc(100vw - 24px));max-height:min(85dvh,calc(var(--round-viewport-height,100dvh) - 24px));border:1px solid var(--line);margin:auto}.qr-scan-dialog::backdrop{background:rgba(26,20,39,.72)}@media print{.qr-scan-dialog{display:none!important}}
.measurement-focus .measurement-navigation{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr)}.measurement-focus .measurement-navigation>.button{width:100%;min-width:0;margin:0;padding:12px;white-space:normal}
.technician-onsite { display:none; }
.technician-plant-actions { margin-bottom:1.5rem; padding:1.2rem; border:1px solid var(--line); border-radius:1.25rem; background:var(--surface,#fff); }
.technician-plant-actions h2 { margin:.3rem 0; font-size:1.65rem; }
.technician-plant-actions .section-heading { flex-wrap:wrap; gap:.6rem; }
.onsite-actions { display:grid; grid-template-columns:2fr 1fr 1fr; gap:.7rem; margin:1rem 0; align-items:start; }
.onsite-actions .button { min-width:0; min-height:48px; white-space:normal; text-align:center; }
.onsite-zone-choice summary { list-style:none; cursor:pointer; }
.onsite-zone-choice > div { display:grid; gap:.5rem; padding-top:.6rem; }
.onsite-zone-status summary { display:flex; align-items:center; flex-wrap:wrap; gap:.5rem; min-height:48px; cursor:pointer; }
.onsite-zone-status > details { border-top:1px solid var(--line); margin-top:.5rem; }
.onsite-zone-row { display:flex; flex-wrap:wrap; align-items:center; gap:.7rem; padding:.6rem; }
.onsite-zone-row > a { min-height:44px; display:flex; align-items:center; }
.onsite-products { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(280px,100%),1fr)); gap:1rem; }
.onsite-product h3 { margin-top:0; }
.onsite-product p { margin:.6rem 0; }
.onsite-product .product-document-link { flex-wrap:wrap; }
.onsite-product .product-document-link a { min-height:44px; display:inline-flex; align-items:center; }
.onsite-report { margin-bottom:1rem; }
.round-location > div { min-width:0; overflow-wrap:anywhere; }
@media (max-width:820px) {
  .technician-desktop-scanner { display:none; }
  .qr-scan-launch:not(.scan-featured) { width:44px; min-height:44px; padding:10px; }
  .qr-scan-launch:not(.scan-featured) strong { display:none; }
  .technician-onsite { display:grid; gap:.8rem; margin-bottom:1.5rem; }
  .technician-onsite h1 { margin:0; font-size:1.8rem; }
  .technician-onsite p { margin:0; }
  .technician-onsite .scan-featured { width:100%; }
  .technician-onsite .button { min-height:52px; }
  .technician-plant-actions { padding:1rem; }
  .onsite-actions { grid-template-columns:1fr 1fr; }
  .onsite-measure,.onsite-zone-choice { grid-column:1 / -1; }
  .onsite-zone-row .status-badge { max-width:100%; }
  .onsite-products { grid-template-columns:1fr; }
  .onsite-report .button-row { display:grid; }
  .onsite-report .button { white-space:normal; }
}

/* Structured customer offers and shared company data. */
.customer-billing { grid-column: 1 / -1; width: 100%; min-width: 0; padding: 1rem; background: var(--surface-alt, #f6f8fb); border: 1px solid var(--line, #dce3eb); border-radius: 12px; }
.customer-billing summary, .provider-text-editor summary { cursor: pointer; font-weight: 650; }
.customer-billing .editor-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.customer-billing label { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.customer-billing .legal-acceptance { flex-direction: row; align-items: flex-start; }
.billing-price-list { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: .6rem 1rem; }
.billing-price-list dt, .billing-price-list dd { margin: 0; overflow-wrap: anywhere; }
.billing-price-list dd { text-align: right; }
.billing-summary { padding: 1rem 0; }
.billing-summary ul, .billing-summary small { overflow-wrap: anywhere; }
.legal-protected-line { white-space: pre-wrap; overflow-wrap: anywhere; border-left: 3px solid #b8c8da; padding: .55rem .8rem; background: #f0f4f8; font-size: .88rem; }
.provider-text-editor textarea { width: 100%; min-width: 0; resize: vertical; }
.billing-legacy { padding: .8rem; border-left: 3px solid #bc8720; background: #fff8e6; }
@media (max-width: 600px) { .customer-billing .editor-fields { grid-template-columns: minmax(0, 1fr); } .billing-price-list { font-size: .9rem; gap: .6rem; } .billing-price-list dd { text-align: left; } .provider-text-editor .button-row { flex-wrap: wrap; } }

.contracts-page { max-width: 1280px; }
.contract-intro { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.contract-template-badge { padding: .5rem .8rem; border-radius: 10px; background: #e4f5ef; color: #087f60; font-size: .85rem; white-space: nowrap; }
.contract-customer-select { display: flex; gap: 1.2rem; align-items: center; margin: 1rem 0; }
.contract-customer-select label { display: flex; gap: 1.2rem; align-items: center; font-weight: 650; flex: 1; }
.contract-customer-select select { width: min(100%, 380px); min-width: 0; padding: .8rem; border: 1px solid var(--line, #dce3eb); border-radius: 10px; background: #fff; font: inherit; }
.contract-columns { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.contract-columns > section { min-width: 0; margin: 0; }
.contract-billing-card .customer-billing { border: 0; padding: 0; background: transparent; }
.contract-preview-card h2, .contract-billing-card h2 { margin-top: 0; }
.contract-paper { border: 1px solid #dce3eb; border-radius: 10px; padding: 1.2rem; min-width: 0; background: #fff; }
.contract-paper h3 { padding-bottom: 1rem; border-bottom: 1px solid #dce3eb; }
.contract-paper .legal-copy { font-size: .88rem; }
.contract-full-preview { margin-top: 1rem; }
.contract-full-preview > .legal-copy { max-height: 450px; overflow-y: auto; }
.contract-actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.contract-actions button { flex: 1 1 180px; }
.contract-secondary { margin-top: 1rem; }
.contract-secondary > summary { font-weight: 650; cursor: pointer; }
.contract-secondary[open] > summary { margin-bottom: 1.2rem; }
.admin-billing-disclosure { grid-column: 1 / -1; width: 100%; min-width: 0; }
@media (max-width: 1020px) { .contract-columns { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) { .contract-customer-select, .contract-customer-select label { display: flex; flex-direction: column; align-items: stretch; gap: .65rem; } .contract-customer-select p { margin: 0; } .contract-paper { padding: .85rem; } }

/* Separate customer contacts and plant preparation without altering role chrome. */
.customer-plants-toolbar { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:1rem; padding:1rem 1.25rem; }
.customer-plants-toolbar > div { display:flex; align-items:center; flex-wrap:wrap; gap:.75rem; }
.customer-plants-toolbar h3 { margin:0; }
.customer-plant-directory > summary { cursor:pointer; padding:.75rem 1.25rem; overflow-wrap:anywhere; }
.customer-plant-row { text-decoration:none; color:inherit; }
.preparation-notice { padding:.85rem 1rem; margin:1rem 0; border-left:4px solid #b7791f; background:#fff8e8; color:#624200; overflow-wrap:anywhere; }
.customer-plants > .preparation-notice { margin:.25rem 1.25rem; }
.measurement-unavailable { min-width:0; }
.measurement-unavailable p { max-width:34rem; margin:.5rem 0; overflow-wrap:anywhere; }
@media(max-width:600px) { .customer-plants-toolbar { align-items:stretch; } .customer-plants-toolbar .customer-new-plant { width:100%; margin:0; } .customer-plants-toolbar > div { width:100%; } }

.round-step-dots { display:flex; align-items:center; flex-wrap:wrap; gap:.7rem; list-style:none; padding:.6rem 0; margin:0; }
.round-step-dots li:not(:has(> span)) { color:#614291; }
.round-step-dots li:has(> span) { display:grid; place-items:center; width:24px; height:24px; border:2px solid #614291; border-radius:50%; color:#614291; background:white; }
.round-step-dots li.done { background:#614291; color:white; }.round-step-dots li.current { outline:3px solid #d8cbe9; outline-offset:3px; background:#efe8f6; }
.round-note-panel textarea { display:block; width:100%; max-height:min(55dvh,calc(var(--round-viewport-height,100dvh) - 5rem)); min-height:7rem; font:inherit; padding:.8rem; border:1px solid #c8bcd9; border-radius:12px; resize:vertical; }
.round-note-panel h1 small { font-size:1rem; font-weight:normal; }.round-note-starters { display:flex; flex-wrap:wrap; gap:.5rem; margin:.8rem 0; }.round-note-starters .button { padding:.55rem .8rem; }
.round-note-text,.report-round-note { white-space:pre-wrap; overflow-wrap:anywhere; }.round-note-summary { padding:1rem 0; }
.report-display-switch { display:flex; gap:.7rem; align-items:center; }.report-display-switch input { accent-color:#614291; width:24px; height:24px; }
.report-matrix .report-round-note { min-width:12rem; max-width:28rem; }.report-matrix th small { display:block; }
.report-matrix-cell { white-space:normal; }.report-legend { display:flex; flex-wrap:wrap; gap:.8rem; }
@media print { .report-matrix-scroll { overflow:visible !important; } .report-matrix { width:100%; table-layout:fixed; font-size:9pt; } .report-matrix th,.report-matrix td { overflow-wrap:anywhere; min-width:0!important; max-width:none!important; } .report-matrix thead { display:table-header-group; } .report-matrix tr { break-inside:auto; } .report-matrix .report-round-note { white-space:pre-wrap; } }

@media print { .public-demo-banner { display:none!important; } .report-matrix td small,.report-matrix th small { font-size:9pt; } }
@media print { .skip-link,.round-note-starters,.report-display-switch { display:none!important; } }
@media print { .report-matrix thead tr:first-child th:last-child { width:32%; } .report-matrix tr { break-inside:avoid; } .report-matrix tr.report-long-note { break-inside:auto; } }

/* Public demos alone: additional controls below the unchanged role header. */
.public-demo-banner{position:relative;background:#f0eaf8;border-bottom:1px solid #d6c6e8;padding:12px 20px;display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;min-width:0;color:#332447}
.demo-banner-summary{display:flex;align-items:center;gap:12px;flex-wrap:wrap;min-width:0}.demo-tag{border:1px solid #b29acb;border-radius:7px;padding:5px 8px;font-size:12px;letter-spacing:.08em}.demo-clock{font-variant-numeric:tabular-nums;white-space:nowrap}.demo-current-role{font-size:13px}
.demo-desktop-controls{flex:1}.demo-perspective-form{display:flex;align-items:end;flex-wrap:wrap;gap:10px;margin:0}.demo-perspective-form label{font-size:12px;font-weight:600;display:grid;gap:3px;margin:0;min-width:0}.demo-perspective-form select{min-height:44px;max-width:280px;width:100%;font:inherit;font-size:14px;background:white;border:1px solid #b9a4cd;border-radius:8px;padding:8px;box-sizing:border-box}.demo-perspective-form button{min-height:44px;white-space:normal}.demo-display{display:flex;gap:0;margin:0;border:0;padding:0;min-width:0}.demo-display legend{font-size:12px;font-weight:600;margin-bottom:3px}.demo-display label{display:flex;align-items:center;justify-content:center;gap:5px;background:white;border:1px solid #b9a4cd;padding:10px;min-height:44px;box-sizing:border-box;font-size:14px;cursor:pointer}.demo-display label:first-of-type{border-radius:8px 0 0 8px}.demo-display label:last-of-type{border-radius:0 8px 8px 0}.demo-display label:has(input:checked){background:#60448c;color:white}.demo-display input{accent-color:#60448c;max-width:18px;margin:0}.demo-end button{min-height:44px}.demo-disclaimer,.demo-reminder,.demo-transition-feedback{flex-basis:100%;margin:0;font-size:12px;overflow-wrap:anywhere}.demo-transition-feedback:empty{display:none}.demo-open-panel{display:none}
.demo-switch-panel{max-width:min(460px,calc(100vw - 24px));width:calc(100vw - 24px);box-sizing:border-box;border:1px solid #d6c6e8;border-radius:18px;padding:20px;color:#332447}.demo-switch-panel::backdrop{background:#20143266}.demo-panel-heading{display:flex;justify-content:space-between;align-items:center;gap:8px}.demo-panel-heading h2{font-size:21px;margin:0}.demo-switch-panel .demo-perspective-form{display:grid;gap:16px}.demo-switch-panel select{max-width:none}.demo-switch-panel p{font-size:14px;overflow-wrap:anywhere}.demo-panel-hint{color:#6a5b77}.demo-preview-host{min-height:100dvh;background:#e9e5ed}.demo-preview-heading{display:flex;gap:15px;align-items:center;padding:12px 24px;background:white}.demo-preview-heading svg{width:36px;height:36px}.demo-preview-heading span{font-size:13px;color:#665d70}.demo-preview-stage{display:flex;justify-content:center;padding:20px 12px;min-width:0}.demo-preview-stage iframe{width:390px;max-width:100%;height:calc(100dvh - 260px);min-height:500px;border:1px solid #c7bed1;border-radius:14px;background:white;box-shadow:0 8px 28px #25183c20}
.public-demo-banner :focus-visible{outline:3px solid #7650a5;outline-offset:3px}
@media(max-width:760px){.public-demo-banner{padding:10px 12px;gap:4px 8px}.demo-banner-summary{display:grid;grid-template-columns:auto auto 1fr;gap:6px 10px;width:100%}.demo-current-role{grid-row:2;grid-column:1/-1;font-size:13px}.demo-open-panel{display:block;justify-self:end;min-height:44px;font-size:13px;padding:8px 10px}.demo-desktop-controls{display:none}.demo-end{margin:0}.demo-end button{font-size:12px;min-height:36px}.demo-disclaimer{font-size:11px}.demo-switch-panel .demo-display{display:none}.demo-preview-heading{padding:10px 12px;flex-wrap:wrap}.demo-preview-heading span{width:100%}.demo-preview-controls .demo-switch-panel .demo-display{display:flex}.demo-preview-stage{padding:12px 0}.demo-preview-stage iframe{height:calc(100dvh - 280px);border-radius:0}}

@media(min-width:761px){.demo-banner-summary .demo-current-role{display:none}.demo-perspective-form select{max-width:250px}.demo-perspective-form button{font-size:13px;padding:10px 12px}}
.demo-end button{border:0;background:transparent;font-weight:700;cursor:pointer;text-decoration:underline;min-height:44px}.demo-panel-end{display:none}
@media(max-width:760px){.public-demo-banner>.demo-end,.public-demo-banner>.demo-disclaimer{display:none}.demo-panel-end{display:block}}
@media print{.public-demo-banner,.demo-switch-panel{display:none!important}}
/* Keep the iframe's content viewport at 390 px; borders are outside it. */
.demo-preview-stage iframe{box-sizing:content-box;max-width:calc(100% - 2px)}

/* Fixed-size notes retain page scrolling and print their complete contents. */
.round-note-panel textarea{height:12rem;max-height:min(45dvh,18rem,max(6rem,calc(var(--round-viewport-height,100dvh) - 7rem)));min-height:6rem;overflow-y:auto;overflow-x:hidden;white-space:pre-wrap;overflow-wrap:anywhere;resize:vertical;box-sizing:border-box}
.round-note-text{max-height:14rem;overflow-y:auto;overflow-x:hidden;white-space:pre-wrap;overflow-wrap:anywhere}
.measurement-focus .measurement-navigation .measurement-submit{display:flex;align-items:center;justify-content:center;text-align:center}
.technician-plant-group-toggle{overflow-anchor:none}
@media print{.round-note-text,.round-note-panel textarea{height:auto!important;max-height:none!important;overflow:visible!important}}

/* Compact report controls and one bounded scroll viewport, released completely for print. */
.report-range-controls{align-items:end;gap:12px}.report-settings-button{min-height:44px}.report-settings{max-width:440px;display:grid;gap:8px;margin:12px 0}.display-toggle{display:flex;align-items:center;gap:12px;min-height:44px;border:0;background:transparent;text-align:left;font:inherit;color:var(--text);cursor:pointer}.display-track{display:block;width:42px;height:24px;padding:3px;border-radius:20px;background:#a6a0aa;flex:none}.display-track>span{display:block;width:18px;height:18px;background:white;border-radius:50%}.display-toggle[aria-checked=true] .display-track{background:var(--tenant-primary)}.display-toggle[aria-checked=true] .display-track>span{transform:translateX(18px)}.display-toggle:focus-visible,.report-viewport:focus-visible{outline:3px solid var(--tenant-primary);outline-offset:3px}.report-viewport{max-height:65dvh;overflow:auto;overscroll-behavior:contain;max-width:100%}.report-viewport .report-matrix-scroll{overflow:visible;max-width:none}.report-viewport .report-matrix thead{position:sticky;top:0;z-index:3}.report-reading-details{display:block;min-height:32px;padding:6px 0;text-decoration:underline}.focused-reading{outline:3px solid var(--tenant-primary);outline-offset:2px}.history-report-back{margin-bottom:18px}.round-note-step{font-size:14px;min-height:44px;width:100%;padding:10px 8px;border:0;border-top:1px solid var(--line);background:transparent;text-align:left;color:var(--text);display:flex;align-items:center;gap:12px}.round-points-summary{margin-top:20px;display:block;width:100%;min-height:48px}.round-points-dialog .draft-discard{margin-top:24px;border-top:1px solid var(--line);padding-top:16px}.compact-plant-card .status-badge{width:140px;min-width:140px;min-height:48px;max-width:140px;justify-content:center;text-align:center;white-space:normal;line-height:1.4;padding:8px;flex:none}.customer-record-section>summary,.customer-plant-directory>summary{list-style:none;position:relative;display:grid;grid-template-columns:minmax(0,1fr) 24px;align-items:center;padding-right:16px;gap:5px 12px;min-height:52px}.customer-record-section>summary::-webkit-details-marker,.customer-plant-directory>summary::-webkit-details-marker{display:none}.customer-record-section>summary>small{grid-column:1;overflow-wrap:anywhere}.customer-record-section>summary::after,.customer-plant-directory>summary::after{content:'▸';grid-column:2;grid-row:1/3;text-align:center;font-size:20px}.customer-record-section[open]>summary::after,.customer-plant-directory[open]>summary::after{content:'▾'}.customer-record-section>summary>span{overflow-wrap:anywhere}.report-round-note{white-space:pre-wrap}
@media print{.report-viewport,.report-viewport .report-matrix-scroll,.printable-report{overflow:visible!important;height:auto!important;max-height:none!important;max-width:none!important}.report-matrix thead{position:static!important;display:table-header-group}.report-matrix thead th,.report-matrix tbody th{position:static!important}.report-zone-section{overflow:visible!important}.report-range-controls,.report-settings{display:none!important}}

.product-customer-context{margin-bottom:20px}.product-customer-context>label{display:grid;gap:7px;max-width:520px;font-weight:700}.product-customer-context select{width:100%;min-height:44px;font-size:16px}.product-customer-context .product-ribbon{margin-top:12px}.product-customer-context>small{display:block;color:var(--muted);font-size:11px}

.provider-logo-preview{width:200px;max-height:160px;object-fit:contain;background:#fff;border:1px solid var(--line);padding:8px}.label-options{display:flex;flex-wrap:wrap;gap:16px;align-items:center;margin-bottom:20px}.label-options label{display:flex;gap:8px;align-items:center;min-height:44px}.label-options input{width:22px;height:22px}.label-options select{min-height:44px;font-size:16px}.label-preview-scroll{overflow:auto;max-width:100%;padding:10px}.plant-label{box-sizing:border-box;position:relative;display:grid;grid-template-columns:45mm minmax(0,1fr);gap:8mm;width:180mm;min-height:90mm;padding:7mm;color:#000;background:white;border:1px solid #777;font-family:Arial,sans-serif}.plant-label.large{width:210mm;min-height:110mm}.label-code{padding-top:5mm}.label-code img{width:45mm;height:45mm;display:block;image-rendering:pixelated}.label-code p{text-align:center;font-size:8pt}.label-text h2{font-size:20pt;line-height:1.15;margin:3mm 0 2mm;overflow-wrap:anywhere}.label-text p{font-size:10pt;line-height:1.4;margin:0;overflow-wrap:anywhere}.label-text>small,.label-section>small{font-size:8pt;letter-spacing:1px;display:block;margin-bottom:2mm}.label-section{border-top:1px solid #888;margin-top:3mm;padding-top:3mm}.label-section strong{font-size:11pt}.label-text a{color:#000}.label-brand{position:absolute;right:7mm;bottom:4mm;font-size:11pt}.label-text{padding-bottom:9mm}
@media print{body:has(.plant-label) .app-main>*:not(.label-preview-scroll){display:none!important}.label-preview-scroll{overflow:visible!important;padding:0}.plant-label{border:0;break-inside:avoid;break-after:page;max-height:none!important}.label-options{display:none!important}}
.product-ribbon a.product-ribbon-current{color:var(--tenant-primary-contrast)!important}

.report-reading-details{min-height:44px}.report-round-note{overflow-wrap:anywhere}
.round-points-dialog .draft-discard>.text-link{min-height:44px;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:var(--paper);font:inherit;color:var(--text);cursor:pointer}

/* Shared plant context and company editing; existing report matrix/print styles are unchanged. */
.plant-context{display:grid;grid-template-columns:1fr;gap:16px;margin:0 0 18px}.plant-context label,.company-picker{display:grid;gap:7px;font-weight:700;min-width:0}.plant-context select,.company-picker select{width:100%;min-height:44px;font-size:16px;max-width:100%}.plant-context-back{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 18px;overflow-wrap:anywhere}.plant-title-link{color:var(--text);text-decoration:none}.plant-list-card{display:grid;grid-template-columns:minmax(0,1fr) 260px;align-items:stretch}.plant-list-actions{display:grid;grid-template-columns:1fr;align-content:center;gap:10px;width:100%;min-width:0}.plant-list-actions .button{min-height:44px;text-align:center;white-space:normal}.plant-secondary-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.compact-plant-actions{display:flex;gap:20px;flex-wrap:wrap;padding:0 17px 12px}.compact-plant-actions>a{min-height:44px;display:inline-flex;align-items:center}.plant-overview-actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px;margin:18px 0 24px}.plant-overview-actions>a{display:flex;align-items:center;justify-content:flex-start;gap:10px;min-height:54px;white-space:normal}.plant-care{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;overflow-wrap:anywhere}.plant-care>h2,.plant-care>.demo-notice{grid-column:1/-1}.plant-care h3{margin-top:0}.plant-care a{display:inline-block;min-height:44px;padding:8px 0}.company-hub{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.company-hub>a{display:block;color:var(--text);text-decoration:none;min-height:180px}.company-hub>a>span{font-size:30px;color:var(--tenant-primary)}.company-picker{max-width:640px;margin-bottom:22px}.master-data-group{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;padding:18px 0;border-bottom:1px solid var(--line)}.master-data-group>div{min-width:0;overflow-wrap:anywhere}.master-data-dialog{width:min(640px,calc(100vw - 24px));max-height:90dvh;overflow:auto;box-sizing:border-box;border:1px solid var(--line);border-radius:18px;padding:24px;color:var(--text);background:var(--paper)}.master-data-dialog::backdrop{background:#25213966}.master-data-dialog input:not([type=checkbox]),.master-data-dialog textarea{box-sizing:border-box;max-width:100%;font-size:16px}.master-data-dialog .checkbox-row{display:flex;gap:12px;align-items:flex-start;min-height:44px}.company-profile-section details{margin-top:18px}.company-profile-section details>summary{min-height:44px;cursor:pointer}.master-data-dialog button{min-height:44px}
@media(max-width:700px){.plant-context,.plant-care,.company-hub{grid-template-columns:1fr}.plant-list-card{grid-template-columns:1fr}.plant-secondary-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.plant-overview-actions{grid-template-columns:1fr}.master-data-group{flex-wrap:wrap}.master-data-dialog{padding:18px}.plant-context-back .button{width:100%}}
@media print{.plant-context,.plant-context-back,.plant-overview-actions,.company-hub{display:none!important}}

.tech-summary .visit-work-badge{display:inline-flex;width:36px;height:36px;min-width:36px;border-radius:50%;align-items:center;justify-content:center;background:var(--tenant-primary,#60448c);color:#fff;font-size:16px}.plant-zone-only{display:flex;gap:12px;flex-wrap:wrap}.plant-zone-only button{min-height:44px}.scoped-product-assignment{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}@media(max-width:760px){.scoped-product-assignment{grid-template-columns:minmax(0,1fr)}}

/* 18.10.2026: concrete plant status and matching responsibility actions. */
.plant-care>div:not(.plant-care-actions){display:flex;flex-direction:column;min-width:0}.plant-care .plant-care-actions{order:2;margin-top:auto;padding-top:1rem}.plant-care-actions .button{display:inline-flex;align-items:center;justify-content:center;min-height:48px;width:100%;max-width:100%;height:auto;padding:12px 18px;font-family:inherit;font-weight:600;font-size:15px;line-height:1.35;white-space:normal;overflow-wrap:anywhere;text-align:center}.plant-inactive{opacity:.84;border-left:4px solid #777}.plant-activation .rating-switch{min-height:48px;display:flex;gap:1rem;align-items:center}.plant-activation [aria-checked="true"] .switch-track{background:#60448c}.plant-activation [aria-checked="true"] .switch-knob{transform:translateX(20px)}
@media(max-width:760px){.plant-care-actions .button{width:100%;font-size:15px}.plant-activation .rating-switch{flex-wrap:wrap}}

/* The owner directory targets desktop. Operational customer pages keep their mobile layout. */
.owner-directory-filters{display:grid;grid-template-columns:2fr 1fr;gap:20px;align-items:end}.owner-company-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:20px}.owner-company-card{display:flex;flex-direction:column;gap:14px;min-height:210px;background:#fff;border:1px solid #ddd5e6;border-radius:18px;padding:24px;color:inherit;text-decoration:none}.owner-company-card:hover,.owner-company-card:focus{border-color:#60448c;box-shadow:0 4px 15px #60448c22}.owner-company-card h2{font-size:23px;margin:0}.owner-company-card>span:last-child{margin-top:auto;color:#60448c}.managed-account{padding:20px 0;border-bottom:1px solid #ddd}.managed-account .button-row{flex-wrap:wrap}.owner-audit-entry{overflow-wrap:anywhere;font-size:13px}.account-administration .master-data-dialog{max-width:760px}.account-administration dialog label{display:grid;gap:8px;margin:12px 0}

.owner-directory-intro,.owner-directory{min-width:0;max-width:100%}.owner-directory-toolbar{display:flex;flex-wrap:wrap;gap:12px}.owner-directory-toolbar .button{white-space:normal;text-align:center}.owner-directory-filters{display:grid;grid-template-columns:minmax(240px,2fr) minmax(240px,1fr);gap:20px;align-items:end;margin:24px 0 12px}.owner-directory-filters label{display:grid;gap:8px;font-weight:650;font-size:14px;min-width:0}.owner-directory-filters input,.owner-directory-filters select{width:100%;max-width:100%;min-width:0;min-height:48px;padding:10px 12px;border:1px solid #ada0ba;border-radius:9px;background:white;font:inherit;box-sizing:border-box}.owner-company-grid{grid-template-columns:repeat(auto-fit,minmax(min(300px,100%),1fr))}.owner-company-card{min-width:0}.secure-account-form{max-width:680px;padding:24px;background:var(--paper);border:1px solid var(--line);border-radius:12px;display:grid;gap:16px}.secure-account-form label{display:grid;gap:8px}.secure-account-form input:not([type=checkbox]){min-height:48px;width:100%;padding:10px 12px;border:1px solid #ada0ba;border-radius:8px;font:inherit;box-sizing:border-box}.secure-account-form .button-row{flex-wrap:wrap}

.plant-analysis-tile{display:flex;flex-direction:column;gap:.35rem;padding:1rem 1.2rem;min-height:70px;background:#eef5f5;border:1px solid #c6ddda;border-radius:12px;color:#164c4a;text-decoration:none}.plant-analysis-tile small{font-size:.85rem}.chart-selection{display:flex;gap:.65rem;align-items:center;min-height:44px;overflow-wrap:anywhere}

/* Print preview shares the measured, complete-text layout with PlantLabelPdf. */
.plant-label{display:block;height:90mm;min-height:0;padding:0;overflow:hidden}.plant-label.large{height:110mm;min-height:0}.label-qr-image{position:absolute;left:7mm;width:45mm;height:45mm;image-rendering:pixelated}.label-header-logo{position:absolute;object-fit:contain}.label-header-rule{position:absolute;left:7mm;right:7mm;border-top:.15mm solid #888}.label-positioned-text{position:absolute;line-height:1.15;white-space:pre;overflow:visible;color:#000}

.plant-primary-measure{margin:0 0 1rem}.plant-primary-measure .button{min-height:48px}@media(max-width:640px){.plant-primary-measure .button{width:100%;justify-content:center}}

.action-fields{border:0;padding:0;margin:0;min-width:0}.action-inline--success{border-left-color:#397247;background:#eef7f0;color:#21452c}.action-inline--error{border-left-color:#b02d38;background:#fff0f1;color:#7b1b24}.action-inline--busy{border-left-color:#765493;background:#f4f0f8}.action-toast--success{border-left:5px solid #397247}.action-toast--error{border-left:5px solid #b02d38}input[aria-invalid=true],select[aria-invalid=true]{border-color:#b02d38;outline-color:#b02d38}.quota-summary{display:grid;grid-template-columns:minmax(130px,1fr) 2fr;gap:8px 20px}.quota-summary dd{margin:0}.quota-progress{font-weight:650;color:#65438d}.quota-offer-actions{display:flex;gap:12px;flex-wrap:wrap}

/* Messrunden: independent desktop scrolling without expanding the sidebar's containing block. */
@media screen and (min-width:821px){
  .app-sidebar{position:fixed;inset:0 auto 0 0;width:260px;height:100dvh;z-index:20;min-height:0}
  .app-workspace{margin-left:260px;min-height:100dvh}
  .sidebar-menu-scroll{min-height:0;overflow-y:auto;overscroll-behavior:contain}
  .app-main:has(.measurement-protocol){flex:0 0 auto;padding-bottom:32px}
  .report-viewport{max-height:70dvh;overflow:auto}
}
.round-resume article{border-bottom:1px solid var(--line);padding:16px 0;margin-bottom:16px}
.round-resume h2{font-size:19px;line-height:1.4}.round-resume small{display:block;margin-bottom:12px}
.round-pause{margin:18px 0}.round-pause .button{min-height:48px;width:100%}
.incomplete-confirm{border:1px solid var(--line);border-radius:10px;padding:16px;margin-top:16px}
.supplement-form{display:grid;gap:16px;border-top:1px solid var(--line);padding:20px 0}
.supplement-form label{display:grid;gap:8px}.supplement-form input:not([type=checkbox]),.supplement-form select,.supplement-form textarea{min-height:48px;font-size:16px;width:100%;max-width:100%;padding:10px;border:1px solid var(--line);border-radius:8px}
.supplement-form .round-check{display:flex;gap:12px;align-items:start}.round-evidence{overflow-wrap:anywhere;margin-top:18px}.round-evidence dd{margin:0 0 14px}.round-evidence dt{font-weight:700}
@media(max-width:820px){.round-resume,.round-evidence{padding:18px}.round-resume .button,.supplement-form .button{width:100%;min-height:48px}.round-evidence h1{font-size:26px}}

.report-round-evidence td{background:#f7f5f8;font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere}.report-round-evidence p{margin:6px 0 0}

/* Desktop menu: constrain grid/flex items themselves so long labels wrap without horizontal scrolling. */
@media screen and (min-width:821px){
.app-sidebar .grouped-navigation,.app-sidebar .navigation-section,.app-sidebar .navigation-submenu{min-width:0;grid-template-columns:minmax(0,1fr)}
.app-sidebar .navigation-home,.app-sidebar .navigation-category,.app-sidebar .navigation-submenu a{min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere}
.app-sidebar .navigation-home>span:not(.navigation-icon):not(.navigation-count),.app-sidebar .navigation-category>span:not(.navigation-icon):not(.navigation-chevron):not(.navigation-count),.app-sidebar .navigation-submenu a>span:not(.navigation-count){min-width:0;white-space:normal;overflow-wrap:anywhere}
.app-sidebar .sidebar-bottom{min-width:0;overflow-wrap:anywhere}.app-sidebar .sidebar-menu-scroll{scrollbar-color:#b6a9c5 transparent;scrollbar-gutter:stable}
}

.plant-product-shortcut{margin-bottom:16px}.metric-row .metric-edit-row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:1;min-width:0;border:0;background:transparent;text-align:left;color:inherit;min-height:52px;padding:8px}.metric-edit-row>span:first-child{display:grid;gap:5px}.metric-edit-row small{font-size:.8rem;color:var(--muted)}.metric-edit-row>span{overflow-wrap:anywhere}.focused-metric-dialog{width:min(720px,calc(100vw - 36px));max-height:calc(100dvh - 40px);overflow:auto;padding:28px;border:1px solid #ded6e8;border-radius:16px;color:#302d3a;background:#fffefa}.focused-metric-dialog::backdrop{background:#251b3966}.focused-metric-dialog .form-stack>label,.focused-metric-dialog .rating-fields label{display:flex;flex-direction:column;gap:8px}.focused-metric-dialog input,.focused-metric-dialog select{max-width:100%;width:100%;min-height:46px}.focused-metric-dialog input[type=checkbox]{width:20px;min-height:20px}.metric-factor-note{padding:12px;background:#f2edf7;border-radius:8px}.focused-metric-dialog .button-row{position:sticky;bottom:-28px;background:#fffefa;padding:16px 0;margin-bottom:0}.welcome-name{font-size:14px;font-weight:600;color:var(--text);overflow-wrap:anywhere}.welcome-role{padding:4px 8px;border-radius:20px;background:var(--tenant-primary-soft);color:var(--tenant-primary-deep);font-size:11px}.open-offer .offer-section{border-top:1px solid var(--line);padding-top:18px;margin-top:16px}.open-offer .billing-total{font-size:1.2rem;color:var(--tenant-primary-deep)}.offer-tier-table>div{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;padding:12px 8px;border-bottom:1px solid #e9e4ed;align-items:center}.offer-tier-table>div:nth-child(even){background:#faf8fc}.offer-tier-table>div>*:last-child{text-align:right;font-variant-numeric:tabular-nums}.offer-tier-header{font-size:.85rem;font-weight:650}.offer-tier-table{min-width:0;overflow-wrap:anywhere}input[aria-invalid=true]{border:2px solid #a82d3d}.plant-editor #plant-save-error{scroll-margin-block:100px}
@media(max-width:820px){.topbar-context{flex-basis:auto;flex:1;min-width:0}.welcome-name{font-size:12px}.welcome-role{font-size:10px;padding:3px 6px}.focused-metric-dialog{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;border-radius:0;padding:20px}.focused-metric-dialog .button-row{bottom:-20px}.offer-tier-table>div{gap:10px;padding:12px 5px;font-size:.9rem}.focused-metric-dialog .rating-fields{grid-template-columns:1fr}}
@media(max-width:820px){.app-shell:not(.account-shell) .app-topbar .topbar-context{display:flex;order:5;flex:1 1 100%;margin-top:0;gap:4px 7px}.app-topbar .welcome-name{max-width:100%;line-height:1.4}.app-topbar .welcome-role{flex-shrink:0}}

/* Legal drafts: long hashes/text must wrap within the actual mobile column. */
.central-legal-setup,.legal-template-editor{min-width:0;max-width:100%;overflow-wrap:anywhere}
.central-legal-setup :is(article,details,p,pre),.legal-template-editor :is(details,section,label,.legal-comparison,pre){min-width:0;max-width:100%}
.legal-template-editor :is(button,textarea){max-width:100%;min-width:0}
.legal-template-editor button{white-space:normal}
.legal-template-editor .legal-comparison{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:700px){.legal-template-editor .legal-comparison{grid-template-columns:minmax(0,1fr)}}
