/* ============================================================
   LORE V2 FOUNDATION - COLOR + STATUS STANDARD V1
   2026-10-07

   Semantics:
     GREEN  = OK / complete / ready / success
     YELLOW = attention / control / warning
     RED    = error / blocked / failed / danger
     BLUE   = selected / active navigation / information
     GRAY   = inactive / disabled / neutral

   Approved status fills from Payroll 2026-09-24:
     GREEN  #43d98b
     YELLOW #ffd34f
     RED    #ff7d7d

   This file is loaded LAST and is the canonical visual status layer.
   Module CSS may define layout and module identity, but semantic status
   colours must resolve to the tokens below.
   ============================================================ */

:root {
  --lore-status-green: #43d98b;
  --lore-status-green-hover: #35cc7f;
  --lore-status-green-strong: #079858;
  --lore-status-green-text: #073d26;

  --lore-status-yellow: #ffd34f;
  --lore-status-yellow-hover: #ffc928;
  --lore-status-yellow-strong: #dd9600;
  --lore-status-yellow-text: #573700;

  --lore-status-red: #ff7d7d;
  --lore-status-red-hover: #ff6f6f;
  --lore-status-red-strong: #d82e2e;
  --lore-status-red-text: #651717;

  --lore-status-blue: #2563eb;
  --lore-status-blue-hover: #1d4ed8;
  --lore-status-blue-soft: #dbeafe;
  --lore-status-blue-border: #1d4ed8;
  --lore-status-blue-text: #1e3a8a;

  --lore-status-gray: #cbd5e1;
  --lore-status-gray-hover: #b6c2d1;
  --lore-status-gray-strong: #64748b;
  --lore-status-gray-text: #334155;
}

/* ============================================================
   GLOBAL GENERIC STATUS COMPONENTS
   ============================================================ */

body[data-lore-theme="foundation-v1"] .pill.ok,
body[data-lore-theme="foundation-v1"] .badge.green,
body[data-lore-theme="foundation-v1"] .badge-green {
  background: var(--lore-status-green) !important;
  border-color: var(--lore-status-green-strong) !important;
  color: var(--lore-status-green-text) !important;
}

body[data-lore-theme="foundation-v1"] .pill.warn,
body[data-lore-theme="foundation-v1"] .badge.yellow,
body[data-lore-theme="foundation-v1"] .badge-yellow {
  background: var(--lore-status-yellow) !important;
  border-color: var(--lore-status-yellow-strong) !important;
  color: var(--lore-status-yellow-text) !important;
}

body[data-lore-theme="foundation-v1"] .pill.bad,
body[data-lore-theme="foundation-v1"] .pill.error,
body[data-lore-theme="foundation-v1"] .badge.red,
body[data-lore-theme="foundation-v1"] .badge-red {
  background: var(--lore-status-red) !important;
  border-color: var(--lore-status-red-strong) !important;
  color: var(--lore-status-red-text) !important;
}

body[data-lore-theme="foundation-v1"] .text-green,
body[data-lore-theme="foundation-v1"] .status-paid,
body[data-lore-theme="foundation-v1"] .status--sent {
  color: var(--lore-status-green-strong) !important;
}

body[data-lore-theme="foundation-v1"] .status-draft,
body[data-lore-theme="foundation-v1"] .status-partiallypaid,
body[data-lore-theme="foundation-v1"] .status-partially_paid,
body[data-lore-theme="foundation-v1"] .status--pending {
  color: var(--lore-status-yellow-strong) !important;
}

body[data-lore-theme="foundation-v1"] .text-red,
body[data-lore-theme="foundation-v1"] .status-unpaid,
body[data-lore-theme="foundation-v1"] .status--failed {
  color: var(--lore-status-red-strong) !important;
}

/* ============================================================
   NAVIGATION / SELECTED STATE = BLUE
   ============================================================ */

body[data-lore-theme="foundation-v1"] .menu-item.active,
body[data-lore-theme="foundation-v1"] .customer-tab-btn.active,
body[data-lore-theme="foundation-v1"] .service-tab.active,
body[data-lore-theme="foundation-v1"] .tele-pill.active {
  background: var(--lore-status-blue) !important;
  border-color: var(--lore-status-blue-border) !important;
  color: #fff !important;
}

body[data-lore-theme="foundation-v1"] .menu-item.active span,
body[data-lore-theme="foundation-v1"] .customer-tab-btn.active span,
body[data-lore-theme="foundation-v1"] .service-tab.active span,
body[data-lore-theme="foundation-v1"] .tele-pill.active span {
  color: #fff !important;
}

body[data-lore-theme="foundation-v1"] .menu-item:hover:not(.active),
body[data-lore-theme="foundation-v1"] .customer-tab-btn:hover:not(.active),
body[data-lore-theme="foundation-v1"] .service-tab:hover:not(.active) {
  background: var(--lore-status-blue-soft) !important;
  border-color: #93c5fd !important;
}

body[data-lore-theme="foundation-v1"] .cti-layout-preset.active,
body[data-lore-theme="foundation-v1"] .payroll-tab.is-active,
body[data-lore-theme="foundation-v1"] .payroll-person-filter-shell button.is-active,
body[data-lore-theme="foundation-v1"] .payroll-person-card-tabs button.is-active,
body[data-lore-theme="foundation-v1"] #sa-v2-root .sa-tab.active,
body[data-lore-theme="foundation-v1"] .ir-tab.active,
body[data-lore-theme="foundation-v1"] .audit-severity-filter button.active,
body[data-lore-theme="foundation-v1"] .audit-date-quick-filter button.active,
body[data-lore-theme="foundation-v1"] .scopes-mode-filter button.active {
  border-color: var(--lore-status-blue-border) !important;
  color: var(--lore-status-blue-text) !important;
}

body[data-lore-theme="foundation-v1"] .ps-root .ps-tab.active::after {
  background: var(--lore-status-blue) !important;
  box-shadow: 0 0 12px rgba(37, 99, 235, .45) !important;
}

/* ============================================================
   TOP SYSTEM STATUS
   ============================================================ */

body[data-lore-theme="foundation-v1"] .system-status.status-green {
  background: var(--lore-status-green) !important;
  border-color: var(--lore-status-green-strong) !important;
  color: var(--lore-status-green-text) !important;
}

body[data-lore-theme="foundation-v1"] .system-status.status-yellow {
  background: var(--lore-status-yellow) !important;
  border-color: var(--lore-status-yellow-strong) !important;
  color: var(--lore-status-yellow-text) !important;
}

body[data-lore-theme="foundation-v1"] .system-status.status-red {
  background: var(--lore-status-red) !important;
  border-color: var(--lore-status-red-strong) !important;
  color: var(--lore-status-red-text) !important;
}

/* ============================================================
   DASHBOARD
   ============================================================ */

body[data-lore-theme="foundation-v1"] .dashboard-page .dashpill.ok {
  background: var(--lore-status-green) !important;
  border-color: var(--lore-status-green-strong) !important;
  color: var(--lore-status-green-text) !important;
}
body[data-lore-theme="foundation-v1"] .dashboard-page .dashpill.warn {
  background: var(--lore-status-yellow) !important;
  border-color: var(--lore-status-yellow-strong) !important;
  color: var(--lore-status-yellow-text) !important;
}
body[data-lore-theme="foundation-v1"] .dashboard-page .dashpill.bad {
  background: var(--lore-status-red) !important;
  border-color: var(--lore-status-red-strong) !important;
  color: var(--lore-status-red-text) !important;
}
body[data-lore-theme="foundation-v1"] .dashboard-page .dashpill.neutral {
  background: var(--lore-status-gray) !important;
  border-color: var(--lore-status-gray-strong) !important;
  color: var(--lore-status-gray-text) !important;
}

/* ============================================================
   CUSTOMERS
   ============================================================ */

