/* V23.50 – Kundinnen im echten Studio-Alltag. Keine Backend- oder API-Änderung. */
#panel-customers {--customer-ink:#493943;--customer-line:#e8dfe3;--customer-soft:#faf6f8;}
#panel-customers .p2-search{margin:2px 0 8px;display:flex;gap:10px;align-items:end;}
#panel-customers .p2-search .studio-search{display:grid;gap:6px;max-width:none;flex:1;min-width:0;font-size:12px;font-weight:650;color:#74626d;}
#panel-customers .p2-search input{min-width:0;min-height:47px;background:#fff;border-radius:12px;}
#panel-customers .p2-search>.button{min-height:47px;padding:10px 16px;white-space:nowrap;}
#panel-customers .studio-customer-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:9px 0 11px;}
#panel-customers #studio-customer-count{margin:0;font-size:13px;font-weight:650;color:#6e5965;}
#panel-customers .studio-customer-options{position:relative;min-width:0;margin:0;border:0;background:transparent;}
#panel-customers .studio-customer-options>summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:7px;min-height:40px;padding:8px 11px;font-size:12px;font-weight:650;color:#715c67;border:1px solid var(--customer-line);border-radius:11px;background:#fff;}
#panel-customers .studio-customer-options>summary::-webkit-details-marker{display:none;}
#panel-customers .studio-customer-options>summary:before{content:'☷';font-size:15px;color:#825d70;}
#panel-customers .studio-customer-options>summary:after{content:'⌄';font-size:15px;margin-left:auto;}
#panel-customers .studio-customer-options[open]>summary:after{content:'⌃';}
#panel-customers #studio-customer-active-filter:not([hidden]){display:inline-block;max-width:210px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#82556b;background:#f7ecf0;border-radius:7px;padding:2px 6px;}
#panel-customers .studio-customer-filters{margin:8px 0 0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;border:1px solid var(--customer-line);background:var(--customer-soft);padding:13px;border-radius:12px;}
#panel-customers .studio-customer-filters label{min-width:0;width:100%;font-size:12px;color:#6b5663;}
#panel-customers .studio-customer-filters select{width:100%;min-width:0;}
#panel-customers #studio-customer-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:11px 0 16px;}
#panel-customers #studio-customer-list .customer-compact-card{display:flex;flex-direction:column;align-items:stretch;justify-content:space-between;gap:11px;padding:14px;min-width:0;min-height:144px;margin:0;background:#fff;border:1px solid var(--customer-line);border-radius:14px;box-shadow:none;}
#panel-customers .customer-compact-header{display:flex;align-items:center;gap:10px;min-width:0;}
#panel-customers .customer-compact-avatar{display:grid;place-items:center;flex:0 0 40px;width:40px;height:40px;border-radius:12px;background:#f5e9ee;color:#85586e;font-weight:750;font-size:17px;}
#panel-customers .customer-compact-ident{min-width:0;overflow-wrap:anywhere;flex:1;}
#panel-customers .customer-compact-ident>strong{display:block;color:var(--customer-ink);font-size:15px;line-height:1.25;}
#panel-customers .customer-compact-contact{font-size:12px;line-height:1.35;margin:4px 0 0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
#panel-customers .customer-compact-meta{display:flex;flex-wrap:wrap;gap:6px 11px;align-items:center;color:#796974;font-size:12px;line-height:1.3;}
#panel-customers .customer-compact-visits{white-space:nowrap;font-weight:600;}
#panel-customers .customer-compact-next{color:#745064;font-weight:650;}
#panel-customers .customer-compact-actions{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:auto;}
#panel-customers .customer-compact-actions>.button{min-height:39px;padding:8px 15px;font-size:13px;flex:1;}
#panel-customers .customer-compact-more{position:relative;flex:0 0 auto;}
#panel-customers .customer-compact-more>summary{display:grid;place-items:center;list-style:none;cursor:pointer;border:1px solid var(--customer-line);background:#fff;color:#715866;border-radius:10px;min-width:66px;min-height:39px;padding:7px 10px;font-weight:650;font-size:12px;}
#panel-customers .customer-compact-more>summary::-webkit-details-marker{display:none;}
#panel-customers .customer-compact-options{display:flex;flex-wrap:wrap;gap:7px;margin-top:6px;padding:7px;background:var(--customer-soft);border:1px solid var(--customer-line);border-radius:10px;}
#panel-customers .customer-compact-options .button{min-height:39px;flex:1;min-width:0;font-size:12px;padding:7px 9px;}
#panel-customers .studio-customer-empty{grid-column:1/-1;display:grid;justify-items:center;gap:12px;padding:28px 15px;border:1px dashed var(--customer-line);border-radius:12px;background:#fff;text-align:center;color:#78636e;}
#panel-customers .studio-customer-empty strong{font-size:14px;}
#panel-customers .studio-customer-empty .button{min-height:40px;}
#panel-customers .p2-customer-editor{margin:10px 0 14px;}
#panel-customers .p2-customer-editor>.accordion-body{padding-top:12px;}
#panel-customers .studio-customer-extra{border:1px solid var(--customer-line);border-radius:11px;background:var(--customer-soft);padding:0 11px;}
#panel-customers .studio-customer-extra>summary{padding:13px 5px;min-height:45px;font-size:13px;font-weight:650;cursor:pointer;color:#684f5c;}
#panel-customers .studio-customer-extra-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;padding:8px 0 14px;}
#panel-customers .studio-customer-extra-fields>label{min-width:0;}
#panel-customers .studio-customer-extra-fields>.studio-full{grid-column:1/-1;}
#panel-customers .p2-privacy,#panel-customers .p2-export,#panel-customers .p2-hints{background:transparent;border:0;border-top:1px solid var(--customer-line);border-radius:0;box-shadow:none;margin:9px 0 0;padding:0;}
#panel-customers .p2-privacy>summary,#panel-customers .p2-export>summary,#panel-customers .p2-hints>summary{min-height:38px;font-size:12px;font-weight:600;color:#7f6d77;padding:9px 5px;}
#panel-customers .customer-detail{margin:11px 0;padding:clamp(12px,2.4vw,20px);background:#fff;border:1px solid #e3d1db;border-radius:15px;scroll-margin-top:16px;}
#panel-customers .customer-detail-head{margin:0;gap:9px;}
#panel-customers .customer-detail-head h3{font-size:21px;}
#panel-customers .customer-detail-head p.kicker{display:none;}
#panel-customers #studio-detail-summary{margin:6px 0 0;line-height:1.4;font-size:12px;overflow-wrap:anywhere;}
#panel-customers .ux27-customer-head-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap;}
#panel-customers .ux27-customer-head-actions>.button{min-height:40px;font-size:12px;padding:8px 11px;white-space:nowrap;}
#panel-customers .studio-customer-more{position:relative;flex:0 0 auto;}
#panel-customers .studio-customer-more>summary{display:flex;align-items:center;list-style:none;cursor:pointer;min-height:40px;padding:9px 12px;border:1px solid var(--customer-line);border-radius:10px;font-size:12px;font-weight:650;color:#745e6a;}
#panel-customers .studio-customer-more>summary::-webkit-details-marker{display:none;}
#panel-customers .studio-customer-more-content{display:flex;flex-wrap:wrap;gap:7px;margin-top:7px;padding:8px;background:var(--customer-soft);border-radius:11px;}
#panel-customers .studio-customer-more-content .button{min-height:39px;font-size:12px;padding:7px 10px;}
#panel-customers .ux27-customer-head-actions>.ux27-customer-close{color:#6c5c64;background:transparent;min-height:40px;}
#panel-customers .customer-tabs{position:static;margin:12px 0 9px;gap:4px;padding:3px;border-radius:12px;}
#panel-customers .customer-tab{min-height:41px;font-size:12px;padding:9px 11px;}
#panel-customers .customer-section{padding:6px 0 10px;}
#panel-customers .customer-stats{gap:9px;margin:9px 0;grid-template-columns:repeat(3,minmax(0,1fr));}
#panel-customers .customer-stat{padding:10px;border-radius:10px;gap:5px;}
#panel-customers .customer-stat span{font-size:11px;}
#panel-customers .customer-stat strong{font-size:16px;}
#panel-customers .studio-customer-stat-extra{margin:11px 0 0;border-top:1px solid var(--customer-line);padding-top:8px;}
#panel-customers .studio-customer-stat-extra>summary{cursor:pointer;min-height:40px;font-size:12px;font-weight:650;color:#705b66;padding:11px 4px;}
#panel-customers .studio-customer-stat-extra .muted{font-size:11px;margin-bottom:5px;}
#panel-customers .customer-section #studio-detail-contacts{font-size:12px;line-height:1.5;margin:13px 0 0;overflow-wrap:anywhere;}
#panel-customers #studio-detail-edit[hidden]{display:none!important;}
#panel-customers :is(.customer-compact-more>summary,.studio-customer-options>summary,.studio-customer-more>summary,.studio-customer-extra>summary,.studio-customer-stat-extra>summary):focus-visible{outline:2px solid #987185;outline-offset:3px;}
@media(max-width:920px){#panel-customers #studio-customer-list{grid-template-columns:1fr;}}
@media(max-width:700px){
 #panel-customers .p2-search{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px;align-items:end;margin:0 0 9px;}
 #panel-customers .p2-search .button{width:auto;font-size:12px;padding:9px 11px;min-height:45px;}
 #panel-customers .p2-search .studio-search{font-size:0;gap:0;}
 #panel-customers .p2-search .studio-search .customer-search-label{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}
 #panel-customers .p2-search input{min-height:45px;font-size:14px;}
 #panel-customers .studio-customer-toolbar{margin:7px 0;align-items:center;}
 #panel-customers .studio-customer-filters{grid-template-columns:1fr;gap:9px;padding:10px;}
 #panel-customers #studio-customer-list{grid-template-columns:1fr;gap:8px;margin-top:9px;}
 #panel-customers #studio-customer-list .customer-compact-card{padding:12px;gap:10px;min-height:0;}
 #panel-customers .customer-compact-avatar{width:37px;height:37px;flex-basis:37px;}
 #panel-customers .studio-customer-extra-fields{grid-template-columns:1fr;}
 #panel-customers .customer-detail{padding:12px;}
 #panel-customers .customer-detail-head h3{font-size:19px;}
 #panel-customers .ux27-customer-head-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;width:100%;}
 #panel-customers .ux27-customer-head-actions>.button{width:100%;min-height:42px;}
 #panel-customers .ux27-customer-head-actions>.ux27-customer-close{order:10;}
 #panel-customers .studio-customer-more{grid-column:1/-1;}
 #panel-customers .studio-customer-more>summary{width:100%;justify-content:center;}
 #panel-customers .studio-customer-more-content .button{flex:1 1 120px;}
 #panel-customers .customer-tabs{top:auto;overflow-x:auto;flex-wrap:nowrap;}
 #panel-customers .customer-tab{flex:0 0 auto;padding:8px 12px;min-height:43px;}
 #panel-customers .customer-stats{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:375px){#panel-customers .p2-search{grid-template-columns:1fr;}#panel-customers .p2-search .button{width:100%;}}
/* Der Neue-Kundin-Knopf öffnet das Formular; die geschlossene Doppel-Kachel entfällt. */
#panel-customers #studio-customer-editor:not([open]){display:none;}
/* Der Bereichstitel steht bereits in der festen Seitenüberschrift. */
#panel-customers>.section-heading{display:none;}
