/* MDRRMO — system dark mode (desktop + mobile). Applied via html.drrm-dark */

html.drrm-dark {
  color-scheme: dark;
  --drrm-bg: #111318;
  --drrm-card: #1a1d24;
  --drrm-border: #2a2e36;
  --drrm-shadow: 0 14px 32px rgba(0, 0, 0, 0.45);
  --drrm-text: #e8eaed;
  --drrm-muted: #9aa0a6;
  --bs-modal-bg: #16181d;
  --bs-modal-color: #e8eaed;
  --bs-body-bg: #111318;
  --bs-body-color: #e8eaed;
  --drrm-dt-loader-bg: rgba(17, 19, 24, 0.94);
  --drrm-dt-loader-border: #2a2e36;
  --drrm-dt-loader-label: #c5c8ce;
  --drrm-dt-loader-spinner-track: #2a2e36;
  --drrm-dt-loader-spinner-color: #e8eaed;
  --drrm-dt-loader-blur: 10px;
}

html.drrm-dark #page-container.drrm-app-theme {
  --drrm-dt-loader-bg: rgba(17, 19, 24, 0.94);
  --drrm-dt-loader-border: #2a2e36;
  --drrm-dt-loader-label: #c5c8ce;
  --drrm-dt-loader-spinner-track: #2a2e36;
  --drrm-dt-loader-spinner-color: #e8eaed;
  --drrm-dt-loader-blur: 10px;
}

html.drrm-dark .drrm-dt-reveal-loader,
html.drrm-dark .drrm-table-pending-loader,
html.drrm-dark #page-container.drrm-app-theme .drrm-dt-reveal-loader,
html.drrm-dark #page-container.drrm-app-theme .drrm-table-pending-loader,
html.drrm-dark #page-container .drrm-dt-reveal-loader,
html.drrm-dark #page-container .drrm-table-pending-loader {
  background: rgba(17, 19, 24, 0.94) !important;
  border-top-color: #2a2e36 !important;
  color: #c5c8ce;
}

html.drrm-dark .drrm-dt-reveal-loader__label,
html.drrm-dark .drrm-table-pending-loader__label {
  color: #c5c8ce !important;
}

html.drrm-dark .drrm-dt-reveal-loader__spinner,
html.drrm-dark .drrm-table-pending-loader__spinner {
  border-color: #2a2e36 !important;
  border-top-color: #e8eaed !important;
}

html.drrm-dark #page-container.drrm-app-theme .drrm-ui-page .drrm-table-wrap.drrm-widget-loading,
html.drrm-dark .drrm-table-wrap.drrm-widget-loading {
  background: #16181d !important;
}

/* Sidebar — charcoal, not the green glass rail */
html.drrm-dark #page-container #sidebar,
html.drrm-dark #page-container.sidebar-dark #sidebar,
html.drrm-dark #page-container.drrm-app-theme #sidebar,
html.drrm-dark #page-container.drrm-xeco-light-shell #sidebar {
  color: #e8eaed !important;
  background: #111318 !important;
  background-color: #111318 !important;
  border-right: 1px solid #1c1f26 !important;
  box-shadow: none;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html.drrm-dark #page-container #sidebar .bg-header-dark,
html.drrm-dark #page-container #sidebar .content-header,
html.drrm-dark #page-container #sidebar .js-sidebar-scroll,
html.drrm-dark #page-container #sidebar .content-side,
html.drrm-dark #page-container #sidebar .simplebar-content-wrapper,
html.drrm-dark #page-container #sidebar .simplebar-content {
  background: #111318 !important;
  background-color: #111318 !important;
  color: #e8eaed;
}

html.drrm-dark #page-container #sidebar .drrm-sidebar-brand,
html.drrm-dark #page-container #sidebar .drrm-sidebar-brand__title,
html.drrm-dark #page-container #sidebar .nav-main-link,
html.drrm-dark #page-container #sidebar .nav-main-link .nav-main-link-name {
  color: #e8eaed !important;
}

html.drrm-dark #page-container #sidebar .drrm-sidebar-brand__tagline,
html.drrm-dark #page-container #sidebar .nav-main-heading {
  color: rgba(232, 234, 237, 0.5) !important;
}

html.drrm-dark #page-container #sidebar .nav-main-link > .nav-main-link-icon,
html.drrm-dark #page-container #sidebar .nav-main-link.nav-main-link-submenu::before,
html.drrm-dark #page-container #sidebar .nav-main-link.nav-main-link-submenu::after {
  color: rgba(232, 234, 237, 0.7) !important;
}

