/* BizzWeave ERP Help Centre — visual theme on top of Material for MkDocs */

:root {
  --brand-50: #eef2ff;
  --brand-100: #e0e7ff;
  --brand-400: #818cf8;
  --brand-500: #6366f1;
  --brand-600: #4f46e5;
  --brand-700: #4338ca;
  --teal: #14b8a6;
  --navy: #0f1330;
  --callout: #f97316;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(15, 19, 48, .06), 0 1px 1px rgba(15, 19, 48, .04);
  --shadow-md: 0 10px 30px -12px rgba(15, 19, 48, .25), 0 2px 6px rgba(15, 19, 48, .06);
  --shadow-lg: 0 30px 60px -20px rgba(49, 46, 129, .35);
}

[data-md-color-scheme="default"] {
  --md-primary-fg-color: var(--brand-600);
  --md-primary-fg-color--light: var(--brand-400);
  --md-primary-fg-color--dark: var(--brand-700);
  --md-accent-fg-color: var(--brand-500);
  --md-default-bg-color: #ffffff;
  --md-typeset-a-color: var(--brand-600);
  --surface: #f7f8fc;
  --surface-2: #ffffff;
  --line: #e6e8f2;
  --muted: #5b6178;
  --heading: #0f1330;
}

[data-md-color-scheme="slate"] {
  --md-hue: 235;
  --md-primary-fg-color: var(--brand-500);
  --md-primary-fg-color--light: var(--brand-400);
  --md-primary-fg-color--dark: var(--brand-700);
  --md-accent-fg-color: var(--brand-400);
  --md-default-bg-color: #0b0e22;
  --md-default-fg-color--light: #a9afc9;
  --md-typeset-a-color: var(--brand-400);
  --surface: #11152e;
  --surface-2: #151a38;
  --line: #242a4d;
  --muted: #a3a9c4;
  --heading: #f3f4fb;
}

