/* Supplement the existing dark component styles. Light RH and document paper are unchanged. */
.rh-theme-toggle svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#rhThemeToggle{min-height:44px!important}
@media screen{
 html[data-theme=dark] #root{background:#162226!important;color:#eef1f4}
 html[data-theme=dark] #operationalDashboard.om-working{--mw-ink:#eef1f4;--mw-muted:#b1c5c8;--mw-line:#34494d;--mw-paper:#1d2d32;--mw-soft:#23363b;--mw-teal:#85cdcd;--mw-rose:#df879b;--mw-active-fill:#29494b;--mw-active-line:#78afb5;--mw-inactive-fill:#22272e}
 html[data-theme=dark] :is(.contract-record,.contract-record-body,.contract-field-grid>div){background:#1d2d32!important;color:#eef1f4!important;border-color:#34494d!important}
 html[data-theme=dark] .contract-record-body{background:#23363b!important}
 html[data-theme=dark] :is(.signature-fingerprint-card,.signature-fingerprint-preview,.signature-pad){background:#23363b!important;color:#eef1f4;border-color:#34494d}
 html[data-theme=dark] :is(.collaborator-picker,.collaborator-row,.pending-users article,.eligibility-summary,.fingerprint-probe-status,.fingerprint-preview-card,.fingerprint-preview-list>div,.sticky-edit-actions){background:#23363b!important;color:#eef1f4!important;border-color:#34494d!important}
 html[data-theme=dark] .fingerprint-preview-data span{color:#96d5d0}
 html[data-theme=dark] :is(.signature-error,.danger-text){color:#ffb1bd!important}
 html[data-theme=dark] :is(.signed-upload-form,.direct-signature-form,.signature-signer-preview,.contractor-resolution-choice,.touch-check-primary,.verification-details,.question-block,.login-card){background:#23363b!important;color:#eef1f4!important;border-color:#34494d!important}
 html[data-theme=dark] .contractor-resolution-choice:has(input:checked){background:#29494b!important;border-color:#96d5d0!important}
 html[data-theme=dark] :is(.roster-dialog-count strong,.verification-details legend){color:#96d5d0!important}
 html[data-theme=dark] .user-modal-demo .active-field span{color:#eef1f4!important}
 html[data-theme=dark] :is(.record-person,.record-contract,.contract-field-grid) strong{color:#eef1f4!important}
 html[data-theme=dark] :is(.record-person,.record-contract) small,html[data-theme=dark] .contract-field-grid span{color:#b1c5c8!important}
 html[data-theme=dark] :is(.record-source.administrativo,.collaborator-group-title){background:#29494b!important;color:#a7dfe2!important}
 html[data-theme=dark] .record-source.obra{background:#3a2d3b!important;color:#f0bfd5!important}
 html[data-theme=dark] #root .actions a{background:#23363b!important;color:#eef1f4!important;border-color:#526c71!important}
 html[data-theme=dark] #root .actions a:first-of-type{background:#245d66!important;color:#f3f6f8!important;border-color:#45858c!important}
 html[data-theme=dark] .rh-readonly-user-card{background:#1d2d32;color:#eef1f4}
 html[data-theme=dark] .rh-readonly-user-card :is(dt,dd){color:#b1c5c8}
 html[data-theme=dark] .rh-readonly-user-card dd{color:#eef1f4}
 html[data-theme=dark] .rh-discard-dialog{background:#1d2d32;color:#eef1f4;border-color:#526c71}
 html[data-theme=dark] .rh-discard-dialog footer{background:#23363b;border-color:#34494d}
 html[data-theme=dark] .rh-discard-dialog button:not([data-discard-yes]){background:#23363b;color:#eef1f4;border-color:#526c71}
 html[data-theme=dark]{--shadow:0 12px 28px #0003;--rh-select-primary:#96d5d0}
 html[data-theme=dark] :is(.bi-title,.bi-gap,.ops-pill,.bi-panel,.module-card,.mini-list article,.bi-event,.calendar-card){background:#1d2d32!important;color:#eef1f4}
 html[data-theme=dark] :is(.bi-title,.bi-gap,.ops-pill,.bi-panel,.mini-list article){border-color:#34494d!important}
 html[data-theme=dark] :is(.module-card,.alert-card){border-right-color:#34494d;border-bottom-color:#34494d}
 html[data-theme=dark] :is(.bi-title h1,.bi-primary-gap,.panel-head h2,.module-card strong,.calendar-card strong,.bi-event strong){color:#eef1f4!important}
 html[data-theme=dark] :is(.bi-title p,.bi-gap small,.ops-pill span,.ops-pill small,.panel-head>span,.module-card span,.module-card small,.calendar-card span,.calendar-card small,.mini-list span,.bi-event span,.bi-event small,.bi-bar-row span,.bi-bar-row small,.split-bars h3,.bi-activity-grid h3){color:#b1c5c8!important}
 html[data-theme=dark] .alert-card{background:#1d2d32!important;color:#eef1f4!important}
 html[data-theme=dark] .alert-card :is(strong,b){color:#eef1f4!important}
 html[data-theme=dark] .alert-card :is(p,small,.alert-type){color:#b1c5c8!important}
 html[data-theme=dark] .calendar-card.tone-warn{background:#3b3527!important;border-color:#8b754b!important;color:#f5d798!important}
 html[data-theme=dark] .calendar-card.tone-ok{background:#193b32!important;border-color:#4a8870!important;color:#b4ead0!important}
 html[data-theme=dark] .calendar-card.tone-notice{background:#1b3b43!important;border-color:#507b86!important;color:#c0e8ef!important}
 html[data-theme=dark] .bi-bar-track{background:#34494d!important}
 html[data-theme=dark] .bi-activity-grid>div{border-color:#34494d}
 html[data-theme=dark] :is(.account,.status-pill,.history-summary,.history-actions,.result-panel,.result-card,.evaluation-card,.auth-box){background:#23363b;color:#eef1f4;border-color:#526c71}
 html[data-theme=dark] :is(.account span,.history-summary p,.history-summary span,.result-card p,.evaluation-card p){color:#b1c5c8}
 html[data-theme=dark] :is(.rh-read-value,.rh-read-mark){color:#eef1f4}
 html[data-theme=dark] .detail-item{background:#23363b!important;color:#eef1f4!important;border-color:#34494d!important}
 html[data-theme=dark] .detail-item :is(strong,span){color:#eef1f4}
 html[data-theme=dark] :is(.balance-chip.neutral){background:#293d42!important;color:#d1d7df!important;border-color:#526c71!important}
 html[data-theme=dark] .balance-chip.good{background:#193b32!important;color:#b4ead0!important;border-color:#4a8870!important}
 html[data-theme=dark] .balance-chip.bad{background:#432e39!important;color:#ffd0d6!important;border-color:#a85f71!important}
 html[data-theme=dark] .collapse-toggle::before{background:#2b4147;color:#96d5d0}
 html[data-theme=dark] .dashboard-table :is(th,td){border-color:#34494d!important}
 html[data-theme=dark] #operationalDashboard .om-text-button{color:#96d5d0!important}
 html[data-theme=dark] .om-back-health{background:#23363b!important;color:#eef1f4!important;border-color:#526c71!important}
 html[data-theme=dark] :is(.tab-bar,.tab-list,.filter-bar,.filters-panel,.search-panel){background:#1d2d32;color:#eef1f4;border-color:#34494d}
 html[data-theme=dark] :is(.visit-panel,.roster-panel,.history-panel) :is(.panel-copy,.empty-copy,.field>span,.history-meta){color:#b1c5c8!important}
 html[data-theme=dark] :is(.obra-option,.obra-choice,.history-card,.roster-worker-card){background:#23363b;color:#eef1f4;border-color:#526c71}
 html[data-theme=dark] :is(.obra-option,.obra-choice):has(input:checked){background:#344f54;border-color:#96d5d0}
 html[data-theme=dark] :is(.movements-header,.movements-filters,.movements-footer,.movements-scroll,.movement-card,.movement-item,.movement-record){background:#1d2d32;color:#eef1f4;border-color:#34494d}
 html[data-theme=dark] :is(.movements-header p,.movements-footer span,.movement-card p,.movement-item p,.movement-record p){color:#b1c5c8}
 html[data-theme=dark] :is(.movement-diff,.movement-diff-table){border-color:#34494d}
 html[data-theme=dark] .rh-birthday-comunica:focus-visible{outline:2px solid #96d5d0;outline-offset:2px}
 html[data-theme=dark] :is(.pill.active,.status.active,.status-pill.active){background:#193b32;color:#b4ead0;border-color:#4a8870}
 html[data-theme=dark] :is(.pill.pending,.status.pending,.status-pill.pending){background:#3b3527;color:#f5d798;border-color:#8b754b}
 html[data-theme=dark] :is(button,a)[disabled]{opacity:.55}
 html[data-theme=dark] :is(a,button).rh-doc-pdf{background:#432e39!important;color:#ffd0d6!important;border-color:#a85f71!important}
 html[data-theme=dark] :is(a,button).rh-doc-word{background:#203b52!important;color:#c5e1ff!important;border-color:#668fb3!important}
 html[data-theme=dark] #rhThemeToggle{color:#eef1f4}
}
@media print{#rhThemeToggle{display:none!important}}

@media screen {
  html[data-theme=dark] #sidebar .sidebar-tutorial {
    background: #23363b !important;
    color: #eef1f4 !important;
    border-color: #526c71 !important;
  }

  html[data-theme=dark] #sidebar .sidebar-tutorial:hover {
    background: #344f54 !important;
  }

  html[data-theme=dark] :is(.portal-tutorial-dialog, .rh-attention, .rh-movements) {
    background: #1d2d32;
    color: #eef1f4;
    border-color: #526c71;
  }

  html[data-theme=dark] .rh-movements {
    --mv-ink: #eef1f4;
    --mv-accent: #96d5d0;
    --mv-line: #34494d;
  }

  html[data-theme=dark] :is(
    .portal-tutorial-close, .portal-tutorial-option, .rh-attention header,
    .rh-attention footer, .rh-attention button, .movement-row,
    .rh-movements button, .movements-date-control, .movements-change,
    .movement-inline .movements-change, .movements-account-notice
  ) {
    background: #23363b;
    color: #eef1f4;
    border-color: #526c71;
  }

  html[data-theme=dark] :is(
    .portal-tutorial-option:hover, .rh-attention button:hover:enabled,
    .rh-movements button:hover:enabled
  ) {
    background: #344f54;
    border-color: #96d5d0;
  }

  html[data-theme=dark] :is(
    .portal-tutorial-head p, .portal-tutorial-option b, .rh-attention h2,
    .attention-open, .rh-movements .movement-revert
  ) {
    color: #96d5d0;
  }

  html[data-theme=dark] :is(
    .rh-attention header p, .rh-attention footer, .attention-item small,
    .attention-empty, .movements-empty, .movement-meta, .movements-values small,
    .movement-reference-note, .movement-calendar-week [role=columnheader]
  ) {
    color: #b1c5c8;
  }

  html[data-theme=dark] :is(.attention-toolbar, .portal-tutorial-empty) {
    border-color: #34494d;
  }

  html[data-theme=dark] .movement-status {
    color: #f5d798;
  }

  html[data-theme=dark] :is(.attention-status, .movements-notice, .movement-restore-step .movements-values>div:last-child) {
    background: #193b32;
    color: #b4ead0;
    border-color: #4a8870;
  }

  html[data-theme=dark] :is(.attention-status.is-error, .movements-notice.is-error) {
    background: #432e39;
    color: #ffd0d6;
    border-color: #a85f71;
  }

  html[data-theme=dark] .movements-confirmation {
    background: #3b3527;
    color: #f5d798;
    border-color: #8b754b;
  }

  html[data-theme=dark] .movement-explanation {
    background: #29494b;
    color: #eef1f4;
  }

  html[data-theme=dark] .rh-movements :is(.movements-filters>button, .movement-confirm) {
    background: #245d66;
    color: #fff;
    border-color: #526c71;
  }

  html[data-theme=dark] .rh-movements :is(.movements-filters>button, .movement-confirm):hover:enabled {
    background: #216c78;
    color: #fff;
  }

  html[data-theme=dark] .rh-movements .movement-revert:disabled {
    background: #23363b;
    color: #b1c5c8;
    border-color: #526c71;
  }

  html[data-theme=dark] #movementsDateHint {
    color: #ffd0d6;
  }
}
