@import url("/assets/native_filters-3c413e10.css");
@import url("/assets/permissions-1b2cfdc2.css");

:root {
  --color-primary: #0f172a;
  --color-primary-strong: #020617;
  --color-secondary: #334155;
  --color-accent: #0369a1;
  --color-accent-soft: #e0f2fe;
  --color-background: #f8fafc;
  --color-surface: #ffffff;
  --color-surface-muted: #f1f5f9;
  --color-foreground: #020617;
  --color-muted: #64748b;
  --color-border: #e2e8f0;
  --color-border-strong: #cbd5e1;
  --color-success: #047857;
  --color-success-soft: #ecfdf5;
  --color-warning: #a16207;
  --color-warning-soft: #fef9c3;
  --color-danger: #dc2626;
  --color-danger-soft: #fef2f2;
  --shadow-sm: 0 1px 2px rgb(15 23 42 / 0.06);
  --shadow-md: 0 14px 34px rgb(15 23 42 / 0.10);
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --app-content-max-width: 160rem;
  --app-content-gutter: var(--space-8);
  --z-dropdown: 20;
  --z-overlay: 50;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

html.app-menu-lock,
html.app-menu-lock body {
  overflow: hidden;
}

body {
  min-height: 100%;
  margin: 0;
  background: var(--color-background);
  color: var(--color-foreground);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 3px solid rgb(3 105 161 / 0.34);
  outline-offset: 2px;
}

.skip-link {
  position: fixed;
  left: var(--space-4);
  top: var(--space-4);
  z-index: 100;
  border-radius: var(--radius-sm);
  background: var(--color-primary);
  color: #fff;
  font-weight: 800;
  padding: var(--space-2) var(--space-3);
  transform: translateY(-150%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

.app-frame {
  min-height: 100dvh;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0.82), rgb(248 250 252 / 0) 18rem),
    var(--color-background);
}

.app-shell {
  display: grid;
  grid-template-columns: 17rem minmax(0, 1fr);
  min-height: 100dvh;
}

.auth-shell {
  min-height: 100dvh;
}

.app-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  border-right: 1px solid var(--color-border);
  background: rgb(255 255 255 / 0.94);
  box-shadow: inset -1px 0 0 rgb(15 23 42 / 0.02);
}

.app-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-5);
}

.app-menu-toggle {
  display: inline-flex;
  width: 2.75rem;
  height: 2.75rem;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-primary);
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.app-menu-toggle:hover {
  border-color: var(--color-accent);
  background: var(--color-accent-soft);
}

.app-menu-toggle__line {
  display: block;
  width: 1.1rem;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: opacity 180ms ease, transform 180ms ease;
}

.app-shell[data-menu-state="expanded"] .app-menu-toggle {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: #fff;
}

.app-brand__identity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: var(--space-3);
}

.app-brand__copy {
  min-width: 0;
}

.app-brand__mark {
  display: inline-flex;
  width: 2.25rem;
  height: 2.25rem;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--color-primary);
  color: #fff;
  font-weight: 800;
}

.app-brand__name {
  color: var(--color-primary-strong);
  font-size: 1.05rem;
  font-weight: 800;
}

