: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 225px;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; }
