:root {
  --bg: #efede7;
  --bg-alt: #e3e0d8;
  --surface: #fffdf8;
  --surface-alt: #f4f0e8;
  --surface-inverse: #111111;
  --surface-inverse-soft: #1b1b1b;
  --ink: #111111;
  --ink-soft: #303030;
  --ink-muted: #6c685f;
  --ink-inverse: #f7f3ea;
  --border: rgba(17, 17, 17, 0.1);
  --border-strong: rgba(17, 17, 17, 0.22);
  --border-inverse: rgba(255, 255, 255, 0.18);
  --accent: #111111;
  --accent-soft: #ece8de;
  --success: #1f7a4f;
  --warning: #9a6700;
  --danger: #a43838;
  --shadow: 0 28px 80px rgba(17, 17, 17, 0.08);
  --shadow-soft: 0 16px 34px rgba(17, 17, 17, 0.06);
  --radius-xl: 36px;
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --container: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  font-family: "IBM Plex Sans", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(17, 17, 17, 0.04), transparent 22%),
    linear-gradient(180deg, #f7f4ec 0%, #ece7dc 100%);
}

.body-shell {
  min-height: 100vh;
}

.body-public::after,
.body-admin::after {
  content: "";
  position: fixed;
  inset: auto 0 0;
  height: 34vh;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.18));
}

body,
input,
select,
textarea,
button {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
}

.container {
  width: min(calc(100% - 2.2rem), var(--container));
  margin: 0 auto;
}

[v-cloak] {
  display: none;
}

.page-shell {
  position: relative;
  overflow-x: clip;
  overflow-y: visible;
  min-height: 100vh;
}

.analytics-shell {
  gap: 2rem;
}

.analytics-app {
  display: grid;
  gap: 1.5rem;
}

.analytics-loading,
.analytics-error {
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
  color: var(--ink-soft);
}

.analytics-summary-grid,
.analytics-chart-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.2rem;
}

.analytics-summary-card,
.analytics-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-soft);
}

.analytics-summary-card {
  grid-column: span 12;
  padding: 1.25rem 1.35rem;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.96), rgba(245, 245, 241, 0.86)),
    radial-gradient(circle at top right, rgba(38, 71, 166, 0.09), transparent 34%);
}

.analytics-summary-card span {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--ink-muted);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.analytics-summary-card strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.8rem, 2vw, 2.4rem);
  letter-spacing: -0.05em;
}

.analytics-panel {
  grid-column: span 12;
  padding: 1.3rem;
}

.analytics-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.analytics-panel-head h3,
.analytics-list li strong {
  font-family: "Space Grotesk", sans-serif;
}

.analytics-panel-head h3 {
  margin: 0;
  font-size: 1.12rem;
}

.analytics-panel-head p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.92rem;
}

.analytics-chart {
  width: 100%;
  height: 340px;
}

.analytics-chart-tall {
  height: 380px;
}

.analytics-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.analytics-list li {
  display: grid;
  gap: 0.2rem;
  padding: 0.95rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-alt);
}

.analytics-list li strong {
  font-size: 1rem;
}

.analytics-list li span,
.analytics-list li small {
  color: var(--ink-soft);
}

.analytics-list-empty {
  padding: 1rem;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  color: var(--ink-muted);
}

.analytics-account-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.analytics-account-total {
  text-align: end;
}

body.lang-fa .analytics-account-total,
body.lang-ar .analytics-account-total {
  text-align: start;
}

@media (min-width: 680px) {
  .analytics-summary-card {
    grid-column: span 6;
  }
}

@media (min-width: 1080px) {
  .analytics-summary-card {
    grid-column: span 3;
  }

  .analytics-panel-half {
    grid-column: span 6;
  }

  .analytics-panel-third {
    grid-column: span 4;
  }

  .analytics-panel-two-third {
    grid-column: span 8;
  }

  .inventory-chart-card {
    grid-column: span 4;
  }

  .inventory-chart-card-wide {
    grid-column: span 8;
  }

  .inventory-action-card {
    grid-column: span 12;
  }

  .inventory-content-grid > .inventory-section-card-vue:first-child,
  .inventory-low-stock-panel,
  .inventory-items-panel,
  .inventory-content-grid > .inventory-section-card-vue:last-child {
    grid-column: span 8;
  }

  .inventory-low-stock-panel,
  .inventory-content-grid > .inventory-section-card-vue:first-child,
  .inventory-content-grid > .inventory-section-card-vue:last-child {
    grid-column: span 12;
  }
}

@media (max-width: 640px) {
  .analytics-chart {
    height: 290px;
  }

  .analytics-account-row {
    display: grid;
  }

  .inventory-toolbar-card,
  .inventory-chart-card,
  .inventory-form-card-vue,
  .inventory-section-card-vue,
  .inventory-action-card {
    padding: 1rem;
    border-radius: 1.15rem;
  }

  .inventory-chart-card .analytics-chart {
    height: 280px;
  }

  .inventory-filter-pills {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .inventory-filter-pill {
    min-height: 46px;
    padding-inline: 0.7rem;
  }

  .inventory-item-card-head,
  .inventory-movement-head {
    display: grid;
  }

  .inventory-action-card-head,
  .inventory-alert-card-compact {
    display: grid;
  }
}

.page-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(17, 17, 17, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 17, 17, 0.025) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.16), transparent 76%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  backdrop-filter: blur(18px);
  background: rgba(247, 244, 236, 0.78);
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 0 0.9rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.95rem;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(242, 238, 228, 0.92));
  border: 1px solid rgba(17, 17, 17, 0.08);
  box-shadow: 0 14px 28px rgba(17, 17, 17, 0.08);
}

.brand-mark svg {
  display: block;
  width: 100%;
  height: 100%;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-text strong,
.brand-text small,
.site-nav a,
.button,
.section-heading h2,
.feature-card h3,
.product-card h3,
.applications-grid h3,
.timeline-item h3,
.cta-band h2,
.contact-card strong,
.site-footer p:first-child,
.hero-panel h2,
.auth-card h3,
.table-card h3,
.ticket-header-card h3,
.reply-thread h3,
.auth-copy h2 {
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.02em;
}

.brand-text strong {
  font-size: 1.16rem;
  letter-spacing: 0.04em;
}

.brand-text small {
  margin-top: 0.18rem;
  color: var(--ink-muted);
  font-size: 0.78rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 12px 32px rgba(17, 17, 17, 0.05);
}

.site-nav a,
.nav-button {
  position: relative;
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 600;
}

.language-group {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.language-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 34px;
  padding: 0.35rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.site-nav a::after,
.nav-button::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--ink);
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.nav-button:hover::after,
.nav-button:focus-visible::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 28px;
  height: 2px;
  margin: 6px 0;
  background: var(--ink);
}

.hero {
  position: relative;
  padding: 5.8rem 0 4.4rem;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 180px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.03));
  pointer-events: none;
}

.hero-backdrop {
  position: absolute;
  inset: 1.8rem 0 auto auto;
  width: min(720px, 78vw);
  height: 560px;
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(17, 17, 17, 0.04)),
    linear-gradient(180deg, #f8f4eb, #e5ded0);
  border: 1px solid rgba(17, 17, 17, 0.08);
  box-shadow: 0 34px 80px rgba(17, 17, 17, 0.08);
}

.hero-backdrop::before {
  content: "ASSA RESIN";
  position: absolute;
  right: 1.2rem;
  bottom: 1rem;
  color: rgba(17, 17, 17, 0.08);
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(4rem, 10vw, 7rem);
  letter-spacing: 0.06em;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
  gap: 2.4rem;
  align-items: center;
}