.app-brand__meta {
  color: var(--color-muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.app-nav {
  padding: 0 var(--space-3) var(--space-6);
}

.app-shell[data-menu-state="collapsed"] .app-nav {
  display: none;
}

.app-nav__list {
  display: grid;
  gap: var(--space-1);
  margin: 0;
  padding: 0;
  list-style: none;
}

.app-nav__group {
  padding: var(--space-4) var(--space-3) var(--space-1);
  color: var(--color-muted);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.app-nav__link {
  display: flex;
  min-height: 2.5rem;
  align-items: center;
  border-radius: var(--radius-md);
  color: var(--color-secondary);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0 var(--space-3);
  text-decoration: none;
  transition: background-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.app-nav__link:hover {
  background: var(--color-surface-muted);
  color: var(--color-primary);
}

.app-nav__link.is-active {
  background: var(--color-primary);
  box-shadow: var(--shadow-sm);
  color: #fff;
}

.app-nav__link.is-active:visited {
  color: #fff;
}

.app-main {
  min-width: 0;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--color-border);
  background: rgb(255 255 255 / 0.92);
  backdrop-filter: blur(12px);
}

.app-header__inner {
  display: flex;
  min-height: 4.25rem;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: 0 var(--space-8);
}

.app-header__title {
  margin: 0;
  color: var(--color-primary-strong);
  font-size: 1.05rem;
  font-weight: 800;
}

.app-user {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: var(--space-3);
}

.app-user__name {
  min-width: 0;
  overflow: hidden;
  color: var(--color-muted);
  font-size: 0.9rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-user form {
  flex: 0 0 auto;
}

.app-content {
  width: min(100%, var(--app-content-max-width));
  padding: var(--space-6) var(--app-content-gutter) var(--space-8);
}

.flash {
  margin: var(--space-6) var(--space-8) 0;
  border: 1px solid;
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  font-size: 0.9rem;
  font-weight: 700;
}

.flash--notice {
  border-color: #a7f3d0;
  background: var(--color-success-soft);
  color: #065f46;
}

.flash--alert {
  border-color: #fecdd3;
  background: var(--color-danger-soft);
  color: #9f1239;
}

.card {
  min-width: 0;
  margin: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  padding: var(--space-5);
}

.card--flush {
  padding: 0;
}

.card--compact {
  padding: var(--space-4);
}

.page-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.page-toolbar__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  min-width: 0;
}

.page-kicker {
  margin: var(--space-1) 0 0;
  color: var(--color-muted);
  font-size: 0.9rem;
  max-width: 74ch;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: var(--space-4);
}

.metric-card {
  display: grid;
  gap: var(--space-3);
}

.metric-card__title {
  margin: 0;
  color: var(--color-primary-strong);
  font-size: 1rem;
  font-weight: 800;
}

.metric-card__copy {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.9rem;
  max-width: 74ch;
}

.button-primary,
.button-secondary,
.button-danger {
  display: inline-flex;
  min-height: 2.5rem;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 800;
  line-height: 1;
  padding: 0.65rem 0.9rem;
  text-decoration: none;
  touch-action: manipulation;
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, color 180ms ease, opacity 180ms ease;
}

.button-primary {
  border: 1px solid var(--color-primary);
  background: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.button-primary:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.button-secondary {
  border: 1px solid var(--color-border-strong);
  background: var(--color-surface);
  color: var(--color-secondary);
}

.button-secondary:hover {
  border-color: var(--color-accent);
  background: var(--color-accent-soft);
  color: var(--color-primary);
}

.button-secondary--compact {
  min-height: 2rem;
  padding: 0.45rem 0.7rem;
}

.button-danger {
  border: 1px solid #fecdd3;
  background: #fff;
  color: #be123c;
}

.button-danger:hover {
  border-color: #fb7185;
  background: var(--color-danger-soft);
}

.button-primary:disabled,
.button-secondary:disabled,
.button-danger:disabled,
.button-primary--disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.form-control,
.form-select,
:where(input[type="text"], input[type="search"], input[type="number"], input[type="password"], input[type="email"], input[type="url"], select, textarea):not(.unstyled-input) {
  min-height: 2.5rem;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-foreground);
  font-size: 0.9rem;
  padding: 0.55rem 0.7rem;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.form-control:focus,
.form-select:focus,
:where(input[type="text"], input[type="search"], input[type="number"], input[type="password"], input[type="email"], input[type="url"], select, textarea):not(.unstyled-input):focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgb(3 105 161 / 0.14);
  outline: 0;
}

.search-form {
  display: flex;
  width: 100%;
  gap: var(--space-2);
}

.filter-block {
  margin: var(--space-5) 0 var(--space-6);
}

.status-tabs,
.tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.status-pill,
.tab-link {
  display: inline-flex;
  min-height: 2.25rem;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-surface);
  color: var(--color-secondary);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0.45rem 0.75rem;
  text-decoration: none;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.status-pill:hover,
.tab-link:hover {
  border-color: var(--color-accent);
  background: var(--color-accent-soft);
  color: var(--color-primary);
}

.status-pill.is-active,
.tab-link.is-active {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: #fff;
}

.status-pill.is-active:visited,
.tab-link.is-active:visited {
  color: #fff;
}

.data-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  color: var(--color-secondary);
  font-size: 0.875rem;
  text-align: left;
}

.data-table th,
.data-table td {
  border-bottom: 1px solid var(--color-border);
  padding: 0.75rem 0.85rem;
  vertical-align: top;
}

.data-table th {
  background: var(--color-surface-muted);
  color: var(--color-muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.data-table tbody tr:hover td {
  background: #f8fafc;
}

.data-table a {
  color: var(--color-primary);
  font-weight: 800;
  text-decoration: none;
}

.data-table a:hover {
  color: var(--color-accent);
}

.badge {
  display: inline-flex;
  min-height: 1.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--color-surface-muted);
  color: var(--color-secondary);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.15rem 0.5rem;
}

.category-sync-toggle {
  display: inline-flex;
  min-width: 4.75rem;
  align-items: center;
  gap: var(--space-2);
  border: 0;
  background: transparent;
  color: var(--color-muted);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0;
}

.category-sync-toggle:disabled {
  cursor: wait;
  opacity: 0.7;
}

.category-sync-toggle__track {
  position: relative;
  display: inline-flex;
  width: 2.55rem;
  height: 1.4rem;
  flex: 0 0 auto;
  align-items: center;
  border: 1px solid var(--color-border-strong);
  border-radius: 999px;
  background: #e2e8f0;
  transition: background-color 180ms ease, border-color 180ms ease;
}

.category-sync-toggle__thumb {
  position: absolute;
  left: 0.15rem;
  width: 1rem;
  height: 1rem;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 2px rgb(15 23 42 / 0.24);
  transition: transform 180ms ease;
}

.category-sync-toggle.is-on {
  color: var(--color-success);
}

.category-sync-toggle.is-on .category-sync-toggle__track {
  border-color: #059669;
  background: #059669;
}

.category-sync-toggle.is-on .category-sync-toggle__thumb {
  transform: translateX(1.12rem);
}

.category-boolean-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-muted);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
}

.category-boolean-toggle__input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.category-boolean-toggle__track {
  position: relative;
  display: inline-flex;
  width: 2.55rem;
  height: 1.4rem;
  flex: 0 0 auto;
  align-items: center;
  border: 1px solid var(--color-border-strong);
  border-radius: 999px;
  background: #e2e8f0;
  transition: background-color 180ms ease, border-color 180ms ease;
}

.category-boolean-toggle__thumb {
  position: absolute;
  left: 0.15rem;
  width: 1rem;
  height: 1rem;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 2px rgb(15 23 42 / 0.24);
  transition: transform 180ms ease;
}

.category-boolean-toggle__input:checked + .category-boolean-toggle__track {
  border-color: #059669;
  background: #059669;
}

.category-boolean-toggle__input:checked + .category-boolean-toggle__track .category-boolean-toggle__thumb {
  transform: translateX(1.12rem);
}

.category-boolean-toggle__input:focus-visible + .category-boolean-toggle__track {
  outline: 3px solid rgb(14 165 233 / 0.28);
  outline-offset: 2px;
}

.category-boolean-toggle__copy {
  line-height: 1.35;
}

.indent-depth {
  display: inline-block;
}

.indent-depth--0 { padding-left: 0; }
.indent-depth--1 { padding-left: 1.25rem; }
.indent-depth--2 { padding-left: 2.5rem; }
.indent-depth--3 { padding-left: 3.75rem; }
.indent-depth--4 { padding-left: 5rem; }
.indent-depth--5 { padding-left: 6.25rem; }
.indent-depth--6 { padding-left: 7.5rem; }
.indent-depth--7 { padding-left: 8.75rem; }
.indent-depth--8 { padding-left: 10rem; }
.indent-depth--9 { padding-left: 11.25rem; }
.indent-depth--10 { padding-left: 12.5rem; }
.indent-depth--11 { padding-left: 13.75rem; }
.indent-depth--12 { padding-left: 15rem; }

.is-copy-row td {
  background: var(--color-warning-soft);
}

.restricted-select__options {
  max-height: 10rem;
  overflow-y: auto;
}

@media (max-width: 1023px) {
  .app-shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    align-content: start;
    align-items: start;
  }

  .app-sidebar {
    position: sticky;
    top: 0;
    align-self: start;
    width: 100%;
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--color-border);
    z-index: 20;
  }

  .app-shell[data-menu-state="expanded"] .app-sidebar {
    position: fixed;
    inset: 0;
    min-height: 100dvh;
    border-bottom: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    box-shadow: var(--shadow-md);
  }

  .app-brand,
  .app-nav,
  .app-header__inner,
  .app-content {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }

  .app-brand {
    min-height: 4.25rem;
    padding-bottom: var(--space-3);
    padding-top: var(--space-3);
  }

  .app-nav {
    display: none;
    padding-bottom: var(--space-4);
  }

  .app-shell[data-menu-state="expanded"] .app-nav {
    display: block;
    padding-bottom: var(--space-8);
  }

  .app-nav__list {
    grid-template-columns: 1fr;
    gap: var(--space-2);
  }

  .app-nav__group {
    padding-top: var(--space-2);
  }

  .app-nav__link {
    min-height: 3rem;
    font-size: 0.95rem;
  }

  .page-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-toolbar__actions,
  .page-toolbar__actions > form,
  .page-toolbar__actions > div {
    width: 100%;
  }

  .page-toolbar__actions .button-primary,
  .page-toolbar__actions .button-secondary,
  .page-toolbar__actions .button-danger {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .app-header__inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding-bottom: var(--space-3);
    padding-top: var(--space-3);
  }

  .app-user {
    width: 100%;
    justify-content: space-between;
  }

  .app-content {
    padding-bottom: var(--space-6);
  }

  .search-form {
    flex-direction: column;
    gap: var(--space-3);
  }

  .search-form .button-primary,
  .search-form .button-secondary,
  .search-form .button-danger,
  .search-form input[type="submit"] {
    width: 100%;
  }

  .status-tabs,
  .tab-list {
    gap: var(--space-3);
  }
}

