@import url(https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&family=Work+Sans:ital,wght@0,100..900;1,100..900&display=swap);
/* ── A-Vertex / Project Estimator style overrides ── */

/* Sidebar & SidebarPage overrides moved to myTheme.ts (BackstageSidebar, BackstageSidebarPage) */

/* Warm gradient background for the entire app — from Figma */
body {
  font-family: "Work Sans", sans-serif !important;
  background: linear-gradient(118deg, #EEEEEE 5.1%, #FFF1E7 93%);
}

/* Glass-effect cards — Figma: white bg, #EFEFEF border, 24px radius */
.glass-effect {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  border-radius: 24px;
}

/* Clean card styling — Figma: white, subtle border, no heavy shadows */
.ascentt-card {
  border: 1px solid #EFEFEF;
  border-radius: 24px;
  box-shadow: none;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.ascentt-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

/* BackstageHeader gradient + borderRadius moved to myTheme.ts */

/* BackstagePage + BackstageContent overrides moved to myTheme.ts */

/* ══════════════════════════════════════════════════════════
   Compact page header + tab pills
   Header is a slim black bar, tabs are horizontal pills
   ══════════════════════════════════════════════════════════ */

/* Hide subtitle on listing pages — too tall for the slim bar */
[class*="BackstageHeader-subtitle"] {
  max-height: 1.4em;
  overflow: hidden;
}

/* Hide the right-items box in the header to save space */
[class*="BackstageHeader-rightItemsBox"] {
  display: none !important;
}

/* ══════════════════════════════════════════════════════════
   Scaffolder stepper — simplified / clean wizard UI
   ══════════════════════════════════════════════════════════ */

/* Scaffolder form container — cleaner spacing */
[class*="TemplatePage"],
[class*="Wizard"],
form[class*="scaffolder"] {
  max-width: 900px;
}

/* Make the Review step content cleaner */
[class*="ReviewState"] table {
  border-collapse: collapse;
}
[class*="ReviewState"] table td {
  padding: 8px 16px !important;
  border-bottom: 1px solid #F0F0F0 !important;
  font-size: 0.875rem;
}
[class*="ReviewState"] table th {
  padding: 8px 16px !important;
  font-weight: 500;
  font-size: 0.8125rem;
  color: rgba(0, 0, 0, 0.45);
  border-bottom: 1px solid #F0F0F0 !important;
}

/* ══════════════════════════════════════════════════════════
   Backstage Table — Figma "Ant Design Open Source Ascentt"
   ══════════════════════════════════════════════════════════ */

/* Table wrapper — rounded card with subtle border/shadow */
[class*="BackstageTable-root"] {
  border: 1px solid #E9EAEB;
  border-radius: 24px;
  box-shadow: 0 1px 2px rgba(10, 13, 18, 0.05);
  overflow: hidden;
  background: #FFFFFF;
}

/* ── Toolbar (card header) — Figma: 20px 24px padding, divider below ── */
[class*="BackstageTableToolbar-root"],
[class*="PluginCatalogTableToolbar-root"] {
  padding: 20px 24px !important;
  min-height: unset !important;
  border-bottom: 1px solid #E9EAEB;
}
[class*="BackstageTableToolbar-title"],
[class*="PluginCatalogTableToolbar-root"] h5,
[class*="BackstageTableToolbar-root"] h2,
[class*="BackstageTableToolbar-root"] h5,
[class*="BackstageTableToolbar-root"] h6 {
  font-family: "Work Sans", sans-serif !important;
  font-size: 1.25rem !important;
  font-weight: 500 !important;
  color: #181D27 !important;
  line-height: 28px !important;
}

/* ── Search field — Figma: pill-shaped, 300px, rgba(255,255,255,0.8) bg ── */
[class*="BackstageTableToolbar-searchField"],
[class*="MTableToolbar-searchField"] {
  padding-right: 0 !important;
}
[class*="BackstageTableToolbar-searchField"] .MuiInputBase-root,
[class*="PluginCatalogTableToolbar-root"] .MuiInputBase-root,
[class*="MTableToolbar-searchField"] .MuiInputBase-root {
  background: rgba(255, 255, 255, 0.8) !important;
  border: 1px solid #E0E0E0 !important;
  border-radius: 9999px !important;
  padding: 6px 20px !important;
  min-width: 260px;
  height: 44px;
  box-shadow: 0 0 0 0 white;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
[class*="BackstageTableToolbar-searchField"] .MuiInputBase-root:hover,
[class*="PluginCatalogTableToolbar-root"] .MuiInputBase-root:hover,
[class*="MTableToolbar-searchField"] .MuiInputBase-root:hover {
  border-color: #BFBFBF !important;
}
[class*="BackstageTableToolbar-searchField"] .MuiInputBase-root.Mui-focused,
[class*="PluginCatalogTableToolbar-root"] .MuiInputBase-root.Mui-focused,
[class*="MTableToolbar-searchField"] .MuiInputBase-root.Mui-focused {
  border-color: #F58321 !important;
  box-shadow: 0 0 0 2px rgba(245, 131, 33, 0.1) !important;
}
[class*="BackstageTableToolbar-searchField"] .MuiInputBase-root::before,
[class*="BackstageTableToolbar-searchField"] .MuiInputBase-root::after,
[class*="PluginCatalogTableToolbar-root"] .MuiInputBase-root::before,
[class*="PluginCatalogTableToolbar-root"] .MuiInputBase-root::after,
[class*="MTableToolbar-searchField"] .MuiInputBase-root::before,
[class*="MTableToolbar-searchField"] .MuiInputBase-root::after {
  display: none !important;
}
[class*="BackstageTableToolbar-searchField"] input,
[class*="PluginCatalogTableToolbar-root"] input,
[class*="MTableToolbar-searchField"] input {
  font-family: "Work Sans", sans-serif !important;
  font-size: 0.875rem !important;
  color: #141414 !important;
  padding: 0 !important;
}
[class*="BackstageTableToolbar-searchField"] input::placeholder,
[class*="PluginCatalogTableToolbar-root"] input::placeholder,
[class*="MTableToolbar-searchField"] input::placeholder {
  color: #595959 !important;
  opacity: 1 !important;
}

/* ── Action buttons in toolbar — Figma: outlined, #D9D9D9 border ── */
[class*="MTableToolbar-actions"] .MuiIconButton-root {
  border: 1px solid #D9D9D9 !important;
  border-radius: 8px !important;
  padding: 8px !important;
  margin-left: 8px !important;
  color: rgba(0, 0, 0, 0.85) !important;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.02);
  transition: all 0.2s ease;
}
[class*="MTableToolbar-actions"] .MuiIconButton-root:hover {
  background-color: #F5F5F5 !important;
  border-color: #BFBFBF !important;
}

/* ── Filter container — Figma: inline row, px-24 py-16 ── */
[class*="BackstageTableFiltersContainer-root"] {
  padding: 16px 24px !important;
  border-bottom: 1px solid #E9EAEB;
}
[class*="BackstageTableFiltersContainer-title"] {
  font-family: "Work Sans", sans-serif !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  color: rgba(0, 0, 0, 0.85) !important;
  white-space: nowrap !important;
}

/* ── Filter sidebar — refined look ── */
[class*="BackstageTableFilters-root"] {
  font-family: "Work Sans", sans-serif !important;
  width: 280px !important;
  margin-right: 16px !important;
  border-right: 1px solid #E9EAEB;
  padding-right: 16px;
}
[class*="BackstageTableFilters-header"] {
  border-bottom: 1px solid #E9EAEB !important;
  padding: 16px 0 12px !important;
}
[class*="BackstageTableFilters-value"] {
  font-family: "Work Sans", sans-serif !important;
  font-size: 0.9375rem !important;
  font-weight: 600 !important;
  color: #181D27 !important;
}
/* Filter select dropdowns inside sidebar */
[class*="BackstageTableFilters-filters"] .MuiInputBase-root {
  border: 1px solid #D9D9D9 !important;
  border-radius: 8px !important;
  padding: 4px 12px !important;
  font-family: "Work Sans", sans-serif !important;
  font-size: 0.875rem !important;
  background: #FFFFFF;
  transition: border-color 0.2s ease;
}
[class*="BackstageTableFilters-filters"] .MuiInputBase-root:hover {
  border-color: #BFBFBF !important;
}
[class*="BackstageTableFilters-filters"] .MuiInputBase-root.Mui-focused {
  border-color: #F58321 !important;
}
[class*="BackstageTableFilters-filters"] .MuiInputBase-root::before,
[class*="BackstageTableFilters-filters"] .MuiInputBase-root::after {
  display: none !important;
}
[class*="BackstageTableFilters-filters"] .MuiFormLabel-root {
  font-family: "Work Sans", sans-serif !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  color: #717680 !important;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* ── Catalog filter layout (EntityKindPicker, etc.) ── */
[class*="CatalogFilterLayout"] [class*="Filters"] {
  padding-top: 16px;
}
[class*="CatalogFilterLayout"] [class*="Filters"] .MuiInputBase-root {
  border: 1px solid #D9D9D9;
  border-radius: 8px;
  padding: 4px 12px;
  font-family: "Work Sans", sans-serif;
  font-size: 0.875rem;
  background: #FFFFFF;
  transition: border-color 0.2s ease;
}
[class*="CatalogFilterLayout"] [class*="Filters"] .MuiInputBase-root:hover {
  border-color: #BFBFBF;
}
[class*="CatalogFilterLayout"] [class*="Filters"] .MuiInputBase-root.Mui-focused {
  border-color: #F58321;
}
[class*="CatalogFilterLayout"] [class*="Filters"] .MuiInputBase-root::before,
[class*="CatalogFilterLayout"] [class*="Filters"] .MuiInputBase-root::after {
  display: none !important;
}
[class*="CatalogFilterLayout"] [class*="Filters"] .MuiFormLabel-root {
  font-family: "Work Sans", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: #717680;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* ── ContentHeader action buttons — Figma-style ── */
[class*="BackstageContentHeader-leftItemsBox"] + div .MuiButton-containedPrimary,
[class*="BackstageContentHeader-rightItemsBox"] .MuiButton-containedPrimary {
  background: #141414 !important;
  border: 1px solid #141414 !important;
  border-radius: 9999px !important;
  padding: 7px 16px !important;
  min-height: 40px;
  font-family: "Work Sans", sans-serif !important;
  font-size: 0.875rem !important;
  font-weight: 400 !important;
  text-transform: none !important;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.04) !important;
  transition: all 0.2s ease !important;
}
[class*="BackstageContentHeader-leftItemsBox"] + div .MuiButton-containedPrimary:hover,
[class*="BackstageContentHeader-rightItemsBox"] .MuiButton-containedPrimary:hover {
  background: #333333 !important;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12) !important;
}

/* Support button in content header — outlined style */
[class*="BackstageContentHeader"] .MuiButton-outlined {
  border: 1px solid #D9D9D9 !important;
  border-radius: 9999px !important;
  padding: 7px 16px !important;
  min-height: 40px;
  font-family: "Work Sans", sans-serif !important;
  font-size: 0.875rem !important;
  font-weight: 400 !important;
  text-transform: none !important;
  color: rgba(0, 0, 0, 0.85) !important;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.02) !important;
}
[class*="BackstageContentHeader"] .MuiButton-outlined:hover {
  background-color: #F5F5F5 !important;
  border-color: #BFBFBF !important;
}

/* Table header cells — #FAFAFA bg, #717680 text, 12px semibold */
[class*="BackstageTableHeader-header"],
[class*="MTableHeader-header"] {
  background-color: #FAFAFA !important;
  border-bottom: 1px solid #E9EAEB !important;
  color: #717680 !important;
  font-family: "Work Sans", sans-serif !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  line-height: 18px !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  padding: 12px 24px !important;
  height: 44px !important;
  position: relative !important;
}

/* Table body cells — #181D27, 14px medium, roomy padding */
[class*="BackstageTable-root"] td.MuiTableCell-root {
  border-bottom: 1px solid #E9EAEB !important;
  font-family: "Work Sans", sans-serif !important;
  font-size: 0.875rem !important;
  font-weight: 400 !important;
  line-height: 20px !important;
  color: #181D27 !important;
  padding: 14px 24px !important;
}

/* Row hover — subtle warm gray */
[class*="BackstageTable-root"] tbody tr:hover {
  background-color: #FAFAFA !important;
}

/* Remove the last row's bottom border for clean look */
[class*="BackstageTable-root"] tbody tr:last-child td {
  border-bottom: none !important;
}

/* Pagination row — clean border top, proper spacing */
[class*="BackstageTable-root"] .MuiTablePagination-root {
  border-top: 1px solid #E9EAEB;
  font-family: "Work Sans", sans-serif;
}
[class*="BackstageTable-root"] .MuiTablePagination-root .MuiIconButton-root {
  border: 1px solid #D5D7DA;
  border-radius: 8px;
  padding: 4px;
  margin: 0 4px;
  box-shadow: 0 1px 2px rgba(10, 13, 18, 0.05);
}
[class*="BackstageTable-root"] .MuiTablePagination-root .MuiIconButton-root:hover {
  background-color: #FAFAFA;
}

/* Metadata tables on entity detail pages */
[class*="BackstageMetadataTableTitleCell-root"] {
  font-family: "Work Sans", sans-serif !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  color: #717680 !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 10px 16px !important;
  background-color: transparent !important;
  border-bottom: 1px solid #E9EAEB !important;
  white-space: nowrap;
}
[class*="BackstageMetadataTableCell-root"] {
  font-family: "Work Sans", sans-serif !important;
  font-size: 0.875rem !important;
  color: #181D27 !important;
  padding: 10px 16px !important;
  border-bottom: 1px solid #E9EAEB !important;
}

/* ══════════════════════════════════════════════════════════
   A-Vertex Top Navbar + Expandable DevHub Sub-Nav
   Sizes match Project Estimator (DashboardHeader) exactly
   ══════════════════════════════════════════════════════════ */

/* ── Shell ── */
.av-shell {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100%;
  overflow-x: hidden;
  overflow-y: hidden;
}
.av-content {
  flex: 1;
  min-height: 0;
  padding: 0 24px 24px;
  overflow-y: auto;
  overflow-x: hidden;
}

/* ── Top navbar ── */
.av-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 24px 24px 16px;
  margin-bottom: 8px;
  position: relative;
}

/* Logo pill — Figma: black border, white bg, pill shape */
.av-logo-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #141414;
  border-radius: 9999px;
  padding: 8px 24px;
  height: 64px;
  cursor: pointer;
  transition: all 0.2s ease;
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: none;
  text-decoration: none;
  flex-shrink: 0;
}
.av-logo-pill:hover {
  border-color: #F58321;
  box-shadow: 0 2px 8px rgba(245, 131, 33, 0.1);
}