.hero-copy,
.hero-panel > *,
.product-grid > *,
.applications-grid > *,
.timeline > *,
.media-grid > *,
.portal-inline,
.contact-grid > * {
  animation: assa-rise-in 700ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero-panel > *:nth-child(2),
.product-grid > *:nth-child(2),
.applications-grid > *:nth-child(2),
.timeline > *:nth-child(2),
.media-grid > *:nth-child(2),
.contact-grid > *:nth-child(2) {
  animation-delay: 90ms;
}

.product-grid > *:nth-child(3),
.applications-grid > *:nth-child(3),
.timeline > *:nth-child(3),
.media-grid > *:nth-child(3) {
  animation-delay: 160ms;
}

.product-grid > *:nth-child(4),
.applications-grid > *:nth-child(4),
.timeline > *:nth-child(4) {
  animation-delay: 220ms;
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding-left: 1.4rem;
}

.hero-copy::before {
  content: "QAZVIN IRAN";
  position: absolute;
  left: 0;
  top: 0.2rem;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  color: rgba(17, 17, 17, 0.34);
  font-family: "Bebas Neue", sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.2em;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 9.4ch;
  color: var(--ink);
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(4.2rem, 9vw, 8rem);
  line-height: 0.9;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.hero-text,
.about-copy p,
.feature-card p,
.product-card p,
.applications-grid p,
.timeline-item p,
.contact-copy,
.contact-card p,
.form-meta,
.meta-box p,
.reply-meta span,
.data-table th,
.flash-banner,
.auth-copy p {
  color: var(--ink-muted);
  font-size: 1.02rem;
  line-height: 1.72;
}

.hero-text {
  max-width: 56ch;
  margin: 1.4rem 0 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0 1.7rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.9rem 1.3rem;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
  touch-action: manipulation;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--ink-inverse);
  background: linear-gradient(180deg, #171717, #050505);
  box-shadow: 0 18px 34px rgba(17, 17, 17, 0.18);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: linear-gradient(180deg, #2a2a2a, #101010);
}

.button-secondary {
  border: 1px solid var(--border-strong);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: var(--ink);
  background: #fff;
}

.button-ghost {
  border: 1px dashed var(--border-strong);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.45);
}

.button-ghost:hover,
.button-ghost:focus-visible {
  border-color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
}

.hero-points {
  display: grid;
  gap: 0.8rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.hero-points li {
  position: relative;
  padding-left: 1.45rem;
  color: var(--ink-soft);
}

.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68rem;
  width: 8px;
  height: 8px;
  border-radius: 0;
  background: var(--ink);
}

.hero-panel {
  display: grid;
  gap: 1rem;
  transform: translateY(1rem);
}

.panel-card,
.stat-card,
.feature-card,
.product-card,
.contact-card,
.timeline-item,
.auth-card,
.table-card,
.ticket-header-card,
.reply-card,
.empty-state,
.meta-box,
.hero-note-card,
.auth-copy,
.experience-card,
.applications-grid article {
  border: 1px solid var(--border);
  background: rgba(255, 253, 248, 0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.panel-card {
  padding: 1.65rem;
  border-radius: var(--radius-lg);
}

.panel-main,
.experience-card,
.cta-band,
.section-dark .timeline-item,
.section-dark .applications-grid article,
.reply-admin,
.auth-copy {
  color: var(--ink-inverse);
  background: linear-gradient(180deg, #191919 0%, #090909 100%);
  border-color: var(--border-inverse);
}

.panel-label,
.product-tag,
.timeline-item span,
.contact-label {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.panel-main .panel-label,
.experience-card .product-tag,
.cta-band .eyebrow,
.section-dark .panel-label,
.section-dark .product-tag,
.section-dark .timeline-item span,
.section-dark .contact-label,
.reply-admin .reply-meta span,
.auth-copy .eyebrow,
.auth-copy p {
  color: rgba(246, 246, 242, 0.68);
}

.panel-card h2 {
  margin: 0 0 0.75rem;
  font-size: 2rem;
  line-height: 0.96;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.panel-card p,
.stat-card span,
.hero-note-card p {
  margin: 0;
  color: var(--ink-muted);
  line-height: 1.65;
}

.panel-main p,
.experience-card p,
.auth-copy p,
.cta-band p {
  color: rgba(246, 246, 242, 0.74);
}

.hero-note-card {
  padding: 1.1rem 1.2rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.72);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.stat-card {
  padding: 1.25rem;
  border-radius: var(--radius-md);
}

.stat-card strong {
  display: block;
  margin-bottom: 0.55rem;
  font-family: "Bebas Neue", sans-serif;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.section {
  position: relative;
  padding: 4.7rem 0;
}

.section-light {
  color: var(--ink);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(244, 244, 239, 0.94));
}

.section-dark {
  color: var(--ink-inverse);
  background: linear-gradient(180deg, #111112 0%, #0a0a0a 100%);
}

.section-dark .eyebrow,
.section-dark p,
.section-dark h2,
.section-dark h3,
.section-dark .timeline-item,
.section-dark .applications-grid article {
  color: inherit;
}

.section-accent {
  padding: 0 0 1rem;
}

.section-heading {
  max-width: 64ch;
  margin-bottom: 2.6rem;
  position: relative;
  padding-top: 1rem;
}

.section-heading-left {
  margin-bottom: 1.5rem;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 4.6rem);
  line-height: 0.92;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.section-heading::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 84px;
  height: 4px;
  background: var(--ink);
}

.about-grid,
.contact-grid,
.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 2rem;
}

.feature-stack {
  display: grid;
  gap: 1rem;
}

.feature-card,
.product-card,
.experience-card,
.timeline-item,
.applications-grid article {
  padding: 1.6rem;
  border-radius: 22px;
}

.feature-card h3,
.product-card h3,
.applications-grid h3,
.timeline-item h3,
.experience-card h3,
.auth-copy h2,
.auth-card h3,
.table-card h3,
.ticket-header-card h3 {
  margin: 0 0 0.6rem;
  font-size: 1.2rem;
  line-height: 0.96;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.feature-card p,
.product-card p,
.applications-grid p,
.timeline-item p,
.experience-card p {
  margin: 0;
}

.feature-card-link {
  position: relative;
  color: inherit;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.feature-card-link:hover,
.feature-card-link:focus-visible {
  transform: translateY(-3px);
  border-color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
}

.feature-card-link::after {
  content: none;
}

.product-card-link {
  color: inherit;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.product-card-link:hover,
.product-card-link:focus-visible {
  transform: translateY(-6px) rotate(-0.4deg);
  border-color: var(--ink);
  background: rgba(255, 255, 255, 0.95);
}

.product-card-cta {
  display: inline-flex;
  margin-top: 1rem;
  font-family: "Bebas Neue", sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.product-detail-shell,
.product-related-grid {
  display: grid;
  gap: 1.25rem;
}

.product-related-shell {
  display: grid;
  gap: 1rem;
}

.product-related-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-related-card {
  min-height: 100%;
}

.product-detail-list {
  margin: 1.2rem 0 0;
  padding-left: 1.2rem;
  color: var(--ink-soft);
}

.product-detail-list li + li {
  margin-top: 0.55rem;
}

.back-to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 120;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(20, 32, 43, 0.12);
  border-radius: 999px;
  background: rgba(15, 20, 26, 0.92);
  color: #fff;
  box-shadow: 0 18px 42px rgba(20, 32, 43, 0.24);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease;
  -webkit-tap-highlight-color: transparent;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top span:first-child {
  font-size: 1rem;
  line-height: 1;
}

.product-grid,
.applications-grid,
.timeline,
.dashboard-grid,
.portal-stack,
.reply-thread,
.dashboard-shell,
.ticket-layout,
.experience-grid {
  display: grid;
  gap: 1.25rem;
}

.product-grid,
.dashboard-grid,
.portal-stack {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-grid-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.experience-grid,
.applications-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.media-card {
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
}

.media-card h3 {
  margin: 1rem 0 0.45rem;
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.2rem;
  line-height: 0.95;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.media-card p {
  margin: 0;
  color: var(--ink-muted);
  line-height: 1.7;
}

.media-placeholder {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  border: 1px dashed var(--border-strong);
  border-radius: 18px;
  background:
    repeating-linear-gradient(135deg, rgba(17, 17, 17, 0.04) 0 8px, rgba(255, 255, 255, 0.6) 8px 16px),
    linear-gradient(180deg, #f8f5ee, #ece6da);
  color: var(--ink-soft);
  font-family: "Bebas Neue", sans-serif;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.portal-inline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem 1.5rem;
  padding: 1.5rem 1.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 248, 0.84);
  box-shadow: var(--shadow-soft);
}

@keyframes assa-rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-card {
  position: relative;
  overflow: hidden;
}

.product-card::before,
.feature-card::before,
.timeline-item::before,
.contact-card::before,
.auth-card::before,
.table-card::before,
.ticket-header-card::before,
.meta-box::before,
.reply-card::before,
.empty-state::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.34), transparent 40%);
}

.product-card ul {
  padding-left: 1.1rem;
  margin: 1.2rem 0 0;
  color: var(--ink-soft);
}

.mini-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.table-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.table-card-head h3 {
  margin-bottom: 0;
}

.notification-list {
  display: grid;
  gap: 0.9rem;
}

.notification-card {
  padding: 1rem 1.1rem;
}

.notification-card-compact {
  display: grid;
  gap: 0.8rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.notification-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
}

.notification-card-top strong {
  display: block;
  margin-bottom: 0.18rem;
}

.notification-card-compact p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.93rem;
  line-height: 1.45;
}

.notification-card-top span {
  flex-shrink: 0;
  color: var(--ink-faint);
  font-size: 0.82rem;
}

.notification-unread {
  border-color: rgba(20, 61, 115, 0.24);
  box-shadow: 0 18px 40px rgba(20, 61, 115, 0.1);
}

.table-subtext {
  margin-top: 0.35rem;
  color: var(--ink-muted);
  font-size: 0.88rem;
}

.inline-edit-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.inline-edit-form select {
  min-width: 180px;
}

.compact-form {
  gap: 0.9rem;
}

.template-step-list {
  display: grid;
  gap: 1rem;
}

.template-step-card {
  padding: 1.15rem;
  border-radius: var(--radius-md);
}

.template-step-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.template-step-head h4 {
  margin: 0;
}

.notification-optin-card p {
  margin: 0 0 1rem;
}

.nav-notification-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.nav-badge {
  min-width: 1.4rem;
  height: 1.4rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: #0b0b0d;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
}

.nav-badge.is-empty {
  opacity: 0.45;
}

.product-card li + li {
  margin-top: 0.55rem;
}

.timeline {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.timeline-item {
  position: relative;
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2rem;
  border-radius: calc(var(--radius-lg) + 4px);
  box-shadow: 0 24px 60px rgba(17, 17, 17, 0.14);
}

.cta-band h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
  text-transform: uppercase;
}

.contact-card {
  position: relative;
  display: grid;
  gap: 1.5rem;
  padding: 1.8rem;
  border-radius: var(--radius-lg);
}

.contact-card a {
  color: var(--ink);
  font-weight: 700;
}

.contact-card strong {
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: -0.06em;
  text-transform: uppercase;
}

.site-footer {
  padding: 1.5rem 0 2.5rem;
}

.footer-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(16, 16, 16, 0.12);
}

.site-footer p {
  margin: 0;
  color: var(--ink-muted);
}

code {
  padding: 0.1rem 0.35rem;
  border-radius: 0.45rem;
  background: rgba(0, 0, 0, 0.05);
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 0.95em;
}

.inline-form {
  margin: 0;
}

.nav-auth {
  align-items: center;
}

.nav-button {
  border: 0;
  padding: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.flash-banner {
  margin-top: 1rem;
  padding: 1rem 1.2rem;
  border: 1px solid rgba(20, 61, 115, 0.12);
  border-radius: 1rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(244, 248, 255, 0.92)),
    rgba(255, 255, 255, 0.84);
  box-shadow: 0 14px 26px rgba(20, 32, 43, 0.06);
}

.auth-layout,
.dashboard-grid,
.ticket-layout {
  gap: 1.5rem;
}

.auth-layout {
  align-items: start;
}

.auth-copy {
  position: relative;
  padding: 2rem;
  border-radius: var(--radius-xl);
}

.auth-copy p:last-child {
  margin-bottom: 0;
}

.auth-card,
.table-card,
.empty-state {
  position: relative;
  padding: 1.55rem;
  border-radius: var(--radius-lg);
}

.app-form {
  display: grid;
  gap: 1.05rem;
}

.app-form label {
  display: grid;
  gap: 0.5rem;
  color: var(--ink);
  font-weight: 700;
}

.app-form input,
.app-form select,
.app-form textarea {
  width: 100%;
  padding: 1rem 1.05rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  color: var(--ink);
  font: inherit;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.app-form input:focus,
.app-form select:focus,
.app-form textarea:focus {
  outline: none;
  border-color: rgba(20, 61, 115, 0.32);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 0 0 4px rgba(20, 61, 115, 0.08);
}

.app-form input::placeholder,
.app-form textarea::placeholder {
  color: #9a9aa1;
}

.app-form textarea {
  resize: vertical;
  min-height: 150px;
}

.form-submit {
  border: 0;
  cursor: pointer;
}

.form-meta {
  margin: 0;
}

.form-meta a,
.contact-copy a,
.reply-card a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.pricing-card {
  position: relative;
  padding: 1.7rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 246, 242, 0.9)),
    radial-gradient(circle at top right, rgba(17, 17, 17, 0.04), transparent 28%);
  box-shadow: var(--shadow);
}

.pricing-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.45), transparent 38%);
}

.pricing-heading,
.pricing-form,
.pricing-results {
  position: relative;
  z-index: 1;
}

.pricing-rows {
  display: grid;
  gap: 1rem;
}

.pricing-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.8fr) repeat(4, minmax(0, 1fr)) auto;
  gap: 0.9rem;
  align-items: end;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.82);
}

