html.rrs-theme-dark {
    color-scheme: dark;
    --primary: #38bdf8;
    --primary-light: #7dd3fc;
    --primary-dark: #0ea5e9;
    --secondary: #fbbf24;
    --success: #34d399;
    --danger: #fb7185;
    --warning: #f59e0b;
    --info: #67e8f9;
    --light: #111827;
    --dark: #e5e7eb;
    --gray-100: #0f172a;
    --gray-200: #111827;
    --gray-300: #1f2937;
    --gray-400: #334155;
    --gray-500: #64748b;
    --gray-600: #94a3b8;
    --gray-700: #cbd5e1;
    --gray-800: #e2e8f0;
    --gray-900: #f8fafc;
    --box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 12px 28px rgba(2, 6, 23, 0.18);
    --box-shadow-lg: 0 20px 46px rgba(0, 0, 0, 0.42);

    --color-primary: #38bdf8;
    --color-primary-light: rgba(56, 189, 248, 0.16);
    --color-primary-dark: #7dd3fc;
    --color-secondary: #fbbf24;
    --color-secondary-light: rgba(251, 191, 36, 0.16);
    --color-accent: #fb7185;
    --color-accent-light: rgba(251, 113, 133, 0.14);
    --color-success: #34d399;
    --color-success-light: rgba(52, 211, 153, 0.14);
    --color-surface: #111827;
    --color-background: #07111f;
    --color-surface-raised: #151f2f;
    --color-surface-elevated: #1b2738;
    --color-border: rgba(148, 163, 184, 0.24);
    --color-border-focus: #38bdf8;
    --color-text-primary: #e5e7eb;
    --color-text-secondary: #cbd5e1;
    --color-text-muted: #94a3b8;
    --role-accent-soft: rgba(56, 189, 248, 0.18);
    --role-accent-strong: #7dd3fc;
    --bs-body-bg: #07111f;
    --bs-body-color: #e5e7eb;
    --bs-secondary-color: #94a3b8;
    --bs-tertiary-bg: #111827;
    --bs-border-color: rgba(148, 163, 184, 0.24);
}

html.rrs-theme-dark .role-theme-super-admin {
    --role-accent: #5d8bd6;
    --role-accent-soft: rgba(93, 139, 214, 0.14);
    --role-accent-strong: #9ec5ff;
    --color-sidebar: #12243a;
    --color-sidebar-text: #dbeafe;
    --color-sidebar-top: #1b3450;
    --color-sidebar-mid: #12243a;
    --color-sidebar-bottom: #0c1929;
    --color-sidebar-border: rgba(158, 197, 255, 0.16);
    --color-sidebar-hover: rgba(158, 197, 255, 0.08);
    --color-sidebar-panel: rgba(158, 197, 255, 0.06);
}

html.rrs-theme-dark .role-theme-admin {
    --role-accent: #c77a31;
    --role-accent-soft: rgba(199, 122, 49, 0.14);
    --role-accent-strong: #f2b36f;
    --color-sidebar: #332316;
    --color-sidebar-text: #ffedd5;
    --color-sidebar-top: #4a311d;
    --color-sidebar-mid: #332316;
    --color-sidebar-bottom: #24170d;
    --color-sidebar-border: rgba(242, 179, 111, 0.16);
    --color-sidebar-hover: rgba(242, 179, 111, 0.08);
    --color-sidebar-panel: rgba(242, 179, 111, 0.055);
}

html.rrs-theme-dark .role-theme-manager {
    --role-accent: #8b75d6;
    --role-accent-soft: rgba(139, 117, 214, 0.14);
    --role-accent-strong: #c4b5fd;
    --color-sidebar: #241f3a;
    --color-sidebar-text: #ede9fe;
    --color-sidebar-top: #332b55;
    --color-sidebar-mid: #241f3a;
    --color-sidebar-bottom: #19152b;
    --color-sidebar-border: rgba(196, 181, 253, 0.16);
    --color-sidebar-hover: rgba(196, 181, 253, 0.08);
    --color-sidebar-panel: rgba(196, 181, 253, 0.055);
}

html.rrs-theme-dark .role-theme-employee {
    --role-accent: #3fa476;
    --role-accent-soft: rgba(63, 164, 118, 0.14);
    --role-accent-strong: #86efac;
    --color-sidebar: #172d27;
    --color-sidebar-text: #dcfce7;
    --color-sidebar-top: #214137;
    --color-sidebar-mid: #172d27;
    --color-sidebar-bottom: #0f201b;
    --color-sidebar-border: rgba(134, 239, 172, 0.16);
    --color-sidebar-hover: rgba(134, 239, 172, 0.08);
    --color-sidebar-panel: rgba(134, 239, 172, 0.055);
}

html.rrs-theme-dark body,
html.rrs-theme-dark body.dashboard-page,
html.rrs-theme-dark .bg-light {
    color: var(--color-text-primary);
    background:
        radial-gradient(circle at top right, rgba(56, 189, 248, 0.12), transparent 34%),
        linear-gradient(180deg, #07111f 0%, #0b1220 58%, #050b13 100%) !important;
}

html.rrs-theme-dark h1,
html.rrs-theme-dark h2,
html.rrs-theme-dark h3,
html.rrs-theme-dark h4,
html.rrs-theme-dark h5,
html.rrs-theme-dark h6,
html.rrs-theme-dark .h1,
html.rrs-theme-dark .h2,
html.rrs-theme-dark .h3,
html.rrs-theme-dark .h4,
html.rrs-theme-dark .h5,
html.rrs-theme-dark .h6 {
    color: var(--color-text-primary);
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.16);
}

html.rrs-theme-dark a {
    color: #7dd3fc;
}

html.rrs-theme-dark a:hover,
html.rrs-theme-dark a:focus-visible {
    color: #bae6fd;
}

html.rrs-theme-dark .text-muted,
html.rrs-theme-dark small.text-muted,
html.rrs-theme-dark .form-text {
    color: var(--color-text-muted) !important;
}

html.rrs-theme-dark p,
html.rrs-theme-dark .content-area p,
html.rrs-theme-dark .content-area li,
html.rrs-theme-dark .content-area dd,
html.rrs-theme-dark .content-area .small,
html.rrs-theme-dark .content-area small {
    color: var(--color-text-secondary);
}

html.rrs-theme-dark .text-dark,
html.rrs-theme-dark .text-body,
html.rrs-theme-dark .fw-semibold,
html.rrs-theme-dark .fw-bold,
html.rrs-theme-dark strong {
    color: var(--color-text-primary) !important;
}

html.rrs-theme-dark .app-shell {
    background: transparent;
}

html.rrs-theme-dark .main-panel,
html.rrs-theme-dark .content-area {
    background: transparent;
}

@media (max-width: 768px) {
    html.rrs-theme-dark,
    html.rrs-theme-dark body,
    html.rrs-theme-dark body.dashboard-page,
    html.rrs-theme-dark .app-shell,
    html.rrs-theme-dark .main-panel,
    html.rrs-theme-dark .content-area,
    html.rrs-theme-dark .mobile-topbar,
    html.rrs-theme-dark .mobile-bottom-nav {
        border-radius: 0 !important;
    }

    html.rrs-theme-dark body,
    html.rrs-theme-dark body.dashboard-page {
        background: #07111f !important;
    }
}

html.rrs-theme-dark .content-area {
    background:
        radial-gradient(circle at top left, rgba(56, 189, 248, 0.05), transparent 28%),
        linear-gradient(180deg, rgba(8, 14, 24, 0.34) 0%, rgba(5, 11, 19, 0.08) 100%);
}

html.rrs-theme-dark .topbar-custom {
    background:
        linear-gradient(180deg, rgba(17, 24, 39, 0.96) 0%, rgba(15, 23, 42, 0.94) 100%);
    border-bottom-color: rgba(148, 163, 184, 0.2);
    box-shadow: none;
    backdrop-filter: none;
}

html.rrs-theme-dark .topbar-title {
    color: var(--color-text-primary);
}

html.rrs-theme-dark .topbar-text,
html.rrs-theme-dark .topbar-clock-meta,
html.rrs-theme-dark .topbar-profile-role {
    color: var(--color-text-muted);
}

html.rrs-theme-dark .topbar-action-group,
html.rrs-theme-dark .topbar-profile-time-group {
    background:
        radial-gradient(circle at top right, color-mix(in srgb, var(--role-accent) 16%, transparent 84%), transparent 44%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.96) 0%, rgba(17, 24, 39, 0.92) 100%);
    border-color: color-mix(in srgb, var(--role-accent-strong) 18%, rgba(148, 163, 184, 0.22) 82%);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.26);
}

html.rrs-theme-dark .topbar-actions .icon-action-btn {
    color: var(--color-text-secondary);
}

html.rrs-theme-dark .sidebar-link {
    color: color-mix(in srgb, var(--color-sidebar-text) 78%, rgba(255, 255, 255, 0.04) 22%);
}

html.rrs-theme-dark .sidebar-link i {
    color: color-mix(in srgb, var(--color-sidebar-text) 72%, rgba(255, 255, 255, 0.08) 28%);
}

html.rrs-theme-dark .sidebar-link:hover,
html.rrs-theme-dark .sidebar-link:focus-visible {
    color: color-mix(in srgb, var(--color-sidebar-text) 92%, #ffffff 8%);
}

html.rrs-theme-dark .sidebar-link:hover i,
html.rrs-theme-dark .sidebar-link:focus-visible i {
    color: color-mix(in srgb, var(--color-sidebar-text) 88%, var(--role-accent) 12%);
}

html.rrs-theme-dark .sidebar-link.active {
    color: #f8fafc;
}

html.rrs-theme-dark .topbar-actions .icon-action-btn:hover,
html.rrs-theme-dark .topbar-actions .icon-action-btn:focus-visible {
    color: var(--role-accent-strong);
}

html.rrs-theme-dark .topbar-clock-panel {
    border-color: rgba(148, 163, 184, 0.2);
}

html.rrs-theme-dark .topbar-clock-time {
    color: var(--color-text-primary);
}

html.rrs-theme-dark .topbar-badge {
    border-color: #111827;
}

html.rrs-theme-dark .sidebar {
    box-shadow: none;
}

html.rrs-theme-dark .sidebar-title,
html.rrs-theme-dark .user-name {
    color: #f8fafc;
}

html.rrs-theme-dark .role-accent-badge {
    background: color-mix(in srgb, var(--role-accent-soft) 88%, rgba(15, 23, 42, 0.12) 12%);
    color: var(--role-accent-strong);
}

html.rrs-theme-dark .card,
html.rrs-theme-dark .offcanvas,
html.rrs-theme-dark .list-group-item,
html.rrs-theme-dark .toast,
html.rrs-theme-dark .popover {
    color: var(--color-text-primary);
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.96) 0%, rgba(14, 20, 32, 0.98) 100%);
    border-color: rgba(148, 163, 184, 0.22);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

html.rrs-theme-dark .card-title,
html.rrs-theme-dark .modal-title,
html.rrs-theme-dark .offcanvas-title,
html.rrs-theme-dark .content-area .card-title,
html.rrs-theme-dark .content-area .modal-title {
    color: var(--color-text-primary) !important;
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.01em;
}

html.rrs-theme-dark .card-subtitle,
html.rrs-theme-dark .content-area .card-subtitle,
html.rrs-theme-dark .content-area .section-kicker,
html.rrs-theme-dark .content-area .settings-nav-category,
html.rrs-theme-dark .content-area .rates-nav-category,
html.rrs-theme-dark .content-area .room-section-kicker {
    color: var(--color-text-muted) !important;
    letter-spacing: 0.08em;
}

html.rrs-theme-dark .modal-content,
html.rrs-theme-dark .dropdown-menu {
    color: var(--color-text-primary);
    background:
        radial-gradient(circle at top right, rgba(56, 189, 248, 0.08), transparent 34%),
        linear-gradient(180deg, rgba(24, 33, 48, 0.98) 0%, rgba(18, 26, 40, 0.99) 100%);
    border-color: rgba(148, 163, 184, 0.26);
    box-shadow: 0 20px 42px rgba(0, 0, 0, 0.34);
}

html.rrs-theme-dark .card.border-0,
html.rrs-theme-dark .border,
html.rrs-theme-dark .border-top,
html.rrs-theme-dark .border-bottom,
html.rrs-theme-dark .border-start,
html.rrs-theme-dark .border-end {
    border-color: rgba(148, 163, 184, 0.22) !important;
}

html.rrs-theme-dark .card-header,
html.rrs-theme-dark .card-footer,
html.rrs-theme-dark .modal-header,
html.rrs-theme-dark .modal-footer,
html.rrs-theme-dark .offcanvas-header,
html.rrs-theme-dark .offcanvas-footer,
html.rrs-theme-dark .dropdown-divider {
    background: rgba(28, 39, 57, 0.72);
    border-color: rgba(148, 163, 184, 0.16);
}

html.rrs-theme-dark .rrs-confirm-message {
    color: var(--color-text-primary);
}

html.rrs-theme-dark .rrs-confirm-subtitle {
    color: var(--color-text-muted);
}

html.rrs-theme-dark .bg-white,
html.rrs-theme-dark .bg-light,
html.rrs-theme-dark .table-light,
html.rrs-theme-dark .list-group-flush > .list-group-item,
html.rrs-theme-dark .sa-overview-tile,
html.rrs-theme-dark .settings-security-card,
html.rrs-theme-dark .settings-account-hero,
html.rrs-theme-dark .availability-overview-card,
html.rrs-theme-dark .notifications-card,
html.rrs-theme-dark .reservation-view-overview-card,
html.rrs-theme-dark .roles-assignment-card,
html.rrs-theme-dark .rm-card,
html.rrs-theme-dark .form-step-card {
    color: var(--color-text-primary);
    background: rgba(19, 28, 42, 0.9) !important;
    border-color: rgba(148, 163, 184, 0.22) !important;
}

html.rrs-theme-dark .dropdown-item,
html.rrs-theme-dark .dropdown-item-text {
    color: var(--color-text-primary);
}

html.rrs-theme-dark .dropdown-item:hover,
html.rrs-theme-dark .dropdown-item:focus {
    color: #e0f2fe;
    background: rgba(56, 189, 248, 0.12);
}

html.rrs-theme-dark .topbar-menu-panel {
    color: var(--color-text-primary);
    background:
        radial-gradient(circle at top right, rgba(56, 189, 248, 0.08), transparent 34%),
        linear-gradient(180deg, rgba(24, 33, 48, 0.98) 0%, rgba(18, 26, 40, 0.99) 100%);
    border-color: rgba(148, 163, 184, 0.26);
    box-shadow: 0 20px 42px rgba(0, 0, 0, 0.34);
}

html.rrs-theme-dark .topbar-menu-item,
html.rrs-theme-dark .topbar-profile-menu-header {
    color: var(--color-text-primary);
}

html.rrs-theme-dark .topbar-menu-item:hover,
html.rrs-theme-dark .topbar-menu-item:focus {
    color: #e0f2fe;
    background: rgba(56, 189, 248, 0.12);
}

html.rrs-theme-dark .topbar-notification-menu .topbar-dropdown-header.border-bottom,
html.rrs-theme-dark .topbar-notification-menu .topbar-dropdown-header.border-top {
    background:
        linear-gradient(180deg, rgba(31, 41, 55, 0.96) 0%, rgba(20, 29, 43, 0.98) 100%) !important;
    border-color: rgba(148, 163, 184, 0.18) !important;
}

html.rrs-theme-dark .topbar-notification-menu .topbar-notification-item {
    border-bottom-color: rgba(148, 163, 184, 0.18);
}

html.rrs-theme-dark .topbar-notification-menu .text-muted,
html.rrs-theme-dark .topbar-notification-menu small {
    color: var(--color-text-muted) !important;
}

html.rrs-theme-dark .topbar-count {
    background: linear-gradient(180deg, rgba(127, 29, 29, 0.34) 0%, rgba(159, 18, 57, 0.28) 100%);
    color: #fda4af;
    box-shadow: inset 0 0 0 1px rgba(251, 113, 133, 0.16);
}

html.rrs-theme-dark .topbar-notification-icon {
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.14);
}

html.rrs-theme-dark .topbar-notification-menu .btn.btn-link.btn-sm {
    color: #7dd3fc;
}

html.rrs-theme-dark .topbar-notification-menu .btn.btn-link.btn-sm:hover,
html.rrs-theme-dark .topbar-notification-menu .btn.btn-link.btn-sm:focus {
    color: #bae6fd;
}

html.rrs-theme-dark .btn-close {
    filter: invert(1) grayscale(100%) brightness(180%);
}

html.rrs-theme-dark .btn-outline-secondary,
html.rrs-theme-dark .btn-outline-primary,
html.rrs-theme-dark .btn-light {
    color: var(--color-text-secondary);
    background: rgba(15, 23, 42, 0.76);
    border-color: rgba(148, 163, 184, 0.28);
}

html.rrs-theme-dark .btn-outline-secondary:hover,
html.rrs-theme-dark .btn-outline-primary:hover,
html.rrs-theme-dark .btn-light:hover {
    color: #f8fafc;
    background: rgba(56, 189, 248, 0.16);
    border-color: rgba(125, 211, 252, 0.42);
}

html.rrs-theme-dark .form-control,
html.rrs-theme-dark .form-select,
html.rrs-theme-dark .input-group-text,
html.rrs-theme-dark textarea,
html.rrs-theme-dark input,
html.rrs-theme-dark select {
    color: var(--color-text-primary);
    background-color: rgba(2, 6, 23, 0.5);
    border-color: rgba(148, 163, 184, 0.28);
}

html.rrs-theme-dark .form-control:focus,
html.rrs-theme-dark .form-select:focus {
    color: var(--color-text-primary);
    background-color: rgba(15, 23, 42, 0.94);
    border-color: rgba(125, 211, 252, 0.78);
    box-shadow: 0 0 0 0.2rem rgba(56, 189, 248, 0.14);
}

html.rrs-theme-dark .form-control::placeholder {
    color: #64748b;
}

html.rrs-theme-dark .form-check-input {
    background-color: rgba(2, 6, 23, 0.72);
    border-color: rgba(148, 163, 184, 0.42);
}

html.rrs-theme-dark .form-check-input:checked {
    background-color: #38bdf8;
    border-color: #38bdf8;
}

html.rrs-theme-dark .table,
html.rrs-theme-dark table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--color-text-primary);
    --bs-table-border-color: rgba(148, 163, 184, 0.2);
    --bs-table-striped-bg: rgba(148, 163, 184, 0.055);
    --bs-table-striped-color: var(--color-text-primary);
    --bs-table-hover-bg: rgba(56, 189, 248, 0.08);
    --bs-table-hover-color: #f8fafc;
    color: var(--color-text-primary);
    border-color: rgba(148, 163, 184, 0.2);
}

html.rrs-theme-dark .table thead,
html.rrs-theme-dark .table-light,
html.rrs-theme-dark .table > :not(caption) > * > th {
    color: var(--color-text-secondary);
    background: rgba(15, 23, 42, 0.92) !important;
    border-color: rgba(148, 163, 184, 0.2);
}

html.rrs-theme-dark .table td,
html.rrs-theme-dark .table th {
    color: inherit;
    border-color: rgba(148, 163, 184, 0.2);
}

html.rrs-theme-dark .table-responsive,
html.rrs-theme-dark .r-table-wrap {
    border-color: rgba(148, 163, 184, 0.2);
}

html.rrs-theme-dark .nav-pills .nav-link,
html.rrs-theme-dark .list-group-item-action {
    color: var(--color-text-secondary);
}

