/* BB_BUILD: design_2026 page hero global colored headers v1
   Premium .bb-v2-page-hero on all Sneat V2 list/report/form pages. */

body.bb-theme-v2:not(.bb-v2-mod-pos) {
  --bb-ph-accent: #696cff;
  --bb-ph-accent-soft: rgba(105, 108, 255, 0.14);
  --bb-ph-glow: rgba(105, 108, 255, 0.2);
  --bb-ph-gradient: linear-gradient(148deg, rgba(105, 108, 255, 0.28) 0%, rgba(105, 108, 255, 0.1) 38%, rgba(255, 255, 255, 0.97) 72%);
  --bb-ph-border: rgba(105, 108, 255, 0.42);
}

body.bb-theme-v2.bb-v2-mod-reports:not(.bb-v2-mod-pos) {
  --bb-ph-accent: #696cff;
  --bb-ph-accent-soft: rgba(105, 108, 255, 0.16);
  --bb-ph-glow: rgba(105, 108, 255, 0.22);
  --bb-ph-gradient: linear-gradient(148deg, rgba(105, 108, 255, 0.32) 0%, rgba(144, 85, 253, 0.12) 36%, rgba(255, 255, 255, 0.97) 70%);
  --bb-ph-border: rgba(105, 108, 255, 0.46);
}

body.bb-theme-v2.bb-v2-mod-sales:not(.bb-v2-mod-pos) {
  --bb-ph-accent: #2563eb;
  --bb-ph-accent-soft: rgba(37, 99, 235, 0.14);
  --bb-ph-glow: rgba(37, 99, 235, 0.18);
  --bb-ph-gradient: linear-gradient(148deg, rgba(37, 99, 235, 0.28) 0%, rgba(3, 195, 236, 0.1) 38%, rgba(255, 255, 255, 0.97) 72%);
  --bb-ph-border: rgba(37, 99, 235, 0.4);
}

body.bb-theme-v2.bb-v2-mod-purchases:not(.bb-v2-mod-pos) {
  --bb-ph-accent: #20c997;
  --bb-ph-accent-soft: rgba(32, 201, 151, 0.14);
  --bb-ph-glow: rgba(32, 201, 151, 0.18);
  --bb-ph-gradient: linear-gradient(148deg, rgba(32, 201, 151, 0.3) 0%, rgba(3, 195, 236, 0.1) 38%, rgba(255, 255, 255, 0.97) 72%);
  --bb-ph-border: rgba(32, 201, 151, 0.42);
}

body.bb-theme-v2.bb-v2-mod-catalog:not(.bb-v2-mod-pos) {
  --bb-ph-accent: #71dd37;
  --bb-ph-accent-soft: rgba(113, 221, 55, 0.14);
  --bb-ph-glow: rgba(113, 221, 55, 0.18);
  --bb-ph-gradient: linear-gradient(148deg, rgba(113, 221, 55, 0.3) 0%, rgba(32, 201, 151, 0.1) 38%, rgba(255, 255, 255, 0.97) 72%);
  --bb-ph-border: rgba(113, 221, 55, 0.44);
}

body.bb-theme-v2.bb-v2-mod-contacts:not(.bb-v2-mod-pos) {
  --bb-ph-accent: #03c3ec;
  --bb-ph-accent-soft: rgba(3, 195, 236, 0.14);
  --bb-ph-glow: rgba(3, 195, 236, 0.18);
  --bb-ph-gradient: linear-gradient(148deg, rgba(3, 195, 236, 0.28) 0%, rgba(105, 108, 255, 0.1) 38%, rgba(255, 255, 255, 0.97) 72%);
  --bb-ph-border: rgba(3, 195, 236, 0.42);
}

body.bb-theme-v2.bb-v2-mod-settings:not(.bb-v2-mod-pos) {
  --bb-ph-accent: #9055fd;
  --bb-ph-accent-soft: rgba(144, 85, 253, 0.14);
  --bb-ph-glow: rgba(144, 85, 253, 0.18);
  --bb-ph-gradient: linear-gradient(148deg, rgba(144, 85, 253, 0.28) 0%, rgba(105, 108, 255, 0.11) 38%, rgba(255, 255, 255, 0.97) 72%);
  --bb-ph-border: rgba(144, 85, 253, 0.4);
}