.quote-lines {
  display: grid;
  gap: 1rem;
}

.quote-line-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.7fr) repeat(5, minmax(0, 1fr)) auto;
  gap: 0.9rem;
  align-items: end;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.82);
}

.pricing-row-label {
  align-self: center;
  color: var(--ink);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.pricing-remove {
  min-height: 48px;
}

.pricing-actions {
  display: flex;
  justify-content: flex-start;
}

.pricing-summary-inputs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.flash-banner-inline {
  margin-top: 1.1rem;
}

.pricing-results {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.pricing-stat {
  display: grid;
  gap: 0.4rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.85);
}

.pricing-stat span {
  color: var(--ink-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.pricing-stat strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.3rem;
  line-height: 1;
  letter-spacing: -0.05em;
}

.pricing-stat-emphasis {
  background: linear-gradient(180deg, #161618 0%, #0f0f10 100%);
  border-color: var(--border-inverse);
  color: var(--ink-inverse);
}

.pricing-stat-emphasis span {
  color: rgba(246, 246, 242, 0.72);
}

.pricing-stat-wide {
  grid-column: span 3;
}

.pricing-form > label:first-child {
  margin-bottom: 0.25rem;
}

.pricing-section-details {
  margin-top: 1rem;
  overflow: hidden;
}

.pricing-section-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  cursor: pointer;
  list-style: none;
  margin: -0.1rem 0 0;
  padding: 0.05rem 0 0;
}

.pricing-section-summary::-webkit-details-marker {
  display: none;
}

.pricing-section-summary strong {
  font-size: 1rem;
  line-height: 1.25;
}

.pricing-section-summary::after {
  content: "+";
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 999px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
}

.pricing-section-details[open] .pricing-section-summary::after {
  content: "-";
}

.pricing-section-details .table-scroll,
.pricing-section-details .empty-state {
  margin-top: 0.85rem;
}

.pricing-form-details .pricing-inline-form {
  margin-top: 0.9rem;
}

.pricing-form-details:not([open]) {
  padding-bottom: 1rem;
}

.pricing-form-details:not([open]) .pricing-inline-form {
  display: none;
}

.pricing-audit-stack {
  display: grid;
  gap: 0.8rem;
}

.pricing-audit-card {
  display: grid;
  gap: 0.75rem;
  padding: 0.85rem;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
}

.pricing-audit-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.pricing-audit-material {
  font-size: 0.98rem;
  line-height: 1.25;
}

.pricing-audit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.pricing-audit-item {
  display: grid;
  gap: 0.2rem;
}

.pricing-audit-item span {
  color: var(--ink-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pricing-audit-item strong {
  font-size: 0.92rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.pricing-audit-assignee-wrap {
  display: grid;
}

.pricing-audit-action {
  display: flex;
}

.pricing-audit-action .button,
.pricing-audit-assignee-wrap select {
  width: 100%;
}

.pricing-live-audit .table-card-head h3,
#raw-material-price-tracker .table-card-head h3,
#latest-provider-prices .table-card-head h3,
#recent-raw-material-prices .table-card-head h3 {
  margin-bottom: 0.1rem;
}

.pricing-live-audit .table-card-head,
#raw-material-price-tracker .table-card-head,
#latest-provider-prices .table-card-head,
#recent-raw-material-prices .table-card-head {
  margin-bottom: 0.7rem;
}

.dashboard-shell {
  gap: 1.5rem;
}

.crm-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.material-picker-shell {
  display: grid;
  gap: 1rem;
  padding: 1.15rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(247, 247, 244, 0.96)),
    radial-gradient(circle at top right, rgba(26, 90, 181, 0.06), transparent 38%);
}

.material-picker-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.material-picker-copy {
  margin: 0.35rem 0 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.6;
}

.material-picker-section {
  display: grid;
  gap: 0.85rem;
}

.material-picker-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.material-picker-heading strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
}

.material-picker-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.material-picker-card {
  position: relative;
  display: block;
  cursor: pointer;
}

.material-picker-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.material-picker-card-body {
  display: grid;
  gap: 0.3rem;
  min-height: 100%;
  padding: 1rem 1rem 1rem 3.1rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.material-picker-card-body::before {
  content: "";
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 1.2rem;
  height: 1.2rem;
  border: 1.5px solid var(--border-strong);
  border-radius: 0.35rem;
  background: var(--surface);
  transition: all 160ms ease;
}

.material-picker-card-body strong {
  font-size: 0.98rem;
}

.material-picker-card-body small {
  color: var(--ink-muted);
  font-size: 0.84rem;
}

.material-picker-card:hover .material-picker-card-body,
.material-picker-card input:focus + .material-picker-card-body {
  transform: translateY(-1px);
  border-color: rgba(17, 17, 17, 0.2);
  box-shadow: 0 16px 28px rgba(17, 17, 17, 0.08);
}

.material-picker-card input:checked + .material-picker-card-body {
  border-color: rgba(11, 84, 190, 0.32);
  background:
    linear-gradient(180deg, rgba(239, 245, 255, 0.98), rgba(248, 250, 255, 0.98)),
    rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 32px rgba(11, 84, 190, 0.12);
}

.material-picker-card input:checked + .material-picker-card-body::before {
  border-color: #0b54be;
  background: linear-gradient(180deg, #0b54be, #1f74e7);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.92);
}

.dashboard-top {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.inventory-shell {
  gap: 1.5rem;
}

.inventory-hero-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.inventory-kpi-card {
  position: relative;
  overflow: hidden;
  padding: 1.3rem 1.35rem;
  border: 1px solid rgba(16, 16, 16, 0.08);
  border-radius: 1.45rem;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.96), rgba(245, 245, 240, 0.9)),
    radial-gradient(circle at top right, rgba(9, 71, 158, 0.09), transparent 40%);
  box-shadow: var(--shadow-soft);
}

.inventory-kpi-card::after {
  content: "";
  position: absolute;
  inset: auto -8% -45% auto;
  width: 9rem;
  height: 9rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(9, 71, 158, 0.08), transparent 72%);
  pointer-events: none;
}

.inventory-kpi-card span {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--ink-muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.inventory-kpi-card strong {
  display: block;
  margin-bottom: 0.35rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.7rem, 2.8vw, 2.4rem);
  letter-spacing: -0.05em;
}

.inventory-kpi-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.96rem;
}

