/* Pivoteka ERP 2.31.0.125 — readability for Suppliers & price lists / Order plan.
   Loaded LAST on purpose: legacy dark-theme rules in styles.css must not win here. */

/* ---------- Suppliers & price lists ---------- */
body .wo-store-settings-modal,
body .wo-store-settings-body,
body .wo-store-settings-list,
body .wo-store-settings-list .supplier-rule-card,
body .wo-store-settings-list .supplier-rule-card * {
  text-shadow: none !important;
}

body .wo-store-settings-list .supplier-rule-card,
body .wo-store-settings-list .supplier-rule-card .supplier-rule-body,
body .wo-store-settings-list .supplier-rule-card .row-card__body--store-rule,
body .wo-store-settings-list .supplier-rule-card .supplier-autoorder-admin {
  opacity: 1 !important;
  filter: none !important;
  color: #20354f !important;
  -webkit-text-fill-color: currentColor;
}

body .wo-store-settings-list .supplier-rule-card {
  background: #ffffff !important;
  border: 1px solid #d9e4ef !important;
  box-shadow: 0 6px 18px rgba(31,55,88,.055) !important;
}
body .wo-store-settings-list .supplier-rule-header {
  background: #ffffff !important;
  border-color: #e2eaf3 !important;
  opacity: 1 !important;
}
body .wo-store-settings-list .supplier-rule-title,
body .wo-store-settings-list .supplier-rule-header .row-card__title {
  color: #172b45 !important;
  -webkit-text-fill-color: #172b45 !important;
  opacity: 1 !important;
  font-weight: 850 !important;
}
body .wo-store-settings-list .supplier-rule-header .row-card__meta {
  color: #627890 !important;
  -webkit-text-fill-color: #627890 !important;
  opacity: 1 !important;
}

body .supplier-rule-card .supplier-card-section-title,
body .supplier-rule-card .supplier-autoorder-admin__title,
body .supplier-rule-card .autoorder-admin-card h4,
body .supplier-rule-card .field-line__label,
body .supplier-rule-card .autoorder-field__label,
body .supplier-rule-card .field-row label,
body .supplier-rule-card .field-stack > label,
body .supplier-rule-card b,
body .supplier-rule-card strong {
  color: #203954 !important;
  -webkit-text-fill-color: #203954 !important;
  opacity: 1 !important;
}
body .supplier-rule-card .supplier-card-section-title,
body .supplier-rule-card .supplier-autoorder-admin__title {
  font-weight: 900 !important;
}
body .supplier-rule-card .autoorder-admin-card h4 {
  font-weight: 850 !important;
  font-size: 14px !important;
}

/* Old auto-order UI was dark and becomes grey/washed out in the light Director. */
body .supplier-rule-card .autoorder-admin-grid--supplier-clean,
body .supplier-rule-card .autoorder-admin-grid {
  color: #203954 !important;
}
body .supplier-rule-card .autoorder-admin-card {
  background: #f8fbff !important;
  border: 1px solid #d8e4f0 !important;
  color: #203954 !important;
  opacity: 1 !important;
  box-shadow: none !important;
}
body .supplier-rule-card .self-control-rule-box,
body .supplier-rule-card .autoorder-help-box,
body .supplier-rule-card .autoorder-field--incoming-rule,
body .supplier-rule-card .autoorder-function-help,
body .supplier-rule-card .autoorder-expanded-help {
  background: #ffffff !important;
  border-color: #d9e5f0 !important;
  color: #314b66 !important;
  opacity: 1 !important;
}
body .supplier-rule-card .self-control-rule-box span,
body .supplier-rule-card .autoorder-field__hint,
body .supplier-rule-card .field-line__hint,
body .supplier-rule-card .muted,
body .supplier-rule-card small,
body .supplier-rule-card .autoorder-help-box,
body .supplier-rule-card .autoorder-function-help,
body .supplier-rule-card .autoorder-expanded-help {
  color: #667d96 !important;
  -webkit-text-fill-color: #667d96 !important;
  opacity: 1 !important;
}

body .supplier-rule-card .input,
body .supplier-rule-card .select,
body .supplier-rule-card .textarea,
body .supplier-rule-card input[type="text"],
body .supplier-rule-card input[type="number"],
body .supplier-rule-card select,
body .supplier-rule-card textarea {
  background: #ffffff !important;
  border-color: #cbd9e7 !important;
  color: #1d3550 !important;
  -webkit-text-fill-color: #1d3550 !important;
  opacity: 1 !important;
}
body .supplier-rule-card input::placeholder,
body .supplier-rule-card textarea::placeholder {
  color: #899bb0 !important;
  -webkit-text-fill-color: #899bb0 !important;
  opacity: 1 !important;
}