html.rrs-theme-dark .nav-pills .nav-link.active,
html.rrs-theme-dark .list-group-item.active,
html.rrs-theme-dark .list-group-item-action.active {
    color: #f8fafc;
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--role-accent) 72%, rgba(15, 23, 42, 0.28) 28%),
        color-mix(in srgb, var(--role-accent-strong) 54%, rgba(15, 23, 42, 0.46) 46%));
    border-color: color-mix(in srgb, var(--role-accent-strong) 36%, rgba(148, 163, 184, 0.18) 64%);
}

html.rrs-theme-dark .alert {
    color: var(--color-text-primary);
    background: rgba(19, 28, 42, 0.94);
    border-color: rgba(148, 163, 184, 0.18);
}

html.rrs-theme-dark .alert-success {
    color: #d1fae5;
    background: rgba(6, 78, 59, 0.26);
    border-color: rgba(52, 211, 153, 0.24);
}

html.rrs-theme-dark .alert-danger {
    color: #ffe4e6;
    background: rgba(136, 19, 55, 0.24);
    border-color: rgba(251, 113, 133, 0.24);
}

html.rrs-theme-dark .alert-warning {
    color: #fef3c7;
    background: rgba(120, 53, 15, 0.24);
    border-color: rgba(251, 191, 36, 0.24);
}

html.rrs-theme-dark .alert-info {
    color: #dbeafe;
    background: rgba(30, 64, 175, 0.22);
    border-color: rgba(96, 165, 250, 0.22);
}

html.rrs-theme-dark .badge.text-bg-secondary,
html.rrs-theme-dark .badge.bg-secondary {
    color: #dbe4f0 !important;
    background: rgba(100, 116, 139, 0.22) !important;
}

html.rrs-theme-dark .badge.text-bg-primary,
html.rrs-theme-dark .badge.bg-primary {
    background: rgba(56, 189, 248, 0.16) !important;
    color: #d7f1ff !important;
}

html.rrs-theme-dark .badge.text-bg-success,
html.rrs-theme-dark .badge.bg-success {
    background: rgba(52, 211, 153, 0.14) !important;
    color: #d1fae5 !important;
}

html.rrs-theme-dark .badge.text-bg-warning,
html.rrs-theme-dark .badge.bg-warning {
    background: rgba(245, 158, 11, 0.14) !important;
    color: #fef3c7 !important;
}

html.rrs-theme-dark .badge.text-bg-danger,
html.rrs-theme-dark .badge.bg-danger {
    background: rgba(251, 113, 133, 0.14) !important;
    color: #ffe4e6 !important;
}

html.rrs-theme-dark .rrs-table-pagination,
html.rrs-theme-dark .rrs-pagination-btn {
    color: var(--color-text-secondary);
    background: rgba(17, 24, 39, 0.92);
    border-color: rgba(148, 163, 184, 0.22);
}

html.rrs-theme-dark .rrs-pagination-btn.is-active,
html.rrs-theme-dark .rrs-pagination-btn:hover {
    color: #f8fafc;
    background: rgba(56, 189, 248, 0.18);
}

html.rrs-theme-dark .calendar-page .calendar-grid-body,
html.rrs-theme-dark .calendar-page .calendar-grid-header,
html.rrs-theme-dark .calendar-page .calendar-day,
html.rrs-theme-dark .availability-cell,
html.rrs-theme-dark .reservation-workspace-table tbody tr,
html.rrs-theme-dark .audit-table tbody tr {
    color: var(--color-text-primary);
    background: rgba(17, 24, 39, 0.9) !important;
    border-color: rgba(148, 163, 184, 0.2) !important;
}

html.rrs-theme-dark .shadow-sm,
html.rrs-theme-dark .shadow,
html.rrs-theme-dark .shadow-lg {
    box-shadow: var(--box-shadow) !important;
}

html.rrs-theme-dark .calendar-page .calendar-grid-wrap,
html.rrs-theme-dark .calendar-grid-header,
html.rrs-theme-dark .calendar-grid-body {
    background: rgba(15, 23, 42, 0.92);
}

html.rrs-theme-dark .calendar-summary-month,
html.rrs-theme-dark .calendar-summary-stack,
html.rrs-theme-dark .calendar-summary-item {
    background:
        radial-gradient(circle at top right, rgba(56, 189, 248, 0.08), transparent 34%),
        linear-gradient(180deg, rgba(20, 29, 43, 0.96) 0%, rgba(17, 24, 39, 0.98) 100%) !important;
    border-color: rgba(148, 163, 184, 0.18) !important;
}

html.rrs-theme-dark .calendar-month-nav-btn {
    color: var(--color-text-secondary);
    background:
        linear-gradient(180deg, rgba(20, 29, 43, 0.96) 0%, rgba(17, 24, 39, 0.98) 100%) !important;
    border-color: rgba(148, 163, 184, 0.18) !important;
}

html.rrs-theme-dark .calendar-month-nav-btn:hover,
html.rrs-theme-dark .calendar-month-nav-btn:focus-visible {
    color: var(--color-text-primary);
    background: rgba(30, 41, 59, 0.98) !important;
}

html.rrs-theme-dark .calendar-frame-nav-btn {
    color: var(--color-text-secondary);
    background:
        linear-gradient(180deg, rgba(20, 29, 43, 0.96) 0%, rgba(17, 24, 39, 0.98) 100%) !important;
    border-color: rgba(148, 163, 184, 0.18) !important;
}

html.rrs-theme-dark .calendar-frame-nav-btn:hover,
html.rrs-theme-dark .calendar-frame-nav-btn:focus-visible {
    color: var(--color-text-primary);
    background: rgba(30, 41, 59, 0.98) !important;
}

html.rrs-theme-dark .calendar-summary-item + .calendar-summary-item {
    border-top-color: rgba(148, 163, 184, 0.16) !important;
}

html.rrs-theme-dark .calendar-summary-month-label {
    color: var(--color-text-muted);
}

html.rrs-theme-dark .calendar-summary-month strong,
html.rrs-theme-dark .calendar-summary-item strong {
    color: var(--color-text-primary);
}

html.rrs-theme-dark .calendar-summary-item small {
    color: var(--color-text-secondary);
}

html.rrs-theme-dark .calendar-summary-item:hover,
html.rrs-theme-dark .calendar-summary-item:focus-visible {
    background: rgba(30, 41, 59, 0.92) !important;
}

html.rrs-theme-dark .calendar-summary-item.is-active {
    background: rgba(14, 116, 144, 0.18) !important;
}

html.rrs-theme-dark .calendar-preview-card,
html.rrs-theme-dark .calendar-preview-item,
html.rrs-theme-dark .calendar-agenda-event {
    background:
        radial-gradient(circle at top right, rgba(56, 189, 248, 0.08), transparent 34%),
        linear-gradient(180deg, rgba(20, 29, 43, 0.96) 0%, rgba(17, 24, 39, 0.98) 100%) !important;
    border-color: rgba(148, 163, 184, 0.18) !important;
}

html.rrs-theme-dark .calendar-preview-head strong,
html.rrs-theme-dark .calendar-preview-item-main strong,
html.rrs-theme-dark .calendar-preview-item-meta span,
html.rrs-theme-dark .calendar-agenda-day-head strong,
html.rrs-theme-dark .calendar-agenda-event-main strong {
    color: var(--color-text-primary);
}

html.rrs-theme-dark .calendar-preview-total,
html.rrs-theme-dark .calendar-preview-empty,
html.rrs-theme-dark .calendar-preview-item-main small,
html.rrs-theme-dark .calendar-preview-item-meta small,
html.rrs-theme-dark .calendar-agenda-event-main span,
html.rrs-theme-dark .calendar-agenda-event-meta span,
html.rrs-theme-dark .calendar-agenda-event-meta small {
    color: var(--color-text-secondary);
}

html.rrs-theme-dark .calendar-weekday {
    color: #94a3b8;
    background: #0f172a !important;
    border-color: rgba(148, 163, 184, 0.2);
}

html.rrs-theme-dark .calendar-day {
    color: var(--color-text-primary);
    background: #111827 !important;
    border-color: rgba(148, 163, 184, 0.18);
}

html.rrs-theme-dark .calendar-day.is-outside-month,
html.rrs-theme-dark .availability-day-cell-empty {
    background: #0b1220 !important;
    color: #64748b;
}

html.rrs-theme-dark .calendar-day.is-today {
    background: linear-gradient(180deg, rgba(14, 165, 233, 0.18), rgba(15, 23, 42, 0.98)) !important;
    box-shadow: inset 0 0 0 1px rgba(125, 211, 252, 0.32);
}

html.rrs-theme-dark .calendar-day.is-selected {
    background: linear-gradient(180deg, rgba(67, 56, 202, 0.24), rgba(17, 24, 39, 0.98)) !important;
    box-shadow: inset 0 0 0 2px rgba(129, 140, 248, 0.4);
}

html.rrs-theme-dark .calendar-day:hover {
    background: rgba(30, 41, 59, 0.98) !important;
}

html.rrs-theme-dark .calendar-event {
    color: #e5e7eb;
    background: rgba(51, 65, 85, 0.82);
    border-color: rgba(148, 163, 184, 0.28);
}

html.rrs-theme-dark .calendar-event:hover {
    filter: none;
    background: rgba(71, 85, 105, 0.94);
}

html.rrs-theme-dark .calendar-event.status-pending {
    color: #fef3c7;
    background: rgba(120, 53, 15, 0.42);
    border-color: rgba(251, 191, 36, 0.22);
}

html.rrs-theme-dark .calendar-event.status-confirmed {
    color: #dbeafe;
    background: rgba(30, 64, 175, 0.34);
    border-color: rgba(96, 165, 250, 0.22);
}

html.rrs-theme-dark .calendar-event.status-checked-in {
    color: #d1fae5;
    background: rgba(22, 101, 52, 0.34);
    border-color: rgba(74, 222, 128, 0.22);
}

html.rrs-theme-dark .calendar-event.status-checked-out {
    color: #e2e8f0;
    background: rgba(51, 65, 85, 0.42);
    border-color: rgba(148, 163, 184, 0.2);
}

html.rrs-theme-dark .calendar-event.status-cancelled {
    color: #ffe4e6;
    background: rgba(136, 19, 55, 0.32);
    border-color: rgba(251, 113, 133, 0.22);
}

html.rrs-theme-dark .calendar-more {
    color: var(--color-text-muted);
}

html.rrs-theme-dark .availability-page-header {
    color: var(--color-text-primary);
    background:
        radial-gradient(circle at top right, rgba(56, 189, 248, 0.16), transparent 38%),
        linear-gradient(180deg, rgba(17, 24, 39, 0.96) 0%, rgba(15, 23, 42, 0.98) 100%) !important;
    border-color: rgba(125, 211, 252, 0.2);
    box-shadow: var(--box-shadow);
}

html.rrs-theme-dark .availability-page-title,
html.rrs-theme-dark .availability-current-month {
    color: #e0f2fe;
}

html.rrs-theme-dark .availability-page-kicker {
    color: #38bdf8;
}

html.rrs-theme-dark .availability-page-text {
    color: var(--color-text-secondary);
}

html.rrs-theme-dark .availability-workspace-card,
html.rrs-theme-dark .availability-calendar-shell {
    background: rgba(15, 23, 42, 0.98) !important;
    border-color: rgba(148, 163, 184, 0.22);
}

html.rrs-theme-dark .availability-matrix-wrap,
html.rrs-theme-dark .availability-matrix-empty {
    background: rgba(31, 38, 52, 0.86) !important;
    border-color: rgba(176, 186, 207, 0.18) !important;
}

html.rrs-theme-dark .availability-matrix-table th,
html.rrs-theme-dark .availability-matrix-table td {
    border-color: rgba(176, 186, 207, 0.18) !important;
}

html.rrs-theme-dark .availability-matrix-table thead th,
html.rrs-theme-dark .availability-matrix-sticky {
    color: var(--color-text-primary) !important;
    background: rgba(37, 43, 58, 0.98) !important;
}

html.rrs-theme-dark .availability-matrix-room {
    background: rgba(31, 38, 52, 0.94) !important;
}

html.rrs-theme-dark .availability-matrix-room strong,
html.rrs-theme-dark .availability-matrix-summary strong {
    color: var(--color-text-primary) !important;
}

html.rrs-theme-dark .availability-matrix-room span,
html.rrs-theme-dark .availability-matrix-date-row th span,
html.rrs-theme-dark .availability-matrix-summary,
html.rrs-theme-dark .availability-matrix-legend {
    color: var(--color-text-muted) !important;
}

html.rrs-theme-dark .availability-matrix-pax-note {
    color: #fde68a !important;
    background: rgba(245, 158, 11, 0.16) !important;
}

html.rrs-theme-dark .availability-matrix-cell.is-open {
    color: #b7f7d2 !important;
    background: rgba(34, 197, 94, 0.18) !important;
}

html.rrs-theme-dark .availability-matrix-cell.is-low {
    color: #fde68a !important;
    background: rgba(245, 158, 11, 0.2) !important;
}

html.rrs-theme-dark .availability-matrix-cell.is-full {
    color: #fecaca !important;
    background: rgba(239, 68, 68, 0.18) !important;
}

html.rrs-theme-dark .availability-matrix-cell.is-empty {
    color: #94a3b8 !important;
    background: rgba(15, 23, 42, 0.45) !important;
}

html.rrs-theme-dark .availability-matrix-cell.is-open a:hover,
html.rrs-theme-dark .availability-matrix-cell.is-low a:hover {
    color: #f8fafc !important;
    background: rgba(93, 155, 205, 0.34) !important;
}

html.rrs-theme-dark .inventory-control-stats span {
    color: var(--color-text-muted) !important;
    background: rgba(125, 211, 252, 0.08) !important;
    border-color: rgba(176, 186, 207, 0.18) !important;
}

html.rrs-theme-dark .inventory-control-stats strong {
    color: var(--color-text-primary) !important;
}

html.rrs-theme-dark .inventory-editor-bar {
    background:
        radial-gradient(circle at top right, color-mix(in srgb, var(--role-accent) 12%, transparent 88%), transparent 38%),
        linear-gradient(180deg, rgba(20, 29, 43, 0.96) 0%, rgba(17, 24, 39, 0.98) 100%) !important;
    border-bottom-color: rgba(148, 163, 184, 0.18) !important;
}

html.rrs-theme-dark .inventory-editor-kicker,
html.rrs-theme-dark .inventory-select-label,
html.rrs-theme-dark .inventory-editor-reason span {
    color: var(--color-text-muted) !important;
}

html.rrs-theme-dark .inventory-editor-title-row strong {
    color: var(--color-text-primary) !important;
}

html.rrs-theme-dark .inventory-editor-summary small,
html.rrs-theme-dark .inventory-editor-summary-note {
    color: var(--color-text-secondary) !important;
}

html.rrs-theme-dark .inventory-row-status.is-open {
    color: #dcfce7;
    background: rgba(22, 163, 74, 0.16);
}

html.rrs-theme-dark .inventory-row-status.is-low {
    color: #fef3c7;
    background: rgba(217, 119, 6, 0.16);
}

html.rrs-theme-dark .inventory-row-status.is-full {
    color: #ffe4e6;
    background: rgba(225, 29, 72, 0.16);
}

html.rrs-theme-dark .inventory-matrix-input-cell,
html.rrs-theme-dark .inventory-matrix-action-head,
html.rrs-theme-dark .inventory-matrix-reason-cell,
html.rrs-theme-dark .inventory-matrix-save-cell {
    background: rgba(26, 35, 50, 0.96) !important;
    border-color: rgba(148, 163, 184, 0.14) !important;
}

