.crm-admin{min-width:0;font-size:18px}.crm-admin .admin-toolbar{gap:20px;align-items:flex-start}.crm-admin .admin-toolbar h1{margin-bottom:10px}.crm-admin .panel{padding:24px;margin:22px 0;border:1px solid var(--line,#e5dfd3);border-radius:18px;background:var(--paper,#fff)}.crm-search{display:flex;flex-wrap:wrap;gap:18px;align-items:end}.crm-search label:first-child{flex:1;min-width:210px}.crm-search label{display:grid;gap:8px}.crm-admin input,.crm-admin select,.crm-admin textarea,[data-crm-form] input,[data-crm-form] select,[data-crm-form] textarea{font-size:18px;min-height:48px;max-width:100%}.crm-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.crm-summary p{margin:8px 0;overflow-wrap:anywhere}.crm-admin table{font-size:18px}.crm-admin td,.crm-admin th{padding:18px 16px;vertical-align:top}.crm-admin td{overflow-wrap:anywhere}.crm-admin small{display:block;font-size:16px;margin-top:6px;color:var(--muted,#626f66)}.crm-admin .actions{flex-wrap:wrap;gap:10px}.crm-admin details summary{cursor:pointer;font-weight:600}.crm-admin [data-crm-preview]{max-width:100%;overflow-x:auto}.crm-admin [data-crm-preview] table{min-width:950px}.crm-legacy-picker{border:1px solid #ddd4c4;border-radius:12px;padding:18px;display:grid;gap:16px;margin:24px 0}#detail:has([data-crm-form]){width:min(900px,calc(100% - 24px));max-width:900px}#detail [data-crm-form]{display:grid;gap:18px}#detail [data-crm-form] .grid{gap:18px}#detail [data-crm-form] label:not(.checkbox-line){display:grid;gap:8px}#detail [data-crm-form] input[type=checkbox]{min-height:20px;width:20px;flex-shrink:0}.crm-admin .checkbox-line input{min-height:20px}
@media(max-width:650px){.crm-summary{grid-template-columns:1fr}.crm-admin .panel{padding:18px}.crm-admin .admin-toolbar .actions{width:100%}.crm-admin .admin-toolbar .btn{flex:1}.crm-admin .table-scroll{overflow-x:auto;max-width:100%}.crm-admin table{min-width:640px}.crm-admin .admin-toolbar h1{font-size:32px}#detail [data-crm-form] .grid.two{grid-template-columns:1fr}.crm-search{display:grid}.crm-search label:first-child{min-width:0}.crm-admin .btn{white-space:normal}}
[data-customer-merge-select]{width:22px;height:22px;min-height:22px!important;cursor:pointer}#detail:has([data-customer-merge-pick], [data-customer-merge-confirm]){width:min(1000px,calc(100% - 24px));max-width:1000px}#detail:has([data-customer-merge-confirm]) .table-scroll{overflow:auto;max-width:100%}#detail:has([data-customer-merge-confirm]) table{min-width:700px;font-size:16px}.crm-merge-targets{display:grid;gap:16px;border:1px solid #ddd4c4;border-radius:12px;padding:20px;margin:20px 0}.crm-merge-targets input{width:20px;height:20px;flex-shrink:0}.crm-merge-profiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:24px 0}.crm-merge-profiles article{padding:16px;border:1px solid #ddd4c4;border-radius:12px;overflow-wrap:anywhere}.crm-merge-profiles h3{margin-top:0;font-size:22px}[data-customer-merge-confirm]{display:grid;gap:18px;margin-top:24px}[data-customer-merge-toolbar] span{font-size:16px;color:#626f66}@media(max-width:650px){.crm-merge-profiles{grid-template-columns:1fr}}
.crm-search label:nth-child(2){flex:1;min-width:210px}.crm-search select{width:100%}.crm-bought-cell{min-width:0;max-width:none}.crm-bought-products{display:grid;gap:8px}.crm-bought-product{display:block;padding:7px 10px;border-radius:8px;background:#f0f3eb;color:#184d3b;line-height:1.45;overflow-wrap:anywhere}.crm-bought-count{display:inline-block;white-space:nowrap;font-size:16px;color:#626f66;margin-left:6px}.crm-bought-product.is-filtered{box-shadow:inset 3px 0 #a87936;background:#fbf1dd}.crm-bought-products details summary{font-size:16px;margin:4px 0 8px}@media(max-width:650px){.crm-search label:nth-child(2){min-width:0}.crm-bought-cell{min-width:0}}
.crm-admin .crm-search .btn{width:auto;flex:0 0 auto;margin:0}

/* Fit the customer list inside its workspace; wrap text instead of stretching the row. */
.crm-customer-list{min-width:0;width:100%}.crm-customer-list .table-scroll{width:100%;max-width:100%;overflow:visible}.crm-admin .crm-customer-list table{width:100%;min-width:0;table-layout:fixed}.crm-admin .crm-customer-list th,.crm-admin .crm-customer-list td{padding:14px 8px;white-space:normal;overflow-wrap:anywhere}.crm-customer-list th:nth-child(1){width:8%}.crm-customer-list th:nth-child(2){width:18%}.crm-customer-list th:nth-child(3){width:16%}.crm-customer-list th:nth-child(4){width:13%}.crm-customer-list th:nth-child(5){width:19%}.crm-customer-list th:nth-child(6){width:10%}.crm-customer-list th:nth-child(7){width:16%}.crm-customer-list .crm-bought-cell{min-width:0;max-width:none}.crm-customer-list .crm-bought-products{min-width:0;gap:6px}.crm-customer-list .crm-bought-product{padding:6px 8px;min-width:0}.crm-admin .crm-customer-list td:last-child .btn{width:100%;min-width:0;max-width:100%;min-height:44px;padding:9px 6px;white-space:normal}
@media(max-width:900px){
 .crm-customer-list table,.crm-customer-list tbody{display:block;width:100%}.crm-customer-list thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.crm-customer-list .crm-customer-row{display:block;position:relative;border:1px solid var(--line,#e5dfd3);border-radius:14px;background:var(--paper,#fff);padding:16px;margin-bottom:14px}.crm-admin .crm-customer-list .crm-customer-row td{display:grid;grid-template-columns:112px minmax(0,1fr);gap:12px;width:auto;border:0;padding:9px 0;font-size:17px}.crm-customer-row td::before{content:attr(data-label);font-size:15px;font-weight:600;color:var(--muted,#626f66);align-self:start}.crm-admin .crm-customer-list .crm-customer-row td:first-child{position:absolute;top:16px;right:16px;display:block;width:22px;padding:0}.crm-customer-row td:first-child::before,.crm-customer-row td:nth-child(2)::before,.crm-customer-row td:last-child::before{display:none}.crm-admin .crm-customer-list .crm-customer-row td:nth-child(2){display:block;padding:0 38px 12px 0;border-bottom:1px solid var(--line,#e5dfd3);margin-bottom:8px}.crm-customer-row td:nth-child(2) strong{font-size:20px;line-height:1.5}.crm-admin .crm-customer-list .crm-customer-row td:last-child{display:block;padding-bottom:0}.crm-admin .crm-customer-list .crm-customer-row td:last-child .btn{width:100%;padding:11px 14px}.crm-customer-list tr:not(.crm-customer-row) td{display:block}.crm-customer-list .crm-bought-products{width:100%}.crm-customer-list .crm-bought-count{margin-left:3px}
}
@media(max-width:360px){.crm-admin .crm-customer-list .crm-customer-row td{grid-template-columns:96px minmax(0,1fr);gap:8px}.crm-customer-list .crm-customer-row{padding:14px}}

.crm-customer-value{min-width:0;overflow-wrap:anywhere}

@media(min-width:901px){.crm-admin .crm-customer-list th{overflow-wrap:normal;word-break:normal;line-height:1.5}.crm-admin .crm-customer-list td{vertical-align:middle}.crm-admin .crm-customer-list th:first-child,.crm-admin .crm-customer-list td:first-child,.crm-admin .crm-customer-list th:nth-child(6),.crm-admin .crm-customer-list td:nth-child(6){text-align:center;white-space:nowrap;overflow-wrap:normal}.crm-admin .crm-customer-list td:last-child .btn{white-space:nowrap}.crm-customer-list [data-customer-merge-select]{display:block;margin:0 auto}}

.crm-pagination{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px 20px;margin:20px 0}.crm-pagination-summary{font-size:16px;color:var(--muted)}.crm-pagination-controls,.crm-page-jump,.crm-page-jump label{display:flex;align-items:center;gap:10px}.crm-page-jump{margin:0}.crm-page-jump label{font-size:17px}.crm-admin .crm-page-jump input{width:76px;min-width:0;min-height:44px;padding:8px;text-align:center}.crm-admin .crm-pagination .btn{min-height:44px;margin:0;padding:9px 14px;white-space:nowrap}.crm-pagination button:disabled{opacity:.45;cursor:default;transform:none}.crm-pagination-controls{flex-wrap:wrap}@media(max-width:600px){.crm-pagination{justify-content:center}.crm-pagination-summary{width:100%;text-align:center}.crm-pagination-controls{display:grid;grid-template-columns:1fr 1fr;width:100%}.crm-page-jump{grid-column:1 / -1;grid-row:1;justify-content:center}.crm-pagination-controls>.btn{width:100%}}

.crm-page-jump label,.crm-page-jump>span{flex:0 0 auto;white-space:nowrap}.crm-admin .crm-page-jump input{flex:0 0 76px;width:76px}.crm-admin .crm-page-jump .btn{flex:0 0 auto;width:auto}
