.customer-search{display:flex;gap:12px;align-items:end;flex-wrap:wrap;margin-bottom:16px}.customer-search .field:first-child{flex:1;min-width:220px}.customer-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,350px),1fr));gap:16px;margin-bottom:18px}.customer-card{min-width:0;overflow-wrap:anywhere;display:flex;flex-direction:column;gap:10px}.customer-card h3,.customer-card p{margin:0}.customer-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;background:#f1f6ff;padding:12px;border-radius:8px}.customer-metrics span{font-size:12px}.customer-metrics strong{display:block;font-size:22px;color:#164c94}.customer-orders{max-height:180px;overflow:auto}.customer-card textarea{width:100%;resize:vertical;box-sizing:border-box}.customer-card small{color:#607089}.customer-card [data-save]{align-self:flex-start}
.customer-orders{display:flex;gap:8px;flex-wrap:wrap;padding:8px 0}.customer-dialog{width:min(760px,calc(100vw - 24px));max-height:90dvh;border:1px solid #d7e3f2;border-radius:16px;padding:20px;box-sizing:border-box;color:#20334d;overflow:auto;overflow-wrap:anywhere}.customer-dialog::backdrop{background:#1c2f4d88}.customer-dialog header{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:18px}.customer-dialog h2{font-size:20px;margin:0}.customer-dialog h3{font-size:16px}.customer-dialog textarea{width:100%;box-sizing:border-box;resize:vertical}.customer-event-form,.customer-legacy,.customer-timeline article,.customer-products article{border-top:1px solid #dfe7f2;padding:14px 0}.customer-event-form{display:grid;gap:10px}.customer-event-form h3{margin:0}.customer-event-form button{justify-self:start}.customer-detail-info p{margin:8px 0}.customer-timeline small{display:block;color:#607089;margin-top:6px}.customer-record-content{white-space:pre-wrap;overflow-wrap:anywhere}.customer-products p{margin:8px 0}.customer-card [data-customer]{align-self:flex-start;margin-top:auto}@media(max-width:480px){.customer-dialog{padding:14px}.customer-metrics{padding:8px;gap:4px}.customer-metrics strong{font-size:20px}}
.customer-dialog header{position:sticky;top:-20px;background:#fff;z-index:1;padding:14px 0;border-bottom:1px solid #dfe7f2}.customer-dialog header button{flex-shrink:0;white-space:nowrap}@media(max-width:480px){.customer-dialog header{top:-14px}}
.customer-product-row{display:flex;align-items:center;gap:12px;border-top:1px solid #dfe7f2;padding:16px 0}.customer-product-photo{flex:0 0 64px;width:64px;min-height:64px;display:grid;place-items:center;color:#71819a;text-align:center;font-size:11px}.customer-product-photo button{width:64px;height:64px;padding:3px;border-radius:8px}.customer-product-photo img{display:block;width:100%;height:100%;object-fit:contain}.customer-product-copy{min-width:0;flex:1}.customer-product-copy>strong{display:block;margin:5px 0}.customer-product-copy>small,.customer-product-quantity small{display:block;color:#71819a;font-size:12px}.customer-product-quantity{flex:0 0 auto;text-align:right;color:#946000}.customer-product-large{display:block;max-width:100%;max-height:70dvh;margin:auto;object-fit:contain}.customer-services{margin-top:12px;color:#607089}.customer-services summary{cursor:pointer}@media(max-width:480px){.customer-product-row{gap:8px}.customer-product-photo{flex-basis:48px;width:48px;min-height:48px}.customer-product-photo button{width:48px;height:48px}.customer-product-copy>strong{font-size:14px}}
.customer-tier-two{background:#edf9f0;border-color:#cde8d4}.customer-tier-three{background:#d8f0df;border-color:#a9d6b7}.customer-tier-four{background:#bce0c7;border-color:#7eba90}.customer-type-label{align-self:flex-start;color:#315e42;font-size:12px;font-weight:600}.customer-tier-legend{display:flex;align-items:center;flex-wrap:wrap;gap:8px;color:#52677e}.customer-tier-legend span{padding:5px 12px;border:1px solid #bbd8c4;border-radius:6px;font-size:12px}.customer-card:not(.customer-tier-new) .customer-metrics{background:#ffffffad}.customer-card:not(.customer-tier-new) .field-help{color:#435e50}.customer-order-count{border:0;padding:0;min-width:30px;min-height:32px;background:transparent;color:inherit;font:inherit;text-align:left;text-decoration:underline;text-underline-offset:4px;border-radius:4px}.customer-order-count:hover{background:#dceee4}.customer-order-count:focus-visible{outline:2px solid #165ed8;outline-offset:3px}.customer-view-orders{align-self:flex-start}.customer-order-heading{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.customer-order-heading h3{margin:0}.customer-history-order{padding:20px 14px;margin:16px 0;border:1px solid #d6e3ee;border-radius:12px;background:#fff}.customer-history-order:first-child{margin-top:0}.customer-history-order p{margin:12px 0}.customer-order-type{display:inline-block;vertical-align:middle;white-space:nowrap;font-size:12px;font-weight:600;border-radius:20px;padding:4px 10px;line-height:1.4;background:#f0f3f7;color:#526277;border:1px solid #cbd5e1}.customer-order-type.custom{background:#fff4d7;color:#865500;border-color:#e4ba5f}.customer-order-type.standard{background:#eaf3ff;color:#285e91;border-color:#a5c4e5}.customer-order-type.default{background:#e7f7ed;color:#25633d;border-color:#8fc4a1}.customer-dialog h2 small{display:block;font-size:12px;font-weight:400;color:#607089;margin-top:5px}.customer-order-cancelled{color:#ac3447}.customer-orders-dialog{width:min(900px,calc(100vw - 24px))}@media(max-width:480px){.customer-history-order{padding:14px 10px}.customer-order-heading{gap:6px}.customer-order-heading h3{font-size:15px}}
.returning-customer-badge{display:inline-flex;align-items:center;border:1px solid #84bd95;color:#215638;font-size:12px;font-weight:700;padding:4px 9px;border-radius:16px;white-space:nowrap;line-height:1.5;min-height:28px;cursor:pointer}.returning-customer-badge:hover{filter:brightness(.95)}.returning-customer-badge:focus-visible{outline:2px solid #165ed8;outline-offset:2px}.collab-order-identity [data-returning-slot]{display:inline-flex;margin-left:5px}.collab-case-copy [data-returning-slot]{display:block;margin:6px 0}@media print{[data-returning-slot]{display:none!important}}