html.rrs-theme-dark .inventory-matrix-input-cell input[type="number"] {
    color: var(--color-text-primary) !important;
    background: rgba(16, 23, 35, 0.98) !important;
    border-color: rgba(176, 186, 207, 0.18) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

html.rrs-theme-dark .inventory-matrix-input-cell.is-open {
    background: rgba(11, 30, 20, 0.94) !important;
    box-shadow: inset 0 2px 0 #22c55e !important;
}

html.rrs-theme-dark .inventory-matrix-input-cell.is-low {
    background: rgba(46, 28, 10, 0.94) !important;
    box-shadow: inset 0 2px 0 #f59e0b !important;
}

html.rrs-theme-dark .inventory-matrix-input-cell.is-full {
    background: rgba(52, 16, 23, 0.94) !important;
    box-shadow: inset 0 2px 0 #ef4444 !important;
}

html.rrs-theme-dark .inventory-matrix-input-cell.is-open input[type="number"] {
    background: rgba(11, 30, 20, 0.96) !important;
    border-color: rgba(74, 222, 128, 0.24) !important;
}

html.rrs-theme-dark .inventory-matrix-input-cell.is-low input[type="number"] {
    background: rgba(46, 28, 10, 0.96) !important;
    border-color: rgba(251, 191, 36, 0.24) !important;
}

html.rrs-theme-dark .inventory-matrix-input-cell.is-full input[type="number"] {
    background: rgba(52, 16, 23, 0.96) !important;
    border-color: rgba(251, 113, 133, 0.24) !important;
}

html.rrs-theme-dark .inventory-matrix-table .availability-matrix-room {
    background: rgba(17, 24, 39, 0.98) !important;
}

html.rrs-theme-dark .inventory-matrix-table .availability-matrix-room strong {
    color: var(--color-text-primary) !important;
}

html.rrs-theme-dark .inventory-matrix-table .availability-matrix-room span:not(.inventory-room-inline-status) {
    color: var(--color-text-muted) !important;
}

html.rrs-theme-dark .inventory-summary-stat + .inventory-summary-stat {
    border-top-color: rgba(148, 163, 184, 0.18) !important;
}

html.rrs-theme-dark .inventory-board-view-chip,
html.rrs-theme-dark .inventory-board-header-chip {
    color: #dbeafe;
    background: rgba(30, 58, 138, 0.22) !important;
    border-color: rgba(96, 165, 250, 0.24) !important;
}

html.rrs-theme-dark .inventory-kpi-card {
    background: linear-gradient(180deg, rgba(20, 29, 43, 0.96) 0%, rgba(17, 24, 39, 0.98) 100%) !important;
    border-color: rgba(148, 163, 184, 0.16) !important;
    box-shadow: none !important;
}

html.rrs-theme-dark .inventory-kpi-label,
html.rrs-theme-dark .inventory-kpi-card small,
html.rrs-theme-dark .inventory-room-total,
html.rrs-theme-dark .inventory-legend-list span,
html.rrs-theme-dark .inventory-board-footer-note,
html.rrs-theme-dark .inventory-change-metrics small {
    color: var(--color-text-secondary) !important;
}

html.rrs-theme-dark .inventory-kpi-value,
html.rrs-theme-dark .inventory-change-metrics strong,
html.rrs-theme-dark .inventory-matrix-summary-cell strong {
    color: var(--color-text-primary) !important;
}

html.rrs-theme-dark .inventory-matrix-summary-cell,
html.rrs-theme-dark .inventory-matrix-summary-head,
html.rrs-theme-dark .inventory-board-footer {
    background: rgba(17, 24, 39, 0.94) !important;
    border-color: rgba(148, 163, 184, 0.16) !important;
}

html.rrs-theme-dark .inventory-room-inline-status-is-open {
    color: #dcfce7 !important;
    background: rgba(22, 163, 74, 0.16) !important;
    border-color: rgba(74, 222, 128, 0.18) !important;
}

html.rrs-theme-dark .inventory-room-inline-status-is-low {
    color: #fef3c7 !important;
    background: rgba(217, 119, 6, 0.16) !important;
    border-color: rgba(251, 191, 36, 0.18) !important;
}

html.rrs-theme-dark .inventory-room-inline-status-is-full {
    color: #ffe4e6 !important;
    background: rgba(225, 29, 72, 0.16) !important;
    border-color: rgba(251, 113, 133, 0.18) !important;
}

html.rrs-theme-dark .availability-compact-summary,
html.rrs-theme-dark .availability-validation-result,
html.rrs-theme-dark .availability-empty-state,
html.rrs-theme-dark .availability-legend-card,
html.rrs-theme-dark .availability-status-chip {
    color: var(--color-text-secondary);
    background: rgba(2, 6, 23, 0.36) !important;
    border-color: rgba(148, 163, 184, 0.24);
}

html.rrs-theme-dark .availability-compact-summary strong,
html.rrs-theme-dark .availability-status-chip strong,
html.rrs-theme-dark .availability-legend-title {
    color: var(--color-text-primary);
}

html.rrs-theme-dark .availability-status-chip.status-open,
html.rrs-theme-dark .availability-status-chip.is-open {
    color: #d1fae5;
    background: rgba(16, 185, 129, 0.12) !important;
    border-color: rgba(52, 211, 153, 0.18) !important;
}

html.rrs-theme-dark .availability-status-chip.status-low,
html.rrs-theme-dark .availability-status-chip.is-low {
    color: #fef3c7;
    background: rgba(245, 158, 11, 0.12) !important;
    border-color: rgba(251, 191, 36, 0.18) !important;
}

html.rrs-theme-dark .availability-status-chip.status-sold-out,
html.rrs-theme-dark .availability-status-chip.is-sold-out {
    color: #ffe4e6;
    background: rgba(244, 63, 94, 0.12) !important;
    border-color: rgba(251, 113, 133, 0.18) !important;
}

html.rrs-theme-dark .availability-status-available .availability-status-dot {
    background: #34d399 !important;
}

html.rrs-theme-dark .availability-status-low .availability-status-dot {
    background: #f59e0b !important;
}

html.rrs-theme-dark .availability-status-blocked .availability-status-dot,
html.rrs-theme-dark .availability-status-full .availability-status-dot {
    background: #fb7185 !important;
}

html.rrs-theme-dark .availability-calendar-toolbar {
    background: rgba(15, 23, 42, 0.86);
    border-color: rgba(148, 163, 184, 0.2);
}

html.rrs-theme-dark .availability-matrix-table thead th,
html.rrs-theme-dark .availability-matrix-sticky,
html.rrs-theme-dark .inventory-matrix-head,
html.rrs-theme-dark .inventory-matrix-sticky {
    background: rgba(12, 18, 29, 0.9) !important;
    color: var(--color-text-secondary) !important;
    border-color: rgba(148, 163, 184, 0.16) !important;
}

html.rrs-theme-dark .availability-matrix-table tbody tr:nth-child(odd) td,
html.rrs-theme-dark .inventory-matrix-grid tbody tr:nth-child(odd) td {
    background: rgba(148, 163, 184, 0.022) !important;
}

html.rrs-theme-dark .availability-cell:hover,
html.rrs-theme-dark .inventory-matrix-grid td:hover {
    box-shadow: inset 0 0 0 9999px rgba(56, 189, 248, 0.045) !important;
}

html.rrs-theme-dark .calendar-day.availability-calendar-day-available {
    background: linear-gradient(180deg, rgba(22, 101, 52, 0.46), rgba(20, 83, 45, 0.34)) !important;
    border-color: rgba(74, 222, 128, 0.36);
}

html.rrs-theme-dark .calendar-day.availability-calendar-day-blocked {
    background: linear-gradient(180deg, rgba(136, 19, 55, 0.42), rgba(76, 5, 25, 0.34)) !important;
    border-color: rgba(251, 113, 133, 0.28);
}

html.rrs-theme-dark .calendar-day.availability-calendar-day-past,
html.rrs-theme-dark .calendar-day.availability-calendar-day-empty {
    background: #0b1220 !important;
}

html.rrs-theme-dark .availability-day-card {
    border-color: rgba(148, 163, 184, 0.18);
}

html.rrs-theme-dark .availability-day-card-empty,
html.rrs-theme-dark .availability-day-card-past {
    color: #94a3b8;
}

html.rrs-theme-dark .availability-day-card-available {
    color: #dcfce7;
}

html.rrs-theme-dark .availability-day-card-blocked {
    color: #fecdd3;
}

html.rrs-theme-dark .availability-calendar-day-content[data-booking-url]:hover {
    background: rgba(74, 222, 128, 0.1);
}

html.rrs-theme-dark .availability-month-nav-btn {
    color: #bae6fd;
}

html.rrs-theme-dark .availability-month-nav-current,
html.rrs-theme-dark .availability-month-nav-btn:hover,
html.rrs-theme-dark .availability-month-nav-btn:focus-visible {
    color: #e0f2fe;
    background: rgba(56, 189, 248, 0.16);
}

html.rrs-theme-dark .availability-month-nav-btn:disabled {
    color: #64748b;
    background: rgba(100, 116, 139, 0.12);
}

html.rrs-theme-dark .reservation-kpi-label,
html.rrs-theme-dark .reservation-kpi-meta,
html.rrs-theme-dark .reservation-secondary-line,
html.rrs-theme-dark .reservation-booking-subtext,
html.rrs-theme-dark .reservation-note-line,
html.rrs-theme-dark .reservation-ops-list dt,
html.rrs-theme-dark .reservation-status-action-label,
html.rrs-theme-dark .reservation-view-label,
html.rrs-theme-dark .reservation-view-subtext,
html.rrs-theme-dark .reservation-view-meta-label,
html.rrs-theme-dark .reservation-view-detail-list span {
    color: var(--color-text-muted);
}

html.rrs-theme-dark .reservation-kpi-value,
html.rrs-theme-dark .reservation-primary-line strong,
html.rrs-theme-dark .reservation-booking-code,
html.rrs-theme-dark .reservation-ops-list dd,
html.rrs-theme-dark .reservation-status-text,
html.rrs-theme-dark .reservation-status-action-copy strong,
html.rrs-theme-dark .reservation-view-reference,
html.rrs-theme-dark .reservation-view-detail-list strong {
    color: var(--color-text-primary);
}

html.rrs-theme-dark .reservation-tab-count,
html.rrs-theme-dark .reservation-meta-chip {
    color: #bae6fd;
    background: rgba(56, 189, 248, 0.16);
    border-color: rgba(125, 211, 252, 0.24);
}

html.rrs-theme-dark .reservation-action-btn {
    color: var(--color-text-secondary);
    background: rgba(15, 23, 42, 0.86) !important;
    border-color: rgba(148, 163, 184, 0.24);
}

html.rrs-theme-dark .reservation-action-btn:hover,
html.rrs-theme-dark .reservation-action-btn:focus-visible {
    color: #f8fafc;
    background: rgba(56, 189, 248, 0.14) !important;
}

html.rrs-theme-dark .reservation-view-hero,
html.rrs-theme-dark .reservation-view-overview-card,
html.rrs-theme-dark .reservation-status-action-card,
html.rrs-theme-dark .reservation-room-assignment-card,
html.rrs-theme-dark .reservation-view-card,
html.rrs-theme-dark .reservation-summary-card,
html.rrs-theme-dark .reservation-amenity-option,
html.rrs-theme-dark .reservation-confirm-check,
html.rrs-theme-dark .occupancy-inline-card,
html.rrs-theme-dark .reservation-enquiry-card,
html.rrs-theme-dark .reservation-pax-offcanvas,
html.rrs-theme-dark .pax-guide-item {
    color: var(--color-text-primary);
    background: rgba(17, 24, 39, 0.9) !important;
    border-color: rgba(148, 163, 184, 0.22) !important;
}

html.rrs-theme-dark .reservation-enquiry-kicker {
    color: #7dd3fc;
}

html.rrs-theme-dark .reservation-room-assignment-head {
    border-bottom-color: rgba(148, 163, 184, 0.18) !important;
}

html.rrs-theme-dark .reservation-room-assignment-pill {
    color: var(--color-text-primary) !important;
    background: color-mix(in srgb, var(--role-accent-soft) 84%, rgba(15, 23, 42, 0.16) 16%) !important;
    border: 1px solid color-mix(in srgb, var(--role-accent-strong) 18%, rgba(148, 163, 184, 0.18) 82%);
}

html.rrs-theme-dark .reservation-room-assignment-pill.is-soft {
    color: var(--color-text-secondary) !important;
    background: rgba(30, 41, 59, 0.76) !important;
    border: 1px solid rgba(148, 163, 184, 0.18);
}

html.rrs-theme-dark .reservation-room-list-shell {
    background: rgba(16, 23, 35, 0.92) !important;
    border-color: rgba(148, 163, 184, 0.2) !important;
}

html.rrs-theme-dark .reservation-room-list-head {
    color: var(--color-text-muted) !important;
    background: rgba(20, 29, 43, 0.92) !important;
    border-bottom-color: rgba(148, 163, 184, 0.18) !important;
}

html.rrs-theme-dark .reservation-room-row {
    border-bottom-color: rgba(148, 163, 184, 0.14) !important;
}

html.rrs-theme-dark .reservation-room-row:hover {
    background: rgba(30, 41, 59, 0.7) !important;
}

html.rrs-theme-dark .reservation-room-row.is-selected,
html.rrs-theme-dark .reservation-room-row:has(input[type="radio"]:checked) {
    background: color-mix(in srgb, var(--role-accent-soft) 78%, rgba(15, 23, 42, 0.22) 22%) !important;
    box-shadow: inset 3px 0 0 var(--role-accent-strong) !important;
}

html.rrs-theme-dark .reservation-room-row-code {
    color: var(--color-text-primary) !important;
}

html.rrs-theme-dark .reservation-room-row-cell {
    color: var(--color-text-secondary) !important;
}

html.rrs-theme-dark .reservation-room-choice-status.is-available,
html.rrs-theme-dark .reservation-room-choice-status.is-active {
    color: #dcfce7 !important;
    background: rgba(22, 163, 74, 0.16) !important;
}

html.rrs-theme-dark .reservation-room-choice-status.is-occupied {
    color: #dbeafe !important;
    background: rgba(37, 99, 235, 0.16) !important;
}

html.rrs-theme-dark .reservation-room-choice-status.is-checked-out {
    color: #cffafe !important;
    background: rgba(8, 145, 178, 0.16) !important;
}

html.rrs-theme-dark .reservation-room-assignment-empty {
    color: var(--color-text-secondary) !important;
    background: rgba(20, 29, 43, 0.9) !important;
    border-color: rgba(148, 163, 184, 0.18) !important;
}

html.rrs-theme-dark .occupancy-planner-board {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.9) 0%, rgba(17, 24, 39, 0.96) 100%) !important;
    border-color: rgba(148, 163, 184, 0.12) !important;
}

html.rrs-theme-dark .occupancy-planner-topline,
html.rrs-theme-dark .occupancy-planner-roomhead {
    background: rgba(30, 41, 59, 0.92) !important;
    color: var(--color-text-secondary) !important;
}

html.rrs-theme-dark .occupancy-planner-roommeta {
    background: rgba(15, 23, 42, 0.92) !important;
}

html.rrs-theme-dark .occupancy-planner-dayhead strong,
html.rrs-theme-dark .occupancy-planner-roomcode,
html.rrs-theme-dark .occupancy-planner-bar strong {
    color: var(--color-text-primary) !important;
}

html.rrs-theme-dark .occupancy-planner-roomtype,
html.rrs-theme-dark .occupancy-planner-bar span {
    color: var(--color-text-secondary) !important;
}

html.rrs-theme-dark .occupancy-planner-roomsub,
html.rrs-theme-dark .occupancy-planner-dayhead,
html.rrs-theme-dark .occupancy-planner-empty {
    color: var(--color-text-muted) !important;
}

html.rrs-theme-dark .occupancy-planner-timeline {
    background-image: repeating-linear-gradient(
        to right,
        transparent 0,
        transparent calc(100% / var(--planner-day-count, 14) - 1px),
        rgba(148, 163, 184, 0.06) calc(100% / var(--planner-day-count, 14) - 1px),
        rgba(148, 163, 184, 0.06) calc(100% / var(--planner-day-count, 14))
    ) !important;
}

html.rrs-theme-dark .occupancy-planner-bar.is-confirmed {
    --planner-bar-bg: rgba(20, 83, 45, 0.9);
    --planner-bar-border: rgba(74, 222, 128, 0.42);
    --planner-bar-accent: #4ade80;
    --planner-bar-title: #dcfce7;
    --planner-bar-text: #bbf7d0;
    background: var(--planner-bar-bg) !important;
    border-color: var(--planner-bar-border) !important;
}

html.rrs-theme-dark .occupancy-planner-bar.is-pending {
    --planner-bar-bg: rgba(120, 53, 15, 0.92);
    --planner-bar-border: rgba(251, 191, 36, 0.4);
    --planner-bar-accent: #fbbf24;
    --planner-bar-title: #fef3c7;
    --planner-bar-text: #fde68a;
    background: var(--planner-bar-bg) !important;
    border-color: var(--planner-bar-border) !important;
}

html.rrs-theme-dark .occupancy-planner-bar.is-checked-in {
    --planner-bar-bg: rgba(30, 58, 138, 0.92);
    --planner-bar-border: rgba(96, 165, 250, 0.42);
    --planner-bar-accent: #60a5fa;
    --planner-bar-title: #dbeafe;
    --planner-bar-text: #bfdbfe;
    background: var(--planner-bar-bg) !important;
    border-color: var(--planner-bar-border) !important;
}

html.rrs-theme-dark .occupancy-planner-bar.is-checked-out {
    --planner-bar-bg: rgba(51, 65, 85, 0.92);
    --planner-bar-border: rgba(148, 163, 184, 0.38);
    --planner-bar-accent: #94a3b8;
    --planner-bar-title: #e2e8f0;
    --planner-bar-text: #cbd5e1;
    background: var(--planner-bar-bg) !important;
    border-color: var(--planner-bar-border) !important;
}

html.rrs-theme-dark .occupancy-planner-roomstatus {
    background: rgba(51, 65, 85, 0.88) !important;
    border: 1px solid rgba(148, 163, 184, 0.28) !important;
    color: #e2e8f0 !important;
}

html.rrs-theme-dark .occupancy-planner-roomstatus.is-available,
html.rrs-theme-dark .occupancy-planner-roomstatus.is-active {
    background: rgba(20, 83, 45, 0.82) !important;
    border-color: rgba(74, 222, 128, 0.35) !important;
    color: #bbf7d0 !important;
}

html.rrs-theme-dark .occupancy-planner-roomstatus.is-occupied {
    background: rgba(30, 58, 138, 0.82) !important;
    border-color: rgba(96, 165, 250, 0.36) !important;
    color: #bfdbfe !important;
}

html.rrs-theme-dark .occupancy-planner-roomstatus.is-checked-out {
    background: rgba(120, 53, 15, 0.82) !important;
    border-color: rgba(251, 191, 36, 0.34) !important;
    color: #fde68a !important;
}

html.rrs-theme-dark .occupancy-planner-roomstatus.is-maintenance,
html.rrs-theme-dark .occupancy-planner-roomstatus.is-inactive {
    background: rgba(51, 65, 85, 0.92) !important;
    border-color: rgba(148, 163, 184, 0.28) !important;
    color: #cbd5e1 !important;
}

html.rrs-theme-dark .reservation-enquiry-field > span {
    color: var(--color-text-muted) !important;
}

html.rrs-theme-dark .reservation-pax-offcanvas .offcanvas-header {
    border-color: rgba(148, 163, 184, 0.22) !important;
}

html.rrs-theme-dark .pax-guide-bed-item {
    background: rgba(31, 38, 52, 0.88) !important;
    border-color: rgba(176, 186, 207, 0.18) !important;
}

html.rrs-theme-dark .pax-guide-bed-flags span {
    color: #dbeafe;
    background: rgba(191, 219, 254, 0.12);
}

html.rrs-theme-dark .reservation-view-overview-icon {
    color: #bae6fd;
    background: rgba(56, 189, 248, 0.14);
}

html.rrs-theme-dark #superadmin-filter-form,
html.rrs-theme-dark #roomSetupTabs .nav-link,
html.rrs-theme-dark .rm-workspace-card,
html.rrs-theme-dark .rm-workspace-panel,
html.rrs-theme-dark .rm-workspace-stat,
html.rrs-theme-dark .rm-scope-item,
html.rrs-theme-dark .rm-section-card,
html.rrs-theme-dark .rm-kpi,
html.rrs-theme-dark .rm-step,
html.rrs-theme-dark .form-step-card,
html.rrs-theme-dark .policy-toggle,
html.rrs-theme-dark .bedding-summary,
html.rrs-theme-dark .inventory-summary,
html.rrs-theme-dark .room-type-code,
html.rrs-theme-dark .rm-amenity-chip,
html.rrs-theme-dark .bedding-mix-chip {
    color: var(--color-text-primary);
    background: rgba(17, 24, 39, 0.9) !important;
    border-color: rgba(148, 163, 184, 0.24) !important;
}

html.rrs-theme-dark .rm-workspace-card {
    background:
        radial-gradient(circle at top right, rgba(56, 189, 248, 0.12), transparent 30%),
        linear-gradient(135deg, rgba(14, 116, 144, 0.12), rgba(17, 24, 39, 0) 28%),
        rgba(17, 24, 39, 0.94) !important;
    box-shadow: 0 24px 50px rgba(2, 6, 23, 0.34);
}

html.rrs-theme-dark .rm-workspace-title,
html.rrs-theme-dark .rm-workspace-stat strong,
html.rrs-theme-dark .rm-panel-title,
html.rrs-theme-dark .rm-scope-item strong,
html.rrs-theme-dark .rm-section-header h4 {
    color: var(--color-text-primary);
}

html.rrs-theme-dark .rm-workspace-text,
html.rrs-theme-dark .rm-workspace-stat-label,
html.rrs-theme-dark .rm-scope-item span,
html.rrs-theme-dark .rm-section-header .text-muted {
    color: var(--color-text-secondary) !important;
}

html.rrs-theme-dark .rm-section-kicker {
    color: #bae6fd;
    background: rgba(56, 189, 248, 0.12);
    border-color: rgba(125, 211, 252, 0.2);
}

html.rrs-theme-dark .rm-card .card-header {
    background: rgba(15, 23, 42, 0.92) !important;
    border-color: rgba(148, 163, 184, 0.2);
}

html.rrs-theme-dark #roomSetupTabs .nav-link {
    color: var(--color-text-secondary);
    background: rgba(17, 24, 39, 0.92) !important;
    border-color: rgba(148, 163, 184, 0.28) !important;
    box-shadow: 0 8px 16px rgba(2, 6, 23, 0.22);
}

html.rrs-theme-dark #roomSetupTabs .nav-link:hover,
html.rrs-theme-dark #roomSetupTabs .nav-link:focus-visible {
    color: #e0f2fe;
    background: rgba(30, 41, 59, 0.98) !important;
    border-color: rgba(125, 211, 252, 0.30) !important;
    box-shadow: 0 12px 22px rgba(2, 6, 23, 0.32);
}

html.rrs-theme-dark #roomSetupTabs .nav-link.active {
    color: #f8fafc;
    background: linear-gradient(135deg, rgba(14, 116, 144, 0.92), rgba(56, 189, 248, 0.68)) !important;
    border-color: rgba(125, 211, 252, 0.24) !important;
    box-shadow: 0 14px 24px rgba(2, 6, 23, 0.34);
}

html.rrs-theme-dark .rm-section-card .card-body,
html.rrs-theme-dark .rm-section-card .border.rounded-3,
html.rrs-theme-dark .rm-section-card .border.rounded-4,
html.rrs-theme-dark .rm-section-card .bg-light-subtle {
    background: rgba(15, 23, 42, 0.72) !important;
    border-color: rgba(148, 163, 184, 0.18) !important;
}

