/*
 * Morong Health MIS V4.3 — generated legacy dark-theme bridge.
 * Static CSS only: maps legacy light surfaces / neutral dark text to V4.3 tokens.
 * Generated from module CSS; no runtime DOM observer is used.
 */
html[data-mhs-theme="dark"] body:not(.auth-page) { color-scheme: dark; }

html[data-mhs-theme="dark"] body:not(.auth-page) #healthCenterSelect:hover,
html[data-mhs-theme="dark"] body:not(.auth-page) .alert-info-custom,
html[data-mhs-theme="dark"] body:not(.auth-page) .batch-info,
html[data-mhs-theme="dark"] body:not(.auth-page) .chart-summary,
html[data-mhs-theme="dark"] body:not(.auth-page) .consult-badge,
html[data-mhs-theme="dark"] body:not(.auth-page) .consultation-added-success,
html[data-mhs-theme="dark"] body:not(.auth-page) .date-range,
html[data-mhs-theme="dark"] body:not(.auth-page) .diagnosis-box,
html[data-mhs-theme="dark"] body:not(.auth-page) .dropdown-toggle:hover,
html[data-mhs-theme="dark"] body:not(.auth-page) .field-value,
html[data-mhs-theme="dark"] body:not(.auth-page) .guidelines-box,
html[data-mhs-theme="dark"] body:not(.auth-page) .health-center-selection,
html[data-mhs-theme="dark"] body:not(.auth-page) .history-table thead th,
html[data-mhs-theme="dark"] body:not(.auth-page) .info-alert,
html[data-mhs-theme="dark"] body:not(.auth-page) .info-box,
html[data-mhs-theme="dark"] body:not(.auth-page) .info-message,
html[data-mhs-theme="dark"] body:not(.auth-page) .info-table,
html[data-mhs-theme="dark"] body:not(.auth-page) .info-table th,
html[data-mhs-theme="dark"] body:not(.auth-page) .info-table tr:nth-child(even) td,
html[data-mhs-theme="dark"] body:not(.auth-page) .medical-history-section,
html[data-mhs-theme="dark"] body:not(.auth-page) .medical-history-table tr:nth-child(even) td,
html[data-mhs-theme="dark"] body:not(.auth-page) .notification-item.unread,
html[data-mhs-theme="dark"] body:not(.auth-page) .notification-item:hover,
html[data-mhs-theme="dark"] body:not(.auth-page) .password-toggle:hover,
html[data-mhs-theme="dark"] body:not(.auth-page) .patient-info-item .value,
html[data-mhs-theme="dark"] body:not(.auth-page) .patient-photo,
html[data-mhs-theme="dark"] body:not(.auth-page) .patient-summary-enhanced,
html[data-mhs-theme="dark"] body:not(.auth-page) .procedure-table th,
html[data-mhs-theme="dark"] body:not(.auth-page) .progress,
html[data-mhs-theme="dark"] body:not(.auth-page) .simple-guide,
html[data-mhs-theme="dark"] body:not(.auth-page) .stat-card .progress,
html[data-mhs-theme="dark"] body:not(.auth-page) .stat-item,
html[data-mhs-theme="dark"] body:not(.auth-page) .stats-summary,
html[data-mhs-theme="dark"] body:not(.auth-page) .tab-btn:hover,
html[data-mhs-theme="dark"] body:not(.auth-page) .tab-btn:not(.active):hover {
  background: var(--mhs-blue-soft) !important;
  background-color: var(--mhs-blue-soft) !important;
}

html[data-mhs-theme="dark"] body:not(.auth-page) .treatment-row,
html[data-mhs-theme="dark"] body:not(.auth-page) .upload-area,
html[data-mhs-theme="dark"] body:not(.auth-page) .upload-area.dragover,
html[data-mhs-theme="dark"] body:not(.auth-page) .upload-area:hover,
html[data-mhs-theme="dark"] body:not(.auth-page) .user-role,
html[data-mhs-theme="dark"] body:not(.auth-page) .vaccine-info-box {
  background: var(--mhs-blue-soft) !important;
  background-color: var(--mhs-blue-soft) !important;
}