html.drrm-dark #page-container #sidebar .nav-main-link:hover,
html.drrm-dark #page-container #sidebar .nav-main-link.active,
html.drrm-dark #page-container #sidebar .nav-main-item.open > .nav-main-link {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

html.drrm-dark #page-container #sidebar .nav-main-link:hover > .nav-main-link-icon,
html.drrm-dark #page-container #sidebar .nav-main-link.active > .nav-main-link-icon {
  color: #fff !important;
}

html.drrm-dark #page-container #sidebar .nav-main-submenu {
  background: #0c0e12 !important;
}

html.drrm-dark #page-container #sidebar .content-header .btn-alt-secondary {
  --bs-btn-color: #e8eaed;
  --bs-btn-bg: rgba(255, 255, 255, 0.08);
  --bs-btn-border-color: rgba(255, 255, 255, 0.12);
}

html.drrm-dark.drrm-bg-reduced body,
html.drrm-dark.drrm-bg-reduced body:has(#page-container.drrm-xeco-light-shell),
html.drrm-dark.drrm-bg-reduced body:has(.drrm-login) {
  background-color: #0c1412 !important;
  color: #e8f0ec;
}

html.drrm-dark.drrm-bg-reduced #page-container.drrm-xeco-light-shell {
  --drrm-dt-loader-bg: rgba(17, 19, 24, 0.94);
  --drrm-dt-loader-border: #2a2e36;
  --drrm-dt-loader-label: #c5c8ce;
  --drrm-dt-loader-spinner-track: #2a2e36;
  --drrm-dt-loader-spinner-color: #e8eaed;
  --drrm-dt-loader-blur: 10px;
}

html.drrm-dark.drrm-bg-reduced #page-container.drrm-xeco-light-shell #main-container,
html.drrm-dark.drrm-bg-reduced #page-container.drrm-xeco-light-shell #main-container > .content,
html.drrm-dark.drrm-bg-reduced #page-container.drrm-xeco-light-shell #main-container > .drrm-ui-page,
html.drrm-dark.drrm-bg-reduced #page-container.drrm-xeco-light-shell #main-container > .drrm-page-wrap {
  background-color: #0c1412;
  color: #e8f0ec;
}

html.drrm-dark.drrm-bg-reduced #page-container.drrm-xeco-light-shell #page-header {
  color: #e8f0ec;
  background-color: #121c18;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
  border-bottom: 1px solid #24352e;
}

html.drrm-dark.drrm-bg-reduced #page-container.drrm-xeco-light-shell #page-header [data-action="sidebar_toggle"].btn-alt-secondary,
html.drrm-dark.drrm-bg-reduced #page-container.drrm-xeco-light-shell #page-header .drrm-appearance-toggle.btn-alt-secondary,
html.drrm-dark.drrm-bg-reduced #page-container.drrm-xeco-light-shell #page-header .drrm-dark-toggle.btn-alt-secondary,
html.drrm-dark.drrm-bg-reduced #page-container.drrm-xeco-light-shell #page-header .drrm-user-menu-trigger.btn-alt-secondary {
  --bs-btn-color: #e8f0ec;
  --bs-btn-bg: #1a2822;
  --bs-btn-border-color: #2a3f36;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #24352e;
  --bs-btn-hover-border-color: #3d5a4c;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #1a2822;
  --bs-btn-active-border-color: #3d5a4c;
}

html.drrm-dark.drrm-bg-reduced #page-container.drrm-xeco-light-shell.sidebar-dark #sidebar {
  background-color: #0e1814 !important;
  border-right: 1px solid #24352e;
}

