
/* Roomy customer workspace: page scroll owns vertical document flow. */
.cmh-collection .cc-split{height:auto;min-height:0;align-items:start;grid-template-columns:280px minmax(0,1fr)}
.cmh-collection .cc-detail{height:auto;max-height:none;min-height:620px;overflow:visible;display:block}
.cmh-collection .cc-customer-scroll{height:auto;max-height:none;overflow:visible;flex:none;padding:16px 18px}
.cmh-collection .cc-customers{position:sticky;top:12px;height:auto;max-height:calc(100dvh - 140px)}
.cmh-collection .cc-customer-list{flex:1;min-height:160px;max-height:calc(100dvh - 340px)}
.cmh-collection .cc-fixed-customer{padding:12px 18px}
.cmh-collection .cc-fixed-customer .cc-customer-head{margin:0;align-items:start}
.cmh-collection .cc-fixed-customer .cc-customer-head h3{margin:0;font-size:20px}
.cmh-collection .cc-fixed-customer .cc-warning{margin:8px 0 0;padding:7px 10px;line-height:1.6}
.cmh-collection .cc-customer-facts{font-size:12px;margin-top:4px}
.cmh-collection .cc-customer-facts summary{cursor:pointer;color:var(--cc-accent);padding:4px 0;width:fit-content}
.cmh-collection .cc-customer-facts[open]{padding-bottom:6px}
.cmh-collection .cc-customer-tabs{padding:0 18px;background:var(--cc-surface)}
.cmh-collection .cc-customer-tabs button.active{background:transparent;color:var(--cc-accent);border-color:var(--cc-accent)}
.cmh-collection .cc-billing-destinations{align-items:start;gap:12px}
.cmh-collection .cc-billing-destination{height:auto;min-height:0;align-self:start;padding:12px}
.cmh-collection .cc-billing-destination h4{margin:0}.cmh-collection .cc-billing-destination>strong{margin:6px 0}
.cmh-collection .cc-billing-destination .cc-muted{font-size:12px;margin:6px 0}.cmh-collection .cc-billing-destination .cc-actions{margin:8px 0 0}
.cmh-collection .cc-detail-title .cc-actions{margin:0}.cmh-collection .cc-bill-tabs button.active{background:var(--cc-accent);color:#fff}
.cmh-collection .cc-cards{margin:8px 0 12px}.cmh-collection button.cc-card{min-height:0;padding:8px 14px}.cmh-collection .cc-card strong{font-size:23px;line-height:1.35}
.cmh-collection.cc-workspace-focus .cc-header,.cmh-collection.cc-workspace-focus .cc-status,.cmh-collection.cc-workspace-focus .cc-mode,.cmh-collection.cc-workspace-focus .cc-cards,.cmh-collection.cc-workspace-focus .cc-customers{display:none}
.cmh-collection.cc-workspace-focus .cc-split{grid-template-columns:minmax(0,1fr)}
@media(max-width:1100px) and (min-width:801px){.cmh-collection .cc-split{grid-template-columns:250px minmax(0,1fr)}.cmh-collection .cc-billing-destinations{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:800px){.cmh-collection .cc-split{display:block}.cmh-collection .cc-customers{position:static;max-height:none}.cmh-collection .cc-customer-list{flex:none;max-height:240px}.cmh-collection .cc-detail{min-height:0}.cmh-collection .cc-customer-tabs{gap:16px;overflow-x:auto;flex-wrap:nowrap}.cmh-collection .cc-billing-destinations{grid-template-columns:1fr}.cmh-collection .cc-customer-head strong{font-size:22px}}

/* Customer tabs own their state colours; do not inherit global active-button fills. */
.cmh-collection{--cc-surface:var(--color-bg-card,#fff);--cc-soft:var(--color-bg-subtle,#f3f7fb);--cc-border:var(--color-border,#dce5ef);--cc-accent:var(--color-primary-dark,#245da8);--cc-text:var(--color-text-primary,#18324e)}
.cmh-collection .cc-customer-tabs{gap:8px;padding-top:6px}
.cmh-collection .cc-customer-tabs button[role=tab]{padding:10px 16px!important;min-height:44px;border:0!important;border-bottom:3px solid transparent!important;border-radius:6px 6px 0 0!important;background:transparent!important;background-image:none!important;color:var(--cc-text)!important;box-shadow:none!important;font-size:14px;line-height:1.4}
.cmh-collection .cc-customer-tabs button[role=tab][aria-selected=true]{background:var(--cc-soft)!important;color:var(--cc-text)!important;border-bottom-color:var(--cc-accent)!important;font-weight:700}
.cmh-collection .cc-customer-tabs button[role=tab]:hover{background:var(--cc-soft)!important;color:var(--cc-text)!important}
.cmh-collection .cc-customer-tabs button[role=tab]:focus-visible{outline:2px solid var(--cc-accent)!important;outline-offset:-2px}
.cmh-collection .cc-bill-tabs button.active,.cmh-collection button.cc-primary{background:var(--cc-accent)!important;background-image:none!important;color:#fff!important;border-color:var(--cc-accent)!important}
.cmh-collection .cc-bill-tabs button:disabled{background:var(--cc-soft)!important;color:var(--color-text-secondary,#526579)!important;border-color:var(--cc-border)!important;opacity:1}
@media(max-width:800px){.cmh-collection .cc-customer-tabs{gap:2px;padding-left:8px;padding-right:8px}.cmh-collection .cc-customer-tabs button[role=tab]{padding:10px 12px!important}}