html[data-mhs-theme="dark"] body:not(.auth-page) .ip-address,
html[data-mhs-theme="dark"] body:not(.auth-page) .medical-history-table th,
html[data-mhs-theme="dark"] body:not(.auth-page) .timeline-content {
  background: var(--mhs-blue-soft) !important;
  background-color: var(--mhs-blue-soft) !important;
  border-color: var(--mhs-border) !important;
}

html[data-mhs-theme="dark"] body:not(.auth-page) .sd-group-label {
  background: var(--mhs-blue-soft) !important;
  background-color: var(--mhs-blue-soft) !important;
  border-color: var(--mhs-border) !important;
  color: var(--mhs-text) !important;
}

html[data-mhs-theme="dark"] body:not(.auth-page) .current-filter-indicator,
html[data-mhs-theme="dark"] body:not(.auth-page) .file-icon,
html[data-mhs-theme="dark"] body:not(.auth-page) .health-center-badge,
html[data-mhs-theme="dark"] body:not(.auth-page) .health-center-display,
html[data-mhs-theme="dark"] body:not(.auth-page) .info-badge,
html[data-mhs-theme="dark"] body:not(.auth-page) .low-stock-health-center {
  background: var(--mhs-blue-soft) !important;
  background-color: var(--mhs-blue-soft) !important;
  color: var(--mhs-text) !important;
}

html[data-mhs-theme="dark"] body:not(.auth-page) .alert-custom,
html[data-mhs-theme="dark"] body:not(.auth-page) .alert-danger,
html[data-mhs-theme="dark"] body:not(.auth-page) .auth-critical-note,
html[data-mhs-theme="dark"] body:not(.auth-page) .error-message,
html[data-mhs-theme="dark"] body:not(.auth-page) .flash-error,
html[data-mhs-theme="dark"] body:not(.auth-page) .msg.error,
html[data-mhs-theme="dark"] body:not(.auth-page) .out-of-stock,
html[data-mhs-theme="dark"] body:not(.auth-page) .sd-option.out-of-stock,
html[data-mhs-theme="dark"] body:not(.auth-page) .status-disabled,
html[data-mhs-theme="dark"] body:not(.auth-page) .status-inactive,
html[data-mhs-theme="dark"] body:not(.auth-page) p[style*="color:red"] {
  background: var(--mhs-danger-soft) !important;
  background-color: var(--mhs-danger-soft) !important;
}

html[data-mhs-theme="dark"] body:not(.auth-page) .alert-success,
html[data-mhs-theme="dark"] body:not(.auth-page) .alert-success-custom,
html[data-mhs-theme="dark"] body:not(.auth-page) .flash-success,
html[data-mhs-theme="dark"] body:not(.auth-page) .msg.success,
html[data-mhs-theme="dark"] body:not(.auth-page) .patient-added-success,
html[data-mhs-theme="dark"] body:not(.auth-page) .status-active,
html[data-mhs-theme="dark"] body:not(.auth-page) .success-checkmark,
html[data-mhs-theme="dark"] body:not(.auth-page) .user-badge {
  background: var(--mhs-success-soft) !important;
  background-color: var(--mhs-success-soft) !important;
}

