/* Isolated customer lookup styles. Existing order and Kanban pages are unchanged. */
.customer-directory-root{min-height:0}
.customer-directory{display:grid;grid-template-columns:minmax(260px,340px) minmax(0,1fr);gap:18px;min-height:0;height:100%}
.customer-lookup{display:flex;flex-direction:column;min-height:0;margin:0!important;padding:16px!important;overflow:hidden}
.customer-lookup-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:16px}
.customer-lookup-heading h2{font-size:19px;margin:0!important}.customer-lookup-heading>span{font-size:12px;white-space:nowrap}
.customer-search-label{display:grid;gap:6px;font-size:12px;color:var(--muted)}.customer-search{width:100%;min-width:0}
.customer-filter-row{display:flex;flex-wrap:wrap;gap:6px}.customer-lookup>.customer-filter-row{margin-top:10px}
.customer-directory .customer-filter-row>button{min-height:36px;padding:7px 10px;font-size:12px;white-space:nowrap}
.customer-result-count{font-size:12px;margin:10px 0 7px}
.customer-results{flex:1 1 0;min-height:0;overflow:auto;display:grid;grid-auto-rows:max-content;align-content:start;gap:7px;padding-right:3px;scrollbar-width:thin}
.customer-result{display:grid;gap:5px;width:100%;min-width:0;margin:0;padding:12px;text-align:left;border:1px solid var(--line);border-left:3px solid var(--ov-blue,#87cfff);border-radius:8px;background:var(--panel2);color:var(--ink);box-shadow:none}
.customer-result>strong{font-size:14px;line-height:1.4;overflow-wrap:anywhere}.customer-result>small,.customer-result-meta{font-size:11px;font-weight:400;color:var(--muted);line-height:1.4}
.customer-result.is-selected{border-color:var(--blue);background:var(--input)}.customer-result:hover{background:var(--input)}
.customer-lookup>button{margin-top:9px;flex-shrink:0}
.customer-detail{overflow:auto;min-width:0;min-height:0;padding:0 3px 18px;scrollbar-width:thin}
.customer-directory .customer-hero{margin-bottom:16px}.customer-hero h1{font-size:clamp(1.35rem,2.4vw,2rem);line-height:1.25;margin:12px 0;overflow-wrap:anywhere}
.customer-hero .order-view-eyebrow{font-size:12px;letter-spacing:.06em}.customer-main-links{display:flex;gap:8px 20px;flex-wrap:wrap}.customer-directory a{color:var(--blue);text-underline-offset:3px;overflow-wrap:anywhere}.customer-summary{font-size:13px;margin:15px 0 0;color:var(--muted)}
.customer-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-bottom:16px}
.customer-directory .customer-fact-card{margin:0;padding:16px;min-width:0;border-top:3px solid var(--ov-blue,#87cfff)}
.customer-directory :is(.customer-fact-card,.customer-order-panel) h2{font-size:17px;margin:0 0 12px}
.customer-contact{display:grid;gap:5px;font-size:13px;line-height:1.45;padding:10px 0;border-top:1px solid var(--line)}.customer-contact:first-of-type{border-top:0;padding-top:0}
.customer-address{font-size:13px;margin:12px 0}.customer-address>strong{font-size:12px;color:var(--muted)}.customer-address>p{margin:5px 0;line-height:1.5;overflow-wrap:anywhere}
.customer-delivery-addresses{font-size:13px;margin-top:14px;padding-top:10px;border-top:1px solid var(--line)}.customer-delivery-addresses>summary{cursor:pointer;min-height:32px}.customer-delivery-addresses>p{line-height:1.5;overflow-wrap:anywhere}
.customer-directory .customer-order-panel{margin:0;padding:16px;min-width:0}.customer-orders-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.customer-orders-heading>h2{margin:0!important}
.customer-coverage,.customer-data-stamp{font-size:12px;line-height:1.5}.customer-orders{display:grid;gap:9px}.customer-orders>.order-view-card{width:100%;margin:0}.customer-orders>.order-view-card.order{padding:13px;gap:12px}.customer-orders .order-view-card-aside{max-width:none}.customer-orders .order-view-meta{display:none}
.customer-intro h2{margin-top:0}.customer-stats{display:flex;gap:14px;flex-wrap:wrap;margin-top:24px}.customer-stats>div{display:grid;gap:5px;padding:14px 18px;min-width:120px;border:1px solid var(--line);border-radius:9px;background:var(--panel)}.customer-stats strong{font-size:27px;color:var(--blue);font-variant-numeric:tabular-nums}.customer-stats span{font-size:12px;color:var(--muted)}
@media(min-width:901px){#app-view>#content.customer-directory-root{height:calc(100dvh - 170px);min-height:360px;overflow:hidden}.customer-directory-root>.customer-directory{height:100%}}
@media(max-width:900px){.customer-directory{grid-template-columns:1fr;height:auto}.customer-lookup{max-height:440px}.customer-results{flex-basis:220px}.customer-detail{overflow:visible}.customer-intro{margin:0}}
@media(max-width:600px){.customer-facts{grid-template-columns:1fr;gap:12px}.customer-directory{gap:12px}.customer-directory .customer-filter-row>button{min-height:44px}.customer-contact>a{min-height:30px;display:flex;align-items:center}.customer-orders>.order-view-card.order{grid-template-columns:minmax(0,1fr)}.customer-orders>.order-view-card>.order-view-card-aside{border-top:1px solid var(--line);padding-top:8px}.customer-orders-heading{align-items:flex-start;flex-direction:column}}
