.customer-layout{grid-template-columns:minmax(230px,.75fr) minmax(0,1.65fr)}
.comm-card .comm-body{display:grid;gap:9px;padding:8px 0}.comm-body h3,.comm-body p,.comm-settings h3{margin:0}.comm-card form,.comm-settings form{display:grid;gap:8px}
.comm-card textarea{width:100%;resize:vertical}.comm-actions,.comm-list li>div{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px}
.comm-card [hidden]{display:none!important}.comm-list{list-style:none;padding:0;margin:0;display:grid}.comm-list li{border-top:1px solid #d6e3de;padding:9px 0;overflow-wrap:anywhere}.comm-list p{white-space:pre-wrap}
.comm-list small,.comm-list time,.comm-actions small{color:#526b64;font-size:.8rem}.comm-card button[data-comm-more]{justify-self:start}
.comm-settings section{padding:12px 0;border-bottom:1px solid #d6e3de}.comm-settings output{display:block;max-width:100%;overflow-wrap:anywhere}.comm-settings output input{width:100%}
.customer-sidebar .section-head{margin-bottom:12px}.customer-sidebar h2{margin:0}
.customer-filters{display:flex;align-items:center;gap:8px;justify-content:space-between;margin-top:10px}.customer-filters select{width:auto;max-width:65%;min-height:34px;font-size:.87rem}.customer-filters output{font-size:.8rem;color:var(--muted)}
.customer-summary{background:linear-gradient(135deg,#123d3b,#245c55);color:#fff;border-radius:15px;padding:clamp(15px,2vw,24px)}
.customer-heading{display:flex;gap:12px;align-items:center}.customer-heading>div{min-width:0;flex:1}.customer-heading small{color:#b9ded1}.customer-heading h2{color:white;margin:.15rem 0 0;overflow-wrap:anywhere;font-size:clamp(1.18rem,2vw,1.65rem)}
.customer-monogram{display:grid;place-items:center;flex:none;width:44px;height:44px;border:1px solid #8cbaaa;background:#e1f6e8;color:#1e524a;border-radius:14px;font-weight:730}
.customer-heading .tag{background:#dcefe8;color:#235346;max-width:100%;white-space:normal}.customer-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px 14px;margin-top:14px}.customer-actions:empty{display:none}.customer-actions a{display:inline-flex;align-items:center;gap:5px;color:#fff;overflow-wrap:anywhere;font-size:.9rem}.customer-actions button{margin-left:auto;background:#fff;color:#204e47;border:0;min-height:34px;font-size:.85rem}
.customer-facts{border-bottom:1px solid var(--line);margin:8px 0 12px;padding:3px 0 7px}.customer-facts dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 14px}.customer-facts dt{font-size:.75rem;color:var(--muted)}.customer-facts dd{margin:2px 0 0;white-space:pre-line;overflow-wrap:anywhere}
.customer-booking{display:flex;align-items:flex-start;gap:8px;background:#edf5f2;color:#204b42;border-radius:9px;padding:10px;margin:10px 0}.customer-booking small{display:block}
.customer-sidebar [data-more]{width:100%;margin-top:8px}.customer-sidebar .item>span:last-child{min-width:0}.customer-sidebar .item strong,.customer-sidebar .item small{overflow-wrap:anywhere}
dialog.customer-editor{width:min(600px,calc(100% - 20px));max-height:92dvh;border:0;background:#fff;color:var(--ink);padding:0;border-radius:18px;box-shadow:0 20px 72px #10393940}
.customer-editor::backdrop{background:#0c2b31a6}.customer-editor form{display:flex;flex-direction:column;gap:0;margin:0;max-height:90dvh}
.customer-editor header,.customer-editor footer{position:static;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 20px;background:#fff;color:var(--ink);border-bottom:1px solid var(--line)}
.customer-editor h2{margin:2px 0 0;font-size:1.35rem}.customer-editor [data-close]{font-size:1.4rem;min-width:38px}
.customer-editor-body{overflow:auto;overscroll-behavior:contain;min-height:0;padding:16px 20px}
.customer-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.customer-fields label{min-width:0}.customer-fields .wide,.customer-fields [data-contact-fields]{grid-column:1/-1}
.customer-editor [hidden]{display:none!important}.customer-extra{margin-top:12px;border-top:1px solid var(--line);padding:6px 0}.customer-extra .customer-fields{margin-top:8px}.customer-editor textarea{resize:vertical}
.customer-editor footer{flex-shrink:0;border:0;border-top:1px solid var(--line);padding-bottom:max(14px,env(safe-area-inset-bottom))}.customer-form-status{font-size:.82rem;color:var(--muted);line-height:1.35;flex:1;min-width:0}
@media(max-width:680px){.customer-layout{grid-template-columns:1fr}.customer-layout:not(.has-selection) #detail{display:none}.customer-heading{flex-wrap:wrap}.customer-heading .tag{font-size:.72rem}.customer-actions button{margin-left:0}.customer-facts dl{grid-template-columns:1fr}.customer-editor header,.customer-editor footer,.customer-editor-body{padding-left:13px;padding-right:13px}.customer-fields{gap:9px}}
@media(max-width:450px){.customer-fields{grid-template-columns:1fr}.customer-editor footer{flex-wrap:wrap}.customer-editor footer .primary{margin-left:auto}}


.customer-facts summary small{display:inline;color:var(--muted);margin-left:.4rem;overflow-wrap:anywhere;font-weight:400}.customer-facts[open] summary small{display:none}

.billing-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr));gap:10px 20px;padding:6px 12px}
.billing-facts dt,.customer-documents li small{font-size:.83rem;color:var(--muted)}
.billing-facts dd{margin:.2em 0;overflow-wrap:anywhere}.customer-documents ul{padding:0;list-style:none}
.customer-documents li,.customer-documents form{display:grid;gap:6px;margin:.6rem 0}.customer-documents li a{overflow-wrap:anywhere}
.customer-documents input[type=file]{max-width:100%}.customer-documents form button{justify-self:start}
.customer-fields label[hidden]{display:none}
