/* V23.74 – Kompakte mobile Kundinnenakte, nur #panel-customers.
   Keine Änderungen an Datenschutz, Routen, Kunden-Speicherung oder anderen Panels. */
#panel-customers .customer-detail{max-width:1040px;margin-inline:auto;min-width:0;overflow-wrap:anywhere;}
#panel-customers .customer-name-row{display:flex;align-items:center;gap:8px 12px;flex-wrap:wrap;}
#panel-customers .customer-name-row h3{margin:0;font-size:clamp(20px,2.2vw,25px);line-height:1.25;color:#553d4e;}
#panel-customers .customer-regular-tag{display:inline-block;background:#f8edf2;color:#86576d;border:1px solid #ebd7e1;border-radius:999px;font-size:11px;font-weight:750;padding:5px 9px;}
#panel-customers .customer-regular-tag[hidden]{display:none!important;}
#panel-customers .customer-privacy-alert{margin:14px 0 10px;}
#panel-customers .customer-glance{margin:15px 0 10px;padding:clamp(13px,2.4vw,20px);border:1px solid #e9dbe1;border-radius:16px;background:linear-gradient(120deg,#fffafc,#fff);box-shadow:0 2px 11px rgba(84,53,73,.035);}
#panel-customers .customer-glance-rows{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 20px;min-width:0;}
#panel-customers .customer-glance-row{display:flex;gap:11px;align-items:center;min-width:0;padding:11px 3px;border-bottom:1px solid #f0e7eb;}
#panel-customers .customer-glance-row>div{min-width:0;display:grid;gap:3px;}
#panel-customers .customer-glance-address{grid-row:auto;grid-column:auto;border-bottom:1px solid #f0e7eb;}
#panel-customers .customer-glance-icon{display:grid;place-items:center;flex:0 0 35px;width:35px;height:35px;border:1px solid #ecdbe4;border-radius:11px;background:#fff;color:#96687d;font-size:20px;font-weight:600;}
#panel-customers .customer-glance-label{color:#826a77;font-size:11px;font-weight:700;letter-spacing:.01em;}
#panel-customers .customer-glance-row strong{color:#45343e;font-size:14px;line-height:1.5;font-weight:670;overflow-wrap:anywhere;}
#panel-customers .customer-glance-row strong.customer-profile-empty{font-weight:500;color:#9b8993;}
#panel-customers .customer-glance-edit{margin-top:12px;min-height:44px;padding:10px 18px;background:#fff;border:1px solid #d8bdc9;border-radius:10px;font-size:13px;font-weight:700;color:#785468;}
#panel-customers .customer-glance-edit:focus-visible{outline:2px solid #9c647e;outline-offset:3px;}
#panel-customers .customer-action-tiles{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;padding:0;margin:15px 0 6px;background:transparent;border:none;overflow:visible;}
#panel-customers .customer-action-tiles .customer-tab{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:4px;min-width:0;min-height:75px;border:1px solid #e7d9e1;background:#fcf9fb;color:#684b5e;box-shadow:none;border-radius:12px;font-size:13px;font-weight:750;white-space:normal;line-height:1.25;text-align:center;padding:10px 7px;}
#panel-customers .customer-action-tiles .customer-tab-icon{display:inline-flex;align-items:center;justify-content:center;font-size:21px;line-height:1;font-weight:500;height:24px;color:#976c81;}
#panel-customers .customer-action-tiles .customer-tab[aria-selected="true"]{border-color:#ba8da3;background:#f6eaf0;box-shadow:0 1px 6px rgba(106,54,77,.09);}
#panel-customers .customer-action-tiles #customer-tab-overview{grid-column:1/-1;justify-content:start;flex-direction:row;min-height:37px;width:fit-content;min-width:117px;padding:5px 13px;border-radius:999px;background:#fff;font-size:12px;}
#panel-customers .customer-action-tiles #customer-tab-overview .customer-tab-icon{font-size:15px;height:auto;}
#panel-customers .customer-glance-more{margin:11px 0 0;border:1px solid #ece0e6;background:#fff;border-radius:12px;min-width:0;}
#panel-customers .customer-glance-more>summary{cursor:pointer;min-height:45px;padding:12px 15px;color:#765667;font-size:13px;font-weight:700;}
#panel-customers .customer-glance-more>summary:focus-visible{outline:2px solid #987185;outline-offset:2px;}
#panel-customers .customer-glance-more-inner{border-top:1px solid #f0e8ec;padding:12px;}
#panel-customers .customer-glance-more #studio-detail-contacts{margin:0;}
#panel-customers .customer-glance-more .customer-profile-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
#panel-customers .customer-glance-more .customer-profile-billing{grid-column:1/-1;}
#panel-customers .customer-glance-more .customer-profile-card{padding:12px;}
#panel-customers .customer-glance-more .customer-profile-card h5{margin-bottom:8px;font-size:13px;}
#panel-customers .customer-glance-more #studio-detail-notes-card{grid-column:1/-1;}
#panel-customers .customer-section{min-width:0;}
@media(max-width:760px){
 #panel-customers .customer-glance-rows{grid-template-columns:minmax(0,1fr);gap:0;}
 #panel-customers .customer-glance-address{grid-column:auto;grid-row:auto;}
 #panel-customers .customer-glance-row{padding:10px 2px;}
 #panel-customers .customer-glance-row:last-child{border-bottom:none;}
 #panel-customers .customer-action-tiles{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;}
 #panel-customers .customer-action-tiles .customer-tab{min-height:73px;font-size:12px;}
 #panel-customers .customer-glance-more .customer-profile-grid{grid-template-columns:1fr;}
 #panel-customers .customer-glance-more .customer-profile-billing{grid-column:1;}
 #panel-customers .customer-glance-more .customer-profile-billing .customer-profile-billing-grid{grid-template-columns:1fr;gap:10px;}
 #panel-customers .customer-glance-more .customer-profile-billing .customer-profile-field+.customer-profile-field{border-left:0;padding-left:0;border-top:1px solid #f0e7eb;padding-top:10px;}
}
@media(max-width:420px){
 #panel-customers .customer-glance{padding:12px;}
 #panel-customers .customer-glance-edit{width:100%;}
 #panel-customers .customer-glance-row strong{font-size:13px;}
 #panel-customers .customer-action-tiles .customer-tab{padding:10px 4px;}
}

/* Ein einziger klarer Bearbeiten-Knopf in der Kurzansicht. */
#panel-customers #ux27-customer-edit{display:none!important;}
@media(max-width:560px){
 #panel-customers .ux27-customer-head-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;width:100%;gap:7px;}
 #panel-customers .ux27-customer-head-actions .button{min-width:0;min-height:43px;padding:9px 5px;}
 #panel-customers .studio-customer-more{min-width:0;}
 #panel-customers .studio-customer-more>summary{justify-content:center;min-width:0;padding:9px 7px;min-height:43px;}
}
@media(max-width:560px){
 #panel-customers .ux27-customer-head-actions>.button.primary{order:0;}
 #panel-customers .ux27-customer-head-actions>.ux27-customer-close{order:0;width:auto;}
 #panel-customers .ux27-customer-head-actions>.studio-customer-more{grid-column:auto;grid-row:auto;}
}

#panel-customers .customer-section{scroll-margin-top:88px;}
