/* HCP live Customer details overlay and profile geometry, 2026-11-06.
   JCL upcoming work, billing relationships and private-audience controls retained. */
#customerDetails.customer-details-dialog{inset:0;margin:0;width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;border:0;border-radius:0;padding:0;background:var(--canvas);color:var(--ink);overflow:hidden}
#customerDetails[open]{display:flex;flex-direction:column}
.customer-details-open{overflow:hidden}
.customer-details-heading{display:flex;align-items:center;gap:16px;min-height:64px;padding:10px 24px;background:var(--surface);border-bottom:1px solid var(--divider);flex-shrink:0}
.customer-details-heading h2{font-size:26px;font-weight:600;margin:0;flex:1}
.customer-details-content{overflow:auto;flex:1;min-height:0;padding:0 48px 32px}
.customer-details-content>.breadcrumb,.customer-details-content>.hcp-profile-heading{display:none}
.customer-details-content>.hcp-tabs{position:sticky;top:0;z-index:2;background:var(--surface);margin:0 -48px 24px;padding:0 24px;border-bottom:1px solid var(--divider);display:flex;gap:0;overflow-x:auto}
.customer-details-content>.hcp-tabs button{flex:0 0 145px;min-height:49px;border-radius:0}
.customer-details-content>.customer-balance-banner{margin:16px 0}
.customer-details-content .customer-profile-layout{grid-template-columns: minmax(290px,24%) minmax(0,1fr);gap:16px}
.customer-details-content .customer-profile-layout .card{margin-bottom:16px}
.customer-profile-layout .card{background:var(--surface);border:1px solid var(--divider);border-radius:8px;box-shadow:0 2px 9px #0000000a}
.customer-profile-layout .section-head{background:transparent;border-color:var(--divider);padding:16px}
.customer-profile-layout .section-head h2{font-size:18px!important;font-weight:600}
.customer-profile-layout .customer-location-layout{display:block}
.customer-profile-layout .customer-map-card{width:100%;max-width:none;margin-bottom:0;border-bottom-left-radius:0;border-bottom-right-radius:0;overflow:hidden}
.customer-profile-layout .customer-map-card #customerMapMount{height:auto;min-height:200px}
.customer-profile-layout #customerMapMount #dispatchMap{height:240px;min-height:240px;aspect-ratio:auto}
.customer-profile-layout #customerMapMount .google-map-setup{inset:58px 16px 12px;padding:12px;gap:8px}
.customer-profile-layout #customerMapMount .google-map-setup .google-map-symbol,.customer-profile-layout #customerMapMount .google-map-setup h2,.customer-profile-layout #customerMapMount .google-map-setup small{display:none}
.customer-profile-layout #customerMapMount .google-map-setup p,.customer-profile-layout #customerMapMount .google-map-setup button{margin:0}
.customer-profile-layout .customer-location-layout>.card+section{border-top-left-radius:0;border-top-right-radius:0}
.customer-details-error{padding:24px}
.customer-details-discard{position:fixed;inset:28% auto auto 50%;transform:translateX(-50%);width:440px;max-width:calc(100vw - 32px);padding:24px;background:var(--surface);border:1px solid var(--divider);box-shadow:0 0 0 100vmax #0006;z-index:5}
.customer-details-discard .actions{justify-content:flex-end}
.customer-history{padding:16px;overflow:hidden}
.customer-details-content{font-size:14px}
.customer-details-content>.hcp-tabs button,.customer-history .hcp-tabs button{font-size:14px!important;font-weight:400;min-height:48px;padding:10px 16px}
.customer-history{border-color:var(--divider);box-shadow:0 2px 5px #0002}
.customer-history td{font-size:14px!important}
.customer-history .hcp-badge{font-size:12px;padding:2px 6px;border:0;border-radius:3px}
.customer-history .hcp-tabs{gap:0}
#modal.customer-history-drawer{inset:0 0 0 auto;margin:0;width:350px;max-width:100vw;height:100dvh;max-height:100dvh;border-radius:0}
#modal.customer-history-drawer .dialog-head{background:var(--surface);padding:12px 16px;min-height:64px;gap:12px;border-color:var(--divider)}
#modal.customer-history-drawer .dialog-head button{order:-1;border:0;background:transparent;font-size:22px!important;width:28px;min-width:28px;padding:0}
#modal.customer-history-drawer .dialog-head h2{font-size:28px!important;font-weight:600;margin:0;flex:1}
#modal.customer-history-drawer #modalBody{padding:16px}
.customer-history-drawer label,.customer-history-drawer legend{font-size:14px!important;font-weight:400!important}
.customer-history-drawer fieldset{border:0;padding:0;margin:20px 0 30px}
.customer-history-drawer legend{font-size:14px}
.customer-history-drawer label{display:block;margin-bottom:26px}
.customer-history-drawer .history-date-range{display:flex;gap:12px}
.customer-history-drawer .history-date-range label{min-width:0;flex:1;margin:12px 0 0}
.customer-history-drawer input,.customer-history-drawer select{width:100%;min-width:0;min-height:54px;font-size:14px!important}
.customer-note-filters{display:flex;gap:4px;border-radius:24px;padding:3px;background:var(--soft);width:max-content;max-width:100%;overflow:auto;margin:16px}
.customer-note-filters button{border:0;background:transparent;border-radius:22px;padding:7px 16px;white-space:nowrap;font-size:14px!important}
.customer-note-filters button[aria-selected=true]{background:var(--surface);box-shadow:0 1px 4px #0002;font-weight:600}
.record-notes [hidden]{display:none!important}
html[data-theme=dark] :is(.customer-profile-layout,.customer-history,.customer-archived-links) a{color:#ffd0a6}
html[data-theme=dark] .customer-profile-layout :is(.contact-definition dt,.contact-channel-label){color:#b9c6d3}
.customer-history-tools{display:flex;align-items:center;gap:12px;margin-bottom:8px}
.customer-history-tools .hcp-list-search{width:300px;display:flex;align-items:center;gap:8px;max-width:70%;margin:0}
.customer-history-tools input{width:100%;min-width:0}
.customer-history-tools>span{margin-left:auto;color:var(--secondary);font-size:13px}
.customer-history .hcp-tabs{margin:0 0 24px;gap:16px;overflow-x:auto;flex-wrap:nowrap}
.customer-history .hcp-tabs button{white-space:nowrap}
.customer-history .hcp-table-scroll{overflow:auto}
.customer-history table{width:100%;border-collapse:collapse}
.customer-history th{white-space:nowrap;background:var(--soft)}
.customer-history th button{border:0;background:transparent;text-align:left;font-size:12px!important;padding:0;min-height:32px}
.customer-history td{padding:14px 12px;border-bottom:1px solid var(--divider);vertical-align:top}
.customer-history-cell{display:block;min-width:100px;max-width:330px;white-space:normal;overflow-wrap:anywhere}
.customer-history .hcp-pagination{padding:16px 0 0;gap:12px;flex-wrap:wrap}
.customer-history .hcp-pagination>div{display:flex;align-items:center;gap:12px}
.customer-history .hcp-pagination label{display:flex;align-items:center;gap:8px;white-space:nowrap;margin:0}
#modal [data-history-columns] .filter-check{display:flex;align-items:center;gap:10px;margin:14px 0}
#modal [data-history-columns] input{width:18px;height:18px;min-height:18px}
@media(max-width:900px){.customer-details-content{padding:0 16px 24px}.customer-details-content>.hcp-tabs{margin-left:-16px;margin-right:-16px;padding:0 16px}.customer-details-content .customer-profile-layout{grid-template-columns:280px minmax(0,1fr)}.customer-details-content>.hcp-tabs button{flex-basis:110px}}
@media(max-width:650px){.customer-details-heading{padding:12px;gap:8px}.customer-details-heading h2{font-size:20px}.customer-details-content .customer-profile-layout{display:block}}