.inventory-form-card,
.inventory-section-card {
  border-radius: 1.55rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(247, 247, 243, 0.94)),
    radial-gradient(circle at top right, rgba(9, 71, 158, 0.05), transparent 42%);
  border: 1px solid rgba(16, 16, 16, 0.08);
  box-shadow: 0 20px 48px rgba(17, 17, 17, 0.06);
}

.inventory-table-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.inventory-table-head h3 {
  margin: 0;
}

.inventory-table-head p {
  margin: 0.35rem 0 0;
  color: var(--ink-muted);
  line-height: 1.55;
}

.inventory-table-wrap {
  overflow-x: auto;
  margin: 0 -0.15rem;
  padding: 0 0.15rem;
}

.inventory-app {
  display: grid;
  gap: 1.35rem;
}

.inventory-summary-grid {
  margin-top: 0.2rem;
}

.inventory-kpi-card-vue {
  min-height: 160px;
}

.inventory-toolbar-card {
  border: 1px solid rgba(16, 16, 16, 0.08);
  border-radius: 1.5rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 246, 242, 0.95)),
    radial-gradient(circle at top right, rgba(36, 82, 194, 0.06), transparent 40%);
  box-shadow: 0 20px 48px rgba(17, 17, 17, 0.05);
  padding: 1rem 1.1rem;
}

.inventory-toolbar {
  display: grid;
  gap: 1rem;
}

.inventory-search-field,
.inventory-filter-group {
  display: grid;
  gap: 0.55rem;
}

.inventory-search-field span,
.inventory-filter-group > span,
.inventory-subtitle {
  color: var(--ink-muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.inventory-search-field input {
  min-height: 54px;
  border-radius: 1rem;
}

.inventory-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.inventory-filter-pill {
  border: 1px solid rgba(20, 32, 43, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink-soft);
  padding: 0.78rem 1rem;
  font-weight: 700;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.inventory-filter-pill:hover {
  transform: translateY(-1px);
  border-color: rgba(36, 82, 194, 0.24);
  box-shadow: 0 12px 22px rgba(17, 17, 17, 0.05);
}

.inventory-filter-pill.is-active {
  border-color: rgba(36, 82, 194, 0.3);
  background: linear-gradient(180deg, rgba(239, 245, 255, 0.98), rgba(248, 250, 255, 0.98));
  color: #173a8f;
  box-shadow: 0 14px 24px rgba(36, 82, 194, 0.12);
}

.inventory-chart-grid,
.inventory-form-grid-vue,
.inventory-content-grid,
.inventory-actions-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.2rem;
}

.inventory-chart-card,
.inventory-form-card-vue,
.inventory-section-card-vue,
.inventory-action-card {
  grid-column: span 12;
  padding: 1.2rem;
}

.inventory-chart-card .analytics-chart {
  height: 320px;
}

.inventory-vue-form {
  gap: 1rem;
}

.inventory-actions-grid {
  align-items: start;
}

.inventory-action-card {
  border: 1px solid rgba(16, 16, 16, 0.08);
  border-radius: 1.45rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 246, 242, 0.95)),
    radial-gradient(circle at top right, rgba(36, 82, 194, 0.06), transparent 40%);
  box-shadow: 0 18px 36px rgba(17, 17, 17, 0.05);
}

.inventory-action-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.inventory-action-card-head span {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--ink-muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.inventory-action-card-head h3 {
  margin: 0;
  font-size: 1.1rem;
}

.inventory-action-card-head p {
  margin: 0.3rem 0 0;
  color: var(--ink-muted);
}

.inventory-collapsible-form {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(16, 16, 16, 0.08);
}

.inventory-provider-picker {
  display: grid;
  gap: 0.8rem;
}

.inventory-provider-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
}

.inventory-provider-card {
  position: relative;
  display: block;
}

.inventory-provider-card input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.inventory-provider-card-body {
  display: grid;
  gap: 0.28rem;
  min-height: 100%;
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(16, 16, 16, 0.08);
  background: rgba(255, 255, 255, 0.9);
  transition: border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.inventory-provider-card strong {
  font-size: 0.96rem;
}

.inventory-provider-card small {
  color: var(--ink-muted);
  line-height: 1.45;
}

.inventory-provider-card input:checked + .inventory-provider-card-body {
  border-color: rgba(36, 82, 194, 0.28);
  background:
    linear-gradient(180deg, rgba(239, 245, 255, 0.98), rgba(248, 250, 255, 0.98)),
    rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 28px rgba(36, 82, 194, 0.12);
  transform: translateY(-1px);
}

.inventory-alert-list,
.inventory-items-grid-mobile,
.inventory-movement-list-mobile {
  display: grid;
  gap: 0.85rem;
}

.inventory-alert-card,
.inventory-item-card-mobile,
.inventory-movement-card {
  display: grid;
  gap: 0.75rem;
  padding: 1rem 1rem 0.95rem;
  border-radius: 1.2rem;
  border: 1px solid rgba(16, 16, 16, 0.08);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

.inventory-alert-card:hover,
.inventory-item-card-mobile:hover {
  transform: translateY(-1px);
}

.inventory-alert-card strong,
.inventory-item-card-mobile strong,
.inventory-movement-head a,
.inventory-inline-link {
  font-family: "Space Grotesk", sans-serif;
}

.inventory-alert-card p,
.inventory-item-card-head p,
.inventory-item-provider,
.inventory-movement-card p,
.inventory-movement-card small {
  margin: 0;
  color: var(--ink-muted);
}

.inventory-alert-values,
.inventory-item-metrics,
.inventory-movement-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.inventory-alert-card-compact {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.9rem 1rem;
  padding-block: 0.9rem;
}

.inventory-alert-main {
  min-width: 0;
}

.inventory-alert-main strong,
.inventory-alert-main p {
  display: block;
  overflow-wrap: anywhere;
}

.inventory-item-card-mobile {
  color: inherit;
  text-decoration: none;
}

.inventory-item-card-head,
.inventory-movement-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 0.9rem;
}

.inventory-stock-bar {
  width: 100%;
  height: 0.48rem;
  border-radius: 999px;
  background: rgba(20, 32, 43, 0.08);
  overflow: hidden;
}

.inventory-stock-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2452c2, #101114);
}

.inventory-inline-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(16, 16, 16, 0.18);
  text-underline-offset: 0.18em;
}

.inventory-inline-link:hover {
  text-decoration-color: rgba(16, 16, 16, 0.42);
}

.crm-list {
  display: grid;
  gap: 1rem;
}

.team-access-card {
  padding: 1.2rem;
}

.stats-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  color: var(--ink-muted);
  font-size: 0.94rem;
}

.inventory-row-meta {
  margin-top: 0.24rem;
  color: var(--ink-muted);
  font-size: 0.88rem;
}

.inventory-more-button {
  width: 100%;
  margin-top: 1rem;
}

/* Keep the inventory page in a clean single-column flow. */
.inventory-chart-grid,
.inventory-actions-grid,
.inventory-content-grid {
  grid-template-columns: 1fr;
}

.inventory-chart-card,
.inventory-action-card,
.inventory-section-card-vue,
.inventory-items-panel,
.inventory-low-stock-panel {
  grid-column: auto;
}

.inventory-chart-card,
.inventory-action-card,
.inventory-section-card-vue {
  width: 100%;
}

.inventory-section-card-vue,
.inventory-action-card,
.inventory-chart-card {
  overflow: clip;
}

.inventory-action-card,
.inventory-section-card-vue {
  max-width: 100%;
}

.inventory-chart-card .analytics-chart {
  min-height: 320px;
}

.inventory-movement-positive {
  color: #1f7a4f;
  font-weight: 800;
}

.inventory-movement-negative {
  color: #a43838;
  font-weight: 800;
}

.inventory-table-desktop {
  display: none;
}

@media (min-width: 900px) {
  .inventory-toolbar {
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    align-items: end;
  }

  .inventory-table-desktop {
    display: block;
  }

  .inventory-items-grid-mobile,
  .inventory-movement-list-mobile {
    display: none;
  }
}