body.bb-theme-v2.bb-v2-mod-accounting:not(.bb-v2-mod-pos) {
  --bb-ph-accent: #5f61e6;
  --bb-ph-accent-soft: rgba(95, 97, 230, 0.14);
  --bb-ph-glow: rgba(95, 97, 230, 0.2);
  --bb-ph-gradient: linear-gradient(148deg, rgba(95, 97, 230, 0.3) 0%, rgba(255, 171, 0, 0.08) 38%, rgba(255, 255, 255, 0.97) 72%);
  --bb-ph-border: rgba(95, 97, 230, 0.44);
}

/* —— Hero shell —— */
body.bb-theme-v2:not(.bb-v2-mod-pos) .bb-v2-page-hero__inner {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--bb-ph-gradient) !important;
  border-color: var(--bb-ph-border) !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1) !important;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

body.bb-theme-v2:not(.bb-v2-mod-pos) .bb-v2-page-hero__inner:hover {
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.13) !important;
}

body.bb-theme-v2:not(.bb-v2-mod-pos) .bb-v2-page-hero__inner::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  inset-inline-start: 0;
  width: 5px;
  background: linear-gradient(180deg, var(--bb-ph-accent) 0%, rgba(255, 255, 255, 0.35) 100%);
  border-radius: var(--bb-v2-radius-lg, 0.75rem) 0 0 var(--bb-v2-radius-lg, 0.75rem);
  z-index: 1;
  pointer-events: none;
}

body.bb-theme-v2:not(.bb-v2-mod-pos) .bb-v2-page-hero__inner::after {
  content: "";
  position: absolute;
  top: -3rem;
  inset-inline-end: -2rem;
  width: 9rem;
  height: 9rem;
  border-radius: 50%;
  background: var(--bb-ph-glow);
  filter: blur(3px);
  z-index: 0;
  pointer-events: none;
}

body.bb-theme-v2:not(.bb-v2-mod-pos) .bb-v2-page-hero__text,
body.bb-theme-v2:not(.bb-v2-mod-pos) .bb-v2-page-hero__actions {
  position: relative;
  z-index: 2;
}

/* —— Typography —— */
body.bb-theme-v2:not(.bb-v2-mod-pos) .bb-v2-page-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  width: fit-content;
  max-width: 100%;
  padding: 0.2rem 0.65rem;
  margin-bottom: 0.45rem !important;
  border-radius: 999px;
  background: var(--bb-ph-accent-soft) !important;
  color: var(--bb-ph-accent) !important;
  font-size: 0.68rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
  line-height: 1.35;
}

body.bb-theme-v2:not(.bb-v2-mod-pos) .bb-v2-page-hero__title {
  color: var(--bb-v2-text-strong, #32475c) !important;
}

body.bb-theme-v2:not(.bb-v2-mod-pos) .bb-v2-page-hero__subtitle {
  color: var(--bb-v2-muted, #697a8d) !important;
}

/* —— Actions —— */
body.bb-theme-v2:not(.bb-v2-mod-pos) .bb-v2-page-hero__actions .bb-sn-btn--outline,
body.bb-theme-v2:not(.bb-v2-mod-pos) .bb-v2-page-hero__actions .bb-sn-btn--ghost {
  background: rgba(255, 255, 255, 0.82) !important;
  border-color: var(--bb-ph-border) !important;
  backdrop-filter: blur(4px);
}

body.bb-theme-v2:not(.bb-v2-mod-pos) .bb-v2-page-hero__actions .bb-sn-btn--outline:hover,
body.bb-theme-v2:not(.bb-v2-mod-pos) .bb-v2-page-hero__actions .bb-sn-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.96) !important;
  border-color: var(--bb-ph-accent) !important;
  color: var(--bb-ph-accent) !important;
}

body.bb-theme-v2:not(.bb-v2-mod-pos) .bb-v2-page-hero__actions .bb-sn-btn--primary {
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
}

@media (max-width: 767.98px) {
  body.bb-theme-v2:not(.bb-v2-mod-pos) .bb-v2-page-hero__inner::after {
    width: 6rem;
    height: 6rem;
    top: -2rem;
    inset-inline-end: -1.5rem;
  }

  body.bb-theme-v2:not(.bb-v2-mod-pos) .bb-v2-page-hero__actions {
    width: 100%;
    justify-content: flex-start;
  }
}

@media print {
  body.bb-theme-v2 .bb-v2-page-hero__inner {
    background: #fff !important;
    box-shadow: none !important;
  }

  body.bb-theme-v2 .bb-v2-page-hero__inner::before,
  body.bb-theme-v2 .bb-v2-page-hero__inner::after {
    display: none;
  }
}