html[data-mhs-theme="dark"] body:not(.auth-page) #healthCenterSelect,
html[data-mhs-theme="dark"] body:not(.auth-page) .action-modal-content,
html[data-mhs-theme="dark"] body:not(.auth-page) .ajax-modal-content,
html[data-mhs-theme="dark"] body:not(.auth-page) .certificate-preview,
html[data-mhs-theme="dark"] body:not(.auth-page) .clock-widget,
html[data-mhs-theme="dark"] body:not(.auth-page) .clock-widget:hover,
html[data-mhs-theme="dark"] body:not(.auth-page) .consultation-view .section-box,
html[data-mhs-theme="dark"] body:not(.auth-page) .controls-container,
html[data-mhs-theme="dark"] body:not(.auth-page) .custom-footer,
html[data-mhs-theme="dark"] body:not(.auth-page) .custom-modal,
html[data-mhs-theme="dark"] body:not(.auth-page) .custom-modal .custom-footer,
html[data-mhs-theme="dark"] body:not(.auth-page) .disabled-card,
html[data-mhs-theme="dark"] body:not(.auth-page) .dropdown-section,
html[data-mhs-theme="dark"] body:not(.auth-page) .history-card,
html[data-mhs-theme="dark"] body:not(.auth-page) .hx-table th,
html[data-mhs-theme="dark"] body:not(.auth-page) .info-card,
html[data-mhs-theme="dark"] body:not(.auth-page) .info-table td:first-child,
html[data-mhs-theme="dark"] body:not(.auth-page) .inventory-box,
html[data-mhs-theme="dark"] body:not(.auth-page) .inventory-box th,
html[data-mhs-theme="dark"] body:not(.auth-page) .logo-wrapper img,
html[data-mhs-theme="dark"] body:not(.auth-page) .low-stock-item,
html[data-mhs-theme="dark"] body:not(.auth-page) .mhs-redirect-logo,
html[data-mhs-theme="dark"] body:not(.auth-page) .module-tabs,
html[data-mhs-theme="dark"] body:not(.auth-page) .module-tabs .nav-link.active,
html[data-mhs-theme="dark"] body:not(.auth-page) .nurse-chart-container,
html[data-mhs-theme="dark"] body:not(.auth-page) .page,
html[data-mhs-theme="dark"] body:not(.auth-page) .period-filter,
html[data-mhs-theme="dark"] body:not(.auth-page) .report-section,
html[data-mhs-theme="dark"] body:not(.auth-page) .section-box,
html[data-mhs-theme="dark"] body:not(.auth-page) .sheet-wrap,
html[data-mhs-theme="dark"] body:not(.auth-page) .stat-card,
html[data-mhs-theme="dark"] body:not(.auth-page) .stats-column .stat-card,
html[data-mhs-theme="dark"] body:not(.auth-page) .summary-box,
html[data-mhs-theme="dark"] body:not(.auth-page) .tab-btn,
html[data-mhs-theme="dark"] body:not(.auth-page) .timeline-marker {
  background: var(--mhs-surface) !important;
  background-color: var(--mhs-surface) !important;
}

html[data-mhs-theme="dark"] body:not(.auth-page) .user-card,
html[data-mhs-theme="dark"] body:not(.auth-page) table,
html[data-mhs-theme="dark"] body:not(.auth-page) tr:hover {
  background: var(--mhs-surface) !important;
  background-color: var(--mhs-surface) !important;
}

html[data-mhs-theme="dark"] body:not(.auth-page) .action-card,
html[data-mhs-theme="dark"] body:not(.auth-page) .dropdown-toggle,
html[data-mhs-theme="dark"] body:not(.auth-page) .file-preview,
html[data-mhs-theme="dark"] body:not(.auth-page) .medical-history-table td,
html[data-mhs-theme="dark"] body:not(.auth-page) .sd-dropdown,
html[data-mhs-theme="dark"] body:not(.auth-page) .sd-input,
html[data-mhs-theme="dark"] body:not(.auth-page) .snapshot-data,
html[data-mhs-theme="dark"] body:not(.auth-page) .toolbar {
  background: var(--mhs-surface) !important;
  background-color: var(--mhs-surface) !important;
  border-color: var(--mhs-border) !important;
}

html[data-mhs-theme="dark"] body:not(.auth-page) .period-btn {
  background: var(--mhs-surface) !important;
  background-color: var(--mhs-surface) !important;
  border-color: var(--mhs-border) !important;
  color: var(--mhs-text) !important;
}

html[data-mhs-theme="dark"] body:not(.auth-page) th {
  background: var(--mhs-surface-2) !important;
  background-color: var(--mhs-surface-2) !important;
}