.inventory-chart-panel {
  padding-top: 0.25rem;
}

.qc-shell {
  gap: 1.25rem;
}

.qc-kpi-grid {
  margin-top: -0.15rem;
}

.qc-kpi-card {
  min-height: 0;
}

.qc-layout {
  align-items: start;
}

.qc-form-card,
.qc-records-card {
  overflow: hidden;
}

.qc-results-list {
  display: grid;
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.qc-result-card {
  border: 1px solid rgba(16, 16, 16, 0.08);
  border-radius: 1rem;
  padding: 1rem 1.05rem;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-soft);
}

.qc-result-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.65rem;
}

.qc-result-top strong {
  font-size: 1rem;
  line-height: 1.35;
}

.qc-result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  color: var(--ink-soft);
  font-size: 0.86rem;
  margin-bottom: 0.8rem;
}

.qc-result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin-bottom: 0.85rem;
}

.qc-result-grid div {
  padding: 0.7rem 0.8rem;
  border-radius: 0.85rem;
  background: rgba(244, 239, 230, 0.55);
}

.qc-result-grid span {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.25rem;
}

.qc-result-grid strong {
  display: block;
  font-size: 0.95rem;
  line-height: 1.35;
}

.qc-result-actions {
  justify-content: flex-start;
}

.qc-section-head {
  margin-bottom: 1rem;
}

.qc-batch-card {
  gap: 0.8rem;
  padding: 1rem 1.05rem;
}

.qc-batch-product {
  color: var(--ink-muted);
  font-weight: 600;
}

.qc-batch-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.qc-batch-notes {
  margin: 0;
  color: var(--ink-soft);
}

.qc-batch-status {
  gap: 0.45rem;
}

.qc-batch-actions {
  margin-top: 0.15rem;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 1rem 0.8rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.data-table th {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}

.data-table td {
  color: var(--ink-soft);
  overflow-wrap: anywhere;
}

.table-card-scrollable {
  overflow: visible;
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.data-table tbody tr {
  transition: background 160ms ease;
}

.data-table tbody tr:hover {
  background: rgba(20, 61, 115, 0.03);
}

.inventory-data-table th {
  padding-top: 0;
}

.inventory-data-table td a,
.inventory-data-table td .provider-links a {
  text-decoration: underline;
  text-decoration-color: rgba(17, 17, 17, 0.16);
  text-underline-offset: 0.18em;
}

.inventory-data-table td a:hover,
.inventory-data-table td .provider-links a:hover {
  text-decoration-color: rgba(17, 17, 17, 0.42);
}

.table-action-button {
  min-height: 42px;
  padding: 0.72rem 1rem;
  font-size: 0.82rem;
}

.inventory-chart {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 0.75rem;
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  border: 1px solid transparent;
}

.status-open {
  color: var(--warning);
  background: rgba(154, 103, 0, 0.08);
  border-color: rgba(154, 103, 0, 0.14);
}

.status-answered {
  color: var(--success);
  background: rgba(31, 122, 79, 0.08);
  border-color: rgba(31, 122, 79, 0.14);
}

.status-closed {
  color: var(--danger);
  background: rgba(164, 56, 56, 0.08);
  border-color: rgba(164, 56, 56, 0.14);
}

.status-draft,
.status-open {
  color: var(--warning);
  background: rgba(154, 103, 0, 0.08);
  border-color: rgba(154, 103, 0, 0.14);
}

.status-sent,
.status-processing {
  color: #2647a6;
  background: rgba(38, 71, 166, 0.08);
  border-color: rgba(38, 71, 166, 0.14);
}

.status-approved,
.status-completed {
  color: var(--success);
  background: rgba(31, 122, 79, 0.08);
  border-color: rgba(31, 122, 79, 0.14);
}

.status-rejected,
.status-cancelled,
.status-expired {
  color: var(--danger);
  background: rgba(164, 56, 56, 0.08);
  border-color: rgba(164, 56, 56, 0.14);
}

.status-active,
.status-priority,
.status-lead,
.status-inactive {
  border-color: var(--border);
}

.status-active {
  color: var(--success);
  background: rgba(31, 122, 79, 0.08);
}

.status-priority {
  color: #2647a6;
  background: rgba(38, 71, 166, 0.08);
}

.status-lead {
  color: var(--warning);
  background: rgba(154, 103, 0, 0.08);
}

.status-inactive {
  color: var(--ink-muted);
  background: rgba(109, 109, 114, 0.1);
}

.ticket-layout {
  grid-template-columns: 1fr;
}

.ticket-header-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 1.5rem;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
}

.ticket-sidebar {
  display: grid;
  gap: 1rem;
}

.meta-box {
  position: relative;
  padding: 1rem;
  border-radius: var(--radius-md);
}

.meta-box p {
  margin: 0.35rem 0 0;
}

.reply-thread {
  gap: 1rem;
}

.reply-thread h3 {
  margin: 0;
}

.reply-card {
  position: relative;
  padding: 1.25rem;
  border-radius: var(--radius-md);
}

.reply-admin {
  background: linear-gradient(180deg, #1b1b1d 0%, #101011 100%);
}

.reply-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.reply-card p {
  margin: 0;
  color: var(--ink-soft);
  white-space: pre-wrap;
}

.reply-admin p {
  color: rgba(246, 246, 242, 0.84);
}

.inline-status-form {
  display: grid;
  gap: 0.6rem;
}

.small-button {
  min-height: 44px;
}

.empty-state {
  text-align: center;
}

.small-empty {
  padding: 1rem;
}

.document-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--ink-soft);
  line-height: 1.8;
}

.language-switch {
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
}

.lang-fa {
  font-family: "Vazirmatn", "IBM Plex Sans", sans-serif;
}

.lang-ar {
  font-family: "IBM Plex Sans Arabic", "IBM Plex Sans", sans-serif;
}

.lang-fa .brand-text strong,
.lang-fa .brand-text small,
.lang-fa .site-nav a,
.lang-fa .button,
.lang-fa .section-heading h2,
.lang-fa .feature-card h3,
.lang-fa .product-card h3,
.lang-fa .applications-grid h3,
.lang-fa .timeline-item h3,
.lang-fa .cta-band h2,
.lang-fa .contact-card strong,
.lang-fa .site-footer p:first-child,
.lang-fa .hero h1,
.lang-fa .hero-panel h2,
.lang-fa .auth-copy h2,
.lang-fa .auth-card h3,
.lang-fa .table-card h3,
.lang-fa .ticket-header-card h3,
.lang-fa .reply-thread h3 {
  font-family: "Vazirmatn", sans-serif;
}

.lang-ar .brand-text strong,
.lang-ar .brand-text small,
.lang-ar .site-nav a,
.lang-ar .button,
.lang-ar .section-heading h2,
.lang-ar .feature-card h3,
.lang-ar .product-card h3,
.lang-ar .applications-grid h3,
.lang-ar .timeline-item h3,
.lang-ar .cta-band h2,
.lang-ar .contact-card strong,
.lang-ar .site-footer p:first-child,
.lang-ar .hero h1,
.lang-ar .hero-panel h2,
.lang-ar .auth-copy h2,
.lang-ar .auth-card h3,
.lang-ar .table-card h3,
.lang-ar .ticket-header-card h3,
.lang-ar .reply-thread h3,
.lang-ar .media-card h3 {
  font-family: "IBM Plex Sans Arabic", "IBM Plex Sans", sans-serif;
}

.lang-fa body,
.lang-fa,
.lang-fa p,
.lang-fa a,
.lang-fa input,
.lang-fa textarea,
.lang-fa select,
.lang-fa button {
  letter-spacing: 0;
}

.lang-ar body,
.lang-ar,
.lang-ar p,
.lang-ar a,
.lang-ar input,
.lang-ar textarea,
.lang-ar select,
.lang-ar button {
  letter-spacing: 0;
}

.lang-fa .nav-wrap,
.lang-fa .dashboard-top,
.lang-fa .reply-meta,
.lang-fa .footer-wrap {
  direction: rtl;
}

.lang-ar .nav-wrap,
.lang-ar .dashboard-top,
.lang-ar .reply-meta,
.lang-ar .footer-wrap {
  direction: rtl;
}

.lang-fa .site-nav,
.lang-fa .hero-actions,
.lang-fa .mini-actions {
  justify-content: flex-start;
}

.lang-ar .site-nav,
.lang-ar .hero-actions,
.lang-ar .mini-actions {
  justify-content: flex-start;
}

.lang-fa .hero-points li {
  padding-left: 0;
  padding-right: 1.45rem;
}

.lang-ar .hero-points li {
  padding-left: 0;
  padding-right: 1.45rem;
}

.lang-fa .hero-points li::before {
  left: auto;
  right: 0;
}

.lang-ar .hero-points li::before {
  left: auto;
  right: 0;
}