input#pim_category_catalog_display { background-color: gainsboro; }
.category-edit-full-path {
  font-weight: bold;
  font-style: italic;
}
.category-edit-field { margin-bottom: 1rem; }
.category-edit-button { margin-top: 2rem; }
.ui-group-label-settings { margin-right: 20px; }
.ui-group-ai-settings-wrapper { margin: 1rem 0; }
.subcategory-wrapper {
  padding: 1rem 0 2rem 0;
  border-bottom: 3px groove #212121;
}
.copy-debug-wrapper {
  float: right;
  margin: 1rem;
}
.text-align-center { text-align: center; }
.image-preview-container { margin-top: .5rem; }
.image-preview-container-large { margin: 1rem 0; }

.shop-import-progress {
  width: 8rem;
  height: .5rem;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
}

.shop-import-progress__bar {
  height: 100%;
  border-radius: inherit;
  background: #059669;
  width: 0;
  transition: width .25s ease;
}
.shop-card-title-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
}
.shop-sync-button-form {
  margin-left: 2rem;
}
.shop-sync-sample-list {
  display: grid;
  gap: .15rem;
}
.shop-sync-sample-link {
  appearance: none;
  background: transparent;
  border: 0;
  color: #334155;
  cursor: pointer;
  display: block;
  font: inherit;
  padding: 0;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: .18rem;
}
.shop-sync-sample-link:hover,
.shop-sync-sample-link:focus {
  color: #0369a1;
}
.shop-sync-sample-overlay {
  align-items: center;
  background: rgb(15 23 42 / .38);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 1.5rem;
  position: fixed;
  z-index: 50;
}
.shop-sync-sample-modal {
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: .5rem;
  box-shadow: 0 24px 70px rgb(15 23 42 / .22);
  max-height: min(42rem, calc(100vh - 3rem));
  max-width: 46rem;
  overflow: auto;
  padding: 1.25rem;
  width: min(46rem, calc(100vw - 3rem));
}
.shop-sync-sample-modal__header {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.shop-sync-sample-modal__title {
  color: #0f172a;
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
}
.shop-sync-sample-modal__close {
  align-items: center;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: .4rem;
  color: #334155;
  cursor: pointer;
  display: inline-flex;
  font-size: 1.1rem;
  height: 2rem;
  justify-content: center;
  line-height: 1;
  width: 2rem;
}
.shop-sync-sample-modal__state {
  color: #475569;
  font-size: .9rem;
}
.shop-sync-sample-table {
  border-collapse: collapse;
  font-size: .85rem;
  width: 100%;
}
.shop-sync-sample-table th,
.shop-sync-sample-table td {
  border-bottom: 1px solid #e2e8f0;
  padding: .55rem .45rem;
  text-align: left;
  vertical-align: top;
}
.shop-sync-sample-table th {
  color: #475569;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
}
.shop-sync-sample-table td {
  color: #1e293b;
}
.input-mapping-options {
    border: 1px solid #212121;
    border-radius: .5rem;
    text-align: center;
    padding: .5rem;  
}
.upload-file::file-selector-button {
  border: 1px solid #212121;
  border-radius: .5rem;
  padding: 1rem;
  margin: 1rem .5rem 1rem 0;
}
.import-progress-percentage {
    font-size: 2rem;
    font-weight: bold;
    margin: 2rem 0;
}
.bulk-strategy-options { margin: 1rem 0 2rem 0; }
.bulk-upload-heading {
    font-size: 1rem;
    margin-top: 2rem;
}
.refresh_models_provider { padding: 1rem 0 .5rem .7rem; }
.ai-enrichment-run__header {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}
.ai-enrichment-run__links {
  display: flex;
  gap: .5rem;
}
.ai-enrichment-run-stop-form {
  display: inline-flex;
  margin: 0;
}
.ai-enrichment-run-stop-button {
  align-items: center;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: .45rem;
  cursor: pointer;
  display: inline-flex;
  height: 2rem;
  justify-content: center;
  padding: 0;
  width: 2rem;
}
.ai-enrichment-run-stop-button:hover {
  background: #fff1f2;
  border-color: #fda4af;
}
.ai-enrichment-run-stop-button__icon {
  background: #9f1239;
  border-radius: .1rem;
  display: block;
  height: .7rem;
  width: .7rem;
}
.ai-enrichment-progress {
  margin-top: 1.5rem;
}
.ai-enrichment-progress__meta {
  align-items: center;
  display: flex;
  font-size: .9rem;
  justify-content: space-between;
  margin-bottom: .5rem;
}
.ai-enrichment-progress__track {
  background: #e5e7eb;
  border-radius: 999px;
  height: .8rem;
  overflow: hidden;
}
.ai-enrichment-progress__fill {
  background: #0f172a;
  height: 100%;
  width: 0;
  transition: width .25s ease;
}
.ai-enrichment-progress__counts {
  color: #475569;
  font-size: .85rem;
  margin-top: .5rem;
}
.ai-enrichment-status-details {
  display: grid;
  gap: .75rem 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}
.ai-enrichment-status-details__title {
  color: #334155;
  font-weight: 700;
  margin-bottom: .35rem;
}
.ai-enrichment-status-details__list {
  display: grid;
  gap: .25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.ai-enrichment-status-details__list li {
  align-items: baseline;
  display: flex;
  gap: .5rem;
  justify-content: space-between;
}
.ai-enrichment-status-details__list span,
.ai-enrichment-run-diagnostic {
  overflow-wrap: anywhere;
}
.ai-enrichment-status-details__sample {
  color: #64748b;
}
.ai-enrichment-run-diagnostic-panel {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: .5rem;
  color: #334155;
  display: grid;
  gap: .35rem;
  margin-top: 1rem;
  padding: .75rem;
}
.ai-enrichment-run-diagnostic-panel strong {
  color: #0f172a;
}
.ai-enrichment-tasks {
  margin-top: 1.75rem;
}
.ai-enrichment-tasks__header {
  align-items: baseline;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: .75rem;
}
.ai-enrichment-tasks__header h2 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
}
.ai-enrichment-tasks__header span {
  color: #64748b;
  font-size: .8rem;
}
.ai-enrichment-tasks__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-bottom: .75rem;
}
.ai-enrichment-tasks__tab {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: .45rem;
  color: #334155;
  cursor: pointer;
  display: inline-flex;
  gap: .45rem;
  padding: .4rem .65rem;
}
.ai-enrichment-tasks__tab--active {
  background: #0f172a;
  border-color: #0f172a;
  color: #fff;
}
.ai-enrichment-tasks__table-wrap {
  border: 1px solid #e2e8f0;
  border-radius: .5rem;
  overflow-x: auto;
}
.ai-enrichment-tasks__table {
  border-collapse: collapse;
  font-size: .82rem;
  min-width: 70rem;
  width: 100%;
}
.ai-enrichment-tasks__table th,
.ai-enrichment-tasks__table td {
  border-bottom: 1px solid #e2e8f0;
  padding: .55rem .6rem;
  text-align: left;
  vertical-align: top;
}
.ai-enrichment-tasks__table th {
  background: #f8fafc;
  color: #475569;
  font-weight: 700;
}
.ai-enrichment-tasks__table td span {
  color: #64748b;
  display: block;
  font-size: .74rem;
  margin-top: .15rem;
}
.ai-enrichment-tasks__value,
.ai-enrichment-tasks__error {
  max-width: 18rem;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.ai-enrichment-tasks__error {
  color: #991b1b;
}
.ai-enrichment-tasks__empty {
  color: #64748b;
  text-align: center;
}
.third-full { width: 33%; }
.divider-heading {
    margin: 2rem;
    font-weight: bold;
    font-size: 1.2rem;
}
.template-attribute-toggle-button {
    position: relative;
    display: inline-flex;
    width: 3.5rem;
    height: 1.75rem;
    flex: 0 0 auto;
    align-items: center;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #f8fafc;
    cursor: pointer;
}
.template-attribute-toggle-button .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.template-attribute-status-button {
    border: 0;
    cursor: pointer;
}
.template-attribute-wrapper {
    border: 1px solid #ddd;
    border-radius: 1rem;
    padding: 1rem 1.5rem;
    margin: 10px;
}
.template-attribute-title { font-weight: bold; }
.template-cta-wrapper { padding: 1rem .3rem; }
.current-selection {
  color: #fff;
}
.product-status-tab-wrapper { margin: var(--space-5) 0; }
.button-spinner {
  width: 0.9rem;
  height: 0.9rem;
  margin-right: 0.5rem;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-top-color: #fff;
  border-radius: 999px;
  display: inline-block;
  animation: button-spin 0.7s linear infinite;
}

.cursor-pointer { cursor: pointer; }
.ai-button {
  display: inline-flex;
  text-align: center;
  align-items: center;
  cursor: pointer;
}
.ai-icon { margin-right: 5px; }

.subheading-product-attributes {
    font-size: 1rem;
    margin: 2rem;
    text-align: center;
    font-weight: bold;
    font-size: 1.5rem;
}
[hidden] { display: none !important; }
.template-attribute-divider { margin: 2rem; }

.attribute-definition-info-grid {
  display: flex;
  gap: 1rem;
  align-items: stretch;
}

.attribute-definition-info-grid > div {
  flex: 1 1 0;
  min-width: 0;
}
.bulk-ai-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.4);
  padding: 1rem;
}