html.drrm-dark.drrm-bg-reduced #page-container.drrm-xeco-light-shell .block,
html.drrm-dark.drrm-bg-reduced #page-container.drrm-xeco-light-shell .block-content,
html.drrm-dark.drrm-bg-reduced #page-container.drrm-xeco-light-shell .card,
html.drrm-dark.drrm-bg-reduced #page-container.drrm-xeco-light-shell .modal-content,
html.drrm-dark.drrm-bg-reduced #page-container.drrm-xeco-light-shell .dropdown-menu,
html.drrm-dark.drrm-bg-reduced #page-container.drrm-xeco-light-shell .offcanvas,
html.drrm-dark.drrm-bg-reduced #page-container.drrm-xeco-light-shell .offcanvas-body,
html.drrm-dark.drrm-bg-reduced #page-container.drrm-xeco-light-shell .bg-body-extra-light,
html.drrm-dark.drrm-bg-reduced #page-container.drrm-xeco-light-shell .bg-white,
html.drrm-dark.drrm-bg-reduced #page-container.drrm-xeco-light-shell .bg-body,
html.drrm-dark.drrm-bg-reduced #page-container.drrm-xeco-light-shell .content-heading,
html.drrm-dark.drrm-bg-reduced #page-container.drrm-xeco-light-shell .drrm-ui-card,
html.drrm-dark.drrm-bg-reduced #page-container.drrm-xeco-light-shell .drrm-settings-section,
html.drrm-dark.drrm-bg-reduced #page-container.drrm-xeco-light-shell .drrm-settings-shell,
html.drrm-dark.drrm-bg-reduced #page-container.drrm-xeco-light-shell .drrm-brgy-summary,
html.drrm-dark.drrm-bg-reduced #page-container.drrm-xeco-light-shell .table,
html.drrm-dark.drrm-bg-reduced #page-container.drrm-xeco-light-shell .dataTables_wrapper {
  background-color: #121c18 !important;
  color: #e8f0ec;
  border-color: #24352e;
}

html.drrm-dark.drrm-bg-reduced #page-container.drrm-xeco-light-shell .table > :not(caption) > * > * {
  background-color: transparent;
  color: #e8f0ec;
  border-bottom-color: #24352e;
}

html.drrm-dark.drrm-bg-reduced #page-container.drrm-xeco-light-shell .table thead th,
html.drrm-dark.drrm-bg-reduced #page-container.drrm-xeco-light-shell table.dataTable thead th {
  background-color: #0e1814 !important;
  color: #c5d4cc;
  border-color: #24352e;
}

html.drrm-dark.drrm-bg-reduced #page-container.drrm-xeco-light-shell .table-striped > tbody > tr:nth-of-type(odd) > * {
  --bs-table-accent-bg: rgba(255, 255, 255, 0.03);
  color: #e8f0ec;
}

html.drrm-dark.drrm-bg-reduced #page-container.drrm-xeco-light-shell .form-control,
html.drrm-dark.drrm-bg-reduced #page-container.drrm-xeco-light-shell .form-select,
html.drrm-dark.drrm-bg-reduced #page-container.drrm-xeco-light-shell .form-control-alt,
html.drrm-dark.drrm-bg-reduced #page-container.drrm-xeco-light-shell textarea,
html.drrm-dark.drrm-bg-reduced #page-container.drrm-xeco-light-shell input[type="text"],
html.drrm-dark.drrm-bg-reduced #page-container.drrm-xeco-light-shell input[type="search"],
html.drrm-dark.drrm-bg-reduced #page-container.drrm-xeco-light-shell input[type="number"],
html.drrm-dark.drrm-bg-reduced #page-container.drrm-xeco-light-shell input[type="email"],
html.drrm-dark.drrm-bg-reduced #page-container.drrm-xeco-light-shell input[type="password"],
html.drrm-dark.drrm-bg-reduced #page-container.drrm-xeco-light-shell input[type="date"],
html.drrm-dark.drrm-bg-reduced #page-container.drrm-xeco-light-shell .select2-container--default .select2-selection--single,
html.drrm-dark.drrm-bg-reduced #page-container.drrm-xeco-light-shell .select2-container--default .select2-selection--multiple,
html.drrm-dark.drrm-bg-reduced #page-container.drrm-xeco-light-shell .flatpickr-input {
  background-color: #0c1412 !important;
  color: #e8f0ec !important;
  border-color: #2a3f36 !important;
}

html.drrm-dark.drrm-bg-reduced #page-container.drrm-xeco-light-shell .form-control::placeholder,
html.drrm-dark.drrm-bg-reduced #page-container.drrm-xeco-light-shell .form-select::placeholder {
  color: #7a9188;
}

html.drrm-dark.drrm-bg-reduced #page-container.drrm-xeco-light-shell .form-label,
html.drrm-dark.drrm-bg-reduced #page-container.drrm-xeco-light-shell label,
html.drrm-dark.drrm-bg-reduced #page-container.drrm-xeco-light-shell .text-muted,
html.drrm-dark.drrm-bg-reduced #page-container.drrm-xeco-light-shell .fs-sm,
html.drrm-dark.drrm-bg-reduced #page-container.drrm-xeco-light-shell .drrm-settings-section__sub,
html.drrm-dark.drrm-bg-reduced #page-container.drrm-xeco-light-shell .drrm-settings-top__sub {
  color: #9eb0a8 !important;
}