html.rrs-theme-dark .rm-data-table thead.table-light th {
    background: rgba(30, 41, 59, 0.84) !important;
}

html.rrs-theme-dark .rm-data-table tbody tr:nth-child(even) td {
    background: rgba(15, 23, 42, 0.52);
}

html.rrs-theme-dark .rm-pill,
html.rrs-theme-dark .rm-category-badge {
    color: #bae6fd;
    background: rgba(56, 189, 248, 0.14);
    border-color: rgba(125, 211, 252, 0.24);
}

html.rrs-theme-dark .room-type-name,
html.rrs-theme-dark .bedding-configuration-name,
html.rrs-theme-dark .bedding-pax-value,
html.rrs-theme-dark .room-type-units-value,
html.rrs-theme-dark .rm-data-table .fw-semibold {
    color: var(--color-text-primary);
}

html.rrs-theme-dark .room-type-description,
html.rrs-theme-dark .bedding-room-note,
html.rrs-theme-dark .bedding-pax-label,
html.rrs-theme-dark .room-type-code-label,
html.rrs-theme-dark .rm-data-table td {
    color: var(--color-text-secondary);
}

html.rrs-theme-dark .rm-data-table th {
    color: var(--color-text-muted);
    border-color: rgba(148, 163, 184, 0.22);
}

html.rrs-theme-dark .rm-data-table td {
    border-color: rgba(148, 163, 184, 0.16);
}

html.rrs-theme-dark .rm-data-table tbody tr:hover td {
    background: rgba(56, 189, 248, 0.06);
}

html.rrs-theme-dark .room-actions .btn-outline-secondary,
html.rrs-theme-dark .room-actions .btn-outline-primary,
html.rrs-theme-dark .room-actions .btn-outline-success,
html.rrs-theme-dark .room-actions .btn-outline-danger {
    background: rgba(15, 23, 42, 0.86);
}

html.rrs-theme-dark .settings-account-hero,
html.rrs-theme-dark .settings-sidebar-card,
html.rrs-theme-dark .settings-security-card,
html.rrs-theme-dark .audit-stat-card,
html.rrs-theme-dark .audit-filter-card,
html.rrs-theme-dark .audit-table-card,
html.rrs-theme-dark .notifications-card {
    color: var(--color-text-primary);
    background: rgba(17, 24, 39, 0.9) !important;
    border-color: rgba(148, 163, 184, 0.22) !important;
}

html.rrs-theme-dark .audit-stat-icon,
html.rrs-theme-dark .settings-security-card-title,
html.rrs-theme-dark .settings-account-name,
html.rrs-theme-dark .notifications-card-title {
    color: var(--color-text-primary);
}

html.rrs-theme-dark .notifications-card.is-unread {
    border-color: rgba(56, 189, 248, 0.36) !important;
    box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.1), var(--box-shadow);
}

html.rrs-theme-dark body.page-auth,
html.rrs-theme-dark body.page-auth.login-page,
html.rrs-theme-dark body.forgot-password-page {
    color: var(--color-text-primary);
    background:
        radial-gradient(circle at 18% 16%, rgba(56, 189, 248, 0.18), transparent 28%),
        radial-gradient(circle at 84% 18%, rgba(251, 191, 36, 0.1), transparent 24%),
        linear-gradient(135deg, #030712 0%, #07111f 46%, #0f172a 100%) !important;
}

html.rrs-theme-dark body.page-auth .auth-card,
html.rrs-theme-dark body.page-auth .auth-form-content,
html.rrs-theme-dark body.page-auth .auth-panel-login,
html.rrs-theme-dark body.page-auth .auth-glass-card,
html.rrs-theme-dark body.page-auth .auth-verify-card,
html.rrs-theme-dark body.page-auth .auth-verify-card-simple,
html.rrs-theme-dark body.page-auth .forgot-password-card,
html.rrs-theme-dark .login-split-card,
html.rrs-theme-dark .login-form-panel,
html.rrs-theme-dark .login-welcome-panel {
    color: var(--color-text-primary);
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.94) 0%, rgba(15, 23, 42, 0.94) 100%) !important;
    border-color: rgba(148, 163, 184, 0.24) !important;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42) !important;
}

html.rrs-theme-dark body.page-auth .auth-left-inner,
html.rrs-theme-dark body.page-auth .auth-note-card,
html.rrs-theme-dark body.page-auth .auth-access-box,
html.rrs-theme-dark body.page-auth .auth-recaptcha-wrap,
html.rrs-theme-dark body.page-auth .auth-qr-card,
html.rrs-theme-dark body.page-auth .auth-code-block,
html.rrs-theme-dark body.page-auth .auth-backup-grid code {
    color: var(--color-text-primary);
    background: rgba(2, 6, 23, 0.44) !important;
    border-color: rgba(148, 163, 184, 0.24) !important;
}

html.rrs-theme-dark body.page-auth .auth-title,
html.rrs-theme-dark body.page-auth .auth-heading,
html.rrs-theme-dark body.page-auth .auth-heading-lg,
html.rrs-theme-dark body.page-auth .login-title,
html.rrs-theme-dark body.page-auth .welcome-title {
    color: var(--color-text-primary) !important;
}

html.rrs-theme-dark body.page-auth .auth-subtitle,
html.rrs-theme-dark body.page-auth .auth-system-sub,
html.rrs-theme-dark body.page-auth .welcome-text,
html.rrs-theme-dark body.page-auth .auth-label,
html.rrs-theme-dark body.page-auth .form-label {
    color: var(--color-text-secondary) !important;
}

/* Final broad dark pass for shared tables, cards, filters, and forms. */
html.rrs-theme-dark .content-area .card,
html.rrs-theme-dark .content-area .stat-card,
html.rrs-theme-dark .content-area .professional-stat-card,
html.rrs-theme-dark .content-area .hero-card,
html.rrs-theme-dark .content-area .users-directory-card,
html.rrs-theme-dark .content-area .users-filter-panel,
html.rrs-theme-dark .content-area .roles-directory-card,
html.rrs-theme-dark .content-area .roles-assignment-card,
html.rrs-theme-dark .content-area .availability-overview-card,
html.rrs-theme-dark .content-area .reservation-pane-card,
html.rrs-theme-dark .content-area .audit-stat-card,
html.rrs-theme-dark .content-area .audit-filter-card,
html.rrs-theme-dark .content-area .audit-table-card,
html.rrs-theme-dark .content-area .settings-sidebar-card,
html.rrs-theme-dark .content-area .settings-security-card,
html.rrs-theme-dark .content-area .notifications-card {
    color: var(--color-text-primary) !important;
    background:
        linear-gradient(180deg, rgba(17, 24, 39, 0.98) 0%, rgba(15, 23, 42, 0.98) 100%) !important;
    border-color: rgba(148, 163, 184, 0.24) !important;
    box-shadow: var(--box-shadow) !important;
}

html.rrs-theme-dark .content-area .card:hover,
html.rrs-theme-dark .content-area .stat-card:hover,
html.rrs-theme-dark .content-area .professional-stat-card:hover {
    border-color: rgba(125, 211, 252, 0.32) !important;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28) !important;
}

html.rrs-theme-dark .reservation-stepper-node .step-badge {
    border-color: rgba(49, 56, 75, 0.98);
}

html.rrs-theme-dark .reservation-stepper-node .step-label {
    color: var(--color-text-muted);
}

html.rrs-theme-dark .reservation-stepper-node.is-active .step-label,
html.rrs-theme-dark .reservation-stepper-node.is-complete .step-label {
    color: var(--color-text-primary);
}

html.rrs-theme-dark .reservation-stepper-connector {
    background: rgba(176, 186, 207, 0.2);
}

html.rrs-theme-dark .reservation-stepper-connector::before {
    background: linear-gradient(90deg, #34d399 0%, #22c55e 100%);
}

html.rrs-theme-dark .content-area .card-header,
html.rrs-theme-dark .content-area .card-footer,
html.rrs-theme-dark .content-area .card-body,
html.rrs-theme-dark .content-area .modal-header,
html.rrs-theme-dark .content-area .modal-body,
html.rrs-theme-dark .content-area .modal-footer,
html.rrs-theme-dark .content-area .offcanvas-header,
html.rrs-theme-dark .content-area .offcanvas-body,
html.rrs-theme-dark .content-area .offcanvas-footer {
    color: var(--color-text-primary);
    background: transparent !important;
    border-color: rgba(148, 163, 184, 0.2) !important;
}

html.rrs-theme-dark .content-area .card-header {
    background: rgba(15, 23, 42, 0.74) !important;
}

html.rrs-theme-dark .content-area .dashboard-card-link,
html.rrs-theme-dark .content-area .dashboard-card-link:hover,
html.rrs-theme-dark .content-area .dashboard-card-link:focus-visible,
html.rrs-theme-dark .content-area .dashboard-card-link:visited {
    color: var(--color-text-primary) !important;
    background: transparent !important;
}

html.rrs-theme-dark .content-area .stat-value,
html.rrs-theme-dark .content-area .stat-neutral-value,
html.rrs-theme-dark .content-area .h1,
html.rrs-theme-dark .content-area .h2,
html.rrs-theme-dark .content-area .h3,
html.rrs-theme-dark .content-area .h4,
html.rrs-theme-dark .content-area .h5,
html.rrs-theme-dark .content-area .h6,
html.rrs-theme-dark .content-area .fw-semibold,
html.rrs-theme-dark .content-area .fw-bold,
html.rrs-theme-dark .content-area strong {
    color: var(--color-text-primary) !important;
}

html.rrs-theme-dark .content-area .kpi-label,
html.rrs-theme-dark .content-area .stat-label,
html.rrs-theme-dark .content-area .stat-sub,
html.rrs-theme-dark .content-area .dashboard-section-label,
html.rrs-theme-dark .content-area .text-muted,
html.rrs-theme-dark .content-area small,
html.rrs-theme-dark .content-area .small {
    color: var(--color-text-muted) !important;
}

html.rrs-theme-dark .dashboard-window-gantt-label strong {
    color: var(--color-text-primary) !important;
}

html.rrs-theme-dark .dashboard-window-gantt-head,
html.rrs-theme-dark .dashboard-window-gantt-label span {
    color: var(--color-text-secondary) !important;
}

html.rrs-theme-dark .dashboard-window-gantt-track {
    background:
        repeating-linear-gradient(
            to right,
            rgba(71, 85, 105, 0.22) 0,
            rgba(71, 85, 105, 0.22) calc(10% - 1px),
            rgba(148, 163, 184, 0.1) calc(10% - 1px),
            rgba(148, 163, 184, 0.1) 10%
        ) !important;
}

html.rrs-theme-dark .dashboard-window-gantt-bar {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.84) 0%, rgba(56, 189, 248, 0.84) 100%) !important;
}

html.rrs-theme-dark .content-area .table-responsive,
html.rrs-theme-dark .content-area .r-table-wrap,
html.rrs-theme-dark .content-area .table-wrap-auto {
    background: rgba(15, 23, 42, 0.9) !important;
    border-color: rgba(148, 163, 184, 0.22) !important;
}

html.rrs-theme-dark .content-area table,
html.rrs-theme-dark .content-area .table,
html.rrs-theme-dark .content-area .users-directory-table,
html.rrs-theme-dark .content-area .roles-directory-table,
html.rrs-theme-dark .content-area .roles-matrix-table,
html.rrs-theme-dark .content-area .roles-guide-table,
html.rrs-theme-dark .content-area .reservation-workspace-table,
html.rrs-theme-dark .content-area .audit-table,
html.rrs-theme-dark .content-area .rm-data-table {
    --bs-table-bg: transparent !important;
    --bs-table-color: var(--color-text-primary) !important;
    --bs-table-border-color: rgba(148, 163, 184, 0.14) !important;
    --bs-table-striped-bg: rgba(148, 163, 184, 0.035) !important;
    --bs-table-striped-color: var(--color-text-primary) !important;
    --bs-table-hover-bg: rgba(56, 189, 248, 0.055) !important;
    --bs-table-hover-color: #f8fafc !important;
    color: var(--color-text-primary) !important;
    background: transparent !important;
    border-color: rgba(148, 163, 184, 0.14) !important;
}

html.rrs-theme-dark .content-area .table > :not(caption) > * > *,
html.rrs-theme-dark .content-area table > :not(caption) > * > *,
html.rrs-theme-dark .content-area .rm-data-table th,
html.rrs-theme-dark .content-area .rm-data-table td {
    color: var(--color-text-primary) !important;
    background-color: transparent !important;
    background-image: none !important;
    border-color: rgba(148, 163, 184, 0.14) !important;
    box-shadow: inset 0 0 0 9999px transparent !important;
}

html.rrs-theme-dark .availability-matrix-table tbody td.availability-matrix-cell.is-open {
    color: #b7f7d2 !important;
    background: rgba(34, 197, 94, 0.18) !important;
    box-shadow: inset 0 0 0 9999px rgba(34, 197, 94, 0.18) !important;
}

html.rrs-theme-dark .availability-matrix-table tbody td.availability-matrix-cell.is-low {
    color: #fde68a !important;
    background: rgba(245, 158, 11, 0.2) !important;
    box-shadow: inset 0 0 0 9999px rgba(245, 158, 11, 0.2) !important;
}

html.rrs-theme-dark .inventory-matrix-table thead th {
    background: rgba(17, 24, 39, 0.98) !important;
    color: #cbd5e1 !important;
    border-color: rgba(148, 163, 184, 0.16) !important;
}

html.rrs-theme-dark .inventory-matrix-table tbody td.inventory-matrix-input-cell,
html.rrs-theme-dark .inventory-matrix-table tbody th.availability-matrix-room,
html.rrs-theme-dark .inventory-matrix-table tbody td.inventory-matrix-summary-cell {
    background: rgba(15, 23, 42, 0.92) !important;
    border-color: rgba(71, 85, 105, 0.58) !important;
}

html.rrs-theme-dark .inventory-matrix-table tbody td.inventory-matrix-input-cell {
    position: relative;
    box-shadow: none !important;
    padding: 0.14rem 0.14rem 0.16rem !important;
    height: 58px;
    min-height: 58px;
}

html.rrs-theme-dark .inventory-matrix-table tbody td.inventory-matrix-input-cell::after {
    content: none;
}

html.rrs-theme-dark .inventory-matrix-table tbody td.inventory-matrix-input-cell input[type="number"] {
    margin-top: 0.42rem;
    border-width: 1px !important;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 800;
    box-shadow: none !important;
    min-height: 1.56rem;
    padding-top: 0.02rem;
    padding-bottom: 0.02rem;
}

html.rrs-theme-dark .inventory-matrix-table tbody td.inventory-matrix-input-cell.is-open input[type="number"] {
    color: #dcfce7 !important;
    background: rgba(20, 83, 45, 0.78) !important;
    border-color: rgba(74, 222, 128, 0.5) !important;
}

html.rrs-theme-dark .inventory-matrix-table tbody td.inventory-matrix-input-cell.is-low input[type="number"] {
    color: #fde68a !important;
    background: rgba(120, 53, 15, 0.8) !important;
    border-color: rgba(251, 191, 36, 0.5) !important;
}

html.rrs-theme-dark .inventory-matrix-table tbody td.inventory-matrix-input-cell.is-full input[type="number"] {
    color: #fecaca !important;
    background: rgba(127, 29, 29, 0.8) !important;
    border-color: rgba(251, 113, 133, 0.48) !important;
}

html.rrs-theme-dark .inventory-matrix-table tbody td.inventory-matrix-input-cell.is-open {
    background: linear-gradient(180deg, rgba(20, 83, 45, 0.3) 0%, rgba(15, 23, 42, 0.94) 68%) !important;
}

html.rrs-theme-dark .inventory-matrix-table tbody td.inventory-matrix-input-cell.is-low {
    background: linear-gradient(180deg, rgba(120, 53, 15, 0.32) 0%, rgba(15, 23, 42, 0.94) 68%) !important;
}

html.rrs-theme-dark .inventory-matrix-table tbody td.inventory-matrix-input-cell.is-full {
    background: linear-gradient(180deg, rgba(127, 29, 29, 0.3) 0%, rgba(15, 23, 42, 0.94) 68%) !important;
}

html.rrs-theme-dark .availability-matrix-table tbody td.availability-matrix-cell.is-full {
    color: #fecaca !important;
    background: rgba(239, 68, 68, 0.18) !important;
    box-shadow: inset 0 0 0 9999px rgba(239, 68, 68, 0.18) !important;
}

html.rrs-theme-dark .availability-matrix-table tbody td.availability-matrix-cell.is-empty {
    color: #94a3b8 !important;
    background: rgba(15, 23, 42, 0.45) !important;
    box-shadow: inset 0 0 0 9999px rgba(15, 23, 42, 0.45) !important;
}

html.rrs-theme-dark .availability-matrix-table tbody td.availability-matrix-cell.is-open a:hover,
html.rrs-theme-dark .availability-matrix-table tbody td.availability-matrix-cell.is-low a:hover {
    color: #f8fafc !important;
    background: rgba(93, 155, 205, 0.34) !important;
}

html.rrs-theme-dark .content-area .table thead,
html.rrs-theme-dark .content-area .table thead th,
html.rrs-theme-dark .content-area .table-light,
html.rrs-theme-dark .content-area table thead,
html.rrs-theme-dark .content-area table thead th {
    color: var(--color-text-secondary) !important;
    background: rgba(9, 14, 24, 0.72) !important;
    border-color: rgba(148, 163, 184, 0.16) !important;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.76rem;
    font-weight: 700;
}

html.rrs-theme-dark .content-area .table-striped > tbody > tr:nth-of-type(odd) > *,
html.rrs-theme-dark .content-area .table tbody tr:nth-of-type(odd) td {
    background-color: rgba(148, 163, 184, 0.028) !important;
    box-shadow: inset 0 0 0 9999px rgba(148, 163, 184, 0.028) !important;
}

html.rrs-theme-dark .content-area .reservation-workspace-table.table-hover tbody tr:hover > *,
html.rrs-theme-dark .content-area .reservation-workspace-table tbody tr:focus-within > * {
    color: #f8fafc !important;
    background: #344a63 !important;
    box-shadow: inset 0 0 0 9999px #344a63 !important;
}

html.rrs-theme-dark .content-area .table-hover > tbody > tr:hover > *,
html.rrs-theme-dark .content-area table tbody tr:hover td {
    color: #f8fafc !important;
    background-color: rgba(56, 189, 248, 0.055) !important;
    box-shadow: inset 0 0 0 9999px rgba(56, 189, 248, 0.055) !important;
}

html.rrs-theme-dark .content-area .reservation-row-checkout-today td {
    background: rgba(245, 158, 11, 0.08) !important;
    box-shadow: inset 0 0 0 9999px rgba(245, 158, 11, 0.08) !important;
}

html.rrs-theme-dark .content-area .reservation-row-arrival-today td {
    background: rgba(56, 189, 248, 0.08) !important;
    box-shadow: inset 0 0 0 9999px rgba(56, 189, 248, 0.08) !important;
}

html.rrs-theme-dark .content-area .form-control,
html.rrs-theme-dark .content-area .form-select,
html.rrs-theme-dark .content-area .input-group-text,
html.rrs-theme-dark .content-area textarea,
html.rrs-theme-dark .content-area input[type="text"],
html.rrs-theme-dark .content-area input[type="email"],
html.rrs-theme-dark .content-area input[type="password"],
html.rrs-theme-dark .content-area input[type="number"],
html.rrs-theme-dark .content-area input[type="date"],
html.rrs-theme-dark .content-area input[type="month"],
html.rrs-theme-dark .content-area input[type="time"],
html.rrs-theme-dark .content-area select {
    color: var(--color-text-primary) !important;
    background-color: rgba(2, 6, 23, 0.54) !important;
    border-color: rgba(148, 163, 184, 0.3) !important;
    box-shadow: none !important;
}