/* Right icons container */
.av-topbar__right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* ── Pill navigation container — Figma: #EFEFEF border, white bg ── */
.av-nav-pills {
  display: flex;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.8);
  border: 1px solid #EFEFEF;
  border-radius: 9999px;
  height: 64px;
  padding: 0 6px;
  box-shadow: 0 0 0 0 white;
}

/* Individual pill — Figma: 54px height, Work Sans 16px */
.av-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 54px;
  padding: 0 24px;
  border-radius: 9999px;
  font-family: "Work Sans", sans-serif;
  font-size: 1rem;
  font-weight: 400;
  color: #141414;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  border: none;
  background: transparent;
  line-height: 1.5;
}
.av-pill:hover {
  background-color: rgba(0, 0, 0, 0.04);
}
.av-pill--active {
  background-color: #141414;
  color: #FFFCFA;
  font-weight: 400;
}
.av-pill--active:hover {
  background-color: #141414;
}
.av-pill--disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Chevron inside active pill */
.av-pill__chevron {
  transition: transform 0.25s ease;
  flex-shrink: 0;
}
.av-pill__chevron--up {
  transform: rotate(180deg);
}

/* ── Icon buttons (notification, profile) — Figma: 64px, white bg, #E0E0E0 border ── */
.av-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background-color: rgba(255, 255, 255, 0.8);
  border: 1px solid #E0E0E0;
  border-radius: 9999px;
  box-shadow: 0 0 0 0 white;
  transition: all 0.2s ease;
  cursor: pointer;
  color: rgba(0, 0, 0, 0.65);
}
.av-icon-btn:hover {
  background-color: rgba(255, 255, 255, 1);
  border-color: #D9D9D9;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  color: rgba(0, 0, 0, 0.85);
}