html.drrm-dark.drrm-bg-reduced #page-container.drrm-xeco-light-shell h1,
html.drrm-dark.drrm-bg-reduced #page-container.drrm-xeco-light-shell h2,
html.drrm-dark.drrm-bg-reduced #page-container.drrm-xeco-light-shell h3,
html.drrm-dark.drrm-bg-reduced #page-container.drrm-xeco-light-shell h4,
html.drrm-dark.drrm-bg-reduced #page-container.drrm-xeco-light-shell .content-heading,
html.drrm-dark.drrm-bg-reduced #page-container.drrm-xeco-light-shell .drrm-settings-section__title,
html.drrm-dark.drrm-bg-reduced #page-container.drrm-xeco-light-shell .drrm-settings-top__title,
html.drrm-dark.drrm-bg-reduced #page-container.drrm-xeco-light-shell .drrm-hero-title,
html.drrm-dark.drrm-bg-reduced #page-container.drrm-xeco-light-shell .drrm-main-title {
  color: #f3faf6;
}

html.drrm-dark.drrm-bg-reduced #page-container.drrm-xeco-light-shell .nav-main-link,
html.drrm-dark.drrm-bg-reduced #page-container.drrm-xeco-light-shell .nav-main-heading {
  color: #c5d4cc;
}

html.drrm-dark.drrm-bg-reduced #page-container.drrm-xeco-light-shell .page-item .page-link,
html.drrm-dark.drrm-bg-reduced #page-container.drrm-xeco-light-shell .dataTables_info,
html.drrm-dark.drrm-bg-reduced #page-container.drrm-xeco-light-shell .dataTables_filter label {
  color: #c5d4cc;
  background-color: transparent;
  border-color: #2a3f36;
}

html.drrm-dark.drrm-bg-reduced #page-container.drrm-xeco-light-shell .btn-alt-secondary {
  --bs-btn-color: #e8f0ec;
  --bs-btn-bg: #1a2822;
  --bs-btn-border-color: #2a3f36;
}

html.drrm-dark.drrm-bg-reduced #page-container.drrm-xeco-light-shell .select2-dropdown,
html.drrm-dark .select2-container--open .select2-dropdown {
  background: #121c18;
  border-color: #2a3f36;
  color: #e8f0ec;
}

html.drrm-dark .select2-container--default .select2-results__option {
  color: #e8f0ec;
}

html.drrm-dark .select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
  background-color: #1d5336;
  color: #fff;
}

html.drrm-dark .flatpickr-calendar {
  background: #121c18;
  color: #e8f0ec;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5);
}

html.drrm-dark .flatpickr-day {
  color: #e8f0ec;
}

html.drrm-dark .flatpickr-months,
html.drrm-dark .flatpickr-weekdays {
  background: #0e1814;
}

html.drrm-dark .swal2-popup {
  background: #121c18 !important;
  color: #e8f0ec !important;
}

html.drrm-dark .paldics-dialog,
html.drrm-dark .paldics-dialog__panel {
  background: #121c18;
  color: #e8f0ec;
  border-color: #24352e;
}

html.drrm-dark.drrm-bg-reduced #page-container.drrm-xeco-light-shell .drrm-motion-choice__card,
html.drrm-dark.drrm-bg-reduced #page-container.drrm-xeco-light-shell .drrm-color-choice__card {
  background: #1a2822;
  border-color: #2a3f36;
  color: #e8f0ec;
}

html.drrm-dark.drrm-bg-reduced #page-container.drrm-xeco-light-shell .drrm-user-menu {
  background: #121c18;
  border-color: #24352e;
}

html.drrm-dark.drrm-bg-reduced #page-container.drrm-xeco-light-shell .drrm-user-menu__name,
html.drrm-dark.drrm-bg-reduced #page-container.drrm-xeco-light-shell .drrm-user-menu-trigger__name {
  color: #f3faf6;
}

/* Login (desktop) */
html.drrm-dark.drrm-login-page.drrm-bg-reduced,
html.drrm-dark.drrm-login-page.drrm-bg-reduced body,
html.drrm-dark.drrm-bg-reduced body.drrm-login-page-body {
  background-color: #0c1412 !important;
  color: #e8f0ec;
}

html.drrm-dark.drrm-bg-reduced .drrm-login__panel,
html.drrm-dark.drrm-bg-reduced .drrm-login__panel-inner {
  background: #121c18;
  border-color: #24352e;
  color: #e8f0ec;
}