html.rrs-theme-dark .content-area .form-control:focus,
html.rrs-theme-dark .content-area .form-select:focus,
html.rrs-theme-dark .content-area textarea:focus,
html.rrs-theme-dark .content-area input:focus,
html.rrs-theme-dark .content-area select:focus {
    color: var(--color-text-primary) !important;
    background-color: rgba(15, 23, 42, 0.98) !important;
    border-color: rgba(125, 211, 252, 0.76) !important;
    box-shadow: 0 0 0 0.18rem rgba(56, 189, 248, 0.14) !important;
}

html.rrs-theme-dark .content-area .form-label,
html.rrs-theme-dark .content-area label,
html.rrs-theme-dark .content-area legend {
    color: var(--color-text-secondary) !important;
}

html.rrs-theme-dark .content-area .form-control::placeholder,
html.rrs-theme-dark .content-area textarea::placeholder {
    color: #64748b !important;
}

html.rrs-theme-dark .content-area .form-control[readonly],
html.rrs-theme-dark .content-area .form-control:disabled,
html.rrs-theme-dark .content-area .form-select:disabled {
    color: #94a3b8 !important;
    background-color: rgba(15, 23, 42, 0.52) !important;
    opacity: 1;
}

html.rrs-theme-dark .content-area .nav-pills .nav-link,
html.rrs-theme-dark .content-area .list-group-item,
html.rrs-theme-dark .content-area .list-group-item-action {
    color: var(--color-text-secondary) !important;
    background: rgba(17, 24, 39, 0.9) !important;
    border-color: rgba(148, 163, 184, 0.24) !important;
}

html.rrs-theme-dark .content-area .nav-pills .nav-link:hover,
html.rrs-theme-dark .content-area .list-group-item-action:hover {
    color: #e0f2fe !important;
    background: rgba(56, 189, 248, 0.12) !important;
}

html.rrs-theme-dark .content-area .nav-pills .nav-link.active,
html.rrs-theme-dark .content-area .list-group-item.active {
    color: #f8fafc !important;
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--role-accent) 68%, rgba(15, 23, 42, 0.32) 32%),
        color-mix(in srgb, var(--role-accent-strong) 52%, rgba(15, 23, 42, 0.48) 48%)) !important;
}

html.rrs-theme-dark .content-area .progress {
    background: rgba(51, 65, 85, 0.7) !important;
}

html.rrs-theme-dark .content-area .sa-chart-wrap,
html.rrs-theme-dark .content-area canvas {
    color: var(--color-text-secondary);
}

html.rrs-theme-dark .content-area .border,
html.rrs-theme-dark .content-area .rounded,
html.rrs-theme-dark .content-area .rounded-2,
html.rrs-theme-dark .content-area .rounded-3,
html.rrs-theme-dark .content-area [class*="border"] {
    border-color: rgba(148, 163, 184, 0.24) !important;
}

html.rrs-theme-dark .content-area .bg-light,
html.rrs-theme-dark .content-area .bg-white,
html.rrs-theme-dark .content-area .text-bg-light {
    color: var(--color-text-primary) !important;
    background: rgba(17, 24, 39, 0.9) !important;
}

html.rrs-theme-dark .content-area .alert-info {
    color: #bae6fd;
    background: rgba(14, 116, 144, 0.24) !important;
    border-color: rgba(125, 211, 252, 0.28) !important;
}

html.rrs-theme-dark .content-area .alert-light,
html.rrs-theme-dark .content-area .alert-secondary {
    color: var(--color-text-primary);
    background: rgba(17, 24, 39, 0.9) !important;
    border-color: rgba(148, 163, 184, 0.24) !important;
}

html.rrs-theme-dark .rrs-toast .toast-header,
html.rrs-theme-dark .rrs-toast.is-success .toast-header,
html.rrs-theme-dark .rrs-toast.is-danger .toast-header,
html.rrs-theme-dark .rrs-toast.is-error .toast-header,
html.rrs-theme-dark .rrs-toast.is-warning .toast-header,
html.rrs-theme-dark .rrs-toast.is-info .toast-header {
    color: var(--color-text-primary);
    background: rgba(15, 23, 42, 0.96) !important;
    border-color: rgba(148, 163, 184, 0.22) !important;
}

html.rrs-theme-dark .rrs-toast {
    background: rgba(17, 24, 39, 0.98);
    border-color: rgba(148, 163, 184, 0.24);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
}

html.rrs-theme-dark .rrs-toast .toast-body {
    color: var(--color-text-primary);
}

html.rrs-theme-dark .audit-pagination-btn {
    color: var(--color-text-secondary);
    background: rgba(17, 24, 39, 0.92);
    border-color: rgba(148, 163, 184, 0.22);
}

html.rrs-theme-dark .audit-pagination-btn:hover,
html.rrs-theme-dark .audit-pagination-btn:focus-visible,
html.rrs-theme-dark .audit-pagination-btn.is-active {
    color: #f8fafc;
    background: rgba(56, 189, 248, 0.18);
    border-color: rgba(125, 211, 252, 0.32);
}

/* Softer slate-dark palette: less black, calmer contrast for long work sessions. */
html.rrs-theme-dark {
    --light: #252b3a;
    --gray-100: #252b3a;
    --gray-200: #2b3142;
    --gray-300: #343b4f;
    --gray-400: #4a5268;
    --color-surface: #2b3142;
    --color-background: #252b3a;
    --color-border: rgba(176, 186, 207, 0.2);
    --bs-body-bg: #252b3a;
    --bs-tertiary-bg: #2b3142;
    --bs-border-color: rgba(176, 186, 207, 0.2);
}