/* Profile image inside icon button */
.av-profile-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
}
.av-profile-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ══════════════════════════════════════════════════════════
   Collapsible wrapper — other pills hide when DevHub opens
   ══════════════════════════════════════════════════════════ */
.av-collapse {
  display: flex;
  align-items: center;
  overflow: hidden;
  max-width: 0;
  opacity: 0;
  transition:
    max-width 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.25s ease;
}
.av-collapse--open {
  max-width: 600px;
  opacity: 1;
}

/* ══════════════════════════════════════════════════════════
   DevHub sub-items — expand INLINE inside the pill bar
   ══════════════════════════════════════════════════════════ */

/* Back arrow inside the active pill when expanded */
.av-pill__back {
  flex-shrink: 0;
  margin-right: 2px;
}

/* Wrapper for inline-expanding DevHub sub-items */
.av-devhub-inline {
  display: flex;
  align-items: center;
  overflow: hidden;
  max-width: 0;
  opacity: 0;
  transition:
    max-width 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.3s ease;
}
.av-devhub-inline--open {
  max-width: 900px;
  opacity: 1;
}

/* Vertical separator between main pills and DevHub sub-pills */
.av-separator {
  display: block;
  width: 1px;
  height: 28px;
  background-color: #E0E0E0;
  margin: 0 6px;
  flex-shrink: 0;
}

