html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #edf0f2;
  --ink-2: #dce0e3;
  --muted: #a5adb5;
  --line: #343a40;
  --paper: #15181b;
  --soft: #202428;
  --cream: #292621;
  --green: #63c397;
  --shadow: 0 22px 60px rgba(0, 0, 0, .32);
}

html[data-theme="dark"] body,
html[data-theme="dark"] .store-site,
html[data-theme="dark"] .company-site,
html[data-theme="dark"] .carousel-home,
html[data-theme="dark"] .ops-page,
html[data-theme="dark"] .branch-manager-page,
html[data-theme="dark"] .account-page,
html[data-theme="dark"] .cart-page,
html[data-theme="dark"] .order-status-page {
  background-color: #111315 !important;
  color: #edf0f2 !important;
}

html[data-theme="dark"] body:has(.card) {
  background: radial-gradient(circle at 18% 12%, #262a2e 0, #171a1d 46%, #111315 100%) !important;
}

html[data-theme="dark"] .site-header,
html[data-theme="dark"] .account-header,
html[data-theme="dark"] .cart-header,
html[data-theme="dark"] .status-header,
html[data-theme="dark"] .ops-header,
html[data-theme="dark"] .ops-sidebar,
html[data-theme="dark"] .bm-header,
html[data-theme="dark"] .site-footer,
html[data-theme="dark"] .company-footer,
html[data-theme="dark"] .topbar {
  background-color: #191c20 !important;
  color: #edf0f2 !important;
  border-color: #30363c !important;
}

html[data-theme="dark"] .carousel-header {
  background: linear-gradient(180deg, rgba(16, 18, 20, .96), rgba(16, 18, 20, .86)) !important;
  border-color: rgba(255, 255, 255, .1) !important;
}

html[data-theme="dark"] .store-slide-two,
html[data-theme="dark"] .company-slide-two {
  --slide-muted: #b0b6bc;
  background-color: #1b1e21 !important;
  color: #f1f3f4 !important;
}

html[data-theme="dark"] .store-slide-two .slide-wash,
html[data-theme="dark"] .company-slide-two .slide-wash {
  background: radial-gradient(ellipse at 24% 73%, rgba(226, 13, 27, .13), transparent 36%), linear-gradient(140deg, #202326, #151719) !important;
}

html[data-theme="dark"] :where(
  .hub-card,
  .ops-table-wrap,
  .bm-table-wrap,
  .category-tile,
  .product-card,
  .product-detail-art,
  .product-visual.visual-catalog,
  .catalog-product-symbol,
  .audience-band,
  .hero-search,
  .service-card,
  .company-product,
  .contact-form,
  .service-form,
  .service-dialog,
  .account-sidebar,
  .account-panel,
  .account-subcard,
  .account-metric,
  .quote-card,
  .quote-reminder-card,
  .cart-panel,
  .account-gate,
  .account-mode,
  .auth-method-choice,
  .buyer-choice,
  .account-options,
  .notification-choice,
  .branch-stock-summary,
  .status-card,
  .quote-preview,
  .tracking-branch,
  .status-help,
  .product-buy-card,
  .branch-option,
  .fulfillment-strip,
  .branch-locator-card,
  .branch-company-card,
  .ops-card,
  .ops-kpi,
  .attention-card,
  .branch-disclosure,
  .branch-directory-note,
  .stock-check-card,
  .bm-login-card,
  .bm-request-card,
  .bm-item-list,
  .bm-history-row,
  .bm-settings-card,
  .bm-empty,
  .branch-response-card,
  .branch-response-details,
  .login-card,
  .form-side,
  .card,
  .content
) {
  background-color: #1b1e22 !important;
  color: #edf0f2 !important;
  border-color: #343a40 !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
}

html[data-theme="dark"] :where(
  .ops-nav button:hover,
  .ops-nav button.is-active,
  .account-tab:hover,
  .account-tab.is-active,
  .bm-tab.is-active,
  .branch-disclosure[open] > summary
) {
  background-color: #282c31 !important;
  color: #f5f6f7 !important;
}

html[data-theme="dark"] :where(
  input,
  select,
  textarea,
  .hero-search input,
  .sort-label select,
  .location-search input,
  .contact-form input,
  .contact-form textarea,
  .service-form input,
  .service-form textarea,
  .branch-form-grid input,
  .branch-form-grid select,
  .stock-check-actions select,
  .stock-check-actions textarea,
  .branch-stock-toolbar input,
  .bm-login-card input,
  .bm-table input,
  .bm-search input
) {
  background-color: #121416 !important;
  color: #edf0f2 !important;
  border-color: #3b4249 !important;
}

html[data-theme="dark"] :where(input, textarea, select)::placeholder {
  color: #89929a !important;
  opacity: 1;
}

html[data-theme="dark"] :where(table, th, td, .ops-table-wrap, .bm-table-wrap, .compare-dialog, .compare-table th) {
  color: #edf0f2 !important;
  border-color: #343a40 !important;
}

html[data-theme="dark"] :where(th, .bm-table th, .compare-table th) {
  background-color: #25292e !important;
}

html[data-theme="dark"] body :where(h1, h2, h3, h4) {
  color: #f1f3f5 !important;
}

html[data-theme="dark"] body p:not(.form-error):not(.error):not(.is-error):not(.form-feedback):not(.bm-status):not(.stock-feedback),
html[data-theme="dark"] body small {
  color: #aeb6bd !important;
}

html[data-theme="dark"] body label {
  color: #d1d6da;
}

html[data-theme="dark"] :where(
  .section-head p,
  .section-head small,
  .category-tile small,
  .product-info > p,
  .company-product p,
  .service-card p,
  .about-copy p,
  .contact-intro > p,
  .account-header .main-nav a,
  .ops-page-heading p,
  .bm-login-card > p,
  .bm-welcome p,
  .bm-section-head p,
  .hint,
  .intro,
  .eyebrow,
  .account-eyebrow,
  .branch-admin-intro,
  .branch-directory-note,
  .catalog-source-note p,
  .cart-note,
  .status-help,
  .product-detail-copy p
):not(.form-error):not(.error):not(.is-error):not(.form-feedback) {
  color: #aeb6bd !important;
}

html[data-theme="dark"] :where(hr, .section-rule, .fact-row, .ops-sidebar-foot, .account-tab, .quote-card, .status-timeline) {
  border-color: #343a40 !important;
}

html[data-theme="dark"] :where(.text-link, .main-nav a, .carousel-nav a, .footer-links a, .site-footer a, .company-footer a) {
  color: #d9dde0;
}

html[data-theme="dark"] :where(.catalog-source-note, .preview-notice, .sample-data-note, .demo-note, .checkout-note, .filter-note, .branch-directory-note, .notification-summary) {
  background-color: #25292e !important;
  color: #d4d9dd !important;
  border-color: #3a4046 !important;
}

html[data-theme="dark"] :where(.lang-toggle, .icon-button, .cart-button, .outline-link, .compare-btn, .filter-chip, .filter-button, .small-action, .ops-secondary-button, .bm-secondary, .status-secondary-button, .secondary, .toggle-password, .toggle) {
  background-color: #25292e !important;
  color: #edf0f2 !important;
  border-color: #3b4249 !important;
}

html[data-theme="dark"] .toast {
  background-color: #e9edf0;
  color: #151719;
}

html[data-theme="dark"] .service-dialog::backdrop {
  background: rgba(0, 0, 0, .76);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 7px 12px;
  border: 1px solid #dfe2e4;
  border-radius: 999px;
  background: #fff;
  color: #24282c;
  font: 700 13px/1.2 Vazirmatn, Tahoma, sans-serif;
  white-space: nowrap;
  box-shadow: 0 3px 12px rgba(15, 20, 25, .08);
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.theme-toggle:hover { transform: translateY(-1px); border-color: #c7ccd0; }
.theme-toggle:focus-visible { outline: 3px solid rgba(226, 13, 27, .35); outline-offset: 2px; }
.theme-toggle-icon { font-size: 17px; line-height: 1; }
.theme-toggle-floating { position: fixed; z-index: 100; top: 14px; inset-inline-start: 14px; }

html[data-theme="dark"] .theme-toggle {
  background: #282c31;
  color: #f1f3f5;
  border-color: #454c53;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .28);
}

@media (max-width: 720px) {
  .theme-toggle { min-height: 36px; padding: 6px 9px; gap: 5px; font-size: 12px; }
  .theme-toggle-floating { top: 10px; inset-inline-start: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .theme-toggle { transition: none; }
  .theme-toggle:hover { transform: none; }
}

/* Make the campaign homepages follow the selected light theme on every slide. */
html[data-theme="light"] .carousel-home {
  background-color: #f5f4f0 !important;
  color: #17191c !important;
}

html[data-theme="light"] .carousel-home .carousel-header {
  color: #17191c !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, .97), rgba(255, 255, 255, .88)) !important;
  border-color: rgba(23, 25, 28, .1) !important;
}

html[data-theme="light"] .carousel-home .carousel-brand,
html[data-theme="light"] .carousel-home .carousel-brand small,
html[data-theme="light"] .carousel-home .carousel-nav,
html[data-theme="light"] .carousel-home .carousel-nav a,
html[data-theme="light"] .carousel-home .store-login,
html[data-theme="light"] .carousel-home .company-contact-link {
  color: #292d31 !important;
}

html[data-theme="light"] .carousel-home .carousel-actions .lang-toggle {
  background: rgba(23, 25, 28, .04) !important;
  color: #292d31 !important;
  border-color: rgba(23, 25, 28, .17) !important;
}

html[data-theme="light"] .carousel-home :where(.store-slide-one, .store-slide-three, .company-slide-one, .company-slide-three) {
  --slide-accent: #c81420;
  --slide-muted: #535a61;
  background-color: #f5f4f0 !important;
  color: #17191c !important;
}

html[data-theme="light"] .carousel-home :where(.store-slide-one, .store-slide-three, .company-slide-one, .company-slide-three) .slide-wash {
  background: radial-gradient(ellipse at 76% 43%, rgba(226, 13, 27, .09), transparent 34%), linear-gradient(135deg, #fbfaf7, #eeece6) !important;
}

html[data-theme="light"] .carousel-home .carousel-arrows button {
  border-color: rgba(25, 27, 29, .24) !important;
  background: rgba(25, 27, 29, .04) !important;
  color: #202326 !important;
}

html[data-theme="light"] .carousel-home .carousel-dots button { background: rgba(25, 27, 29, .3) !important; }
html[data-theme="light"] .carousel-home .carousel-dots button.is-active { background: #202326 !important; }
html[data-theme="light"] .carousel-home .carousel-count { color: rgba(25, 27, 29, .72) !important; }
html[data-theme="light"] .carousel-home .carousel-count b { color: #202326 !important; }
html[data-theme="light"] .carousel-home .carousel-progress { background: rgba(25, 27, 29, .12) !important; }
html[data-theme="light"] .carousel-home .home-switch { color: rgba(25, 27, 29, .78) !important; }
html[data-theme="light"] .carousel-home .home-switch b { background: rgba(25, 27, 29, .09) !important; color: #202326 !important; }

/* Improve contrast in the central admin portal's dark theme. */
html[data-theme="dark"] .ops-page {
  --ops-border: #363d44;
  --ops-muted: #b4bdc5;
}

html[data-theme="dark"] .ops-page :where(.ops-role-label small, .ops-sidebar-foot, .ops-nav button, .ops-page-heading p, .ops-kpi small, .ops-kpi i, .attention-row small, .hesabfa-mini-status, .hesabfa-card > p) {
  color: var(--ops-muted) !important;
}

html[data-theme="dark"] .ops-page .ops-nav button > span { color: #aab4bc !important; }
html[data-theme="dark"] .ops-page .ops-nav button:hover { background: #282d32 !important; color: #f1f3f5 !important; }
html[data-theme="dark"] .ops-page .ops-nav button.is-active { background: #39272a !important; color: #ffafb5 !important; }
html[data-theme="dark"] .ops-page .ops-nav button.is-active > span { color: #ff7078 !important; }
html[data-theme="dark"] .ops-page .ops-nav button > b { background: #30363c !important; color: #d6dce1 !important; }
html[data-theme="dark"] .ops-page .ops-nav button > b.nav-alert { background: #42351f !important; color: #f0ca77 !important; }

html[data-theme="dark"] .ops-page :where(.ops-sidebar-foot, .ops-role-label, .manager-profile, .ops-sidebar) {
  border-color: var(--ops-border) !important;
}

html[data-theme="dark"] .ops-page :where(.ops-date-badge, .last-update-tag) {
  background: #24292e !important;
  color: #c5cdd4 !important;
  border-color: #3a4249 !important;
}

html[data-theme="dark"] .ops-page :where(.attention-row, .hesabfa-mini-status) {
  border-color: #343a40 !important;
}

html[data-theme="dark"] .ops-page .hesabfa-mini-status b { color: #e1e5e8 !important; }

html[data-theme="dark"] .ops-page .connection-state,
html[data-theme="dark"] .ops-page .table-tag.warning {
  background: #3b3020 !important;
  color: #f0ce83 !important;
}

html[data-theme="dark"] .ops-page .table-tag.enabled,
html[data-theme="dark"] .ops-page .table-tag.success {
  background: #20382b !important;
  color: #9fdfb4 !important;
}

html[data-theme="dark"] .ops-page .table-tag.disabled {
  background: #30363c !important;
  color: #c3cbd1 !important;
}

html[data-theme="dark"] .ops-page .table-tag.danger {
  background: #3d272a !important;
  color: #ffadb3 !important;
}

html[data-theme="dark"] .ops-page :where(.sample-pill, .file-format-badge) {
  background: #30363c !important;
  color: #c9d0d6 !important;
}

html[data-theme="dark"] .ops-page .ops-table th {
  background: #252a2f !important;
  color: #c1c9d0 !important;
  border-color: #3b4249 !important;
}

html[data-theme="dark"] .ops-page .ops-table td {
  color: #d4dbe0 !important;
  border-color: #343a40 !important;
}

html[data-theme="dark"] .ops-page .ops-table td > b { color: #f1f3f5 !important; }
html[data-theme="dark"] .ops-page .ops-table td > small { color: #aeb7bf !important; }

html[data-theme="dark"] .ops-page .branch-disclosure > summary,
html[data-theme="dark"] .ops-page .branch-disclosure[open] > summary,
html[data-theme="dark"] .ops-page .branch-disclosure > summary:hover {
  background: #1b1e22 !important;
  color: #edf0f2 !important;
  border-color: #363d44 !important;
}

html[data-theme="dark"] .ops-page .branch-disclosure[open] > summary:hover { background: #242a2f !important; }
html[data-theme="dark"] .ops-page .branch-disclosure-label strong { color: #f1f3f5 !important; }
html[data-theme="dark"] .ops-page .branch-disclosure-label small { color: #b2bbc3 !important; }
html[data-theme="dark"] .ops-page .branch-disclosure > summary::after { background: #30363c !important; color: #e0e5e9 !important; }
html[data-theme="dark"] .ops-page .branch-disclosure[open] > summary::after { background: #3b272a !important; color: #ffabb2 !important; }
html[data-theme="dark"] .ops-page .branch-disclosure-icon { background: #3b272a !important; color: #ff9aa2 !important; }

html[data-theme="dark"] .ops-page .branch-restriction-note {
  background: #252a2f !important;
  color: #bdc5cc !important;
  border-color: #3a4148 !important;
}

/* Keep central catalog controls readable where their light-theme styles use fixed colors. */
html[data-theme="dark"] .ops-page .excel-drop-zone {
  background: #22272c !important;
  color: #f1f4f6 !important;
  border-color: #56616a !important;
}

html[data-theme="dark"] .ops-page .excel-drop-zone b { color: #f1f4f6 !important; font-size: 12px; }
html[data-theme="dark"] .ops-page .excel-drop-zone small,
html[data-theme="dark"] .ops-page .excel-drop-zone i { color: #c2cbd2 !important; font-size: 11px; }
html[data-theme="dark"] .ops-page .excel-drop-zone.is-dragging { background: #39272a !important; border-color: #e95a62 !important; }
html[data-theme="dark"] .ops-page .import-checklist { color: #c5cdd3 !important; font-size: 11px; }
html[data-theme="dark"] .ops-page .import-checklist > b { color: #f0f3f5 !important; font-size: 12px; }
html[data-theme="dark"] .ops-page .import-checklist > span { color: #91d5a5 !important; }
html[data-theme="dark"] .ops-page .import-checklist > span span { color: #c5cdd3 !important; }

html[data-theme="dark"] .ops-page .manager-local-warning,
html[data-theme="dark"] .ops-page .import-local-only-note {
  background: #302a1e !important;
  color: #efdaa8 !important;
  border-color: #62502e !important;
}

html[data-theme="dark"] .ops-page .manager-local-warning > span { background: #49391f !important; color: #f4d17f !important; }
html[data-theme="dark"] .ops-page .manager-local-warning p { color: #d6c391 !important; }
html[data-theme="dark"] .ops-page :where(.manager-product-count, .manager-product-pagination, .imported-products-limit) { color: #c0c8cf !important; }
html[data-theme="dark"] .ops-page .manager-product-name { color: #f0f3f5 !important; }
html[data-theme="dark"] .ops-page .manager-product-table td small { color: #b4bec6 !important; }

html[data-theme="dark"] .ops-page .manager-product-pagination button {
  background: #252a2f !important;
  color: #e8ecef !important;
  border-color: #454d55 !important;
}

html[data-theme="dark"] .ops-page .manager-product-dialog {
  background: #1b1e22 !important;
  color: #edf0f2 !important;
  border-color: #3b4249 !important;
}

html[data-theme="dark"] .ops-page .manager-product-dialog .field-label { color: #d0d7dc !important; }
html[data-theme="dark"] .ops-page .manager-product-dialog input,
html[data-theme="dark"] .ops-page .manager-product-dialog textarea { background: #121416 !important; color: #edf0f2 !important; border-color: #454d55 !important; }
html[data-theme="dark"] .ops-page .manager-product-dialog .manager-dialog-notice { background: #252a2f !important; color: #c6cfd6 !important; border-color: #3a4249 !important; }
html[data-theme="dark"] .ops-page .manager-product-dialog .manager-dialog-close {
  background: #252a2f !important;
  border-color: #454d55 !important;
  color: #e0e5e9 !important;
}
html[data-theme="dark"] .ops-page .manager-product-dialog .manager-dialog-close:hover {
  background: #3b272a !important;
  border-color: #704045 !important;
  color: #ffabb2 !important;
}

html[data-theme="dark"] .ops-page .catalog-import-intro { color: #c1c9cf !important; }
html[data-theme="dark"] .ops-page .catalog-import-status { background: #202d3a !important; color: #c5dbef !important; }
html[data-theme="dark"] .ops-page .catalog-import-status.is-error { background: #40272a !important; color: #ffb4b8 !important; }
html[data-theme="dark"] .ops-page .catalog-import-status.is-success { background: #20382b !important; color: #a7e0b8 !important; }
html[data-theme="dark"] .ops-page .import-row-status.pending { background: #24354a !important; color: #c3d9f3 !important; }
html[data-theme="dark"] .ops-page .import-row-status.bad { background: #44301e !important; color: #f3c58c !important; }
html[data-theme="dark"] .ops-page .import-row-status.saved { background: #20382b !important; color: #a7e0b8 !important; }

/* Restore contrast in the central manager's customer and representative views. */
html[data-theme="dark"] .ops-page .customer-kpi {
  background: #1b1e22 !important;
  color: #f1f3f5 !important;
  border-color: #3b4249 !important;
}

html[data-theme="dark"] .ops-page .customer-kpi small { color: #c0c8cf !important; font-size: 14px; }
html[data-theme="dark"] .ops-page .customer-kpi b { color: #f5f6f7 !important; }

html[data-theme="dark"] .ops-page .customer-view-tabs {
  background: #202428 !important;
  border-color: #3b4249 !important;
}

html[data-theme="dark"] .ops-page .customer-view-tabs button { color: #d4dbe0 !important; }
html[data-theme="dark"] .ops-page .customer-view-tabs button.is-active { background: #343a40 !important; color: #fff !important; }
html[data-theme="dark"] .ops-page .customer-view-tabs button span { background: #3b4249 !important; color: #e0e5e9 !important; }
html[data-theme="dark"] .ops-page .customer-view-tabs button.is-active span { background: #553238 !important; color: #ffb6bc !important; }

html[data-theme="dark"] .ops-page :where(.customer-test-note, .customer-test-badge) {
  background: #3b3020 !important;
  color: #f0d69d !important;
  border-color: #62502e !important;
}

html[data-theme="dark"] .ops-page .customer-created-credentials {
  background: #20382b !important;
  color: #d3f0dc !important;
  border-color: #356448 !important;
}

html[data-theme="dark"] .ops-page .customer-created-credentials > p,
html[data-theme="dark"] .ops-page .customer-credential-row code { color: #c4e5ce !important; }
html[data-theme="dark"] .ops-page .customer-credential-row { border-color: #356448 !important; }

html[data-theme="dark"] .ops-page .representative-admin-card { border-color: #3b4249 !important; }
html[data-theme="dark"] .ops-page .representative-admin-heading,
html[data-theme="dark"] .ops-page .representative-admin-actions { border-color: #3b4249 !important; }
html[data-theme="dark"] .ops-page .representative-admin-heading p { color: #c0c8cf !important; font-size: 13px; }

html[data-theme="dark"] .ops-page .representative-admin-details > div {
  background: #22272c !important;
  border-color: #3b4249 !important;
}

html[data-theme="dark"] .ops-page .representative-admin-details small { color: #b8c1c8 !important; font-size: 12px; }
html[data-theme="dark"] .ops-page .representative-admin-details b { color: #f0f3f5 !important; font-size: 14px; }
html[data-theme="dark"] .ops-page .representative-admin-actions button { min-height: 42px; font-size: 13px; }

html[data-theme="dark"] .ops-page .branch-summary-banner {
  background: #1e3026 !important;
  color: #e8f4ec !important;
  border-color: #365443 !important;
}

html[data-theme="dark"] .ops-page .branch-summary-banner b { color: #e8f4ec !important; font-size: 14px; }
html[data-theme="dark"] .ops-page .branch-summary-banner small { color: #bed2c4 !important; font-size: 12px; }
html[data-theme="dark"] .ops-page .branch-summary-banner button { background: #263c2e !important; color: #d7efdf !important; border-color: #52745e !important; font-size: 12px; }
html[data-theme="dark"] .ops-page .branch-data-note { background: #252a2f !important; color: #d0d7dc !important; border: 1px solid #3b4249 !important; }
html[data-theme="dark"] .ops-page .branch-data-note p { color: #d0d7dc !important; font-size: 12px; }
html[data-theme="dark"] .ops-page .branch-restriction-note p { font-size: 12px; }

html[data-theme="dark"] .ops-page .customer-create-card > summary small { color: #c0c8cf !important; }
html[data-theme="dark"] .ops-page .customer-create-form,
html[data-theme="dark"] .ops-page .customer-edit-details { border-color: #3b4249 !important; }
html[data-theme="dark"] .ops-page .customer-edit-details > summary,
html[data-theme="dark"] .ops-page .customer-edit-form .field-label,
html[data-theme="dark"] .ops-page .customer-create-form .field-label { color: #d1d8dd !important; }
html[data-theme="dark"] .ops-page .customer-account-identity p { color: #c0c8cf !important; font-size: 13px; }
html[data-theme="dark"] .ops-page .customer-account-card .business-request-details small { color: #b8c1c8 !important; }
html[data-theme="dark"] .ops-page .customer-account-card .business-request-details b { color: #edf0f2 !important; font-size: 14px; }
html[data-theme="dark"] .ops-page .customer-account-card .business-invoice-details { background: #252a2f !important; color: #d0d7dc !important; }
html[data-theme="dark"] .ops-page .customer-account-card .business-request-details > div:not(.business-invoice-details) { background: #22272c !important; border-color: #3b4249 !important; }

/* Complete the dark palette for customer and branch tools. */
html[data-theme="dark"] .ops-page .field-label,
html[data-theme="dark"] .ops-page .ops-filter-row label,
html[data-theme="dark"] .ops-page .manager-note-field,
html[data-theme="dark"] .ops-page .customer-invoice-edit,
html[data-theme="dark"] .ops-page .customer-account-controls .business-request-controls .field-label {
  color: #d1d8dd !important;
}

html[data-theme="dark"] .ops-page :where(.manager-search, .branch-search) {
  background: #121416 !important;
  color: #d1d8dd !important;
  border-color: #454d55 !important;
  box-shadow: none !important;
}

html[data-theme="dark"] .ops-page :where(.manager-search, .branch-search) > span { color: #b7c1c9 !important; }
html[data-theme="dark"] .ops-page .ops-eyebrow { color: #ff9aa2 !important; }

html[data-theme="dark"] .ops-page .ops-primary-button {
  background: #d41920 !important;
  border-color: #d41920 !important;
  color: #fff !important;
}

html[data-theme="dark"] .ops-page .ops-primary-button:hover {
  background: #bd161d !important;
  border-color: #bd161d !important;
}

html[data-theme="dark"] .ops-page .ops-text-button.danger,
html[data-theme="dark"] .ops-page .customer-account-controls .danger { color: #ff9aa2 !important; }

html[data-theme="dark"] .ops-page .customer-create-plus {
  background: #3b272a !important;
  color: #ff9aa2 !important;
}

html[data-theme="dark"] .ops-page .customer-account-card .business-purchase-box {
  background: #22272c !important;
  border-color: #3b4249 !important;
  color: #edf0f2 !important;
}

html[data-theme="dark"] .ops-page .customer-account-card .business-purchase-box h3 { color: #edf0f2 !important; }
html[data-theme="dark"] .ops-page .customer-account-card .business-purchase-summary { color: #a7e0b8 !important; }
html[data-theme="dark"] .ops-page .customer-account-card .business-purchase-note { color: #c0c8cf !important; }
html[data-theme="dark"] .ops-page .customer-account-card .business-purchase-form .field-label { color: #d1d8dd !important; }

html[data-theme="dark"] .ops-page .branch-form-status {
  background: #202d3a !important;
  color: #c5dbef !important;
  border: 1px solid #354b60 !important;
}

html[data-theme="dark"] .ops-page .branch-form-status.is-error {
  background: #40272a !important;
  color: #ffb4b8 !important;
  border-color: #704045 !important;
}

html[data-theme="dark"] .ops-page .branch-stock-mismatch-badge {
  background: #44301e !important;
  color: #f3c58c !important;
  border: 1px solid #704e2d !important;
}

html[data-theme="dark"] .ops-page .branch-stock-policy-option small { color: #c0c8cf !important; }
html[data-theme="dark"] .ops-page .stock-check-card { background: #22272c !important; border-color: #3b4249 !important; color: #edf0f2 !important; }
html[data-theme="dark"] .ops-page .stock-check-card p,
html[data-theme="dark"] .ops-page .stock-check-items { color: #d0d7dc !important; }
html[data-theme="dark"] .ops-page .stock-check-state { background: #44371e !important; color: #f0d69d !important; }
html[data-theme="dark"] .ops-page .stock-check-state.is-ready { background: #20382b !important; color: #a7e0b8 !important; }
html[data-theme="dark"] .ops-page .stock-check-target { background: #252a2f !important; color: #edf0f2 !important; }
html[data-theme="dark"] .ops-page .stock-check-target small { color: #c0c8cf !important; }
html[data-theme="dark"] .ops-page .stock-check-queue-empty { border-color: #454d55 !important; color: #c0c8cf !important; }

/* Finish the central manager's dark theme across overview, catalog, pricing and integrations. */
html[data-theme="dark"] .ops-page .ops-text-button { color: #ffabb2 !important; }
html[data-theme="dark"] .ops-page .ops-date-badge > span:first-child { color: #ff9aa2 !important; }

html[data-theme="dark"] .ops-page .kpi-icon.red { background: #3b272a !important; color: #ff9aa2 !important; }
html[data-theme="dark"] .ops-page .kpi-icon.orange { background: #3b3020 !important; color: #f0d69d !important; }
html[data-theme="dark"] .ops-page .kpi-icon.green { background: #20382b !important; color: #a7e0b8 !important; }
html[data-theme="dark"] .ops-page .kpi-icon.blue { background: #24354a !important; color: #c3d9f3 !important; }

html[data-theme="dark"] .ops-page .excel-icon { background: #3b272a !important; color: #ff9aa2 !important; }
html[data-theme="dark"] .ops-page .manager-detail-state { background: #3b3020 !important; color: #f0d69d !important; }
html[data-theme="dark"] .ops-page .manager-detail-state.has-detail { background: #20382b !important; color: #a7e0b8 !important; }
html[data-theme="dark"] .ops-page .code-mapping-grid > div > span { color: #ff9aa2 !important; }
html[data-theme="dark"] .ops-page .manager-product-preview-link,
html[data-theme="dark"] .ops-page .manager-product-name:hover { color: #ffabb2 !important; }

html[data-theme="dark"] .ops-page .pricing-remove-button {
  background: #3b272a !important;
  border-color: #704045 !important;
  color: #ffabb2 !important;
}
html[data-theme="dark"] .ops-page .pricing-remove-button:hover { background: #4a2c30 !important; }
html[data-theme="dark"] .ops-page .pricing-rules-card .discount-combination {
  background: #202428 !important;
  border-color: #3b4249 !important;
  color: #edf0f2 !important;
}
html[data-theme="dark"] .ops-page .pricing-rules-card .discount-combination b { color: #f1f3f5 !important; }
html[data-theme="dark"] .ops-page .pricing-rules-card .discount-combination small { color: #c0c8cf !important; }
html[data-theme="dark"] .ops-page .pricing-rules-card .radio-line {
  background: #252a2f !important;
  border-color: #454d55 !important;
  color: #edf0f2 !important;
}
html[data-theme="dark"] .ops-page .pricing-rules-card .radio-line span { color: #edf0f2 !important; }
html[data-theme="dark"] .ops-page .pricing-rules-card .radio-line input { accent-color: #ff737c; }
html[data-theme="dark"] .ops-page .pricing-integration-note {
  background: #302a1e !important;
  border-color: #62502e !important;
  color: #efdaa8 !important;
}
html[data-theme="dark"] .ops-page .pricing-integration-note b { color: #f4d17f !important; }
html[data-theme="dark"] .ops-page .pricing-settings-status { color: #d0d7dc !important; }

html[data-theme="dark"] .ops-page .integration-checks > span { color: #a7e0b8 !important; }
html[data-theme="dark"] .ops-page .integration-checks > span > span { color: #c0c8cf !important; }
html[data-theme="dark"] .ops-page .secure-credentials-note {
  background: #252a2f !important;
  border-color: #3b4249 !important;
  color: #c0c8cf !important;
}
html[data-theme="dark"] .ops-page .secure-credentials-note > span:first-child { color: #aab5bd !important; }
html[data-theme="dark"] .ops-page .secure-credentials-note > span:last-child { color: #c0c8cf !important; }
html[data-theme="dark"] .ops-page .ippanel-status-pill.is-incomplete,
html[data-theme="dark"] .ops-page .ippanel-otp-status.is-incomplete {
  background: #3b3020 !important;
  border-color: #62502e !important;
  color: #f0d69d !important;
}
html[data-theme="dark"] .ops-page .ippanel-status-pill.is-ready,
html[data-theme="dark"] .ops-page .ippanel-otp-status.is-ready {
  background: #20382b !important;
  border-color: #356448 !important;
  color: #a7e0b8 !important;
}
html[data-theme="dark"] .ops-page .sms-integration-card #ippanel-test-result.is-error {
  background: #40272a !important;
  color: #ffb4b8 !important;
}
