.customer-app {--brand:var(--theme-accent,#075bc8);--soft:var(--theme-soft,#e0f3ff);--bg:var(--theme-page,#f0faff);--surface:var(--theme-card,#fff);background:var(--bg,#f3f7ff)}
.customer-workspace{max-width:1600px!important;margin:0 auto!important;padding:22px 26px 40px!important;color:var(--ink,#12264b)}
.customer-toolbar{display:grid;grid-template-columns:1fr minmax(280px,550px) 1fr;align-items:center;gap:24px;margin-bottom:18px}
.customer-toolbar>button{justify-self:end}.customer-toolbar nav{display:flex;gap:10px;align-items:center;min-width:0}.customer-toolbar nav span{font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.customer-toolbar nav span:not(:empty):before{content:'/';margin-right:10px;color:var(--muted)}
.customer-toolbar fieldset{display:flex;align-items:center;gap:8px;margin:0;padding:0;border:0}.customer-toolbar input{margin:0;width:100%;min-width:0}.customer-toolbar button{white-space:nowrap}.customer-workspace h1{font-size:30px;line-height:1.2;margin:0;letter-spacing:-.7px}.customer-workspace h2{font-size:19px;line-height:1.4;margin:0;letter-spacing:-.3px}.customer-workspace h3{font-size:14px;margin:0 0 10px}.customer-workspace p{line-height:1.5}.customer-workspace .text-button{background:transparent;color:var(--brand,#075adc);border:0;padding:5px 0;min-height:36px;box-shadow:none;font-weight:600;cursor:pointer}.customer-workspace .text-button:hover{text-decoration:underline}.customer-workspace .text-button:disabled{opacity:.55;cursor:default}.customer-workspace #status:empty{display:none}.customer-workspace #status{margin:0 0 12px}.profile-card{background:var(--surface,#fff);border:1px solid var(--border,#dce5f4);border-radius:14px;padding:22px;box-shadow:0 3px 12px #16386106;min-width:0}.card-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:14px}.card-heading p{margin:6px 0 0}.profile-shell{border:1px solid var(--border,#dce5f4);border-radius:16px;overflow:hidden;background:var(--surface,#fff)}.profile-heading{display:flex;justify-content:space-between;align-items:center;padding:24px;gap:18px}.profile-person{display:flex;align-items:center;gap:18px;min-width:0}.profile-person h1{overflow-wrap:anywhere}.profile-person p{margin:4px 0 0}.profile-avatar,.list-avatar{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:64px;height:64px;background:var(--soft,#e7f0ff);color:var(--brand,#075adc);border-radius:50%;font-size:24px;font-weight:700}.profile-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.button-link{display:inline-flex;align-items:center;justify-content:center;background:var(--brand,#075adc);color:white!important;border-radius:10px;padding:12px 18px;text-decoration:none;font-weight:600;min-height:44px}.profile-actions .icon-button{background:transparent;border:1px solid var(--border);color:var(--brand);width:42px;padding:8px;font-size:22px}.profile-tabs{display:flex;gap:24px;border-bottom:1px solid var(--border);padding:0 24px;overflow:auto}.profile-tabs button{background:transparent;color:var(--muted);border:0;border-bottom:3px solid transparent;border-radius:0;padding:14px 4px;white-space:nowrap;box-shadow:none}.profile-tabs button[aria-selected=true]{color:var(--brand);border-bottom-color:var(--brand)}.profile-columns{display:grid;grid-template-columns:minmax(260px,30%) minmax(0,1fr);gap:20px;background:var(--bg,#f3f7ff);padding:20px}.customer-information{align-self:start}.profile-history{display:grid;gap:18px;min-width:0;align-content:start}.profile-history:focus{outline:none}.profile-history:focus-visible{outline:2px solid var(--brand)}.info-section{border-top:1px solid var(--border);padding-top:18px;margin-top:18px}.contact-line{margin:16px 0;overflow-wrap:anywhere}.contact-line strong{display:block;font-size:13px;margin-bottom:4px}.contact-line a,.location-map{color:var(--brand)}.location-item{padding:10px 0}.location-item+.location-item{border-top:1px solid var(--border);margin-top:8px}.location-item p{margin:5px 0;overflow-wrap:anywhere}.location-item .small{font-size:12px}.customer-row{display:grid;grid-template-columns:44px 1.2fr 1fr 1.3fr auto;align-items:center;gap:14px;padding:16px 0;border-top:1px solid var(--border)}.customer-row>*{min-width:0;overflow-wrap:anywhere}.customer-row .list-avatar{width:40px;height:40px;font-size:14px}.customer-row h2{font-size:16px}.customer-row p{margin:0;font-size:14px}.profile-badge{display:inline-block;border-radius:30px;padding:5px 11px;font-size:12px;color:var(--muted);background:var(--soft,#edf3ff);white-space:nowrap}.note-row{border:1px solid var(--border);border-radius:10px;padding:13px 15px;margin-top:10px}.note-row p{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.note-meta{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:8px;font-size:12px;color:var(--muted)}.data-table{width:100%;border-collapse:collapse;font-size:13px;text-align:left}.data-table th{background:var(--soft,#edf3ff);color:var(--muted);font-weight:500}.data-table td,.data-table th{padding:11px 9px;vertical-align:top;border-bottom:1px solid var(--border);overflow-wrap:anywhere}.table-wrap{overflow:auto}.appointment-row{display:flex;gap:14px;align-items:flex-start;padding:14px 0;border-top:1px solid var(--border)}.appointment-row p{margin:3px 0;font-size:13px}.appointment-row .appointment-content{flex:1;min-width:0;overflow-wrap:anywhere}.date-tile{flex-shrink:0;background:var(--soft,#edf3ff);color:var(--brand);border-radius:10px;width:54px;text-align:center;padding:7px;font-size:12px}.date-tile strong{display:block;font-size:22px}.empty-state{padding:15px;background:var(--soft,#edf3ff);border-radius:10px;font-size:14px;color:var(--muted)}.small{font-size:12px}.customer-dialog{width:min(680px,calc(100vw - 32px));max-height:85vh;overflow:auto;border:1px solid var(--border);border-radius:16px;padding:26px;background:var(--surface,#fff);color:var(--ink);box-shadow:0 20px 80px #14254935}.customer-dialog::backdrop{background:#14254966}.customer-dialog fieldset{border:0;padding:0;margin:0}.customer-dialog label{display:block;margin-top:14px;font-size:14px}.customer-dialog input,.customer-dialog select,.customer-dialog textarea{width:100%;margin:6px 0 0}.customer-dialog textarea{min-height:100px;resize:vertical}.customer-dialog .customer-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}.customer-dialog summary{cursor:pointer;margin:16px 0;font-weight:600}.customer-dialog h2{font-size:24px;margin:0 0 12px}.customer-dialog [role=status]{white-space:pre-wrap}.sr-only{position:absolute!important;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:1000px){.customer-toolbar{grid-template-columns:1fr auto;gap:12px}.customer-toolbar form{grid-row:2;grid-column:1/-1}.profile-columns{grid-template-columns:260px minmax(0,1fr)}.profile-heading{align-items:flex-start}.profile-actions{justify-content:flex-end}.customer-row{grid-template-columns:40px 1fr 1fr auto}.customer-row .directory-email{display:none}}
@media(max-width:720px){.customer-workspace{padding:14px 12px!important}.profile-columns{grid-template-columns:1fr;padding:12px;gap:14px}.profile-heading{flex-direction:column;padding:18px}.profile-actions{justify-content:flex-start}.profile-person h1{font-size:25px}.profile-avatar{width:50px;height:50px;font-size:20px}.profile-tabs{padding:0 14px;gap:18px}.profile-card{padding:16px}.customer-row{grid-template-columns:36px 1fr auto;gap:10px}.customer-row .directory-phone{display:none}.customer-dialog .customer-grid{grid-template-columns:1fr}.profile-actions .button-link{padding:12px}.data-table{min-width:520px}.appointment-row{flex-wrap:wrap}}

.customer-app .customer-workspace{width:100%!important}
/* The application header has a fixed height; the profile heading must grow on narrow screens. */
.customer-app .profile-heading{height:auto;min-height:0}
.location-item .location-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.card-heading.compact{margin-bottom:8px}.card-heading.compact h3{margin:0}