/* DevHub sub-pill — Figma: smaller, clean look */
.av-sub-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 14px;
  border-radius: 9999px;
  font-family: "Work Sans", sans-serif;
  font-size: 0.8125rem;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.65);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}
.av-sub-pill:hover {
  background-color: rgba(245, 131, 33, 0.06);
  color: #F58321;
}
.av-sub-pill:hover .av-sub-pill__icon svg path {
  stroke: #F58321;
}
.av-sub-pill--active {
  background-color: rgba(245, 131, 33, 0.1);
  color: #F58321;
  font-weight: 500;
}
.av-sub-pill--active .av-sub-pill__icon svg path {
  stroke: #F58321;
}

/* Sub-pill icon */
.av-sub-pill__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.av-sub-pill__icon svg {
  width: 16px;
  height: 16px;
}
.av-sub-pill__icon svg path {
  stroke: #666;
  transition: stroke 0.2s ease;
}


@custom-variant dark (&:is(.dark *));

:root {
  --font-size: 16px;
  --background: #ffffff;
  --foreground: oklch(0.145 0 0);
  --card: #ffffff;
  --card-foreground: oklch(0.145 0 0);
  --popover: oklch(1 0 0);
  --popover-foreground: oklch(0.145 0 0);
  --primary: #030213;
  --primary-foreground: oklch(1 0 0);
  --secondary: oklch(0.95 0.0058 264.53);
  --secondary-foreground: #030213;
  --muted: #ececf0;
  --muted-foreground: #717182;
  --accent: #e9ebef;
  --accent-foreground: #030213;
  --destructive: #d4183d;
  --destructive-foreground: #ffffff;
  --border: rgba(0, 0, 0, 0.1);
  --input: transparent;
  --input-background: #f3f3f5;
  --switch-background: #cbced4;
  --font-weight-medium: 500;
  --font-weight-normal: 400;
  --ring: oklch(0.708 0 0);
  --chart-1: oklch(0.646 0.222 41.116);
  --chart-2: oklch(0.6 0.118 184.704);
  --chart-3: oklch(0.398 0.07 227.392);
  --chart-4: oklch(0.828 0.189 84.429);
  --chart-5: oklch(0.769 0.188 70.08);
  --radius: 0.625rem;
  --sidebar: oklch(0.985 0 0);
  --sidebar-foreground: oklch(0.145 0 0);
  --sidebar-primary: #030213;
  --sidebar-primary-foreground: oklch(0.985 0 0);
  --sidebar-accent: oklch(0.97 0 0);
  --sidebar-accent-foreground: oklch(0.205 0 0);
  --sidebar-border: oklch(0.922 0 0);
  --sidebar-ring: oklch(0.708 0 0);
}