body .supplier-rule-card .switch-pill,
body .supplier-rule-card .switch-row label,
body .supplier-rule-card .autoorder-weekday-pill {
  color: #354f6b !important;
  -webkit-text-fill-color: #354f6b !important;
  opacity: 1 !important;
}
body .supplier-rule-card .switch-pill {
  background: #ffffff !important;
  border-color: #cedbe8 !important;
}
body .supplier-rule-card .switch-pill:has(input:checked) {
  background: #eef8f3 !important;
  border-color: #b4dcc5 !important;
  color: #176a43 !important;
  -webkit-text-fill-color: #176a43 !important;
}
body .supplier-rule-card .autoorder-weekday-pill {
  background: #ffffff !important;
  border-color: #ccd9e6 !important;
  min-height: 40px !important;
}
body .supplier-rule-card .autoorder-weekday-pill:has(input:checked) {
  background: #eef8f3 !important;
  border-color: #9fd2b6 !important;
  color: #176a43 !important;
  -webkit-text-fill-color: #176a43 !important;
}
body .supplier-rule-card .autoorder-weekday-pill:has(input:checked)::before {
  color: #1d8454 !important;
}

/* ---------- Order plan ---------- */
body .order-schedule-bulk-save,
body .js-order-schedule-card,
body .js-order-schedule-card * {
  text-shadow: none !important;
}
body .order-schedule-bulk-save,
body .js-order-schedule-card {
  opacity: 1 !important;
  filter: none !important;
  background: #ffffff !important;
  border-color: #d8e4ee !important;
  color: #20354f !important;
}
body .order-schedule-bulk-save__title,
body .js-order-schedule-card .row-card__title {
  color: #172b45 !important;
  -webkit-text-fill-color: #172b45 !important;
  opacity: 1 !important;
  font-weight: 850 !important;
}
body .order-schedule-bulk-save__hint,
body .js-order-schedule-card .row-card__meta {
  color: #61768d !important;
  -webkit-text-fill-color: #61768d !important;
  opacity: 1 !important;
}
body .js-order-schedule-card .field-line__label,
body .js-order-schedule-card .field-stack,
body .js-order-schedule-card .field-stack > div,
body .js-order-schedule-card label,
body .js-order-schedule-card .switch-pill {
  color: #304c68 !important;
  -webkit-text-fill-color: #304c68 !important;
  opacity: 1 !important;
}
body .js-order-schedule-card .weekday-pill {
  min-height: 44px !important;
  background: #fbfdff !important;
  border: 1px solid #cfdae6 !important;
  color: #415b75 !important;
  -webkit-text-fill-color: #415b75 !important;
  opacity: 1 !important;
  font-weight: 800 !important;
}
body .js-order-schedule-card .weekday-pill:has(input:checked) {
  background: #edf9f2 !important;
  border-color: #8fcca9 !important;
  color: #176a43 !important;
  -webkit-text-fill-color: #176a43 !important;
}
body .js-order-schedule-card .switch-pill {
  background: #f9fbfd !important;
  border-color: #cedbe7 !important;
}
body .js-order-schedule-card .switch-pill:has(input:checked) {
  background: #edf9f2 !important;
  border-color: #acd9bf !important;
  color: #176a43 !important;
  -webkit-text-fill-color: #176a43 !important;
}
body .js-order-schedule-card .input,
body .js-order-schedule-card .select,
body .js-order-schedule-card .textarea,
body .js-order-schedule-card input[type="text"],
body .js-order-schedule-card textarea {
  background: #ffffff !important;
  border-color: #cbd8e6 !important;
  color: #1d3550 !important;
  -webkit-text-fill-color: #1d3550 !important;
  opacity: 1 !important;
}
body .js-order-schedule-card textarea::placeholder,
body .js-order-schedule-card input::placeholder {
  color: #899bb0 !important;
  -webkit-text-fill-color: #899bb0 !important;
  opacity: 1 !important;
}
body .js-order-schedule-card .badge {
  color: #496079 !important;
  -webkit-text-fill-color: #496079 !important;
  background: #f5f8fb !important;
  border-color: #d5e0ea !important;
  opacity: 1 !important;
}
body .js-order-schedule-card .badge.warn {
  color: #8a590c !important;
  -webkit-text-fill-color: #8a590c !important;
  background: #fff7e8 !important;
  border-color: #ecd39a !important;
}

/* Section heading immediately above order cards. */
body #screen .section-title,
body #screen .section-subtitle {
  opacity: 1 !important;
}
