.module.customers{background:#e6dff0}.nav{max-width:100%;overflow-x:auto;scrollbar-width:none}.nav a{white-space:nowrap}.customers-intro{align-items:center}.customers-intro>.button{white-space:nowrap;display:flex;gap:9px;align-items:center}.customers-intro>.button>span{font-size:1.3rem;line-height:1}.customers-tools{display:flex;align-items:center;gap:12px;margin:26px 0 20px}.customers-search{display:flex;align-items:center;flex:1;min-width:0;border:1px solid var(--line);border-radius:16px;background:#fff;padding:0 16px;gap:12px}.customers-search svg{width:20px;height:20px;color:var(--muted)}.customers-search input{width:100%;min-width:0;padding:16px 0;border:0;background:transparent;outline:none;font-size:.88rem}.customers-search:focus-within{outline:2px solid #84a896;outline-offset:2px}.customers-sort select{border:1px solid var(--line);border-radius:15px;padding:16px 12px;background:#fff;font-size:.82rem}.customers-tools>.button{font-size:.8rem;white-space:nowrap;padding:16px}.customers-directory{background:#fff;border:1px solid var(--line);border-radius:25px;overflow:hidden}.customers-results-caption{display:flex;justify-content:space-between;gap:15px;padding:22px 53px 19px 25px;font-size:.76rem;color:var(--muted);border-bottom:1px solid var(--line)}.customer-row{display:grid;grid-template-columns:40px minmax(0,1fr) 155px 12px;align-items:center;gap:16px;text-align:left;width:100%;min-height:78px;padding:15px 25px;border-bottom:1px solid #eef0f2;transition:background .15s}.customer-row:hover{background:#f8faf9}.customers-list>div:last-child .customer-row{border-bottom:0}.customer-avatar{width:40px;height:40px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:#e8efeb;color:#597366;letter-spacing:-.02em;font-size:.79rem;flex:none;font-weight:550}.customer-row-copy{min-width:0;display:grid;gap:6px}.customer-row-copy>strong{font-size:.94rem;font-weight:550;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.customer-row-copy>span{font-size:.75rem;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.customer-row-visit{font-size:.78rem;color:#717b82;text-align:right;font-variant-numeric:tabular-nums}.customer-row-arrow{font-size:1.45rem;color:#9da7ae}.customers-more{padding:18px;text-align:center}.customers-more .button{min-width:260px;font-size:.82rem}.customers-empty{padding:50px 25px;text-align:center;color:var(--muted);font-size:.87rem;line-height:1.6}.customers-footer{display:flex;align-items:center;justify-content:space-between;gap:18px;color:var(--muted);font-size:.73rem;margin-top:20px;line-height:1.6}.customers-footer .subtle{white-space:nowrap}.customer-dialog{max-width:650px;padding:30px;max-height:calc(100dvh - 60px);overflow-y:auto;overscroll-behavior:contain}.customer-dialog h2{font-size:1.2rem;letter-spacing:-.035em}.customer-dialog .dialog-head{margin-bottom:27px}.customer-dialog .dialog-head button{font-size:1.8rem;line-height:1;min-height:35px;min-width:35px}.customer-profile-head{display:flex;align-items:center;gap:17px;margin-bottom:25px}.customer-avatar.large{width:62px;height:62px;font-size:1.2rem}.customer-profile-head h3{font-size:1.65rem;letter-spacing:-.045em;overflow-wrap:anywhere;line-height:1.15}.customer-profile-head p{font-size:.76rem;color:var(--muted);line-height:1.5;margin-top:8px}.customer-facts{display:grid;grid-template-columns:1fr 1fr;gap:23px 25px;background:#f6f8f7;padding:23px;border-radius:20px}.customer-facts>div{min-width:0;display:grid;gap:8px;align-content:start}.customer-facts span{font-size:.73rem;color:var(--muted)}.customer-facts strong{font-size:.88rem;font-weight:500;overflow-wrap:anywhere;line-height:1.5}.customer-facts a{text-decoration:underline;text-decoration-color:#a3b7aa;text-underline-offset:4px}.customer-edit{margin-top:18px;width:100%;font-size:.84rem}.customer-visits{margin-top:30px}.customer-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:15px}.customer-section-heading h3{font-size:1.15rem;letter-spacing:-.035em}.customer-section-heading .button{font-size:.78rem;padding:12px 16px}.customer-source-note{font-size:.77rem;line-height:1.6;color:var(--muted);margin:13px 0}.customer-visit{display:flex;align-items:start;gap:14px;border-bottom:1px solid var(--line);padding:19px 0}.customer-visit:last-child{border-bottom:0}.customer-visit-dot{width:9px;height:9px;background:#8caa99;border-radius:50%;margin-top:5px;flex:none}.customer-visit strong{font-size:.91rem;font-weight:550}.customer-visit small{display:block;font-size:.72rem;margin-top:6px;line-height:1.5}.customer-visit p{margin-top:9px;font-size:.85rem;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}.customer-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}.customer-form-grid .field{min-width:0}.customer-dialog .field input{min-width:0}.customer-form-context{margin-bottom:22px;font-size:.9rem;line-height:1.5;color:var(--muted)}.customer-duplicates,.customers-pending{background:#f4edda;border-radius:15px;padding:16px 18px;font-size:.79rem;line-height:1.6;color:#7d683c}.customer-duplicates[hidden]{display:none}.customers-pending{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:20px}.customers-pending .button{font-size:.77rem;white-space:nowrap}.customer-dialog .form-error{white-space:pre-wrap}
@media(max-width:700px){.customers-intro{align-items:flex-start;gap:14px;flex-wrap:wrap}.customers-intro p{font-size:.82rem}.customers-intro>.button{font-size:.81rem;padding:14px 18px}.customers-tools{flex-wrap:wrap;gap:10px;margin-top:20px}.customers-search{flex:1 0 100%;padding:0 13px}.customers-search input{font-size:.82rem;padding:15px 0}.customers-sort{flex:1}.customers-sort select{width:100%;font-size:.77rem;padding:13px}.customers-tools>.button{padding:13px;font-size:.77rem}.customers-directory{border-radius:20px}.customers-results-caption{padding:18px 18px;font-size:.7rem}.customers-results-caption>span{display:none}.customer-row{grid-template-columns:34px minmax(0,1fr) 10px;gap:11px;padding:15px;min-height:85px}.customer-avatar{width:34px;height:34px;font-size:.7rem;grid-row:1/3;align-self:center}.customer-row-copy{grid-column:2;gap:5px}.customer-row-copy>strong{font-size:.85rem}.customer-row-copy>span{font-size:.7rem}.customer-row-email{display:none}.customer-row-visit{grid-column:2;grid-row:2;text-align:left;font-size:.68rem;margin-top:-3px}.customer-row-visit:before{content:'Визит · '}.customer-row-arrow{grid-column:3;grid-row:1/3}.customers-footer{align-items:flex-start;font-size:.67rem;flex-wrap:wrap;gap:5px}.customers-footer>.subtle{font-size:.73rem}.customer-dialog{padding:23px 20px;max-height:calc(100dvh - 26px);border-radius:25px;margin:auto 0}.customer-profile-head h3{font-size:1.42rem}.customer-profile-head{gap:13px}.customer-avatar.large{width:51px;height:51px;font-size:1rem}.customer-facts{padding:20px;gap:20px;grid-template-columns:1fr}.customer-facts strong{font-size:.86rem}.customer-form-grid{grid-template-columns:1fr}.customer-dialog .form-actions{margin-top:23px}.customer-dialog .form-actions .button{font-size:.82rem}.customers-pending{display:block}.customers-pending .button{margin-top:12px}.nav a{padding:10px 17px}.customer-dialog .field input,.customer-dialog .field textarea{font-size:16px}}

.customer-row-heading{display:flex;align-items:center;gap:10px;min-width:0}.customer-row-heading>strong{font-size:.94rem;font-weight:550;color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.customer-source-tag{font-size:.65rem;line-height:1.4;font-weight:500;color:#4f7161;background:#e8f1eb;border-radius:8px;padding:4px 7px;max-width:170px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:none}.customer-referral{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:19px 0 3px}.customer-referral>span{font-size:.79rem;color:var(--muted)}.customer-referral-button{font-size:.83rem;font-weight:550;color:#4f7161;background:#e8f1eb;border-radius:12px;padding:11px 15px;overflow-wrap:anywhere;text-align:right;max-width:70%}.customer-referral-button>span{font-size:.8rem;margin-left:8px}.customer-source-fields{grid-column:1/-1}.customer-source-fields .field select{font-size:.9rem}.customer-source-help{font-size:.73rem;line-height:1.6;color:var(--muted);margin:-6px 0 18px}.customer-custom-source[hidden]{display:none}@media(max-width:700px){.customer-row-heading{gap:5px;flex-wrap:wrap}.customer-row-heading>strong{font-size:.85rem}.customer-source-tag{font-size:.6rem;max-width:200px;padding:3px 6px}.customer-referral{gap:10px}.customer-referral-button{font-size:.76rem;padding:10px 12px}.customer-source-fields .field select{font-size:16px}}

.customer-history-banner{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:20px 24px;background:#eaf1ed;border-radius:20px;margin:20px 0}.customer-history-banner>div{display:grid;gap:7px}.customer-history-banner strong{font-size:.84rem;font-weight:550}.customer-history-banner span{font-size:.75rem;line-height:1.5;color:var(--muted)}.customer-history-banner .button{font-size:.77rem;white-space:nowrap}.customer-visit-summary{display:grid;grid-template-columns:1fr 1fr 1fr;gap:12px;margin:0 0 24px}.customer-visit-summary>div{display:grid;gap:9px;background:#edf3ef;border-radius:15px;padding:15px}.customer-visit-summary span{font-size:.68rem;color:#718279;line-height:1.4}.customer-visit-summary strong{font-size:.83rem;line-height:1.5;font-weight:550}.customer-history-controls{display:flex;align-items:center;justify-content:space-between;gap:15px;font-size:.75rem;color:var(--muted);margin:20px 0 5px}.customer-history-controls select{background:#f0f3f1;border:0;border-radius:10px;padding:10px;font:inherit;color:var(--ink)}.customer-visit-missed .customer-visit-dot{background:#c9b183}.customer-visit-missed small{color:#977b4b}.customer-review-search{display:flex;gap:10px;margin:20px 0}.customer-review-search input{min-width:0;flex:1;border:1px solid var(--line);border-radius:12px;padding:13px;font:inherit}.customer-review-search .button,.customer-review-row .button{font-size:.75rem;padding:12px 15px}.customer-review-row{display:flex;align-items:center;gap:14px;justify-content:space-between;padding:20px 0;border-bottom:1px solid var(--line)}.customer-review-row>div{display:grid;gap:7px;min-width:0}.customer-review-row strong{font-size:.85rem;overflow-wrap:anywhere}.customer-review-row span,.customer-review-row small{font-size:.72rem;color:var(--muted);line-height:1.5}.customer-review-candidate{display:grid;gap:6px;padding:14px 17px;text-align:left;width:100%;background:#f2f5f3;border-radius:12px;margin:8px 0}.customer-review-candidate strong{font-size:.85rem}.customer-review-candidate span{font-size:.73rem;color:var(--muted)}#customer-review-choices{margin-bottom:20px}@media(max-width:700px){.customer-history-banner{align-items:flex-start;flex-direction:column;padding:18px}.customer-visit-summary{grid-template-columns:1fr 1fr}.customer-visit-summary>div:last-child{grid-column:1/-1}.customer-review-search input{font-size:16px}.customer-review-row{align-items:flex-start}.customer-history-controls{font-size:.7rem;gap:8px}.customer-history-controls select{max-width:185px}}

.customer-service-tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:11px}.customer-service-tags>span{font-size:.67rem;line-height:1.5;padding:5px 8px;background:#e8f1ec;color:#4c705e;border-radius:8px;overflow-wrap:anywhere}.customer-services-edit{display:block;font:inherit;font-size:.68rem;color:#7a8b80;margin-top:9px;padding:2px 0;text-decoration:underline;text-underline-offset:3px}.customer-service-choices{border:0;display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:20px 0}.customer-service-choices legend{font-size:.78rem;color:var(--muted);margin-bottom:15px;line-height:1.5}.customer-service-choices label{display:flex;align-items:center;gap:9px;padding:12px;border:1px solid var(--line);border-radius:10px;font-size:.78rem;line-height:1.4;cursor:pointer}.customer-service-choices input{accent-color:#6c927e;width:17px;height:17px;flex:none}.customer-service-choices label:has(input:checked){background:#e8f1ec;border-color:#b6cabc}.customer-service-details{margin:20px 0}.customer-service-details summary{cursor:pointer;font-size:.85rem;color:#4c705e;padding:12px 0}@media(max-width:480px){.customer-service-choices{grid-template-columns:1fr}.customer-service-tags>span{font-size:.66rem}.customer-services-edit{font-size:.72rem}}

.customer-card-actions{display:flex;gap:10px;margin:-3px 0 24px;flex-wrap:wrap}.customer-card-actions .button{flex:1;font-size:.83rem;padding:13px 16px;min-height:46px}.customer-delete-button{background:#fbefed;color:#a14b43;border:1px solid #efd5d0}.customer-delete-button:hover{background:#f7e3df}.customer-delete-summary{padding:20px;background:#fcf1ef;border:1px solid #f0dcd7;border-radius:18px;margin-bottom:24px;display:grid;gap:10px}.customer-delete-summary>strong{font-size:1.15rem;overflow-wrap:anywhere}.customer-delete-summary>span{font-size:.77rem;color:#8b615b}.customer-delete-summary>p{font-size:.86rem;line-height:1.65;color:#76514b}.customer-delete-confirm{background:#a74a42;color:white}.customer-delete-confirm:hover{background:#903c35}.customer-delete-confirm:disabled{opacity:.45;cursor:not-allowed}.customer-card-actions .button:focus-visible,.customer-delete-confirm:focus-visible{outline:3px solid #94ac9d;outline-offset:3px}@media(max-width:480px){.customer-card-actions .button{font-size:.77rem;padding:13px 10px}.customer-delete-summary{padding:18px}.customer-delete-summary>strong{font-size:1.03rem}.customer-delete-summary>p{font-size:.81rem}}

.customer-visit>div{min-width:0;flex:1}.customer-visit-finance{margin:14px 0;border:1px solid var(--line);border-radius:15px;padding:14px;background:#f8faf9}.customer-visit-total{display:flex;justify-content:space-between;align-items:baseline;gap:14px;font-size:.76rem}.customer-visit-total strong{font-variant-numeric:tabular-nums;text-align:right}.customer-visit-lines{list-style:none;padding:0;margin:11px 0 0}.customer-visit-lines li{display:flex;justify-content:space-between;align-items:start;gap:12px;padding:12px 0;border-top:1px solid var(--line)}.customer-line-description{min-width:0;font-size:.82rem;overflow-wrap:anywhere;line-height:1.45}.customer-line-amount{font-size:.82rem;font-weight:550;text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}.customer-master-tag{color:#42604f;background:#e6eee9;padding:8px 12px;border-radius:10px;display:inline-block;font-size:.76rem;font-weight:550;line-height:1.3}.customer-visit small.customer-amount-note{color:#89703d}.customer-amount-note{overflow-wrap:anywhere}@media(max-width:500px){.customer-visit-finance{padding:11px}.customer-visit-total{align-items:start}.customer-line-amount{font-size:.75rem}.customer-visit-lines li{gap:8px}}

.customer-review-star{display:inline-block;color:#d575a2;line-height:1;flex:none;font-size:1.05em;vertical-align:baseline}.customer-profile-head h3 .customer-review-star{font-size:.8em}

.customer-review-star.old{color:#303638}.customer-review-star.fresh{color:#d575a2}

/* Compact client card: contacts first, history on demand. */
.customer-card-minimal .customer-profile-head{margin-bottom:12px;gap:15px}
.customer-card-minimal .customer-avatar.large{background:#eeebf4;color:#5e536e;width:54px;height:54px;font-size:1rem}
.customer-card-minimal .customer-profile-head h3{font-size:1.6rem}
.customer-card-toolbar{display:flex;justify-content:flex-end;margin:-5px 0 16px}
.customer-edit-link{color:#655775;font-size:.8rem;padding:6px 0}
.customer-card-minimal .customer-facts{background:#fff;border:1px solid #e8e4ec;gap:19px 24px;padding:20px;border-radius:18px}
.customer-card-minimal .customer-facts a{text-decoration-color:#c7bfd2}
.customer-card-minimal .customer-referral-button{padding:0;background:none;color:#655775;text-align:left;max-width:100%;font-size:.86rem;font-weight:500;min-height:24px}
.customer-card-section{margin-top:18px;border:1px solid #e8e4ec;border-radius:18px;background:#fff;padding:0 20px}
.customer-card-section>summary{display:flex;align-items:center;gap:10px;padding:19px 0;cursor:pointer;list-style:none;font-size:.95rem;font-weight:550}
.customer-card-section>summary::-webkit-details-marker,.customer-visit-compact>summary::-webkit-details-marker{display:none}
.customer-card-section>summary:after{content:'+';margin-left:auto;color:#85778f;font-size:1.25rem;font-weight:400}
.customer-card-section[open]>summary:after{content:'−'}
.customer-section-count{font-size:.77rem;font-weight:400;color:var(--muted)}
.customer-card-minimal .customer-history-controls{gap:10px;justify-content:space-between;padding:0 0 14px;margin:0;border-bottom:1px solid var(--line)}
.customer-card-minimal .customer-history-controls select{padding:8px 10px;background:#f6f4f8;border:0;border-radius:9px;font-size:.75rem}
.customer-card-minimal .customer-history-controls .button{padding:9px 12px;font-size:.75rem}
.customer-visit.customer-visit-compact{display:block;padding:0;border-bottom:1px solid var(--line)}
.customer-visit-compact>summary{display:flex;align-items:center;gap:12px;padding:17px 0;cursor:pointer;list-style:none}
.customer-visit-compact>summary:after{content:'⌄';color:#8a7c96;font-size:1rem;flex:none}
.customer-visit-compact[open]>summary:after{content:'⌃'}
.customer-visit-caption{display:grid;gap:5px;min-width:0;flex:1}
.customer-visit-caption>small{margin:0;color:var(--muted);font-size:.73rem;line-height:1.4}
.customer-visit-price{font-size:.9rem;font-weight:550;white-space:nowrap;font-variant-numeric:tabular-nums}
.customer-visit-body{padding-bottom:15px}
.customer-visit-compact .customer-visit-finance{margin:0;border:0;padding:0;background:none}
.customer-visit-compact .customer-visit-total{display:none}
.customer-visit-compact .customer-visit-lines{margin:0}
.customer-visit-compact .customer-visit-lines li{border:0;padding:9px 0}
.customer-visit-compact .customer-master-tag{background:#eeebf4;color:#5e536e;padding:5px 9px;font-size:.73rem}
.customer-visit-compact .customer-services-edit{margin:8px 0 0;color:#766584;font-size:.75rem;text-decoration:none}
.customer-card-more>summary{font-size:.82rem;font-weight:500;color:var(--muted)}
.customer-record-info{margin:0;display:grid;gap:12px;padding-bottom:17px}
.customer-record-info>div{display:flex;justify-content:space-between;gap:16px;font-size:.78rem;line-height:1.5}
.customer-record-info dt{color:var(--muted)}.customer-record-info dd{margin:0;text-align:right}
.customer-delete-link{font-size:.78rem;color:#aa5a58;padding:5px 0 18px}
.customer-card-section>summary:focus-visible,.customer-visit-compact>summary:focus-visible{outline:2px solid #92819f;outline-offset:3px;border-radius:5px}
@media(max-width:600px){.customer-card-minimal .customer-facts{grid-template-columns:1fr;gap:16px;padding:18px}.customer-card-section{padding:0 16px}.customer-card-minimal .customer-profile-head h3{font-size:1.4rem}.customer-visit-price{font-size:.8rem}.customer-visit-caption>strong{font-size:.84rem}.customer-card-toolbar{margin-bottom:12px}.customer-card-minimal .customer-history-controls{flex-wrap:wrap}}

.customer-card-minimal .customer-days-away{margin-top:4px}.customer-days-away strong{font-weight:550;color:var(--ink)}
