/* FY Targets feature — portable styles.
   Used by the Settings > Targets page: the Current/Next FY switcher pills,
   the FY range subtitle, the Next-FY pane + copy button, and the inline
   "Saving targets…" banner.

   Brand accent is a CSS variable so non-McGrath sites (e.g. The Property
   Shop) can override it with a single rule:  :root { --fy-accent: #xxxxxx; }
   Default is McGrath orange.

   This file is deployed to every site and enqueued on the Settings page.
   It deliberately contains ONLY FY-targets rules (no SC leaderboard
   customizations) so it's safe everywhere.
*/
:root {
  --fy-accent: #E57201;       /* McGrath orange — override per brand */
  --fy-accent-dark: #c46101;  /* hover/active darker shade */
  --fy-accent-tint: #fff5eb;  /* very light hover background */
  --fy-text: #231F20;
  --fy-muted: #6E6E6E;
}

/* FY switcher pills — Current FY / Next FY (crossover window only) */
.fy-switcher {
  display: inline-flex;
  gap: 0;
  margin-bottom: 16px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #ccc;
}
.fy-switcher .fy-pill {
  background: #fff;
  color: var(--fy-muted);
  border: 0;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 120ms ease, color 120ms ease;
}
.fy-switcher .fy-pill + .fy-pill {
  border-left: 1px solid #ccc;
}
.fy-switcher .fy-pill:hover:not(.active) {
  background: var(--fy-accent-tint);
  color: var(--fy-accent);
}
.fy-switcher .fy-pill.active {
  background: var(--fy-accent);
  color: #fff;
}

/* FY range subtitle next to the "Annual Team Targets — FYxx" heading */
.fy-range {
  color: var(--fy-muted);
  font-weight: 400;
  font-size: 0.85em;
  margin-left: 6px;
}

/* Inline "Saving targets…" banner — sticky, can't-miss */
.targets-saving-banner {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--fy-accent);
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
  display: flex;
  align-items: center;
}

/* Next-FY pane + its copy button */
.fy-next-pane {
  padding: 16px 0;
}
.fy-next-pane p {
  margin-bottom: 16px;
  color: var(--fy-text);
}
.fy-next-pane .copy-targets-inline {
  background: var(--fy-accent);
  border-color: var(--fy-accent);
  padding: 10px 20px;
}
.fy-next-pane .copy-targets-inline:hover:not(:disabled) {
  background: var(--fy-accent-dark);
  border-color: var(--fy-accent-dark);
}
.fy-next-pane .copy-targets-inline:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