html.rrs-theme-dark body,
html.rrs-theme-dark body.dashboard-page,
html.rrs-theme-dark .bg-light {
    background:
        radial-gradient(circle at top right, rgba(93, 155, 205, 0.1), transparent 34%),
        linear-gradient(180deg, #252b3a 0%, #272d3e 58%, #222838 100%) !important;
}

html.rrs-theme-dark .topbar-action-group,
html.rrs-theme-dark .topbar-profile-time-group {
    background:
        radial-gradient(circle at top right, color-mix(in srgb, var(--role-accent) 12%, transparent 88%), transparent 44%),
        linear-gradient(180deg, rgba(49, 56, 75, 0.96) 0%, rgba(43, 49, 66, 0.92) 100%) !important;
    border-color: color-mix(in srgb, var(--role-accent-strong) 16%, rgba(176, 186, 207, 0.18) 84%);
    box-shadow: 0 8px 20px rgba(19, 24, 36, 0.22);
}

html.rrs-theme-dark .card,
html.rrs-theme-dark .modal-content,
html.rrs-theme-dark .offcanvas,
html.rrs-theme-dark .list-group-item,
html.rrs-theme-dark .dropdown-menu,
html.rrs-theme-dark .toast,
html.rrs-theme-dark .popover,
html.rrs-theme-dark .content-area .card,
html.rrs-theme-dark .content-area .stat-card,
html.rrs-theme-dark .content-area .professional-stat-card,
html.rrs-theme-dark .content-area .hero-card,
html.rrs-theme-dark .content-area .users-directory-card,
html.rrs-theme-dark .content-area .users-filter-panel,
html.rrs-theme-dark .content-area .roles-directory-card,
html.rrs-theme-dark .content-area .roles-assignment-card,
html.rrs-theme-dark .content-area .availability-overview-card,
html.rrs-theme-dark .content-area .reservation-pane-card,
html.rrs-theme-dark .content-area .audit-stat-card,
html.rrs-theme-dark .content-area .audit-filter-card,
html.rrs-theme-dark .content-area .audit-table-card,
html.rrs-theme-dark .content-area .settings-sidebar-card,
html.rrs-theme-dark .content-area .settings-security-card,
html.rrs-theme-dark .content-area .notifications-card {
    background: linear-gradient(180deg, rgba(49, 56, 75, 0.98) 0%, rgba(43, 49, 66, 0.98) 100%) !important;
    border-color: rgba(176, 186, 207, 0.2) !important;
    box-shadow: 0 10px 24px rgba(19, 24, 36, 0.18) !important;
}

html.rrs-theme-dark .content-area .card:hover,
html.rrs-theme-dark .content-area .stat-card:hover,
html.rrs-theme-dark .content-area .professional-stat-card:hover {
    box-shadow: 0 14px 30px rgba(19, 24, 36, 0.24) !important;
}

html.rrs-theme-dark .card-header,
html.rrs-theme-dark .card-footer,
html.rrs-theme-dark .modal-header,
html.rrs-theme-dark .modal-footer,
html.rrs-theme-dark .offcanvas-header,
html.rrs-theme-dark .content-area .card-header {
    background: rgba(43, 49, 66, 0.78) !important;
    border-color: rgba(176, 186, 207, 0.18) !important;
}

html.rrs-theme-dark .form-control,
html.rrs-theme-dark .form-select,
html.rrs-theme-dark .input-group-text,
html.rrs-theme-dark textarea,
html.rrs-theme-dark input,
html.rrs-theme-dark select,
html.rrs-theme-dark .content-area .form-control,
html.rrs-theme-dark .content-area .form-select,
html.rrs-theme-dark .content-area .input-group-text,
html.rrs-theme-dark .content-area textarea,
html.rrs-theme-dark .content-area input[type="text"],
html.rrs-theme-dark .content-area input[type="email"],
html.rrs-theme-dark .content-area input[type="password"],
html.rrs-theme-dark .content-area input[type="number"],
html.rrs-theme-dark .content-area input[type="date"],
html.rrs-theme-dark .content-area input[type="month"],
html.rrs-theme-dark .content-area input[type="time"],
html.rrs-theme-dark .content-area select {
    background-color: rgba(37, 43, 58, 0.82) !important;
    border-color: rgba(176, 186, 207, 0.26) !important;
}

html.rrs-theme-dark .form-control:focus,
html.rrs-theme-dark .form-select:focus,
html.rrs-theme-dark .content-area .form-control:focus,
html.rrs-theme-dark .content-area .form-select:focus,
html.rrs-theme-dark .content-area textarea:focus,
html.rrs-theme-dark .content-area input:focus,
html.rrs-theme-dark .content-area select:focus {
    background-color: rgba(52, 59, 79, 0.98) !important;
}

html.rrs-theme-dark .content-area .table-responsive,
html.rrs-theme-dark .content-area .r-table-wrap,
html.rrs-theme-dark .content-area .table-wrap-auto,
html.rrs-theme-dark .calendar-page .calendar-grid-wrap,
html.rrs-theme-dark .calendar-grid-header,
html.rrs-theme-dark .calendar-grid-body,
html.rrs-theme-dark .availability-workspace-card,
html.rrs-theme-dark .availability-calendar-shell {
    background: rgba(43, 49, 66, 0.92) !important;
    border-color: rgba(176, 186, 207, 0.2) !important;
}

html.rrs-theme-dark .calendar-weekday,
html.rrs-theme-dark .content-area .table thead,
html.rrs-theme-dark .content-area .table thead th,
html.rrs-theme-dark .content-area .table-light,
html.rrs-theme-dark .content-area table thead,
html.rrs-theme-dark .content-area table thead th {
    background: rgba(37, 43, 58, 0.72) !important;
}

html.rrs-theme-dark .calendar-day {
    background: #31384b !important;
}

html.rrs-theme-dark .calendar-day.is-outside-month,
html.rrs-theme-dark .availability-day-cell-empty,
html.rrs-theme-dark .calendar-day.availability-calendar-day-past,
html.rrs-theme-dark .calendar-day.availability-calendar-day-empty {
    background: #272d3e !important;
}

html.rrs-theme-dark .calendar-day.is-today {
    background: linear-gradient(180deg, rgba(93, 155, 205, 0.2), rgba(43, 49, 66, 0.98)) !important;
}

html.rrs-theme-dark .availability-page-header,
html.rrs-theme-dark .availability-compact-summary,
html.rrs-theme-dark .availability-validation-result,
html.rrs-theme-dark .availability-empty-state,
html.rrs-theme-dark .availability-legend-card,
html.rrs-theme-dark .availability-status-chip,
html.rrs-theme-dark .content-area .bg-light,
html.rrs-theme-dark .content-area .bg-white,
html.rrs-theme-dark .content-area .text-bg-light,
html.rrs-theme-dark body.page-auth .auth-card,
html.rrs-theme-dark body.page-auth .auth-form-content,
html.rrs-theme-dark body.page-auth .auth-panel-login,
html.rrs-theme-dark body.page-auth .auth-glass-card,
html.rrs-theme-dark body.page-auth .auth-verify-card,
html.rrs-theme-dark body.page-auth .auth-verify-card-simple,
html.rrs-theme-dark body.page-auth .forgot-password-card,
html.rrs-theme-dark .login-split-card,
html.rrs-theme-dark .login-form-panel,
html.rrs-theme-dark .login-welcome-panel {
    background: linear-gradient(180deg, rgba(49, 56, 75, 0.94), rgba(43, 49, 66, 0.94)) !important;
    border-color: rgba(176, 186, 207, 0.2) !important;
}

html.rrs-theme-dark body.page-auth,
html.rrs-theme-dark body.page-auth.login-page,
html.rrs-theme-dark body.forgot-password-page {
    background:
        radial-gradient(circle at 18% 16%, rgba(93, 155, 205, 0.16), transparent 28%),
        radial-gradient(circle at 84% 18%, rgba(251, 191, 36, 0.08), transparent 24%),
        linear-gradient(135deg, #222838 0%, #252b3a 46%, #2b3142 100%) !important;
}

@media (pointer: coarse) and (max-width: 767.98px) {
    html.rrs-theme-dark body.page-auth,
    html.rrs-theme-dark body.page-auth.login-page,
    html.rrs-theme-dark body.forgot-password-page {
        background: linear-gradient(180deg, #20283a 0%, #1c2333 100%) !important;
    }

    html.rrs-theme-dark body.page-auth .auth-card,
    html.rrs-theme-dark body.page-auth .auth-form-content,
    html.rrs-theme-dark body.page-auth .auth-panel-login,
    html.rrs-theme-dark body.page-auth .auth-glass-card,
    html.rrs-theme-dark body.page-auth .auth-verify-card,
    html.rrs-theme-dark body.page-auth .auth-verify-card-simple,
    html.rrs-theme-dark body.page-auth .forgot-password-card {
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
    }

    html.rrs-theme-dark body.page-auth .auth-heading,
    html.rrs-theme-dark body.page-auth .auth-heading-lg,
    html.rrs-theme-dark body.page-auth .auth-title {
        color: #f8fafc !important;
    }

    html.rrs-theme-dark body.page-auth .auth-system-sub,
    html.rrs-theme-dark body.page-auth .auth-label,
    html.rrs-theme-dark body.page-auth .form-label,
    html.rrs-theme-dark body.page-auth .auth-mobile-eyebrow,
    html.rrs-theme-dark body.page-auth .auth-meta-row .form-check-label,
    html.rrs-theme-dark body.page-auth .auth-forgot-link,
    html.rrs-theme-dark body.page-auth .auth-links-footer a,
    html.rrs-theme-dark body.page-auth .auth-links-footer span,
    html.rrs-theme-dark body.page-auth .small {
        color: #a9b5c9 !important;
    }

    html.rrs-theme-dark body.page-auth .auth-mobile-eyebrow {
        color: #8ea5c2 !important;
    }

    html.rrs-theme-dark body.page-auth .auth-input,
    html.rrs-theme-dark body.page-auth .auth-form .form-control,
    html.rrs-theme-dark body.page-auth .auth-panel-login .form-control {
        background: rgba(15, 23, 42, 0.92) !important;
        border: 1px solid rgba(148, 163, 184, 0.18) !important;
        color: #f8fafc !important;
        box-shadow: 0 8px 18px rgba(2, 6, 23, 0.16) !important;
    }

    html.rrs-theme-dark body.page-auth .auth-input::placeholder,
    html.rrs-theme-dark body.page-auth .auth-form .form-control::placeholder {
        color: #7f8aa3 !important;
    }

    html.rrs-theme-dark body.page-auth .auth-input:focus,
    html.rrs-theme-dark body.page-auth .auth-form .form-control:focus,
    html.rrs-theme-dark body.page-auth .auth-panel-login .form-control:focus {
        border-color: rgba(125, 211, 252, 0.3) !important;
        box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.14), 0 10px 22px rgba(2, 6, 23, 0.18) !important;
    }

    html.rrs-theme-dark body.page-auth .auth-password-toggle {
        color: #94a3b8 !important;
        background: transparent !important;
    }

    html.rrs-theme-dark body.page-auth .auth-signin-btn,
    html.rrs-theme-dark body.page-auth .auth-submit {
        background: linear-gradient(180deg, #243552 0%, #1c2941 100%) !important;
        border-color: rgba(148, 163, 184, 0.16) !important;
        box-shadow: 0 10px 24px rgba(2, 6, 23, 0.22) !important;
    }

    html.rrs-theme-dark body.page-auth .auth-signin-btn:hover,
    html.rrs-theme-dark body.page-auth .auth-submit:hover,
    html.rrs-theme-dark body.page-auth .auth-signin-btn:focus-visible,
    html.rrs-theme-dark body.page-auth .auth-submit:focus-visible {
        background: linear-gradient(180deg, #294061 0%, #20314c 100%) !important;
    }
}

/* Unified dark table palette, matched to the Audit Logs table. */
html.rrs-theme-dark .content-area .table-responsive,
html.rrs-theme-dark .content-area .r-table-wrap,
html.rrs-theme-dark .content-area .table-wrap-auto {
    background: rgba(43, 49, 66, 0.94) !important;
    border: 1px solid rgba(176, 186, 207, 0.2) !important;
    border-radius: var(--radius-md);
}

html.rrs-theme-dark .content-area table,
html.rrs-theme-dark .content-area table.table,
html.rrs-theme-dark .content-area .table,
html.rrs-theme-dark .content-area .users-directory-table,
html.rrs-theme-dark .content-area .roles-directory-table,
html.rrs-theme-dark .content-area .roles-matrix-table,
html.rrs-theme-dark .content-area .roles-guide-table,
html.rrs-theme-dark .content-area .reservation-workspace-table,
html.rrs-theme-dark .content-area .audit-table,
html.rrs-theme-dark .content-area .rm-data-table {
    --bs-table-bg: rgba(31, 38, 52, 0.86) !important;
    --bs-table-color: var(--color-text-primary) !important;
    --bs-table-border-color: rgba(176, 186, 207, 0.18) !important;
    --bs-table-striped-bg: rgba(37, 43, 58, 0.92) !important;
    --bs-table-striped-color: var(--color-text-primary) !important;
    --bs-table-hover-bg: rgba(93, 155, 205, 0.14) !important;
    --bs-table-hover-color: #f8fafc !important;
    color: var(--color-text-primary) !important;
    background-color: rgba(31, 38, 52, 0.86) !important;
    border-color: rgba(176, 186, 207, 0.18) !important;
}

html.rrs-theme-dark .content-area .table thead,
html.rrs-theme-dark .content-area .table thead th,
html.rrs-theme-dark .content-area .table-light,
html.rrs-theme-dark .content-area table thead,
html.rrs-theme-dark .content-area table thead th {
    color: var(--color-text-secondary) !important;
    background: rgba(37, 43, 58, 0.98) !important;
    border-color: rgba(176, 186, 207, 0.2) !important;
    box-shadow: none !important;
}

html.rrs-theme-dark .content-area .table > :not(caption) > * > *,
html.rrs-theme-dark .content-area table > :not(caption) > * > * {
    color: var(--color-text-primary) !important;
    background-color: rgba(31, 38, 52, 0.86) !important;
    background-image: none !important;
    border-color: rgba(176, 186, 207, 0.18) !important;
    box-shadow: inset 0 0 0 9999px transparent !important;
}

html.rrs-theme-dark .content-area .table-striped > tbody > tr:nth-of-type(odd) > *,
html.rrs-theme-dark .content-area .table tbody tr:nth-of-type(odd) > *,
html.rrs-theme-dark .content-area table tbody tr:nth-of-type(odd) > * {
    background-color: rgba(37, 43, 58, 0.9) !important;
    box-shadow: inset 0 0 0 9999px rgba(37, 43, 58, 0.9) !important;
}

html.rrs-theme-dark .content-area .table-hover > tbody > tr:hover > *,
html.rrs-theme-dark .content-area table tbody tr:hover > * {
    color: #f8fafc !important;
    background-color: rgba(93, 155, 205, 0.14) !important;
    box-shadow: inset 0 0 0 9999px rgba(93, 155, 205, 0.14) !important;
}

html.rrs-theme-dark .content-area .table td .text-muted,
html.rrs-theme-dark .content-area .table td small,
html.rrs-theme-dark .content-area .table td .small,
html.rrs-theme-dark .content-area table td .text-muted,
html.rrs-theme-dark .content-area table td small,
html.rrs-theme-dark .content-area table td .small {
    color: var(--color-text-muted) !important;
}

html.rrs-theme-dark .content-area .table .fw-semibold,
html.rrs-theme-dark .content-area .table .fw-bold,
html.rrs-theme-dark .content-area table strong {
    color: var(--color-text-primary) !important;
}

html.rrs-theme-dark .content-area .table > tbody > tr.table-warning > *,
html.rrs-theme-dark .content-area table > tbody > tr.table-warning > * {
    color: #fde68a !important;
    background-color: rgba(245, 158, 11, 0.12) !important;
    box-shadow: inset 0 0 0 9999px rgba(245, 158, 11, 0.12) !important;
}

html.rrs-theme-dark .content-area .table > tbody > tr.table-danger > *,
html.rrs-theme-dark .content-area table > tbody > tr.table-danger > * {
    color: #fecdd3 !important;
    background-color: rgba(244, 63, 94, 0.13) !important;
    box-shadow: inset 0 0 0 9999px rgba(244, 63, 94, 0.13) !important;
}

html.rrs-theme-dark .content-area .table > tbody > tr.table-success > *,
html.rrs-theme-dark .content-area table > tbody > tr.table-success > * {
    color: #bbf7d0 !important;
    background-color: rgba(34, 197, 94, 0.11) !important;
    box-shadow: inset 0 0 0 9999px rgba(34, 197, 94, 0.11) !important;
}

html.rrs-theme-dark .content-area .table > tbody > tr.table-info > *,
html.rrs-theme-dark .content-area table > tbody > tr.table-info > *,
html.rrs-theme-dark .content-area .table > tbody > tr.table-primary > *,
html.rrs-theme-dark .content-area table > tbody > tr.table-primary > * {
    color: #bfdbfe !important;
    background-color: rgba(93, 155, 205, 0.14) !important;
    box-shadow: inset 0 0 0 9999px rgba(93, 155, 205, 0.14) !important;
}

html.rrs-theme-dark .content-area .table > thead > tr > *,
html.rrs-theme-dark .content-area table > thead > tr > *,
html.rrs-theme-dark .content-area .table-light > tr > *,
html.rrs-theme-dark .content-area thead.table-light > tr > * {
    color: var(--color-text-secondary) !important;
    background-color: rgba(37, 43, 58, 0.98) !important;
    background-image: none !important;
    border-color: rgba(176, 186, 207, 0.2) !important;
    box-shadow: none !important;
}

html.rrs-theme-dark .content-area .table > tbody > tr,
html.rrs-theme-dark .content-area table > tbody > tr {
    transition: background-color 0.16s ease, box-shadow 0.16s ease;
}

html.rrs-theme-dark .content-area .table > tbody > tr > *,
html.rrs-theme-dark .content-area table > tbody > tr > * {
    transition: background-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

html.rrs-theme-dark .content-area .table-hover > tbody > tr:hover > *,
html.rrs-theme-dark .content-area .table > tbody > tr:hover > *,
html.rrs-theme-dark .content-area table > tbody > tr:hover > *,
html.rrs-theme-dark .content-area .table > tbody > tr:focus-within > *,
html.rrs-theme-dark .content-area table > tbody > tr:focus-within > * {
    color: #f8fafc !important;
    background-color: #344a63 !important;
    box-shadow: inset 0 0 0 9999px #344a63 !important;
}

html.rrs-theme-dark .content-area .table > tbody > tr:hover td .text-muted,
html.rrs-theme-dark .content-area table > tbody > tr:hover td .text-muted,
html.rrs-theme-dark .content-area .table > tbody > tr:focus-within td .text-muted,
html.rrs-theme-dark .content-area table > tbody > tr:focus-within td .text-muted,
html.rrs-theme-dark .content-area .table > tbody > tr:hover td small,
html.rrs-theme-dark .content-area table > tbody > tr:hover td small,
html.rrs-theme-dark .content-area .table > tbody > tr:focus-within td small,
html.rrs-theme-dark .content-area table > tbody > tr:focus-within td small {
    color: #cbd5e1 !important;
}

html.rrs-theme-dark .content-area .table > tbody > tr:hover a,
html.rrs-theme-dark .content-area table > tbody > tr:hover a,
html.rrs-theme-dark .content-area .table > tbody > tr:focus-within a,
html.rrs-theme-dark .content-area table > tbody > tr:focus-within a {
    color: #bae6fd !important;
}

html.rrs-theme-dark .content-area .table > tbody > tr.table-warning:hover > *,
html.rrs-theme-dark .content-area table > tbody > tr.table-warning:hover > *,
html.rrs-theme-dark .content-area .table > tbody > tr.table-warning:focus-within > *,
html.rrs-theme-dark .content-area table > tbody > tr.table-warning:focus-within > * {
    color: #f8fafc !important;
    background-color: #344a63 !important;
    box-shadow: inset 0 0 0 9999px #344a63 !important;
}

html.rrs-theme-dark .content-area .table > tbody > tr.table-danger:hover > *,
html.rrs-theme-dark .content-area table > tbody > tr.table-danger:hover > *,
html.rrs-theme-dark .content-area .table > tbody > tr.table-danger:focus-within > *,
html.rrs-theme-dark .content-area table > tbody > tr.table-danger:focus-within > * {
    color: #f8fafc !important;
    background-color: #344a63 !important;
    box-shadow: inset 0 0 0 9999px #344a63 !important;
}

html.rrs-theme-dark .content-area .table > tbody > tr.table-success:hover > *,
html.rrs-theme-dark .content-area table > tbody > tr.table-success:hover > *,
html.rrs-theme-dark .content-area .table > tbody > tr.table-success:focus-within > *,
html.rrs-theme-dark .content-area table > tbody > tr.table-success:focus-within > * {
    color: #f8fafc !important;
    background-color: #344a63 !important;
    box-shadow: inset 0 0 0 9999px #344a63 !important;
}

html.rrs-theme-dark .content-area .table > tbody > tr.table-info:hover > *,
html.rrs-theme-dark .content-area table > tbody > tr.table-info:hover > *,
html.rrs-theme-dark .content-area .table > tbody > tr.table-primary:hover > *,
html.rrs-theme-dark .content-area table > tbody > tr.table-primary:hover > *,
html.rrs-theme-dark .content-area .table > tbody > tr.table-info:focus-within > *,
html.rrs-theme-dark .content-area table > tbody > tr.table-info:focus-within > *,
html.rrs-theme-dark .content-area .table > tbody > tr.table-primary:focus-within > *,
html.rrs-theme-dark .content-area table > tbody > tr.table-primary:focus-within > * {
    color: #f8fafc !important;
    background-color: #344a63 !important;
    box-shadow: inset 0 0 0 9999px #344a63 !important;
}

/* Keep page-specific table rules from leaking light hover states into dark mode. */
html.rrs-theme-dark .content-area tbody tr:hover,
html.rrs-theme-dark .content-area tbody tr:focus-within,
html.rrs-theme-dark .content-area .users-directory-table tbody tr:hover,
html.rrs-theme-dark .content-area .users-directory-table tbody tr:focus-within,
html.rrs-theme-dark .content-area .roles-directory-table tbody tr:hover,
html.rrs-theme-dark .content-area .roles-directory-table tbody tr:focus-within,
html.rrs-theme-dark .content-area .roles-matrix-table tbody tr:hover,
html.rrs-theme-dark .content-area .roles-matrix-table tbody tr:focus-within,
html.rrs-theme-dark .content-area .reservation-workspace-table tbody tr:hover,
html.rrs-theme-dark .content-area .reservation-workspace-table tbody tr:focus-within,
html.rrs-theme-dark .content-area .rm-data-table tbody tr:hover,
html.rrs-theme-dark .content-area .rm-data-table tbody tr:focus-within,
html.rrs-theme-dark .content-area .audit-table tbody tr:hover,
html.rrs-theme-dark .content-area .audit-table tbody tr:focus-within {
    color: #f8fafc !important;
    background: #344a63 !important;
}

html.rrs-theme-dark .content-area tbody tr:hover > th,
html.rrs-theme-dark .content-area tbody tr:hover > td,
html.rrs-theme-dark .content-area tbody tr:focus-within > th,
html.rrs-theme-dark .content-area tbody tr:focus-within > td,
html.rrs-theme-dark .content-area .table-hover > tbody > tr:hover > th,
html.rrs-theme-dark .content-area .table-hover > tbody > tr:hover > td,
html.rrs-theme-dark .content-area .table-hover > tbody > tr:focus-within > th,
html.rrs-theme-dark .content-area .table-hover > tbody > tr:focus-within > td {
    --bs-table-accent-bg: #344a63 !important;
    --bs-table-bg-state: #344a63 !important;
    --bs-table-hover-bg: #344a63 !important;
    --bs-table-hover-color: #f8fafc !important;
    color: #f8fafc !important;
    background: #344a63 !important;
    background-color: #344a63 !important;
    background-image: none !important;
    border-color: rgba(176, 186, 207, 0.2) !important;
    box-shadow: inset 0 0 0 9999px #344a63 !important;
}

html.rrs-theme-dark .content-area tbody tr:hover .users-directory-id,
html.rrs-theme-dark .content-area tbody tr:focus-within .users-directory-id,
html.rrs-theme-dark .content-area tbody tr:hover .users-directory-chip,
html.rrs-theme-dark .content-area tbody tr:focus-within .users-directory-chip {
    color: #dbeafe !important;
    background: rgba(191, 219, 254, 0.14) !important;
    border-color: rgba(191, 219, 254, 0.2) !important;
}

html.rrs-theme-dark .content-area .roles-matrix-role-name,
html.rrs-theme-dark .content-area .roles-matrix-permission-name strong {
    color: var(--color-text-primary) !important;
}

html.rrs-theme-dark .content-area .roles-matrix-permission-name span {
    color: var(--color-text-muted) !important;
}

html.rrs-theme-dark .content-area .roles-matrix-lock {
    color: #b0bacf !important;
}

html.rrs-theme-dark .content-area .roles-matrix-count {
    color: #c8e9ff !important;
    background: rgba(125, 211, 252, 0.14) !important;
    border: 1px solid rgba(125, 211, 252, 0.18) !important;
}

html.rrs-theme-dark .content-area .roles-permission-group-card,
html.rrs-theme-dark .content-area .roles-permission-control-row {
    color: var(--color-text-primary) !important;
    background: rgba(31, 38, 52, 0.86) !important;
    border-color: rgba(176, 186, 207, 0.18) !important;
}

html.rrs-theme-dark .content-area .roles-permission-group-header h6 {
    color: var(--color-text-primary) !important;
}

html.rrs-theme-dark .content-area .roles-permission-group-header span {
    color: var(--color-text-muted) !important;
}

html.rrs-theme-dark .content-area .roles-permission-role-toggle {
    color: #b0bacf !important;
    background: rgba(176, 186, 207, 0.08) !important;
    border-color: rgba(176, 186, 207, 0.18) !important;
}

html.rrs-theme-dark .content-area .roles-permission-role-toggle.is-allowed,
html.rrs-theme-dark .content-area .roles-permission-role-toggle:has(.form-check-input:checked) {
    color: #b7f7d2 !important;
    background: rgba(52, 211, 153, 0.12) !important;
    border-color: rgba(52, 211, 153, 0.28) !important;
}

html.rrs-theme-dark .content-area .roles-permission-role-card {
    color: var(--color-text-primary) !important;
    background: rgba(31, 38, 52, 0.86) !important;
    border-color: rgba(176, 186, 207, 0.18) !important;
}

html.rrs-theme-dark .content-area .roles-permission-role-card-header h6,
html.rrs-theme-dark .content-area .roles-permission-module-title strong {
    color: var(--color-text-primary) !important;
}

html.rrs-theme-dark .content-area .roles-permission-role-card-header span {
    color: var(--color-text-muted) !important;
}

html.rrs-theme-dark .content-area .roles-permission-module {
    border-color: rgba(176, 186, 207, 0.16) !important;
}

html.rrs-theme-dark .content-area .roles-permission-module-title span {
    color: #c8e9ff !important;
    background: rgba(125, 211, 252, 0.14) !important;
}

html.rrs-theme-dark .content-area .roles-permission-chip-toggle {
    color: #b0bacf !important;
    background: rgba(176, 186, 207, 0.08) !important;
    border-color: rgba(176, 186, 207, 0.18) !important;
}

html.rrs-theme-dark .content-area .roles-permission-chip-toggle.is-allowed,
html.rrs-theme-dark .content-area .roles-permission-chip-toggle:has(.form-check-input:checked) {
    color: #b7f7d2 !important;
    background: rgba(52, 211, 153, 0.12) !important;
    border-color: transparent !important;
}

html.rrs-theme-dark .content-area .roles-permission-chip-toggle.is-denied,
html.rrs-theme-dark .content-area .roles-permission-chip-toggle:not(:has(.form-check-input:checked)) {
    color: #fecaca !important;
    background: rgba(248, 113, 113, 0.08) !important;
    border-color: transparent !important;
}

html.rrs-theme-dark .content-area .roles-permissions-sidebar,
html.rrs-theme-dark .content-area .roles-permissions-role-panel,
html.rrs-theme-dark .content-area .roles-permissions-overview > div,
html.rrs-theme-dark .content-area .roles-permissions-module-table {
    color: var(--color-text-primary) !important;
    background: rgba(31, 38, 52, 0.86) !important;
    border-color: rgba(176, 186, 207, 0.18) !important;
}

html.rrs-theme-dark .content-area .roles-permissions-sidebar-head,
html.rrs-theme-dark .content-area .roles-permissions-role-button,
html.rrs-theme-dark .content-area .roles-permissions-module-row,
html.rrs-theme-dark .content-area .roles-permissions-module-header > span,
html.rrs-theme-dark .content-area .roles-permissions-module-row > div {
    border-color: rgba(176, 186, 207, 0.16) !important;
}

html.rrs-theme-dark .content-area .roles-permissions-role-button.is-active,
html.rrs-theme-dark .content-area .roles-permissions-role-button:hover {
    background: rgba(93, 155, 205, 0.16) !important;
    color: #c8e9ff !important;
}

html.rrs-theme-dark .content-area .roles-permissions-module-header {
    color: var(--color-text-muted) !important;
    background: rgba(15, 23, 42, 0.35) !important;
}

html.rrs-theme-dark .content-area .roles-permission-empty {
    color: var(--color-text-muted) !important;
}

html.rrs-theme-dark .content-area .roles-matrix-toggle.is-allowed {
    color: #b7f7d2 !important;
    background: rgba(52, 211, 153, 0.12) !important;
    border-color: rgba(52, 211, 153, 0.28) !important;
}

html.rrs-theme-dark .content-area .roles-matrix-toggle.is-denied {
    color: #b0bacf !important;
    background: rgba(176, 186, 207, 0.08) !important;
    border-color: rgba(176, 186, 207, 0.18) !important;
}

html.rrs-theme-dark .content-area .roles-matrix-toggle:has(.form-check-input:checked) {
    color: #b7f7d2 !important;
    background: rgba(52, 211, 153, 0.12) !important;
    border-color: rgba(52, 211, 153, 0.28) !important;
}

html.rrs-theme-dark .content-area .roles-matrix-toggle:not(:has(.form-check-input:checked)) {
    color: #b0bacf !important;
    background: rgba(176, 186, 207, 0.08) !important;
    border-color: rgba(176, 186, 207, 0.18) !important;
}

html.rrs-theme-dark .content-area .roles-matrix-toggle:not(.is-readonly):hover {
    background: rgba(93, 155, 205, 0.18) !important;
    border-color: rgba(125, 211, 252, 0.32) !important;
}

html.rrs-theme-dark .content-area .users-directory-id {
    color: var(--color-text-muted) !important;
    background: transparent !important;
    border-color: transparent !important;
}

html.rrs-theme-dark .content-area tbody tr:hover .users-directory-id,
html.rrs-theme-dark .content-area tbody tr:focus-within .users-directory-id {
    color: #cbd5e1 !important;
    background: transparent !important;
    border-color: transparent !important;
}

html.rrs-theme-dark .content-area .table-action-toggle {
    color: var(--color-text-secondary) !important;
    background: rgba(37, 43, 58, 0.9) !important;
    border-color: rgba(176, 186, 207, 0.24) !important;
    box-shadow: 0 1px 2px rgba(19, 24, 36, 0.24) !important;
}

html.rrs-theme-dark .content-area .table-action-toggle:hover,
html.rrs-theme-dark .content-area .table-action-toggle:focus-visible,
html.rrs-theme-dark .content-area .table-action-toggle[aria-expanded="true"] {
    color: #f8fafc !important;
    background: color-mix(in srgb, var(--role-accent-soft) 78%, rgba(15, 23, 42, 0.22) 22%) !important;
    border-color: color-mix(in srgb, var(--role-accent-strong) 24%, rgba(176, 186, 207, 0.18) 76%) !important;
    box-shadow: 0 8px 18px rgba(19, 24, 36, 0.26) !important;
}

html.rrs-theme-dark .content-area .table-action-menu {
    background: #2b3142 !important;
    border-color: rgba(176, 186, 207, 0.22) !important;
    box-shadow: 0 16px 34px rgba(19, 24, 36, 0.32) !important;
}

html.rrs-theme-dark .content-area .table-action-menu .dropdown-item {
    color: var(--color-text-primary) !important;
}

html.rrs-theme-dark .content-area .table-action-menu .dropdown-item:hover,
html.rrs-theme-dark .content-area .table-action-menu .dropdown-item:focus {
    color: #f8fafc !important;
    background: #344a63 !important;
}

html.rrs-theme-dark .content-area .table-action-menu .dropdown-item.text-danger {
    color: #fda4af !important;
}

html.rrs-theme-dark .content-area .table-action-menu .dropdown-item.text-danger:hover,
html.rrs-theme-dark .content-area .table-action-menu .dropdown-item.text-danger:focus {
    color: #ffe4e6 !important;
    background: rgba(244, 63, 94, 0.16) !important;
}

html.rrs-theme-dark .topbar-profile-menu-section + .topbar-profile-menu-section {
    border-top-color: rgba(176, 186, 207, 0.16) !important;
}

html.rrs-theme-dark .topbar-profile-logout-section {
    background: rgba(37, 43, 58, 0.22);
}

html.rrs-theme-dark,
html.rrs-theme-dark *,
html.rrs-theme-dark *::before,
html.rrs-theme-dark *::after {
    scrollbar-width: thin;
    scrollbar-color: #9fc0cf rgba(14, 24, 38, 0.78);
}

html.rrs-theme-dark ::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

html.rrs-theme-dark ::-webkit-scrollbar-track {
    background: rgba(14, 24, 38, 0.78);
    border-radius: 999px;
}

html.rrs-theme-dark ::-webkit-scrollbar-thumb {
    background: #9fc0cf;
    border: 3px solid rgba(14, 24, 38, 0.78);
    border-radius: 999px;
}

html.rrs-theme-dark ::-webkit-scrollbar-thumb:hover {
    background: #b7d3df;
}

html.rrs-theme-dark ::-webkit-scrollbar-corner {
    background: rgba(14, 24, 38, 0.78);
}

html.rrs-theme-dark .table-responsive,
html.rrs-theme-dark .r-table-wrap,
html.rrs-theme-dark .table-wrap-auto,
html.rrs-theme-dark .sidebar-nav,
html.rrs-theme-dark .dropdown-menu,
html.rrs-theme-dark .modal,
html.rrs-theme-dark .offcanvas,
html.rrs-theme-dark .audit-pre {
    scrollbar-color: #9fc0cf rgba(14, 24, 38, 0.78) !important;
}

html.rrs-theme-dark .sidebar-nav {
    scrollbar-color:
        color-mix(in srgb, var(--role-accent) 52%, var(--color-sidebar-text) 48%)
        color-mix(in srgb, var(--color-sidebar-bottom) 86%, #000000 14%) !important;
}

html.rrs-theme-dark .sidebar-nav::-webkit-scrollbar-track {
    background: color-mix(in srgb, var(--color-sidebar-bottom) 86%, #000000 14%) !important;
}

html.rrs-theme-dark .sidebar-nav::-webkit-scrollbar-thumb {
    background:
        linear-gradient(
            180deg,
            color-mix(in srgb, var(--role-accent) 48%, var(--color-sidebar-text) 52%),
            color-mix(in srgb, var(--role-accent-strong) 42%, var(--color-sidebar-text) 58%)
        ) !important;
    border-color: color-mix(in srgb, var(--color-sidebar-bottom) 86%, #000000 14%) !important;
}

html.rrs-theme-dark .sidebar-nav::-webkit-scrollbar-thumb:hover {
    background:
        linear-gradient(
            180deg,
            color-mix(in srgb, var(--role-accent) 36%, var(--color-sidebar-text) 64%),
            color-mix(in srgb, var(--role-accent-strong) 52%, var(--color-sidebar-text) 48%)
        ) !important;
}

html.rrs-theme-dark .content-area .settings-form-section,
html.rrs-theme-dark .content-area .settings-security-card {
    color: var(--color-text-primary) !important;
    background: linear-gradient(180deg, rgba(49, 56, 75, 0.96), rgba(43, 49, 66, 0.96)) !important;
    border-color: rgba(176, 186, 207, 0.2) !important;
    box-shadow: 0 10px 24px rgba(19, 24, 36, 0.16) !important;
}

html.rrs-theme-dark .content-area .settings-form-section-heading {
    color: var(--color-text-muted) !important;
}

html.rrs-theme-dark .content-area .settings-form-section .form-label,
html.rrs-theme-dark .content-area .settings-security-card .form-label {
    color: var(--color-text-secondary) !important;
}

html.rrs-theme-dark .content-area .settings-form-section small,
html.rrs-theme-dark .content-area .settings-form-section .text-muted,
html.rrs-theme-dark .content-area .settings-security-card small,
html.rrs-theme-dark .content-area .settings-security-card .text-muted {
    color: var(--color-text-muted) !important;
}

html.rrs-theme-dark .content-area .settings-form-section .form-control,
html.rrs-theme-dark .content-area .settings-form-section .form-select,
html.rrs-theme-dark .content-area .settings-security-card .form-control,
html.rrs-theme-dark .content-area .settings-security-card .form-select {
    color: var(--color-text-primary) !important;
    background-color: rgba(37, 43, 58, 0.92) !important;
    border-color: rgba(176, 186, 207, 0.3) !important;
}

html.rrs-theme-dark .content-area .settings-sidebar-profile {
    border-bottom-color: rgba(176, 186, 207, 0.18) !important;
}

html.rrs-theme-dark .content-area .settings-sidebar-profile-name {
    color: var(--color-text-primary) !important;
}

html.rrs-theme-dark .content-area .settings-sidebar-profile-role,
html.rrs-theme-dark .content-area .settings-nav-category,
html.rrs-theme-dark .content-area .settings-panel-description {
    color: var(--color-text-muted) !important;
}

html.rrs-theme-dark .content-area .settings-sidebar-card .list-group {
    background: transparent !important;
}

html.rrs-theme-dark .content-area .settings-sidebar-card .list-group-item {
    color: var(--color-text-secondary) !important;
    background: transparent !important;
    border-color: transparent !important;
}

html.rrs-theme-dark .content-area .settings-sidebar-card .list-group-item i {
    color: var(--color-text-muted) !important;
}

html.rrs-theme-dark .content-area .settings-sidebar-card .list-group-item:hover,
html.rrs-theme-dark .content-area .settings-sidebar-card .list-group-item:focus {
    color: #f8fafc !important;
    background: color-mix(in srgb, var(--role-accent-soft) 72%, rgba(15, 23, 42, 0.16) 28%) !important;
    box-shadow: inset 2px 0 0 color-mix(in srgb, var(--role-accent-strong) 68%, rgba(255,255,255,0.06) 32%);
}

html.rrs-theme-dark .content-area .settings-sidebar-card .list-group-item:hover i,
html.rrs-theme-dark .content-area .settings-sidebar-card .list-group-item:focus i {
    color: var(--role-accent-strong) !important;
}

html.rrs-theme-dark .content-area .settings-sidebar-card .list-group-item.active {
    color: #f8fafc !important;
    background: color-mix(in srgb, var(--role-accent-soft) 92%, rgba(15, 23, 42, 0.08) 8%) !important;
}

html.rrs-theme-dark .content-area .settings-sidebar-card .list-group-item.active::before {
    background: var(--role-accent-strong) !important;
}

html.rrs-theme-dark .content-area .settings-sidebar-card .list-group-item.active i {
    color: var(--role-accent-strong) !important;
}

html.rrs-theme-dark .content-area .settings-session-section {
    border-top-color: rgba(176, 186, 207, 0.18) !important;
}

html.rrs-theme-dark .content-area .settings-session-title {
    color: var(--color-text-primary) !important;
}

html.rrs-theme-dark .content-area .settings-session-description,
html.rrs-theme-dark .content-area .settings-session-status,
html.rrs-theme-dark .content-area .settings-session-current,
html.rrs-theme-dark .content-area .settings-session-ip,
html.rrs-theme-dark .content-area .settings-session-details dd {
    color: var(--color-text-secondary) !important;
}

html.rrs-theme-dark .content-area .settings-session-details dt,
html.rrs-theme-dark .content-area .settings-session-icon {
    color: var(--color-text-muted) !important;
}

html.rrs-theme-dark .content-area .settings-session-card {
    background: rgba(37, 43, 58, 0.82) !important;
    border-color: rgba(176, 186, 207, 0.2) !important;
}

html.rrs-theme-dark .content-area .settings-session-primary {
    color: var(--color-text-primary) !important;
}

html.rrs-theme-dark .content-area .settings-session-dot {
    background: var(--color-success) !important;
}

html.rrs-theme-dark .room-page-shell {
    color: var(--color-text-primary);
}

html.rrs-theme-dark .room-page-shell .room-scope-badge,
html.rrs-theme-dark .room-page-shell .room-list-count,
html.rrs-theme-dark .room-page-shell .room-metric-card,
html.rrs-theme-dark .room-page-shell .room-type-card,
html.rrs-theme-dark .room-page-shell .room-type-count-card,
html.rrs-theme-dark .room-page-shell .room-roster-assignment,
html.rrs-theme-dark .room-page-shell .room-roster-tag,
html.rrs-theme-dark .room-page-shell .room-form-section,
html.rrs-theme-dark .room-page-shell .physical-room-bedding-option {
    color: var(--color-text-primary);
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.96) 0%, rgba(15, 23, 42, 0.96) 100%);
    border-color: rgba(148, 163, 184, 0.22);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

html.rrs-theme-dark .room-page-shell .room-section-link,
html.rrs-theme-dark .room-page-shell .bedding-header-actions > .btn-outline-secondary {
    color: var(--color-text-secondary);
    background: rgba(15, 23, 42, 0.9);
    border-color: rgba(148, 163, 184, 0.28);
}

html.rrs-theme-dark .room-page-shell .room-section-link:hover,
html.rrs-theme-dark .room-page-shell .room-section-link:focus-visible,
html.rrs-theme-dark .room-page-shell .bedding-header-actions > .btn-outline-secondary:hover,
html.rrs-theme-dark .room-page-shell .bedding-header-actions > .btn-outline-secondary:focus-visible {
    color: #f8fafc;
    background: color-mix(in srgb, var(--role-accent-soft) 78%, rgba(15, 23, 42, 0.14) 22%);
    border-color: color-mix(in srgb, var(--role-accent-strong) 28%, rgba(148, 163, 184, 0.22) 72%);
    box-shadow: 0 10px 22px rgba(2, 6, 23, 0.24);
}

html.rrs-theme-dark .room-page-shell .room-section-link.is-active {
    color: #f8fafc;
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--role-accent) 72%, rgba(15, 23, 42, 0.28) 28%),
        color-mix(in srgb, var(--role-accent-strong) 52%, rgba(15, 23, 42, 0.46) 46%));
    border-color: color-mix(in srgb, var(--role-accent-strong) 26%, rgba(148, 163, 184, 0.22) 74%);
}

html.rrs-theme-dark .room-page-shell .room-type-card-media,
html.rrs-theme-dark .room-page-shell .room-modal-content,
html.rrs-theme-dark .room-page-shell .room-modal-header,
html.rrs-theme-dark .room-page-shell .room-form-section-soft {
    background:
        radial-gradient(circle at top right, rgba(56, 189, 248, 0.12), transparent 30%),
        linear-gradient(180deg, rgba(17, 24, 39, 0.98) 0%, rgba(15, 23, 42, 0.96) 100%);
    border-color: rgba(148, 163, 184, 0.2);
}

html.rrs-theme-dark .room-page-shell .room-type-card-media-placeholder,
html.rrs-theme-dark .room-page-shell .room-type-card-description,
html.rrs-theme-dark .room-page-shell .room-type-card-meta,
html.rrs-theme-dark .room-page-shell .room-type-card-tag,
html.rrs-theme-dark .room-page-shell .room-roster-type,
html.rrs-theme-dark .room-page-shell .room-roster-bedding,
html.rrs-theme-dark .room-page-shell .room-roster-assignment span,
html.rrs-theme-dark .room-page-shell .physical-room-bedding-meta {
    color: var(--color-text-secondary);
}

html.rrs-theme-dark .room-page-shell .room-type-card-media-placeholder i,
html.rrs-theme-dark .room-page-shell .room-type-card-media-placeholder span,
html.rrs-theme-dark .room-page-shell .room-roster-code,
html.rrs-theme-dark .room-page-shell .room-roster-detail strong,
html.rrs-theme-dark .room-page-shell .physical-room-bedding-name {
    color: var(--color-text-primary);
}

html.rrs-theme-dark .room-page-shell .room-management-sidebar-card .list-group-item {
    color: var(--color-text-secondary);
}

html.rrs-theme-dark .room-page-shell .room-management-sidebar-card .list-group-item i {
    color: var(--color-text-muted);
}

html.rrs-theme-dark .room-page-shell .room-management-sidebar-card .list-group-item:hover,
html.rrs-theme-dark .room-page-shell .room-management-sidebar-card .list-group-item:focus,
html.rrs-theme-dark .room-page-shell .room-management-sidebar-card .list-group-item:focus-visible {
    color: var(--color-text-primary);
    background: color-mix(in srgb, var(--role-accent-soft) 72%, rgba(15, 23, 42, 0.16) 28%);
}

html.rrs-theme-dark .room-page-shell .room-management-sidebar-card .list-group-item.active {
    color: #f8fafc;
    background: color-mix(in srgb, var(--role-accent-soft) 92%, rgba(15, 23, 42, 0.08) 8%);
}

html.rrs-theme-dark .room-page-shell .room-management-sidebar-card .list-group-item.active::before {
    background: var(--role-accent-strong);
}

html.rrs-theme-dark .room-page-shell .room-management-sidebar-card .list-group-item.active i {
    color: var(--role-accent-strong);
}

html.rrs-theme-dark .content-area .reservation-toolbar-title h5,
html.rrs-theme-dark .content-area .reservation-booking-code,
html.rrs-theme-dark .content-area .reservation-primary-line strong,
html.rrs-theme-dark .content-area .reservation-workspace-table tbody td strong {
    color: var(--color-text-primary) !important;
}

html.rrs-theme-dark .content-area .reservation-toolbar-title .text-muted,
html.rrs-theme-dark .content-area .reservation-secondary-line,
html.rrs-theme-dark .content-area .reservation-mobile-date-value,
html.rrs-theme-dark .content-area .reservation-note-line {
    color: var(--color-text-secondary) !important;
}

html.rrs-theme-dark .content-area .reservation-table-tabs .btn {
    color: var(--color-text-secondary) !important;
    background: rgba(15, 23, 42, 0.94) !important;
    border-color: rgba(148, 163, 184, 0.26) !important;
    font-weight: 700;
    letter-spacing: 0.01em;
}

html.rrs-theme-dark .content-area .reservation-table-tabs .btn:hover,
html.rrs-theme-dark .content-area .reservation-table-tabs .btn:focus-visible {
    color: #f8fafc !important;
    background: color-mix(in srgb, var(--role-accent-soft) 78%, rgba(15, 23, 42, 0.22) 22%) !important;
    border-color: color-mix(in srgb, var(--role-accent-strong) 22%, rgba(148, 163, 184, 0.2) 78%) !important;
}

html.rrs-theme-dark .content-area .reservation-table-tabs .btn.btn-primary {
    color: #f8fafc !important;
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--role-accent) 76%, rgba(15, 23, 42, 0.24) 24%),
        color-mix(in srgb, var(--role-accent-strong) 50%, rgba(15, 23, 42, 0.46) 50%)) !important;
    border-color: color-mix(in srgb, var(--role-accent-strong) 28%, rgba(148, 163, 184, 0.18) 72%) !important;
    box-shadow: 0 10px 22px rgba(2, 6, 23, 0.24);
}

html.rrs-theme-dark .content-area .reservation-tab-count {
    color: var(--color-text-primary) !important;
    background: rgba(2, 6, 23, 0.34) !important;
    border: 1px solid rgba(148, 163, 184, 0.18);
}

html.rrs-theme-dark .content-area .reservation-filter-form .form-control,
html.rrs-theme-dark .content-area .reservation-filter-form .form-select {
    color: var(--color-text-primary) !important;
    background: rgba(8, 14, 24, 0.92) !important;
    border-color: rgba(148, 163, 184, 0.26) !important;
    font-weight: 600;
}

html.rrs-theme-dark .content-area .reservation-filter-form .form-control::placeholder {
    color: var(--color-text-muted) !important;
}

html.rrs-theme-dark .content-area .reservation-create-btn,
html.rrs-theme-dark .content-area .reservation-filter-btn {
    font-weight: 700;
    letter-spacing: 0.01em;
}

html.rrs-theme-dark .content-area .reservation-create-btn.btn-primary {
    color: #f8fafc !important;
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--role-accent) 80%, rgba(15, 23, 42, 0.2) 20%),
        color-mix(in srgb, var(--role-accent-strong) 50%, rgba(15, 23, 42, 0.42) 50%)) !important;
    border-color: color-mix(in srgb, var(--role-accent-strong) 26%, rgba(148, 163, 184, 0.18) 74%) !important;
    box-shadow: 0 12px 24px rgba(2, 6, 23, 0.24);
}

