/* Dark surfaces and accessible text for the shared employee workspace. */
html[data-workspace-theme="dark"] body.workspace-unified {
  color-scheme:dark;
  --ws-frame:#141b21; --ws-surface:#202b33; --ws-soft:#26343c; --ws-selected:#344a48;
  --ws-ink:#f0f5f2; --ws-muted:#c1d0c9; --ws-line:#45575b; --ws-accent:#b6e3c8;
  --ink:#f0f5f2; --text:#d5e1db; --muted:#c1d0c9; --green:#b6e3c8; --green-dark:#d3efdc;
  --green-light:#344a48; --canvas:#141b21; --line:#45575b; --white:#202b33;
  --surface:#202b33; --surface-soft:#26343c; --surface-active:#344a48;
  --frame:#141b21; --thread:#1a242b; --accent:#b6e3c8; --accent-ink:#d5f0df;
  --accent-soft:#344a48; --subtle:#c1d0c9; --self:#354f46; --control:#50635f;
}
html[data-workspace-theme="dark"] body.workspace-unified:not(.mw-enabled):not(.touch-fullscreen) .main-wrap,
html[data-workspace-theme="dark"] body.workspace-unified .main-wrap {
  --ink:#f0f5f2; --text:#d5e1db; --muted:#c1d0c9; --line:#45575b; --canvas:#141b21;
  background:#141b21; color:#f0f5f2;
}
html[data-workspace-theme="dark"] body.workspace-unified :is(.sidebar,.topbar,.content,.app-shell) {background-color:#141b21;color:#f0f5f2;border-color:#45575b}
html[data-workspace-theme="dark"] body.workspace-unified .topbar {background:#141b21!important;border-color:#45575b!important}
html[data-workspace-theme="dark"] body.workspace-unified :is(.sidebar .brand b,.system-title strong,.sidebar-status,.sidebar .brand small,.topbar-date,.nav-section,.unified-nav-section,.sidebar .nav-sort-handle) {color:#c1d0c9!important}
html[data-workspace-theme="dark"] body.workspace-unified :is(.sidebar .nav-button,.sidebar .nav-group-trigger) {color:#d5e1db}
html[data-workspace-theme="dark"] body.workspace-unified :is(.sidebar .nav-button.active,.sidebar .nav-group-trigger.active,.sidebar .business-nav-group.is-current>.nav-group-row>.nav-button) {background:#344a48!important;color:#eff9f2!important}
html[data-workspace-theme="dark"] body.workspace-unified .sidebar [data-nav-group="customer-orders"]:not(.is-current) .nav-button {background:transparent!important;color:#d5e1db!important}
html[data-workspace-theme="dark"] body.workspace-unified :is(.nav-flyout,.nav-flyout-panel,.mw-menu-sheet,.sidebar-menu-search input,.global-search input) {background:#202b33!important;color:#f0f5f2!important;border-color:#45575b!important}
html[data-workspace-theme="dark"] body.workspace-unified :is(.page-heading h1,.page-heading p,.heading-actions,.footer-note,.eyebrow) {color:#d5e1db}
html[data-workspace-theme="dark"] body.workspace-unified :is(.card,.modal,.modal-header,.modal-content,.modal-footer,.table-wrap,.table-scroll,.toolbar,.tabs-bar,.empty-state,.detail-field,.line-item,.stock-row,.task-row,.pr-panel,.pr-row,.pr-details,.so-details,.so-custom-period,.pw-section,.pw-board-column,.pw-task-card,.pw-count,.mw-menu-sheet) {background:#202b33!important;color:#f0f5f2;border-color:#45575b!important;box-shadow:none}
html[data-workspace-theme="dark"] body.workspace-unified :is(input,textarea,select) {background:#26343c!important;color:#f0f5f2!important;border-color:#657b77!important}
html[data-workspace-theme="dark"] body.workspace-unified :is(input,textarea)::placeholder {color:#c1d0c9;opacity:1}
html[data-workspace-theme="dark"] body.workspace-unified :is(label,.field-help,.hint,.muted,.small,.page-heading p,.pr-heading p,.pr-row-meta,.pr-number,.pr-total,.pw-role,.pw-profile-caption,.pw-profile-contact,.pw-small-note,.pw-eyebrow,.so-heading p,.so-heading .so-eyebrow,.so-finance-metric>span,.so-finance-metric>small,.so-finance-metric p) {color:#c1d0c9}
html[data-workspace-theme="dark"] body.workspace-unified :is(.icon-button,.button.secondary,.button.ghost,.tab,.modal-close,.pw-icon-button,.pw-profile-edit,.so-analysis-link) {background:#344a48!important;color:#eff9f2!important;border-color:#657b77!important}
html[data-workspace-theme="dark"] body.workspace-unified :is(.button:not(.secondary):not(.ghost):not(.danger),.pr-heading-actions .button:not(.secondary)) {background:#376b51;color:#fff;border-color:#6d9b80}
html[data-workspace-theme="dark"] body.workspace-unified .button.danger {background:#633839;color:#fff0ec;border-color:#b76a69}
html[data-workspace-theme="dark"] body.workspace-unified :is(.notice.orange,.pr-status-pending) {background:#594727!important;color:#ffdf9e!important}
html[data-workspace-theme="dark"] body.workspace-unified :is(.notice.red,.pr-status-rejected,.pr-error,.pr-return-reason) {background:#633839!important;color:#fff0ec!important}
html[data-workspace-theme="dark"] body.workspace-unified :is(.pill.green,.pr-status-approved) {background:#34594a!important;color:#dcf8e5!important}
html[data-workspace-theme="dark"] body.workspace-unified :is(th,td) {background:#202b33;color:#f0f5f2;border-color:#45575b}
html[data-workspace-theme="dark"] body.workspace-unified :is(.so-overview,.so-heading h2,.pw-page-heading h2,.pw-profile-name h2,.pw-section h3,.pw-count strong) {color:#f0f5f2}
html[data-workspace-theme="dark"] body.workspace-unified :is(.so-period-tabs,.pw-task-view) {background:#26343c;border-color:#45575b}
html[data-workspace-theme="dark"] body.workspace-unified :is(.so-period-tabs button,.pw-task-view button) {color:#d5e1db}
html[data-workspace-theme="dark"] body.workspace-unified :is(.so-period-tabs button[aria-pressed="true"],.pw-task-view button[aria-pressed="true"]) {background:#47665c;color:#fff;box-shadow:none}
html[data-workspace-theme="dark"] body.workspace-unified :is(.pw-profile-card,.so-finance-metric,.so-finance-metric:nth-child(2)) {background:#26343c!important;border-color:#45575b!important;color:#f0f5f2;box-shadow:none}
html[data-workspace-theme="dark"] body.workspace-unified :is(.so-finance-metric strong,.so-finance-metric:nth-child(2) strong) {color:#e5f6eb}
html[data-workspace-theme="dark"] body.workspace-unified .pw-profile-card::before {opacity:.2;mix-blend-mode:screen}
html[data-workspace-theme="dark"] body.workspace-unified .tc-calendar {
  --tc-ink:#f0f5f2; --tc-muted:#c1d0c9; --tc-line:#45575b; --tc-surface:#202b33;
  --tc-soft:#344a48; --tc-accent:#b6e3c8; --tc-pale:#344a48;
}
html[data-workspace-theme="dark"] body.workspace-unified .tc-day.is-other-month:not(.is-selected) {opacity:1;color:#b3c4bb}
html[data-workspace-theme="dark"] body.workspace-unified .tc-day.is-selected {background:#d7ebdf;color:#172a21}
html[data-workspace-theme="dark"] body.workspace-unified .tc-day.is-selected :is(.tc-week-name,.tc-date-count) {color:#172a21;opacity:1}
html[data-workspace-theme="dark"] body.workspace-unified .tc-task-status.is-overdue,
html[data-workspace-theme="dark"] body.workspace-unified .tc-summary button.has-overdue b,
html[data-workspace-theme="dark"] body.workspace-unified .tc-error {color:#ffd0bc}
html[data-workspace-theme="dark"] body.workspace-unified .staff-im {--im-frame:#141b21;--im-surface:#202b33;--im-soft:#26343c;--im-active:#344a48;--im-thread:#1a242b;--im-ink:#f0f5f2;--im-muted:#c1d0c9;--im-subtle:#c1d0c9;--im-line:#45575b;--im-control:#657b77;--im-accent:#b6e3c8;--im-accent-ink:#d5f0df;--im-accent-soft:#344a48;--im-self:#354f46;--im-red:#ffada5;--im-shadow:0 12px 40px #0008}
html[data-workspace-theme="dark"] body.workspace-unified .staff-im .im-new-chat {background:#b6e3c8;color:#14291d}
html[data-workspace-theme="dark"] body.workspace-unified :is(button,a,input,textarea,select):focus-visible {outline:3px solid #b6e3c8;outline-offset:2px}
html[data-workspace-theme="dark"] body.workspace-unified .ea-launcher-label {background:#26343c!important;color:#e6f7eb!important;border-color:#657b77!important}
/* Override older desktop component rules that set light-only surfaces and ink. */
html[data-workspace-theme="dark"] body.workspace-unified .sidebar .nav-button:not(.active),
html[data-workspace-theme="dark"] body.workspace-unified .sidebar .nav-group-trigger:not(.active),
html[data-workspace-theme="dark"] body.workspace-unified .sidebar [data-nav-group="customer-orders"]:not(.is-current) .nav-button {background:transparent!important;color:#d5e1db!important}
html[data-workspace-theme="dark"] body.workspace-unified .sidebar :is(.nav-button,.nav-group-trigger) .icon {color:inherit!important;opacity:1}
html[data-workspace-theme="dark"] body.workspace-unified .staff-im :is(.im-thread-header,.im-search-field,.im-thread-search,.im-composer,.im-context,.im-dialog,.im-announcement) {background:#202b33!important;color:#f0f5f2!important;border-color:#45575b!important}
html[data-workspace-theme="dark"] body.workspace-unified .staff-im .im-search-field input,
html[data-workspace-theme="dark"] body.workspace-unified .staff-im .im-composer textarea {background:transparent!important;color:#f0f5f2!important}
html[data-workspace-theme="dark"] body.workspace-unified :is(.so-details h3,.so-details h4,.so-details strong,.so-empty strong,.so-empty h3,.so-empty p,.so-details-heading>span) {color:#d5e1db!important}
html[data-workspace-theme="dark"] body.workspace-unified :is(.global-search,.global-search-field) {background:#202b33!important;color:#f0f5f2!important;border-color:#45575b!important}
html[data-workspace-theme="dark"] body.workspace-unified .sidebar .nav-direct-group[data-nav-group="customer-orders"] > .nav-group-row {background:transparent!important;border-color:transparent!important}
html[data-workspace-theme="dark"] body.workspace-unified .sidebar .nav-direct-group[data-nav-group="customer-orders"].is-current > .nav-group-row {background:#344a48!important}
/* Keep the overview's operational entry points legible and in the dark palette. */
html[data-workspace-theme="dark"] body.workspace-unified :is(.gs-field,.global-search.is-expanded .gs-field,.workflow-strip,.customer-inbox-entry,.si-home-shortcut) {background:#26343c!important;background-image:none!important;color:#edf5f0!important;border-color:#50645e!important;box-shadow:none!important}
html[data-workspace-theme="dark"] body.workspace-unified :is(.gs-field>svg,.workflow-strip .icon,.customer-inbox-entry .icon,.si-home-shortcut .icon) {color:#b8dec7!important;stroke:currentColor!important}
html[data-workspace-theme="dark"] body.workspace-unified :is(.workflow-strip strong,.workflow-strip button,.workflow-marquee-track,.customer-inbox-entry h2,.customer-inbox-entry p,.customer-inbox-entry strong,.customer-inbox-entry small,.si-home-shortcut strong,.si-home-shortcut small) {color:#dcebe1!important}
html[data-workspace-theme="dark"] body.workspace-unified .customer-inbox-entry>span {background:#344a48!important;color:#dcebe1!important}
html[data-workspace-theme="dark"] body.workspace-unified .customer-inbox-description>span {color:#b6e3c8!important}
html[data-workspace-theme="dark"] body.workspace-unified .customer-inbox-symbol {background:#344a48!important;color:#dcebe1!important}
