/* W09a: editor profilu zákazníka. Iba vlastné triedy customer-profile-*, tokeny z design.css; chybová farba nemá token, preto lokálna premenná. */
.customer-profile-editor{--customer-profile-danger:#b42318}
.customer-profile-editor .panel-head{display:flex;align-items:baseline;justify-content:space-between;gap:var(--space-3)}
.customer-profile-form{display:grid;gap:var(--space-4)}
.customer-profile-form[inert]{opacity:.72}
.customer-profile-form fieldset{border:1px solid var(--line);border-radius:var(--radius);padding:var(--space-3) var(--space-4);margin:0;min-width:0}
.customer-profile-form legend{font-weight:600;color:var(--ink);padding:0 var(--space-1)}
.customer-profile-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--space-3) var(--space-4)}
.customer-profile-field{display:grid;gap:var(--space-1);font-size:var(--text-md);color:var(--ink-2);min-width:0}
.customer-profile-field input{min-height:var(--control-height);padding:0 var(--control-pad);border:1px solid var(--line);border-radius:var(--radius-control);background:var(--surface);color:var(--ink);font:inherit;width:100%}
.customer-profile-field input:focus-visible,.customer-profile-choice input:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.customer-profile-field input[aria-invalid="true"]{border-color:var(--customer-profile-danger);box-shadow:0 0 0 1px var(--customer-profile-danger)}
.customer-profile-error{color:var(--customer-profile-danger);font-size:var(--text-sm)}
.customer-profile-type{display:flex;flex-wrap:wrap;gap:var(--space-4)}
.customer-profile-choice{display:inline-flex;align-items:center;gap:var(--space-2);min-height:var(--control-height);font-size:var(--text-md);color:var(--ink)}
.customer-profile-diff{width:100%;border-collapse:collapse;font-size:var(--text-sm)}
.customer-profile-diff caption{text-align:left;font-weight:600;color:var(--ink);padding-bottom:var(--space-2)}
.customer-profile-diff th,.customer-profile-diff td{border-top:1px solid var(--line-soft);padding:var(--space-2);text-align:left;vertical-align:top;overflow-wrap:anywhere}
.customer-profile-diff td small{display:block}
.customer-profile-actions{display:flex;flex-wrap:wrap;gap:var(--space-2);justify-content:flex-end}
.customer-profile-conflict ul{margin:var(--space-2) 0 var(--space-3) var(--space-5)}
.customer-profile-conflict:focus{outline:2px solid var(--accent);outline-offset:2px}
.customer-profile-leave{margin-bottom:var(--space-3)}
[data-profile-status]:focus{outline:2px solid var(--accent);outline-offset:2px}
@media (max-width:640px){
 .customer-profile-grid{grid-template-columns:minmax(0,1fr)}
 .customer-profile-form fieldset{padding:var(--space-3)}
 .customer-profile-diff thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
 .customer-profile-diff tr{display:grid;border-top:1px solid var(--line-soft);padding:var(--space-2) 0}
 .customer-profile-diff th,.customer-profile-diff td{border:0;padding:var(--space-1) 0}
 .customer-profile-diff td::before{content:attr(data-label) ": ";color:var(--muted)}
 .customer-profile-actions{position:sticky;bottom:0;background:var(--surface);padding:var(--space-3) 0;border-top:1px solid var(--line)}
 .customer-profile-actions .btn{flex:1 1 100%;min-height:44px}
}
