.customer-toolbar{display:flex;align-items:center;gap:14px;margin:10px 0 18px}.customer-search{flex:1}.customer-search input{font-size:13px}.customer-new{width:auto;margin:0;padding:0 20px;white-space:nowrap}.customer-new .icon{width:19px}
.address-heading{font-size:12px;font-weight:600;border-top:1px solid var(--line);padding-top:18px;margin-top:3px}
.customer-sharing{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}.customer-sharing p{font-size:12px;color:var(--text-secondary);margin:0}.customer-sharing button{font-size:12px;white-space:nowrap}.customer-settings{width:520px;max-height:calc(100dvh - 32px);overflow:auto}.customer-settings h2{margin-top:0}.customer-settings fieldset{border:0;padding:0;margin:20px 0;display:grid;gap:12px}.customer-settings label{display:flex;align-items:flex-start;gap:12px;padding:16px;border:1px solid var(--line);border-radius:16px;background:var(--surface-field);cursor:pointer}.customer-settings label:has(input:checked){border-color:var(--text-link)}.customer-settings input{accent-color:#317be8;margin-top:3px}.customer-settings strong{font-size:14px}.customer-settings small{display:block;font-size:12px;font-weight:400;color:var(--text-secondary);margin-top:6px;line-height:1.5}.customer-settings .customer-settings-note{font-size:12px}
.address-street-row,.address-city-row{display:grid;gap:16px;min-width:0}.address-street-row{grid-template-columns:140px minmax(0,1fr)}.address-city-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 70px}.address-street-row>label,.address-city-row>label{min-width:0}.customer-dialog .cep-status:empty{display:none}.customer-dialog .cep-status:not(:empty){margin-top:-8px}
.customer-dialog .cep-status{font-size:11px;line-height:1.5;align-self:center;margin:0;color:var(--text-subtle)}
.customer-fields .field-validation{display:block;font-size:11px;line-height:1.4;color:var(--text-error);font-weight:400;margin-top:6px}
.customer-fields [aria-invalid=true]{border-color:var(--text-error)!important}
.customer-fields input:not([type=checkbox]):not([type=radio]),.customer-fields textarea{font-weight:400}
.customer-filter{display:flex;align-items:center;gap:4px;margin-bottom:18px;flex-wrap:wrap}.customer-filter button{border:1px solid transparent;background:transparent;color:var(--text-secondary);padding:10px 17px;font-size:12px;border-radius:14px}.customer-filter button[aria-pressed=true]{background:var(--surface-field);border-color:var(--line);color:var(--text-link);box-shadow:0 3px 9px #19355209}.customer-count{margin-left:auto;font-size:11px;color:var(--text-subtle)}
.customer-results{border-radius:23px;overflow:auto;min-height:150px}.customer-results[aria-busy=true]{opacity:.55;pointer-events:none}.customer-results table{width:100%;border-collapse:collapse;text-align:left;table-layout:fixed}.customer-results th{padding:16px 20px;font-size:10px;color:var(--text-subtle);font-weight:600;border-bottom:1px solid var(--line)}.customer-results th:nth-child(1){width:35%}.customer-results th:nth-child(2){width:30%}.customer-results th:nth-child(3){width:15%}.customer-results th:nth-child(4){width:20%}.customer-results td{padding:18px 20px;font-size:12px;border-bottom:1px solid var(--line);overflow-wrap:anywhere}.customer-results tr:last-child td{border-bottom:0}.customer-results tbody tr:hover{background:#83a8d50b}.customer-identity strong{font-size:13px;font-weight:600;display:block}.customer-results small{display:block;font-size:10px;color:var(--text-subtle);margin-top:6px}.customer-action{text-align:right}.customer-action button{font-size:11px;padding:8px 12px;min-height:36px}.customer-badge{display:inline-block;padding:5px 9px;border-radius:12px;background:#8d9bab19;color:var(--text-subtle);font-size:10px}.customer-badge.active{background:#329c7520;color:#267254}:root[data-theme=dark] .customer-badge.active{color:#98ddbb}
.customer-empty{text-align:center;padding:45px 20px}.customer-empty .module-icon{margin:0 auto 16px}.customer-empty h2{font-size:18px;margin:0 0 10px}.customer-empty p{font-size:12px;color:var(--text-secondary)}.customer-pagination{display:flex;align-items:center;justify-content:flex-end;gap:16px;margin:18px 0}.customer-pagination span{font-size:11px;color:var(--text-subtle)}.customer-pagination button:disabled{opacity:.4;cursor:default}.customer-notice{padding:12px 16px;background:#4eaa7920;color:var(--text-primary);border-radius:13px;margin-bottom:14px;font-size:12px}
.customer-dialog h2{margin:0;font-size:24px}.customer-dialog .eyebrow{font-size:9px;margin-bottom:8px}.customer-dialog .customer-code{font-size:11px;margin:8px 0 0;color:var(--text-subtle)}.customer-close{padding:7px;border-radius:50%}.customer-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;border:0;margin:0;padding:0}.customer-fields legend{font-size:12px;font-weight:600;margin-bottom:14px}.customer-fields .full,.person-type{grid-column:1/-1}.customer-fields label{margin:0;line-height:1.5;font-size:11px}.customer-fields input:not([type=checkbox]):not([type=radio]),.customer-fields textarea{display:block;width:100%;border:1px solid var(--line);border-radius:12px;background:var(--surface-field);color:var(--text-primary);padding:12px;font:inherit;font-size:13px;margin-top:7px;outline:none;--field-fill:var(--surface-field)}.customer-fields input:focus,.customer-fields textarea:focus{border-color:#6c9bea;box-shadow:0 0 0 3px #5586d617}.customer-fields textarea{resize:vertical;min-height:80px}.customer-fields textarea::placeholder{color:var(--text-placeholder)}.person-type{display:flex;gap:14px}.person-type label,.customer-active{display:flex;align-items:center;gap:7px}.person-type input,.customer-active input{width:16px;height:16px;accent-color:#317be8;margin:0}.customer-fields .optional{font-weight:400;color:var(--text-subtle);margin-left:4px}.customer-form-hint{font-size:11px!important;margin:-9px 0 0!important}.customer-fields:disabled{opacity:.8}.customer-dialog-actions{display:flex;justify-content:flex-end;align-items:center;gap:10px;border-top:1px solid var(--line);padding-top:18px;margin-top:20px}.customer-dialog-actions .submit-button{width:auto;padding:0 20px;margin:0}.customer-editor-loading{font-size:13px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:900px){.customer-results th,.customer-results td{padding:14px 12px}}
@media(max-width:600px){.customer-fields .address-street-row>label,.customer-fields .address-city-row>label{grid-column:auto}.address-street-row{grid-template-columns:115px minmax(0,1fr)}.address-city-row{grid-template-columns:minmax(0,1fr) 65px}.customer-fields .address-city-row>label:first-child{grid-column:1/-1}}
@media(max-width:420px){.address-street-row{grid-template-columns:minmax(0,1fr)}.address-street-row>label:first-child{max-width:140px}}
@media(max-width:600px){.customer-toolbar{flex-wrap:wrap}.customer-search{flex-basis:100%}.customer-new{width:100%}.customer-count{width:100%;margin:10px 0 0 12px}.customer-results table,.customer-results tbody{display:block}.customer-results thead{display:none}.customer-results tr{display:grid;grid-template-columns:minmax(0,1fr) auto;padding:16px;gap:14px;border-bottom:1px solid var(--line)}.customer-results td{display:block;padding:0;border:0}.customer-identity{grid-column:1}.customer-contact{grid-column:1;grid-row:2}.customer-situation{grid-column:2;grid-row:1}.customer-action{grid-column:2;grid-row:2;align-self:end}.customer-pagination{justify-content:space-between;gap:8px}.customer-dialog{padding:22px 18px}.customer-fields{grid-template-columns:1fr}.customer-fields label,.customer-fields .full{grid-column:1}.customer-fields input:not([type=checkbox]):not([type=radio]),.customer-fields textarea{font-size:16px}.customer-search input{font-size:16px}}
@media(min-width:601px){.customer-results table{min-width:850px}.customer-results th:nth-child(1){width:23%}.customer-results th:nth-child(2){width:21%}.customer-results th:nth-child(3){width:20%}.customer-results th:nth-child(4){width:15%}.customer-results th:nth-child(5){width:10%}.customer-results th:nth-child(6){width:11%}}
@media(max-width:600px){.customer-sharing{align-items:flex-start;flex-direction:column;gap:10px}.customer-origin{grid-column:1/-1;grid-row:3}.customer-origin::before{content:'Loja / filial de origem';display:block;font-size:10px;color:var(--text-subtle);margin-bottom:6px}.customer-created{grid-column:1/-1;grid-row:4}.customer-created::before{content:'Cadastrado em';display:block;font-size:10px;color:var(--text-subtle);margin-bottom:6px}}
.customer-settings input[type=radio]{width:18px;height:18px;flex:0 0 18px;padding:0;margin:2px 0 0}.customer-settings label>span{min-width:0;flex:1}
.customer-pagination[hidden]{display:none}

.customer-results .catalog-barcode{display:flex;align-items:center;gap:5px;margin-bottom:4px}
.catalog-barcode .icon{width:14px;height:14px;flex:0 0 14px;color:var(--text-subtle)}
.catalog-barcode>span:not(.sr-only){min-width:0;overflow-wrap:anywhere}
.catalog-row-actions{display:flex;justify-content:flex-end;align-items:center;gap:6px}
.customer-action .catalog-row-action{position:relative;display:inline-flex;align-items:center;justify-content:center;flex:0 0 36px;width:36px;height:36px;padding:0;border:1px solid var(--line);border-radius:12px;background:transparent;color:var(--text-secondary);box-shadow:none;cursor:pointer}
.catalog-row-action .icon{width:18px;height:18px}
.customer-action .catalog-row-action:hover,.customer-action .catalog-row-action:focus-visible{background:var(--surface-hover);color:var(--text-link);border-color:var(--text-link)}
.customer-action .catalog-row-action:active{background:var(--surface-pressed)}
.customer-action .catalog-row-action:focus-visible{outline:2px solid var(--text-link);outline-offset:2px}
@media(max-width:600px){.customer-results .catalog-action-cell{grid-column:1/-1;grid-row:5;padding-top:8px}.customer-action .catalog-row-action{width:44px;height:44px;flex-basis:44px}}

.catalog-stock strong{display:block;color:var(--text-link);font-size:16px;font-variant-numeric:tabular-nums}
.customer-results .catalog-stock small{display:none}
.products-section .customer-results{max-width:100%;scrollbar-width:thin;scrollbar-color:var(--scroll-thumb) transparent}
@media(min-width:601px){
.products-section .customer-results table{table-layout:auto;min-width:1000px;width:100%}
.products-section .customer-results th:nth-child(n){width:auto}
.products-section .customer-results th,.products-section .customer-results td{white-space:nowrap;overflow-wrap:normal;word-break:normal;padding-left:16px;padding-right:16px}
.products-section .customer-results th:first-child{width:30%}
.products-section .customer-results th:last-child{width:152px;min-width:152px}
.products-section .customer-results .supplier-category-tags{flex-wrap:nowrap}
.products-section .customer-results .category-tag,.products-section .customer-results .catalog-barcode>span:not(.sr-only){overflow-wrap:normal;white-space:nowrap}
}
@media(max-width:600px){.customer-results .catalog-stock{grid-column:1;grid-row:5}.customer-results .catalog-stock small{display:block;margin:0 0 5px}.products-section .customer-results .catalog-action-cell{grid-row:6}}

/* Mobile catalogs use compact cards, independent of the desktop table columns. */
@media(max-width:600px){
.products-section .customer-toolbar{display:grid;grid-template-columns:minmax(0,1fr) 48px;gap:10px}
.products-section .customer-search{grid-column:1/-1;min-width:0}
.products-section .customer-new{grid-column:1;width:100%;min-width:0}
.products-section .catalog-scan{grid-column:2;grid-row:2;width:48px;height:48px;padding:12px;align-self:center}
.products-section .customer-results:has(table){background:transparent;border:0;box-shadow:none;backdrop-filter:none;overflow:visible;min-height:0;border-radius:0}
.products-section .customer-results table{min-width:0;width:100%}
.products-section .customer-results tbody{display:grid;gap:12px}
.products-section .customer-results tr{position:relative;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:auto auto auto auto;gap:14px 12px;padding:16px;border:1px solid var(--border-surface);border-radius:20px;background:var(--surface-glass);align-content:start}
.products-section .customer-results td{min-width:0;white-space:normal;overflow-wrap:anywhere;padding:0;border:0}
.products-section .customer-results .customer-identity{grid-column:1/-1;grid-row:1;padding-right:58px}
.products-section .customer-identity strong{font-size:14px;line-height:1.4}
.products-section .customer-results .customer-situation{position:absolute;top:16px;right:16px;grid-column:auto;grid-row:auto}
.products-section .customer-results .customer-contact{grid-column:1/-1;grid-row:2;display:grid;grid-template-columns:1fr 1fr;gap:6px 12px;padding-top:12px;border-top:1px solid var(--line)}
.products-section .customer-contact>span{grid-column:1/-1;font-size:12px}
.products-section .customer-contact>small{margin:0;font-size:12px}
.products-section .customer-results .customer-origin{grid-column:1;grid-row:3}
.products-section .customer-results .customer-created{grid-column:2;grid-row:3}
.products-section .customer-origin::before,.products-section .customer-created::before{content:attr(data-label);font-size:10px;line-height:1.4;margin-bottom:5px}
.products-section .customer-results .catalog-stock{grid-column:1;grid-row:4;align-self:center;padding-top:10px}
.products-section .customer-results .catalog-stock small{font-size:11px;margin-bottom:3px}
.products-section .catalog-stock strong{font-size:20px}
.products-section .customer-results .catalog-action-cell{grid-column:2;grid-row:4;align-self:center;padding-top:10px}
.products-section .catalog-row-actions{gap:5px;justify-content:flex-end}
.products-section .customer-results .catalog-row-action{width:44px;height:44px;flex-basis:44px;border-radius:12px}
.products-section .supplier-category-tags{gap:5px;margin-top:8px}
.products-section .category-tag{padding:5px 8px;font-size:10px}
.products-section .product-thumb{width:44px;height:44px;margin-right:8px}
}
@media(max-width:359px){.products-section .customer-results tr{padding:12px;column-gap:8px}.products-section .customer-results .customer-situation{top:12px;right:12px}.products-section .customer-results .catalog-stock{grid-column:1/-1}.products-section .customer-results .catalog-action-cell{grid-column:1/-1;grid-row:5;padding-top:0}}

/* Shared mobile editor typography; keep touch targets independent of text size. */
@media(max-width:600px){
.customer-dialog{--dialog-field-font-size:14px;-webkit-text-size-adjust:100%;text-size-adjust:100%}
.customer-dialog h2{font-size:20px;line-height:1.25;letter-spacing:-.3px}
.customer-dialog .customer-dialog-header{gap:12px;margin-bottom:18px}
.customer-dialog .customer-fields{gap:14px}
.customer-dialog .customer-fields legend{font-size:12px;line-height:1.5;margin-bottom:12px}
.customer-dialog .customer-fields label{font-size:12px;line-height:1.4;font-weight:500}
.customer-dialog .customer-fields input:not([type=checkbox]):not([type=radio]),
.customer-dialog .customer-fields textarea,
.customer-dialog .category-picker input,
.customer-dialog .barcode-draft{font-size:var(--dialog-field-font-size);font-weight:400;line-height:1.45;min-height:44px;padding:11px 12px}
.customer-dialog .customer-fields input::placeholder,.customer-dialog .customer-fields textarea::placeholder{font-weight:400}
.customer-dialog .photo-details>strong,.customer-dialog .barcode-summary-copy strong{font-size:13px;font-weight:600;line-height:1.4}
.customer-dialog .photo-details>small,.customer-dialog .barcode-summary-copy small{font-size:11px;line-height:1.5}
.customer-dialog .customer-dialog-actions button{font-size:13px;min-height:44px}
.customer-dialog .customer-close{width:44px;height:44px;flex-shrink:0}
}
/* iOS needs 16 px editable text to avoid focus zoom; do not disable user zoom. */
@supports(-webkit-touch-callout:none){@media(max-width:600px){.customer-dialog{--dialog-field-font-size:16px}}}
/* Compact customer workspace; other catalog editors retain their own layout. */
.customers-section .customer-toolbar{gap:10px;margin:0 0 12px;align-items:center}
.customers-section .customer-search{min-width:0}
.customers-section .customer-search input{min-height:44px}
.customers-section .customer-new{min-height:44px;height:auto;padding:10px 14px;border-radius:12px;font-size:12px}
.customers-section .customer-filter{gap:4px;margin-bottom:12px}
.customers-section .customer-filter button{min-height:44px;padding:8px 12px;font-size:12px;border-radius:10px}
.customers-section .customer-count{font-size:11px}
.customers-section .customer-results{border-radius:16px}
.customers-section .customer-results td{padding:12px;vertical-align:middle;overflow-wrap:anywhere}
.customers-section .customer-results th{padding:10px 12px;font-size:11px}
.customers-section .customer-results small{margin-top:4px;line-height:1.4}
.customers-section .customer-action button{min-height:44px;padding:8px 12px;border:1px solid var(--line);border-radius:10px;box-shadow:none}
.customers-section .customer-badge.active{background:var(--surface-success);color:var(--text-success)}
.customers-section .customer-pagination{margin:12px 0;gap:10px}
.customers-section .customer-pagination button{min-height:44px;font-size:12px;padding:8px 12px;border-radius:10px}
.customer-editor{width:680px;border-radius:22px}
.customer-editor .mobile-dialog-scroll{padding:18px}
.customer-editor .customer-dialog-header{margin-bottom:16px;gap:12px;align-items:center}
.customer-editor .customer-dialog-header>div{min-width:0}
.customer-editor h2{font-size:22px;line-height:1.3}
.customer-editor .customer-close{width:44px;height:44px;padding:10px;flex-shrink:0;box-shadow:none}
.customer-editor .customer-fields{gap:12px;min-width:0}
.customer-editor .customer-fields label{min-width:0;font-size:12px}
.customer-editor .customer-fields input:not([type=checkbox]):not([type=radio]),.customer-editor .customer-fields textarea{box-sizing:border-box;min-width:0;max-width:100%;min-height:44px;padding:10px 12px;margin-top:5px;border-radius:11px;font-size:14px}
.customer-editor .customer-fields input:focus,.customer-editor .customer-fields textarea:focus{border-color:var(--text-link);box-shadow:0 0 0 2px var(--accent-ring)}
.customer-editor .customer-fields [aria-invalid=true]{border-color:var(--text-error)}
.customer-editor .person-type{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.customer-editor .person-type label{min-height:44px;border:1px solid var(--line);border-radius:11px;padding:8px 10px;background:var(--surface-field)}
.customer-editor .person-type label:has(input:checked){background:var(--accent-soft);border-color:var(--accent-ring)}
.customer-editor input:is([type=radio],[type=checkbox]){accent-color:var(--text-link);flex-shrink:0}
.customer-editor :is(.address-street-row,.address-city-row){gap:12px}
.customer-editor .address-heading{padding-top:12px;margin-top:0}
.customer-editor .customer-active{min-height:44px}
.customer-editor .customer-form-hint{line-height:1.45}
.customer-editor .customer-dialog-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:14px;padding-top:12px}
.customer-editor .customer-dialog-actions button{width:100%;min-width:0;min-height:44px;height:auto;margin:0;padding:10px 12px;font-size:12px;white-space:normal;border-radius:12px}
@media(max-width:600px){
 .customers-section .customer-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto}
 .customers-section .customer-new{width:auto;font-size:11px;padding:10px}
 .customers-section .customer-filter .customer-count{width:auto;margin:0 0 0 auto}
 .customers-section .customer-results tr{padding:14px;gap:10px 12px}
 .customers-section .customer-results td{padding:0}
 .customers-section .customer-origin,.customers-section .customer-created{font-size:11px}
 .customers-section .customer-origin::before,.customers-section .customer-created::before{margin-bottom:3px}
 .customer-editor .mobile-dialog-scroll{padding:12px}
 .customer-editor h2{font-size:20px}
 .customer-editor .customer-fields input:not([type=checkbox]):not([type=radio]),.customer-editor .customer-fields textarea{font-size:16px}
 .customer-editor .person-type label{font-size:11px}
}
@media(max-width:360px){.customers-section .customer-toolbar{grid-template-columns:minmax(0,1fr)}.customers-section .customer-new{justify-self:end}.customer-editor .person-type label{padding:8px;font-size:10px}}
.customer-editor .customer-fields .person-type>label{grid-column:auto}
@media(max-width:600px){
 .customers-section .customer-origin{grid-column:1;grid-row:3}
 .customers-section .customer-created{grid-column:2;grid-row:3}
 .customers-section .customer-results tr{grid-template-columns:minmax(0,1fr) minmax(76px,auto)}
}
/* Suppliers reuse the compact customer editor, with their category controls. */
.suppliers-section .customer-filter{align-items:center;gap:6px}
.suppliers-section .customer-filter .category-filter-button{margin:0;min-width:0;max-width:240px;font-size:11px;min-height:44px;padding:8px 12px;white-space:normal;overflow-wrap:anywhere}
.suppliers-section .supplier-category-tags{gap:5px;margin-top:8px}
.suppliers-section .supplier-category-tags .category-tag{padding:4px 7px;font-size:10px;border-radius:8px}
.supplier-editor .category-picker{padding:12px;border:1px solid var(--line);border-radius:14px;background:var(--surface-field);min-width:0}
.supplier-editor .category-picker-header{gap:8px;margin-bottom:8px}
.supplier-editor .category-picker-header p{font-size:12px;line-height:1.4}
.supplier-editor .category-picker-new{min-height:44px;padding:8px 10px;font-size:11px;border-radius:10px;box-shadow:none}
.supplier-editor .category-picker>input{box-sizing:border-box;margin:0;min-width:0;min-height:44px;font-size:14px;padding:10px 12px;border-radius:11px}
.supplier-editor .category-options{margin-top:8px;gap:6px;max-height:176px}
.supplier-editor button.category-tag{min-height:44px;padding:8px 10px;font-size:11px;white-space:normal;max-width:100%}
.supplier-editor button.category-tag:hover{background:var(--surface-hover)}
.supplier-editor button.category-tag:active{background:var(--surface-pressed)}
.supplier-editor button.category-tag[aria-pressed=true]{background:var(--accent-soft);border-color:var(--text-link);color:var(--text-link)}
@media(max-width:600px){
 .suppliers-section .customer-filter .category-filter-button{max-width:100%}
 .suppliers-section .customer-filter .customer-count{margin-left:auto}
 .supplier-editor .category-picker>input{font-size:16px}
}

/* Dense mobile records: retain full data, surfaces and comfortable actions. */
@media(max-width:600px){
 .customers-section .customer-results tr,.products-section .customer-results tr{padding:12px;gap:8px 10px}
 .products-section .customer-results tbody{gap:10px}
 .products-section .customer-results tr{border-radius:16px}
 .customers-section .customer-results small,.products-section .customer-results small{margin-top:3px;line-height:1.35}
 .customers-section .customer-origin::before,.customers-section .customer-created::before,.products-section .customer-origin::before,.products-section .customer-created::before{margin-bottom:3px}
 .customers-section .customer-created>small,.products-section .customer-created>small{display:inline;margin-left:4px}
 .customers-section .customer-origin>small,.products-section .customer-origin>small{display:inline;margin-left:4px}
 .customers-section .supplier-category-tags,.products-section .supplier-category-tags{margin-top:5px;gap:4px}
 .products-section .category-tag{padding:3px 6px;border-radius:7px}
 .products-section .customer-results .customer-situation{top:12px;right:12px}
 .products-section .customer-results .customer-contact{padding-top:8px;gap:4px 10px}
 .products-section .customer-results .customer-contact>small{margin:0}
 .products-section .customer-results .catalog-stock,.products-section .customer-results .catalog-action-cell{padding-top:4px}
 .products-section .customer-results .catalog-stock{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
 .products-section .customer-results .catalog-stock small{margin:0;max-width:72px;line-height:1.3}
 .products-section .catalog-stock strong{font-size:18px}
 .products-section .catalog-row-actions{gap:4px}
 .products-section .customer-results .catalog-row-action{width:44px;height:44px;flex-basis:44px;border-radius:10px}
 .customers-section .customer-results .customer-action button{min-height:44px}
}
@media(max-width:359px){
 .products-section .customer-results .catalog-stock{grid-column:1;grid-row:4}
 .products-section .customer-results .catalog-action-cell{grid-column:2;grid-row:4;padding-top:4px}
 .products-section .customer-results tr{grid-template-columns:minmax(0,1fr) minmax(140px,1fr)}
}
@media(max-width:600px){
 .products-section .customer-results tr{grid-template-columns:minmax(0,1fr) minmax(144px,1fr)}
 .products-section .customer-results .catalog-row-actions{gap:4px;flex-wrap:nowrap}
}

/* Compact mobile list controls, shared by people and catalog screens. */
@media(max-width:600px){
 .customers-section .customer-toolbar,.products-section .customer-toolbar,.catalog-compact .customer-toolbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:6px;margin:0 0 8px}
 .customers-section .customer-search,.products-section .customer-search{flex:1 0 100%;width:100%;min-height:44px;padding:0 12px;border-radius:12px;gap:8px;box-sizing:border-box}
 .customers-section .customer-search input,.products-section .customer-search input{min-height:44px;padding:10px 0;font-size:16px}
 .customers-section .customer-new,.products-section .customer-new{width:auto;min-height:44px;margin:0;padding:8px 12px;font-size:12px;border-radius:11px}
 .products-section .catalog-scan{width:44px;height:44px;min-height:44px;margin:0;padding:10px;border-radius:11px}
 .customers-section .customer-filter,.products-section .customer-filter{gap:4px;margin-bottom:10px;align-items:center}
 .customers-section .customer-filter>button,.products-section .customer-filter>button{min-height:44px;padding:8px 10px;font-size:11px;border-radius:10px}
 .customers-section .customer-filter .category-filter-button,.products-section .customer-filter .category-filter-button{margin:0;max-width:100%;gap:8px;white-space:normal;overflow-wrap:anywhere}
 .customers-section .customer-filter .customer-count,.products-section .customer-filter .customer-count{width:auto;margin:0 0 0 auto;font-size:10px;line-height:1.4}
}

/* Shared card choices retain native radio semantics. */
:root body.in-workspace dialog.mobile-scroll-shell .choice-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--space-inline);padding:2px}
:root body.in-workspace dialog.mobile-scroll-shell .choice-cards>label.choice-card{position:relative;display:grid;grid-template-columns:32px minmax(0,1fr) 18px;align-items:center;gap:var(--space-inline);min-height:68px;padding:var(--space-fields);margin:0;border:1px solid var(--line);border-radius:var(--action-radius);background:var(--surface-field);color:var(--text-primary);cursor:pointer;transition:background .15s,border-color .15s}
:root body.in-workspace dialog.mobile-scroll-shell .choice-cards input[type=radio]{position:absolute;inset:0;opacity:0;width:100%;height:100%;min-width:0;min-height:0;max-width:none;margin:0;cursor:inherit}
.choice-cards .choice-card-symbol{display:grid;place-items:center;width:32px;height:32px;color:var(--text-secondary)}
.choice-cards .choice-card-symbol>.icon{width:24px;height:24px}
.choice-cards .choice-card-copy{display:grid;gap:3px;min-width:0}
.choice-cards .choice-card-copy>strong{font-size:var(--type-label);font-weight:600;line-height:1.4}
.choice-cards .choice-card-copy>small{font-size:var(--type-meta);font-weight:400;color:var(--text-secondary);line-height:1.4}
.choice-cards .choice-card-check{display:grid;place-items:center;opacity:0;color:var(--text-link);width:18px;height:18px}
.choice-cards .choice-card-check>.icon{width:16px;height:16px}
:root body.in-workspace dialog.mobile-scroll-shell .choice-cards>label.choice-card:has(input:checked){border-color:var(--text-link);background:var(--accent-soft)}
.choice-cards>label:has(input:checked) .choice-card-symbol{color:var(--text-link)}
.choice-cards>label:has(input:checked) .choice-card-check{opacity:1}
:root body.in-workspace dialog.mobile-scroll-shell .choice-cards>label.choice-card:has(input:focus-visible){outline:2px solid var(--text-link);outline-offset:2px}
:root body.in-workspace dialog.mobile-scroll-shell .choice-cards>label.choice-card:has(input:disabled){cursor:default;opacity:.6}
@media(hover:hover){
 :root body.in-workspace dialog.mobile-scroll-shell .choice-cards>label.choice-card:has(input:not(:checked):not(:disabled)):hover{background:var(--surface-hover)}
 :root body.in-workspace dialog.mobile-scroll-shell .choice-cards>label.choice-card:has(input:checked:not(:disabled)):hover{background:color-mix(in srgb,var(--surface-hover) 50%,var(--accent-soft))}
}
@media(max-width:420px){
 :root body.in-workspace dialog.mobile-scroll-shell .choice-cards>label.choice-card{grid-template-columns:minmax(0,1fr) 18px;gap:4px var(--space-inline);padding:var(--space-inline)}
 .choice-cards .choice-card-symbol{grid-column:1;grid-row:1}
 .choice-cards .choice-card-check{grid-column:2;grid-row:1;align-self:start}
 .choice-cards .choice-card-copy{grid-column:1/-1;grid-row:2}
}
@media(prefers-reduced-motion:reduce){:root body.in-workspace dialog.mobile-scroll-shell .choice-cards>label.choice-card{transition:none}}
