/* SwiftTenant theme (dark mode). Loaded right after Bootstrap by Site.Master.
   Light values below equal the original hard-coded colors, so light mode is unchanged.
   The theme is set on <html data-bs-theme> by the inline script at the top of Site.Master <head>
   (localStorage "pm-theme": system | light | dark). Printing always switches to light. */
:root {
    --pm-page-bg: #f8fafc;
    --pm-bd-334155: #334155;
    --pm-bd-cbd5e1: #cbd5e1;
    --pm-bd-ced4da: #ced4da;
    --pm-bd-cfd4da: #cfd4da;
    --pm-bd-d9a3a8: #d9a3a8;
    --pm-bd-dee2e6: #dee2e6;
    --pm-bd-e2e8f0: #e2e8f0;
    --pm-bd-f0f1f3: #f0f1f3;
    --pm-bd-f1f3f5: #f1f3f5;
    --pm-bg-cbd5e1: #cbd5e1;
    --pm-bg-dcfce7: #dcfce7;
    --pm-bg-e2e8f0: #e2e8f0;
    --pm-bg-e7f1ff: #e7f1ff;
    --pm-bg-e9ecef: #e9ecef;
    --pm-bg-ede9fe: #ede9fe;
    --pm-bg-eef1f5: #eef1f5;
    --pm-bg-f1f5f9: #f1f5f9;
    --pm-bg-fcfcfd: #fcfcfd;
    --pm-bg-fde8e8: #fde8e8;
    --pm-bg-fef3c7: #fef3c7;
    --pm-bg-fff7ed: #fff7ed;
    --pm-fg-15803d: #15803d;
    --pm-fg-166534: #166534;
    --pm-fg-198754: #198754;
    --pm-fg-1e40af: #1e40af;
    --pm-fg-2563eb: #2563eb;
    --pm-fg-334: #334;
    --pm-fg-334155: #334155;
    --pm-fg-475569: #475569;
    --pm-fg-495057: #495057;
    --pm-fg-5b21b6: #5b21b6;
    --pm-fg-64748b: #64748b;
    --pm-fg-6c757d: #6c757d;
    --pm-fg-8a94a6: #8a94a6;
    --pm-fg-92400e: #92400e;
    --pm-fg-9a3412: #9a3412;
    --pm-fg-b02a37: #b02a37;
    --pm-fg-b91c1c: #b91c1c;
    --pm-fg-dc2626: #dc2626;
    --pm-fg-dc3545: #dc3545;
    --pm-bd-cccccc: #cccccc;
    --pm-bd-d1d5db: #d1d5db;
    --pm-bd-e5e7eb: #e5e7eb;
    --pm-bd-e6e6e6: #e6e6e6;
    --pm-bd-eef0f3: #eef0f3;
    --pm-bg-d1d5db: #d1d5db;
    --pm-bg-dbeafe: #dbeafe;
    --pm-bg-e5e7eb: #e5e7eb;
    --pm-bg-e9e9e9: #e9e9e9;
    --pm-bg-eee: #eee;
    --pm-bg-eef2f7: #eef2f7;
    --pm-bg-eff6ff: #eff6ff;
    --pm-bg-f3f4f6: #f3f4f6;
    --pm-bg-f4f6f8: #f4f6f8;
    --pm-bg-f8f9fa: #f8f9fa;
    --pm-bg-f8fafc: #f8fafc;
    --pm-bg-f9fafb: #f9fafb;
    --pm-bg-fff: #fff;
    --pm-bg-ffffff: #ffffff;
    --pm-bg-white: white;
    --pm-fg-111827: #111827;
    --pm-fg-1a202c: #1a202c;
    --pm-fg-1d4ed8: #1d4ed8;
    --pm-fg-1e3a8a: #1e3a8a;
    --pm-fg-1f2937: #1f2937;
    --pm-fg-212529: #212529;
    --pm-fg-2d3748: #2d3748;
    --pm-fg-333: #333;
    --pm-fg-374151: #374151;
    --pm-fg-4a5568: #4a5568;
    --pm-fg-4b5563: #4b5563;
    --pm-fg-6b7280: #6b7280;
    --pm-fg-999999: #999999;
    --pm-fg-9ca3af: #9ca3af;
    --pm-bd-e9ecef: #e9ecef;
    --pm-bd-f1f5f9: #f1f5f9;
    --pm-bg-eef2ff: #eef2ff;
    --pm-bg-fafafa: #fafafa;
    --pm-fg-0f172a: #0f172a;
    --pm-fg-1e293b: #1e293b;
    --pm-fg-718096: #718096;
    --pm-fg-94a3b8: #94a3b8;
    --pm-fg-991b1b: #991b1b;
    --pm-fg-a0aec0: #a0aec0;
    --pm-bd-cbd5e0: #cbd5e0;
    --pm-bd-e0e6ed: #e0e6ed;
    --pm-bd-edf2f7: #edf2f7;
    --pm-bd-f0f0f0: #f0f0f0;
    --pm-bg-e7faf3: #e7faf3;
    --pm-bg-ebf1f5: #ebf1f5;
    --pm-bg-edf2f7: #edf2f7;
    --pm-bg-f7fafc: #f7fafc;
    --pm-bg-fee2e2: #fee2e2;
    --pm-bg-fef9c3: #fef9c3;
    --pm-bg-ffedd5: #ffedd5;
    --pm-fg-854d0e: #854d0e;
    --pm-fg-8898aa: #8898aa;
    --pm-bg-e9f2ff: #e9f2ff;
    --pm-bg-f6f9fc: #f6f9fc;
    --pm-bg-f8f1f1: #f8f1f1;
    --pm-bg-fef2f2: #fef2f2;
    --pm-bg-ffebee: #ffebee;
    --pm-bg-fff4e5: #fff4e5;
    --pm-fg-000000: #000000;
    --pm-fg-32325d: #32325d;
    --pm-fg-525f7f: #525f7f;
    --pm-fg-555: #555;
    /* TenantDetailsNew / TenantDetails / TenantEditor (2026-11-17) */
    --pm-bd-bbf7d0: #bbf7d0;
    --pm-bd-bfdbfe: #bfdbfe;
    --pm-bd-c7d2fe: #c7d2fe;
    --pm-bd-d1fadf: #d1fadf;
    --pm-bd-e2c4c4: #e2c4c4;
    --pm-bd-e3e7ee: #e3e7ee;
    --pm-bd-eef0f4: #eef0f4;
    --pm-bd-f1f3f6: #f1f3f6;
    --pm-bd-fde68a: #fde68a;
    --pm-bd-fecaca: #fecaca;
    --pm-bg-ccc: #ccc;
    --pm-bg-d1e7dd: #d1e7dd;
    --pm-bg-e0e7ff: #e0e7ff;
    --pm-bg-ecfdf3: #ecfdf3;
    --pm-bg-f1f4f8: #f1f4f8;
    --pm-bg-f8fbff: #f8fbff;
    --pm-bg-fff3cd: #fff3cd;
    --pm-bg-fffbeb: #fffbeb;
    --pm-fg-0056b3: #0056b3;
    --pm-fg-0a58ca: #0a58ca;
    --pm-fg-0d6efd: #0d6efd;
    --pm-fg-0f5132: #0f5132;
    --pm-fg-1a7fae: #1a7fae;
    --pm-fg-2dce89: #2dce89;
    --pm-fg-4f46e5: #4f46e5;
    --pm-fg-5e72e4: #5e72e4;
    --pm-fg-664d03: #664d03;
    --pm-fg-a94442: #a94442;
    --pm-fg-f44336: #f44336;
    --pm-fg-ff9800: #ff9800;
    --pm-bd-fef08a: #fef08a;
    --pm-bg-fefce8: #fefce8;
    --pm-fg-842029: #842029;
    --pm-bg-cbd5e0: #cbd5e0;
    --pm-bg-fed7d7: #fed7d7;
    --pm-bg-fff9c4: #fff9c4;
    --pm-bg-e7f5ee: #e7f5ee;
    --pm-bg-f0fdf4: #f0fdf4;
    --pm-bd-badbcc: #badbcc;
    --pm-bg-d1fae5: #d1fae5;
    --pm-fg-065f46: #065f46;
    --pm-fg-047857: #047857;
    --pm-fg-3730a3: #3730a3;

}
[data-bs-theme=dark] {
    --pm-page-bg: #16191d;
    --pm-bd-334155: #adb5bd;
    --pm-bd-cbd5e1: #495057;
    --pm-bd-ced4da: #495057;
    --pm-bd-cfd4da: #495057;
    --pm-bd-d9a3a8: #6b3a3f;
    --pm-bd-dee2e6: #3d434a;
    --pm-bd-e2e8f0: #3d434a;
    --pm-bd-f0f1f3: #3d434a;
    --pm-bd-f1f3f5: #3d434a;
    --pm-bg-cbd5e1: #495057;
    --pm-bg-dcfce7: #17331f;
    --pm-bg-e2e8f0: #495057;
    --pm-bg-e7f1ff: #1c2b45;
    --pm-bg-e9ecef: #343a40;
    --pm-bg-ede9fe: #2c2447;
    --pm-bg-eef1f5: #2b3035;
    --pm-bg-f1f5f9: #343a40;
    --pm-bg-fcfcfd: #2b3035;
    --pm-bg-fde8e8: #3d1f22;
    --pm-bg-fef3c7: #3d3214;
    --pm-bg-fff7ed: #3b2a1a;
    --pm-fg-15803d: #6ee7a0;
    --pm-fg-166534: #6ee7a0;
    --pm-fg-198754: #5cc98a;
    --pm-fg-1e40af: #93b4f5;
    --pm-fg-2563eb: #6ea8fe;
    --pm-fg-334: #f1f3f5;
    --pm-fg-334155: #dee2e6;
    --pm-fg-475569: #dee2e6;
    --pm-fg-495057: #dee2e6;
    --pm-fg-5b21b6: #c4b5fd;
    --pm-fg-64748b: #adb5bd;
    --pm-fg-6c757d: #adb5bd;
    --pm-fg-8a94a6: #adb5bd;
    --pm-fg-92400e: #fcd34d;
    --pm-fg-9a3412: #fdba74;
    --pm-fg-b02a37: #f28b94;
    --pm-fg-b91c1c: #f28b94;
    --pm-fg-dc2626: #f87171;
    --pm-fg-dc3545: #ea868f;
    --pm-bd-cccccc: #495057;
    --pm-bd-d1d5db: #495057;
    --pm-bd-e5e7eb: #3d434a;
    --pm-bd-e6e6e6: #3d434a;
    --pm-bd-eef0f3: #3d434a;
    --pm-bg-d1d5db: #495057;
    --pm-bg-dbeafe: #1c2b45;
    --pm-bg-e5e7eb: #343a40;
    --pm-bg-e9e9e9: #343a40;
    --pm-bg-eee: #343a40;
    --pm-bg-eef2f7: #343a40;
    --pm-bg-eff6ff: #1c2b45;
    --pm-bg-f3f4f6: #343a40;
    --pm-bg-f4f6f8: #2b3035;
    --pm-bg-f8f9fa: #2b3035;
    --pm-bg-f8fafc: #2b3035;
    --pm-bg-f9fafb: #2b3035;
    --pm-bg-fff: #212529;
    --pm-bg-ffffff: #212529;
    --pm-bg-white: #212529;
    --pm-fg-111827: #f1f3f5;
    --pm-fg-1a202c: #f1f3f5;
    --pm-fg-1d4ed8: #93b4f5;
    --pm-fg-1e3a8a: #93b4f5;
    --pm-fg-1f2937: #f1f3f5;
    --pm-fg-212529: #f1f3f5;
    --pm-fg-2d3748: #f1f3f5;
    --pm-fg-333: #f1f3f5;
    --pm-fg-374151: #dee2e6;
    --pm-fg-4a5568: #dee2e6;
    --pm-fg-4b5563: #dee2e6;
    --pm-fg-6b7280: #adb5bd;
    --pm-fg-999999: #adb5bd;
    --pm-fg-9ca3af: #adb5bd;
    --pm-bd-e9ecef: #3d434a;
    --pm-bd-f1f5f9: #3d434a;
    --pm-bg-eef2ff: #1c2b45;
    --pm-bg-fafafa: #2b3035;
    --pm-fg-0f172a: #f1f3f5;
    --pm-fg-1e293b: #f1f3f5;
    --pm-fg-718096: #adb5bd;
    --pm-fg-94a3b8: #adb5bd;
    --pm-fg-991b1b: #f28b94;
    --pm-fg-a0aec0: #adb5bd;
    --pm-bd-cbd5e0: #495057;
    --pm-bd-e0e6ed: #3d434a;
    --pm-bd-edf2f7: #3d434a;
    --pm-bd-f0f0f0: #3d434a;
    --pm-bg-e7faf3: #17331f;
    --pm-bg-ebf1f5: #212529;
    --pm-bg-edf2f7: #343a40;
    --pm-bg-f7fafc: #2b3035;
    --pm-bg-fee2e2: #3d1f22;
    --pm-bg-fef9c3: #3d3214;
    --pm-bg-ffedd5: #3b2a1a;
    --pm-fg-854d0e: #fcd34d;
    --pm-fg-8898aa: #adb5bd;
    --pm-bg-e9f2ff: #1c2b45;
    --pm-bg-f6f9fc: #2b3035;
    --pm-bg-f8f1f1: #2b3035;
    --pm-bg-fef2f2: #3d1f22;
    --pm-bg-ffebee: #3d1f22;
    --pm-bg-fff4e5: #3b2a1a;
    --pm-fg-000000: #f1f3f5;
    --pm-fg-32325d: #f1f3f5;
    --pm-fg-525f7f: #dee2e6;
    --pm-fg-555: #dee2e6;
    /* TenantDetailsNew / TenantDetails / TenantEditor (2026-11-17) */
    --pm-bd-bbf7d0: #2f5a3c;
    --pm-bd-bfdbfe: #2b4a7a;
    --pm-bd-c7d2fe: #2b4a7a;
    --pm-bd-d1fadf: #2f5a3c;
    --pm-bd-e2c4c4: #6b3a3f;
    --pm-bd-e3e7ee: #3d434a;
    --pm-bd-eef0f4: #3d434a;
    --pm-bd-f1f3f6: #3d434a;
    --pm-bd-fde68a: #6b5a25;
    --pm-bd-fecaca: #6b3a3f;
    --pm-bg-ccc: #495057;
    --pm-bg-d1e7dd: #17331f;
    --pm-bg-e0e7ff: #1c2b45;
    --pm-bg-ecfdf3: #17331f;
    --pm-bg-f1f4f8: #2b3035;
    --pm-bg-f8fbff: #212529;
    --pm-bg-fff3cd: #3d3214;
    --pm-bg-fffbeb: #3d3214;
    --pm-fg-0056b3: #93b4f5;
    --pm-fg-0a58ca: #93b4f5;
    --pm-fg-0d6efd: #93b4f5;
    --pm-fg-0f5132: #6ee7a0;
    --pm-fg-1a7fae: #93b4f5;
    --pm-fg-2dce89: #6ee7a0;
    --pm-fg-4f46e5: #93b4f5;
    --pm-fg-5e72e4: #93b4f5;
    --pm-fg-664d03: #fcd34d;
    --pm-fg-a94442: #f28b94;
    --pm-fg-f44336: #f28b94;
    --pm-fg-ff9800: #fdba74;
    --pm-bd-fef08a: #6b5a25;
    --pm-bg-fefce8: #3d3214;
    --pm-fg-842029: #f28b94;
    --pm-bg-cbd5e0: #495057;
    --pm-bg-fed7d7: #3d1f22;
    --pm-bg-fff9c4: #3d3214;
    --pm-bg-e7f5ee: #17331f;
    --pm-bg-f0fdf4: #17331f;
    --pm-bd-badbcc: #2f5a3c;
    --pm-bg-d1fae5: #17331f;
    --pm-fg-065f46: #6ee7a0;
    --pm-fg-047857: #6ee7a0;
    --pm-fg-3730a3: #c4b5fd;

}

