/* Pivoteka ERP 2.30.0.3.0.6.6.3 — Director Light UI / Auxiliary Windows */

:root {
  --light-bg: #f5f7fb;
  --light-surface: #ffffff;
  --light-surface-soft: #f8fafc;
  --light-surface-blue: #f4f8ff;
  --light-border: #dce5f0;
  --light-border-strong: #cbd8e8;
  --light-text: #172238;
  --light-text-2: #344a66;
  --light-muted: #72839a;
  --light-blue: #2f6ff0;
  --light-blue-2: #4c86ff;
  --light-green: #1f9d62;
  --light-amber: #c47b0a;
  --light-red: #d64555;
  --light-purple: #7c55e8;
  --light-shadow: 0 14px 34px rgba(30, 55, 90, .075);
  --light-shadow-soft: 0 7px 20px rgba(30, 55, 90, .055);
}

/* Global legacy compatibility layer: keep the new Director shell consistently light. */
html, body {
  background: var(--light-bg) !important;
  color: var(--light-text) !important;
}

.desktop-workspace,
.screen {
  background: var(--light-bg) !important;
}

.card {
  background: var(--light-surface) !important;
  border-color: var(--light-border) !important;
  box-shadow: var(--light-shadow-soft) !important;
  color: var(--light-text) !important;
}

.section-title,
.row-card__title,
.card h1,
.card h2,
.card h3,
.card h4 {
  color: var(--light-text) !important;
}

.section-subtitle,
.muted,
.row-card__meta,
.card p,
.card small {
  color: var(--light-muted);
}