.dark {
  --background: oklch(0.145 0 0);
  --foreground: oklch(0.985 0 0);
  --card: oklch(0.145 0 0);
  --card-foreground: oklch(0.985 0 0);
  --popover: oklch(0.145 0 0);
  --popover-foreground: oklch(0.985 0 0);
  --primary: oklch(0.985 0 0);
  --primary-foreground: oklch(0.205 0 0);
  --secondary: oklch(0.269 0 0);
  --secondary-foreground: oklch(0.985 0 0);
  --muted: oklch(0.269 0 0);
  --muted-foreground: oklch(0.708 0 0);
  --accent: oklch(0.269 0 0);
  --accent-foreground: oklch(0.985 0 0);
  --destructive: oklch(0.396 0.141 25.723);
  --destructive-foreground: oklch(0.637 0.237 25.331);
  --border: oklch(0.269 0 0);
  --input: oklch(0.269 0 0);
  --ring: oklch(0.439 0 0);
  --font-weight-medium: 500;
  --font-weight-normal: 400;
  --chart-1: oklch(0.488 0.243 264.376);
  --chart-2: oklch(0.696 0.17 162.48);
  --chart-3: oklch(0.769 0.188 70.08);
  --chart-4: oklch(0.627 0.265 303.9);
  --chart-5: oklch(0.645 0.246 16.439);
  --sidebar: oklch(0.205 0 0);
  --sidebar-foreground: oklch(0.985 0 0);
  --sidebar-primary: oklch(0.488 0.243 264.376);
  --sidebar-primary-foreground: oklch(0.985 0 0);
  --sidebar-accent: oklch(0.269 0 0);
  --sidebar-accent-foreground: oklch(0.985 0 0);
  --sidebar-border: oklch(0.269 0 0);
  --sidebar-ring: oklch(0.439 0 0);
}