html.drrm-dark.drrm-bg-reduced .drrm-login__brand,
html.drrm-dark.drrm-bg-reduced .drrm-login__panel-head h2,
html.drrm-dark.drrm-bg-reduced .drrm-login__title {
  color: #f3faf6;
}

html.drrm-dark.drrm-bg-reduced .drrm-login__tagline,
html.drrm-dark.drrm-bg-reduced .drrm-login__panel-sub {
  color: #9eb0a8;
}

/* Mobile app — reduced-motion light → dark */
html.drrm-dark.drrm-bg-reduced body.drrm-mobile-app,
html.drrm-dark.drrm-bg-reduced.drrm-m-login-html,
html.drrm-dark.drrm-bg-reduced body.drrm-m-login {
  --m-bg: #0c1412;
  --m-bg2: #121c18;
  --m-card: #1a2822;
  --m-text: #e8f0ec;
  --m-muted: #9eb0a8;
  --m-border: #24352e;
  --m-glass-fill: #121c18;
}

html.drrm-dark.drrm-bg-reduced,
html.drrm-dark.drrm-bg-reduced body.drrm-mobile-app,
html.drrm-dark.drrm-bg-reduced body.drrm-mobile-app .drrm-m-main,
html.drrm-dark.drrm-bg-reduced .drrm-m-header,
html.drrm-dark.drrm-bg-reduced.drrm-m-login-html,
html.drrm-dark.drrm-bg-reduced body.drrm-m-login {
  background: #0c1412 !important;
  color: #e8f0ec !important;
}

html.drrm-dark.drrm-bg-reduced .drrm-m-header {
  border-bottom-color: #24352e;
}

html.drrm-dark.drrm-bg-reduced .drrm-m-header__title,
html.drrm-dark.drrm-bg-reduced .drrm-m-header__page,
html.drrm-dark.drrm-bg-reduced .drrm-m-login__title,
html.drrm-dark.drrm-bg-reduced .drrm-m-login__panel-title {
  color: #f3faf6 !important;
}

html.drrm-dark.drrm-bg-reduced .drrm-m-header__title span,
html.drrm-dark.drrm-bg-reduced .drrm-m-login__eyebrow,
html.drrm-dark.drrm-bg-reduced .drrm-m-login__link {
  color: #4ade80 !important;
}

html.drrm-dark.drrm-bg-reduced .drrm-m-card,
html.drrm-dark.drrm-bg-reduced .drrm-m-settings-panel,
html.drrm-dark.drrm-bg-reduced .drrm-m-login__panel,
html.drrm-dark.drrm-bg-reduced .drrm-m-list--cards > .drrm-m-list__item,
html.drrm-dark.drrm-bg-reduced .drrm-m-sheet,
html.drrm-dark.drrm-bg-reduced .drrm-m-empty {
  background: #121c18 !important;
  border-color: #24352e !important;
  color: #e8f0ec !important;
}

html.drrm-dark.drrm-bg-reduced .drrm-m-hint,
html.drrm-dark.drrm-bg-reduced .drrm-m-greet,
html.drrm-dark.drrm-bg-reduced .drrm-m-login__tagline,
html.drrm-dark.drrm-bg-reduced .drrm-m-login__panel-sub,
html.drrm-dark.drrm-bg-reduced body.drrm-m-login .drrm-m-field label {
  color: #9eb0a8 !important;
}

html.drrm-dark.drrm-bg-reduced .drrm-m-input-wrap,
html.drrm-dark.drrm-bg-reduced .drrm-m-field input,
html.drrm-dark.drrm-bg-reduced .drrm-m-field select,
html.drrm-dark.drrm-bg-reduced .drrm-m-field textarea,
html.drrm-dark.drrm-bg-reduced input.drrm-m-input,
html.drrm-dark.drrm-bg-reduced textarea.drrm-m-input,
html.drrm-dark.drrm-bg-reduced select.drrm-m-input {
  background: #0c1412 !important;
  color: #e8f0ec !important;
  border-color: #2a3f36 !important;
}