body[data-lore-theme="foundation-v1"] .customer-list-table tbody tr.cust-row.row-ok > td,
body[data-lore-theme="foundation-v1"] .customer-card-row.row-ok .customer-list-card {
  background: var(--lore-status-green) !important;
  border-color: var(--lore-status-green-strong) !important;
  color: var(--lore-status-green-text) !important;
}
body[data-lore-theme="foundation-v1"] .customer-list-table tbody tr.cust-row.row-warn > td,
body[data-lore-theme="foundation-v1"] .customer-card-row.row-warn .customer-list-card {
  background: var(--lore-status-yellow) !important;
  border-color: var(--lore-status-yellow-strong) !important;
  color: var(--lore-status-yellow-text) !important;
}
body[data-lore-theme="foundation-v1"] .customer-list-table tbody tr.cust-row.row-bad > td,
body[data-lore-theme="foundation-v1"] .customer-card-row.row-bad .customer-list-card {
  background: var(--lore-status-red) !important;
  border-color: var(--lore-status-red-strong) !important;
  color: var(--lore-status-red-text) !important;
}
body[data-lore-theme="foundation-v1"] .customer-list-table tbody tr.cust-row.row-ok > td:first-child,
body[data-lore-theme="foundation-v1"] .customer-card-row.row-ok .customer-list-card {
  box-shadow: inset 8px 0 0 var(--lore-status-green-strong), 0 5px 14px rgba(7,152,88,.12) !important;
}
body[data-lore-theme="foundation-v1"] .customer-list-table tbody tr.cust-row.row-warn > td:first-child,
body[data-lore-theme="foundation-v1"] .customer-card-row.row-warn .customer-list-card {
  box-shadow: inset 8px 0 0 var(--lore-status-yellow-strong), 0 5px 14px rgba(221,150,0,.12) !important;
}
body[data-lore-theme="foundation-v1"] .customer-list-table tbody tr.cust-row.row-bad > td:first-child,
body[data-lore-theme="foundation-v1"] .customer-card-row.row-bad .customer-list-card {
  box-shadow: inset 8px 0 0 var(--lore-status-red-strong), 0 5px 14px rgba(216,46,46,.14) !important;
}
body[data-lore-theme="foundation-v1"] .customer-list-table tbody tr.cust-row.row-ok:hover > td,
body[data-lore-theme="foundation-v1"] .customer-card-row.row-ok .customer-list-card:hover { background: var(--lore-status-green-hover) !important; }
body[data-lore-theme="foundation-v1"] .customer-list-table tbody tr.cust-row.row-warn:hover > td,
body[data-lore-theme="foundation-v1"] .customer-card-row.row-warn .customer-list-card:hover { background: var(--lore-status-yellow-hover) !important; }
body[data-lore-theme="foundation-v1"] .customer-list-table tbody tr.cust-row.row-bad:hover > td,
body[data-lore-theme="foundation-v1"] .customer-card-row.row-bad .customer-list-card:hover { background: var(--lore-status-red-hover) !important; }

body[data-lore-theme="foundation-v1"] .customer-pill.ok { background: var(--lore-status-green) !important; border-color: var(--lore-status-green-strong) !important; color: var(--lore-status-green-text) !important; }
body[data-lore-theme="foundation-v1"] .customer-pill.warn { background: var(--lore-status-yellow) !important; border-color: var(--lore-status-yellow-strong) !important; color: var(--lore-status-yellow-text) !important; }
body[data-lore-theme="foundation-v1"] .customer-pill.bad { background: var(--lore-status-red) !important; border-color: var(--lore-status-red-strong) !important; color: var(--lore-status-red-text) !important; }
body[data-lore-theme="foundation-v1"] .customer-pill.neutral { background: var(--lore-status-gray) !important; border-color: var(--lore-status-gray-strong) !important; color: var(--lore-status-gray-text) !important; }

/* ============================================================
   SERVICES
   ============================================================ */

body[data-lore-theme="foundation-v1"] .services-row.green:not(.th) { background: var(--lore-status-green) !important; border-left-color: var(--lore-status-green-strong) !important; color: var(--lore-status-green-text) !important; }
body[data-lore-theme="foundation-v1"] .services-row.yellow:not(.th) { background: var(--lore-status-yellow) !important; border-left-color: var(--lore-status-yellow-strong) !important; color: var(--lore-status-yellow-text) !important; }
body[data-lore-theme="foundation-v1"] .services-row.red:not(.th) { background: var(--lore-status-red) !important; border-left-color: var(--lore-status-red-strong) !important; color: var(--lore-status-red-text) !important; }
body[data-lore-theme="foundation-v1"] .services-row.gray:not(.th) { background: var(--lore-status-gray) !important; border-left-color: var(--lore-status-gray-strong) !important; color: var(--lore-status-gray-text) !important; opacity: 1 !important; }
body[data-lore-theme="foundation-v1"] .services-row.green:not(.th):hover { background: var(--lore-status-green-hover) !important; }
body[data-lore-theme="foundation-v1"] .services-row.yellow:not(.th):hover { background: var(--lore-status-yellow-hover) !important; }
body[data-lore-theme="foundation-v1"] .services-row.red:not(.th):hover { background: var(--lore-status-red-hover) !important; }
body[data-lore-theme="foundation-v1"] .services-row.gray:not(.th):hover { background: var(--lore-status-gray-hover) !important; }

body[data-lore-theme="foundation-v1"] .service-badge.green { background: var(--lore-status-green) !important; border-color: var(--lore-status-green-strong) !important; color: var(--lore-status-green-text) !important; }
body[data-lore-theme="foundation-v1"] .service-badge.yellow { background: var(--lore-status-yellow) !important; border-color: var(--lore-status-yellow-strong) !important; color: var(--lore-status-yellow-text) !important; }
body[data-lore-theme="foundation-v1"] .service-badge.red { background: var(--lore-status-red) !important; border-color: var(--lore-status-red-strong) !important; color: var(--lore-status-red-text) !important; }
body[data-lore-theme="foundation-v1"] .service-badge.gray { background: var(--lore-status-gray) !important; border-color: var(--lore-status-gray-strong) !important; color: var(--lore-status-gray-text) !important; }

/* ============================================================
   INVOICES
   ============================================================ */

body[data-lore-theme="foundation-v1"] .invoice-row.green,
body[data-lore-theme="foundation-v1"] .invoice-summary-card.green,
body[data-lore-theme="foundation-v1"] .invoice-status-pill.green,
body[data-lore-theme="foundation-v1"] .invoice-center-card.ok {
  background: var(--lore-status-green) !important;
  border-color: var(--lore-status-green-strong) !important;
  color: var(--lore-status-green-text) !important;
}
body[data-lore-theme="foundation-v1"] .invoice-row.yellow,
body[data-lore-theme="foundation-v1"] .invoice-summary-card.yellow,
body[data-lore-theme="foundation-v1"] .invoice-status-pill.yellow,
body[data-lore-theme="foundation-v1"] .invoice-center-card.warning {
  background: var(--lore-status-yellow) !important;
  border-color: var(--lore-status-yellow-strong) !important;
  color: var(--lore-status-yellow-text) !important;
}
body[data-lore-theme="foundation-v1"] .invoice-row.red,
body[data-lore-theme="foundation-v1"] .invoice-summary-card.red,
body[data-lore-theme="foundation-v1"] .invoice-status-pill.red,
body[data-lore-theme="foundation-v1"] .invoice-center-card.danger {
  background: var(--lore-status-red) !important;
  border-color: var(--lore-status-red-strong) !important;
  color: var(--lore-status-red-text) !important;
}
body[data-lore-theme="foundation-v1"] .invoice-row.gray,
body[data-lore-theme="foundation-v1"] .invoice-summary-card.gray,
body[data-lore-theme="foundation-v1"] .invoice-status-pill.gray {
  background: var(--lore-status-gray) !important;
  border-color: var(--lore-status-gray-strong) !important;
  color: var(--lore-status-gray-text) !important;
}

body[data-lore-theme="foundation-v1"] .invoice-row.green { box-shadow: inset 8px 0 0 var(--lore-status-green-strong) !important; }
body[data-lore-theme="foundation-v1"] .invoice-row.yellow { box-shadow: inset 8px 0 0 var(--lore-status-yellow-strong) !important; }
body[data-lore-theme="foundation-v1"] .invoice-row.red { box-shadow: inset 8px 0 0 var(--lore-status-red-strong) !important; }
body[data-lore-theme="foundation-v1"] .invoice-row.gray { box-shadow: inset 8px 0 0 var(--lore-status-gray-strong) !important; }

