.customer-address{border:1px solid #dce8e2;border-radius:16px;padding:18px;background:#f8fbf9;margin:2px 0 0;min-width:0}
.customer-address legend{font-weight:800;color:#16523d;padding:0 8px;font-size:.84rem;letter-spacing:.01em}
.customer-fields-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 16px}
.customer-fields-grid .wide{grid-column:1 / -1}
.customer-fields-grid label{display:block;font-size:.79rem;font-weight:800;color:#355447;min-width:0}
.customer-fields-grid input,.customer-fields-grid select{display:block;width:100%;min-width:0;border:1px solid #cfdcd4;border-radius:10px;padding:11px 12px;font:inherit;background:#fff;color:#14251e;margin-top:6px;min-height:46px}
.customer-fields-grid input:focus,.customer-fields-grid select:focus{border-color:#74bf93;outline:3px solid rgba(39,154,52,.18);outline-offset:0}
.customer-data-note{display:block;max-width:330px;white-space:normal;overflow-wrap:anywhere;color:#52685e;line-height:1.5;margin-top:6px}
.customer-open-link{text-decoration:none;display:inline-block;color:#086640;border:1px solid #8fdcb9;border-radius:8px;padding:7px 10px;background:#effcf5;font-weight:700}
#customerEditDialog{width:min(980px,calc(100vw - 32px));max-height:min(92dvh,920px);overflow:hidden;border:1px solid #dce8e2;border-radius:24px;padding:0;color:#14251e;box-shadow:0 34px 84px rgba(10,26,18,.22)}
#customerEditDialog::backdrop{background:#061b14b3}
#customerEditDialog h2{margin:0;padding:22px 26px 16px;border-bottom:1px solid #e3ebe6;background:linear-gradient(180deg,#fff,#fbfdfc);font-size:1.42rem;letter-spacing:-.024em;line-height:1.18}
#customerEditDialog form{display:grid;gap:18px;padding:18px 26px 0;max-height:calc(min(92dvh,920px) - 86px);overflow:auto}
#customerEditDialog .customer-edit-actions{position:sticky;bottom:0;display:flex;gap:10px;justify-content:flex-end;align-items:center;padding:14px 26px;border-top:1px solid #e3ebe6;margin:0 -26px;background:linear-gradient(180deg,rgba(255,255,255,.92),#fff 28%);backdrop-filter:blur(10px);z-index:3}
#customerEditError{color:#ad3030;line-height:1.45;margin:0}
#customerEditError:empty{display:none}
#customerEditError:not(:empty){padding:12px 14px;border:1px solid #f1c7c1;border-radius:12px;background:#fff2f0;color:#a83026}
#customerEditNotice{background:#edf9f1;color:#0f6b3a;padding:13px 15px;border-radius:12px;border:1px solid #b7e2c5}
#customerEditDialog button{padding:11px 18px;border-radius:10px;font:inherit;cursor:pointer;min-height:44px;font-weight:800}
#customerEditCancel{background:#f4f7f5;color:#244235;border:1px solid #d9e4dc}
#customerEditSave{background:#13bf76;color:#052016;font-weight:800!important;border:1px solid #13bf76;box-shadow:0 6px 16px rgba(19,191,118,.16)}
#customerEditDialog button:disabled{opacity:.6;cursor:wait}
#customerEditDialog .av-party-actions{margin-top:8px}
#customerEditDialog .av-party-status{font-size:.74rem;line-height:1.45;color:#6a7d73}
#customerEditDialog .av-party-sefaz{font-size:.74rem}
@media(max-width:760px){#customerEditDialog{width:calc(100vw - 18px);max-height:calc(100dvh - 18px);border-radius:18px}#customerEditDialog h2{padding:18px 18px 14px;font-size:1.22rem}#customerEditDialog form{padding:16px 18px 0;gap:16px;max-height:calc(100dvh - 76px)}#customerEditDialog .customer-fields-grid{grid-template-columns:1fr}#customerEditDialog .customer-fields-grid .wide{grid-column:1}#customerEditDialog .customer-edit-actions{padding:12px 18px;margin:0 -18px}}
@media(max-width:520px){.customer-fields-grid{grid-template-columns:1fr}.customer-fields-grid .wide{grid-column:auto}#customerEditDialog .customer-address{padding:14px}#customerEditDialog .customer-edit-actions{display:grid;grid-template-columns:1fr 1fr}#customerEditDialog .customer-edit-actions button{width:100%;padding:10px 14px}}