html[data-mhs-theme="dark"] body:not(.auth-page) .admin-badge,
html[data-mhs-theme="dark"] body:not(.auth-page) .alert-warning,
html[data-mhs-theme="dark"] body:not(.auth-page) .auto-archive-notice,
html[data-mhs-theme="dark"] body:not(.auth-page) .consultation-updated-success,
html[data-mhs-theme="dark"] body:not(.auth-page) .legend-color.low-stock,
html[data-mhs-theme="dark"] body:not(.auth-page) .low-stock,
html[data-mhs-theme="dark"] body:not(.auth-page) .low-stock-alert,
html[data-mhs-theme="dark"] body:not(.auth-page) .low-stock-header,
html[data-mhs-theme="dark"] body:not(.auth-page) .mhs-redirect-card::before,
html[data-mhs-theme="dark"] body:not(.auth-page) .recommendation-box,
html[data-mhs-theme="dark"] body:not(.auth-page) .sd-option.low-stock,
html[data-mhs-theme="dark"] body:not(.auth-page) .search-highlight,
html[data-mhs-theme="dark"] body:not(.auth-page) .warning-box {
  background: var(--mhs-warning-soft) !important;
  background-color: var(--mhs-warning-soft) !important;
}

html[data-mhs-theme="dark"] body:not(.auth-page) .connection-unknown,
html[data-mhs-theme="dark"] body:not(.auth-page) .pane-middle,
html[data-mhs-theme="dark"] body:not(.auth-page) .sd-option {
  border-color: var(--mhs-border) !important;
  color: var(--mhs-text) !important;
}

html[data-mhs-theme="dark"] body:not(.auth-page) #forgot-form,
html[data-mhs-theme="dark"] body:not(.auth-page) .action-modal-footer,
html[data-mhs-theme="dark"] body:not(.auth-page) .consultation-view .section-box h4,
html[data-mhs-theme="dark"] body:not(.auth-page) .date-filter-row,
html[data-mhs-theme="dark"] body:not(.auth-page) .filter-select,
html[data-mhs-theme="dark"] body:not(.auth-page) .forgot-card,
html[data-mhs-theme="dark"] body:not(.auth-page) .form-actions,
html[data-mhs-theme="dark"] body:not(.auth-page) .glass-card,
html[data-mhs-theme="dark"] body:not(.auth-page) .guidelines-box,
html[data-mhs-theme="dark"] body:not(.auth-page) .help-text,
html[data-mhs-theme="dark"] body:not(.auth-page) .history-table td,
html[data-mhs-theme="dark"] body:not(.auth-page) .history-table th,
html[data-mhs-theme="dark"] body:not(.auth-page) .inventory-box td,
html[data-mhs-theme="dark"] body:not(.auth-page) .inventory-box th,
html[data-mhs-theme="dark"] body:not(.auth-page) .login-box,
html[data-mhs-theme="dark"] body:not(.auth-page) .login-card,
html[data-mhs-theme="dark"] body:not(.auth-page) .notification-item,
html[data-mhs-theme="dark"] body:not(.auth-page) .nurse-chart-header,
html[data-mhs-theme="dark"] body:not(.auth-page) .procedure-table td,
html[data-mhs-theme="dark"] body:not(.auth-page) .procedure-table th,
html[data-mhs-theme="dark"] body:not(.auth-page) .pwd-box,
html[data-mhs-theme="dark"] body:not(.auth-page) .report-section h3,
html[data-mhs-theme="dark"] body:not(.auth-page) .section,
html[data-mhs-theme="dark"] body:not(.auth-page) .section-box h4,
html[data-mhs-theme="dark"] body:not(.auth-page) .section-title,
html[data-mhs-theme="dark"] body:not(.auth-page) .tab-buttons,
html[data-mhs-theme="dark"] body:not(.auth-page) .timeline-header,
html[data-mhs-theme="dark"] body:not(.auth-page) .timeline-item,
html[data-mhs-theme="dark"] body:not(.auth-page) .user-item,
html[data-mhs-theme="dark"] body:not(.auth-page) .user-list-section h6,
html[data-mhs-theme="dark"] body:not(.auth-page) td,
html[data-mhs-theme="dark"] body:not(.auth-page) th {
  border-color: var(--mhs-border) !important;
}

