/* British Columbia market skin on top of reports.css. Every rule scoped under
   .bc-rp. Generic primitives live in reports.css; only BC-specific overrides
   belong here. */

/* bcDateRange() renders inside a page's own inline control row (bc-store's
   "Date Range:" row), so the bar drops its bottom margin and sits inline. */
.bc-rp .rp-filter.bc-rp-range{ display:inline-flex; margin-bottom:0; vertical-align:middle; }

/* Hand-rolled <th style="color:#fff ..."> cells inside a `<tr ${THEAD}>` row
   (bc-distribution-rep matrix, bc-lrs-distro account matrix, bc-oos-risk/
   -store checkbox column, bc-store monthly) assumed the old navy header row.
   On the light .rp-thead row they would print white on white. Only the
   pages' inline styles can be targeted, hence !important. When those cells
   move to TH()/THR() this block goes. (bc-tm-reports is not under .bc-rp; its
   sortable header cells carry class="rp-th" directly.) */
.bc-rp .rp-thead th[style*="color:#fff"]{ color: var(--ace-text-secondary) !important; }
.bc-rp .rp-thead th[style*="background:#023C5B"]{ background:#eef3f8 !important; }

/* "← Back to …" row on the store detail, bridge buy, distribution matrix,
   LRS distro / gaps, OOS store and pre-order pages. It is the first sibling
   after the band, so .rp-page pulls it up over the navy strip; as bare text
   it would float inside the band. Each link is an .rp-btn pill (its own
   white surface) and this wrapper lays one or two of them in a row. Mirrors
   ab-market.css .ab-back. */
.bc-rp .bc-back{ display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-bottom:12px; }
.bc-rp .bc-back a.rp-btn{ text-decoration:none; }

/* /bc/store/:id CRM card: its "Book a Tasting" <details> menu is
   position:absolute below the summary. .rp-card{overflow:hidden} plus the
   .rp-page .rp-card-body{overflow-x:auto} rule would clip the open menu at
   the card edge, so this one card lets overflow through. Nothing inside it
   needs the clip: the card paints its own white rounded surface and the head
   and body are transparent, so the corners still read as rounded. */
.bc-rp [data-bc-section="store-crm"]{ overflow: visible; }
.bc-rp [data-bc-section="store-crm"] > .rp-card-body{ overflow: visible; }

/* /bc/oos-store keeps a fixed-position toast as a root child; the .rp-page
   gutter margins must not shift it. */
.bc-rp > #bc-oos-toast{ margin-left:0; margin-right:0; }