/* Dark mode: Bootstrap utilities that are fixed light in 5.3 follow the theme. Light mode is untouched. */
[data-bs-theme=dark] .bg-white { background-color: var(--bs-body-bg) !important; }
[data-bs-theme=dark] .bg-light { background-color: var(--bs-tertiary-bg) !important; }
[data-bs-theme=dark] .text-dark:not([class*="bg-warning"]):not([class*="bg-info"]):not([class*="btn-warning"]):not([class*="btn-info"]) { color: var(--bs-body-color) !important; }
[data-bs-theme=dark] .bg-warning .text-dark, [data-bs-theme=dark] .bg-info .text-dark { color: #212529 !important; }
[data-bs-theme=dark] .table-light { --bs-table-color: var(--bs-emphasis-color); --bs-table-bg: var(--bs-tertiary-bg); --bs-table-border-color: var(--bs-border-color); --bs-table-striped-bg: var(--bs-secondary-bg); --bs-table-hover-bg: var(--bs-secondary-bg); color: var(--bs-emphasis-color); border-color: var(--bs-border-color); }
[data-bs-theme=dark] .btn-light { --bs-btn-color: var(--bs-body-color); --bs-btn-bg: var(--bs-secondary-bg); --bs-btn-border-color: var(--bs-border-color); --bs-btn-hover-color: var(--bs-emphasis-color); --bs-btn-hover-bg: #495057; --bs-btn-hover-border-color: #6c757d; --bs-btn-active-bg: #495057; --bs-btn-active-color: var(--bs-emphasis-color); }
[data-bs-theme=dark] .btn-outline-dark { --bs-btn-color: var(--bs-body-color); --bs-btn-border-color: #6c757d; --bs-btn-hover-color: #fff; --bs-btn-hover-bg: #495057; --bs-btn-hover-border-color: #6c757d; --bs-btn-active-bg: #495057; --bs-btn-active-color: #fff; }
[data-bs-theme=dark] .btn-close { filter: var(--bs-btn-close-white-filter); }
[data-bs-theme=dark] .modal .modal-content, [data-bs-theme=dark] .dropdown-menu { color: var(--bs-body-color); }
[data-bs-theme=dark] input::placeholder, [data-bs-theme=dark] textarea::placeholder { color: #8b949e; }

/* Theme picker (account menu and Settings): System / Light / Dark segmented buttons. */
.pm-theme-seg { display: flex; gap: 4px; padding: 3px; border-radius: 10px; background: var(--pm-bg-f3f4f6); }
.pm-theme-seg button { flex: 1 1 0; min-width: 0; border: 0; border-radius: 8px; padding: 6px 4px; font-size: .85rem; font-weight: 600; background: transparent; color: var(--pm-fg-374151); line-height: 1.2; }
.pm-theme-seg button.active { background: #2563eb; color: #fff; }
.pm-theme-row { padding: .5rem .9rem .6rem; }
.pm-theme-row > span { display: block; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--pm-fg-6b7280); margin-bottom: 4px; }

/* ===== Stage 3: Dashboard (Default.aspx), Reports.aspx and report pages (Balance Sheet, Statement of Activity,
   Capital Improvements, Tax Report). Screen only: print, PDFs and emails stay light. Text uses #dee2e6 / #adb5bd
   (no dim grays on dark). ===== */
@media screen {
/* Dashboard */
[data-bs-theme=dark] .dashboard-container { background-color: var(--pm-page-bg, #16191d); }
[data-bs-theme=dark] .main-title, [data-bs-theme=dark] .section-subtitle, [data-bs-theme=dark] .card-text,
[data-bs-theme=dark] .dash-title-link, [data-bs-theme=dark] .dash-strong, [data-bs-theme=dark] .task-name,
[data-bs-theme=dark] .details-grid, [data-bs-theme=dark] #modalTitle:not([style]) { color: #dee2e6; }
[data-bs-theme=dark] .alert-card, [data-bs-theme=dark] .task-group-disclosure, [data-bs-theme=dark] .nested-task-list-wrapper,
[data-bs-theme=dark] .details-grid tr.dash-row { background: #2b3035; border-color: #3d434a !important; }
[data-bs-theme=dark] .details-grid tr.dash-row td { border-color: #3d434a !important; }
[data-bs-theme=dark] .task-row { border-bottom-color: #3d434a; }
[data-bs-theme=dark] .btn-review { background: #495057; color: #fff; }
[data-bs-theme=dark] .details-modal, [data-bs-theme=dark] .details-modal-footer { background: #212529; border-color: #3d434a; }
[data-bs-theme=dark] #modalTitle { background: #343a40; color: #fff; }
[data-bs-theme=dark] .details-modal-footer .btn-review { background: #495057; color: #fff; border-color: #6c757d; }
[data-bs-theme=dark] .details-modal-footer .btn-review:hover { background: #5c636a; }
[data-bs-theme=dark] .modal-filter, [data-bs-theme=dark] .alert-search-box { background: #2b3035; color: #dee2e6; border-color: #495057; }
[data-bs-theme=dark] .modal-filter-wrap i, [data-bs-theme=dark] .clear-icon { color: #adb5bd; }
[data-bs-theme=dark] .clear-icon:hover { color: #fff; }
[data-bs-theme=dark] .dash-link, [data-bs-theme=dark] .dash-title-link:hover { color: #93c5fd; }
[data-bs-theme=dark] .dash-link:hover, [data-bs-theme=dark] .dash-link:focus { color: #bfdbfe; }
[data-bs-theme=dark] .dash-chip { background: #1c2b45; color: #c7d2fe !important; }
[data-bs-theme=dark] .dash-chip:hover, [data-bs-theme=dark] .dash-chip:focus { background: #26375a; color: #e0e7ff !important; }
[data-bs-theme=dark] .dash-chip-muted, [data-bs-theme=dark] .pill-slate, [data-bs-theme=dark] .priority-Low,
[data-bs-theme=dark] .status-pill { background: #343a40; color: #dee2e6 !important; border-color: #495057; }
[data-bs-theme=dark] .dash-muted, [data-bs-theme=dark] .dash-wo-num, [data-bs-theme=dark] .details-grid th,
[data-bs-theme=dark] .details-grid td::before, [data-bs-theme=dark] #noResultsMessage { color: #adb5bd !important; }
[data-bs-theme=dark] .task-name.done { color: #8b949e; }
[data-bs-theme=dark] .dash-amount { color: #f87171; }
[data-bs-theme=dark] .dash-plain, [data-bs-theme=dark] .dash-plain a, [data-bs-theme=dark] .details-grid a[href^="tel:"] { color: #dee2e6 !important; }
[data-bs-theme=dark] .pill-red, [data-bs-theme=dark] .priority-Emergency, [data-bs-theme=dark] .task-badge-counter { background: #4a1d1d; color: #fecaca; }
[data-bs-theme=dark] .pill-amber, [data-bs-theme=dark] .priority-Medium { background: #42330f; color: #fde68a; }
[data-bs-theme=dark] .priority-High { background: #44260f; color: #fed7aa; }
[data-bs-theme=dark] .pill-green { background: #17331f; color: #bbf7d0; }
[data-bs-theme=dark] .task-group-disclosure[open] .summary-expand-control { background: #495057; color: #fff; }
[data-bs-theme=dark] .wo-emerg-wrap span[style] { color: #f87171 !important; }

/* Reports.aspx */
[data-bs-theme=dark] body:has(.rpt-page) { background-color: var(--pm-page-bg, #16191d) !important; }
[data-bs-theme=dark] .rpt-page { background-color: var(--bs-body-bg) !important; }
[data-bs-theme=dark] .rpt-card, [data-bs-theme=dark] .rpt-card.rpt-sec { background: #2b3035; border-color: #495057 !important; }
[data-bs-theme=dark] .rpt-card .card-header, [data-bs-theme=dark] .rpt-card.rpt-sec > .card-header.rpt-hdr { background-color: #2b3035 !important; border-bottom-color: #3d434a; color: #dee2e6; }
@media (hover: hover) and (pointer: fine) { [data-bs-theme=dark] .rpt-card.rpt-sec > .card-header.rpt-hdr:hover { background-color: #343a40 !important; } }
[data-bs-theme=dark] .rpt-totals-wrap .rpt-totals td { box-shadow: inset -1px -1px 0 #3d434a; }
[data-bs-theme=dark] .rpt-totals-wrap .rpt-totals td::before, [data-bs-theme=dark] .rpt-lbl, [data-bs-theme=dark] .rpt-sugg-head,
[data-bs-theme=dark] .rpt-sugg-loading, [data-bs-theme=dark] .rpt-qsearch .input-group-text { color: #adb5bd; }
[data-bs-theme=dark] .rpt-ft-grid .link-primary, [data-bs-theme=dark] .rpt-page .btn-outline-primary { color: #dee2e6 !important; border-color: #6c757d !important; }
[data-bs-theme=dark] .rpt-ft-grid .link-primary:hover { color: #fff !important; }
[data-bs-theme=dark] .rpt-page .btn-outline-primary:hover { background-color: #495057 !important; color: #fff !important; }
[data-bs-theme=dark] .rpt-page input.rpt-cal-btn, [data-bs-theme=dark] .rpt-qsearch .input-group-text { background: #2b3035; border-color: #495057; }
[data-bs-theme=dark] .rpt-page .ajax__calendar_container { background-color: #2b3035; color: #dee2e6; }
[data-bs-theme=dark] .rpt-ft-grid > tbody > tr { border-bottom-color: #3d434a !important; }
[data-bs-theme=dark] .sticky-header { background-color: #2b3035 !important; border-bottom-color: #3d434a; }
[data-bs-theme=dark] .rpt-add-sheet .rpt-lbl { color: #dee2e6 !important; }
[data-bs-theme=dark] .rpt-add-sheet .form-control, [data-bs-theme=dark] .rpt-add-sheet .form-select { background-color: #2b3035 !important; color: #dee2e6 !important; border-color: #495057 !important; }
[data-bs-theme=dark] .yellowInfoBlock { background-color: #42330f; border-color: #6b5417; color: #fde68a; }
[data-bs-theme=dark] .rpt-rowcount-delta.rpt-rowcount-up { color: #4ade80; }
[data-bs-theme=dark] .rpt-rowcount-delta.rpt-rowcount-down { color: #f87171; }
[data-bs-theme=dark] .rpt-sugg { background-color: #2b3035; border-color: #495057; color: #dee2e6; }
[data-bs-theme=dark] .rpt-sugg-head { background-color: #343a40; border-bottom-color: #3d434a; }
[data-bs-theme=dark] .rpt-sugg-head .bi, [data-bs-theme=dark] .rpt-sugg-meta, [data-bs-theme=dark] .rpt-sugg-desc { color: #dee2e6; }
[data-bs-theme=dark] .rpt-sugg-opt, [data-bs-theme=dark] .rpt-sugg-loading { border-top-color: #3d434a; }
[data-bs-theme=dark] .rpt-sugg-opt:focus, [data-bs-theme=dark] .rpt-sugg-opt.active { background-color: #343a40; }
@media (hover: hover) and (pointer: fine) { [data-bs-theme=dark] .rpt-sugg-opt:hover { background-color: #343a40; } }
[data-bs-theme=dark] .rpt-sec-toggle[aria-expanded="true"] { background-color: #495057; border-color: #6c757d; color: #fff; }
[data-bs-theme=dark] .ft-suites label { background: #2b3035; border-color: #495057; color: #dee2e6; }
[data-bs-theme=dark] .ft-suites input:checked + label { background: #1c2b45; border-color: #3b82f6; color: #bfdbfe; }
[data-bs-theme=dark] .rpt-page .table { --bs-table-bg: transparent; --bs-table-color: var(--bs-body-color); }
[data-bs-theme=dark] .rpt-page .text-muted, [data-bs-theme=dark] .fs-wrap .text-muted, [data-bs-theme=dark] .tx-wrap .text-muted { color: #adb5bd !important; }
[data-bs-theme=dark] .rpt-page span[style*="#000000"], [data-bs-theme=dark] .rpt-page td[style*="#000000"] { color: var(--bs-body-color) !important; }

/* Balance Sheet / Statement of Activity / Capital Improvements (fs-*) */
[data-bs-theme=dark] .fs-filters label { color: #adb5bd; }
[data-bs-theme=dark] .fs-tabs a, [data-bs-theme=dark] .tx-tabs a { background: #343a40; color: #dee2e6; }
[data-bs-theme=dark] .fs-tabs a.on, [data-bs-theme=dark] .tx-tabs a.on { background: #2563eb; color: #fff; }
[data-bs-theme=dark] .tx-tabs a:not(.on):hover { background: #495057; }
[data-bs-theme=dark] .site-main .fs-wrap .fs-card, [data-bs-theme=dark] .site-main .tx-wrap .tx-card { background: #2b3035; border-color: #3d434a; box-shadow: none; }
[data-bs-theme=dark] .fs-ch, [data-bs-theme=dark] .fs-li, [data-bs-theme=dark] .fs-li.fs-t { border-color: #3d434a; }
[data-bs-theme=dark] .fs-li.fs-t, [data-bs-theme=dark] .site-main .fs-wrap .fs-table tr.fs-h td { background: #343a40; }
[data-bs-theme=dark] .fs-li small { color: #adb5bd; }
[data-bs-theme=dark] .fs-li small.fs-warn { color: #fbbf24; }
[data-bs-theme=dark] .fs-neg, [data-bs-theme=dark] .tx-neg, [data-bs-theme=dark] .tx-err { color: #f87171 !important; }
[data-bs-theme=dark] .site-main .fs-wrap .fs-table th, [data-bs-theme=dark] .site-main .fs-wrap .fs-table th:first-child,
[data-bs-theme=dark] .site-main .tx-wrap .tx-table th { background: #343a40; color: #ced4da; border-color: #3d434a; }
[data-bs-theme=dark] .site-main .fs-wrap .fs-table td { background: #2b3035; border-color: #3d434a; }
[data-bs-theme=dark] .site-main .fs-wrap .fs-table tr.fs-tt td { border-top-color: #6c757d; }

/* Tax Report (tx-*) */
[data-bs-theme=dark] .site-main .tx-wrap .tx-sl, [data-bs-theme=dark] .site-main .tx-wrap .tx-row .tx-rl, [data-bs-theme=dark] .tx-foot .tx-li,
[data-bs-theme=dark] .tx-num, [data-bs-theme=dark] .tx-bt, [data-bs-theme=dark] .site-main .tx-wrap .tx-pm { color: #adb5bd; }
[data-bs-theme=dark] .site-main .tx-wrap .tx-big, [data-bs-theme=dark] .site-main .tx-wrap .tx-sv, [data-bs-theme=dark] .site-main .tx-wrap .tx-pn,
[data-bs-theme=dark] .site-main .tx-wrap .tx-pv, [data-bs-theme=dark] .site-main .tx-wrap .tx-row .tx-ra, [data-bs-theme=dark] .site-main .tx-wrap .tx-foot .tx-li.tx-b,
[data-bs-theme=dark] .tx-prop h4, [data-bs-theme=dark] .site-main .tx-wrap .tx-table td { color: #dee2e6; }
[data-bs-theme=dark] .tx-bars, [data-bs-theme=dark] .tx-foot, [data-bs-theme=dark] .tx-ch, [data-bs-theme=dark] .tx-prop, [data-bs-theme=dark] .tx-li.tx-b,
[data-bs-theme=dark] .tx-list .tx-r, [data-bs-theme=dark] .tx-map, [data-bs-theme=dark] .tx-pad { border-color: #3d434a !important; }
[data-bs-theme=dark] .tx-bk { background: #3d434a; }
[data-bs-theme=dark] .site-main .tx-wrap .tx-table td { background: #2b3035; border-color: #3d434a; }
[data-bs-theme=dark] .site-main .tx-wrap .tx-table tr.tx-tot td { background: #343a40; }
[data-bs-theme=dark] .tx-table a, [data-bs-theme=dark] .tx-list a, [data-bs-theme=dark] button.amt { color: #93c5fd; }
[data-bs-theme=dark] .tx-ok { color: #4ade80; }
[data-bs-theme=dark] .tx-pill { background: #17331f; color: #bbf7d0; }
[data-bs-theme=dark] .tx-pill.bad { background: #4a1d1d; color: #fecaca; }
[data-bs-theme=dark] .site-main .tx-wrap .tx-need { background: #42330f; color: #fde68a; }
/* Tax Report edit sheet keeps its light panel; give it dark text so it stays readable. */
[data-bs-theme=dark] .cv-pan { color: #212529; color-scheme: light; }
}

/* ===== Stage 3b (2026-11-03 prod review): contrast fixes. Screen only. ===== */
@media screen {
/* Report pages: page styles set #1f2937 on the wrapper and titles with !important. */
html[data-bs-theme=dark] .site-main .fs-wrap, html[data-bs-theme=dark] .site-main .tx-wrap { color: #dee2e6; }
html[data-bs-theme=dark] .site-main .fs-wrap h2.fs-title, html[data-bs-theme=dark] .site-main .tx-wrap h2.tx-title { color: #f8f9fa !important; }
html[data-bs-theme=dark] .site-main .fs-wrap .fs-muted, html[data-bs-theme=dark] .site-main .tx-wrap .tx-muted { color: #c3c9d0 !important; }
html[data-bs-theme=dark] .site-main .fs-wrap .fs-ch, html[data-bs-theme=dark] .site-main .tx-wrap .tx-ch,
html[data-bs-theme=dark] .site-main .fs-wrap .fs-net, html[data-bs-theme=dark] .site-main .fs-wrap .fs-li,
html[data-bs-theme=dark] .site-main .fs-wrap .fs-table td, html[data-bs-theme=dark] .site-main .tx-wrap .tx-li,
html[data-bs-theme=dark] .site-main .tx-wrap .tx-r { color: #dee2e6; }
html[data-bs-theme=dark] .site-main .fs-wrap .fs-li small, html[data-bs-theme=dark] .site-main .tx-wrap .tx-sub,
html[data-bs-theme=dark] .site-main .tx-wrap .tx-pm, html[data-bs-theme=dark] .site-main .tx-wrap .tx-sl,
html[data-bs-theme=dark] .site-main .tx-wrap .tx-row .tx-rl, html[data-bs-theme=dark] .site-main .tx-wrap .tx-num,
html[data-bs-theme=dark] .site-main .tx-wrap .tx-foot .tx-li:not(.tx-b) { color: #c3c9d0; }
html[data-bs-theme=dark] .site-main .fs-wrap .fs-li small.fs-warn { color: #fbbf24; }
html[data-bs-theme=dark] .site-main :is(.fs-wrap, .tx-wrap) a:not(.btn):not(.dropdown-item) { color: #93c5fd; }
html[data-bs-theme=dark] .site-main .fs-wrap .fs-neg, html[data-bs-theme=dark] .site-main .tx-wrap .tx-neg { color: #f87171 !important; }
html[data-bs-theme=dark] .tx-bk { background: #4b535c; }
html[data-bs-theme=dark] .fs-tabs a:not(.on), html[data-bs-theme=dark] .tx-tabs a:not(.on) { background: #3a4047; color: #f1f3f5; border: 1px solid #5c636a; }
/* Plain links that only had the old a:link black rule */
html[data-bs-theme=dark] a:not([class]):link, html[data-bs-theme=dark] a:not([class]):visited { color: #93c5fd; }
html[data-bs-theme=dark] a:not([class]):hover { color: #bfdbfe; }

/* Buttons: slate #4a5568 is too close to the dark background; give fills visible contrast. */
html[data-bs-theme=dark] body .btn-primary, html[data-bs-theme=dark] body .btn-primary-slate, html[data-bs-theme=dark] body .btn-dark,
html[data-bs-theme=dark] body a.btn-primary, html[data-bs-theme=dark] body a.btn-dark,
html[data-bs-theme=dark] body .btn-check:checked + .btn-outline-secondary, html[data-bs-theme=dark] body .btn-check:checked + .btn-outline-primary {
    background-color: #64748b !important; border-color: #7d8ba1 !important; color: #fff !important; }
html[data-bs-theme=dark] body .btn-primary:hover, html[data-bs-theme=dark] body .btn-primary-slate:hover, html[data-bs-theme=dark] body .btn-dark:hover {
    background-color: #77869c !important; border-color: #8b98ad !important; }
html[data-bs-theme=dark] body .btn-outline-primary:not(:hover), html[data-bs-theme=dark] body .btn-outline-dark:not(:hover) {
    background-color: transparent !important; border-color: #8b98ad !important; color: #e9ecef !important; }
html[data-bs-theme=dark] .pm-btn-solid-gray { background: #4b535c; border-color: #6c757d; color: #f8f9fa; }
html[data-bs-theme=dark] .pm-btn-solid-gray:hover, html[data-bs-theme=dark] .pm-btn-solid-gray.show { background: #5c656f; border-color: #858e98; color: #fff; }
html[data-bs-theme=dark] .btn-secondary { --bs-btn-bg: #5c636a; --bs-btn-border-color: #737b83; --bs-btn-color: #fff; }

/* Inputs, dropdowns, cards: visible borders and placeholders. */
html[data-bs-theme=dark] .form-control, html[data-bs-theme=dark] .form-select, html[data-bs-theme=dark] .input-group-text { border-color: #5c636a; }
html[data-bs-theme=dark] .form-control:focus, html[data-bs-theme=dark] .form-select:focus { border-color: #8bb4f8; }
html[data-bs-theme=dark] input::placeholder, html[data-bs-theme=dark] textarea::placeholder { color: #adb5bd; opacity: 1; }
html[data-bs-theme=dark] .card { --bs-card-border-color: #495057; border-color: #495057; }
html[data-bs-theme=dark] .text-muted { color: #b8bfc7 !important; }
html[data-bs-theme=dark] .dropdown-menu { border-color: #5c636a; }

/* Settings */
html[data-bs-theme=dark] .code-box { background-color: #2b3035; border-color: #6c757d; color: #f8f9fa !important; }
html[data-bs-theme=dark] .code-box .code-val, html[data-bs-theme=dark] .code-box span { color: #f8f9fa !important; }
}

/* ===== Stage 3c (2026-11-03 re-check): dark targets body #e9ecef, secondary >= #c3c9d0, red #ff8787, links #8ab4ff. Screen only. ===== */
@media screen {
html[data-bs-theme=dark] { --bs-body-color: #e9ecef; --bs-secondary-color: #c3c9d0; --bs-link-color: #8ab4ff; --bs-link-hover-color: #b3cdff; --bs-link-color-rgb: 138,180,255; }
html[data-bs-theme=dark] .text-muted, html[data-bs-theme=dark] .text-secondary, html[data-bs-theme=dark] .form-text,
html[data-bs-theme=dark] small.text-muted, html[data-bs-theme=dark] .small.text-muted { color: #c3c9d0 !important; }
html[data-bs-theme=dark] input::placeholder, html[data-bs-theme=dark] textarea::placeholder { color: #c3c9d0 !important; opacity: 1; }
html[data-bs-theme=dark] .form-control, html[data-bs-theme=dark] .form-select, html[data-bs-theme=dark] select { color: #e9ecef !important; }
html[data-bs-theme=dark] select option { color: #e9ecef; background-color: #2b3035; }

/* Report pages */
html[data-bs-theme=dark] .site-main :is(.fs-wrap, .tx-wrap),
html[data-bs-theme=dark] .site-main :is(.fs-wrap, .tx-wrap) :is(.fs-li, .fs-li span, .fs-ch, .fs-net, .fs-table td, .tx-mn, .tx-map, .tx-r, .tx-li, .tx-sv, .tx-pn, .tx-pv, .tx-ra, .tx-prop h4, .tx-table td, label) { color: #e9ecef !important; }
html[data-bs-theme=dark] .site-main .tx-wrap .tx-big, html[data-bs-theme=dark] .site-main :is(.fs-wrap, .tx-wrap) :is(h2.fs-title, h2.tx-title) { color: #ffffff !important; }
html[data-bs-theme=dark] .site-main :is(.fs-wrap, .tx-wrap) :is(.fs-muted, .tx-muted, .tx-sl, .tx-rl, .tx-pm, .tx-num, .tx-bt, .tx-sub, .fs-li small, .fs-filters label) { color: #c3c9d0 !important; }
html[data-bs-theme=dark] .site-main :is(.fs-wrap, .tx-wrap) .fs-li small.fs-warn { color: #ffc069 !important; }
html[data-bs-theme=dark] .site-main :is(.fs-wrap, .tx-wrap) :is(.fs-neg, .tx-neg, .tx-err, .tx-big.tx-neg) { color: #ff8787 !important; }
html[data-bs-theme=dark] .site-main :is(.fs-wrap, .tx-wrap) a:not(.btn):not(.dropdown-item) { color: #8ab4ff !important; }
html[data-bs-theme=dark] .fs-tabs a:not(.on), html[data-bs-theme=dark] .tx-tabs a:not(.on) { background: #495057 !important; color: #f8f9fa !important; border: 1px solid #6c757d; }
html[data-bs-theme=dark] .tx-bf.neg { background: #ff8787; }
/* Reports.aspx empty state */
html[data-bs-theme=dark] .rpt-page .text-muted, html[data-bs-theme=dark] .rpt-page .text-muted .bi { color: #c3c9d0 !important; }

/* Primary actions: solid blue so they read as buttons. */
html[data-bs-theme=dark] body .btn-primary, html[data-bs-theme=dark] body .btn-primary-slate, html[data-bs-theme=dark] body a.btn-primary {
    background-color: #2563eb !important; border-color: #3b82f6 !important; color: #fff !important; }
html[data-bs-theme=dark] body .btn-primary:hover, html[data-bs-theme=dark] body .btn-primary-slate:hover, html[data-bs-theme=dark] body .btn-primary:focus, html[data-bs-theme=dark] body .btn-primary-slate:focus {
    background-color: #1d4ed8 !important; border-color: #60a5fa !important; color: #fff !important; }
html[data-bs-theme=dark] body .btn-secondary { background-color: #495057 !important; border-color: #6c757d !important; color: #f8f9fa !important; }
html[data-bs-theme=dark] body .btn-secondary:hover { background-color: #5c636a !important; color: #fff !important; }

/* Dashboard */
html[data-bs-theme=dark] .alert-card .card-text, html[data-bs-theme=dark] .card-text, html[data-bs-theme=dark] .dash-strong,
html[data-bs-theme=dark] .task-name:not(.done), html[data-bs-theme=dark] .dash-title-link { color: #e9ecef !important; }
html[data-bs-theme=dark] .dash-muted, html[data-bs-theme=dark] .dash-wo-num, html[data-bs-theme=dark] .details-grid th, html[data-bs-theme=dark] #noResultsMessage { color: #c3c9d0 !important; }
html[data-bs-theme=dark] .modal-filter::placeholder, html[data-bs-theme=dark] .alert-search-box::placeholder { color: #c3c9d0 !important; }
html[data-bs-theme=dark] .wo-emerg-wrap, html[data-bs-theme=dark] .wo-emerg-wrap span, html[data-bs-theme=dark] .dash-amount { color: #ff8787 !important; }
html[data-bs-theme=dark] .task-badge-counter, html[data-bs-theme=dark] .pill-red, html[data-bs-theme=dark] .priority-Emergency { background: #5c2020; color: #ffc9c9 !important; }
}

/* ===== Stage 4 (2026-11-03 QA): global dark fixes + Properties, PropertyDetails, Tenants, TenantDetails,
   Maintenance, ManageBills, Settings. Screen only; light and print unchanged. ===== */
@media screen {
/* StyleSheet.css sets a:link/a:visited to black. */
html[data-bs-theme=dark] a:not([class]):is(:link, :visited) { color: #8ab4ff; }
html[data-bs-theme=dark] .dropdown-menu .dropdown-item:is(:link, :visited, [href]) { color: #e9ecef !important; }
html[data-bs-theme=dark] .dropdown-menu .dropdown-item:is(:hover, :focus) { color: #fff !important; background-color: #495057 !important; }
html[data-bs-theme=dark] .dropdown-menu .dropdown-item.text-danger { color: #ff8787 !important; }
html[data-bs-theme=dark] :is(th, .table th, thead) a:is(:link, :visited, [href]) { color: #e9ecef !important; }
html[data-bs-theme=dark] .site-main th { color: #c3c9d0; }

/* Inputs: consistent dark fill and visible border. */
html[data-bs-theme=dark] .site-main :is(input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]):not([type=range]):not([type=color]):not([type=file]), select, textarea, .form-control, .form-select) {
  background-color: #2b3035 !important; color: #e9ecef !important; border: 1px solid #6c757d !important; }
html[data-bs-theme=dark] .site-main :is(input, select, textarea, .form-control, .form-select):focus { border-color: #8ab4ff !important; }
html[data-bs-theme=dark] .site-main :is(input, textarea)::placeholder { color: #9aa1a9 !important; }
html[data-bs-theme=dark] .site-main :is(input, select, textarea):disabled, html[data-bs-theme=dark] .site-main .form-control[readonly] { background-color: #343a40 !important; color: #c3c9d0 !important; }

/* Light/white icon buttons -> dark secondary. */
html[data-bs-theme=dark] :is(.btn-light, .btn-outline-secondary, .btn-outline-dark, .st-more-icon, .br-fbtn, .lg-btn-slate, .pm-btn-solid-gray, .btn-white) {
  background-color: #495057 !important; border: 1px solid #6c757d !important; color: #f1f3f5 !important; }
html[data-bs-theme=dark] :is(.btn-light, .btn-outline-secondary, .btn-outline-dark, .st-more-icon, .br-fbtn, .lg-btn-slate, .pm-btn-solid-gray, .btn-white):is(:hover, :focus-visible, .show, :active) {
  background-color: #5c636a !important; border-color: #8a939b !important; color: #fff !important; }
html[data-bs-theme=dark] :is(.btn-light, .btn-outline-secondary, .st-more-icon, .br-fbtn, .lg-btn-slate, .pm-btn-solid-gray) i { color: inherit !important; }
html[data-bs-theme=dark] .btn-close { filter: invert(1) grayscale(100%) brightness(200%) !important; opacity: .8; }
html[data-bs-theme=dark] .btn-close:hover { opacity: 1; }
html[data-bs-theme=dark] .site-main .cf-wrap :is(.cf-neg, .cf-sums b.cf-neg, .cf-table td.cf-neg), html[data-bs-theme=dark] .site-main .cf-neg { color: #ff8787 !important; }

/* Bootstrap utility whites. */
html[data-bs-theme=dark] .site-main :is(.bg-white, .bg-light, .card-header.bg-white, .card-footer) { background-color: #2b3035 !important; }
html[data-bs-theme=dark] .site-main .text-dark { color: #e9ecef !important; }
html[data-bs-theme=dark] .site-main .text-muted, html[data-bs-theme=dark] .site-main .text-secondary, html[data-bs-theme=dark] .site-main .small.text-muted { color: #c3c9d0 !important; }
html[data-bs-theme=dark] .site-main .card { background-color: #2b3035; color: #e9ecef; border-color: #495057; }
html[data-bs-theme=dark] .site-main .card-header { background-color: #343a40; color: #e9ecef; border-color: #495057; }
html[data-bs-theme=dark] .site-main .list-group-item { background-color: #2b3035; color: #e9ecef; border-color: #495057; }
html[data-bs-theme=dark] .site-main .list-group-item.active { background-color: #2563eb; border-color: #2563eb; color: #fff; }
html[data-bs-theme=dark] .site-main .table { --bs-table-bg: #2b3035; --bs-table-color: #e9ecef; --bs-table-border-color: #495057; --bs-table-striped-bg: #30363b; --bs-table-hover-bg: #343a40; --bs-table-hover-color: #fff; }
html[data-bs-theme=dark] .site-main .table > thead > tr > th, html[data-bs-theme=dark] .site-main .table-light > * > * { background-color: #343a40 !important; color: #c3c9d0 !important; border-color: #495057 !important; }
html[data-bs-theme=dark] .site-main .badge.bg-secondary-subtle { background-color: #495057 !important; color: #e9ecef !important; border-color: #6c757d !important; }

/* Settings */
html[data-bs-theme=dark] .pay-card, html[data-bs-theme=dark] .pay-panel { background: #2b3035 !important; border-color: #495057 !important; }
html[data-bs-theme=dark] .pay-savebar { background: rgba(43,48,53,.97) !important; border-color: #495057 !important; color: #e9ecef; }
html[data-bs-theme=dark] .pay-card-title, html[data-bs-theme=dark] .pay-tile-title { color: #f1f3f5 !important; }
html[data-bs-theme=dark] :is(.pay-card-desc, .pay-tile-desc, .pay-lbl, .pay-sub-title) { color: #c3c9d0 !important; }
html[data-bs-theme=dark] .pref-page :is(.form-text, .text-muted, small, .small) { color: #c3c9d0; }
html[data-bs-theme=dark] .pref-page :is(.card-footer, [class*=savebar], [class*=save-bar]) { background: #2b3035 !important; border-color: #495057 !important; }
html[data-bs-theme=dark] .pref-page .code-box { background: #343a40 !important; color: #f1f3f5 !important; border-color: #5c636a !important; }
html[data-bs-theme=dark] #btnCopyCode, html[data-bs-theme=dark] #btnCopyCode i { color: #f1f3f5 !important; }

/* ManageBills (cf-table outside CashFlow) */
html[data-bs-theme=dark] .site-main .cf-table th { background: #343a40 !important; color: #c3c9d0 !important; }
html[data-bs-theme=dark] .site-main .cf-table td { background: #2b3035 !important; color: #e9ecef !important; border-color: #495057 !important; }
html[data-bs-theme=dark] .site-main .cf-table tr:is(.inactive, .cf-inactive, .text-muted) td { color: #c3c9d0 !important; opacity: 1 !important; }

/* Tax report pills */
html[data-bs-theme=dark] .tx-tabs a:not(.on) { background: #495057 !important; color: #f1f3f5 !important; }
html[data-bs-theme=dark] .tx-tabs a.on { background: #2563eb !important; color: #fff !important; }

/* Generic page shells: nav panels / headers / names */
html[data-bs-theme=dark] .site-main :is(.nav-tabs .nav-link, .nav-pills .nav-link):not(.active) { color: #e9ecef; }
html[data-bs-theme=dark] .site-main :is(h1, h2, h3, h4, h5, h6, .h4, .h5, .card-title) { color: #f1f3f5; }
html[data-bs-theme=dark] .site-main .text-primary { color: #8ab4ff !important; }
}

/* ===== Stage 5 (2026-11-03 live retest after 1475572). Screen only; light and print unchanged. ===== */
@media screen {
/* Settings > Charges & Late Fees: Tenant reminders pause strip */
html[data-bs-theme=dark] .pref-page .card-body > .d-flex[style*="background"] { background: #343a40 !important; border-color: #495057 !important; }
/* BankStatements */
html[data-bs-theme=dark] .site-main .bs-wrap { color: #e9ecef; }
html[data-bs-theme=dark] .site-main .bs-wrap h2.bs-title { color: #f1f3f5 !important; }
html[data-bs-theme=dark] .site-main .bs-wrap :is(.bs-muted, .bs-sub, .bs-empty) { color: #c3c9d0 !important; }
html[data-bs-theme=dark] .site-main .bs-wrap .bs-card { background: #2b3035 !important; border-color: #495057 !important; }
html[data-bs-theme=dark] .site-main .bs-wrap .bs-yr { background: #343a40 !important; color: #c3c9d0 !important; border-color: #495057 !important; }
html[data-bs-theme=dark] .site-main .bs-wrap .bs-row { border-color: #495057 !important; }
html[data-bs-theme=dark] .btn.bs-slate { background: #495057 !important; border-color: #6c757d !important; color: #f1f3f5 !important; }
html[data-bs-theme=dark] .btn.bs-slate:is(:hover, :focus-visible, .show) { background: #5c636a !important; border-color: #8a939b !important; }
html[data-bs-theme=dark] .btn.bs-blue { background: #2563eb !important; border-color: #2563eb !important; }
html[data-bs-theme=dark] .btn.bs-red { background: #c92a2a !important; border-color: #c92a2a !important; }
/* Maintenance secondary buttons (Filter, Reset) */
html[data-bs-theme=dark] .wo-btn.wo-btn-secondary, html[data-bs-theme=dark] a.wo-btn.wo-btn-secondary:is(:link, :visited) { background-color: #495057 !important; border-color: #6c757d !important; color: #f1f3f5 !important; }
html[data-bs-theme=dark] .wo-btn.wo-btn-secondary:hover { background-color: #5c636a !important; border-color: #8a939b !important; color: #fff !important; }
html[data-bs-theme=dark] .wo-btn.wo-btn-secondary svg { color: inherit; stroke: currentColor; }
/* Bank Register "Today" placeholder patch over the To date */
html[data-bs-theme=dark] .br-ph { background: #2b3035 !important; color: #c3c9d0 !important; }
/* Date inputs and calendar buttons */
html[data-bs-theme=dark] input:is([type=date], [type=month], [type=datetime-local], [type=time]) { color-scheme: dark; }
html[data-bs-theme=dark] input::-webkit-calendar-picker-indicator { filter: invert(1) brightness(1.4); opacity: .85; }
html[data-bs-theme=dark] .input-group-text { background-color: #495057 !important; border-color: #6c757d !important; color: #f1f3f5 !important; }
/* Tax report inactive pills (beat .tx-wrap link rule) */
html[data-bs-theme=dark] .site-main .tx-wrap .tx-tabs a:not(.on), html[data-bs-theme=dark] .site-main .tx-tabs a:not(.on):is(:link, :visited) { background: #495057 !important; color: #e9ecef !important; }
html[data-bs-theme=dark] .site-main .tx-wrap .tx-tabs a.on { background: #2563eb !important; color: #fff !important; }
/* Success-subtle badges (TenantDetails Lease Signer) */
html[data-bs-theme=dark] .badge.bg-success-subtle, html[data-bs-theme=dark] .bg-success-subtle.text-success { background-color: #17331f !important; color: #75d99c !important; border-color: #2f6b45 !important; }
/* Pencil/edit icon buttons */
html[data-bs-theme=dark] .td-icon-btn.td-icon-edit, html[data-bs-theme=dark] .td-icon-btn.td-icon-edit i, html[data-bs-theme=dark] .td-icon-edit .bi-pencil { color: #c3c9d0 !important; }
html[data-bs-theme=dark] .td-icon-btn.td-icon-edit:hover, html[data-bs-theme=dark] .td-icon-btn.td-icon-edit:hover i { color: #fff !important; }
/* Report grid links (Mortgages address etc.) */
html[data-bs-theme=dark] .site-main :is(table, .table) td a:not(.btn):not(.dropdown-item):is(:link, :visited, [href]) { color: #8ab4ff !important; }
}


/* iOS WebKit date fields: native appearance is taller than a select, the value sits high, and an empty
   field collapses. Honor local .form-control / select height; keep a min-height so empty fields stay even. */
input:is([type=date], [type=month], [type=datetime-local], [type=time]) {
    -webkit-appearance: none;
    appearance: none;
    display: inline-flex;
    align-items: center;
    box-sizing: border-box;
    line-height: 1.25;
    min-height: 2.25rem;
}
input:is([type=date], [type=month], [type=datetime-local], [type=time])::-webkit-date-and-time-value {
    text-align: left;
    margin: 0;
    min-height: 1.2em;
    width: 100%;
}
input:is([type=date], [type=month], [type=datetime-local], [type=time])::-webkit-datetime-edit,
input:is([type=date], [type=month], [type=datetime-local], [type=time])::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
    display: inline-flex;
    align-items: center;
    line-height: inherit;
}

/* ===== Staff format review (2026-11-18). Screen only; light and print unchanged unless noted. ===== */
@media screen {
/* Avatar menu: Logout was dark red on the dark menu. */
html[data-bs-theme=dark] :is(.pm-acct-danger, .pm-acct-danger:link, .pm-acct-danger:visited, .pm-acct-danger i) { color: #ff8787 !important; }

/* Work Orders: New Work Order is the standard dark-theme primary (blue), like every other page's add button. */
html[data-bs-theme=dark] body .wo-btn-primary, html[data-bs-theme=dark] body a.wo-btn-primary:is(:link, :visited) {
    background-color: #2563eb !important; border-color: #3b82f6 !important; color: #fff !important; }
html[data-bs-theme=dark] body .wo-btn-primary:is(:hover, :focus-visible) { background-color: #1d4ed8 !important; border-color: #60a5fa !important; color: #fff !important; }

/* Chats page (ChatsUi in .chp-wrap): dark cards instead of white panels. */
html[data-bs-theme=dark] .chp-wrap .ch-wrap { color: #e9ecef; }
html[data-bs-theme=dark] .chp-wrap :is(.ch-list, .ch-empty, .ch-compose, .ch-card) { background: #2b3035; border-color: #495057; }
html[data-bs-theme=dark] .chp-wrap :is(.ch-item, .ch-li) { border-bottom-color: #3d434a; color: #e9ecef; }
@media (hover: hover) and (pointer: fine) { html[data-bs-theme=dark] .chp-wrap .ch-item:hover { background: #343a40; color: #e9ecef; } }
html[data-bs-theme=dark] .chp-wrap :is(.ch-item-t, .ch-item.unread .ch-item-p, .ch-empty-h, .ch-h, .ch-lbl, .ch-p, .ch-chk, .ch-back) { color: #f1f3f5; }
html[data-bs-theme=dark] .chp-wrap :is(.ch-item-d, .ch-item-s, .ch-item-p, .ch-none, .ch-empty, .ch-note, .ch-day, .ch-meta, .ch-opt, .ch-fname) { color: #c3c9d0; }
html[data-bs-theme=dark] .chp-wrap .ch-empty .bi { color: #adb5bd; }
html[data-bs-theme=dark] .chp-wrap .ch-av { background: #495057; color: #e9ecef; }
html[data-bs-theme=dark] .chp-wrap .ch-av-team { background: #1c2b45; color: #bfdbfe; }
html[data-bs-theme=dark] .chp-wrap .ch-badge { background: #2563eb; color: #fff; }
html[data-bs-theme=dark] .chp-wrap .ch-pill { background: #343a40; border-color: #495057; color: #e9ecef; }
html[data-bs-theme=dark] .chp-wrap .ch-tabs { background: #343a40; }
html[data-bs-theme=dark] .chp-wrap .ch-tab { color: #e9ecef; }
html[data-bs-theme=dark] .chp-wrap .ch-tab.on { background: #495057; color: #fff; box-shadow: none; }
html[data-bs-theme=dark] .chp-wrap .ch-tab:focus-visible { outline: 2px solid #8ab4ff; outline-offset: 1px; }
html[data-bs-theme=dark] .chp-wrap :is(.ch-sel, .ch-in, .ch-mbox) { background: #2b3035; color: #e9ecef; border-color: #6c757d; }
html[data-bs-theme=dark] .chp-wrap .ch-msgs { background: #212529; border-color: #495057; }
html[data-bs-theme=dark] .chp-wrap .ch-bub { background: #343a40; border-color: #495057; color: #f1f3f5; }
html[data-bs-theme=dark] .chp-wrap .ch-row.mine .ch-bub { background: #2563eb; border-color: #2563eb; color: #fff; }
html[data-bs-theme=dark] .chp-wrap .ch-del { background: #2b3035 !important; border-color: #495057 !important; color: #c3c9d0 !important; }
html[data-bs-theme=dark] .chp-wrap :is(.ch-card-f, .ch-modal-f) { border-top-color: #3d434a; }
html[data-bs-theme=dark] .chp-wrap :is(.ch-pins button, .ch-btn-light, a.ch-btn-light:is(:link, :visited)) { background: #495057 !important; color: #f1f3f5 !important; }
html[data-bs-theme=dark] .chp-wrap :is(.ch-btn-light i, .ch-btn-light .bi, .ch-btn-light span) { color: #f1f3f5 !important; }
html[data-bs-theme=dark] .chp-wrap :is(.ch-clip, .ch-delbtn) { color: #ced4da; }
/* Chat list ⋯: icon only, borderless, 40px target, light glyph. */
html[data-bs-theme=dark] .chp-wrap .ch-more { color: #ced4da; }
@media (hover: hover) and (pointer: fine) { html[data-bs-theme=dark] .chp-wrap .ch-more:hover { background: rgba(255, 255, 255, .08); color: #fff; } }
html[data-bs-theme=dark] .chp-wrap .ch-more:focus-visible { outline: 2px solid #8ab4ff; outline-offset: 2px; }

/* Login: the card was white on the dark page, its heading pale gray on white, and its fields dark boxes. */
html[data-bs-theme=dark] .login-card { background: #2b3035; border-color: #495057; box-shadow: 0 4px 16px rgba(0, 0, 0, .35); }
html[data-bs-theme=dark] .login-card .login-header h2 { color: #f8f9fa !important; }
html[data-bs-theme=dark] .login-card .login-header p, html[data-bs-theme=dark] .login-card .remember-hint, html[data-bs-theme=dark] .login-card .link-panel p { color: #c3c9d0; }
html[data-bs-theme=dark] .login-card :is(.form-group label, .remember-check, .remember-check label) { color: #e9ecef; }
html[data-bs-theme=dark] .login-card .form-control-custom,
html[data-bs-theme=dark] body .site-main .login-card :is(input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]):not([type=range]):not([type=color]):not([type=file]), .form-control).form-control-custom {
    background-color: #212529 !important; color: #f1f3f5 !important; border: 1px solid #6c757d !important; }
html[data-bs-theme=dark] body .site-main .login-card :is(input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]):not([type=range]):not([type=color]):not([type=file]), .form-control).form-control-custom:focus {
    border-color: #8ab4ff !important; box-shadow: 0 0 0 3px rgba(138, 180, 255, .2); }
html[data-bs-theme=dark] .login-card .btn-login { background-color: #2563eb; border-color: #2563eb; color: #fff; }
html[data-bs-theme=dark] .login-card .btn-login:hover { background-color: #1d4ed8; border-color: #1d4ed8; }
html[data-bs-theme=dark] .login-card .btn-alt { background: #343a40; color: #f1f3f5; border-color: #6c757d; }
html[data-bs-theme=dark] .login-card .btn-alt:hover { background: #495057; color: #fff; }
html[data-bs-theme=dark] .login-card .link-panel { background: #212529; border-color: #495057; }
html[data-bs-theme=dark] .login-card .login-divider { color: #c3c9d0; }
html[data-bs-theme=dark] .login-card .login-divider::before, html[data-bs-theme=dark] .login-card .login-divider::after { background: #495057; }
html[data-bs-theme=dark] .login-card .login-footer-links { color: #c3c9d0; border-top-color: #495057; }
html[data-bs-theme=dark] .login-card .login-footer-links a { color: #8ab4ff; }
html[data-bs-theme=dark] .login-card .remember-check input[type=checkbox] { accent-color: #2563eb; }
}