.bulk-ai-modal__dialog {
  width: 100%;
  max-width: 32rem;
  border-radius: 0.75rem;
  background: #fff;
  padding: 1.5rem;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.25);
}

.ai-dashboard-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  margin-top: 2rem;
}

.ai-dashboard-card {
  overflow-x: auto;
}

.ai-dashboard-card__period {
  margin-top: 1rem;
  font-size: 0.95rem;
  font-weight: 700;
}

.ai-dashboard-table {
  width: 100%;
  min-width: 26rem;
  border-collapse: collapse;
  margin-top: 0.5rem;
  font-size: 0.85rem;
}

.ai-dashboard-table th,
.ai-dashboard-table td {
  border-bottom: 1px solid #e2e8f0;
  padding: 0.45rem 0.35rem;
  text-align: left;
  vertical-align: top;
}

.ai-dashboard-table th {
  color: #475569;
  font-weight: 700;
}

.ai-dashboard-table span {
  color: #64748b;
  font-size: 0.78rem;
}

/* Mobile */
@media (max-width: 767px) {
  .third-full { width: 100%; }
}
.ai-button--loading .ai-icon {
  animation: ai-spin 0.9s linear infinite;
}

.import-wizard-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: #212121;
  font-size: 1rem;
  line-height: 1.5;
}