html.rrs-theme-dark .content-area .reservation-create-btn.btn-primary:hover,
html.rrs-theme-dark .content-area .reservation-create-btn.btn-primary:focus-visible {
    color: #ffffff !important;
    filter: brightness(1.04);
}

html.rrs-theme-dark .content-area .reservation-filter-btn.btn-outline-primary,
html.rrs-theme-dark .content-area .reservation-filter-btn.btn-outline-secondary {
    color: var(--color-text-secondary) !important;
    background: rgba(15, 23, 42, 0.9) !important;
    border-color: rgba(148, 163, 184, 0.26) !important;
}

html.rrs-theme-dark .content-area .reservation-filter-btn.btn-outline-primary:hover,
html.rrs-theme-dark .content-area .reservation-filter-btn.btn-outline-primary:focus-visible,
html.rrs-theme-dark .content-area .reservation-filter-btn.btn-outline-secondary:hover,
html.rrs-theme-dark .content-area .reservation-filter-btn.btn-outline-secondary:focus-visible {
    color: #f8fafc !important;
    background: color-mix(in srgb, var(--role-accent-soft) 76%, rgba(15, 23, 42, 0.22) 24%) !important;
    border-color: color-mix(in srgb, var(--role-accent-strong) 20%, rgba(148, 163, 184, 0.22) 80%) !important;
}

html.rrs-theme-dark .content-area .reservation-status-text {
    color: var(--color-text-primary) !important;
    background: rgba(37, 43, 58, 0.9) !important;
    border-color: rgba(176, 186, 207, 0.22) !important;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-transform: none;
}

html.rrs-theme-dark .content-area .reservation-status-text::before {
    opacity: 1;
}

html.rrs-theme-dark .content-area .reservation-status-text.is-confirmed {
    color: #dcfce7 !important;
    background: rgba(22, 163, 74, 0.16) !important;
    border-color: rgba(74, 222, 128, 0.22) !important;
}

html.rrs-theme-dark .content-area .reservation-status-text.is-checked-in {
    color: #dbeafe !important;
    background: rgba(37, 99, 235, 0.16) !important;
    border-color: rgba(96, 165, 250, 0.22) !important;
}

html.rrs-theme-dark .content-area .reservation-status-text.is-checked-out {
    color: #e2e8f0 !important;
    background: rgba(71, 85, 105, 0.22) !important;
    border-color: rgba(148, 163, 184, 0.22) !important;
}

html.rrs-theme-dark .content-area .reservation-status-text.is-cancelled {
    color: #ffe4e6 !important;
    background: rgba(225, 29, 72, 0.16) !important;
    border-color: rgba(251, 113, 133, 0.22) !important;
}

html.rrs-theme-dark .content-area .reservation-status-text.is-pending {
    color: #fef3c7 !important;
    background: rgba(217, 119, 6, 0.16) !important;
    border-color: rgba(251, 191, 36, 0.22) !important;
}

html.rrs-theme-dark .room-page-shell .room-roster-item + .room-roster-item,
html.rrs-theme-dark .room-page-shell .room-modal-header,
html.rrs-theme-dark .room-page-shell .room-type-card-media {
    border-color: rgba(148, 163, 184, 0.18);
}

html.rrs-theme-dark .room-page-shell .room-roster-item {
    background: rgba(11, 17, 28, 0.18);
}

html.rrs-theme-dark .room-page-shell .room-roster-item:hover,
html.rrs-theme-dark .room-page-shell .room-roster-item:focus-within {
    background: rgba(56, 189, 248, 0.04);
}