.lang-fa .data-table th,
.lang-fa .data-table td,
.lang-fa .app-form label,
.lang-fa .contact-copy,
.lang-fa .reply-card,
.lang-fa .meta-box,
.lang-fa .empty-state,
.lang-fa .pricing-row,
.lang-fa .quote-line-row,
.lang-fa .pricing-stat {
  text-align: right;
}

.lang-ar .data-table th,
.lang-ar .data-table td,
.lang-ar .app-form label,
.lang-ar .contact-copy,
.lang-ar .reply-card,
.lang-ar .meta-box,
.lang-ar .empty-state,
.lang-ar .media-card,
.lang-ar .pricing-row,
.lang-ar .quote-line-row,
.lang-ar .pricing-stat {
  text-align: right;
}

@media (max-width: 960px) {
  .hero {
    padding-top: 4rem;
  }

  .hero-grid,
  .about-grid,
  .contact-grid,
  .auth-layout,
  .product-grid,
  .product-grid-four,
  .applications-grid,
  .timeline,
  .cta-band,
  .dashboard-grid,
  .portal-stack,
  .ticket-header-card,
  .experience-grid,
  .media-grid,
  .portal-inline,
  .crm-form-grid,
  .pricing-summary-inputs,
  .pricing-results {
    grid-template-columns: 1fr;
  }

  .material-picker-grid {
    grid-template-columns: 1fr;
  }

  .inventory-hero-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cta-band {
    display: grid;
  }

  .hero-backdrop {
    left: 1rem;
    right: 1rem;
    width: auto;
    height: 460px;
  }
}

.lang-fa .material-picker-top,
.lang-fa .material-picker-heading,
.lang-fa .inventory-table-head,
.lang-ar .material-picker-top,
.lang-ar .material-picker-heading,
.lang-ar .inventory-table-head {
  flex-direction: row-reverse;
}

.lang-fa .material-picker-card-body,
.lang-ar .material-picker-card-body {
  padding: 1rem 3.1rem 1rem 1rem;
}

.lang-fa .material-picker-card-body::before,
.lang-ar .material-picker-card-body::before {
  left: auto;
  right: 1rem;
}

@media (max-width: 760px) {
  .site-header {
    background: rgba(249, 245, 238, 0.96);
  }

  .hero-copy {
    padding-left: 0;
  }

  .hero-copy::before,
  .hero-backdrop::before {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border: 1px solid rgba(20, 32, 43, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 10px 24px rgba(20, 32, 43, 0.08);
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.6rem);
    left: 1rem;
    right: 1rem;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    padding: 0.85rem;
    border: 1px solid rgba(20, 32, 43, 0.08);
    border-radius: 1rem;
    background: rgba(249, 245, 238, 0.98);
    box-shadow: 0 24px 60px rgba(20, 32, 43, 0.12);
    max-height: min(75vh, 560px);
    overflow-y: auto;
  }

  .site-nav a,
  .nav-button,
  .inline-form,
  .language-group {
    width: 100%;
  }

  .site-nav a,
  .nav-button {
    display: flex;
    align-items: center;
    min-height: 46px;
    padding: 0.8rem 0.2rem;
  }

  .site-nav a::after,
  .nav-button::after {
    display: none;
  }

  .language-group {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
    padding-top: 0.4rem;
  }

  .inventory-hero-grid {
    grid-template-columns: 1fr;
  }

  .inventory-table-head,
  .hero-actions {
    display: grid;
  }

  .inventory-form-card,
  .inventory-section-card,
  .inventory-kpi-card,
  .material-picker-shell {
    border-radius: 1.2rem;
  }

  .site-nav.is-open {
    display: flex;
  }

  .hero h1 {
    max-width: none;
    font-size: clamp(2.5rem, 12vw, 4rem);
    line-height: 0.98;
  }

  .product-related-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-top {
    display: grid;
    gap: 0.9rem;
  }

  .hero-actions,
  .mini-actions {
    gap: 0.75rem;
  }

  .pricing-row {
    grid-template-columns: 1fr;
  }

  .quote-line-row {
    grid-template-columns: 1fr;
  }

  .pricing-stat-wide {
    grid-column: auto;
  }

  .data-table,
  .data-table thead,
  .data-table tbody,
  .data-table th,
  .data-table td,
  .data-table tr {
    display: block;
  }

  .data-table thead {
    display: none;
  }

  .data-table tr {
    padding: 1rem 1rem 0.7rem;
    margin-bottom: 0.85rem;
    border: 1px solid rgba(16, 16, 16, 0.08);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-soft);
  }

  .data-table td {
    display: grid;
    grid-template-columns: minmax(110px, 42%) 1fr;
    gap: 0.8rem;
    align-items: start;
    padding: 0.45rem 0;
    border-bottom: 0;
  }

  .data-table td::before {
    content: attr(data-label);
    color: var(--ink-muted);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(calc(100% - 1.2rem), var(--container));
  }

  .page-shell::before,
  .hero-backdrop {
    display: none;
  }

  .section {
    padding: 2.8rem 0;
  }

  .nav-wrap {
    gap: 0.8rem;
    padding: 0.7rem 0 0.7rem;
  }

  .brand {
    gap: 0.7rem;
    min-width: 0;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
    border-radius: 12px;
  }

  .brand-text {
    min-width: 0;
  }

  .brand-text strong {
    font-size: 0.96rem;
  }

  .brand-text small {
    display: none;
  }

  .hero {
    padding: 2.25rem 0 2.2rem;
  }

  .hero-grid,
  .product-grid,
  .product-grid-four,
  .applications-grid,
  .media-grid,
  .product-related-grid,
  .ticket-layout,
  .dashboard-shell {
    gap: 0.95rem;
  }

  .section-heading {
    margin-bottom: 1.4rem;
  }

  .section-heading h2 {
    font-size: clamp(1.6rem, 9vw, 2.2rem);
    line-height: 1.02;
  }

  .hero-text,
  .contact-copy,
  .product-card p,
  .applications-grid p,
  .timeline-item p,
  .auth-copy p,
  .form-meta {
    font-size: 0.96rem;
    line-height: 1.58;
  }

  .app-form input,
  .app-form select,
  .app-form textarea {
    padding: 0.9rem 0.95rem;
  }

  .button {
    width: 100%;
    min-height: 50px;
  }

  .hero-actions .button,
  .mini-actions .button,
  .hero-actions a,
  .mini-actions a {
    width: 100%;
  }

  .auth-card,
  .table-card,
  .contact-card,
  .feature-card,
  .product-card,
  .timeline-item,
  .reply-card,
  .ticket-header-card,
  .pricing-card {
    padding: 1.15rem;
  }

  .product-card ul,
  .product-detail-list {
    padding-left: 1rem;
    margin-top: 0.9rem;
  }

  .back-to-top {
    right: 0.75rem;
    bottom: calc(0.75rem + env(safe-area-inset-bottom));
    padding: 0.75rem 0.9rem;
    min-height: 46px;
    font-size: 0.82rem;
  }

  .data-table td {
    grid-template-columns: 1fr;
    gap: 0.28rem;
  }

  .template-step-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .notification-card-top {
    flex-direction: column;
  }

  .pricing-card {
    padding: 0.85rem;
    border-radius: 1rem;
  }

  .qc-shell {
    gap: 1rem;
  }

  .qc-section-head {
    margin-bottom: 0.75rem;
  }

  .qc-batch-card {
    gap: 0.65rem;
    padding: 0.8rem 0.85rem;
    border-radius: 0.95rem;
  }

  .qc-batch-meta {
    gap: 0.35rem 0.8rem;
    font-size: 0.84rem;
  }

  .qc-batch-actions .button {
    width: 100%;
  }

  .qc-result-card {
    padding: 0.85rem 0.9rem;
    border-radius: 0.95rem;
  }

  .qc-result-grid {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .qc-result-meta {
    flex-direction: column;
    gap: 0.25rem;
  }

  .qc-result-actions .button {
    width: 100%;
  }

  .pricing-heading {
    margin-bottom: 0.15rem;
  }

  .pricing-heading .contact-copy {
    font-size: 0.92rem;
    line-height: 1.5;
  }

  .pricing-rows,
  .pricing-results,
  .pricing-summary-inputs {
    gap: 0.7rem;
  }

  .pricing-row,
  .quote-line-row {
    gap: 0.5rem;
    padding: 0.68rem;
    border-radius: 0.9rem;
  }

  .pricing-row-label {
    font-size: 0.78rem;
  }

  .pricing-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
  }

  .pricing-row > .pricing-row-label,
  .pricing-row > label:first-of-type,
  .pricing-row > button {
    grid-column: 1 / -1;
  }

  .pricing-row > label {
    gap: 0.3rem;
  }

  .pricing-row > button {
    min-height: 40px;
    margin-top: 0.1rem;
  }

  .pricing-actions {
    margin-top: 0.15rem;
  }

  .pricing-actions .button,
  .pricing-summary-inputs + .button,
  #raw-material-price-tracker .form-submit,
  #customer-price-tracker .form-submit {
    width: 100%;
  }

  .pricing-stat {
    gap: 0.22rem;
    padding: 0.68rem 0.72rem;
    border-radius: 0.9rem;
  }

  .pricing-stat span {
    font-size: 0.7rem;
    line-height: 1.25;
  }

  .pricing-stat strong {
    font-size: 0.96rem;
    line-height: 1.1;
    overflow-wrap: anywhere;
  }

  .pricing-results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pricing-stat-wide {
    grid-column: 1 / -1;
  }

  .pricing-live-audit,
  #raw-material-price-tracker,
  #latest-provider-prices,
  #recent-raw-material-prices,
  #customer-price-tracker,
  #latest-customer-prices,
  #recent-customer-prices {
    padding: 0.8rem;
    border-radius: 0.95rem;
  }

  .pricing-section-summary strong {
    font-size: 0.86rem;
  }

  .pricing-section-summary::after {
    width: 1.45rem;
    height: 1.45rem;
    font-size: 0.92rem;
  }

  .pricing-live-audit .table-scroll,
  #latest-provider-prices .table-scroll,
  #recent-raw-material-prices .table-scroll,
  #latest-customer-prices .table-scroll,
  #recent-customer-prices .table-scroll {
    margin-top: 0.25rem;
  }

  #raw-material-price-tracker .dashboard-grid,
  #customer-price-tracker .dashboard-grid {
    gap: 0.55rem;
  }

  #latest-provider-prices .data-table tr,
  #recent-raw-material-prices .data-table tr,
  #latest-customer-prices .data-table tr,
  #recent-customer-prices .data-table tr {
    padding: 0.65rem 0.7rem 0.5rem;
    margin-bottom: 0.55rem;
    border-radius: 0.85rem;
  }

  #latest-provider-prices .data-table td,
  #recent-raw-material-prices .data-table td,
  #latest-customer-prices .data-table td,
  #recent-customer-prices .data-table td {
    padding: 0.2rem 0;
  }

  .pricing-live-audit .small-button,
  .pricing-live-audit .pricing-audit-assignee {
    min-height: 38px;
  }

  .pricing-live-audit .small-button {
    font-size: 0.78rem;
    padding: 0.55rem 0.7rem;
  }

  .pricing-audit-card {
    gap: 0.55rem;
    padding: 0.68rem;
    border-radius: 0.85rem;
  }

  .pricing-audit-card-top {
    align-items: start;
    flex-direction: column;
    gap: 0.45rem;
  }

  .pricing-audit-material {
    font-size: 0.88rem;
  }

  .pricing-audit-grid {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .pricing-audit-item span {
    font-size: 0.64rem;
  }

  .pricing-audit-item strong {
    font-size: 0.84rem;
  }

  .pricing-form-details .pricing-inline-form {
    margin-top: 0.7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Final inventory layout overrides */
.inventory-chart-grid,
.inventory-actions-grid,
.inventory-content-grid {
  grid-template-columns: 1fr !important;
}

.inventory-chart-card,
.inventory-action-card,
.inventory-section-card-vue,
.inventory-items-panel,
.inventory-low-stock-panel {
  grid-column: auto !important;
}

.supplier-comparison-grid,
.worker-task-stack {
  display: grid;
  gap: 1rem;
}

.supplier-comparison-card .inventory-table-head,
.worker-task-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.supplier-active-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  padding: 0.85rem 1rem;
  margin-bottom: 0.9rem;
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.05);
}