/* ---------- header and tabs ---------- */
.md-header {
  background: linear-gradient(100deg, #0f1330 0%, #1e1b4b 55%, #312e81 100%);
  box-shadow: none;
}
.md-header__title { font-weight: 700; letter-spacing: -.01em; }
.md-tabs {
  background: #12163a;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.md-tabs__link { font-weight: 500; opacity: .75; font-size: .72rem; }
.md-tabs__item--active .md-tabs__link, .md-tabs__link:hover { opacity: 1; }
.md-tabs__item--active .md-tabs__link { color: #fff; }
.md-search__form { border-radius: 10px; background: rgba(255, 255, 255, .1); }
.md-search__form:hover { background: rgba(255, 255, 255, .16); }

/* ---------- typography ---------- */
.md-typeset { font-size: .9rem; line-height: 1.75; }
.md-typeset h1 {
  font-weight: 800; letter-spacing: -.025em; color: var(--heading);
  font-size: 2.05em; margin-bottom: .4em;
}
.md-typeset h2 {
  font-weight: 700; letter-spacing: -.015em; color: var(--heading);
  margin-top: 2.2em; padding-top: .2em;
}
.md-typeset h3 { font-weight: 650; color: var(--heading); }
.md-typeset .lead { font-size: 1.12em; color: var(--muted); margin-top: -.4em; }
.md-nav__title { font-weight: 700; }
.md-nav__link--active { font-weight: 600; }

/* ---------- screenshots ---------- */
.md-typeset figure { margin: 1.4em auto 1.8em; }
.md-typeset img.screen, .md-typeset figure img {
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  background: #fff;
}
.md-typeset figcaption {
  font-size: .8rem; color: var(--muted); margin-top: .7em; max-width: none;
}
.md-typeset figcaption em { font-style: normal; }

/* ---------- numbered steps ---------- */
.md-typeset .steps { counter-reset: step; margin: 1.2em 0 1.8em; }
.md-typeset .steps > ol { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.md-typeset .steps > ol > li {
  counter-increment: step; position: relative; margin: 0 0 1.1em; padding: .9em 1.1em .9em 3.6em;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.md-typeset .steps > ol > li::before {
  content: counter(step); position: absolute; left: 1em; top: .85em;
  width: 1.75em; height: 1.75em; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  color: #fff; font-weight: 700; font-size: .85em; display: grid; place-items: center;
  box-shadow: 0 4px 10px -2px rgba(79, 70, 229, .5);
}
.md-typeset .steps > ol > li > :first-child { margin-top: 0; }
.md-typeset .steps > ol > li > :last-child { margin-bottom: 0; }
.md-typeset .steps figure { margin: 1em 0 .4em; }

/* callout numbers used in text, matching the orange rings on screenshots */
.md-typeset .n {
  display: inline-grid; place-items: center; width: 1.45em; height: 1.45em; border-radius: 50%;
  background: var(--callout); color: #fff; font-weight: 700; font-size: .78em; vertical-align: .08em;
  margin: 0 .15em;
}

/* ---------- admonitions ---------- */
.md-typeset .admonition, .md-typeset details {
  border-radius: 12px; border-width: 1px; box-shadow: none; font-size: .86rem;
  border-left-width: 4px;
}
.md-typeset .admonition-title, .md-typeset summary { font-weight: 650; }

/* ---------- tables ---------- */
.md-typeset table:not([class]) {
  border-radius: 12px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font-size: .84rem; display: table; width: 100%;
}
.md-typeset table:not([class]) th {
  background: var(--surface); font-weight: 650; color: var(--heading);
  text-transform: uppercase; font-size: .66rem; letter-spacing: .04em;
}
.md-typeset table:not([class]) td, .md-typeset table:not([class]) th { padding: .75em 1em; }

/* ---------- cards ---------- */
.md-typeset .cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; margin: 1.4em 0 2em; }
.md-typeset .card {
  display: block; position: relative; padding: 1.25rem 1.3rem 1.2rem; border-radius: var(--radius);
  background: var(--surface-2); border: 1px solid var(--line); color: inherit;
  box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.md-typeset a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--brand-400); color: inherit; }
.md-typeset .card h3 { margin: .7em 0 .25em; font-size: .95rem; }
.md-typeset .card p { margin: 0; color: var(--muted); font-size: .74rem; line-height: 1.6; }
.md-typeset .card .badge-icon {
  width: 2.5rem; height: 2.5rem; border-radius: 11px; display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: .8rem; letter-spacing: .02em;
}
.md-typeset .card .soon {
  position: absolute; top: 1rem; right: 1rem; font-size: .6rem; font-weight: 600; letter-spacing: .03em;
  padding: .15em .6em; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--muted);
}
.g-ca { background: linear-gradient(135deg, #fb923c, #f97316); }
.g-ge { background: linear-gradient(135deg, #2dd4bf, #0d9488); }
.g-it { background: linear-gradient(135deg, #fbbf24, #f59e0b); }
.g-pm { background: linear-gradient(135deg, #818cf8, #4f46e5); }
.g-gs { background: linear-gradient(135deg, #a78bfa, #7c3aed); }
.g-ad { background: linear-gradient(135deg, #94a3b8, #475569); }

/* ---------- page header band for category landing pages ---------- */
.md-typeset .band {
  border-radius: 18px; padding: 1.8rem 2rem; margin: 0 0 1.8rem; color: #fff;
  background: radial-gradient(circle at 85% 20%, rgba(20, 184, 166, .35), transparent 45%),
              linear-gradient(120deg, #1e1b4b, #4338ca);
  box-shadow: var(--shadow-lg);
}
.md-typeset .band h1 { color: #fff; margin: 0 0 .25em; }
.md-typeset .band p { color: rgba(255, 255, 255, .82); margin: 0; font-size: .9rem; max-width: 46rem; }
.md-typeset .band .chips { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.md-typeset .band .chips span {
  font-size: .66rem; padding: .25em .75em; border-radius: 999px; background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .18);
}

/* ---------- home page ---------- */
.home-hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(20, 184, 166, .35), transparent 60%),
    radial-gradient(800px 500px at 0% 0%, rgba(99, 102, 241, .45), transparent 60%),
    linear-gradient(180deg, #0f1330 0%, #1e1b4b 100%);
}
.home-hero__inner { max-width: 61rem; margin: 0 auto; padding: 4.2rem 1.2rem 6.5rem; text-align: center; }
.home-hero__eyebrow {
  display: inline-flex; gap: .5em; align-items: center; font-size: .68rem; font-weight: 600; letter-spacing: .04em;
  padding: .35em .9em; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14);
}
.home-hero__eyebrow i { width: .5em; height: .5em; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 3px rgba(52, 211, 153, .25); }
.home-hero h1 {
  font-size: 2.7rem; line-height: 1.1; font-weight: 800; letter-spacing: -.035em; margin: 1.1rem 0 .8rem; color: #fff;
}
.home-hero h1 span { background: linear-gradient(90deg, #a5b4fc, #5eead4); -webkit-background-clip: text; background-clip: text; color: transparent; }
.home-hero p { font-size: .95rem; color: rgba(255, 255, 255, .75); max-width: 38rem; margin: 0 auto 1.8rem; line-height: 1.7; }
.home-hero__search {
  display: flex; align-items: center; gap: .7rem; max-width: 34rem; margin: 0 auto; cursor: text;
  padding: .85rem 1.1rem; border-radius: 14px; background: #fff; color: #5b6178; font-size: .8rem;
  box-shadow: 0 20px 50px -15px rgba(0, 0, 0, .55); border: 0; width: 100%; text-align: left;
}
.home-hero__search svg { width: 1.1rem; height: 1.1rem; fill: #6366f1; flex: none; }
.home-hero__search kbd {
  margin-left: auto; font-family: inherit; font-size: .65rem; padding: .15em .5em; border-radius: 6px;
  border: 1px solid #e6e8f2; background: #f7f8fc; color: #5b6178;
}
.home-hero__quick { margin-top: 1.1rem; font-size: .7rem; color: rgba(255, 255, 255, .6); }
.home-hero__quick a { color: rgba(255, 255, 255, .9); margin: 0 .35rem; border-bottom: 1px dashed rgba(255, 255, 255, .35); }
.home-hero__quick a:hover { color: #fff; }

.home-body { max-width: 61rem; margin: -4rem auto 0; padding: 0 1.2rem 3rem; position: relative; }
.home-body .md-typeset h2 { margin-top: 2.6rem; font-size: 1.25rem; }
.home-body .md-typeset h2 + p { color: var(--muted); margin-top: -.4rem; }
.home-body .cards.big { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); margin-top: 0; }
.home-body .cards.big .card { padding: 1.5rem; }
.home-body .card .more { display: inline-block; margin-top: .9rem; font-size: .72rem; font-weight: 600; color: var(--md-typeset-a-color); }

.path {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0; margin: 1.2rem 0;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface-2);
}
.path a { padding: 1.1rem 1.2rem; color: inherit; border-right: 1px solid var(--line); transition: background .15s; }
.path a:last-child { border-right: 0; }
.path a:hover { background: var(--surface); color: inherit; }
.path b { display: block; font-size: .62rem; text-transform: uppercase; letter-spacing: .08em; color: var(--brand-500); }
.path span { display: block; font-weight: 650; margin: .2rem 0; color: var(--heading); }
.path small { color: var(--muted); font-size: .7rem; line-height: 1.5; display: block; }

/* hide the left sidebar and title on the home page */
.md-main__inner.home { max-width: none; margin: 0; }
@media screen and (max-width: 44.9375em) {
  .home-hero h1 { font-size: 1.9rem; }
  .home-hero__inner { padding-top: 2.8rem; }
}

/* footer */
.md-footer { background: #0f1330; }
.md-footer-meta { background: #0b0e22; }

/* wider reading area so screenshots stay legible */
.md-grid { max-width: 100rem; }


/* ================= larger reading size ================= */
.md-typeset .lead { font-size: 1.1em; }
.md-typeset figure { width: 100%; }
.md-typeset figure img, .md-typeset img.screen { width: 100%; height: auto; }
.md-typeset .card p { font-size: .82rem; }
.md-typeset .card h3 { font-size: 1.05rem; }
.path small { font-size: .78rem; }
.md-content { max-width: 64rem; }
@media screen and (min-width: 76.25em) {
  .md-sidebar--primary { width: 17rem; }
  .md-sidebar--secondary { width: 13rem; }
}

/* ================= headings and banners: larger ================= */
.md-header { height: 3.4rem; }
.md-header__title { font-size: 1.05rem; height: 3.4rem; line-height: 3.4rem; }
.md-header__button.md-logo img, .md-header__button.md-logo svg { height: 1.7rem; width: 1.7rem; }
.md-typeset h1 { font-size: 2.45em; }
.md-typeset h2 { font-size: 1.65em; }
.md-typeset h3 { font-size: 1.25em; }
.md-typeset .lead { font-size: 1.18em; }
.md-typeset .band { padding: 2.4rem 2.5rem; }
.md-typeset .band h1 { font-size: 2.6em; }
.md-typeset .band p { font-size: 1.05rem; max-width: 52rem; }
.md-typeset .band .chips span { font-size: .78rem; padding: .3em .9em; }
.home-hero h1 { font-size: 3.4rem; }
.home-hero p { font-size: 1.12rem; max-width: 44rem; }
.home-hero__eyebrow { font-size: .8rem; }
.home-hero__search { font-size: .95rem; padding: 1rem 1.25rem; max-width: 40rem; }
.home-hero__quick { font-size: .82rem; }
.home-body .md-typeset h2 { font-size: 1.6rem; }
.md-content:has(.home-body) { max-width: none; }
.md-typeset .steps > ol > li figure { margin-left: -2.5em; width: calc(100% + 2.5em); }

/* ================= sidebar: dark app-style navigation ================= */
@keyframes navIn { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
@keyframes glow { 0%, 100% { box-shadow: 0 8px 20px -8px rgba(99, 102, 241, .75); } 50% { box-shadow: 0 8px 26px -6px rgba(99, 102, 241, .95); } }

.md-sidebar--primary .md-nav__title[for="__drawer"] { display: none; }
.md-sidebar--primary .md-nav--secondary, .md-sidebar--primary .md-nav__link[for^="__toc"] { display: none; }

@media screen and (min-width: 76.25em) {
  .md-sidebar--primary { width: 17rem; }
  .md-sidebar--primary .md-sidebar__inner { padding-right: 0 !important; }
  .md-sidebar--primary .md-sidebar__scrollwrap {
    margin: 1.2rem .4rem 1.2rem .6rem; padding: 1rem .55rem 1.2rem; border-radius: 20px;
    background:
      radial-gradient(120% 60% at 0% 0%, rgba(99, 102, 241, .28), transparent 60%),
      radial-gradient(120% 50% at 100% 100%, rgba(20, 184, 166, .18), transparent 60%),
      linear-gradient(180deg, #121636 0%, #191d47 100%);
    border: 1px solid rgba(255, 255, 255, .06);
    box-shadow: 0 24px 50px -24px rgba(15, 19, 48, .7), inset 0 1px 0 rgba(255, 255, 255, .05);
    scrollbar-color: rgba(255, 255, 255, .15) transparent;
  }
  .md-sidebar--primary .md-nav--primary::before {
    content: "Browse guides"; display: block; margin: 0 .9rem .7rem; padding-bottom: .7rem;
    font-size: .64rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
    color: rgba(165, 180, 252, .75); border-bottom: 1px solid rgba(255, 255, 255, .07);
  }
}

.md-sidebar--primary .md-nav, .md-sidebar--primary .md-nav--primary { width: 100%; max-width: none; font-size: .84rem; }
.md-sidebar--primary .md-nav__item { display: block; width: 100%; padding: 0; }
.md-sidebar--primary .md-nav--primary > .md-nav__list > .md-nav__item { animation: navIn .45s cubic-bezier(.2, .7, .2, 1) both; }
.md-sidebar--primary .md-nav--primary > .md-nav__list > .md-nav__item:nth-child(2) { animation-delay: .04s; }
.md-sidebar--primary .md-nav--primary > .md-nav__list > .md-nav__item:nth-child(3) { animation-delay: .08s; }
.md-sidebar--primary .md-nav--primary > .md-nav__list > .md-nav__item:nth-child(4) { animation-delay: .12s; }
.md-sidebar--primary .md-nav--primary > .md-nav__list > .md-nav__item:nth-child(5) { animation-delay: .16s; }
.md-sidebar--primary .md-nav--primary > .md-nav__list > .md-nav__item:nth-child(6) { animation-delay: .2s; }
.md-sidebar--primary .md-nav--primary > .md-nav__list > .md-nav__item:nth-child(7) { animation-delay: .24s; }

/* every row */
.md-sidebar--primary .md-nav__link {
  position: relative; box-sizing: border-box; display: flex; align-items: center; gap: .7rem;
  margin: 2px .3rem; padding: .55rem .75rem; border-radius: 11px;
  color: rgba(226, 232, 255, .74); font-weight: 500;
  transition: background .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.md-sidebar--primary .md-nav__link .md-ellipsis { white-space: normal; }
.md-sidebar--primary .md-nav__link:hover, .md-sidebar--primary .md-nav__link:focus-visible {
  background: rgba(255, 255, 255, .07); color: #fff; transform: translateX(3px);
}

/* icon chips on top-level rows */
.md-sidebar--primary .md-nav__link > svg {
  flex: none; width: 1.95rem; height: 1.95rem; padding: .42rem; border-radius: 9px; box-sizing: border-box;
  background: rgba(255, 255, 255, .06); fill: #a5b4fc; color: #a5b4fc;
  transition: background .25s ease, transform .25s ease, fill .25s ease;
}
.md-sidebar--primary .md-nav__link:hover > svg {
  background: linear-gradient(135deg, #6366f1, #14b8a6); fill: #fff; transform: rotate(-6deg) scale(1.06);
}

/* top-level labels are bolder */
.md-sidebar--primary .md-nav--primary > .md-nav__list > .md-nav__item > .md-nav__link,
.md-sidebar--primary .md-nav--primary > .md-nav__list > .md-nav__item > .md-nav__container > a.md-nav__link {
  font-weight: 650; color: rgba(240, 242, 255, .92);
}

/* rows that have a page and a toggle */
.md-sidebar--primary .md-nav__container.md-nav__link { padding: 0; margin: 2px .3rem; gap: 0; width: auto; }
.md-sidebar--primary .md-nav__container.md-nav__link:hover { background: none; transform: none; }
.md-sidebar--primary .md-nav__container > a.md-nav__link { flex: 1 1 auto; min-width: 0; margin: 0; }
.md-sidebar--primary .md-nav__container > label.md-nav__link { flex: 0 0 auto; margin: 0; padding: .55rem .6rem; }
.md-sidebar--primary .md-nav__container > label.md-nav__link:hover { transform: none; }

/* chevrons rotate smoothly */
.md-sidebar--primary .md-nav__icon { color: rgba(226, 232, 255, .5); transition: transform .3s cubic-bezier(.2, .7, .2, 1), color .2s; }
.md-sidebar--primary .md-nav__link:hover .md-nav__icon { color: #fff; }

/* submenus: guide line and animated reveal */
.md-sidebar--primary .md-nav__item--nested > .md-nav > .md-nav__list {
  margin: .15rem 0 .35rem 1.55rem; padding-left: .45rem; border-left: 1px dashed rgba(165, 180, 252, .22);
}
.md-sidebar--primary .md-nav__toggle:checked ~ .md-nav > .md-nav__list > .md-nav__item { animation: navIn .35s cubic-bezier(.2, .7, .2, 1) both; }
.md-sidebar--primary .md-nav__toggle:checked ~ .md-nav > .md-nav__list > .md-nav__item:nth-child(2) { animation-delay: .05s; }
.md-sidebar--primary .md-nav__toggle:checked ~ .md-nav > .md-nav__list > .md-nav__item:nth-child(3) { animation-delay: .1s; }
.md-sidebar--primary .md-nav__toggle:checked ~ .md-nav > .md-nav__list > .md-nav__item:nth-child(4) { animation-delay: .15s; }
.md-sidebar--primary .md-nav__item--nested > .md-nav .md-nav__link { font-size: .8rem; padding: .45rem .7rem; }
.md-sidebar--primary .md-nav__item--nested > .md-nav .md-nav__link::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; flex: none; margin-left: -.15rem;
  background: rgba(165, 180, 252, .35); transition: background .2s, transform .2s;
}
.md-sidebar--primary .md-nav__item--nested > .md-nav .md-nav__container > a.md-nav__link::before,
.md-sidebar--primary .md-nav__item--nested > .md-nav label.md-nav__link::before { display: none; }
.md-sidebar--primary .md-nav__item--nested > .md-nav .md-nav__link:hover::before { background: #5eead4; transform: scale(1.3); }

/* open section heading gets a soft tint */
.md-sidebar--primary .md-nav__item--active > .md-nav__container > a.md-nav__link,
.md-sidebar--primary .md-nav__item--active > label.md-nav__link { color: #fff; }

/* current page: gradient pill with glow */
.md-sidebar--primary .md-nav__link--active:not(.md-nav__container) {
  background: linear-gradient(100deg, #6366f1 0%, #4f46e5 60%, #4338ca 100%) !important;
  color: #fff !important; font-weight: 650; transform: none;
  animation: glow 3.2s ease-in-out infinite;
}
.md-sidebar--primary .md-nav__link--active:not(.md-nav__container)::before { background: #fff !important; box-shadow: 0 0 0 3px rgba(255, 255, 255, .25); }
.md-sidebar--primary .md-nav__link--active > svg { background: rgba(255, 255, 255, .18); fill: #fff; }

@media (prefers-reduced-motion: reduce) {
  .md-sidebar--primary * { animation: none !important; transition: none !important; }
}

/* mobile drawer keeps the dark look */
@media screen and (max-width: 76.2344em) {
  .md-sidebar--primary .md-sidebar__scrollwrap { background: #121636; }
  .md-sidebar--primary .md-nav--primary .md-nav__title { background: #0f1330; color: #fff; }
  .md-nav--primary .md-nav__title[for="__drawer"] { display: block; }
}
/* a section's own page is open: one pill across name and chevron */
.md-sidebar--primary .md-nav__container:has(> a.md-nav__link--active) {
  background: linear-gradient(100deg, #6366f1 0%, #4f46e5 60%, #4338ca 100%); border-radius: 11px;
  animation: glow 3.2s ease-in-out infinite;
}
.md-sidebar--primary .md-nav__container > .md-nav__link--active {
  background: transparent !important; animation: none !important; box-shadow: none !important;
}
.md-sidebar--primary .md-nav__container:has(> a.md-nav__link--active) .md-nav__icon { color: #fff; }
