/* BCG sources feed one graph on the same dotted canvas as the BOSS tour. */
.bcg-demo{
  --bcg-ink:#172e34;
  --bcg-muted:#516a72;
  --bcg-positive:#19a6b6;
  --bcg-negative:#d7464f;
  --bcg-event-ink:#116975;
  --bcg-event-wash:#eaf7f7;
  --bcg-event-chip:#d1efed;
  position:relative;
  isolation:isolate;
  display:grid;
  place-items:center;
  padding:clamp(27px,6vw,75px) clamp(10px,3vw,40px);
  background:#f3f8f9;
  color:var(--bcg-ink);
  text-align:left;
  font-variant-numeric:tabular-nums;
}
.bcg-demo::before{
  content:"";
  position:absolute;
  z-index:-1;
  inset:0;
  pointer-events:none;
  background:radial-gradient(circle,#c3d3d6 1px,transparent 1.2px) 0 0 / 16px 16px;
  mask-image:radial-gradient(ellipse 75% 70% at 50% 45%,#000 30%,transparent 87%);
  opacity:.8;
}
.bcg-demo[data-polarity="negative"]{--bcg-event-ink:#9c303b;--bcg-event-wash:#fff2f2;--bcg-event-chip:#f8dadb}
.bcg-demo-network{
  display:grid;
  grid-template-columns:minmax(0,1fr) 10% minmax(0,48%) 10% minmax(0,1fr);
  grid-template-rows:repeat(4,minmax(72px,auto));
  align-items:center;
  width:min(100%,962px);
}
.bcg-demo button{appearance:none;cursor:pointer;font:inherit;border:0;box-shadow:none}
.bcg-demo button::before,.bcg-demo button::after{content:none}
.bcg-demo button:focus-visible{outline:2px solid #146a72!important;outline-offset:3px}
.bcg-demo .bcg-demo-source{
  grid-row:var(--slot);
  display:inline-flex;
  align-items:center;
  gap:9px;
  max-width:100%;
  min-height:44px;
  padding:0;
  border:0;
  border-radius:8px;
  background:transparent;
  color:var(--bcg-ink);
  line-height:1.3;
}
.bcg-demo-source.bcg-demo-left{grid-column:1;justify-self:end;flex-direction:row-reverse;text-align:right}
.bcg-demo-source.bcg-demo-right{grid-column:5;justify-self:start;text-align:left}
.bcg-demo-logo{
  display:grid;place-items:center;flex:none;
  width:51px;height:51px;
  border:1px solid #d8e6e8;border-radius:50%;background:#fff;
  box-shadow:0 2px 6px #133d4710;
}
.bcg-demo-logo img{display:block;width:36px;height:32px;object-fit:contain}
/* Crop the original BambooHR wordmark to its bamboo-and-b initial. */
.bcg-demo-source[data-source="BambooHR"] .bcg-demo-logo img{height:auto;aspect-ratio:285/226;object-fit:cover;object-position:left center}
.bcg-demo-source[data-source="Odoo"] .bcg-demo-logo img{transform:scale(1.3)}
.bcg-demo-source-name{font-size:13px;font-weight:600;line-height:1.25}
.bcg-demo-source-name small{display:block;margin-top:3px;color:var(--bcg-muted);font-size:10px;font-weight:450;line-height:1.25}
.bcg-demo-source:is(:hover,:focus-visible,.is-active) .bcg-demo-logo{border-color:#49a1aa;box-shadow:0 0 0 3px #d3ebed}
.bcg-demo-source.is-active .bcg-demo-source-name{color:#086973}
.bcg-demo-route{
  grid-row:1 / 5;
  align-self:stretch;
  width:100%;height:100%;
  pointer-events:none;overflow:visible;
}
.bcg-demo-route.bcg-demo-left{grid-column:2}
.bcg-demo-route.bcg-demo-right{grid-column:4;transform:scaleX(-1)}
.bcg-demo-route path{fill:none;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}
.bcg-route-line,.bcg-route-arrow{stroke:#afc8cb;stroke-width:1.4}
.bcg-demo-route.is-active .bcg-route-line,.bcg-demo-route.is-active .bcg-route-arrow{stroke:#3598a4;stroke-width:1.8}
.bcg-route-narrow,.bcg-route-packet{display:none}
.bcg-demo-card{
  position:relative;
  grid-column:3;grid-row:1 / 5;
  width:100%;min-width:0;
  padding:clamp(13px,1.6vw,20px);
  border:1px solid #d4e2e4;border-radius:14px;background:#fff;
  box-shadow:0 2px 4px #1b42480a,0 12px 30px -15px #18586444;
}
.bcg-demo-origin,.bcg-demo-result,.bcg-demo-legend{display:flex;align-items:center}
.bcg-demo .bcg-demo-heading{margin:0;color:var(--bcg-ink);font-size:clamp(16px,1.55vw,21px);font-weight:600;line-height:1.2;letter-spacing:-.035em}
.bcg-demo-readout{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-content:center;
  align-items:center;
  gap:3px 6px;
  min-height:64px;
  padding:8px 11px;margin:13px 0 0;
  background:var(--bcg-event-wash);
  border-radius:8px;
}
.bcg-demo-origin{gap:7px;flex-wrap:wrap;color:var(--bcg-muted);font-size:10px;line-height:1.2}
.bcg-demo-origin strong{font-weight:650;font-size:12px;color:var(--bcg-ink)}
.bcg-demo-title{grid-column:1 / -1;color:var(--bcg-ink);font-size:14px;line-height:1.3;font-weight:550}
.bcg-demo-result,.bcg-demo-pending{justify-self:end;gap:5px;padding:3px 6px;border-radius:5px;color:var(--bcg-event-ink);background:var(--bcg-event-chip);font-size:10px;line-height:1.3;font-weight:550;white-space:nowrap}
.bcg-demo-pending{display:none;color:#4b666c;background:#e2ecee}
.bcg-demo[data-stage="incoming"] .bcg-demo-pending{display:inline}
.bcg-demo[data-stage="incoming"] .bcg-demo-result{display:none}
.bcg-demo[data-stage="incoming"] .bcg-demo-readout{background:#f0f5f5}
.bcg-demo-legend{gap:12px;margin:12px 0 3px;color:#40595f;font-size:10px;line-height:1.4}
.bcg-demo-legend span{display:inline-flex;align-items:center;gap:4px}
.bcg-demo-legend span::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--bcg-positive)}
.bcg-demo-legend span:last-child::before{background:var(--bcg-negative)}
.bcg-demo-chart{--bcg-plot-height:113px;display:grid;grid-template-columns:21px minmax(0,1fr);gap:5px;font-size:9px;line-height:1;color:var(--bcg-muted)}
.bcg-demo-scale{
  height:var(--bcg-plot-height);
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  text-align:right;
  padding-block:calc(var(--bcg-plot-height) / 18 - .5em);
}
.bcg-demo-wave{display:block;width:100%;height:var(--bcg-plot-height);overflow:visible}
.bcg-demo-wave path{vector-effect:non-scaling-stroke}
.bcg-demo-guides{fill:none;stroke:#dce7e9;stroke-width:1;stroke-dasharray:2 5}
.bcg-demo-zero{fill:none;stroke:#acbfc3;stroke-width:1}
.bcg-demo-segment{color:var(--bcg-positive)}
.bcg-demo-segment[data-direction="negative"]{color:var(--bcg-negative)}
.bcg-demo-trace,.bcg-demo-beat{fill-opacity:.1;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8}
.bcg-demo-trace{opacity:.55}
.bcg-demo-up{fill:var(--bcg-positive);stroke:var(--bcg-positive)}
.bcg-demo-down{fill:var(--bcg-negative);stroke:var(--bcg-negative)}
.bcg-demo-beat{stroke:currentColor;fill:currentColor}
.bcg-demo-dot,.bcg-demo-halo{stroke:currentColor;stroke-linecap:round;stroke-width:4;fill:none}
.bcg-demo-drop{fill:none;stroke:currentColor;stroke-dasharray:2 4;opacity:0}
.bcg-demo-halo{stroke-width:16;opacity:0}
.bcg-demo-segment.is-upcoming{opacity:0;visibility:hidden}
.bcg-demo-segment.is-selected .bcg-demo-beat{stroke-width:2.4}
.bcg-demo-segment.is-selected .bcg-demo-drop{opacity:.48}
.bcg-demo-segment.is-selected .bcg-demo-dot{stroke-width:7}
.bcg-demo-segment.is-selected .bcg-demo-halo{opacity:.17}
.bcg-demo-ticks{position:relative;height:14px;margin-top:6px}
.bcg-demo-ticks span{position:absolute;left:clamp(1.7em,var(--tick-x),calc(100% - 1.7em));width:max-content;white-space:nowrap;transform:translateX(-50%)}
.bcg-demo [data-bcg-announcement]{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media(prefers-reduced-motion:no-preference){
  .bcg-demo-logo{transition:border-color .15s,box-shadow .15s}
  .bcg-route-line,.bcg-route-arrow{transition:stroke .16s,stroke-width .16s}
  .bcg-demo-readout{transition:background-color .18s}
  .bcg-demo-segment{transition:opacity .2s}
  .bcg-demo-segment.is-upcoming{transition:opacity .2s,visibility 0s .2s}
  .bcg-demo-drop,.bcg-demo-halo,.bcg-demo-dot{transition:opacity .16s,stroke-width .16s}
  .bcg-demo-segment.is-arriving{
    animation:bcg-reveal-event .3s cubic-bezier(.18,.52,.32,1) backwards;
  }
  .bcg-demo[data-stage="incoming"] .bcg-demo-route.is-active .bcg-route-packet{
    display:block;stroke:#168b99;stroke-width:5;stroke-dasharray:.028 1;animation:bcg-packet-travel .48s cubic-bezier(.32,.02,.6,1) both;
  }
}
@keyframes bcg-reveal-event{
  from{clip-path:inset(-14px 100% -14px -14px) fill-box}
  to{clip-path:inset(-14px -14px -14px -14px) fill-box}
}
@keyframes bcg-packet-travel{
  0%{stroke-dashoffset:0;opacity:0}
  12%{opacity:1}
  94%{opacity:1}
  100%{stroke-dashoffset:-.99;opacity:.2}
}
@media(max-width:930px){
  .bcg-demo-logo{width:44px;height:44px}
  .bcg-demo-logo img{width:32px;height:28px}
  .bcg-demo-source-name{font-size:12px}
}
@container (max-width:740px){
  .bcg-demo{padding:25.5px 8px}
  .bcg-demo-network{max-width:440px;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:auto 27px auto 27px auto}
  .bcg-demo .bcg-demo-source{
    grid-column:var(--slot);justify-self:center;flex-direction:column;gap:4px;text-align:center;
  }
  .bcg-demo-source.bcg-demo-left{grid-row:1;flex-direction:column-reverse}
  .bcg-demo-source.bcg-demo-right{grid-row:5}
  .bcg-demo-source-name{font-size:10px;line-height:1.25}
  .bcg-demo-source-name small{display:none}
  .bcg-demo-logo{width:39px;height:39px}
  .bcg-demo-logo img{width:28px;height:26px}
  .bcg-demo-route.bcg-demo-left{grid-row:2;grid-column:1 / -1}
  .bcg-demo-route.bcg-demo-right{grid-row:4;grid-column:1 / -1;transform:scaleY(-1)}
  .bcg-route-wide{display:none}
  .bcg-route-narrow{display:block}
  .bcg-demo-card{grid-row:3;grid-column:1 / -1;align-self:stretch;padding:12px}
  .bcg-demo .bcg-demo-heading{font-size:16px}
  .bcg-demo-readout{padding:7px 9px;margin-top:9px;min-height:54px}
  .bcg-demo-chart{--bcg-plot-height:99px}
  .bcg-demo-legend{margin-top:9px}
}
@media(forced-colors:active){
  .bcg-demo .bcg-demo-source.is-active .bcg-demo-logo{outline:2px solid Highlight}
  .bcg-demo-route.is-active path{stroke:Highlight}
  .bcg-demo-wave .bcg-demo-beat,.bcg-demo-wave .bcg-demo-trace{stroke:CanvasText}
  .bcg-demo-legend span::before{background:CanvasText}
}