.worker-mobile-shell {
  padding-top: 1rem;
}

.worker-mobile-container {
  max-width: 720px;
}

.worker-mobile-section {
  margin-bottom: 1rem;
}

.production-mobile-shell {
  background:
    radial-gradient(circle at top left, rgba(209, 168, 102, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(248, 246, 241, 0.92), rgba(255, 255, 255, 0.98));
}

.production-hero-grid {
  margin-bottom: 0.85rem;
}

.production-summary-card {
  min-height: 0;
}

.production-task-card {
  border-radius: 1.1rem;
  padding: 0.95rem;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.production-task-card .worker-task-top h3 {
  font-size: 1rem;
  line-height: 1.3;
}

.production-task-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
  margin-bottom: 0.7rem;
}

.production-task-meta span {
  display: grid;
  gap: 0.18rem;
  padding: 0.6rem 0.7rem;
  border-radius: 0.8rem;
  background: rgba(15, 23, 42, 0.04);
  font-size: 0.82rem;
  line-height: 1.3;
}

.production-quick-form {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
}

.production-inline-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.production-inline-grid label,
.production-notes-field {
  display: grid;
  gap: 0.25rem;
  font-weight: 600;
  color: #0f172a;
  font-size: 0.86rem;
}

.production-inline-grid input,
.production-notes-field textarea {
  width: 100%;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 0.95rem;
  background: #fff;
  color: #0f172a;
  padding: 0.8rem 0.95rem;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
  font: inherit;
  line-height: 1.35;
  appearance: none;
  -webkit-appearance: none;
}

.production-inline-grid input::placeholder,
.production-notes-field textarea::placeholder {
  color: rgba(15, 23, 42, 0.38);
}

.production-inline-grid input:focus,
.production-notes-field textarea:focus {
  outline: none;
  border-color: rgba(15, 23, 42, 0.26);
  box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.08);
  background: #ffffff;
}

.production-notes-field textarea {
  min-height: 72px;
  resize: vertical;
}

.production-task-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin-top: 0.75rem;
}

.production-task-actions .button {
  min-height: 44px;
}

.production-step-list {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.8rem;
}

.production-step-item {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.92);
  padding: 0.7rem 0.8rem;
}

.production-step-toggle {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 600;
}

.production-step-item small {
  display: block;
  margin-top: 0.35rem;
  color: rgba(15, 23, 42, 0.62);
}

.compact-step-list .production-step-item {
  padding: 0;
  border: 0;
  background: transparent;
}

.production-step-form {
  margin: 0;
}

.production-step-toggle-button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.72rem 0.8rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.94);
  text-align: left;
}

.production-step-toggle-button.is-complete {
  border-color: rgba(31, 122, 79, 0.22);
  background: rgba(31, 122, 79, 0.06);
}

.production-step-check {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.16);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 700;
  flex: 0 0 auto;
}

.production-step-toggle-button.is-complete .production-step-check {
  border-color: rgba(31, 122, 79, 0.22);
  background: rgba(31, 122, 79, 0.14);
  color: var(--success);
}

.production-step-copy {
  display: grid;
  gap: 0.15rem;
}

.production-step-copy strong {
  font-size: 0.9rem;
  line-height: 1.3;
}

.production-step-copy small {
  color: rgba(15, 23, 42, 0.58);
}

.worker-task-card {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 1.25rem;
  padding: 1rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.worker-task-copy {
  margin: 0.75rem 0;
  color: rgba(15, 23, 42, 0.78);
}

.worker-task-chips,
.worker-task-meta,
.worker-task-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.worker-task-meta {
  margin-bottom: 0.85rem;
  color: rgba(15, 23, 42, 0.64);
  font-size: 0.9rem;
}

.worker-quick-form {
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.worker-quick-form h4 {
  margin: 0 0 0.75rem;
}

.dashboard-identity-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 0.9rem;
  color: rgba(15, 23, 42, 0.7);
  font-size: 0.95rem;
}

.dashboard-identity-strip strong {
  color: #0f172a;
}

.workflow-hero-grid,
.workflow-main-grid,
.workflow-primary-column,
.workflow-secondary-column,
.workflow-task-list,
.workflow-macro-list,
.workflow-template-grid,
.workflow-template-steps {
  display: grid;
  gap: 1rem;
}

.workflow-hero-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 1rem;
}

.workflow-main-grid {
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.95fr);
  align-items: start;
}

.workflow-summary-card,
.workflow-task-card,
.workflow-macro-card,
.workflow-template-card,
.workflow-form-card,
.workflow-section-card {
  border-radius: 1.35rem;
}

.workflow-summary-card {
  display: grid;
  gap: 0.55rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(245,247,250,0.94));
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.workflow-summary-card strong {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1;
  color: #0f172a;
}

.workflow-summary-card p {
  margin: 0;
  color: rgba(15, 23, 42, 0.68);
}

.workflow-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8a5b14;
}

.workflow-section-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.99), rgba(248,250,252,0.96));
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.08);
}

.workflow-table-desktop {
  margin-top: 0.85rem;
}

.workflow-task-card,
.workflow-macro-card,
.workflow-template-card {
  padding: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.06);
}

.workflow-task-card-top,
.workflow-macro-top,
.workflow-template-top {
  display: flex;
  justify-content: space-between;
  gap: 0.85rem;
  align-items: flex-start;
}

.workflow-task-card h3,
.workflow-macro-card h3,
.workflow-template-card h3 {
  margin: 0.2rem 0 0;
  font-size: 1.05rem;
}

.workflow-task-card h3 a,
.workflow-macro-card h3 a {
  color: inherit;
  text-decoration: none;
}