@theme inline {
  --color-background: var(--background);
  --color-foreground: var(--foreground);
  --color-card: var(--card);
  --color-card-foreground: var(--card-foreground);
  --color-popover: var(--popover);
  --color-popover-foreground: var(--popover-foreground);
  --color-primary: var(--primary);
  --color-primary-foreground: var(--primary-foreground);
  --color-secondary: var(--secondary);
  --color-secondary-foreground: var(--secondary-foreground);
  --color-muted: var(--muted);
  --color-muted-foreground: var(--muted-foreground);
  --color-accent: var(--accent);
  --color-accent-foreground: var(--accent-foreground);
  --color-destructive: var(--destructive);
  --color-destructive-foreground: var(--destructive-foreground);
  --color-border: var(--border);
  --color-input: var(--input);
  --color-input-background: var(--input-background);
  --color-switch-background: var(--switch-background);
  --color-ring: var(--ring);
  --color-chart-1: var(--chart-1);
  --color-chart-2: var(--chart-2);
  --color-chart-3: var(--chart-3);
  --color-chart-4: var(--chart-4);
  --color-chart-5: var(--chart-5);
  --radius-sm: calc(var(--radius) - 4px);
  --radius-md: calc(var(--radius) - 2px);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) + 4px);
  --color-sidebar: var(--sidebar);
  --color-sidebar-foreground: var(--sidebar-foreground);
  --color-sidebar-primary: var(--sidebar-primary);
  --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
  --color-sidebar-accent: var(--sidebar-accent);
  --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
  --color-sidebar-border: var(--sidebar-border);
  --color-sidebar-ring: var(--sidebar-ring);
}