body[data-lore-theme="foundation-v1"] .invoice-filter-chip.lore-status-green { background: var(--lore-status-green-strong) !important; }
body[data-lore-theme="foundation-v1"] .invoice-filter-chip.lore-status-yellow { background: var(--lore-status-yellow-strong) !important; }
body[data-lore-theme="foundation-v1"] .invoice-filter-chip.lore-status-red { background: var(--lore-status-red-strong) !important; }
body[data-lore-theme="foundation-v1"] .invoice-filter-chip.lore-status-blue { background: var(--lore-status-blue) !important; }
body[data-lore-theme="foundation-v1"] .invoice-filter-chip.lore-status-gray { background: var(--lore-status-gray-strong) !important; }
body[data-lore-theme="foundation-v1"] .invoice-filter-chip.active { box-shadow: 0 0 0 3px #fff, 0 0 0 6px rgba(37,99,235,.45), 0 6px 15px rgba(15,23,42,.18) !important; }

/* ============================================================
   PAYMENTS
   ============================================================ */

body[data-lore-theme="foundation-v1"][data-lore-route="payments"] .pill.ok { background: var(--lore-status-green) !important; border-color: var(--lore-status-green-strong) !important; color: var(--lore-status-green-text) !important; }
body[data-lore-theme="foundation-v1"][data-lore-route="payments"] .pill.warn { background: var(--lore-status-yellow) !important; border-color: var(--lore-status-yellow-strong) !important; color: var(--lore-status-yellow-text) !important; }
body[data-lore-theme="foundation-v1"][data-lore-route="payments"] .pill.bad { background: var(--lore-status-red) !important; border-color: var(--lore-status-red-strong) !important; color: var(--lore-status-red-text) !important; }

body[data-lore-theme="foundation-v1"][data-lore-route="payments"] .payment-row:not(.th):has(.pill.ok),
body[data-lore-theme="foundation-v1"][data-lore-route="payments"] .payment-detail-card.ok { background: var(--lore-status-green) !important; border-color: var(--lore-status-green-strong) !important; color: var(--lore-status-green-text) !important; }
body[data-lore-theme="foundation-v1"][data-lore-route="payments"] .payment-row:not(.th):has(.pill.warn),
body[data-lore-theme="foundation-v1"][data-lore-route="payments"] .payment-detail-card.warn { background: var(--lore-status-yellow) !important; border-color: var(--lore-status-yellow-strong) !important; color: var(--lore-status-yellow-text) !important; }
body[data-lore-theme="foundation-v1"][data-lore-route="payments"] .payment-row.is-reversed,
body[data-lore-theme="foundation-v1"][data-lore-route="payments"] .payment-detail-card.bad { background: var(--lore-status-red) !important; border-color: var(--lore-status-red-strong) !important; color: var(--lore-status-red-text) !important; }
body[data-lore-theme="foundation-v1"][data-lore-route="payments"] .payment-detail-card.note { background: var(--lore-status-gray) !important; border-color: var(--lore-status-gray-strong) !important; color: var(--lore-status-gray-text) !important; }

/* ============================================================
   CTI LIVE
   ============================================================ */

body[data-lore-theme="foundation-v1"] .cti-stat-card.ok,
body[data-lore-theme="foundation-v1"] .cti-row-ok,
body[data-lore-theme="foundation-v1"] .cti-float-center-card.cti-center-connected-call {
  background: var(--lore-status-green) !important;
  border-color: var(--lore-status-green-strong) !important;
  color: var(--lore-status-green-text) !important;
}
body[data-lore-theme="foundation-v1"] .cti-stat-card.warn,
body[data-lore-theme="foundation-v1"] .cti-row-warn {
  background: var(--lore-status-yellow) !important;
  border-color: var(--lore-status-yellow-strong) !important;
  color: var(--lore-status-yellow-text) !important;
}
body[data-lore-theme="foundation-v1"] .cti-stat-card.bad,
body[data-lore-theme="foundation-v1"] .cti-row-bad,
body[data-lore-theme="foundation-v1"] .cti-stat-card.missed,
body[data-lore-theme="foundation-v1"] .cti-row-missed {
  background: var(--lore-status-red) !important;
  border-color: var(--lore-status-red-strong) !important;
  color: var(--lore-status-red-text) !important;
}
body[data-lore-theme="foundation-v1"] .cti-stat-card.dim,
body[data-lore-theme="foundation-v1"] .cti-stat-card.rejected,
body[data-lore-theme="foundation-v1"] .cti-row-dim,
body[data-lore-theme="foundation-v1"] .cti-row-rejected {
  background: var(--lore-status-gray) !important;
  border-color: var(--lore-status-gray-strong) !important;
  color: var(--lore-status-gray-text) !important;
}
body[data-lore-theme="foundation-v1"] .cti-row-ok { box-shadow: inset 7px 0 0 var(--lore-status-green-strong) !important; }
body[data-lore-theme="foundation-v1"] .cti-row-warn { box-shadow: inset 7px 0 0 var(--lore-status-yellow-strong) !important; }
body[data-lore-theme="foundation-v1"] .cti-row-bad,
body[data-lore-theme="foundation-v1"] .cti-row-missed { box-shadow: inset 7px 0 0 var(--lore-status-red-strong) !important; }
body[data-lore-theme="foundation-v1"] .cti-row-dim,
body[data-lore-theme="foundation-v1"] .cti-row-rejected { box-shadow: inset 7px 0 0 var(--lore-status-gray-strong) !important; }

/* ============================================================
   EMAIL QUEUE - overrides runtime-injected legacy shades
   ============================================================ */

body[data-lore-theme="foundation-v1"] .email-card.ok,
body[data-lore-theme="foundation-v1"] .email-table tbody tr.email-row-ok,
body[data-lore-theme="foundation-v1"] .email-detail-ok {
  background: var(--lore-status-green) !important;
  border-color: var(--lore-status-green-strong) !important;
  color: var(--lore-status-green-text) !important;
}
body[data-lore-theme="foundation-v1"] .email-card.warn,
body[data-lore-theme="foundation-v1"] .email-table tbody tr.email-row-warn,
body[data-lore-theme="foundation-v1"] .email-detail-warn {
  background: var(--lore-status-yellow) !important;
  border-color: var(--lore-status-yellow-strong) !important;
  color: var(--lore-status-yellow-text) !important;
}
body[data-lore-theme="foundation-v1"] .email-card.bad,
body[data-lore-theme="foundation-v1"] .email-table tbody tr.email-row-bad,
body[data-lore-theme="foundation-v1"] .email-detail-bad {
  background: var(--lore-status-red) !important;
  border-color: var(--lore-status-red-strong) !important;
  color: var(--lore-status-red-text) !important;
}
body[data-lore-theme="foundation-v1"] .email-badge.ok { background: var(--lore-status-green-strong) !important; }
body[data-lore-theme="foundation-v1"] .email-badge.warn { background: var(--lore-status-yellow-strong) !important; }
body[data-lore-theme="foundation-v1"] .email-badge.bad { background: var(--lore-status-red-strong) !important; }
body[data-lore-theme="foundation-v1"] .email-badge.neutral { background: var(--lore-status-gray-strong) !important; }
body[data-lore-theme="foundation-v1"] .email-table tbody tr.email-row-ok { box-shadow: inset 7px 0 0 var(--lore-status-green-strong) !important; }
body[data-lore-theme="foundation-v1"] .email-table tbody tr.email-row-warn { box-shadow: inset 7px 0 0 var(--lore-status-yellow-strong) !important; }
body[data-lore-theme="foundation-v1"] .email-table tbody tr.email-row-bad { box-shadow: inset 7px 0 0 var(--lore-status-red-strong) !important; }
body[data-lore-theme="foundation-v1"] .email-table tbody tr.email-row-ok:hover,
body[data-lore-theme="foundation-v1"] .email-table tbody tr.email-row-ok.selected { background: var(--lore-status-green-hover) !important; }
body[data-lore-theme="foundation-v1"] .email-table tbody tr.email-row-warn:hover,
body[data-lore-theme="foundation-v1"] .email-table tbody tr.email-row-warn.selected { background: var(--lore-status-yellow-hover) !important; }
body[data-lore-theme="foundation-v1"] .email-table tbody tr.email-row-bad:hover,
body[data-lore-theme="foundation-v1"] .email-table tbody tr.email-row-bad.selected { background: var(--lore-status-red-hover) !important; }

/* ============================================================
   SMS QUEUE - overrides runtime-injected legacy shades
   ============================================================ */

body[data-lore-theme="foundation-v1"] .sms-card.ok,
body[data-lore-theme="foundation-v1"] .sms-table tbody tr.sms-row-ok,
body[data-lore-theme="foundation-v1"] .sms-detail-ok {
  background: var(--lore-status-green) !important;
  border-color: var(--lore-status-green-strong) !important;
  color: var(--lore-status-green-text) !important;
}
body[data-lore-theme="foundation-v1"] .sms-card.warn,
body[data-lore-theme="foundation-v1"] .sms-table tbody tr.sms-row-warn,
body[data-lore-theme="foundation-v1"] .sms-detail-warn {
  background: var(--lore-status-yellow) !important;
  border-color: var(--lore-status-yellow-strong) !important;
  color: var(--lore-status-yellow-text) !important;
}
body[data-lore-theme="foundation-v1"] .sms-card.bad,
body[data-lore-theme="foundation-v1"] .sms-table tbody tr.sms-row-bad,
body[data-lore-theme="foundation-v1"] .sms-detail-bad {
  background: var(--lore-status-red) !important;
  border-color: var(--lore-status-red-strong) !important;
  color: var(--lore-status-red-text) !important;
}
body[data-lore-theme="foundation-v1"] .sms-badge.ok { background: var(--lore-status-green-strong) !important; }
body[data-lore-theme="foundation-v1"] .sms-badge.warn { background: var(--lore-status-yellow-strong) !important; }
body[data-lore-theme="foundation-v1"] .sms-badge.bad { background: var(--lore-status-red-strong) !important; }
body[data-lore-theme="foundation-v1"] .sms-badge.neutral { background: var(--lore-status-gray-strong) !important; }
body[data-lore-theme="foundation-v1"] .sms-table tbody tr.sms-row-ok { box-shadow: inset 7px 0 0 var(--lore-status-green-strong) !important; }
body[data-lore-theme="foundation-v1"] .sms-table tbody tr.sms-row-warn { box-shadow: inset 7px 0 0 var(--lore-status-yellow-strong) !important; }
body[data-lore-theme="foundation-v1"] .sms-table tbody tr.sms-row-bad { box-shadow: inset 7px 0 0 var(--lore-status-red-strong) !important; }
body[data-lore-theme="foundation-v1"] .sms-table tbody tr.sms-row-ok:hover,
body[data-lore-theme="foundation-v1"] .sms-table tbody tr.sms-row-ok.selected { background: var(--lore-status-green-hover) !important; }
body[data-lore-theme="foundation-v1"] .sms-table tbody tr.sms-row-warn:hover,
body[data-lore-theme="foundation-v1"] .sms-table tbody tr.sms-row-warn.selected { background: var(--lore-status-yellow-hover) !important; }
body[data-lore-theme="foundation-v1"] .sms-table tbody tr.sms-row-bad:hover,
body[data-lore-theme="foundation-v1"] .sms-table tbody tr.sms-row-bad.selected { background: var(--lore-status-red-hover) !important; }

/* ============================================================
   PAYROLL
   ============================================================ */

body[data-lore-theme="foundation-v1"] .payroll-person-state--green,
body[data-lore-theme="foundation-v1"] .payroll-summary-card.payroll-summary-state--green,
body[data-lore-theme="foundation-v1"] .payroll-bootstrap-color-status-r1--green,
body[data-lore-theme="foundation-v1"] tr.payroll-bootstrap-color-row--green > td {
  background: var(--lore-status-green) !important;
  border-color: var(--lore-status-green-strong) !important;
  color: var(--lore-status-green-text) !important;
}
body[data-lore-theme="foundation-v1"] .payroll-person-state--yellow,
body[data-lore-theme="foundation-v1"] .payroll-summary-card.payroll-summary-state--yellow,
body[data-lore-theme="foundation-v1"] .payroll-bootstrap-color-status-r1--yellow,
body[data-lore-theme="foundation-v1"] tr.payroll-bootstrap-color-row--yellow > td {
  background: var(--lore-status-yellow) !important;
  border-color: var(--lore-status-yellow-strong) !important;
  color: var(--lore-status-yellow-text) !important;
}
body[data-lore-theme="foundation-v1"] .payroll-person-state--red,
body[data-lore-theme="foundation-v1"] .payroll-summary-card.payroll-summary-state--red,
body[data-lore-theme="foundation-v1"] .payroll-bootstrap-color-status-r1--red,
body[data-lore-theme="foundation-v1"] tr.payroll-bootstrap-color-row--red > td {
  background: var(--lore-status-red) !important;
  border-color: var(--lore-status-red-strong) !important;
  color: var(--lore-status-red-text) !important;
}
body[data-lore-theme="foundation-v1"] .payroll-summary-card.payroll-summary-state--blue {
  background: var(--lore-status-blue-soft) !important;
  border-color: var(--lore-status-blue-border) !important;
  color: var(--lore-status-blue-text) !important;
}
body[data-lore-theme="foundation-v1"] .payroll-summary-card.payroll-summary-state--gray,
body[data-lore-theme="foundation-v1"] .payroll-bootstrap-color-status-r1--gray,
body[data-lore-theme="foundation-v1"] tr.payroll-bootstrap-color-row--gray > td {
  background: var(--lore-status-gray) !important;
  border-color: var(--lore-status-gray-strong) !important;
  color: var(--lore-status-gray-text) !important;
}

body[data-lore-theme="foundation-v1"] .payroll-filter-chip.lore-status-green { background: var(--lore-status-green-strong) !important; }
body[data-lore-theme="foundation-v1"] .payroll-filter-chip.lore-status-yellow { background: var(--lore-status-yellow-strong) !important; }
body[data-lore-theme="foundation-v1"] .payroll-filter-chip.lore-status-red { background: var(--lore-status-red-strong) !important; }
body[data-lore-theme="foundation-v1"] .payroll-filter-chip.lore-status-blue { background: var(--lore-status-blue) !important; }
body[data-lore-theme="foundation-v1"] .payroll-filter-chip.lore-status-gray { background: var(--lore-status-gray-strong) !important; }

/* ============================================================
   SUPERADMIN - semantic statuses only. Module identity colours remain.
   ============================================================ */

body[data-lore-theme="foundation-v1"] .control-block-pill.ok,
body[data-lore-theme="foundation-v1"] .control-status.ok,
body[data-lore-theme="foundation-v1"] .control-mini-status.ok,
body[data-lore-theme="foundation-v1"] .grund-summary-card.ok,
body[data-lore-theme="foundation-v1"] .admin-note.ok,
body[data-lore-theme="foundation-v1"] .sa-avatar-flash.ok,
body[data-lore-theme="foundation-v1"] .prov-status-btn.ok,
body[data-lore-theme="foundation-v1"] .prov-badge.ok,
body[data-lore-theme="foundation-v1"] .sa-status-card.ok,
body[data-lore-theme="foundation-v1"] .backup-verify-badge.ok,
body[data-lore-theme="foundation-v1"] .backup-retention-check.ok,
body[data-lore-theme="foundation-v1"] .cti-v2-status.ok,
body[data-lore-theme="foundation-v1"] .cti-v2-badge.ok,
body[data-lore-theme="foundation-v1"] .portal-dr-status.ok,
body[data-lore-theme="foundation-v1"] .itd-status.ok,
body[data-lore-theme="foundation-v1"] .itd-company-status.ok,
body[data-lore-theme="foundation-v1"] .ps-root .ps-alert.ok,
body[data-lore-theme="foundation-v1"] .banking-status-badge-green,
body[data-lore-theme="foundation-v1"] .banking-status-badge.banking-status-badge-green,
body[data-lore-theme="foundation-v1"] .banking-card-page .banking-status-badge-ok {
  background: var(--lore-status-green) !important;
  border-color: var(--lore-status-green-strong) !important;
  color: var(--lore-status-green-text) !important;
}

body[data-lore-theme="foundation-v1"] .control-block-pill.warn,
body[data-lore-theme="foundation-v1"] .control-status.warn,
body[data-lore-theme="foundation-v1"] .control-mini-status.warn,
body[data-lore-theme="foundation-v1"] .grund-summary-card.warn,
body[data-lore-theme="foundation-v1"] .warn-note,
body[data-lore-theme="foundation-v1"] .prov-status-btn.warn,
body[data-lore-theme="foundation-v1"] .prov-badge.warn,
body[data-lore-theme="foundation-v1"] .sa-status-card.warn,
body[data-lore-theme="foundation-v1"] .backup-retention-check.warn,
body[data-lore-theme="foundation-v1"] .cti-v2-status.warn,
body[data-lore-theme="foundation-v1"] .cti-v2-badge.warn,
body[data-lore-theme="foundation-v1"] .portal-dr-status.warning,
body[data-lore-theme="foundation-v1"] .itd-status.warn,
body[data-lore-theme="foundation-v1"] .itd-company-status.warn,
body[data-lore-theme="foundation-v1"] .banking-status-badge-yellow,
body[data-lore-theme="foundation-v1"] .banking-status-badge-prepared,
body[data-lore-theme="foundation-v1"] .banking-status-badge.banking-status-badge-yellow,
body[data-lore-theme="foundation-v1"] .banking-status-badge.banking-status-badge-prepared,
body[data-lore-theme="foundation-v1"] .banking-card-page .banking-status-badge-warn {
  background: var(--lore-status-yellow) !important;
  border-color: var(--lore-status-yellow-strong) !important;
  color: var(--lore-status-yellow-text) !important;
}

body[data-lore-theme="foundation-v1"] .control-block-pill.error,
body[data-lore-theme="foundation-v1"] .control-status.error,
body[data-lore-theme="foundation-v1"] .control-mini-status.error,
body[data-lore-theme="foundation-v1"] .grund-summary-card.bad,
body[data-lore-theme="foundation-v1"] .admin-note.bad,
body[data-lore-theme="foundation-v1"] .admin-detail-block.danger,
body[data-lore-theme="foundation-v1"] .sa-avatar-flash.error,
body[data-lore-theme="foundation-v1"] .prov-status-btn.error,
body[data-lore-theme="foundation-v1"] .prov-badge.error,
body[data-lore-theme="foundation-v1"] .sa-status-card.error,
body[data-lore-theme="foundation-v1"] .backup-verify-badge.bad,
body[data-lore-theme="foundation-v1"] .ps-root .ps-alert.error,
body[data-lore-theme="foundation-v1"] .banking-status-badge-red,
body[data-lore-theme="foundation-v1"] .banking-status-badge.banking-status-badge-red,
body[data-lore-theme="foundation-v1"] .banking-card-page .banking-status-badge-error {
  background: var(--lore-status-red) !important;
  border-color: var(--lore-status-red-strong) !important;
  color: var(--lore-status-red-text) !important;
}

body[data-lore-theme="foundation-v1"] .prov-status-btn.neutral,
body[data-lore-theme="foundation-v1"] .sa-status-card.neutral,
body[data-lore-theme="foundation-v1"] .banking-status-badge-gray,
body[data-lore-theme="foundation-v1"] .banking-status-badge.banking-status-badge-gray,
body[data-lore-theme="foundation-v1"] .banking-card-page .banking-status-badge-off,
body[data-lore-theme="foundation-v1"] .banking-card-page .banking-status-badge-neutral {
  background: var(--lore-status-gray) !important;
  border-color: var(--lore-status-gray-strong) !important;
  color: var(--lore-status-gray-text) !important;
}

/* Status dots / tiny indicators use strong canonical colours. */
body[data-lore-theme="foundation-v1"] #sa-v2-root .sa-status-dot.on { background: var(--lore-status-green-strong) !important; }
body[data-lore-theme="foundation-v1"] #sa-v2-root .sa-status-dot.off { background: var(--lore-status-gray-strong) !important; }

/* ============================================================ PORTAL LEGACY STATUS NORMALIZATION R1 - 2026-10-07 ============================================================ */body[data-lore-theme="foundation-v1"] .recordings-card-ok{background:var(--lore-status-green)!important;border:2px solid var(--lore-status-green-strong)!important;color:var(--lore-status-green-text)!important;box-shadow:none!important}body[data-lore-theme="foundation-v1"] .recordings-card-warn{background:var(--lore-status-yellow)!important;border:2px solid var(--lore-status-yellow-strong)!important;color:var(--lore-status-yellow-text)!important;box-shadow:none!important}body[data-lore-theme="foundation-v1"] .recordings-card-secure{background:var(--lore-status-blue)!important;border:2px solid var(--lore-status-blue-border)!important;color:#fff!important;box-shadow:none!important}body[data-lore-theme="foundation-v1"] .recordings-card-secure .recordings-card-title,body[data-lore-theme="foundation-v1"] .recordings-card-secure .recordings-card-body{color:#fff!important}body[data-lore-theme="foundation-v1"] .recordings-item-listened{background:var(--lore-status-green)!important;border:2px solid var(--lore-status-green-strong)!important;color:var(--lore-status-green-text)!important;box-shadow:none!important}body[data-lore-theme="foundation-v1"] .service-price-row.has-step,body[data-lore-theme="foundation-v1"] .service-price-row.ok{background:var(--lore-status-green)!important;border-color:var(--lore-status-green-strong)!important;color:var(--lore-status-green-text)!important;box-shadow:none!important}body[data-lore-theme="foundation-v1"] .service-price-row.warn,body[data-lore-theme="foundation-v1"] .service-price-row.no-step{background:var(--lore-status-yellow)!important;border-color:var(--lore-status-yellow-strong)!important;color:var(--lore-status-yellow-text)!important;box-shadow:none!important}body[data-lore-theme="foundation-v1"] .service-price-row.bad{background:var(--lore-status-red)!important;border-color:var(--lore-status-red-strong)!important;color:var(--lore-status-red-text)!important;box-shadow:none!important}body[data-lore-theme="foundation-v1"] .service-price-row.inactive{background:var(--lore-status-gray)!important;border-color:var(--lore-status-gray-strong)!important;color:var(--lore-status-gray-text)!important;box-shadow:none!important;opacity:1!important}body[data-lore-theme="foundation-v1"] .service-price-row.selected{background:var(--lore-status-blue)!important;border-color:var(--lore-status-blue-border)!important;color:#fff!important;box-shadow:none!important}body[data-lore-theme="foundation-v1"][data-lore-route="payments"] .payment-row:not(.th):has(.pill.ok){background:var(--lore-status-green)!important;border-color:var(--lore-status-green-strong)!important;color:var(--lore-status-green-text)!important;box-shadow:none!important}body[data-lore-theme="foundation-v1"][data-lore-route="payments"] .payment-row:not(.th):has(.pill.warn){background:var(--lore-status-yellow)!important;border-color:var(--lore-status-yellow-strong)!important;color:var(--lore-status-yellow-text)!important;box-shadow:none!important}body[data-lore-theme="foundation-v1"][data-lore-route="payments"] .payment-row:not(.th):has(.pill.bad),body[data-lore-theme="foundation-v1"][data-lore-route="payments"] .payment-row:not(.th):has(.pill.error){background:var(--lore-status-red)!important;border-color:var(--lore-status-red-strong)!important;color:var(--lore-status-red-text)!important;box-shadow:none!important}body[data-lore-theme="foundation-v1"][data-lore-route="payments"] .payment-row:not(.th):has(.pill.neutral){background:var(--lore-status-gray)!important;border-color:var(--lore-status-gray-strong)!important;color:var(--lore-status-gray-text)!important;box-shadow:none!important}body[data-lore-theme="foundation-v1"][data-lore-route="payments"] .payment-row[data-payment-id]:not(.th):hover{box-shadow:none!important}body[data-lore-theme="foundation-v1"][data-lore-route="payments"] .payment-detail-card.ok{background:var(--lore-status-green)!important;border-color:var(--lore-status-green-strong)!important;color:var(--lore-status-green-text)!important;box-shadow:0 8px 20px rgba(15,23,42,.10)!important}body[data-lore-theme="foundation-v1"][data-lore-route="payments"] .payment-detail-card.warn{background:var(--lore-status-yellow)!important;border-color:var(--lore-status-yellow-strong)!important;color:var(--lore-status-yellow-text)!important;box-shadow:0 8px 20px rgba(15,23,42,.10)!important}body[data-lore-theme="foundation-v1"][data-lore-route="payments"] .payment-detail-card.bad{background:var(--lore-status-red)!important;border-color:var(--lore-status-red-strong)!important;color:var(--lore-status-red-text)!important;box-shadow:0 8px 20px rgba(15,23,42,.10)!important}body[data-lore-theme="foundation-v1"][data-lore-route="payments"] .payment-detail-card.note{background:var(--lore-status-gray)!important;border-color:var(--lore-status-gray-strong)!important;color:var(--lore-status-gray-text)!important;box-shadow:0 8px 20px rgba(15,23,42,.10)!important}body[data-lore-theme="foundation-v1"][data-lore-route="payments"] .payment-detail-card.info{background:var(--lore-status-blue-soft)!important;border-color:var(--lore-status-blue-border)!important;color:var(--lore-status-blue-text)!important;box-shadow:0 8px 20px rgba(15,23,42,.10)!important}body[data-lore-theme="foundation-v1"] .payroll-run--success{background:var(--lore-status-green)!important;border-color:var(--lore-status-green-strong)!important;color:var(--lore-status-green-text)!important;box-shadow:0 8px 20px rgba(15,23,42,.08)!important}body[data-lore-theme="foundation-v1"] .payroll-run--warning{background:var(--lore-status-yellow)!important;border-color:var(--lore-status-yellow-strong)!important;color:var(--lore-status-yellow-text)!important;box-shadow:0 8px 20px rgba(15,23,42,.08)!important}body[data-lore-theme="foundation-v1"] .payroll-run--danger{background:var(--lore-status-red)!important;border-color:var(--lore-status-red-strong)!important;color:var(--lore-status-red-text)!important;box-shadow:0 8px 20px rgba(15,23,42,.08)!important}body[data-lore-theme="foundation-v1"] .payroll-run--attention{background:var(--lore-status-blue)!important;border-color:var(--lore-status-blue-border)!important;color:#fff!important;box-shadow:0 8px 20px rgba(15,23,42,.08)!important}body[data-lore-theme="foundation-v1"] .payroll-run--neutral{background:var(--lore-status-gray)!important;border-color:var(--lore-status-gray-strong)!important;color:var(--lore-status-gray-text)!important;box-shadow:0 8px 20px rgba(15,23,42,.08)!important}body[data-lore-theme="foundation-v1"] .payroll-person-row--green td{background:var(--lore-status-green)!important;border-color:var(--lore-status-green-strong)!important;color:var(--lore-status-green-text)!important}body[data-lore-theme="foundation-v1"] .payroll-person-row--yellow td{background:var(--lore-status-yellow)!important;border-color:var(--lore-status-yellow-strong)!important;color:var(--lore-status-yellow-text)!important}body[data-lore-theme="foundation-v1"] .payroll-person-row--red td{background:var(--lore-status-red)!important;border-color:var(--lore-status-red-strong)!important;color:var(--lore-status-red-text)!important}body[data-lore-theme="foundation-v1"] .tele-user-row.row-online{background:var(--lore-status-green)!important;border-color:var(--lore-status-green-strong)!important;color:var(--lore-status-green-text)!important;box-shadow:0 8px 22px rgba(27,58,112,.10)!important}body[data-lore-theme="foundation-v1"] .tele-user-row.row-offline{background:var(--lore-status-red)!important;border-color:var(--lore-status-red-strong)!important;color:var(--lore-status-red-text)!important;box-shadow:0 8px 22px rgba(27,58,112,.10)!important}body[data-lore-theme="foundation-v1"] .tele-user-row.row-stale{background:var(--lore-status-yellow)!important;border-color:var(--lore-status-yellow-strong)!important;color:var(--lore-status-yellow-text)!important;box-shadow:0 8px 22px rgba(27,58,112,.10)!important}body[data-lore-theme="foundation-v1"] .tele-user-row.row-disabled,body[data-lore-theme="foundation-v1"] .tele-user-row.row-neutral{background:var(--lore-status-gray)!important;border-color:var(--lore-status-gray-strong)!important;color:var(--lore-status-gray-text)!important;box-shadow:0 8px 22px rgba(27,58,112,.10)!important;opacity:1!important}body[data-lore-theme="foundation-v1"] .feature-row.feat-on,body[data-lore-theme="foundation-v1"] .scope-row.scope-on{background:var(--lore-status-green)!important;border-color:var(--lore-status-green-strong)!important;border-left-width:1px!important;color:var(--lore-status-green-text)!important}body[data-lore-theme="foundation-v1"] .checkout-dashboard-shell .co-provider-row:has(.co-badge-ok){background:var(--lore-status-green)!important;border-color:var(--lore-status-green-strong)!important;border-left-width:1px!important;color:var(--lore-status-green-text)!important}body[data-lore-theme="foundation-v1"] .checkout-dashboard-shell .co-provider-row:has(.co-badge-warn){background:var(--lore-status-yellow)!important;border-color:var(--lore-status-yellow-strong)!important;border-left-width:1px!important;color:var(--lore-status-yellow-text)!important}body[data-lore-theme="foundation-v1"] .checkout-dashboard-shell .co-provider-row:has(.co-badge-error){background:var(--lore-status-red)!important;border-color:var(--lore-status-red-strong)!important;border-left-width:1px!important;color:var(--lore-status-red-text)!important}body[data-lore-theme="foundation-v1"] .checkout-dashboard-shell .co-provider-row:has(.co-badge-off){background:var(--lore-status-gray)!important;border-color:var(--lore-status-gray-strong)!important;border-left-width:1px!important;color:var(--lore-status-gray-text)!important}

/* ============================================================ PAYMENTS KPI FOUNDATION R2 - 2026-10-07 ============================================================ */ body[data-lore-theme="foundation-v1"][data-lore-route="payments"] .payment-kpi-card.warn{background:var(--lore-status-yellow)!important;border-color:var(--lore-status-yellow-strong)!important;color:var(--lore-status-yellow-text)!important} body[data-lore-theme="foundation-v1"][data-lore-route="payments"] .payment-kpi-card.warn .label,body[data-lore-theme="foundation-v1"][data-lore-route="payments"] .payment-kpi-card.warn .value{color:var(--lore-status-yellow-text)!important} body[data-lore-theme="foundation-v1"][data-lore-route="payments"] .payment-kpi-card.bad{background:var(--lore-status-red)!important;border-color:var(--lore-status-red-strong)!important;color:var(--lore-status-red-text)!important} body[data-lore-theme="foundation-v1"][data-lore-route="payments"] .payment-kpi-card.bad .label,body[data-lore-theme="foundation-v1"][data-lore-route="payments"] .payment-kpi-card.bad .value{color:var(--lore-status-red-text)!important}

/* PAYMENT PILL CONTRAST R3 - 2026-10-07 */ body[data-lore-theme="foundation-v1"][data-lore-route="payments"] .payment-row .pill.bad{background:#d82e2e!important;border-color:#a91f1f!important;color:#fff!important;box-shadow:0 1px 3px rgba(101,23,23,.28)!important} body[data-lore-theme="foundation-v1"][data-lore-route="payments"] .payment-row .pill.warn{background:#ffea00!important;border-color:#dd9600!important;color:#573700!important;box-shadow:0 1px 3px rgba(87,55,0,.18)!important} body[data-lore-theme="foundation-v1"][data-lore-route="payments"] .payment-row .pill.ok{background:#35cc7f!important;border-color:#079858!important;color:#073d26!important;box-shadow:0 1px 3px rgba(7,61,38,.18)!important}

/* RECORDINGS FOUNDATION R4 - 2026-10-07 */ body[data-lore-theme="foundation-v1"] .recordings-card-ok .recordings-card-title,body[data-lore-theme="foundation-v1"] .recordings-card-ok .recordings-card-body,body[data-lore-theme="foundation-v1"] .recordings-card-ok .recordings-muted{color:var(--lore-status-green-text)!important} body[data-lore-theme="foundation-v1"] .recordings-card-warn .recordings-card-title,body[data-lore-theme="foundation-v1"] .recordings-card-warn .recordings-card-body,body[data-lore-theme="foundation-v1"] .recordings-card-warn .recordings-muted{color:var(--lore-status-yellow-text)!important} body[data-lore-theme="foundation-v1"] .recordings-card-secure .recordings-card-title,body[data-lore-theme="foundation-v1"] .recordings-card-secure .recordings-card-body,body[data-lore-theme="foundation-v1"] .recordings-card-secure .recordings-muted{color:#fff!important} body[data-lore-theme="foundation-v1"] .recordings-item-listened .recordings-item-title,body[data-lore-theme="foundation-v1"] .recordings-item-listened .recordings-item-meta{color:var(--lore-status-green-text)!important} body[data-lore-theme="foundation-v1"] .recordings-item-listened .recordings-listened-badge{background:var(--lore-status-green-strong)!important;border-color:var(--lore-status-green-strong)!important;color:#fff!important} body[data-lore-theme="foundation-v1"] .recordings-audit-info{background:var(--lore-status-green)!important;border:1px solid var(--lore-status-green-strong)!important;color:var(--lore-status-green-text)!important} body[data-lore-theme="foundation-v1"] .recordings-audit-warning{background:var(--lore-status-yellow)!important;border:1px solid var(--lore-status-yellow-strong)!important;color:var(--lore-status-yellow-text)!important} body[data-lore-theme="foundation-v1"] .recordings-audit-error{background:var(--lore-status-red)!important;border:1px solid var(--lore-status-red-strong)!important;color:var(--lore-status-red-text)!important} body[data-lore-theme="foundation-v1"] .recordings-audit-info .recordings-audit-main strong,body[data-lore-theme="foundation-v1"] .recordings-audit-info .recordings-audit-main span,body[data-lore-theme="foundation-v1"] .recordings-audit-info .recordings-audit-meta{color:var(--lore-status-green-text)!important} body[data-lore-theme="foundation-v1"] .recordings-audit-warning .recordings-audit-main strong,body[data-lore-theme="foundation-v1"] .recordings-audit-warning .recordings-audit-main span,body[data-lore-theme="foundation-v1"] .recordings-audit-warning .recordings-audit-meta{color:var(--lore-status-yellow-text)!important} body[data-lore-theme="foundation-v1"] .recordings-audit-error .recordings-audit-main strong,body[data-lore-theme="foundation-v1"] .recordings-audit-error .recordings-audit-main span,body[data-lore-theme="foundation-v1"] .recordings-audit-error .recordings-audit-meta{color:var(--lore-status-red-text)!important} body[data-lore-theme="foundation-v1"] .recordings-audit-info .recordings-audit-severity{background:var(--lore-status-green-strong)!important;border-color:var(--lore-status-green-strong)!important;color:#fff!important} body[data-lore-theme="foundation-v1"] .recordings-audit-warning .recordings-audit-severity{background:var(--lore-status-yellow-strong)!important;border-color:var(--lore-status-yellow-strong)!important;color:var(--lore-status-yellow-text)!important} body[data-lore-theme="foundation-v1"] .recordings-audit-error .recordings-audit-severity{background:var(--lore-status-red-strong)!important;border-color:var(--lore-status-red-strong)!important;color:#fff!important}

/* SERVICES FOUNDATION R5 - 2026-10-07 */ body[data-lore-theme="foundation-v1"] .services-row.green:not(.th),body[data-lore-theme="foundation-v1"] .services-row.yellow:not(.th),body[data-lore-theme="foundation-v1"] .services-row.red:not(.th),body[data-lore-theme="foundation-v1"] .services-row.gray:not(.th){border-left:0!important} body[data-lore-theme="foundation-v1"] .services-row.green:not(.th) .service-badge.green{background:var(--lore-status-green-strong)!important;border-color:var(--lore-status-green-strong)!important;color:#fff!important} body[data-lore-theme="foundation-v1"] .services-row.yellow:not(.th) .service-badge.yellow{background:#ffea00!important;border-color:var(--lore-status-yellow-strong)!important;color:var(--lore-status-yellow-text)!important} body[data-lore-theme="foundation-v1"] .services-row.red:not(.th) .service-badge.red{background:var(--lore-status-red-strong)!important;border-color:var(--lore-status-red-strong)!important;color:#fff!important} body[data-lore-theme="foundation-v1"] .services-row.gray:not(.th) .service-badge.gray{background:var(--lore-status-gray-strong)!important;border-color:var(--lore-status-gray-strong)!important;color:#fff!important} body[data-lore-theme="foundation-v1"] .service-modal-head-actions .service-badge.green{background:var(--lore-status-green-strong)!important;border-color:var(--lore-status-green-strong)!important;color:transparent!important} body[data-lore-theme="foundation-v1"] .service-modal-head-actions .service-badge.green::before{color:#fff!important} body[data-lore-theme="foundation-v1"] .service-modal-head-actions .service-badge.yellow{background:#ffea00!important;border-color:var(--lore-status-yellow-strong)!important;color:transparent!important} body[data-lore-theme="foundation-v1"] .service-modal-head-actions .service-badge.yellow::before{color:var(--lore-status-yellow-text)!important} body[data-lore-theme="foundation-v1"] .service-modal-head-actions .service-badge.red{background:var(--lore-status-red-strong)!important;border-color:var(--lore-status-red-strong)!important;color:transparent!important} body[data-lore-theme="foundation-v1"] .service-modal-head-actions .service-badge.red::before{color:#fff!important} body[data-lore-theme="foundation-v1"] .service-modal-head-actions .service-badge.gray{background:var(--lore-status-gray-strong)!important;border-color:var(--lore-status-gray-strong)!important;color:transparent!important} body[data-lore-theme="foundation-v1"] .service-modal-head-actions .service-badge.gray::before{color:#fff!important}

/* SERVICES COUNT PILLS R6 - 2026-10-07 */ body[data-lore-theme="foundation-v1"] .services-row.green:not(.th) .svc-counts span{background:var(--lore-status-green-strong)!important;border-color:#057a46!important;color:#fff!important;font-weight:700!important} body[data-lore-theme="foundation-v1"] .services-row.yellow:not(.th) .svc-counts span{background:#ffea00!important;border-color:var(--lore-status-yellow-strong)!important;color:var(--lore-status-yellow-text)!important;font-weight:700!important} body[data-lore-theme="foundation-v1"] .services-row.red:not(.th) .svc-counts span{background:var(--lore-status-red-strong)!important;border-color:#a91f1f!important;color:#fff!important;font-weight:700!important} body[data-lore-theme="foundation-v1"] .services-row.gray:not(.th) .svc-counts span{background:var(--lore-status-gray-strong)!important;border-color:#475569!important;color:#fff!important;font-weight:700!important}

/* CUSTOMERS FOUNDATION R7 - 2026-10-07 */ body[data-lore-theme="foundation-v1"] .customer-card-row.row-ok .customer-list-card{box-shadow:0 5px 14px rgba(7,152,88,.12)!important} body[data-lore-theme="foundation-v1"] .customer-card-row.row-warn .customer-list-card{box-shadow:0 5px 14px rgba(221,150,0,.12)!important} body[data-lore-theme="foundation-v1"] .customer-card-row.row-bad .customer-list-card{box-shadow:0 5px 14px rgba(216,46,46,.14)!important} body[data-lore-theme="foundation-v1"] .customer-list-table tbody tr.cust-row.row-ok>td:first-child,body[data-lore-theme="foundation-v1"] .customer-list-table tbody tr.cust-row.row-warn>td:first-child,body[data-lore-theme="foundation-v1"] .customer-list-table tbody tr.cust-row.row-bad>td:first-child{border-left-width:1px!important} body[data-lore-theme="foundation-v1"] .customer-pill.ok{background:var(--lore-status-green-strong)!important;border-color:var(--lore-status-green-strong)!important;color:#fff!important} body[data-lore-theme="foundation-v1"] .customer-pill.warn{background:#ffea00!important;border-color:var(--lore-status-yellow-strong)!important;color:var(--lore-status-yellow-text)!important} body[data-lore-theme="foundation-v1"] .customer-pill.bad{background:var(--lore-status-red-strong)!important;border-color:var(--lore-status-red-strong)!important;color:#fff!important}

/* CUSTOMERS NO PALE NO HALFMOON R8 - 2026-10-07 */ body[data-lore-theme="foundation-v1"] .customer-card-row.row-ok .customer-list-card,body[data-lore-theme="foundation-v1"] .customer-card-row.row-warn .customer-list-card,body[data-lore-theme="foundation-v1"] .customer-card-row.row-bad .customer-list-card{border-left-width:1px!important;box-shadow:0 5px 14px rgba(20,35,70,.12)!important} body[data-lore-theme="foundation-v1"] .customer-form-colorized label.customer-field{box-shadow:none!important} body[data-lore-theme="foundation-v1"] .customer-form-colorized label.field-ok{background:var(--lore-status-green)!important;border-color:var(--lore-status-green-strong)!important;color:var(--lore-status-green-text)!important;box-shadow:none!important} body[data-lore-theme="foundation-v1"] .customer-form-colorized label.field-ok input,body[data-lore-theme="foundation-v1"] .customer-form-colorized label.field-ok select,body[data-lore-theme="foundation-v1"] .customer-form-colorized label.field-ok textarea{background:#fff!important;border-color:var(--lore-status-green-strong)!important;color:#0f172a!important} body[data-lore-theme="foundation-v1"] .customer-form-colorized label.field-warn{background:var(--lore-status-yellow)!important;border-color:var(--lore-status-yellow-strong)!important;color:var(--lore-status-yellow-text)!important;box-shadow:none!important} body[data-lore-theme="foundation-v1"] .customer-form-colorized label.field-warn input,body[data-lore-theme="foundation-v1"] .customer-form-colorized label.field-warn select,body[data-lore-theme="foundation-v1"] .customer-form-colorized label.field-warn textarea{background:#fff!important;border-color:var(--lore-status-yellow-strong)!important;color:#0f172a!important} body[data-lore-theme="foundation-v1"] .customer-form-colorized label.field-bad{background:var(--lore-status-red)!important;border-color:var(--lore-status-red-strong)!important;color:var(--lore-status-red-text)!important;box-shadow:none!important} body[data-lore-theme="foundation-v1"] .customer-form-colorized label.field-bad input,body[data-lore-theme="foundation-v1"] .customer-form-colorized label.field-bad select,body[data-lore-theme="foundation-v1"] .customer-form-colorized label.field-bad textarea{background:#fff!important;border-color:var(--lore-status-red-strong)!important;color:#0f172a!important} body[data-lore-theme="foundation-v1"] .customer-form-colorized label.field-neutral{background:#fff!important;border-color:var(--lore-status-gray-strong)!important;box-shadow:none!important} body[data-lore-theme="foundation-v1"] .customer-field-legend .legend-ok{background:var(--lore-status-green)!important;border-color:var(--lore-status-green-strong)!important} body[data-lore-theme="foundation-v1"] .customer-field-legend .legend-warn{background:var(--lore-status-yellow)!important;border-color:var(--lore-status-yellow-strong)!important} body[data-lore-theme="foundation-v1"] .customer-field-legend .legend-bad{background:var(--lore-status-red)!important;border-color:var(--lore-status-red-strong)!important} body[data-lore-theme="foundation-v1"] .customer-origin-auto{background:var(--lore-status-green-strong)!important;border-color:var(--lore-status-green-strong)!important;color:#fff!important} body[data-lore-theme="foundation-v1"] .customer-origin-manual{background:#ffea00!important;border-color:var(--lore-status-yellow-strong)!important;color:var(--lore-status-yellow-text)!important} body[data-lore-theme="foundation-v1"] .customer-origin-unchecked{background:var(--lore-status-red-strong)!important;border-color:var(--lore-status-red-strong)!important;color:#fff!important} body[data-lore-theme="foundation-v1"] .customer-flag.bad{background:#fff!important;border:2px solid var(--lore-status-red-strong)!important;color:var(--lore-status-red-text)!important;box-shadow:none!important} body[data-lore-theme="foundation-v1"] .customer-flag.warn{background:#fff!important;border:2px solid var(--lore-status-yellow-strong)!important;color:var(--lore-status-yellow-text)!important;box-shadow:none!important} body[data-lore-theme="foundation-v1"] .customer-warnings{background:var(--lore-status-yellow)!important;border-color:var(--lore-status-yellow-strong)!important;color:var(--lore-status-yellow-text)!important} body[data-lore-theme="foundation-v1"] .customer-errors,body[data-lore-theme="foundation-v1"] .customer-save-error{background:var(--lore-status-red)!important;border:2px solid var(--lore-status-red-strong)!important;border-left-width:2px!important;color:var(--lore-status-red-text)!important;box-shadow:none!important}

/* CUSTOMER FLAGS R9 - 2026-10-07 */ body[data-lore-theme="foundation-v1"] .customer-flag.bad{background:var(--lore-status-red)!important;border:2px solid var(--lore-status-red-strong)!important;color:var(--lore-status-red-text)!important;box-shadow:none!important;font-weight:700!important} body[data-lore-theme="foundation-v1"] .customer-flag.warn{background:var(--lore-status-yellow)!important;border:2px solid var(--lore-status-yellow-strong)!important;color:var(--lore-status-yellow-text)!important;box-shadow:none!important;font-weight:700!important}

/* CUSTOMER TD HALFMOON R10 - 2026-10-07 */ body[data-lore-theme="foundation-v1"] .customer-list-table tbody tr.cust-row.row-ok>td:first-child,body[data-lore-theme="foundation-v1"] .customer-list-table tbody tr.cust-row.row-warn>td:first-child,body[data-lore-theme="foundation-v1"] .customer-list-table tbody tr.cust-row.row-bad>td:first-child,body[data-lore-theme="foundation-v1"] .customer-card-row>td.customer-card-cell:first-child{box-shadow:none!important;border-left:0!important}

/* CUSTOMER CARD BORDER BLEND R11 - 2026-10-07 */ body[data-lore-theme="foundation-v1"] .customer-card-row.row-ok .customer-list-card{border-color:var(--lore-status-green)!important} body[data-lore-theme="foundation-v1"] .customer-card-row.row-warn .customer-list-card{border-color:var(--lore-status-yellow)!important} body[data-lore-theme="foundation-v1"] .customer-card-row.row-bad .customer-list-card{border-color:var(--lore-status-red)!important} body[data-lore-theme="foundation-v1"] .customer-card-row.row-ok .customer-list-card:hover{border-color:var(--lore-status-green-hover)!important} body[data-lore-theme="foundation-v1"] .customer-card-row.row-warn .customer-list-card:hover{border-color:var(--lore-status-yellow-hover)!important} body[data-lore-theme="foundation-v1"] .customer-card-row.row-bad .customer-list-card:hover{border-color:var(--lore-status-red-hover)!important}

/* ============================================================
   END LORE V2 FOUNDATION V1
   ============================================================ */

/* PAYROLL PERSON LEFT STRIPE NORMALIZATION R1 - 2026-10-07 */
body[data-lore-theme="foundation-v1"] .payroll-center-page .payroll-person-table tbody td:first-child{border-left-width:1px!important}

