.customer-scope{display:flex;gap:12px;flex-wrap:wrap}.customer-scope label{display:grid;gap:4px;font-size:.85rem}.customer-scope select{max-width:250px}.customer-detail-heading{display:flex;justify-content:space-between;gap:16px;align-items:start;margin:22px 0}.customer-detail-heading h3{margin:4px 0;font-size:1.5rem}.customer-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.customer-panel{border:1px solid var(--border-color,#dce4e9);border-radius:12px;padding:20px;margin:16px 0;background:var(--surface,#fff)}.customer-panel h4{margin:0 0 12px;font-size:1.05rem}.customer-panel p{line-height:1.55}.customer-muted{color:var(--text-muted,#64748b);font-size:.875rem}.customer-warning{background:#fff7e5;border:1px solid #edce83;padding:12px;border-radius:8px;color:#705316}.customer-field{display:grid;grid-template-columns:130px minmax(0,1fr) auto;gap:10px;align-items:center;padding:10px 0;border-top:1px solid #eef1f5}.customer-field small{display:block;color:#64748b}.customer-value{overflow-wrap:anywhere;white-space:pre-wrap}.customer-dialog{width:min(1040px,95vw)}.customer-form{display:grid;gap:16px}.customer-form label{display:grid;gap:6px}.customer-form input,.customer-form select,.customer-form textarea,.customer-scope select,#customers-module input,#customers-module select{font:inherit;border:1px solid #cbd5e1;border-radius:7px;padding:9px;max-width:100%;box-sizing:border-box}.customer-form textarea{min-height:90px}.customer-form .ann-check{display:flex;align-items:start}.customer-rule{padding:14px;border:1px solid #dce4e9;border-radius:10px;margin:10px 0}.customer-rule .ann-grid{margin:12px 0}.customer-history-value{white-space:pre-wrap;overflow-wrap:anywhere;max-width:32rem}.customer-status-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px;margin:20px 0}.customer-status-grid article{padding:18px;border-radius:12px;background:#f4f7fa}.customer-status-grid strong{display:block;font-size:1.3rem;margin-top:8px}.customer-contact-title{display:flex;align-items:start;justify-content:space-between;gap:12px}.customer-detail-nav{display:flex;gap:8px;flex-wrap:wrap;border-bottom:1px solid #e2e8f0;padding-bottom:12px}.customer-detail-nav button[aria-current=page]{background:#e9f1f8;color:#143d65}.customer-overflow{overflow:auto}.customer-fee-results{max-height:390px;overflow:auto}.customer-unknown{color:#8a641a}.customer-link{color:#174f7b;text-decoration:underline;background:none;border:0;cursor:pointer;font:inherit;text-align:left}.customer-choice{display:grid;grid-template-columns:1fr auto;gap:12px;padding:10px;border-bottom:1px solid #eef1f5}#customer-dialog-message{margin:12px 24px}.customer-contact{scroll-margin-top:90px}.customer-panel table{font-size:.9rem}@media(max-width:800px){.customer-detail-grid{grid-template-columns:1fr}.customer-field{grid-template-columns:1fr auto}.customer-field>strong{grid-column:1/-1}.customer-detail-heading{flex-direction:column}.customer-scope{width:100%}.customer-scope label{flex:1}.customer-panel{padding:14px}.customer-dialog{max-height:92vh}.customer-detail-nav{gap:4px}}

#customers-module .ann-check{display:flex;align-items:center;justify-content:flex-start;gap:10px;border:1px solid #dce4e9;border-radius:8px;padding:12px;background:#f8fafc}
#customers-module input[type=checkbox],.customer-form input[type=checkbox]{width:18px;height:18px;min-height:18px;max-width:18px;flex:0 0 18px;margin:0;padding:0;accent-color:#e71926}
@media(max-width:650px){.customer-list .ann-table-wrap{overflow:visible}.customer-list table,.customer-list tbody,.customer-list tr,.customer-list td{display:block;width:100%;min-width:0}.customer-list thead{display:none}.customer-list tr{border-bottom:1px solid #dce4e9;padding:12px}.customer-list td{border:0;padding:6px 0}.customer-list td:last-child .button{width:100%}.customer-list td:nth-child(3):before{content:'Benachrichtigungen: ';font-weight:600}.customer-list .ann-table{min-width:0}}

/* Contact roles follow the Futura screen; communication fields retain their original IDs. */
.customer-contacts-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:start;margin-top:20px}
.customer-contact-card{min-width:0;padding:20px;border:1px solid #dce4e9;border-radius:14px;background:#fff}
.customer-contact-card>header{display:flex;align-items:start;justify-content:space-between;gap:12px;padding-bottom:16px;border-bottom:1px solid #e2e8f0}
.customer-contact-card h4{font-size:1.08rem;line-height:1.4;margin:6px 0 0;overflow-wrap:anywhere}
.customer-contact-card>header .button{font-size:.75rem;padding:7px 10px;white-space:nowrap;flex-shrink:0}
.customer-contact-info-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:18px;margin:12px 0 16px}
.customer-contact-info{min-width:0;padding:7px 0}
.customer-contact-info dt,.customer-contact-label{font-size:.76rem;color:#64748b;line-height:1.35;font-weight:600}
.customer-contact-info dd{font-size:.9rem;line-height:1.4;color:#23313d;margin:3px 0 0;min-height:1.3em;overflow-wrap:anywhere}
.customer-contact-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px;border-top:1px solid #dce4e9}
.customer-contact-field{min-width:0;padding:10px 0;border-bottom:1px solid #e7edf2}
.customer-contact-label{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px;margin-bottom:5px;color:#334155}
.customer-contact-card .customer-contact-entry{display:flex;align-items:center;gap:7px;min-height:30px;padding:0;border:0}
.customer-contact-value{min-width:0;flex:1;overflow-wrap:anywhere;font-size:.92rem;line-height:1.4;font-weight:500;white-space:pre-wrap}
.customer-contact-value.is-empty{color:#94a3b8;font-weight:400}
.customer-contact-actions{display:flex;gap:3px;flex:0 0 auto}
.customer-contact-action{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;padding:0;border:1px solid #d6e0e8;border-radius:6px;background:#fff;color:#4e6477;font:inherit;font-size:1rem;cursor:pointer}
.customer-contact-action:hover{background:#edf3f8;border-color:#9eb4c5;color:#163d58}
.customer-contact-action:focus-visible{outline:2px solid #e71926;outline-offset:2px}
.customer-contact-action:disabled{opacity:.4;cursor:not-allowed}
.customer-contact-readonly{display:block;color:#8291a2;font-size:.69rem;line-height:1.3}
.customer-contact-status{display:block;font-size:.73rem;color:#946114;margin-top:4px}
.customer-contact-status[data-status=conflict],.customer-contact-status[data-status=failed]{color:#b42318}
.customer-contact-ambiguity{font-size:.68rem;color:#946114}
.customer-contact-more{margin-top:13px;font-size:.8rem;color:#566a7e}
.customer-contact-more>summary{cursor:pointer;line-height:1.4;padding:3px 0}
.customer-contact-more[open]>.customer-contact-fields{margin-top:10px}
.customer-contact-more p{margin:7px 0;font-size:.8rem;line-height:1.45}
.customer-contact-card>footer{padding-top:13px}
.customer-contact-synced{font-size:.75rem;color:#48705d}
.customer-contact-card .customer-warning{font-size:.86rem;line-height:1.5}
@media(max-width:1100px){.customer-contacts-grid{grid-template-columns:1fr}}
@media(max-width:600px){.customer-contact-card{padding:15px}.customer-contact-card>header{flex-wrap:wrap}.customer-contact-fields{grid-template-columns:1fr}.customer-contact-actions{gap:6px}.customer-contact-action{width:34px;height:34px}.customer-contact-info-grid{column-gap:12px}}

/* Customer overview: property identity, people, channel decisions and fee-derived work. */
.customer-property-heading{padding:24px 0 22px;margin:4px 0 0;align-items:center}
.customer-property-identity{display:flex;align-items:center;gap:17px;min-width:0}
.customer-property-icon{display:grid;place-items:center;flex:0 0 58px;height:58px;border-radius:16px;background:var(--brand-soft,#fff0f1);color:var(--brand,#e6212a)}
.customer-property-icon svg{width:28px;height:28px}
.customer-property-heading h3{font-size:1.65rem;line-height:1.25;letter-spacing:-.035em;margin:5px 0;overflow-wrap:anywhere}
.customer-property-heading p{margin:0;color:#647180;font-size:.93rem;overflow-wrap:anywhere}
.customer-property-meta{display:flex;align-items:flex-end;flex-direction:column;gap:7px;flex-shrink:0}
.customer-overview{padding-top:22px}
.customer-overview-columns{display:grid;grid-template-columns:minmax(0,1.18fr) minmax(0,1fr);gap:20px;align-items:start}
.customer-overview-column{display:grid;gap:20px;min-width:0}
.customer-overview-card{min-width:0;border:1px solid var(--border,#dce2e7);border-radius:15px;background:#fff;overflow:hidden}
.customer-overview-card-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;padding:19px 22px 15px}
.customer-overview-card h4{display:flex;gap:9px;align-items:center;margin:0;font-size:.95rem;line-height:1.4;letter-spacing:-.015em}
.customer-overview-card h4 svg{width:19px;height:19px;flex:0 0 auto;color:#718293}
.customer-overview-link{padding:4px 0;border:0;background:none;color:#536a7c;font:inherit;font-size:.76rem;font-weight:650;cursor:pointer;text-align:left;line-height:1.5}
.customer-overview-link:hover{color:var(--brand,#e6212a);text-decoration:underline}
.customer-overview-link:focus-visible{outline:2px solid var(--brand,#e6212a);outline-offset:4px;border-radius:2px}
.customer-overview-link span{margin-left:3px}
.customer-overview-label{font-size:.75rem;line-height:1.45;color:#647180}
.customer-overview-pill{display:inline-flex;align-items:center;gap:6px;max-width:100%;padding:4px 9px;border-radius:6px;font-size:.69rem;font-weight:650;line-height:1.4;color:#647180;background:#f0f3f6}
.customer-overview-pill.is-success{background:#edf6f0;color:#32644a}
.customer-overview-pill.is-warning{background:#fff5df;color:#805400}
.customer-property-meta .customer-overview-pill{font-size:.74rem}
.customer-overview-people{padding:0 22px 5px}
.customer-overview-person{display:flex;align-items:start;gap:13px;padding:17px 0 19px;min-width:0}
.customer-overview-person+article{border-top:1px solid #edf0f3}
.customer-overview-avatar{width:39px;height:39px;flex:0 0 39px;display:grid;place-items:center;border-radius:11px;color:#587388;background:#edf3f7;margin-top:3px}
.customer-overview-avatar.is-empty{background:#f3f4f6;color:#8b96a2}
.customer-overview-avatar svg{width:19px;height:19px}
.customer-overview-person>div{min-width:0}
.customer-overview-person h5{margin:2px 0 4px;font-size:1rem;line-height:1.4;letter-spacing:-.01em;overflow-wrap:anywhere}
.customer-overview-person p{font-size:.81rem;line-height:1.5;color:#647180;margin:3px 0;overflow-wrap:anywhere}
.customer-overview-contact-lines{display:grid;gap:2px;font-size:.82rem;line-height:1.55;color:#465563;overflow-wrap:anywhere}
.customer-overview-person small{display:block;margin-top:7px;color:#647180;font-size:.72rem}
.customer-overview-preference{display:grid;gap:3px;background:#f6f8fa;border:1px solid #edf0f3;border-radius:9px;margin:1px 22px 5px;padding:13px 15px}
.customer-overview-preference>strong{font-size:1rem;letter-spacing:-.015em;font-weight:650;line-height:1.5}
.customer-overview-channel{margin:0 22px;padding:17px 0}
.customer-overview-channel+.customer-overview-channel{border-top:1px solid #edf0f3}
.customer-overview-channel-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}
.customer-overview-channel-heading>span{display:flex;align-items:center;gap:8px;font-size:.84rem}
.customer-overview-channel-heading svg{width:17px;height:17px;color:#647180}
.customer-overview-target{font-size:.87rem;margin:9px 0 3px;overflow-wrap:anywhere;line-height:1.5}
.customer-overview-channel-reason{font-size:.75rem;line-height:1.5;color:#647180;margin:4px 0 0;overflow-wrap:anywhere}
.customer-overview-metrics{display:flex;gap:25px;padding:3px 22px 18px}
.customer-overview-metrics>div{display:flex;flex-direction:column;gap:1px;min-width:0}
.customer-overview-metrics>div+div{border-left:1px solid #e7edf2;padding-left:25px}
.customer-overview-metrics strong{font-size:1.65rem;font-weight:650;line-height:1.3;letter-spacing:-.045em}
.customer-overview-metrics span{font-size:.74rem;color:#647180}
.customer-overview-activities{list-style:none;margin:0;padding:0 22px}
.customer-overview-activities li{display:grid;gap:2px;padding:12px 0;border-top:1px solid #edf0f3;overflow-wrap:anywhere}
.customer-overview-activities strong{font-size:.85rem;font-weight:650}
.customer-overview-activities span{font-size:.74rem;color:#647180;line-height:1.5}
.customer-overview-activities+button{margin:0 22px 15px}
.customer-overview-empty{margin:0 22px 20px;padding:14px 15px;background:#f6f8fa;border-radius:8px;color:#647180;font-size:.83rem;line-height:1.6}
.customer-overview-hint{display:block;color:#805400;font-size:.76rem;line-height:1.5}
.customer-overview-card>p.customer-overview-hint{margin:10px 22px 14px}
.customer-overview-footnote{font-size:.73rem;color:#647180;margin:7px 22px 17px;line-height:1.5}
.customer-overview-facts{padding:19px 22px;background:#fafbfc}
.customer-overview-facts dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px 20px;margin:17px 0 13px}
.customer-overview-facts dt{font-size:.72rem;color:#647180}
.customer-overview-facts dd{font-size:.85rem;font-weight:600;margin:3px 0 0;overflow-wrap:anywhere}
.customer-overview-facts>p{font-size:.72rem;color:#647180;margin:0}
.customer-overview-note{margin-top:20px}
.customer-overview-note>p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:.86rem;line-height:1.65;margin:0 22px 20px;max-height:180px;overflow:auto}
.customer-overview-sync{display:flex;align-items:center;gap:12px;margin-top:20px;padding:16px 4px 2px;color:#647180}
.customer-overview-sync-icon{display:grid;place-items:center;width:32px;height:32px;flex:0 0 32px;background:#edf3f0;color:#48705d;border-radius:50%}
.customer-overview-sync-icon svg{width:16px;height:16px}
.customer-overview-sync.has-issues .customer-overview-sync-icon{color:#805400;background:#fff5df}
.customer-overview-sync>div{min-width:0;flex:1;display:grid;gap:2px}
.customer-overview-sync strong{font-size:.78rem;font-weight:600;overflow-wrap:anywhere}
.customer-overview-sync>div>span{font-size:.71rem;overflow-wrap:anywhere}
.customer-overview-alert{display:grid;gap:4px;padding:15px 18px;margin-bottom:20px;border:1px solid #ead39a;border-radius:10px;color:#805400;background:#fff8e8;font-size:.84rem;line-height:1.6}
@media(max-width:1000px){.customer-overview-columns{grid-template-columns:1fr}.customer-property-heading{align-items:flex-start}.customer-property-meta{align-items:flex-start;flex-direction:row;flex-wrap:wrap}.customer-property-meta .customer-muted{align-self:center}}
@media(max-width:600px){.customer-property-heading{padding:20px 0;gap:13px}.customer-property-identity{gap:12px}.customer-property-icon{width:44px;height:44px;flex-basis:44px;border-radius:12px}.customer-property-icon svg{width:22px;height:22px}.customer-property-heading h3{font-size:1.3rem}.customer-property-heading .ann-eyebrow{font-size:.65rem}.customer-property-heading p{font-size:.83rem}.customer-overview{padding-top:16px}.customer-overview-columns,.customer-overview-column{gap:16px}.customer-overview-card-heading{padding:17px 16px 12px}.customer-overview-card h4{font-size:.87rem}.customer-overview-link{font-size:.74rem;min-height:32px;display:inline-flex;align-items:center}.customer-overview-people{padding:0 16px 3px}.customer-overview-person{gap:10px}.customer-overview-person h5{font-size:.93rem}.customer-overview-preference{margin:2px 16px 3px}.customer-overview-channel{margin:0 16px}.customer-overview-metrics{padding:4px 16px 16px;gap:20px}.customer-overview-metrics>div+div{padding-left:20px}.customer-overview-activities{padding:0 16px}.customer-overview-empty,.customer-overview-footnote{margin-left:16px;margin-right:16px}.customer-overview-facts{padding:17px 16px}.customer-overview-sync{flex-wrap:wrap}.customer-overview-sync>button{margin-left:44px}.customer-overview-note>p{margin-left:16px;margin-right:16px}.customer-overview-card>p.customer-overview-hint{margin-left:16px;margin-right:16px}}

/* Keep progress visible while customer reads are in flight. */
.customer-loading{position:sticky;top:16px;z-index:3;display:flex;align-items:center;gap:12px;padding:14px 16px;margin:0 0 20px;border:1px solid var(--border,#dce2e7);border-radius:10px;background:var(--surface,#fff);box-shadow:0 4px 16px rgb(23 33 43 / 8%);color:var(--text,#25313d);font-size:.88rem;font-weight:600}
.customer-loading .spinner{flex:0 0 22px}
.customer-search-submit{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-width:136px;white-space:nowrap}
.customer-search-submit .spinner{display:none;width:16px;height:16px;flex:0 0 16px;border-width:2px;border-color:rgb(255 255 255 / 35%);border-top-color:#fff}
.customer-search-submit.is-loading .spinner{display:inline-block}
#customer-content[aria-busy=true] .customer-list{opacity:.55}
@media(prefers-reduced-motion:reduce){.customer-loading .spinner,.customer-search-submit .spinner{animation:none}}

/* Futura work tours: labels remain explicit; color is supplementary. */
.customer-work-tours { margin: 1rem 0 1.5rem; }
.customer-work-tours h4 { margin-bottom: .4rem; }
.customer-work-tours .ann-table { min-width: 520px; }
.customer-work-tours th[scope="row"] { background: transparent; color: var(--text); font-size: inherit; font-weight: 600; text-align: left; white-space: normal; }
.customer-work-tours .customer-tour-sweep { background: #edf4fc; }
.customer-work-tours .customer-tour-measurement { background: #eaf6ee; }
.customer-work-tours .customer-tour-other { background: #faf7dc; }
.customer-work-tours tr.is-assigned th[scope="row"] { border-left: 3px solid #536a81; }
.customer-work-tours td, .customer-work-tours th { vertical-align: top; }