.import-wizard-steps__item {
  color: #212121;
  font-weight: 500;
}

.import-wizard-steps__item.is-active {
  color: #000;
  font-weight: 700;
}

.import-wizard-steps__separator { color: #212121; }

.import-stop-button {
  border: none;
  padding: 0;
  color: #b91c1c;
  background: transparent;
  cursor: pointer;
  font-weight: 600;
  text-decoration: underline;
}

/* Import Preview Table */
.import-preview-table-wrapper {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: auto;
  max-height: 70vh;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
}

.import-preview-table {
  border-collapse: separate;
  border-spacing: 0;
  width: max-content;
  min-width: 100%;
  max-width: none;
  font-size: 13px;
}

.import-preview-table th,
.import-preview-table td {
  padding: 10px 14px;
  white-space: nowrap;
  vertical-align: middle;
  background: #fff;
}

.import-preview-table thead th {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #f1f5f9;
  box-shadow: inset 0 -1px 0 #e2e8f0;
}
.import-preview-table tbody td { border-bottom: 1px solid #f1f5f9; }
.import-preview-table tbody tr:hover td { background: #f8fafc; }

/* eerste kolom sticky */
.import-preview-table th:first-child,
.import-preview-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 15;
  background: #fff;
  box-shadow: 1px 0 0 #e2e8f0;
}

/* Tweede kolom sticky  */
.import-preview-table th:nth-child(2),
.import-preview-table td:nth-child(2) {
  position: sticky;
  left: 77px; /* even afstellen op breedte van eerste kolom */
  z-index: 14;
  background: #fff;
  box-shadow: 1px 0 0 #e2e8f0;
}

.import-preview-table thead th:nth-child(2) {
  z-index: 29;
  background: #f1f5f9;
}
/* linkerbovenhoek moet boven alles blijven */
.import-preview-table thead th:first-child {
  z-index: 30;
  background: #f1f5f9;
}
/* End Import Preview Table */

@keyframes ai-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes button-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
