/* Focused customer workflow – isolated from list/table styling. */
.customer-editor-view{max-width:920px;margin:0 auto 54px}
.customer-back-link{display:inline-flex;align-items:center;min-height:44px;margin:0 0 12px;color:#1b647f;font-size:13px;font-weight:700;text-decoration:none}
.customer-back-link:hover{text-decoration:underline;text-underline-offset:3px}
.customer-editor-panel{padding:clamp(24px,3vw,44px)}
.customer-editor-intro{padding-bottom:26px;margin-bottom:28px;border-bottom:1px solid #e2ebee}
.customer-form-kicker{display:block;font-size:10px;letter-spacing:.16em;color:#157b9d;font-weight:800;margin-bottom:8px}
.customer-editor-intro h2{font-size:clamp(24px,3vw,34px);color:#102f45;letter-spacing:-.045em;line-height:1.2;margin:0 0 9px}
.customer-editor-intro p{font-size:14px;line-height:1.65;color:#607987;margin:0;max-width:640px}
.customer-editor-form{display:flex;flex-direction:column;gap:26px;max-width:none}
.customer-editor-form .customer-form-section{margin:0;border:0;padding:0 0 27px;min-width:0;border-bottom:1px solid #e7eef0}
.customer-form-section legend{padding:0;color:#173f55;font-size:17px;line-height:1.3;font-weight:760;letter-spacing:-.025em}
.customer-form-help{color:#607a89;font-size:12px;line-height:1.6;margin:6px 0 18px}
.customer-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 22px}
.customer-form-grid>.is-wide{grid-column:1/-1}
.customer-editor-field{min-width:0}
.customer-editor-form .customer-editor-field>label{display:block;margin:0 0 8px;color:#244a60;font-size:13px;font-weight:700;line-height:1.45}
.required-star{color:#ac3a39;font-size:13px}
.customer-editor-form input:not([type=checkbox]),.customer-editor-form textarea{width:100%;min-width:0;min-height:48px;background:#fff;color:#183d51;border:1px solid #cbdce1;border-radius:7px;padding:12px 14px;font-size:16px;line-height:1.35;box-sizing:border-box;transition:border-color .16s,box-shadow .16s}
.customer-editor-form textarea{min-height:96px;resize:vertical}
.customer-editor-form input:focus-visible,.customer-editor-form textarea:focus-visible{outline:none;border-color:#067da5;box-shadow:0 0 0 3px #bfe5ee}
.customer-form-extra{border:1px solid #dfebef;background:#f8fbfc;border-radius:9px;overflow:hidden}
.customer-form-extra>summary{display:flex;flex-wrap:wrap;align-items:center;gap:8px;cursor:pointer;list-style:none;min-height:56px;padding:15px 18px;font-weight:750;color:#21485c;font-size:14px}
.customer-form-extra>summary::-webkit-details-marker{display:none}
.customer-form-extra>summary:after{content:'+';font-size:20px;margin-left:auto;font-weight:500;color:#578193}
.customer-form-extra[open]>summary:after{content:'−'}
.customer-form-extra>summary span{font-size:12px;color:#698695;font-weight:450}
.customer-extra-content{border-top:1px solid #dce9ee;padding:20px 18px 22px;display:grid;gap:20px}
.customer-consent-box{border-top:1px solid #e0eaed;padding-top:17px}
.customer-consent-box .checkbox-line{font-size:13px;font-weight:680;color:#244d62;display:flex;align-items:flex-start;gap:11px;line-height:1.5}
.customer-consent-box .checkbox-line input{flex:0 0 20px;margin:1px 0 0;width:20px!important;height:20px!important}
.customer-consent-box .customer-form-help{margin:10px 0 15px}
[data-consent-proof][hidden]{display:none!important}
.customer-form-actions{position:sticky;bottom:0;z-index:2;display:flex;justify-content:flex-end;flex-wrap:wrap;gap:12px;align-items:center;background:linear-gradient(180deg,#fffffff0,#fff 35%);border-top:1px solid #e1ebee;padding:18px 0 4px;margin-top:0}
.customer-form-actions .admin-primary,.customer-form-actions .admin-secondary{min-height:48px;border-radius:6px;font-size:13px;justify-content:center}
.customer-profile-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.customer-profile-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px 26px;padding:22px 0;margin:8px 0 28px;border-top:1px solid #e6eef0;border-bottom:1px solid #e6eef0}
.customer-profile-fact{display:flex;flex-direction:column;gap:7px;min-width:0}
.customer-profile-fact span{font-size:11px;color:#718a96;font-weight:650}
.customer-profile-fact strong{font-size:13px;font-weight:680;color:#1c4559;overflow-wrap:anywhere}
@media(max-width:720px){.customer-editor-view{max-width:none}.customer-editor-panel{padding:22px 18px}.customer-profile-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:19px}.customer-editor-intro{padding-bottom:22px;margin-bottom:24px}}
@media(max-width:540px){.customer-form-grid{grid-template-columns:minmax(0,1fr);gap:17px}.customer-form-grid>.is-wide{grid-column:auto}.customer-form-actions{padding:14px 0 max(12px,env(safe-area-inset-bottom));gap:9px}.customer-form-actions .admin-primary,.customer-form-actions .admin-secondary{flex:1 1 45%;padding:0 9px}.customer-profile-summary{grid-template-columns:1fr}.customer-editor-form{gap:21px}.customer-form-extra>summary span{flex-basis:100%}.customer-editor-panel{padding:20px 15px}}
@media(prefers-reduced-motion:reduce){.customer-editor-form input,.customer-editor-form textarea{transition:none}}

/* New-record flows must not render a preceding table. */
.create-workspace{max-width:960px;margin:0 auto 48px}
.create-workspace>.admin-panel{padding:clamp(22px,3vw,38px);margin-top:0}
.create-workspace>.admin-panel>h2{font-size:clamp(22px,2.5vw,30px);line-height:1.22;color:#173f54;margin:0 0 25px;letter-spacing:-.03em}
.create-workspace .admin-form{max-width:none}
.create-workspace .admin-form-actions{border-top:1px solid #e3ecef;padding-top:20px}
.create-workspace .admin-form input,.create-workspace .admin-form textarea,.create-workspace .admin-form select{border-radius:6px}
@media(max-width:600px){.create-workspace>.admin-panel{padding:20px 15px}.create-workspace .admin-form{grid-template-columns:minmax(0,1fr)}}
.customer-note-disclosure{margin:12px 0 24px;border:1px solid #dce8ed;background:#f9fbfc;border-radius:7px;padding:0 16px}.customer-note-disclosure summary{cursor:pointer;min-height:48px;display:flex;align-items:center;font-weight:700;color:#27556e;font-size:13px}.customer-note-disclosure p{border-top:1px solid #e2eaee;margin:0;padding:15px 0;white-space:pre-wrap;font-size:13px;line-height:1.65;color:#31566a}

/* First and last name are separate database fields; legacy records retain the original full name. */
.customer-legacy-note{border:1px solid #d1e2e7;border-left:3px solid #2781a0;background:#f3f8fa;border-radius:7px;padding:14px 16px;margin:7px 0 18px;font-size:13px;line-height:1.6;color:#36596a}
.customer-legacy-note strong{color:#153e52;font-weight:740}
.customer-legacy-note a{color:#0b6d91;text-decoration:underline;text-underline-offset:3px;font-weight:720}
.customer-legacy-chip{display:inline-block;margin-left:6px;vertical-align:middle;border:1px solid #bcd7e1;color:#285d72;background:#eaf4f7;border-radius:999px;padding:3px 7px;font-size:10px;line-height:1.2;letter-spacing:0;font-weight:720;text-transform:none}