html.drrm-dark.drrm-bg-reduced .drrm-m-tabbar,
html.drrm-dark.drrm-bg-reduced .drrm-m-act-dock {
  background-image: linear-gradient(180deg, #121c18 0%, #0e1814 100%) !important;
}

html.drrm-dark.drrm-bg-reduced .drrm-m-tabbar__item,
html.drrm-dark.drrm-bg-reduced .drrm-m-act-dock__btn {
  color: rgba(232, 240, 236, 0.55) !important;
}

html.drrm-dark.drrm-bg-reduced .drrm-m-tabbar__item.is-active,
html.drrm-dark.drrm-bg-reduced .drrm-m-act-dock__btn.is-active {
  color: #f3faf6 !important;
}

html.drrm-dark.drrm-bg-reduced .drrm-m-tabbar__item.is-active::before,
html.drrm-dark.drrm-bg-reduced .drrm-m-act-dock__btn.is-active::before {
  background: rgba(74, 222, 128, 0.16) !important;
  border-color: rgba(74, 222, 128, 0.32) !important;
}

html.drrm-dark.drrm-bg-reduced .drrm-m-motion-choice__card,
html.drrm-dark.drrm-bg-reduced .drrm-m-color-choice__card {
  background: #1a2822;
  border-color: #2a3f36;
  color: #e8f0ec;
}

.drrm-dark-toggle__icon {
  display: none !important;
  line-height: 1;
}

html:not(.drrm-dark) .drrm-dark-toggle .drrm-dark-toggle__icon--moon {
  display: inline-block !important;
}

html.drrm-dark .drrm-dark-toggle .drrm-dark-toggle__icon--sun {
  display: inline-block !important;
  color: #fbbf24;
}

#page-container.drrm-app-theme #page-header .drrm-dark-toggle.btn-alt-secondary {
  --bs-btn-color: #ecfdf5;
  --bs-btn-bg: rgba(255, 255, 255, 0.12);
  --bs-btn-border-color: rgba(134, 239, 172, 0.28);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: rgba(34, 197, 94, 0.28);
  --bs-btn-hover-border-color: rgba(134, 239, 172, 0.42);
}

.drrm-color-choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.drrm-color-choice__card,
.drrm-m-color-choice__card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-align: left;
  border: 1px solid #e1eaef;
  background: #fff;
  border-radius: 0.85rem;
  padding: 0.85rem 1rem;
  cursor: pointer;
  color: inherit;
}

html.drrm-dark .drrm-color-choice__card,
html.drrm-dark .drrm-m-color-choice__card {
  background: rgba(4, 36, 22, 0.55);
  border-color: rgba(134, 239, 172, 0.18);
  color: #ecfdf5;
}

.drrm-color-choice__card.is-selected,
.drrm-m-color-choice__card.is-selected {
  border-color: #308a5a;
  box-shadow: 0 0 0 2px rgba(48, 138, 90, 0.25);
}

html.drrm-dark .drrm-color-choice__card.is-selected,
html.drrm-dark .drrm-m-color-choice__card.is-selected {
  border-color: rgba(74, 222, 128, 0.65);
  box-shadow: 0 0 0 1px rgba(74, 222, 128, 0.3), 0 8px 22px rgba(0, 0, 0, 0.28);
}

.drrm-color-choice__swatch,
.drrm-m-color-choice__swatch {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.55rem;
  flex: 0 0 auto;
}