.select,
.input,
.textarea {
  background: #fff !important;
  border-color: var(--light-border-strong) !important;
  color: var(--light-text) !important;
  box-shadow: none !important;
}
.select:focus,
.input:focus,
.textarea:focus {
  border-color: #79a6ff !important;
  box-shadow: 0 0 0 3px rgba(47,111,240,.10) !important;
  outline: none !important;
}
.toolbar__label { color: #667c97 !important; }

.ghost-btn,
.soft-btn {
  background: #fff !important;
  border-color: var(--light-border-strong) !important;
  color: #385575 !important;
  box-shadow: none !important;
}
.ghost-btn:hover,
.soft-btn:hover {
  background: #f7faff !important;
  border-color: #9ab8df !important;
  color: #1e4f94 !important;
}
.primary-btn {
  background: linear-gradient(180deg, var(--light-blue-2), var(--light-blue)) !important;
  border-color: #4f82f4 !important;
  color: #fff !important;
  box-shadow: 0 9px 22px rgba(47,111,240,.20) !important;
}
.primary-btn:hover { filter: brightness(1.035); }

.badge {
  background: #f7f9fc;
  border-color: var(--light-border);
  color: #55708e;
}
.badge.info { background: #eef6ff; border-color: #c9ddfa; color: #2d67a8; }
.badge.success { background: #edf9f2; border-color: #c7e9d5; color: #187c4d; }
.badge.warn { background: #fff8e9; border-color: #f0deb1; color: #9a640d; }
.badge.danger { background: #fff1f2; border-color: #efcbd0; color: #bd3b49; }
.badge.muted { background: #f4f7fa; border-color: #d9e2ec; color: #73849a; }

.empty-state,
.empty-state.compact {
  background: #fff !important;
  border: 1px dashed #d7e2ef !important;
  color: var(--light-muted) !important;
  box-shadow: none !important;
}
.empty-state h2,
.empty-state h3,
.empty-state strong,
.empty-state b { color: var(--light-text) !important; }

/* Common top context bar used by legacy routes. */
.desktop-toolbar {
  background: #fff !important;
  border: 1px solid var(--light-border) !important;
  border-radius: 16px !important;
  box-shadow: var(--light-shadow-soft) !important;
  padding: 12px 14px !important;
}
.desktop-toolbar .select,
.desktop-toolbar .input {
  min-height: 42px;
  border-radius: 10px !important;
  background: #fbfdff !important;
}
.desktop-status-pill {
  background: #eef9f2 !important;
  border: 1px solid #cbe9d6 !important;
  color: #237f50 !important;
}
.desktop-status-pill > span { background: #35bf72 !important; }
.desktop-clock { color: #304965 !important; }

/* =========================================================
   WORK ORDERS — approved light visual
   ========================================================= */
.work-orders-mode .screen {
  padding-top: 14px !important;
  gap: 14px !important;
}
.work-orders-mode .wo-page {
  display: grid;
  gap: 14px;
  color: var(--light-text);
}
.work-orders-mode .wo-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 2px 2px 4px;
}
.work-orders-mode .wo-page-head h1 {
  margin: 0;
  color: var(--light-text) !important;
  font-size: 25px !important;
  line-height: 1.08;
  letter-spacing: -.02em;
}
.work-orders-mode .wo-page-head p {
  margin: 5px 0 0;
  color: var(--light-muted) !important;
  font-size: 12px;
}
.work-orders-mode .wo-page-tabs {
  display: inline-flex;
  gap: 5px;
  padding: 4px !important;
  border: 1px solid #dbe5f1 !important;
  border-radius: 14px !important;
  background: #f5f8fc !important;
  box-shadow: none !important;
}
.work-orders-mode .wo-page-tabs button {
  min-width: 160px;
  min-height: 42px;
  padding: 9px 16px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: transparent !important;
  color: #56718f !important;
  font-size: 12px;
  font-weight: 800;
}
.work-orders-mode .wo-page-tabs button.active {
  background: linear-gradient(180deg,#4d84ff,#2f6ff0) !important;
  color: #fff !important;
  box-shadow: 0 8px 18px rgba(47,111,240,.20) !important;
}

.work-orders-mode .wo-store-strip {
  display: flex;
  gap: 8px !important;
  overflow-x: auto;
  padding: 2px 2px 8px;
  scrollbar-width: thin;
  scrollbar-color: #bfd0e5 transparent;
}
.work-orders-mode .wo-store-chip {
  min-width: 164px !important;
  max-width: 194px;
  min-height: 66px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px !important;
  border: 1px solid var(--light-border) !important;
  border-radius: 13px !important;
  background: #fff !important;
  box-shadow: 0 6px 16px rgba(37,64,99,.045) !important;
  color: var(--light-text) !important;
}
.work-orders-mode .wo-store-chip:hover {
  border-color: #b7cce5 !important;
  box-shadow: 0 8px 20px rgba(37,64,99,.075) !important;
}
.work-orders-mode .wo-store-chip.active {
  border-color: #5d8fff !important;
  background: linear-gradient(180deg,#f7faff,#edf4ff) !important;
  box-shadow: 0 0 0 2px rgba(47,111,240,.07),0 9px 22px rgba(47,111,240,.11) !important;
}
.work-orders-mode .wo-store-chip__photo {
  width: 38px !important;
  height: 38px !important;
  flex: 0 0 38px !important;
  border: 1px solid #d7e4f1 !important;
  border-radius: 10px !important;
  background: #f2f6fb !important;
  color: #3e72bd !important;
  box-shadow: none !important;
}
.work-orders-mode .wo-store-chip.active .wo-store-chip__photo {
  border-color: #a9c5ff !important;
  background: #eaf2ff !important;
  color: #2f6ff0 !important;
}
.work-orders-mode .wo-store-chip__photo.has-image { background:#fff !important; }
.work-orders-mode .wo-store-chip__body { color: var(--light-text) !important; }
.work-orders-mode .wo-store-chip__body strong {
  color: #1a304d !important;
  font-size: 12px !important;
  line-height: 1.2;
}
.work-orders-mode .wo-store-chip__body small {
  color: #7890aa !important;
  font-size: 9px !important;
  margin-top: 4px;
}
.work-orders-mode .wo-store-chip.active .wo-store-chip__body strong { color: #2458ad !important; }
.work-orders-mode .wo-card-gear {
  width: 29px;
  height: 29px;
  border: 1px solid #d4e1ef !important;
  border-radius: 9px !important;
  background: #f8fbff !important;
  color: #507197 !important;
  box-shadow: none !important;
}
.work-orders-mode .wo-card-gear:hover {
  border-color: #9cb9e1 !important;
  background: #eef5ff !important;
  color: #245cae !important;
  transform: none !important;
}


.work-orders-mode .wo-section-label {
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  padding:1px 2px 0;
}
.work-orders-mode .wo-section-label > div { display:grid; gap:3px; }
.work-orders-mode .wo-section-label strong {
  color:#193250;
  font-size:14px;
  line-height:1.2;
}
.work-orders-mode .wo-section-label span {
  color:#7b8fa6;
  font-size:10px;
  line-height:1.3;
}
.work-orders-mode .wo-section-label--stores { margin-top:-2px; }

.work-orders-mode .wo-create-layout {
  display: grid;
  grid-template-columns: minmax(0,1fr) 360px !important;
  gap: 16px !important;
  align-items: start;
}
.work-orders-mode .wo-main { display:grid; gap:11px; min-width:0; }
.work-orders-mode .wo-supplier-strip {
  display: flex;
  gap: 9px !important;
  overflow-x: auto;
  padding: 2px 2px 8px !important;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: #bfd0e5 transparent;
}
.work-orders-mode .wo-supplier-card {
  min-width: 230px !important;
  max-width: 260px !important;
  border: 1px solid var(--light-border) !important;
  border-radius: 14px !important;
  background: #fff !important;
  box-shadow: 0 7px 18px rgba(36,64,100,.055) !important;
  overflow: hidden;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.work-orders-mode .wo-supplier-card:hover {
  transform: translateY(-1px);
  border-color: #b7cce5 !important;
  box-shadow: 0 10px 24px rgba(36,64,100,.085) !important;
}
.work-orders-mode .wo-supplier-card.active {
  border-color: #5a8dff !important;
  background: linear-gradient(180deg,#fff,#f6f9ff) !important;
  box-shadow: 0 0 0 2px rgba(47,111,240,.07),0 11px 26px rgba(47,111,240,.10) !important;
}
.work-orders-mode .wo-supplier-card__select {
  min-height: 116px;
  padding: 14px 15px 11px !important;
  color: #3e5672 !important;
}
.work-orders-mode .wo-supplier-card__top strong {
  color: #172f4c !important;
  font-size: 13px !important;
  line-height: 1.25;
  overflow-wrap: anywhere;
  padding-right: 28px;
}
.work-orders-mode .wo-supplier-card__top em {
  background: #edf9f2 !important;
  border: 1px solid #c8ead6 !important;
  color: #18804f !important;
  box-shadow: none !important;
}
.work-orders-mode .wo-supplier-card__select > span:not(.wo-supplier-card__top) {
  color: #58718d !important;
  font-size: 11px !important;
}
.work-orders-mode .wo-supplier-card__select small { color:#7c90a7 !important; }
.work-orders-mode .wo-cutoff-badge {
  color: #a6670c !important;
  background: #fff8e9 !important;
  border-color: #efddb6 !important;
}
.work-orders-mode .wo-settings-status { gap:5px; }
.work-orders-mode .wo-setting-indicator {
  background: #f7f9fc !important;
  border-color: #d7e1ed !important;
  color: #687f99 !important;
  box-shadow: none !important;
}
.work-orders-mode .wo-setting-indicator.is-ready {
  background: #f3f8ff !important;
  border-color: #c8d9ee !important;
  color: #3f6f9e !important;
}
.work-orders-mode .wo-setting-indicator.is-missing {
  background: #fff7f2 !important;
  border-color: #f0d4c7 !important;
  color: #ad6748 !important;
}
.work-orders-mode .wo-supplier-selected {
  color: #245eb8 !important;
  background: #eef5ff !important;
  border: 1px solid #cbdfff !important;
}
.work-orders-mode .wo-supplier-card__states {
  min-height: 66px;
  padding: 9px 12px 11px !important;
  border-top: 1px solid #e8eef5 !important;
  background: #fbfcfe !important;
}
.work-orders-mode .wo-today-order-badge {
  color: #187d4e !important;
  background: #eff9f3 !important;
  border: 1px solid #cce9d7 !important;
}
.work-orders-mode .wo-supplier-order-link { color:#2f6fc0 !important; }
.work-orders-mode .wo-supplier-order-link:hover { color:#174c95 !important; }
.work-orders-mode .wo-supplier-auto { color:#1c8b57 !important; }
.work-orders-mode .wo-card-gear--supplier {
  top: 9px;
  right: 9px;
  background: #f8fbff !important;
}

.work-orders-mode .wo-catalog-heading { padding: 3px 2px 2px; }
.work-orders-mode .wo-catalog-heading h2 {
  color: #1b3554 !important;
  font-size: 15px !important;
}
.work-orders-mode .wo-catalog-heading > div:first-child > span {
  color:#187d4e !important;
  background:#edf9f2 !important;
  border:1px solid #cae8d5 !important;
}
.work-orders-mode .wo-catalog-freshness { color:#2d9a64 !important; }

.work-orders-mode .wo-toolbar {
  display:grid;
  grid-template-columns:auto minmax(245px,1fr) minmax(180px,220px) auto !important;
  gap:9px;
  align-items:end;
  padding:9px 10px !important;
  border:1px solid var(--light-border) !important;
  border-radius:13px !important;
  background:#fff !important;
  box-shadow:var(--light-shadow-soft) !important;
}
.work-orders-mode .wo-catalog-tabs {
  display:flex;
  gap:4px;
  padding:3px;
  border-radius:10px;
  background:#f3f6fa;
  border:1px solid #e0e7f0;
}
.work-orders-mode .wo-catalog-tabs button {
  border:0 !important;
  background:transparent !important;
  color:#5c738c !important;
  border-radius:8px !important;
  font-size:10px;
  font-weight:800;
  padding:8px 11px !important;
}
.work-orders-mode .wo-catalog-tabs button.active {
  background:#fff !important;
  color:#2f6ff0 !important;
  box-shadow:0 1px 4px rgba(30,55,90,.08) !important;
}
.work-orders-mode .wo-search { position:relative; }
.work-orders-mode .wo-search input,
.work-orders-mode .wo-sort select {
  min-height:39px;
  border:1px solid #d5e1ee !important;
  border-radius:9px !important;
  background:#fbfdff !important;
  color:#1c3553 !important;
  box-shadow:none !important;
}
.work-orders-mode .wo-search input { padding:9px 115px 9px 13px !important; }
.work-orders-mode .wo-search input::placeholder { color:#91a0b2; }
.work-orders-mode .wo-search-live-hint { color:#9aa9bb !important; }
.work-orders-mode .wo-sort > span { color:#7a8ea5 !important; }
.work-orders-mode .wo-auto-actions { display:flex; gap:7px; }
.work-orders-mode .wo-auto-actions .soft-btn,
.work-orders-mode .wo-auto-actions .primary-btn {
  min-height:39px;
  border-radius:9px !important;
  padding:8px 12px !important;
  font-size:10px;
  font-weight:800;
}

.work-orders-mode .wo-table {
  min-width:1000px;
  overflow:hidden;
  border:1px solid var(--light-border) !important;
  border-radius:14px !important;
  background:#fff !important;
  box-shadow:var(--light-shadow-soft) !important;
}
.work-orders-mode .wo-table-head {
  background:#f4f7fb !important;
  color:#61768e !important;
  border-bottom:1px solid #dfe8f1 !important;
  font-size:8px !important;
  letter-spacing:.055em;
}
.work-orders-mode .wo-table-row {
  min-height:68px;
  color:#38536f !important;
  border-top:1px solid #e8eef5 !important;
  background:#fff !important;
}
.work-orders-mode .wo-table-row:hover { background:#f8fbff !important; }
.work-orders-mode .wo-table-row.in-cart {
  background:linear-gradient(90deg,#eef5ff 0,#f9fbff 54%,#fff 100%) !important;
  box-shadow:inset 3px 0 #3e79ee !important;
}
.work-orders-mode .wo-product-cell strong,
.work-orders-mode .wo-product-cell__info strong {
  color:#18324f !important;
  font-size:11px !important;
  line-height:1.28;
  white-space:normal !important;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.work-orders-mode .wo-product-cell small,
.work-orders-mode .wo-product-cell__info small { color:#7a8fa6 !important; }
.work-orders-mode .wo-product-thumb,
.work-orders-mode .wo-photo-button {
  background:#f0f5fb !important;
  border-color:#dbe6f1 !important;
  color:#567aa4 !important;
  box-shadow:none !important;
}
.work-orders-mode .wo-product-gear,
.work-orders-mode .wo-sales-calendar-trigger {
  background:#f7faff !important;
  border-color:#d6e3f1 !important;
  color:#4d75a2 !important;
}

.work-orders-mode .wo-metric {
  min-height:48px;
  padding:7px 8px !important;
  border:1px solid #dce6f0 !important;
  border-radius:9px !important;
  background:#f9fbfd !important;
  color:#18324f !important;
  box-shadow:none !important;
}
.work-orders-mode .wo-metric small {
  color:#788da4 !important;
  font-size:7px !important;
}
.work-orders-mode .wo-metric b {
  color:#142f4c !important;
  font-size:12px !important;
}
.work-orders-mode .wo-metric em { color:#7a8ea4 !important; }
.work-orders-mode .wo-metric.is-danger { background:#fff4f5 !important; border-color:#f0ccd1 !important; }
.work-orders-mode .wo-metric.is-danger b { color:#c83e4e !important; }
.work-orders-mode .wo-metric.is-warn { background:#fff9ed !important; border-color:#eeddb8 !important; }
.work-orders-mode .wo-metric.is-warn b { color:#a36c10 !important; }
.work-orders-mode .wo-metric.is-success { background:#f0faf4 !important; border-color:#cbe9d6 !important; }
.work-orders-mode .wo-metric.is-success b { color:#1c8050 !important; }
.work-orders-mode .wo-metric.is-muted b { color:#8a9aad !important; }
.work-orders-mode .wo-metric--empty { background:#fbfcfe !important; }
.work-orders-mode .wo-rec { min-width:0; }
.work-orders-mode .wo-recommendation-btn {
  min-height:46px;
  border:1px solid #cbe6d6 !important;
  border-radius:9px !important;
  background:#f2faf5 !important;
  color:#1e7249 !important;
  box-shadow:none !important;
}
.work-orders-mode .wo-recommendation-btn:hover {
  background:#eaf7ef !important;
  border-color:#a9d6bb !important;
}
.work-orders-mode .wo-recommendation-btn small { color:#568b6d !important; }
.work-orders-mode .wo-no-recommendation { color:#91a0b2 !important; }

.work-orders-mode .wo-qty {
  min-height:36px;
  border:1px solid #ccd9e8 !important;
  border-radius:9px !important;
  background:#fff !important;
  box-shadow:none !important;
}
.work-orders-mode .wo-qty button {
  height:36px;
  border:0 !important;
  color:#fff !important;
}
.work-orders-mode .wo-qty__minus { background:#ef4444 !important; }
.work-orders-mode .wo-qty__plus { background:#18a957 !important; }
.work-orders-mode .wo-qty__minus:hover { background:#dc2626 !important; }
.work-orders-mode .wo-qty__plus:hover { background:#128a48 !important; }
.work-orders-mode .wo-qty input,
.work-orders-mode .wo-qty .js-wo-qty-input {
  background:#fff !important;
  color:#17324f !important;
  border:0 !important;
  box-shadow:none !important;
}
.work-orders-mode .wo-qty-caption { color:#7b8fa5 !important; }

/* Basket: visually separated light blue side panel, not a leftover dark-theme block. */
.work-orders-mode .wo-cart {
  position:sticky;
  top:12px;
  display:flex;
  flex-direction:column;
  gap:13px;
  padding:16px !important;
  max-height:calc(100vh - 118px);
  border:1px solid #cfddec !important;
  border-radius:16px !important;
  background:linear-gradient(180deg,#f3f7fd,#eef4fb) !important;
  box-shadow:0 15px 38px rgba(37,64,99,.10) !important;
  color:#17324f !important;
}
.work-orders-mode .wo-cart__head {
  border-bottom:1px solid #d7e3f0 !important;
  padding-bottom:11px;
}
.work-orders-mode .wo-cart__head h3 { color:#17324f !important; font-size:19px; }
.work-orders-mode .wo-cart__head > div > span,
.work-orders-mode .wo-cart__head-summary { color:#6e849e !important; }
.work-orders-mode .wo-cart-count {
  background:#2f6ff0 !important;
  color:#fff !important;
}
.work-orders-mode .wo-cart-expand {
  min-height:29px;
  border:1px solid #c8d9ec !important;
  border-radius:8px !important;
  background:#fff !important;
  color:#426285 !important;
}
.work-orders-mode .wo-cart-group {
  padding:10px;
  border:1px solid #d8e3ef !important;
  border-radius:12px !important;
  background:#fff !important;
  box-shadow:0 3px 10px rgba(37,64,99,.035) !important;
}
.work-orders-mode .wo-cart-group > header { border-bottom-color:#e5edf5 !important; }
.work-orders-mode .wo-cart-group__title strong,
.work-orders-mode .wo-cart-item__name strong,
.work-orders-mode .wo-cart-group__sum b { color:#17324f !important; }
.work-orders-mode .wo-cart-group__title small,
.work-orders-mode .wo-cart-item__name small,
.work-orders-mode .wo-cart-group__sum span { color:#748aa3 !important; }
.work-orders-mode .wo-cart-item {
  background:#f7f9fc !important;
  border:1px solid #e0e8f1 !important;
  border-radius:10px !important;
}
.work-orders-mode .wo-cart-item.is-price-novelty {
  background:#f0faf4 !important;
  border-color:#cde9d8 !important;
}
.work-orders-mode .wo-comment span { color:#617a96 !important; }
.work-orders-mode .wo-comment textarea {
  background:#fff !important;
  border-color:#d4e1ef !important;
  color:#17324f !important;
}
.work-orders-mode .wo-comment > small { color:#8799ac !important; }
.work-orders-mode .wo-cart__note { color:#6c819a !important; }
.work-orders-mode .wo-submit-btn {
  min-height:44px;
  border-radius:10px !important;
  background:linear-gradient(180deg,#4d84ff,#2f6ff0) !important;
  box-shadow:0 10px 22px rgba(47,111,240,.20) !important;
}
.work-orders-mode .wo-clear-btn { background:#fff !important; }
.work-orders-mode .wo-cart.is-expanded {
  background:linear-gradient(180deg,#f6f9fd,#edf4fb) !important;
  box-shadow:0 30px 80px rgba(30,55,90,.18) !important;
}

/* Work-order history. */
.work-orders-mode .wo-history-workspace { display:grid; gap:12px; }
.work-orders-mode .wo-history-filters,
.work-orders-mode .wo-history-list-panel,
.work-orders-mode .wo-history-detail,
.work-orders-mode .wo-history-detail-grid > section,
.work-orders-mode .wo-technical-info,
.work-orders-mode .wo-order-comments article,
.work-orders-mode .wo-order-attachments a {
  background:#fff !important;
  border-color:var(--light-border) !important;
  color:var(--light-text) !important;
  box-shadow:var(--light-shadow-soft) !important;
}
.work-orders-mode .wo-history-filters input,
.work-orders-mode .wo-history-search input {
  background:#fbfdff !important;
  border-color:#d5e1ee !important;
  color:#17324f !important;
}
.work-orders-mode .wo-history-stat {
  background:#fff !important;
  border-color:#dbe5f0 !important;
  color:#536d89 !important;
  box-shadow:none !important;
}
.work-orders-mode .wo-history-stat b { color:#17324f !important; }
.work-orders-mode .wo-history-stat.active { border-color:#6b9aff !important; background:#f1f6ff !important; }
.work-orders-mode .wo-history-table-head { background:#f4f7fb !important; color:#657a92 !important; }
.work-orders-mode .wo-history-row {
  background:#fff !important;
  border-color:#e2eaf3 !important;
  color:#36516f !important;
}
.work-orders-mode .wo-history-row:hover,
.work-orders-mode .wo-history-row.active { background:#f5f9ff !important; border-color:#9cbaea !important; }
.work-orders-mode .wo-history-row strong,
.work-orders-mode .wo-history-row b { color:#18324f !important; }
.work-orders-mode .wo-history-row small { color:#7a8fa6 !important; }
.work-orders-mode .wo-history-detail__head h2,
.work-orders-mode .wo-history-detail h3,
.work-orders-mode .wo-order-summary-grid b,
.work-orders-mode .wo-order-products b,
.work-orders-mode .wo-order-products strong,
.work-orders-mode .wo-technical-info b { color:#17324f !important; }
.work-orders-mode .wo-order-summary-grid span,
.work-orders-mode .wo-order-summary-grid small,
.work-orders-mode .wo-order-products small,
.work-orders-mode .wo-technical-info span,
.work-orders-mode .wo-event-timeline small { color:#748aa3 !important; }

/* Product drawer and modal: light and non-blocking. */
.work-orders-mode .wo-drawer,
.work-orders-mode .wo-modal {
  background:#fff !important;
  border-color:#d5e1ee !important;
  color:#17324f !important;
  box-shadow:-22px 0 60px rgba(27,47,75,.15) !important;
}
.work-orders-mode .wo-drawer__close {
  background:#f2f6fb !important;
  color:#4c6989 !important;
}
.work-orders-mode .wo-product-hero { border-bottom-color:#e5edf5 !important; }
.work-orders-mode .wo-product-hero h2 { color:#17324f !important; }
.work-orders-mode .wo-product-hero > div > span { color:#748aa3 !important; }
.work-orders-mode .wo-product-hero > div > small { color:#2d9360 !important; }
.work-orders-mode .wo-product-hero__recommend b { color:#17324f !important; }
.work-orders-mode .wo-product-tabs { border-bottom-color:#e4ecf4 !important; }
.work-orders-mode .wo-product-tabs button { color:#72869d !important; }
.work-orders-mode .wo-product-tabs button.active { color:#2f6ff0 !important; border-bottom-color:#2f6ff0 !important; }
.work-orders-mode .wo-product-chart-grid article,
.work-orders-mode .wo-drawer-section,
.work-orders-mode .wo-modal-grid section,
.work-orders-mode .wo-period-grid > div,
.work-orders-mode .wo-kpis > div {
  background:#f8fafc !important;
  border-color:#dfe8f1 !important;
}
.work-orders-mode .wo-product-chart-grid h3,
.work-orders-mode .wo-prices-preview h3,
.work-orders-mode .wo-tab-rich h3,
.work-orders-mode .wo-drawer-section h3,
.work-orders-mode .wo-period-grid b,
.work-orders-mode .wo-kpis b,
.work-orders-mode .wo-detail-line b,
.work-orders-mode .wo-order-link b { color:#17324f !important; }
.work-orders-mode .wo-period-grid span,
.work-orders-mode .wo-kpis span,
.work-orders-mode .wo-detail-line,
.work-orders-mode .wo-order-link,
.work-orders-mode .wo-drawer-section > small { color:#748aa3 !important; }
.work-orders-mode .wo-product-rating {
  background:#fff8e9 !important;
  border-color:#efdcb0 !important;
}
.work-orders-mode .wo-rating-ring {
  background:radial-gradient(circle,#fff 58%,transparent 60%),conic-gradient(#f5a928 0 80%,#dce5ef 80%) !important;
  box-shadow:none !important;
}
.work-orders-mode .wo-rating-ring b { color:#17324f !important; }
.work-orders-mode .wo-mini-chart,
.work-orders-mode .wo-chart-bars { border-bottom-color:#e2ebf4 !important; }
.work-orders-mode .wo-drawer-orderbar {
  background:rgba(255,255,255,.96) !important;
  border-top-color:#dfe8f1 !important;
}

/* =========================================================
   SELF CONTROL — approved light visual
   ========================================================= */
.self-control-hero {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:22px;
  padding:24px 26px !important;
  margin-bottom:16px;
  border:1px solid var(--light-border) !important;
  border-radius:18px !important;
  background:linear-gradient(135deg,#fff,#f8fbff) !important;
  box-shadow:var(--light-shadow) !important;
  color:var(--light-text) !important;
}
.self-control-hero .eyebrow { color:#2f6ff0 !important; }
.self-control-hero h2 {
  margin:4px 0 8px !important;
  color:#172238 !important;
  font-size:26px !important;
  letter-spacing:-.02em;
}
.self-control-hero p {
  max-width:800px;
  margin:0 !important;
  color:#617891 !important;
  line-height:1.55;
}
.self-control-hero .action-row {
  display:flex;
  justify-content:flex-end;
  gap:8px;
  flex-wrap:wrap;
}
.self-control-hero .soft-btn,
.self-control-hero .primary-btn {
  min-height:40px;
  border-radius:9px !important;
  font-size:11px;
  font-weight:800;
}

.self-control-kpi-grid {
  grid-template-columns:repeat(5,minmax(150px,1fr)) !important;
  gap:12px !important;
  margin-bottom:14px !important;
}
.self-control-kpi-grid .management-kpi {
  position:relative;
  min-height:130px;
  padding:17px 18px 15px 76px !important;
  border:1px solid var(--light-border) !important;
  border-radius:16px !important;
  background:#fff !important;
  box-shadow:var(--light-shadow-soft) !important;
  color:var(--light-text) !important;
  overflow:hidden;
}
.self-control-kpi-grid .management-kpi::before {
  content:"";
  position:absolute;
  left:18px;
  top:18px;
  width:42px;
  height:42px;
  border-radius:13px;
  background:#eef4ff;
  box-shadow:inset 0 0 0 1px #dbe8ff;
}
.self-control-kpi-grid .management-kpi::after {
  position:absolute;
  left:31px;
  top:28px;
  font-size:20px;
  line-height:1;
  font-weight:900;
}
.self-control-kpi-grid .management-kpi:nth-child(1)::before { background:#fff1f2; box-shadow:inset 0 0 0 1px #f4d0d5; }
.self-control-kpi-grid .management-kpi:nth-child(1)::after { content:"!"; color:#dc3f51; }
.self-control-kpi-grid .management-kpi:nth-child(2)::before { background:#fff7e9; box-shadow:inset 0 0 0 1px #f2dfb8; }
.self-control-kpi-grid .management-kpi:nth-child(2)::after { content:"◷"; color:#d18411; left:30px; top:28px; font-size:20px; }
.self-control-kpi-grid .management-kpi:nth-child(3)::after { content:"▣"; color:#2f6ff0; }
.self-control-kpi-grid .management-kpi:nth-child(4)::before { background:#f5f0ff; box-shadow:inset 0 0 0 1px #e1d8f8; }
.self-control-kpi-grid .management-kpi:nth-child(4)::after { content:"↗"; color:#7c55e8; }
.self-control-kpi-grid .management-kpi:nth-child(5)::before { background:#eef9ff; box-shadow:inset 0 0 0 1px #d2ebf9; }
.self-control-kpi-grid .management-kpi:nth-child(5)::after { content:"●"; color:#30a5e4; left:31px; top:29px; font-size:16px; }
.self-control-kpi-grid .management-kpi:hover,
.self-control-kpi-grid .management-kpi.is-active {
  transform:translateY(-1px) !important;
  border-color:#86aaf0 !important;
  box-shadow:0 12px 28px rgba(47,111,240,.10) !important;
}
.self-control-kpi-grid .management-kpi > span {
  display:block;
  color:#687f99 !important;
  font-size:12px;
  font-weight:700;
}
.self-control-kpi-grid .management-kpi strong {
  display:block;
  margin:7px 0 6px;
  color:#172238 !important;
  font-size:27px !important;
  line-height:1;
}
.self-control-kpi-grid .management-kpi small {
  display:block;
  color:#7d90a6 !important;
  line-height:1.35;
}
.self-control-kpi-grid .management-kpi.danger,
.self-control-kpi-grid .management-kpi.warn,
.self-control-kpi-grid .management-kpi.info {
  background:#fff !important;
}
.self-control-help {
  background:#edf4ff !important;
  color:#2f6ff0 !important;
}

.self-control-kpi-grid + .management-meta-line {
  display:flex;
  align-items:center;
  gap:18px;
  flex-wrap:wrap;
  padding:10px 0 !important;
  margin-bottom:14px !important;
  border:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  color:#7a8da4 !important;
}
.self-control-kpi-grid + .management-meta-line b { color:#667c96 !important; }
.self-control-kpi-grid + .management-meta-line .ghost-btn {
  min-height:34px;
  padding:7px 12px !important;
  border-radius:8px !important;
  background:#fff !important;
  border-color:#d8e3ef !important;
  color:#425f7f !important;
}
.self-control-kpi-grid + .management-meta-line .ghost-btn.is-active {
  background:#233b5b !important;
  border-color:#233b5b !important;
  color:#fff !important;
}

.self-control-kpi-grid ~ .management-stack { gap:12px; }
.self-control-kpi-grid ~ .management-stack > .empty-state {
  min-height:210px;
  display:grid;
  place-content:center;
  border:1px solid #dce5f0 !important;
  border-radius:18px !important;
  background:#fff !important;
  box-shadow:var(--light-shadow-soft) !important;
}
.self-control-kpi-grid ~ .management-stack > .empty-state::before {
  content:"▧";
  display:grid;
  place-items:center;
  width:58px;
  height:58px;
  margin:0 auto 15px;
  border-radius:16px;
  background:#f1f6ff;
  color:#8fb0e7;
  font-size:28px;
  box-shadow:inset 0 0 0 1px #d9e7fb;
}
.self-control-kpi-grid ~ .management-stack > .empty-state h3 {
  margin:0 0 8px;
  color:#172238 !important;
}
.self-control-kpi-grid ~ .management-stack > .empty-state p {
  margin:0;
  color:#71869e !important;
}

.self-control-supplier-card {
  border:1px solid var(--light-border) !important;
  border-radius:16px !important;
  background:#fff !important;
  box-shadow:var(--light-shadow-soft) !important;
  color:var(--light-text) !important;
}
.self-control-supplier-card .section-heading { color:var(--light-text) !important; }
.self-control-supplier-title h3 { color:#17324f !important; }
.self-control-supplier-title p { color:#71869e !important; }
.self-control-disclosure {
  background:#f5f8fc !important;
  border-color:#d8e3ef !important;
  color:#486889 !important;
}
.self-control-supplier-summary small,
.self-control-supplier-summary em { color:#748aa3 !important; }
.self-control-supplier-summary b { color:#17324f !important; }
.self-control-table {
  border-color:#dce5f0 !important;
  background:#fff !important;
}
.self-control-table__head {
  background:#f4f7fb !important;
  color:#647a93 !important;
}
.self-control-table__row {
  color:#39536f !important;
  border-top-color:#e5edf5 !important;
  background:#fff !important;
}
.self-control-table__row.is-critical { background:#fff7f7 !important; }
.self-control-table__row b { color:#17324f !important; }
.self-control-table small { color:#71869e !important; }
.self-control-qty input {
  background:#fbfdff !important;
  border-color:#d5e1ee !important;
  color:#17324f !important;
}
.self-control-actions .ghost-btn {
  background:#fff !important;
  border-color:#d8e3ef !important;
  color:#496784 !important;
}

/* Shared decision/management legacy blocks — avoid dark islands on a light page. */
.management-hero:not(.self-control-hero),
.management-kpi-grid:not(.self-control-kpi-grid) .management-kpi,
.decision-card,
.decision-progress,
.decision-facts > div,
.fg-issue,
.fg-tax-grid > div {
  background:#fff !important;
  border-color:var(--light-border) !important;
  color:var(--light-text) !important;
  box-shadow:var(--light-shadow-soft) !important;
}
.management-hero:not(.self-control-hero) h2,
.decision-card h3,
.decision-progress b,
.decision-facts dd { color:#17324f !important; }
.management-hero:not(.self-control-hero) p,
.decision-card p,
.decision-progress p,
.decision-progress small,
.decision-facts dt { color:#71869e !important; }

@media (max-width:1450px) {
  .work-orders-mode .wo-create-layout { grid-template-columns:minmax(0,1fr) 320px !important; }
  .work-orders-mode .wo-toolbar { grid-template-columns:1fr 1fr !important; }
  .work-orders-mode .wo-auto-actions { grid-column:1/-1; justify-content:flex-end; }
  .work-orders-mode .wo-table { overflow:auto; }
  .work-orders-mode .wo-table-head,
  .work-orders-mode .wo-table-row { min-width:1080px; }
}
@media (max-width:1200px) {
  .self-control-kpi-grid { grid-template-columns:repeat(3,1fr) !important; }
}
@media (max-width:980px) {
  .work-orders-mode .wo-page-head { align-items:flex-start; flex-direction:column; }
  .work-orders-mode .wo-page-tabs { width:100%; }
  .work-orders-mode .wo-page-tabs button { flex:1; min-width:0; }
  .work-orders-mode .wo-create-layout { display:block; }
  .work-orders-mode .wo-cart { position:relative; top:auto; max-height:none; margin-top:12px; }
  .work-orders-mode .wo-toolbar { display:flex; flex-direction:column; align-items:stretch; }
  .self-control-hero { flex-direction:column; }
  .self-control-hero .action-row { justify-content:flex-start; }
  .self-control-kpi-grid { grid-template-columns:1fr 1fr !important; }
}
@media (max-width:640px) {
  .self-control-kpi-grid { grid-template-columns:1fr !important; }
  .self-control-kpi-grid .management-kpi { min-height:112px; }
}


/* =========================================================
   2.30.0.3.0.6.6.3 — AUXILIARY WINDOWS / LIGHT UI
   Point settings + SKU editor.  These overlays are intentionally
   scoped so legacy screens outside them are not restyled.
   ========================================================= */

/* ---------- Work Orders / point settings ---------- */
body .wo-store-settings-backdrop {
  background: rgba(24, 38, 58, .46) !important;
  backdrop-filter: blur(6px) !important;
  -webkit-backdrop-filter: blur(6px) !important;
  padding: 22px !important;
}
body .wo-store-settings-modal {
  width: min(1480px, 96vw) !important;
  height: min(920px, 94vh) !important;
  border: 1px solid #cfddeb !important;
  border-radius: 22px !important;
  background: #f5f8fc !important;
  box-shadow: 0 32px 90px rgba(17, 34, 58, .24) !important;
  color: #1b304b !important;
}
body .wo-store-settings-head {
  padding: 19px 22px !important;
  border-bottom: 1px solid #dce6f1 !important;
  background: linear-gradient(180deg, #ffffff, #fbfdff) !important;
  box-shadow: 0 5px 18px rgba(31, 58, 92, .035) !important;
}
body .wo-store-settings-head span {
  color: #2f6ff0 !important;
  font-size: 10px !important;
  font-weight: 900 !important;
  letter-spacing: .09em !important;
}
body .wo-store-settings-head h2 {
  color: #172a44 !important;
  font-size: 25px !important;
  letter-spacing: -.02em !important;
}
body .wo-store-settings-head p {
  color: #6f839c !important;
  font-size: 12px !important;
}
body .wo-store-settings-close {
  width: 40px !important;
  height: 40px !important;
  border: 1px solid #d4e0ed !important;
  border-radius: 12px !important;
  background: #f7faff !important;
  color: #395774 !important;
  box-shadow: none !important;
}
body .wo-store-settings-close:hover {
  border-color: #9dbce2 !important;
  background: #edf5ff !important;
  color: #1f58a7 !important;
}
body .wo-store-settings-body {
  background: #f5f8fc !important;
  padding: 16px 18px 24px !important;
  scrollbar-color: #b7c9dd transparent !important;
}
body .wo-store-settings-body > .card,
body .wo-store-settings-toolbar,
body .wo-store-settings-list > .supplier-rule-card,
body .wo-point-settings-card {
  background: #ffffff !important;
  border-color: #d9e4ef !important;
  box-shadow: 0 8px 22px rgba(31, 55, 88, .05) !important;
}
body .wo-store-settings-toolbar {
  padding: 16px !important;
  border-radius: 16px !important;
  gap: 13px !important;
}
body .wo-store-settings-toolbar > div:first-child strong {
  color: #1b314d !important;
  font-size: 17px !important;
}
body .wo-store-settings-toolbar > div:first-child small {
  color: #7489a2 !important;
  font-size: 11px !important;
  line-height: 1.45 !important;
}
body .wo-store-settings-search,
body .wo-store-settings-sort {
  color: #637b96 !important;
}
body .wo-store-settings-search > span,
body .wo-store-settings-sort > span,
body .wo-store-settings-toolbar .supplier-filter-label {
  color: #617a95 !important;
  font-size: 10px !important;
  font-weight: 900 !important;
  letter-spacing: .04em !important;
  text-transform: uppercase !important;
}
body .wo-store-settings-toolbar .input,
body .wo-store-settings-toolbar select.input {
  min-height: 40px !important;
  background: #fbfdff !important;
  border-color: #cedceb !important;
  color: #203954 !important;
}
body .wo-store-settings-result {
  min-width: 82px !important;
  padding: 9px 12px !important;
  border: 1px solid #d4e0ed !important;
  background: #edf3f9 !important;
  color: #60758d !important;
  box-shadow: none !important;
}
body .wo-store-settings-toolbar .supplier-filter-row {
  border-top-color: #e7edf5 !important;
}
body .wo-store-settings-toolbar .soft-btn,
body .wo-store-settings-toolbar .ghost-btn {
  background: #fff !important;
  border-color: #d3e0ed !important;
  color: #41607e !important;
}
body .wo-store-settings-toolbar .primary-btn {
  background: linear-gradient(180deg,#4c84ff,#2f6ff0) !important;
  border-color: #4f83f4 !important;
  color: #fff !important;
}

body .wo-point-settings-toggle {
  min-height: 86px !important;
  padding: 16px 18px !important;
  color: #1b304b !important;
  background: #fff !important;
}
body .wo-point-settings-toggle:hover { background: #f8fbff !important; }
body .wo-point-settings-toggle strong {
  color: #1b314d !important;
  font-size: 16px !important;
}
body .wo-point-settings-toggle small {
  color: #7087a0 !important;
  font-size: 11px !important;
  line-height: 1.4 !important;
}
body .wo-point-settings-chevron,
body .supplier-rule-chevron,
body .supplier-rule-chevron-fix {
  border-color: #c7dbef !important;
  background: #edf7ff !important;
  color: #3b86c7 !important;
}
body .wo-point-settings-card .wo-point-settings-body {
  border-top-color: #e5edf5 !important;
  background: #fbfdff !important;
}
body .autoorder-store-settings-card .autoorder-store-settings-hint {
  background: #f1f7ff !important;
  border-color: #d6e6f8 !important;
  color: #58738f !important;
}
body .autoorder-store-settings-card .field-line,
body .supplier-rule-body .field-line,
body .supplier-rule-body .field-stack {
  color: #314d68 !important;
}
body .autoorder-store-settings-card .field-line__label,
body .supplier-rule-body .field-line__label,
body .supplier-rule-body .supplier-card-section-title {
  color: #324e6a !important;
}
body .autoorder-store-settings-card .field-line__hint,
body .supplier-rule-body .field-line__hint,
body .supplier-rule-body .muted {
  color: #748aa3 !important;
}

body .wo-store-settings-list {
  gap: 10px !important;
}
body .wo-store-settings-list .supplier-rule-card {
  border-radius: 15px !important;
  overflow: hidden !important;
}
body .wo-store-settings-list .supplier-rule-header,
body .wo-store-settings-list .supplier-rule-header-fix {
  min-height: 86px !important;
  padding: 14px 16px !important;
  background: #fff !important;
  color: #1d334e !important;
}
body .wo-store-settings-list .supplier-rule-header:hover,
body .wo-store-settings-list .supplier-rule-header-fix:hover {
  background: #f7fbff !important;
}
body .wo-store-settings-list .supplier-rule-title,
body .wo-store-settings-list .row-card__title {
  color: #19314e !important;
  font-weight: 800 !important;
}
body .wo-store-settings-list .row-card__meta {
  color: #7088a1 !important;
}
body .wo-store-settings-list .supplier-rule-badges {
  gap: 6px !important;
}
body .wo-store-settings-list .supplier-rule-body {
  padding: 16px !important;
  border-top: 1px solid #e4edf5 !important;
  background: #fbfdff !important;
  color: #304b67 !important;
}
body .wo-store-settings-list .row-card__body--store-rule {
  color: #304b67 !important;
}
body .wo-store-settings-list .input,
body .wo-store-settings-list .select,
body .wo-store-settings-list .textarea {
  background: #fff !important;
  border-color: #d2dfec !important;
  color: #203954 !important;
}
body .wo-store-settings-list .switch-pill,
body .wo-store-settings-list .switch-row,
body .wo-store-settings-list label {
  color: #36536f !important;
}
body .wo-store-settings-loading { color:#42617e !important; }
body .wo-store-settings-loading i {
  border-color:#d7e4f0 !important;
  border-top-color:#2f6ff0 !important;
}

/* ---------- Supplier SKU editor ---------- */
body .sku-editor-shell {
  z-index: 12600 !important;
  color: #1b304b !important;
}
body .sku-editor-backdrop {
  background: rgba(24, 38, 58, .44) !important;
  backdrop-filter: blur(6px) !important;
  -webkit-backdrop-filter: blur(6px) !important;
}
body .sku-editor-sheet {
  border: 1px solid #cedceb !important;
  border-radius: 20px !important;
  background: #f7f9fc !important;
  box-shadow: 0 30px 85px rgba(18, 36, 60, .24) !important;
  color: #1b304b !important;
}
body .sku-editor-head {
  padding: 4px 2px 8px !important;
  border-bottom: 1px solid #e1e9f2 !important;
}
body .sku-editor-head .eyebrow {
  color: #2f7fe8 !important;
  font-weight: 900 !important;
  letter-spacing: .08em !important;
}
body .sku-editor-head .section-title,
body .sku-editor-head h3 {
  color: #172b45 !important;
  font-weight: 850 !important;
  opacity: 1 !important;
}
body .sku-editor-head .section-subtitle,
body .sku-editor-head p {
  color: #70869e !important;
  opacity: 1 !important;
}
body .sku-editor-head > .badges {
  align-self:start !important;
  justify-content:flex-end !important;
  gap:6px !important;
}
body .sku-editor-shell .badge {
  box-shadow: none !important;
}
body .sku-editor-shell .badge.info,
body .sku-editor-shell .badge.cyan {
  background:#eef6ff !important;
  border-color:#c9ddf7 !important;
  color:#2767ab !important;
}
body .sku-editor-shell .badge.success {
  background:#edf9f2 !important;
  border-color:#c6e8d4 !important;
  color:#19794e !important;
}
body .sku-editor-shell .badge.warn {
  background:#fff7e8 !important;
  border-color:#eeddb5 !important;
  color:#9b650d !important;
}
body .sku-editor-shell .badge.danger {
  background:#fff1f2 !important;
  border-color:#edccd1 !important;
  color:#bb4050 !important;
}
body .sku-editor-shell .badge.muted,
body .sku-editor-shell .badge:not(.info):not(.cyan):not(.success):not(.warn):not(.danger) {
  background:#f2f6fa !important;
  border-color:#d9e3ed !important;
  color:#62778f !important;
}
body .sku-editor-tabs {
  padding: 1px 0 !important;
}
body .sku-editor-shell .soft-btn,
body .sku-editor-shell .ghost-btn {
  background:#fff !important;
  border-color:#cedcea !important;
  color:#355675 !important;
  box-shadow:none !important;
}
body .sku-editor-shell .soft-btn:hover,
body .sku-editor-shell .ghost-btn:hover {
  background:#f3f8ff !important;
  border-color:#9bb9df !important;
  color:#245795 !important;
}
body .sku-editor-shell .primary-btn {
  background:linear-gradient(180deg,#4f87ff,#2f6ff0) !important;
  border-color:#4b80ef !important;
  color:#fff !important;
  box-shadow:0 7px 18px rgba(47,111,240,.18) !important;
}
body .sku-editor-toolbar,
body .sku-editor-actions,
body .sku-unit-draft,
body .sku-editor-list-wrap {
  background:#fff !important;
  border-color:#d9e4ef !important;
  border-radius:16px !important;
  box-shadow:0 7px 18px rgba(31,55,88,.035) !important;
  color:#1b304b !important;
}
body .sku-editor-toolbar {
  background:#fbfdff !important;
}
body .sku-editor-shell .toolbar__label,
body .sku-editor-shell .field-line__label {
  color:#5c7692 !important;
  font-weight:850 !important;
  opacity:1 !important;
}
body .sku-editor-shell .input,
body .sku-editor-shell .select,
body .sku-editor-shell .textarea,
body .sku-editor-shell input[type='text'],
body .sku-editor-shell input[type='number'],
body .sku-editor-shell input[type='search'],
body .sku-editor-shell select {
  background:#fff !important;
  border-color:#ccdbea !important;
  color:#203a57 !important;
  opacity:1 !important;
}
body .sku-editor-shell input::placeholder { color:#879ab0 !important; opacity:1 !important; }
body .sku-editor-actions__summary,
body .sku-editor-actions__hint,
body .sku-editor-list-head__hint,
body .sku-editor-shell .body-xs,
body .sku-editor-shell .field-line__hint,
body .sku-unit-draft__hint {
  color:#70869e !important;
  opacity:1 !important;
}
body .sku-editor-actions__summary b { color:#2c4c6d !important; }
body .sku-editor-list-head {
  border-bottom-color:#e4ebf3 !important;
}
body .sku-editor-list-head .title-sm,
body .sku-editor-list-head strong {
  color:#1b304b !important;
}
body .sku-editor-list {
  scrollbar-color:#b6c8db transparent !important;
}
body .sku-editor-row {
  padding:12px 13px !important;
  border:1px solid transparent !important;
  border-bottom-color:#e6edf4 !important;
  border-radius:10px !important;
  background:#fff !important;
  color:#1c334f !important;
}
body .sku-editor-row:hover {
  background:#f8fbff !important;
  border-color:#d8e6f4 !important;
}
body .sku-editor-row.is-selected {
  background:#eef6ff !important;
  border-color:#a9c9f4 !important;
  box-shadow:inset 3px 0 #3f7df0 !important;
}
body .sku-editor-row.is-updated {
  background:#f0faf4 !important;
  border-color:#bfe3ce !important;
  box-shadow:inset 3px 0 #31a267 !important;
}
body .sku-editor-row__title {
  color:#182e49 !important;
  font-weight:800 !important;
  opacity:1 !important;
}
body .sku-editor-row__meta {
  color:#7890a8 !important;
  opacity:1 !important;
}
body .sku-editor-row__check,
body .sku-editor-shell input[type='checkbox'] {
  accent-color:#2f6ff0 !important;
}
body .sku-editor-secondary-bulk {
  background:#f8fbff !important;
  border-color:#d7e7f7 !important;
  color:#29445f !important;
}
body .sku-editor-secondary-bulk__grid.is-disabled,
body .sku-unit-draft__fields.is-disabled {
  opacity:.48 !important;
}
body .sku-editor-secondary-bulk__grid.is-disabled *,
body .sku-unit-draft__fields.is-disabled * {
  color:#91a2b4 !important;
}
body .sku-unit-draft {
  background:#fbfdff !important;
}
body .sku-unit-draft__title {
  color:#172d48 !important;
  font-weight:850 !important;
}
body .sku-unit-draft__panel {
  background:#fff !important;
  border-color:#dce6f0 !important;
  color:#29445f !important;
}
body .sku-unit-draft .check-row,
body .sku-editor-shell .check-row {
  color:#29445f !important;
}
body .sku-editor-save-notice {
  background:#edf9f2 !important;
  border-color:#c5e8d3 !important;
  color:#19794e !important;
}
body .sku-editor-save-notice--error {
  background:#fff1f2 !important;
  border-color:#edcbd1 !important;
  color:#b94050 !important;
}
body .sku-editor-shell .soft-btn:disabled,
body .sku-editor-shell .primary-btn:disabled,
body .sku-editor-shell input:disabled,
body .sku-editor-shell select:disabled {
  opacity:.48 !important;
  cursor:not-allowed !important;
}

@media (max-width: 1080px) {
  body .wo-store-settings-backdrop { padding:12px !important; }
  body .wo-store-settings-modal { width:100% !important; height:96vh !important; }
  body .sku-editor-sheet { border-radius:16px !important; }
}
@media (max-width: 760px) {
  body .wo-store-settings-backdrop { padding:6px !important; }
  body .wo-store-settings-modal { height:98vh !important; border-radius:14px !important; }
  body .wo-store-settings-head { padding:14px !important; }
  body .wo-store-settings-body { padding:10px !important; }
  body .sku-editor-backdrop { backdrop-filter:blur(3px) !important; }
}

/* 2.31.0.124 — MAX agents readability + supplier merge controls */
.max-agents-list .agent-supplier-card,
.max-agents-list .agent-card,
.max-agents-list .invite-card {
  opacity: 1 !important;
  color: #172238 !important;
}
.max-agents-list .agent-supplier-card .row-card__title,
.max-agents-list .agent-card .row-card__title,
.max-agents-list .invite-card .row-card__title {
  color: #14263f !important;
  -webkit-text-fill-color: #14263f !important;
  opacity: 1 !important;
  font-weight: 850 !important;
  text-shadow: none !important;
}
.max-agents-list .agent-supplier-card .row-card__meta,
.max-agents-list .agent-card .row-card__meta,
.max-agents-list .invite-card .row-card__meta,
.max-agents-list .agent-supplier-card .field-line__label {
  color: #566b82 !important;
  -webkit-text-fill-color: #566b82 !important;
  opacity: 1 !important;
}
.max-agents-list .agent-card {
  background: #fff !important;
  border-color: #d8e2ec !important;
}
.supplier-merge-box {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
  padding: 13px 14px;
  border: 1px solid #dbe5ee;
  border-radius: 12px;
  background: #f7fafc;
}
.supplier-merge-box__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}
.supplier-merge-controls {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 8px;
  align-items: center;
}
.supplier-merge-aliases {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.supplier-merge-alias-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border: 1px solid #bddbc8;
  border-radius: 999px;
  background: #eef8f1;
  color: #245f3d !important;
  -webkit-text-fill-color: #245f3d !important;
  font-size: 12px;
  font-weight: 750;
}
.supplier-merge-alias-chip button {
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #8f382f;
  cursor: pointer;
  font-weight: 900;
}
@media (max-width: 820px) {
  .supplier-merge-controls { grid-template-columns: 1fr; }
}