html[data-mhs-theme="dark"] body:not(.auth-page) .action-desc,
html[data-mhs-theme="dark"] body:not(.auth-page) .admin-badge,
html[data-mhs-theme="dark"] body:not(.auth-page) .age-infant,
html[data-mhs-theme="dark"] body:not(.auth-page) .age-teen,
html[data-mhs-theme="dark"] body:not(.auth-page) .close,
html[data-mhs-theme="dark"] body:not(.auth-page) .close-modal:hover,
html[data-mhs-theme="dark"] body:not(.auth-page) .connection-private,
html[data-mhs-theme="dark"] body:not(.auth-page) .consultation-view .type-other,
html[data-mhs-theme="dark"] body:not(.auth-page) .empty-state,
html[data-mhs-theme="dark"] body:not(.auth-page) .empty-state-modal,
html[data-mhs-theme="dark"] body:not(.auth-page) .empty-users,
html[data-mhs-theme="dark"] body:not(.auth-page) .form-group label,
html[data-mhs-theme="dark"] body:not(.auth-page) .form-label,
html[data-mhs-theme="dark"] body:not(.auth-page) .ip-private,
html[data-mhs-theme="dark"] body:not(.auth-page) .loading-spinner,
html[data-mhs-theme="dark"] body:not(.auth-page) .log-item,
html[data-mhs-theme="dark"] body:not(.auth-page) .low-stock-item-name,
html[data-mhs-theme="dark"] body:not(.auth-page) .low-stock-stats,
html[data-mhs-theme="dark"] body:not(.auth-page) .module-tabs .nav-link,
html[data-mhs-theme="dark"] body:not(.auth-page) .notification-time,
html[data-mhs-theme="dark"] body:not(.auth-page) .page-subtitle,
html[data-mhs-theme="dark"] body:not(.auth-page) .password-toggle,
html[data-mhs-theme="dark"] body:not(.auth-page) .patient-age,
html[data-mhs-theme="dark"] body:not(.auth-page) .reason-archived,
html[data-mhs-theme="dark"] body:not(.auth-page) .reason-expired,
html[data-mhs-theme="dark"] body:not(.auth-page) .role-health-worker,
html[data-mhs-theme="dark"] body:not(.auth-page) .role-other,
html[data-mhs-theme="dark"] body:not(.auth-page) .sd-no-results,
html[data-mhs-theme="dark"] body:not(.auth-page) .search-box i,
html[data-mhs-theme="dark"] body:not(.auth-page) .stat-card p,
html[data-mhs-theme="dark"] body:not(.auth-page) .stat-label,
html[data-mhs-theme="dark"] body:not(.auth-page) .stats-column .stat-card .stat-label,
html[data-mhs-theme="dark"] body:not(.auth-page) .stats-warning,
html[data-mhs-theme="dark"] body:not(.auth-page) .status-archived,
html[data-mhs-theme="dark"] body:not(.auth-page) .status-contraindicated {
  color: var(--mhs-text) !important;
}

html[data-mhs-theme="dark"] body:not(.auth-page) .status-disabled,
html[data-mhs-theme="dark"] body:not(.auth-page) .status-expired,
html[data-mhs-theme="dark"] body:not(.auth-page) .status-inactive,
html[data-mhs-theme="dark"] body:not(.auth-page) .status-other,
html[data-mhs-theme="dark"] body:not(.auth-page) .status-out-of-stock,
html[data-mhs-theme="dark"] body:not(.auth-page) .status-pending,
html[data-mhs-theme="dark"] body:not(.auth-page) .status-rejected,
html[data-mhs-theme="dark"] body:not(.auth-page) .stock-expired,
html[data-mhs-theme="dark"] body:not(.auth-page) .stock-info,
html[data-mhs-theme="dark"] body:not(.auth-page) .stock-out,
html[data-mhs-theme="dark"] body:not(.auth-page) .summary-box h6,
html[data-mhs-theme="dark"] body:not(.auth-page) .text-muted,
html[data-mhs-theme="dark"] body:not(.auth-page) .time-info,
html[data-mhs-theme="dark"] body:not(.auth-page) .timeline-time,
html[data-mhs-theme="dark"] body:not(.auth-page) .toggle-password,
html[data-mhs-theme="dark"] body:not(.auth-page) .toggle-password:hover,
html[data-mhs-theme="dark"] body:not(.auth-page) .type-other,
html[data-mhs-theme="dark"] body:not(.auth-page) .user-email,
html[data-mhs-theme="dark"] body:not(.auth-page) .user-role {
  color: var(--mhs-text) !important;
}