.drrm-color-choice__swatch--light,
.drrm-m-color-choice__swatch--light {
  background: linear-gradient(135deg, #f8fafc, #e2e8f0);
  border: 1px solid #cbd5e1;
}

.drrm-color-choice__swatch--dark,
.drrm-m-color-choice__swatch--dark {
  background: linear-gradient(135deg, #0c1412, #1d5336);
  border: 1px solid #24352e;
}

.drrm-color-choice__title,
.drrm-m-color-choice__title {
  display: block;
  font-weight: 700;
}

.drrm-color-choice__desc,
.drrm-m-color-choice__desc {
  display: block;
  font-size: 0.8rem;
  opacity: 0.75;
}

.drrm-m-header__tools {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.drrm-m-header__theme {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  border: 1px solid rgba(27, 41, 50, 0.12);
  background: rgba(255, 255, 255, 0.7);
  color: #1b2932;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

html.drrm-bg-full .drrm-m-header__theme,
html.drrm-dark .drrm-m-header__theme {
  border-color: rgba(134, 239, 172, 0.28);
  background: rgba(4, 22, 15, 0.55);
  color: #ecfdf5;
}

/* Settings page */
html.drrm-dark .drrm-settings-shell,
html.drrm-dark .drrm-settings-panel,
html.drrm-dark .drrm-settings-account {
  background: rgba(12, 28, 22, 0.94) !important;
  border-color: rgba(134, 239, 172, 0.16) !important;
  color: #ecfdf5;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
}

html.drrm-dark .drrm-settings-section {
  background: rgba(4, 36, 22, 0.45) !important;
  border-color: rgba(134, 239, 172, 0.12) !important;
}

html.drrm-dark .drrm-settings-section__head,
html.drrm-dark .drrm-settings-section__foot,
html.drrm-dark .drrm-settings-panel__head,
html.drrm-dark .drrm-settings-panel__foot {
  background: rgba(4, 36, 22, 0.55) !important;
  border-color: rgba(134, 239, 172, 0.12) !important;
}

html.drrm-dark .drrm-settings-top__title,
html.drrm-dark .drrm-settings-section__title,
html.drrm-dark .drrm-settings-profile__name,
html.drrm-dark .drrm-settings-panel__title,
html.drrm-dark .drrm-motion-choice__title,
html.drrm-dark .drrm-color-choice__title {
  color: #ecfdf5 !important;
}

html.drrm-dark .drrm-settings-top__sub,
html.drrm-dark .drrm-settings-section__sub,
html.drrm-dark .drrm-settings-hint,
html.drrm-dark .drrm-settings-profile__label,
html.drrm-dark .drrm-motion-choice__desc,
html.drrm-dark .drrm-color-choice__desc,
html.drrm-dark .drrm-settings-panel__sub {
  color: rgba(209, 250, 229, 0.7) !important;
}

html.drrm-dark .drrm-settings-profile,
html.drrm-dark .drrm-settings-nav {
  background: rgba(0, 0, 0, 0.28) !important;
  border-color: rgba(134, 239, 172, 0.12) !important;
}

html.drrm-dark .drrm-settings-nav__link {
  color: rgba(220, 252, 231, 0.75);
}

html.drrm-dark .drrm-settings-nav__link:hover,
html.drrm-dark .drrm-settings-nav__link.is-active {
  color: #ecfdf5 !important;
  background: rgba(34, 197, 94, 0.28) !important;
}

html.drrm-dark .drrm-settings-profile__chip,
html.drrm-dark .drrm-settings-account__chip {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(134, 239, 172, 0.16) !important;
  color: #ecfdf5 !important;
}

html.drrm-dark .drrm-motion-choice__card {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(134, 239, 172, 0.18) !important;
  color: #ecfdf5;
}

html.drrm-dark .drrm-settings-page .form-label,
html.drrm-dark .drrm-settings-page label {
  color: rgba(236, 253, 245, 0.92) !important;
}

html.drrm-dark .drrm-settings-page .form-control,
html.drrm-dark .drrm-settings-page .form-select,
html.drrm-dark .drrm-settings-page .input-group-text {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  color: #f0fdf4 !important;
}

html.drrm-dark .drrm-dash-ann-admin-card {
  background: rgba(4, 36, 22, 0.55) !important;
  border-color: rgba(134, 239, 172, 0.14) !important;
  color: #ecfdf5;
}

/* Bootstrap + custom modals (portaled to body, outside #page-container) */
html.drrm-dark .modal,
html.drrm-dark body .modal,
html.drrm-dark body.drrm-dark .modal {
  --bs-modal-bg: #16181d !important;
  --bs-modal-color: #e8eaed !important;
  --bs-modal-border-color: #2a2e36 !important;
  --bs-modal-header-border-color: #2a2e36 !important;
  --bs-modal-footer-border-color: #2a2e36 !important;
  --bs-modal-footer-bg: #16181d !important;
  --drrm-bg: #16181d;
  --drrm-card: #1e2128;
  --drrm-text: #e8eaed;
  --drrm-muted: #9aa0a6;
  color: #e8eaed;
}

html.drrm-dark body .modal .modal-content,
html.drrm-dark body .modal-content,
html.drrm-dark body .tt-create-modal,
html.drrm-dark .modal-content,
html.drrm-dark .tt-create-modal {
  background: #16181d !important;
  background-color: #16181d !important;
  background-image: none !important;
  border: 1px solid #2a2e36 !important;
  color: #e8eaed !important;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html.drrm-dark body .modal-header,
html.drrm-dark body .modal-header.tt-create-header,
html.drrm-dark body .tt-create-header,
html.drrm-dark body .modal-footer:not(.tt-create-footer),
html.drrm-dark body .tt-create-footer {
  background: #12141a !important;
  background-image: none !important;
  border-color: #2a2e36 !important;
  color: #e8eaed !important;
}

html.drrm-dark body .tt-create-header .modal-title,
html.drrm-dark body .modal-header .modal-title,
html.drrm-dark body .tt-create-header__sub {
  color: #f3f4f6 !important;
}

html.drrm-dark body .tt-create-header__sub {
  color: #9aa0a6 !important;
}

html.drrm-dark body .tt-create-header__icon {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #e8eaed !important;
}

html.drrm-dark body .tt-create-header__badge {
  background: #1e2128 !important;
  color: #e8eaed !important;
}

html.drrm-dark body .modal-title,
html.drrm-dark body .tt-create-card__title {
  color: #f3f4f6 !important;
}

html.drrm-dark body .modal-body,
html.drrm-dark body .tt-create-body {
  background: #16181d !important;
  color: #e8eaed !important;
}

html.drrm-dark body .tt-create-card,
html.drrm-dark body .modal .block,
html.drrm-dark body .modal .block-content,
html.drrm-dark body .modal .card,
html.drrm-dark body .modal .bg-white,
html.drrm-dark body .modal .bg-body,
html.drrm-dark body .modal .bg-body-extra-light,
html.drrm-dark body .modal .bg-body-light {
  background: #1e2128 !important;
  background-color: #1e2128 !important;
  border-color: #2a2e36 !important;
  color: #e8eaed !important;
}

html.drrm-dark body .tt-create-card__head {
  background: #191c22 !important;
  border-bottom-color: #2a2e36 !important;
}

html.drrm-dark body .tt-create-card__sub,
html.drrm-dark body .tt-create-footer__hint,
html.drrm-dark body .modal .text-muted,
html.drrm-dark body .modal .form-text,
html.drrm-dark body .modal .form-label,
html.drrm-dark body .modal label {
  color: #9aa0a6 !important;
}

html.drrm-dark body .modal .form-control,
html.drrm-dark body .modal .form-select,
html.drrm-dark body .modal textarea,
html.drrm-dark body .modal input,
html.drrm-dark body .modal select,
html.drrm-dark body .modal .flatpickr-input,
html.drrm-dark body .modal .drrm-flatpickr-alt,
html.drrm-dark body .modal .input-group-text,
html.drrm-dark body .tt-create-form .form-control,
html.drrm-dark body .tt-create-form .form-select,
html.drrm-dark body .modal .select2-container--default .select2-selection--single,
html.drrm-dark body .modal .select2-container--default .select2-selection--multiple {
  background: #111318 !important;
  background-color: #111318 !important;
  border-color: #2a2e36 !important;
  color: #e8eaed !important;
}

html.drrm-dark body .modal .form-select option,
html.drrm-dark body .tt-create-form .form-select option {
  background: #16181d;
  color: #e8eaed;
}

html.drrm-dark body .modal .table,
html.drrm-dark body .modal .table > :not(caption) > * > * {
  background-color: transparent !important;
  color: #e8eaed !important;
  border-color: #2a2e36 !important;
}

html.drrm-dark body .modal .list-group-item,
html.drrm-dark body .modal .nav-tabs,
html.drrm-dark body .modal .nav-link {
  background: #1e2128 !important;
  border-color: #2a2e36 !important;
  color: #e8eaed !important;
}

html.drrm-dark body .modal .btn-close {
  filter: invert(1) grayscale(1);
}

html.drrm-dark .offcanvas,
html.drrm-dark .offcanvas-body,
html.drrm-dark .dropdown-menu {
  background: #16181d !important;
  color: #e8eaed !important;
  border-color: #2a2e36 !important;
}

html.drrm-dark .dropdown-item {
  color: #e8eaed;
}

html.drrm-dark .dropdown-item:hover,
html.drrm-dark .dropdown-item:focus {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

html.drrm-dark .drrm-ui-page .drrm-act-filters,
html.drrm-dark #page-container.drrm-app-theme .drrm-ui-page .drrm-act-filters {
  background: #16181d;
  border-bottom-color: #2a2e36;
}

html.drrm-dark .drrm-ui-page .drrm-act-filters__field .form-label,
html.drrm-dark #page-container.drrm-app-theme .drrm-ui-page .drrm-act-filters__field .form-label {
  color: #9aa0a6;
}

html.drrm-dark .drrm-ui-page .drrm-act-filters .form-control,
html.drrm-dark .drrm-ui-page .drrm-act-filters .form-select,
html.drrm-dark .drrm-ui-page .drrm-act-filters .drrm-flatpickr-alt {
  background: #1e2128;
  border-color: #2a2e36;
  color: #e8eaed;
}

@media print {
  html.drrm-dark,
  html.drrm-dark body {
    background: #fff !important;
    color: #000 !important;
    color-scheme: light;
  }
}
