.v4-customers { width:min(100%,1400px); margin:0 auto; color:var(--v4-ink,#17271f); }
.v4-customers [hidden] { display:none !important; }
.v4-customers fieldset { min-width:0; margin:0; padding:0; border:0; }
.v4-customers .card { border:1px solid rgba(15,33,26,.08); border-radius:16px; background:#fff; box-shadow:var(--v4-shadow-sm,0 8px 24px rgba(15,33,26,.06)); }
.v4-customers .btn,.v4-customers .form-control,.v4-customers .form-select { min-height:44px; }
.v4-customers p { color:var(--v4-muted,#617068); }

/* Carteira: a busca é o primeiro conteúdo útil. */
.v4-customers-list { padding-top:.15rem; }
.v4-customers-search { display:grid; gap:.65rem; margin:0 0 .7rem; }
.v4-customers-search-main { display:grid; grid-template-columns:minmax(260px,1fr) auto auto; gap:.55rem; }
.v4-customers-search-main .form-control { min-width:0; border-color:var(--v4-line-strong,#c9d5ce); border-radius:12px; font-size:.92rem; }
.v4-customers-filter-fields { display:grid; grid-template-columns:repeat(6,minmax(120px,1fr)); gap:.55rem; padding:.7rem; border:1px solid var(--v4-line,#dfe7e2); border-radius:13px; background:rgba(255,255,255,.75); }
.v4-customers-filter { display:grid; gap:.25rem; min-width:0; color:var(--v4-muted,#617068); font-size:.69rem; font-weight:700; }
.v4-customers-filter .form-select { min-width:0; border-color:var(--v4-line-strong,#c9d5ce); border-radius:9px; font-size:.78rem; }
.v4-customers-filter-chips { display:flex; flex-wrap:wrap; gap:.4rem; }
.v4-customer-filter-chip,.v4-customer-filter-clear { min-height:34px; padding:.35rem .62rem; border-radius:999px; font-size:.7rem; font-weight:700; }
.v4-customer-filter-chip { border:1px solid rgba(33,131,89,.25); background:rgba(33,131,89,.08); color:var(--v4-green-700,#176b47); }
.v4-customer-filter-clear { border:0; background:transparent; color:var(--v4-muted,#617068); text-decoration:underline; }
.v4-customers-summary { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:.55rem; margin:.6rem 0; }
.v4-customers-summary-item { display:flex; align-items:center; justify-content:space-between; min-height:58px; padding:.55rem .75rem; border:1px solid var(--v4-line,#dfe7e2); border-radius:12px; background:#fff; }
.v4-customers-summary-item span { color:var(--v4-muted,#617068); font-size:.7rem; font-weight:650; }
.v4-customers-summary-item strong { font-size:1.08rem; font-variant-numeric:tabular-nums; }
.v4-customers-list-tools,.v4-customers-list-order { display:flex; align-items:center; flex-wrap:wrap; gap:.45rem; }
.v4-customers-list-tools { justify-content:space-between; margin:.55rem 0; }
.v4-customers-list-order label { color:var(--v4-muted,#617068); font-size:.7rem; font-weight:700; }
.v4-customers-list-order .form-select { width:auto; min-height:38px; padding-block:.35rem; font-size:.75rem; }
.v4-customers-export { position:relative; }
.v4-customers-export summary { min-height:38px !important; padding:.45rem .75rem; list-style:none; cursor:pointer; }
.v4-customers-export summary::-webkit-details-marker { display:none; }
.v4-customers-export-menu { position:absolute; z-index:9; top:calc(100% + .35rem); right:0; display:grid; min-width:150px; padding:.35rem; border:1px solid var(--v4-line,#dfe7e2); border-radius:10px; background:#fff; box-shadow:0 12px 30px rgba(15,33,26,.14); }
.v4-customers-export-menu button { min-height:38px; padding:.4rem .6rem; border:0; border-radius:7px; background:transparent; color:inherit; text-align:left; }
.v4-customers-export-menu button:hover,.v4-customers-export-menu button:focus-visible { background:var(--v4-surface-soft,#f2f6f3); }
.v4-customers-status { min-height:1.1rem; margin:.35rem 0; font-size:.74rem; }
.v4-customers-table { overflow:hidden; margin:0; }
.v4-customers-table table { margin:0; }
.v4-customers-table th { padding:.65rem .7rem; color:var(--v4-muted,#617068); font-size:.68rem; font-weight:750; text-transform:uppercase; letter-spacing:.03em; }
.v4-customers-table td { min-width:125px; padding:.7rem; vertical-align:middle; font-size:.78rem; overflow-wrap:anywhere; }
.v4-customers-table td:first-child { min-width:190px; }
.v4-customer-row-name { color:var(--v4-forest-950,#10251c); font-size:.86rem; font-weight:750; }
.v4-customer-row-actions { display:flex; justify-content:flex-end; gap:.35rem; white-space:nowrap; }
.v4-customer-status-badge { display:inline-flex; align-items:center; min-height:26px; padding:.2rem .5rem; border-radius:999px; font-size:.68rem; font-weight:750; }
.v4-customer-status-badge.is-active { background:#e8f7ef; color:#146b43; }
.v4-customer-status-badge.is-inactive { background:#eef1ef; color:#56635c; }
.v4-customers-empty-row td { padding:2rem 1rem; color:var(--v4-muted,#617068); text-align:center; }
.v4-customers-pagination { display:flex; align-items:center; justify-content:flex-end; gap:.65rem; margin:.7rem 0; }
.v4-customers-pagination span { color:var(--v4-muted,#617068); font-size:.74rem; }
.v4-customers-catalogs-details { margin-top:.6rem; padding:.55rem .7rem; border:1px solid var(--v4-line,#dfe7e2); border-radius:10px; background:rgba(255,255,255,.55); color:var(--v4-muted,#617068); font-size:.74rem; }
.v4-customers-catalogs-details > summary { cursor:pointer; font-weight:700; }
.v4-customers-catalogs { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; padding-top:.75rem; }
.v4-customers-catalogs h2 { margin:0 0 .35rem; color:var(--v4-ink,#17271f); font-size:.86rem; }

/* Editor compacto e responsivo. */
.v4-customer-editor { padding:.1rem 0 1.25rem; }
.v4-customer-editor-heading,.v4-customer-detail-heading { display:flex; align-items:center; min-height:30px; margin-bottom:.25rem; }
.v4-customer-editor-back { display:inline-flex; align-items:center; min-height:30px; color:var(--v4-green-700,#176b47); font-size:.76rem; font-weight:750; }
.v4-customer-editor-loading { min-height:1rem; margin:.15rem 0; font-size:.72rem; }
.v4-customer-editor-loading:empty { display:none; }
.v4-customer-editor-workspace { position:sticky; z-index:12; top:82px; margin:.25rem 0 .7rem; padding:.32rem; border:1px solid rgba(15,33,26,.08); border-radius:13px; background:rgba(255,255,255,.96); box-shadow:0 8px 26px rgba(15,33,26,.08); backdrop-filter:blur(12px); }
.v4-customer-editor-tabs { display:flex; gap:.25rem; min-width:0; overflow-x:auto; scrollbar-width:thin; }
.v4-customer-editor-tab { position:relative; flex:0 0 auto; min-height:40px; padding:.48rem .78rem; border:0; border-radius:9px; background:transparent; color:var(--v4-muted,#617068); font-size:.8rem; font-weight:750; white-space:nowrap; }
.v4-customer-editor-tab:hover { background:var(--v4-surface-soft,#f2f6f3); color:var(--v4-forest-950,#10251c); }
.v4-customer-editor-tab[aria-selected="true"] { background:var(--v4-forest-950,#10251c); color:#fff; }
.v4-customer-editor-tab.has-errors::after { position:absolute; top:.28rem; right:.28rem; width:7px; height:7px; border-radius:50%; background:var(--v4-red,#b63238); content:""; }
.v4-customer-editor-tab:focus-visible { outline:3px solid rgba(33,131,89,.25); outline-offset:2px; }
.v4-customer-validation { margin:0 0 .7rem; font-size:.78rem; }
.v4-customer-validation ul { display:grid; gap:.2rem; margin:.35rem 0 0; padding-left:1.1rem; }
.v4-customer-validation button { padding:0; border:0; background:transparent; color:inherit; text-align:left; text-decoration:underline; }
.v4-customer-duplicates { display:grid; gap:.25rem; margin-bottom:.7rem; font-size:.76rem; }
.v4-customer-duplicates p { margin:0; }
.v4-customer-card-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.75rem; align-items:start; }
#v4-customer-panel-principais > .v4-customer-card-grid { align-items:stretch; }
.v4-customer-editor-card { min-width:0; margin:0; padding:.95rem; }
.v4-customer-editor-card.is-wide { grid-column:1/-1; }
.v4-customer-editor-card > h2,.v4-customer-card-heading h2 { margin:0; font-size:1rem; letter-spacing:-.01em; }
.v4-customer-editor-card > h2 { margin-bottom:.75rem; padding-bottom:.58rem; border-bottom:1px solid var(--v4-line,#dfe7e2); }
.v4-customer-card-heading { display:flex; align-items:center; justify-content:space-between; gap:.65rem; margin-bottom:.7rem; padding-bottom:.58rem; border-bottom:1px solid var(--v4-line,#dfe7e2); }
.v4-customer-grid { display:grid; grid-template-columns:repeat(12,minmax(0,1fr)); gap:.75rem; }
.v4-customer-field { display:flex; flex-direction:column; min-width:0; gap:.28rem; scroll-margin-top:150px; }
.v4-customer-field.span-2 { grid-column:span 2; }.v4-customer-field.span-3 { grid-column:span 3; }.v4-customer-field.span-4 { grid-column:span 4; }.v4-customer-field.span-6 { grid-column:span 6; }.v4-customer-field.span-8 { grid-column:span 8; }.v4-customer-field.span-12,.v4-customer-card-note { grid-column:1/-1; }
.v4-customer-label { display:flex; align-items:center; justify-content:space-between; gap:.45rem; min-height:22px; margin:0; color:#33443b; font-size:.75rem; font-weight:750; }
.v4-customer-field .form-control,.v4-customer-field .form-select { min-width:0; border-color:var(--v4-line-strong,#c9d5ce); border-radius:10px; background-color:#fff; color:var(--v4-ink,#17271f); font-size:.86rem; }
.v4-customer-field textarea.form-control { min-height:105px; resize:vertical; }
.v4-customer-field .form-control:focus,.v4-customer-field .form-select:focus { border-color:var(--v4-green-700,#176b47); box-shadow:0 0 0 3px rgba(33,131,89,.13); }
.v4-customer-field .form-control[readonly] { border-style:dashed; background:#f3f6f4; color:#46534c; cursor:not-allowed; }
.v4-customer-select-search { min-height:38px !important; font-size:.76rem !important; }
.v4-customer-field-help,.v4-customer-field-error,.v4-customer-card-note,.v4-customer-empty-note { margin:0; font-size:.7rem; line-height:1.4; }
.v4-customer-field-error { color:var(--v4-red,#b63238) !important; font-weight:700; }
.v4-customer-card-note,.v4-customer-empty-note { color:var(--v4-muted,#617068); }
.v4-customer-required-badge { flex:0 0 auto; padding:.14rem .38rem; border:1px solid transparent; border-radius:999px; font-size:.63rem; font-weight:750; }
.v4-customer-required-badge.is-optional { color:#748079; }
.v4-customer-required-badge.is-pending { border-color:#dda33e; background:#fff6df; color:#7b5108; }
.v4-customer-required-badge.is-filled { border-color:#80c29f; background:#eaf7f0; color:#176b47; }
.v4-customer-required-badge.is-error { border-color:#dc999d; background:#fff0f1; color:var(--v4-red,#b63238); }
.v4-customer-field:has(.v4-customer-required-badge.is-pending) .form-control,.v4-customer-field:has(.v4-customer-required-badge.is-pending) .form-select { border-color:#c98717; box-shadow:inset 3px 0 0 #c98717; }
.v4-customer-field.has-error .form-control,.v4-customer-field.has-error .form-select { border-color:var(--v4-red,#b63238); background:#fff6f6; box-shadow:inset 3px 0 0 var(--v4-red,#b63238); }
.v4-customer-person-type { grid-column:1/-1; }
.v4-customer-person-type legend,.v4-customer-address-mode legend { float:none; width:auto; margin:0 0 .3rem; }
.v4-customer-segmented { display:flex; flex-wrap:wrap; gap:.3rem; }
.v4-customer-segmented label { position:relative; margin:0; }
.v4-customer-segmented input { position:absolute; opacity:0; pointer-events:none; }
.v4-customer-segmented span { display:inline-flex; align-items:center; min-height:44px; padding:.45rem .7rem; border:1px solid var(--v4-line-strong,#c9d5ce); border-radius:9px; background:#fff; color:var(--v4-muted,#617068); font-size:.76rem; font-weight:700; cursor:pointer; }
.v4-customer-segmented input:checked + span { border-color:var(--v4-green-700,#176b47); background:#eaf7f0; color:var(--v4-green-700,#176b47); box-shadow:inset 0 0 0 1px var(--v4-green-700,#176b47); }
.v4-customer-segmented input:focus-visible + span { outline:3px solid rgba(33,131,89,.25); outline-offset:2px; }
.v4-customer-repeat { margin-bottom:.55rem; padding:.65rem; border:1px solid var(--v4-line,#dfe7e2); border-radius:11px; background:#fbfcfb; }
.v4-customer-repeat-header { display:flex; align-items:center; justify-content:space-between; gap:.6rem; margin-bottom:.55rem; }
.v4-customer-repeat-header strong { font-size:.78rem; }
.v4-customer-panel-toolbar { display:flex; align-items:center; justify-content:space-between; gap:1rem; margin-bottom:.7rem; }
.v4-customer-panel-toolbar,.v4-customer-panel-toolbar .btn { scroll-margin-top:150px; }
.v4-customer-panel-toolbar h2 { margin:0; font-size:1.05rem; }
.v4-customer-panel-toolbar p { margin:.15rem 0 0; font-size:.74rem; }
.v4-customer-address-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.7rem; align-items:start; }
.v4-customer-address { min-width:0; border:1px solid var(--v4-line,#dfe7e2); border-radius:13px; background:#fff; box-shadow:var(--v4-shadow-sm,0 8px 24px rgba(15,33,26,.06)); }
.v4-customer-address > summary { display:flex; align-items:center; justify-content:space-between; gap:.7rem; min-height:58px; padding:.65rem .75rem; list-style:none; cursor:pointer; }
.v4-customer-address > summary::-webkit-details-marker { display:none; }
.v4-customer-address > summary strong,.v4-customer-address > summary small { display:block; }
.v4-customer-address > summary small { margin-top:.1rem; color:var(--v4-muted,#617068); font-size:.68rem; font-weight:500; }
.v4-customer-address-body { padding:.1rem .75rem .75rem; border-top:1px solid var(--v4-line,#dfe7e2); }
.v4-customer-address-mode { margin:.65rem 0 !important; }
.v4-customer-cep-button { align-self:end; grid-column:span 3; }
.v4-customer-address-status { grid-column:1/-1; margin:.55rem 0 0; padding:.45rem .55rem; border-radius:8px; background:var(--v4-surface-soft,#f2f6f3); font-size:.7rem; }
.v4-customer-empty-address { grid-column:1/-1; padding:2rem 1rem; border:1px dashed var(--v4-line-strong,#c9d5ce); border-radius:13px; color:var(--v4-muted,#617068); text-align:center; }
.v4-customers-form-actions { position:sticky; z-index:14; bottom:.8rem; display:flex; align-items:center; justify-content:space-between; gap:1rem; margin-top:.75rem; padding:.72rem .9rem; border:1px solid var(--v4-line); border-radius:14px; background:rgba(255,255,255,.97); box-shadow:var(--v4-shadow-sm); }
.v4-customers-form-actions p { margin:0; font-size:.72rem; }
.v4-customers-form-actions > div,.v4-customer-error-actions { display:flex; flex-wrap:wrap; gap:.5rem; }
.v4-customers-form-actions .btn { display:inline-flex; align-items:center; justify-content:center; }
.v4-customer-error-actions { margin-top:.65rem; }

/* Detalhes do cliente. */
.v4-customer-detail-page { padding:.1rem 0 2rem; }
.v4-customer-detail-page .v4-customer-detail-heading { flex-wrap:wrap; gap:8px 16px; margin-bottom:12px; }
.v4-customer-detail-heading h1 { margin:0; font-size:clamp(1.2rem, 2vw, 1.6rem); overflow-wrap:anywhere; }
.v4-customer-detail-page.is-record-frame .v4-customer-detail-heading { display:contents; }
.v4-customer-detail-page.is-record-frame #v4-customer-detail-back { display:none; }
.v4-customer-detail-hero {
    display:flex;
    flex-direction:row;
    align-items:center;
    justify-content:space-between;
    flex-wrap:wrap;
    gap:12px;
    margin:0 0 12px;
    padding:12px 16px;
}
.v4-customer-detail-meta { display:flex; align-items:center; flex-wrap:wrap; gap:8px; color:var(--v4-muted); font-size:.78rem; }
.v4-customer-detail-actions,.v4-customer-detail-main-actions,.v4-customer-quick-actions,.v4-customer-related-actions {
    display:flex;
    align-items:stretch;
    flex-wrap:wrap;
    gap:8px;
}
.v4-customer-detail-actions { gap:8px 16px; }
.v4-customer-detail-page .v4-customer-detail-actions .btn,.v4-customer-detail-page .v4-customer-related-actions .btn {
    display:inline-flex;
    min-width:0;
    align-items:center;
    justify-content:center;
    gap:6px;
    padding:8px 12px;
    font-size:.82rem;
    line-height:1.2;
    white-space:normal;
}
.v4-customer-detail-actions svg,.v4-customer-related-actions svg { width:15px; height:15px; flex:none; }
.v4-customer-detail-cards { display:flex; flex-wrap:wrap; gap:12px; }
.v4-customer-detail-cards + .v4-customer-detail-cards { margin-top:12px; }
.v4-customer-detail-card { flex:1 1 245px; min-width:0; margin:0; padding:16px; }
.v4-customer-detail-extra .v4-customer-detail-card { flex-basis:360px; }
.v4-customer-detail-card h2 { margin:0 0 12px; font-size:.98rem; }
.v4-customer-detail-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(124px,100%),1fr)); gap:10px 12px; margin:0; }
.v4-customer-detail-contacts .v4-customer-detail-grid { grid-template-columns:1fr; }
.v4-customer-detail-page #v4-customers-status:empty,.v4-customer-detail-page #v4-customer-related-status:empty { display:none; }
.v4-customer-detail-grid dt { color:var(--v4-muted,#617068); font-size:.68rem; font-weight:700; }
.v4-customer-detail-grid dd { margin:0; color:var(--v4-ink,#17271f); font-size:.8rem; white-space:pre-wrap; overflow-wrap:anywhere; }
.v4-customer-technical { margin:.7rem 0 0; padding:.75rem .9rem; }
.v4-customer-technical > summary { cursor:pointer; color:var(--v4-muted,#617068); font-size:.76rem; font-weight:700; }
.v4-customer-technical .v4-customer-detail-grid { margin-top:.75rem; }
.v4-customer-related { margin-top:12px; padding:16px; }
.v4-customer-related .v4-customer-card-heading { margin-bottom:8px; }
.v4-customer-related h2 { margin:0; font-size:.98rem; }
.v4-customer-related-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.6rem; }
.v4-customer-related-block { min-width:0; padding:.7rem; border:1px solid var(--v4-line,#dfe7e2); border-radius:10px; background:#fbfcfb; }
.v4-customer-related-block > strong { font-size:.78rem; }.v4-customer-related-count { float:right; font-size:.9rem; font-weight:800; }
.v4-customer-related-block ul { display:grid; gap:.28rem; margin:.55rem 0 0; padding-left:1rem; font-size:.73rem; }
.v4-customer-related-block p { margin:.5rem 0 0; font-size:.72rem; }

@media(max-width:1199.98px) {
    .v4-customers-filter-fields { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media(min-width:992px) {
    #v4-customer-primary-contacts > :is(.span-4,.span-8) { grid-column:span 6; }
}
@media(max-width:991.98px) {
    .v4-customers-summary { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .v4-customer-card-grid { grid-template-columns:1fr; }.v4-customer-editor-card.is-wide { grid-column:auto; }
    .v4-customer-grid { grid-template-columns:repeat(6,minmax(0,1fr)); }
    .v4-customer-field.span-2,.v4-customer-field.span-3 { grid-column:span 3; }
    .v4-customer-field.span-4,.v4-customer-field.span-6,.v4-customer-field.span-8,.v4-customer-field.span-12,.v4-customer-person-type,.v4-customer-card-note { grid-column:1/-1; }
    .v4-customer-address-list { grid-template-columns:1fr; }
}
@media(min-width:768px) and (max-width:991.98px) {
    #v4-customer-identity > .span-6,
    #v4-customer-primary-contacts > :is(.span-4,.span-8) { grid-column:span 3; }
}
@media(max-width:767.98px) {
    .v4-customers-form-actions { position:static; }
    .v4-customers-search-main { grid-template-columns:minmax(0,1fr) auto; }.v4-customers-new { grid-column:1/-1; }
    .v4-customers-filter-fields { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .v4-customers-list-tools { align-items:stretch; flex-direction:column; }.v4-customers-list-order { width:100%; }
    .v4-customers-table { overflow:visible; border:0 !important; background:transparent !important; box-shadow:none !important; }
    .v4-customers-table table,.v4-customers-table tbody,.v4-customers-table tr,.v4-customers-table td { display:block; width:100%; }
    .v4-customers-table thead { display:none; }
    .v4-customers-table tr { margin-bottom:.65rem; padding:.65rem .75rem; border:1px solid var(--v4-line,#dfe7e2); border-radius:13px; background:#fff; box-shadow:var(--v4-shadow-sm,0 8px 24px rgba(15,33,26,.06)); }
    .v4-customers-table td { display:grid; grid-template-columns:minmax(92px,.38fr) minmax(0,1fr); gap:.55rem; min-width:0 !important; padding:.35rem 0; border:0; }
    .v4-customers-table td::before { content:attr(data-label); color:var(--v4-muted,#617068); font-size:.67rem; font-weight:750; }
    .v4-customers-table .v4-customer-row-actions { justify-content:stretch; }.v4-customer-row-actions .btn { flex:1; }
    .v4-customers-empty-row td { display:block; text-align:center; }.v4-customers-empty-row td::before { display:none; }
    .v4-customer-related-grid { grid-template-columns:1fr; }
}
@media(max-width:575.98px) {
    .v4-customers { max-width:100%; }
    .v4-customers-search-main { grid-template-columns:1fr; }.v4-customers-search-main .btn { width:100%; }
    .v4-customers-filter-fields,.v4-customers-summary { grid-template-columns:1fr 1fr; }
    .v4-customers-summary-item { min-height:54px; }
    .v4-customers-list-order { display:grid; grid-template-columns:auto minmax(0,1fr); }.v4-customers-list-order .form-select { width:100%; }
    .v4-customers-pagination { justify-content:space-between; }.v4-customers-pagination .btn { min-width:92px; }
    .v4-customer-editor-workspace { top:66px; }.v4-customer-editor-tab { min-height:44px; }
    .v4-customer-grid { grid-template-columns:1fr; }.v4-customer-field.span-2,.v4-customer-field.span-3,.v4-customer-field.span-4,.v4-customer-field.span-6,.v4-customer-field.span-8,.v4-customer-field.span-12,.v4-customer-person-type,.v4-customer-card-note,.v4-customer-cep-button { grid-column:auto; }
    .v4-customer-panel-toolbar { align-items:stretch; flex-direction:column; }.v4-customer-panel-toolbar .btn { width:100%; }
    .v4-customer-segmented { display:grid; grid-template-columns:1fr 1fr; }.v4-customer-segmented span { justify-content:center; width:100%; }
    .v4-customers-form-actions { align-items:stretch; flex-direction:column; gap:.5rem; padding:.62rem; }.v4-customers-form-actions > div { display:grid; grid-template-columns:1fr 1.25fr; }.v4-customers-form-actions .btn { width:100%; }
    .v4-customer-detail-hero,.v4-customer-detail-card,.v4-customer-related { padding:12px; }
    .v4-customer-detail-page .v4-customer-detail-heading { align-items:flex-start; flex-direction:column; gap:4px; }
    .v4-customer-detail-actions { display:grid; width:100%; }
    .v4-customer-detail-main-actions,.v4-customer-quick-actions,.v4-customer-related-actions {
        display:grid;
        grid-template-columns:repeat(auto-fit,minmax(min(84px,100%),1fr));
    }
    .v4-customer-detail-page .v4-customer-detail-actions .btn,.v4-customer-detail-page .v4-customer-related-actions .btn { padding-inline:6px; }
    .v4-customer-related .v4-customer-card-heading { align-items:stretch; flex-direction:column; }
}
@media(prefers-reduced-motion:reduce) { .v4-customers * { scroll-behavior:auto !important; transition:none !important; } }