html.rrs-theme-dark .room-page-shell .room-roster-status.is-available {
    color: #d1fae5;
    background: rgba(34, 197, 94, 0.12);
}

html.rrs-theme-dark .room-page-shell .room-roster-status.is-occupied {
    color: #dbeafe;
    background: rgba(37, 99, 235, 0.14);
}

html.rrs-theme-dark .room-page-shell .room-roster-status.is-checked-out {
    color: #cffafe;
    background: rgba(8, 145, 178, 0.12);
}

html.rrs-theme-dark .room-page-shell .room-roster-status.is-maintenance {
    color: #fef3c7;
    background: rgba(217, 119, 6, 0.14);
}

html.rrs-theme-dark .room-page-shell .room-roster-status.is-inactive,
html.rrs-theme-dark .room-page-shell .room-roster-status.is-neutral {
    color: #dbe4f0;
    background: rgba(148, 163, 184, 0.12);
}

html.rrs-theme-dark .rates-workspace-sidebar-card,
html.rrs-theme-dark .rate-preview-card,
html.rrs-theme-dark .rate-preview-breakdown,
html.rrs-theme-dark .seasonal-rate-formula-card,
html.rrs-theme-dark .seasonal-live-preview,
html.rrs-theme-dark .discount-type-option > span,
html.rrs-theme-dark .discount-condition-card,
html.rrs-theme-dark .discount-room-option,
html.rrs-theme-dark .discount-live-preview {
    color: var(--color-text-primary);
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.96) 0%, rgba(15, 23, 42, 0.96) 100%);
    border-color: rgba(148, 163, 184, 0.22);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

html.rrs-theme-dark .rate-preview-header {
    background: rgba(30, 41, 59, 0.74);
    border-color: rgba(148, 163, 184, 0.18);
}

html.rrs-theme-dark .rate-preview-row + .rate-preview-row,
html.rrs-theme-dark .seasonal-live-preview-row + .seasonal-live-preview-row,
html.rrs-theme-dark .discount-live-preview-row + .discount-live-preview-row,
html.rrs-theme-dark .discount-form-section {
    border-color: rgba(148, 163, 184, 0.16);
}

html.rrs-theme-dark .rate-preview-meta,
html.rrs-theme-dark .rate-preview-note,
html.rrs-theme-dark .seasonal-rate-formula-label,
html.rrs-theme-dark .seasonal-live-preview-title,
html.rrs-theme-dark .seasonal-live-preview-arrow,
html.rrs-theme-dark .discount-form-subtitle,
html.rrs-theme-dark .discount-section-title,
html.rrs-theme-dark .discount-section-note,
html.rrs-theme-dark .discount-condition-body small,
html.rrs-theme-dark .discount-option-row small,
html.rrs-theme-dark .discount-live-preview-row small,
html.rrs-theme-dark .discount-live-preview-excluded,
html.rrs-theme-dark .rates-nav-category {
    color: var(--color-text-muted);
}

html.rrs-theme-dark .rate-preview-total {
    color: #93c5fd;
}

html.rrs-theme-dark .seasonal-change-indicator.is-increase {
    color: #d1fae5;
    background: rgba(34, 197, 94, 0.12);
}

html.rrs-theme-dark .seasonal-change-indicator.is-decrease {
    color: #ffe4e6;
    background: rgba(225, 29, 72, 0.12);
}

html.rrs-theme-dark .seasonal-change-indicator.is-neutral {
    color: #dbe4f0;
    background: rgba(148, 163, 184, 0.12);
}

html.rrs-theme-dark .discount-segmented-toggle {
    background: rgba(15, 23, 42, 0.94);
    border-color: rgba(148, 163, 184, 0.22);
}

html.rrs-theme-dark .discount-segment-option span {
    color: var(--color-text-secondary);
    border-color: rgba(148, 163, 184, 0.14);
}

html.rrs-theme-dark .discount-segment-option input:checked + span {
    background: rgba(59, 130, 246, 0.14);
    color: var(--color-text-primary);
    box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.24);
}

html.rrs-theme-dark .discount-type-chip {
    color: #fde7ef;
    background: rgba(190, 24, 93, 0.2);
}

html.rrs-theme-dark .discount-flat-rate-note,
html.rrs-theme-dark .discount-inline-alert {
    color: #fde68a;
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.22);
}

html.rrs-theme-dark .discount-condition-card.is-active,
html.rrs-theme-dark .discount-room-option:has(input:checked),
html.rrs-theme-dark .discount-type-option input:checked + span {
    border-color: rgba(96, 165, 250, 0.3);
}

html.rrs-theme-dark .discount-room-option:has(input:checked) {
    background: rgba(59, 130, 246, 0.12);
}

html.rrs-theme-dark .discount-value-suffix,
html.rrs-theme-dark .discount-inline-helper {
    color: var(--color-text-secondary);
}

/* Phase 3: forms, modals, and dropdown polish */
html.rrs-theme-dark .modal-content,
html.rrs-theme-dark .offcanvas,
html.rrs-theme-dark .dropdown-menu {
    background:
        radial-gradient(circle at top right, rgba(56, 189, 248, 0.07), transparent 32%),
        linear-gradient(180deg, rgba(24, 33, 48, 0.985) 0%, rgba(18, 26, 40, 0.995) 100%) !important;
    border-color: rgba(148, 163, 184, 0.24) !important;
    box-shadow: 0 22px 46px rgba(0, 0, 0, 0.34) !important;
}

html.rrs-theme-dark .modal-header,
html.rrs-theme-dark .modal-footer,
html.rrs-theme-dark .offcanvas-header,
html.rrs-theme-dark .offcanvas-footer,
html.rrs-theme-dark .content-area .modal-header,
html.rrs-theme-dark .content-area .modal-footer,
html.rrs-theme-dark .content-area .offcanvas-header,
html.rrs-theme-dark .content-area .offcanvas-footer {
    background: rgba(32, 43, 61, 0.74) !important;
    border-color: rgba(148, 163, 184, 0.14) !important;
}

html.rrs-theme-dark .card-header,
html.rrs-theme-dark .card-body,
html.rrs-theme-dark .card-footer,
html.rrs-theme-dark .modal-header,
html.rrs-theme-dark .modal-body,
html.rrs-theme-dark .modal-footer,
html.rrs-theme-dark .offcanvas-header,
html.rrs-theme-dark .offcanvas-body,
html.rrs-theme-dark .offcanvas-footer {
    padding-left: clamp(1rem, 1.6vw, 1.35rem);
    padding-right: clamp(1rem, 1.6vw, 1.35rem);
}

html.rrs-theme-dark .modal-body,
html.rrs-theme-dark .offcanvas-body,
html.rrs-theme-dark .content-area .modal-body,
html.rrs-theme-dark .content-area .offcanvas-body {
    background: transparent !important;
}

html.rrs-theme-dark .form-label,
html.rrs-theme-dark .content-area .form-label {
    color: var(--color-text-secondary) !important;
    font-weight: 600;
    letter-spacing: 0.01em;
    margin-bottom: 0.45rem;
}

html.rrs-theme-dark .form-control,
html.rrs-theme-dark .form-select,
html.rrs-theme-dark .input-group-text,
html.rrs-theme-dark textarea,
html.rrs-theme-dark input,
html.rrs-theme-dark select,
html.rrs-theme-dark .content-area .form-control,
html.rrs-theme-dark .content-area .form-select,
html.rrs-theme-dark .content-area .input-group-text,
html.rrs-theme-dark .content-area textarea,
html.rrs-theme-dark .content-area input[type="text"],
html.rrs-theme-dark .content-area input[type="email"],
html.rrs-theme-dark .content-area input[type="password"],
html.rrs-theme-dark .content-area input[type="number"],
html.rrs-theme-dark .content-area input[type="date"],
html.rrs-theme-dark .content-area input[type="search"],
html.rrs-theme-dark .content-area select {
    color: var(--color-text-primary) !important;
    background-color: rgba(14, 21, 33, 0.92) !important;
    border-color: rgba(148, 163, 184, 0.2) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02) !important;
}

html.rrs-theme-dark .input-group-text,
html.rrs-theme-dark .content-area .input-group-text {
    color: var(--color-text-muted) !important;
    background-color: rgba(24, 33, 48, 0.92) !important;
}

html.rrs-theme-dark .form-control:focus,
html.rrs-theme-dark .form-select:focus,
html.rrs-theme-dark .content-area .form-control:focus,
html.rrs-theme-dark .content-area .form-select:focus,
html.rrs-theme-dark .content-area textarea:focus,
html.rrs-theme-dark .content-area input:focus,
html.rrs-theme-dark .content-area select:focus {
    color: var(--color-text-primary) !important;
    background-color: rgba(18, 27, 41, 0.98) !important;
    border-color: rgba(125, 211, 252, 0.62) !important;
    box-shadow: 0 0 0 0.2rem rgba(56, 189, 248, 0.12) !important;
}

html.rrs-theme-dark .form-control::placeholder,
html.rrs-theme-dark .content-area .form-control::placeholder,
html.rrs-theme-dark .content-area textarea::placeholder {
    color: #718096 !important;
}

html.rrs-theme-dark .form-text,
html.rrs-theme-dark .content-area .form-text,
html.rrs-theme-dark .content-area .help-text,
html.rrs-theme-dark .content-area .text-muted {
    color: var(--color-text-muted) !important;
    line-height: 1.42;
}

html.rrs-theme-dark .form-control[readonly],
html.rrs-theme-dark .form-control:disabled,
html.rrs-theme-dark .form-select:disabled,
html.rrs-theme-dark .content-area .form-control[readonly],
html.rrs-theme-dark .content-area .form-control:disabled,
html.rrs-theme-dark .content-area .form-select:disabled {
    color: #9aa8bc !important;
    background-color: rgba(20, 29, 43, 0.72) !important;
    border-color: rgba(148, 163, 184, 0.14) !important;
}

html.rrs-theme-dark .form-check-input {
    background-color: rgba(10, 16, 28, 0.88) !important;
    border-color: rgba(148, 163, 184, 0.4) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

html.rrs-theme-dark .form-check-input:focus {
    border-color: rgba(125, 211, 252, 0.62) !important;
    box-shadow: 0 0 0 0.18rem rgba(56, 189, 248, 0.12) !important;
}

html.rrs-theme-dark .form-switch .form-check-input {
    background-color: rgba(71, 85, 105, 0.9) !important;
}

html.rrs-theme-dark .form-switch .form-check-input:checked {
    background-color: #60a5fa !important;
    border-color: #60a5fa !important;
}

html.rrs-theme-dark .btn-outline-secondary,
html.rrs-theme-dark .btn-outline-primary,
html.rrs-theme-dark .btn-light,
html.rrs-theme-dark .content-area .btn-outline-secondary,
html.rrs-theme-dark .content-area .btn-outline-primary,
html.rrs-theme-dark .content-area .btn-light {
    color: var(--color-text-secondary) !important;
    background: rgba(20, 29, 43, 0.86) !important;
    border-color: rgba(148, 163, 184, 0.22) !important;
}

html.rrs-theme-dark .btn-outline-secondary:hover,
html.rrs-theme-dark .btn-outline-primary:hover,
html.rrs-theme-dark .btn-light:hover,
html.rrs-theme-dark .btn-outline-secondary:focus-visible,
html.rrs-theme-dark .btn-outline-primary:focus-visible,
html.rrs-theme-dark .btn-light:focus-visible {
    color: #f8fafc !important;
    background: rgba(56, 189, 248, 0.12) !important;
    border-color: rgba(125, 211, 252, 0.3) !important;
    box-shadow: 0 10px 22px rgba(2, 6, 23, 0.24) !important;
}

html.rrs-theme-dark .dropdown-item,
html.rrs-theme-dark .dropdown-item-text,
html.rrs-theme-dark .content-area .dropdown-item,
html.rrs-theme-dark .content-area .dropdown-item-text {
    color: var(--color-text-primary) !important;
}

html.rrs-theme-dark .dropdown-item:hover,
html.rrs-theme-dark .dropdown-item:focus,
html.rrs-theme-dark .content-area .dropdown-item:hover,
html.rrs-theme-dark .content-area .dropdown-item:focus {
    color: #f8fafc !important;
    background: rgba(56, 189, 248, 0.1) !important;
}

html.rrs-theme-dark .btn-close {
    filter: invert(1) grayscale(100%) brightness(185%);
    opacity: 0.82;
}

html.rrs-theme-dark .btn-close:hover,
html.rrs-theme-dark .btn-close:focus {
    opacity: 1;
}

html.rrs-theme-dark .content-area .card-header > h5,
html.rrs-theme-dark .content-area .card-header > h6,
html.rrs-theme-dark .content-area .card-header .mb-0,
html.rrs-theme-dark .content-area .section-title,
html.rrs-theme-dark .content-area .settings-panel-title,
html.rrs-theme-dark .content-area .room-section-title,
html.rrs-theme-dark .content-area .rate-preview-title {
    color: var(--color-text-primary) !important;
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.012em;
}

html.rrs-theme-dark .content-area .card-header small,
html.rrs-theme-dark .content-area .card-header .text-muted,
html.rrs-theme-dark .content-area .settings-panel-description,
html.rrs-theme-dark .content-area .room-panel-description,
html.rrs-theme-dark .content-area .reservation-view-subtext,
html.rrs-theme-dark .content-area .reservation-view-meta-label {
    color: var(--color-text-muted) !important;
}

html.rrs-theme-dark .content-area .table thead th,
html.rrs-theme-dark .content-area table thead th,
html.rrs-theme-dark .content-area .rm-data-table th {
    line-height: 1.15;
}

html.rrs-theme-dark .content-area .table td,
html.rrs-theme-dark .content-area table td,
html.rrs-theme-dark .content-area .rm-data-table td,
html.rrs-theme-dark .content-area .reservation-view-detail-list dd {
    line-height: 1.45;
}

html.rrs-theme-dark .content-area .settings-sidebar-card .list-group-item,
html.rrs-theme-dark .content-area .room-management-sidebar-card .list-group-item,
html.rrs-theme-dark .content-area .rates-workspace-sidebar-card .list-group-item {
    min-height: 40px;
    font-weight: 600;
}

html.rrs-theme-dark .content-area .settings-nav-category,
html.rrs-theme-dark .content-area .rates-nav-category {
    font-size: 0.73rem;
    font-weight: 700;
}

/* Shared dark role-aware interactive consistency */
html.rrs-theme-dark .btn-primary,
html.rrs-theme-dark .content-area .btn-primary {
    color: #f8fafc !important;
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--role-accent) 78%, rgba(15, 23, 42, 0.22) 22%),
        color-mix(in srgb, var(--role-accent-strong) 54%, rgba(15, 23, 42, 0.46) 46%)) !important;
    border-color: color-mix(in srgb, var(--role-accent-strong) 26%, rgba(148, 163, 184, 0.18) 74%) !important;
    box-shadow: 0 12px 24px rgba(2, 6, 23, 0.24) !important;
}

html.rrs-theme-dark .btn-primary:hover,
html.rrs-theme-dark .btn-primary:focus-visible,
html.rrs-theme-dark .content-area .btn-primary:hover,
html.rrs-theme-dark .content-area .btn-primary:focus-visible {
    color: #ffffff !important;
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--role-accent) 70%, rgba(15, 23, 42, 0.18) 30%),
        color-mix(in srgb, var(--role-accent-strong) 62%, rgba(15, 23, 42, 0.4) 38%)) !important;
    border-color: color-mix(in srgb, var(--role-accent-strong) 30%, rgba(148, 163, 184, 0.16) 70%) !important;
}

html.rrs-theme-dark .btn-outline-secondary,
html.rrs-theme-dark .btn-outline-primary,
html.rrs-theme-dark .btn-light,
html.rrs-theme-dark .content-area .btn-outline-secondary,
html.rrs-theme-dark .content-area .btn-outline-primary,
html.rrs-theme-dark .content-area .btn-light {
    color: var(--color-text-secondary) !important;
    background: rgba(20, 29, 43, 0.86) !important;
    border-color: rgba(148, 163, 184, 0.22) !important;
}

html.rrs-theme-dark .btn-outline-primary,
html.rrs-theme-dark .content-area .btn-outline-primary {
    color: var(--role-accent-strong) !important;
    border-color: color-mix(in srgb, var(--role-accent) 28%, rgba(148, 163, 184, 0.22) 72%) !important;
}

html.rrs-theme-dark .btn-outline-secondary:hover,
html.rrs-theme-dark .btn-outline-primary:hover,
html.rrs-theme-dark .btn-light:hover,
html.rrs-theme-dark .btn-outline-secondary:focus-visible,
html.rrs-theme-dark .btn-outline-primary:focus-visible,
html.rrs-theme-dark .btn-light:focus-visible,
html.rrs-theme-dark .content-area .btn-outline-secondary:hover,
html.rrs-theme-dark .content-area .btn-outline-primary:hover,
html.rrs-theme-dark .content-area .btn-light:hover,
html.rrs-theme-dark .content-area .btn-outline-secondary:focus-visible,
html.rrs-theme-dark .content-area .btn-outline-primary:focus-visible,
html.rrs-theme-dark .content-area .btn-light:focus-visible {
    color: #f8fafc !important;
    background: color-mix(in srgb, var(--role-accent-soft) 78%, rgba(15, 23, 42, 0.22) 22%) !important;
    border-color: color-mix(in srgb, var(--role-accent-strong) 24%, rgba(148, 163, 184, 0.18) 76%) !important;
    box-shadow: 0 10px 22px rgba(2, 6, 23, 0.24) !important;
}

html.rrs-theme-dark .form-control:focus,
html.rrs-theme-dark .form-select:focus,
html.rrs-theme-dark .content-area .form-control:focus,
html.rrs-theme-dark .content-area .form-select:focus,
html.rrs-theme-dark textarea:focus {
    border-color: color-mix(in srgb, var(--role-accent-strong) 76%, rgba(148, 163, 184, 0.24) 24%) !important;
    box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--role-accent) 18%, transparent 82%) !important;
}

html.rrs-theme-dark .form-check-input:checked {
    background-color: var(--role-accent) !important;
    border-color: var(--role-accent) !important;
}

html.rrs-theme-dark .dropdown-item:hover,
html.rrs-theme-dark .dropdown-item:focus,
html.rrs-theme-dark .content-area .dropdown-item:hover,
html.rrs-theme-dark .content-area .dropdown-item:focus {
    color: #f8fafc !important;
    background: color-mix(in srgb, var(--role-accent-soft) 76%, rgba(15, 23, 42, 0.24) 24%) !important;
}

html.rrs-theme-dark .nav-pills .nav-link:hover,
html.rrs-theme-dark .nav-pills .nav-link:focus-visible,
html.rrs-theme-dark .content-area .nav-pills .nav-link:hover,
html.rrs-theme-dark .content-area .nav-pills .nav-link:focus-visible {
    color: #f8fafc !important;
    background: color-mix(in srgb, var(--role-accent-soft) 76%, rgba(15, 23, 42, 0.18) 24%) !important;
    border-color: color-mix(in srgb, var(--role-accent-strong) 22%, rgba(148, 163, 184, 0.2) 78%) !important;
}

html.rrs-theme-dark .content-area .table-action-toggle:hover,
html.rrs-theme-dark .content-area .table-action-toggle:focus-visible,
html.rrs-theme-dark .content-area .table-action-toggle[aria-expanded="true"] {
    color: #f8fafc !important;
    background: color-mix(in srgb, var(--role-accent-soft) 78%, rgba(15, 23, 42, 0.22) 22%) !important;
    border-color: color-mix(in srgb, var(--role-accent-strong) 24%, rgba(176, 186, 207, 0.18) 76%) !important;
}