@layer base {
  * {
    @apply border-border outline-ring/50;
  }

  body {
    @apply bg-background text-foreground;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
}

/**
 * Base typography. This is not applied to elements which have an ancestor with a Tailwind text class.
 */
@layer base {
  :where(:not(:has([class*=' text-']), :not(:has([class^='text-'])))) {
    h1 {
      font-size: var(--text-2xl);
      font-weight: var(--font-weight-medium);
      line-height: 1.5;
    }

    h2 {
      font-size: var(--text-xl);
      font-weight: var(--font-weight-medium);
      line-height: 1.5;
    }

    h3 {
      font-size: var(--text-lg);
      font-weight: var(--font-weight-medium);
      line-height: 1.5;
    }

    h4 {
      font-size: var(--text-base);
      font-weight: var(--font-weight-medium);
      line-height: 1.5;
    }

    label {
      font-size: var(--text-base);
      font-weight: var(--font-weight-medium);
      line-height: 1.5;
    }

    button {
      font-size: var(--text-base);
      font-weight: var(--font-weight-medium);
      line-height: 1.5;
    }

    input {
      font-size: var(--text-base);
      font-weight: var(--font-weight-normal);
      line-height: 1.5;
    }
  }
}

html {
  font-size: var(--font-size);
}

/* ══════════════════════════════════════════════════════════
   Backstage Scaffolder Filter Sidebar Improvements
   MUI component overrides (MuiChip, MuiFormLabel, etc.)
   moved to myTheme.ts for production compatibility.
   Only stable HTML-tag selectors remain here.
   ══════════════════════════════════════════════════════════ */

/* Fix filter sidebar search field spacing */
aside input[placeholder*="Search"] {
  padding: 10px 14px !important;
  font-size: 0.875rem !important;
}

/* Improve filter section spacing */
aside > section {
  margin-bottom: 16px !important;
}

/* Fix section header typography */
aside h3 {
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  color: rgba(0,0,0,0.5) !important;
  letter-spacing: 0.5px !important;
  margin-bottom: 10px !important;
}

/* ══════════════════════════════════════════════════════════
   TechDocs Sidebar Z-Index Fixes
   Uses stable MkDocs classes (.md-sidebar, .md-content)
   and data attributes — these are NOT mangled in production.
   ══════════════════════════════════════════════════════════ */

/* TechDocs left navigation sidebar */
.md-sidebar--primary {
  z-index: 5 !important;
  position: relative !important;
  max-height: calc(100vh - 140px) !important;
  margin-top: 0 !important;
  top: 0 !important;
}

/* TechDocs right table-of-contents sidebar */
.md-sidebar--secondary {
  z-index: 5 !important;
  position: relative !important;
  max-height: calc(100vh - 140px) !important;
  margin-top: 0 !important;
  top: 0 !important;
}

/* TechDocs main content area */
.md-content {
  position: relative !important;
  z-index: 2 !important;
}

/* Ensure main content area doesn't get hidden */
main.av-content {
  z-index: 1 !important;
  position: relative !important;
}

/* ══════════════════════════════════════════════════════════
   Embedded / iframe mode
   When loaded inside the Project Estimator via ?embedded=1,
   the av-topbar is removed by Root.tsx. These styles adjust
   the remaining content area for seamless inline display.
   ══════════════════════════════════════════════════════════ */

/* The parent app controls the gradient background */
body.embedded-mode {
  background: transparent !important;
  margin: 0;
  padding: 0;
}

/* Fill the iframe viewport fully */
body.embedded-mode .av-shell {
  height: 100vh;
  overflow: hidden;
}

body.embedded-mode .av-content {
  padding: 0 20px 16px !important;
  overflow-y: auto;
  height: 100%;
  /* Match the Figma gradient */
  background: linear-gradient(118deg, #EEEEEE 5.1%, #FFF1E7 93%);
}


/*# sourceMappingURL=main.6bf5fb4a.css.map*/