.workflow-task-card-copy {
  margin: 0.75rem 0;
  color: rgba(15, 23, 42, 0.74);
}

.workflow-task-card-meta,
.workflow-macro-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  color: rgba(15, 23, 42, 0.65);
  font-size: 0.92rem;
}

.workflow-task-card-actions {
  margin-top: 0.9rem;
}

.workflow-macro-stats div {
  display: grid;
  gap: 0.18rem;
}

.workflow-macro-stats strong {
  color: #0f172a;
}

.workflow-template-steps {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-top: 0.9rem;
}

.workflow-step-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 0.85rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.14);
  color: #334155;
  font-size: 0.88rem;
  line-height: 1.35;
}

.workflow-form-card .table-card-head h3,
.workflow-section-card .table-card-head h3 {
  margin: 0.25rem 0 0;
}

.workflow-form-meta {
  margin-top: 0.15rem;
  margin-bottom: 1rem;
}

@media (max-width: 860px) {
  .supplier-comparison-card .inventory-table-head,
  .worker-task-top,
  .workflow-task-card-top,
  .workflow-macro-top,
  .workflow-template-top {
    flex-direction: column;
  }

  .workflow-hero-grid,
  .workflow-main-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-identity-strip {
    flex-direction: column;
    gap: 0.55rem;
  }
}

@media (max-width: 640px) {
  .worker-mobile-shell .container,
  .worker-mobile-container {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  .worker-task-card,
  .supplier-comparison-card,
  .workflow-task-card,
  .workflow-macro-card,
  .workflow-template-card,
  .workflow-summary-card,
  .workflow-form-card,
  .workflow-section-card {
    padding: 0.95rem;
    border-radius: 1rem;
  }

  .worker-task-actions .button,
  .worker-quick-form .button,
  .worker-quick-form .mini-actions .button,
  .workflow-task-card-actions .button {
    width: 100%;
  }

  .production-task-meta {
    grid-template-columns: 1fr;
  }

  .production-inline-grid,
  .production-task-actions {
    grid-template-columns: 1fr;
  }

  .production-task-card {
    padding: 0.82rem;
    border-radius: 0.95rem;
  }

  .production-task-meta span {
    padding: 0.55rem 0.65rem;
  }

  .supplier-active-strip {
    padding: 0.8rem 0.9rem;
  }

  .workflow-template-steps {
    grid-template-columns: 1fr;
  }
}

.bom-shell {
  gap: 1.5rem;
}

.bom-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(0, 1.4fr);
  gap: 1.2rem;
  align-items: start;
}

.bom-library-card,
.bom-editor-card,
.bom-table-card {
  border-radius: 1.25rem;
  min-width: 0;
}

.bom-product-list {
  display: grid;
  gap: 0.9rem;
  min-width: 0;
}

.bom-selector-form {
  margin-bottom: 1rem;
}

.bom-selected-inline {
  display: grid;
  gap: 0.25rem;
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.04);
  overflow: hidden;
}

.bom-selected-inline strong {
  overflow-wrap: anywhere;
}

.bom-product-card {
  padding: 1rem 1.05rem;
  min-width: 0;
  overflow: hidden;
}

.bom-product-card.is-active {
  border-color: rgba(180, 83, 9, 0.28);
  box-shadow: 0 18px 42px rgba(180, 83, 9, 0.12);
  background: linear-gradient(180deg, rgba(255, 251, 235, 0.94), #fff);
}

.bom-product-top {
  display: flex;
  justify-content: space-between;
  gap: 0.85rem;
  align-items: flex-start;
  min-width: 0;
}

.bom-product-top h3 {
  margin: 0.22rem 0 0;
  overflow-wrap: anywhere;
}

.bom-product-card p,
.bom-product-card .workflow-task-card-meta,
.bom-product-card .workflow-task-card-meta span {
  overflow-wrap: anywhere;
}

.bom-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.bom-lines-shell {
  display: grid;
  gap: 0.85rem;
}

.bom-line-list {
  display: grid;
  gap: 0.85rem;
}

.bom-line-row {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(120px, 0.6fr) minmax(0, 1fr) auto;
  gap: 0.8rem;
  align-items: end;
  padding: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.78);
}

.bom-line-row .pricing-row-label {
  grid-column: 1 / -1;
}

.bom-editor-card,
.bom-form,
.bom-lines-shell,
.bom-line-list,
.bom-table-card,
.bom-table-card .table-scroll,
.bom-table-card .data-table,
.bom-table-card .data-table td,
.bom-table-card .data-table th {
  min-width: 0;
}

.bom-editor-card .table-card-head,
.bom-editor-card .table-card-head > div,
.bom-library-card .table-card-head,
.bom-library-card .table-card-head > div {
  min-width: 0;
}

.bom-editor-card .workflow-form-meta,
.bom-library-card .workflow-form-meta,
.bom-editor-card .contact-copy {
  overflow-wrap: anywhere;
}

.bom-kpi-grid .workflow-summary-card {
  min-width: 0;
  overflow: hidden;
  align-content: start;
}

.bom-kpi-grid .workflow-summary-card strong,
.bom-kpi-grid .workflow-summary-card .status-chip {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.bom-kpi-grid .workflow-summary-card strong {
  font-size: clamp(1.2rem, 2.2vw, 1.85rem);
  line-height: 1.15;
}

.bom-kpi-grid .workflow-summary-card .contact-label {
  line-height: 1.45;
}

.bom-line-row label,
.bom-line-row input,
.bom-line-row select {
  min-width: 0;
}

.bom-formula-list {
  display: grid;
  gap: 0.7rem;
}

.bom-formula-card {
  display: grid;
  gap: 0.4rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.88);
}

.bom-formula-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
}

.bom-formula-top strong,
.bom-formula-top span,
.bom-formula-card p {
  overflow-wrap: anywhere;
}

.bom-formula-top span {
  flex: 0 0 auto;
  font-weight: 700;
  color: #0f172a;
}

.bom-formula-card p {
  margin: 0;
  color: rgba(15, 23, 42, 0.65);
  line-height: 1.5;
}

.bom-reference-details {
  margin-top: 1rem;
}

.bom-reference-summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.9rem;
  cursor: pointer;
  list-style: none;
  padding: 0.15rem 0 0.35rem;
}

.bom-reference-summary::-webkit-details-marker {
  display: none;
}

.bom-reference-summary span {
  display: grid;
  gap: 0.18rem;
  min-width: 0;
}

.bom-reference-summary strong,
.bom-reference-summary small {
  overflow-wrap: anywhere;
}

.bom-reference-summary::after {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  flex: 0 0 2rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: #0f172a;
  font-weight: 700;
}

.bom-reference-details[open] .bom-reference-summary::after {
  content: "−";
}

.bom-table-card .data-table td,
.bom-table-card .data-table th {
  vertical-align: top;
}

.bom-table-card .data-table td {
  line-height: 1.55;
}

.bom-table-card .status-chip,
.bom-product-card .status-chip {
  white-space: normal;
  text-align: center;
  justify-content: center;
}

.lang-fa .bom-product-card,
.lang-fa .bom-editor-card,
.lang-fa .bom-table-card,
.lang-fa .bom-kpi-grid .workflow-summary-card,
.lang-ar .bom-product-card,
.lang-ar .bom-editor-card,
.lang-ar .bom-table-card,
.lang-ar .bom-kpi-grid .workflow-summary-card {
  text-align: right;
}

@media (max-width: 980px) {
  .bom-layout {
    grid-template-columns: 1fr;
  }

  .bom-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .bom-shell .dashboard-top {
    gap: 0.65rem;
  }

  .bom-shell .section-heading {
    margin-bottom: 0.4rem;
  }

  .bom-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
  }

  .bom-line-row,
  .bom-product-top {
    grid-template-columns: 1fr;
    display: grid;
  }

  .bom-selector-form {
    margin-bottom: 0.75rem;
  }

  .bom-selected-inline {
    padding: 0.78rem 0.88rem;
  }

  .bom-formula-card {
    padding: 0.78rem 0.85rem;
  }

  .bom-formula-top {
    flex-direction: column;
    gap: 0.3rem;
  }

  .bom-product-card,
  .bom-editor-card,
  .bom-library-card,
  .bom-table-card {
    padding: 0.95rem;
  }

  .bom-line-row {
    gap: 0.6rem;
    padding: 0.82rem;
  }

  .bom-line-row .pricing-row-label {
    margin-bottom: 0.15rem;
  }

  .bom-form textarea {
    min-height: 88px;
  }

  .bom-lines-shell .pricing-actions .button,
  .bom-form > .button {
    width: 100%;
  }

  .bom-reference-summary {
    gap: 0.7rem;
  }

  .bom-reference-summary::after {
    width: 1.8rem;
    height: 1.8rem;
    flex-basis: 1.8rem;
  }

  .bom-kpi-grid .workflow-summary-card strong {
    font-size: 1.1rem;
  }
}

@media (max-width: 420px) {
  .bom-kpi-grid {
    grid-template-columns: 1fr;
  }
}
