/* IDT 0.1.8: screen-only presentation. No dimensions/layout changes to business forms. */
html[data-idt-theme="dark"] {
  color-scheme: dark;
  --idt-bg: #000000;
  --idt-surface: #191d24;
  --idt-raised: #222832;
  --idt-field: #11161d;
  --idt-border: #39414e;
  --idt-text: #edf0f5;
  --idt-muted: #b3bdcc;
  --idt-accent: #df2035;
  --idt-link: #ff8793;
  --ccc-ui-surface: var(--idt-surface);
  --ccc-ui-border: var(--idt-border);
  --ccc-ui-text: var(--idt-text);
  --ccc-ui-muted: var(--idt-muted);
  --ccc-ui-shadow: 0 2px 6px rgb(0 0 0 / 20%);
  background-color: var(--idt-bg);
}
html[data-idt-theme="dark"] body,
html[data-idt-theme="dark"] :is(#outer-wrap, #wrap, #main, #content-wrap, #primary, #content, .site-content, .page-header) {
  background-color: var(--idt-bg) !important;
  color: var(--idt-text) !important;
}
html[data-idt-theme="dark"] :is(#site-header, #top-bar-wrap, .dropdown-menu .sub-menu, #mobile-dropdown, #sidr, .sidr-inner) {
  background-color: var(--idt-surface) !important;
  border-color: var(--idt-border) !important;
  color: var(--idt-text) !important;
}
html[data-idt-theme="dark"] :is(#site-navigation, #mobile-dropdown, .sidr-inner) a {
  color: var(--idt-text) !important;
}
html[data-idt-theme="dark"] :is(#site-navigation, #mobile-dropdown, .sidr-inner) a:hover {
  color: var(--idt-link) !important;
}
html[data-idt-theme="dark"] :is(#footer, #footer-widgets, #footer-bottom) {
  background-color: #090c10 !important;
  color: var(--idt-muted) !important;
  border-color: var(--idt-border) !important;
}
html[data-idt-theme="dark"] :is(.elementor-widget-heading, .elementor-widget-text-editor, .elementor-widget-icon-list, .page-header-title, .entry-title) {
  color: var(--idt-text);
}
html[data-idt-theme="dark"] :is(.elementor-heading-title, .elementor-icon-list-text) {
  color: inherit !important;
}
html[data-idt-theme="dark"] .elementor-widget-text-editor { color: var(--idt-text) !important; }
html[data-idt-theme="dark"] :is(.elementor-widget-text-editor, .entry-content) > p > a { color: var(--idt-link); }
html[data-idt-theme="dark"] :is(hr, .elementor-divider-separator) { border-color: var(--idt-border) !important; }

/* Main operational modules; state-specific buttons retain their existing accent. */
html[data-idt-theme="dark"] :is(
  .liste-wrap, .liste-events-cards, .liste-management-tools, .liste-cards-event-inline-editor,
  .liste-cards-promoter-inline-editor, .liste-modal, .liste-popup-content,
  .ccc-ops-wrap, .ccc-stock-wrap, .ccc-export-wrap, .ccc-checked-analysis-wrap,
  .ccc-reports-dashboard, .currency-widget, .fdm-sales-wrap, .st-wrap, .stv-wrap, .stdtp-wrap
) {
  background-color: var(--idt-surface) !important;
  color: var(--idt-text) !important;
  border-color: var(--idt-border) !important;
}
html[data-idt-theme="dark"] :is(
  .liste-event-card, .liste-events-cards-empty, .liste-cards-event-panel,
  .liste-cards-event-stock-editor, .liste-cards-event-category-list,
  .liste-cards-event-stock-summary, .liste-cards-event-stock-internal-list,
  .liste-cards-event-stock-external-list, .liste-events-tabs,
  .ccc-reports-filter-bubble, .ccc-reports-summary-card, .ccc-reports-history-row > td,
  .ccc-reports-history-extra td, .ccc-reports-history-current td,
  .ccc-reports-table-wrap, .ccc-camera-box,
  .fdm-card, .fdm-card-count, .fdm-card-browser, .st-card, .st-card__head,
  .st-card__body, .st-badge, .stdtp-section, .stdtp-total,
  .currency-widget .row[style*="background-color"], .currency-widget .dropdown-selected,
  .currency-widget .dropdown-options, .currency-widget .dropdown-item
) {
  background-color: var(--idt-raised) !important;
  border-color: var(--idt-border) !important;
  color: var(--idt-text) !important;
}
html[data-idt-theme="dark"] :is(
  .liste-event-card-title, .liste-event-card-venue, .liste-events-cards-head h2,
  .liste-cards-management-head h3, .liste-cards-inline-title, .liste-cards-event-section-title,
  .ccc-reports-filters label, .ccc-reports-inline-label, .ccc-reports-inline-value,
  .ccc-reports-history-inner h4, .ccc-reports-summary-card-header label,
  .st-title, .st-header-title .st-title, .stv-label, .stdtp-control label,
  .fdm-sales-form label, .fdm-card-browser-head, .currency-widget label
) { color: var(--idt-text) !important; }
html[data-idt-theme="dark"] :is(
  .liste-event-card-description, .liste-event-card-date, .liste-events-cards-count,
  .ccc-reports-loading, .ccc-reports-history-empty, .ccc-reports-profit-recognized,
  .st-subtitle, .st-status, .stv-status, .stdtp-status, .st-search-label
) { color: var(--idt-muted) !important; }
html[data-idt-theme="dark"] :is(
  .liste-wrap, .liste-events-cards, .liste-management-tools, .liste-modal,
  .ccc-ops-wrap, .ccc-stock-wrap, .ccc-export-wrap, .ccc-checked-analysis-wrap, .ccc-modal,
  .ccc-reports-dashboard, .currency-widget, .fdm-sales-wrap, .st-wrap, .stv-wrap, .stdtp-wrap
) :is(input:not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]):not([type="range"]):not([type="color"]), select, textarea) {
  background-color: var(--idt-field) !important;
  color: var(--idt-text) !important;
  border-color: var(--idt-border) !important;
  caret-color: var(--idt-text);
}
/* IDs are deliberate: report styles also use ID selectors with !important. */
html[data-idt-theme="dark"] :is(#ccc-reports-venue, #ccc-reports-currency-picker) {
  background-color: var(--idt-field) !important;
  color: var(--idt-text) !important;
  border-color: var(--idt-border) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23edf0f5'/%3E%3C/svg%3E") !important;
}
html[data-idt-theme="dark"] :is(input, textarea)::placeholder { color: var(--idt-muted) !important; opacity: 1; }
html[data-idt-theme="dark"] :is(input, select, textarea):focus-visible {
  outline: 2px solid #ff8793 !important;
  outline-offset: 2px;
}
html[data-idt-theme="dark"] :is(input, select, textarea):disabled { opacity: .65; }
html[data-idt-theme="dark"] :is(.liste-wrap, .liste-management-tools, .ccc-reports-dashboard, .currency-widget, .fdm-sales-wrap) option {
  background-color: var(--idt-field); color: var(--idt-text);
}
html[data-idt-theme="dark"] #fdm_tipo_ticket :is(optgroup, option) {
  background-color: var(--idt-field) !important; color: var(--idt-text) !important;
}
html[data-idt-theme="dark"] :is(
  .liste-table, .liste-entries-table, .ccc-reports-table, .ccc-reports-history-table,
  .ccc-ops-wrap table, .ccc-stock-wrap table, .fdm-sales-wrap table,
  .st-vendors-table, .stdtp-table
) :is(th, td) { border-color: var(--idt-border) !important; }
html[data-idt-theme="dark"] :is(
  .liste-table, .liste-entries-table, .ccc-reports-table, .ccc-reports-history-table,
  .ccc-ops-wrap table, .ccc-stock-wrap table, .fdm-sales-wrap table,
  .st-vendors-table, .stdtp-table
) td { background-color: var(--idt-surface); color: var(--idt-text); }
html[data-idt-theme="dark"] :is(.ccc-reports-table, .ccc-reports-history-table) td {
  background-color: var(--idt-surface) !important; color: var(--idt-text) !important;
}
html[data-idt-theme="dark"] :is(.ccc-reports-row:hover, .ccc-reports-row.is-open, .ccc-reports-history-alt) td {
  background-color: var(--idt-raised) !important;
}
html[data-idt-theme="dark"] :is(.ccc-reports-table, .ccc-reports-history-table) th {
  background-color: #2c2b46 !important; color: #fff !important;
}
html[data-idt-theme="dark"] :is(.ccc-reports-var-up, .ccc-reports-inline-status.is-ok) { color: #84e4ae !important; }
html[data-idt-theme="dark"] :is(.ccc-reports-var-down, .ccc-reports-inline-status.is-error) { color: #ff9da7 !important; }
html[data-idt-theme="dark"] .ccc-reports-var-na { color: var(--idt-muted) !important; }
html[data-idt-theme="dark"] .st-toggle {
  background-color: var(--idt-raised) !important; color: var(--idt-text) !important; border-color: var(--idt-border) !important;
}
html[data-idt-theme="dark"] :is(.st-toggle--vendor, .st-toggle--venue, .st-toggle--event, .st-toggle--ticket) {
  background-color: #cf192d !important; color: #fff !important;
}
html[data-idt-theme="dark"] :is(.st-toggle--vendor, .st-toggle--venue, .st-toggle--event, .st-toggle--ticket) .st-title {
  color: #fff !important;
}

/* Detached dropdowns/modals need their own selectors (they may live under body). */
html[data-idt-theme="dark"] :is(.select2-dropdown, .select2-container--default .select2-selection--single,
  .select2-container--default .select2-selection--multiple, .select2-search--dropdown,
  .select2-container--default .select2-search--dropdown .select2-search__field,
  .ui-datepicker, .flatpickr-calendar, .swal2-popup) {
  background-color: var(--idt-field) !important;
  color: var(--idt-text) !important;
  border-color: var(--idt-border) !important;
}
html[data-idt-theme="dark"] :is(.select2-container--default .select2-selection--single .select2-selection__rendered,
  .select2-results__option, .swal2-title, .swal2-html-container) { color: var(--idt-text) !important; }
html[data-idt-theme="dark"] .select2-results__option { background-color: var(--idt-field) !important; }
html[data-idt-theme="dark"] :is(.select2-container--default .select2-results__option--highlighted[aria-selected],
  .select2-container--default .select2-results__option[aria-selected="true"], .select2-results__option--selected) {
  background-color: #4c2940 !important; color: #fff !important;
}
html[data-idt-theme="dark"] .select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: var(--idt-muted) !important;
}
html[data-idt-theme="dark"] .select2-container--default .select2-selection--single .select2-selection__arrow b {
  border-top-color: var(--idt-muted) !important;
}
html[data-idt-theme="dark"] .ui-datepicker :is(.ui-widget-header, .ui-state-default) {
  background-color: var(--idt-raised); color: var(--idt-text); border-color: var(--idt-border);
}

/* Liste Manager: dialogs and editor panels are sometimes appended outside their module. */
html[data-idt-theme="dark"] :is(
  .liste-cards-event-dialog, .liste-cards-promoter-dialog, .liste-cards-stock-dialog,
  .liste-cards-slots-dialog, .liste-cards-event-stock-quick-dialog, .liste-noshow-modal,
  .liste-dialog-outcome, .liste-dialog-outcome form, .liste-check-photo-camera-box,
  .liste-update-reservation-box, .liste-event-card-drawer-shell, .liste-event-card-drawer-header,
  .liste-event-card-check-result, .liste-event-card-check-booking,
  .liste-cards-event-check-row, .liste-cards-promoter-check-row,
  .liste-promoter-category-row, .liste-card-details-row, .liste-card-details-name-row,
  .liste-card-details-name-card, .liste-edit-entry-box, .liste-events-activity-past-report
) {
  background-color: var(--idt-raised) !important;
  color: var(--idt-text) !important;
  border-color: var(--idt-border) !important;
}
html[data-idt-theme="dark"] :is(
  .liste-cards-event-dialog, .liste-cards-promoter-dialog, .liste-cards-stock-dialog,
  .liste-cards-slots-dialog, .liste-cards-event-stock-quick-dialog, .liste-update-reservation-box
) :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
  background-color: var(--idt-field) !important; color: var(--idt-text) !important; border-color: var(--idt-border) !important;
}
html[data-idt-theme="dark"] :is(
  .liste-management-tools, .liste-cards-event-dialog, .liste-cards-promoter-dialog,
  .liste-cards-stock-dialog, .liste-cards-slots-dialog, .liste-cards-event-stock-quick-dialog
) :is(label, h3, h4) { color: var(--idt-text) !important; }
html[data-idt-theme="dark"] :is(.liste-cards-event-feedback, .liste-cards-promoter-feedback).is-error {
  background-color: #3b1c27 !important; color: #ffabb4 !important; border-color: #753545 !important;
}
html[data-idt-theme="dark"] :is(.liste-cards-event-feedback, .liste-cards-promoter-feedback).is-success {
  background-color: #183329 !important; color: #9ce4b9 !important; border-color: #38614a !important;
}
html[data-idt-theme="dark"] :is(.liste-cards-event-check-row, .liste-cards-promoter-check-row, .liste-promoter-category-row) input[type="checkbox"]:not(:checked) {
  background-color: var(--idt-field) !important; border-color: #8a97ac !important;
}
html[data-idt-theme="dark"] :is(.liste-promoter-category-row, .liste-card-details-row, .liste-card-details-name-row) > span {
  color: var(--idt-text);
}

/* The preview toolbar is deliberately outside all business interfaces. */
#idt-dm-preview-controls {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 99990; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 10px 12px; max-width: calc(100vw - 32px); border: 1px solid #657084;
  border-radius: 12px; background: #151923; color: #fff; box-shadow: 0 8px 28px rgb(0 0 0 / 30%);
  font: 12px/1.4 system-ui, sans-serif;
}
#idt-dm-preview-controls .idt-dm-preview-label { color: #c4ccda; font-size: 10px; font-weight: 700; letter-spacing: .06em; }
#idt-dm-preview-controls button {
  background: #c91d31 !important; color: #fff !important; border: 0 !important; border-radius: 7px;
  font: 600 12px/1.4 system-ui, sans-serif !important; padding: 9px 12px !important; cursor: pointer;
  min-height: 36px;
}
#idt-dm-preview-controls a { color: #dbe3f1 !important; text-decoration: underline; font-size: 12px; }
#idt-dm-preview-controls :is(button, a):focus-visible { outline: 2px solid #fff !important; outline-offset: 3px; }
@media (max-width: 480px) {
  #idt-dm-preview-controls { right: 8px; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); gap: 8px; padding: 8px; }
  #idt-dm-preview-controls .idt-dm-preview-label { display: none; }
}

/* 0.1.2 — Royal Addons uses its own markup, separate from OceanWP menus. */
html[data-idt-theme="dark"] .elementor .elementor-widget-wpr-nav-menu :is(
  .wpr-menu-item, .wpr-sub-menu-item, .wpr-mobile-menu-item, .wpr-mobile-sub-menu-item, .wpr-mobile-toggle-text
) { color: var(--idt-text) !important; }
html[data-idt-theme="dark"] .elementor .elementor-widget-wpr-nav-menu :is(
  .wpr-menu-item, .wpr-sub-menu-item, .wpr-mobile-menu-item, .wpr-mobile-sub-menu-item
):is(:hover, :focus-visible, .wpr-active-menu-item) { color: var(--idt-link) !important; }
html[data-idt-theme="dark"] .elementor .elementor-widget-wpr-nav-menu :is(
  .wpr-sub-menu, .wpr-sub-menu-item, .wpr-mobile-nav-menu, .wpr-mobile-menu-item, .wpr-mobile-sub-menu-item
) { background-color: var(--idt-surface) !important; border-color: var(--idt-border) !important; }
html[data-idt-theme="dark"] .elementor .wpr-mobile-toggle-line { background-color: var(--idt-text) !important; }

/* White rectangle belongs to the logo widget; the image itself is not altered. */
html[data-idt-theme="dark"] .elementor .idt-logo :is(.wpr-logo, .wpr-logo-image, .wpr-logo-url) {
  background-color: transparent !important;
}
html[data-idt-theme="dark"] .elementor .elementor-widget-heading .elementor-heading-title {
  color: var(--idt-text) !important;
}
/* Explicit text color avoids inheriting black from the footer anchor. Keep red icons. */
html[data-idt-theme="dark"] .elementor .elementor-widget-icon-list .elementor-icon-list-item :is(a, .elementor-icon-list-text) {
  color: var(--idt-text) !important;
}
html[data-idt-theme="dark"] .elementor .elementor-widget-icon-list .elementor-icon-list-item a:hover .elementor-icon-list-text {
  color: var(--idt-link) !important;
}

/* IDT navigation cards only: preserve photographic promo cards elsewhere. */
html[data-idt-theme="dark"] .elementor .idt-glow > .elementor-widget-container,
html[data-idt-theme="dark"] .elementor .idt-glow .wpr-promo-box,
html[data-idt-theme="dark"] .elementor .idt-glow .wpr-promo-box-content {
  background-color: var(--idt-surface) !important;
  color: var(--idt-text) !important;
}
html[data-idt-theme="dark"] .elementor .idt-glow .wpr-promo-box:hover .wpr-promo-box-content {
  background-color: var(--idt-raised) !important;
}
html[data-idt-theme="dark"] .elementor .idt-glow :is(.wpr-promo-box-title, .wpr-promo-box-title a) {
  color: var(--idt-text) !important;
}
html[data-idt-theme="dark"] .elementor .idt-glow .wpr-promo-box-description { color: var(--idt-muted) !important; }

/* Admin-only booking search/sync is a separate shortcode from Events Editor. */
html[data-idt-theme="dark"] .liste-entry-repair { color: var(--idt-text) !important; }
html[data-idt-theme="dark"] .liste-entry-repair :is(
  .liste-entry-repair-toolbar, .liste-entry-repair-sync, .liste-entry-repair-results,
  .liste-entry-repair-card, .liste-entry-repair-sync-row, .liste-entry-repair-mobile-layer,
  .liste-entry-repair-mobile-head, .liste-entry-repair-mobile-body
) {
  background-color: var(--idt-surface) !important;
  color: var(--idt-text) !important;
  border-color: var(--idt-border) !important;
}
html[data-idt-theme="dark"] .liste-entry-repair :is(input, select, textarea) {
  background-color: var(--idt-field) !important;
  color: var(--idt-text) !important;
  border-color: var(--idt-border) !important;
}
html[data-idt-theme="dark"] .liste-entry-repair :is(label, .liste-entry-repair-title, .liste-entry-repair-name) {
  color: var(--idt-text) !important;
}
html[data-idt-theme="dark"] .liste-entry-repair :is(.is-error, .liste-entry-repair-error) { color: #ffabb4 !important; }
html[data-idt-theme="dark"] .liste-entry-repair .is-ok { color: #9ce4b9 !important; }
html[data-idt-theme="dark"] .liste-entry-repair small { color: var(--idt-muted) !important; }
/* Keep the management wrapper transparent, with a distinct rounded editor panel. */
html[data-idt-theme="dark"] .liste-management-tools { background-color: transparent !important; }
html[data-idt-theme="dark"] .liste-management-tools .liste-cards-event-inline-editor {
  background-color: var(--idt-surface) !important;
}
html[data-idt-theme="dark"] .liste-management-tools .liste-cards-event-panel { background-color: transparent !important; }

/* 0.1.2: operational tables, drawers and independent panels. */
html[data-idt-theme="dark"] :is(.page-header-title, .entry-title) { color: var(--idt-text) !important; }
html[data-idt-theme="dark"] .elementor .wpr-content-ticker-inner { background-color: var(--idt-surface) !important; }
html[data-idt-theme="dark"] .elementor .wpr-ticker-title-inner { color: var(--idt-text) !important; }
html[data-idt-theme="dark"] .elementor .wpr-ticker-gradient:after { background-image: linear-gradient(to right, transparent, var(--idt-surface)) !important; }
html[data-idt-theme="dark"] .elementor .wpr-ticker-gradient:before { background-image: linear-gradient(to left, transparent, var(--idt-surface)) !important; }
html[data-idt-theme="dark"] :is(.ccc-ops-wrap, .ccc-stock-wrap, .ccc-reports-dashboard, .fdm-sales-wrap, .st-wrap, .stv-wrap, .stdtp-wrap) :is(h2,h3,h4,label) { color: var(--idt-text) !important; }
html[data-idt-theme="dark"] :is(.ccc-ops-subtitle, .ccc-ops-field, .ccc-stock-wrap small) { color: var(--idt-muted) !important; }
html[data-idt-theme="dark"] :is(.ccc-stock-tabs, .ccc-stock-card, .ccc-stock-filters, .ccc-stock-period-select-box, .ccc-stock-quarter-total, .ccc-stock-empty, .ccc-ops-table-frame, .ccc-reports-summary-history, .fdm-load-summary, .fdm-load-summary-metrics div, .fdm-load-summary-row) {
  background-color: var(--idt-surface) !important; color: var(--idt-text) !important; border-color: var(--idt-border) !important;
}
html[data-idt-theme="dark"] :is(.ccc-stock-currency-selected, .ccc-stock-currency-options, .ccc-stock-currency-search-wrap, .ccc-stock-currency-option) {
  background-color: var(--idt-field) !important; color: var(--idt-text) !important; border-color: var(--idt-border) !important;
}
html[data-idt-theme="dark"] .ccc-stock-currency-option:hover { background-color: var(--idt-raised) !important; }
html[data-idt-theme="dark"] .ccc-ops-wrap .ccc-ops-table tbody tr td {
  background-color: var(--idt-surface) !important; color: var(--idt-text) !important;
}
html[data-idt-theme="dark"] .ccc-ops-wrap .ccc-ops-table tbody tr:nth-child(even) td { background-color: var(--idt-raised) !important; }
html[data-idt-theme="dark"] .ccc-ops-wrap .ccc-ops-table tbody tr.is-checked-yes td { background-color: #193c2d !important; color: #c4f6d9 !important; }
html[data-idt-theme="dark"] .ccc-ops-wrap .ccc-ops-table tbody tr.is-selected td { background-color: #514218 !important; color: #fff0b0 !important; }
html[data-idt-theme="dark"] :is(.ccc-ops-table, .ccc-stock-table) th,
html[data-idt-theme="dark"] :is(.ccc-ops-action-btn, .ccc-ops-print-table-btn, .fdm-card, .fdm-card h3) { color: var(--idt-text) !important; }
html[data-idt-theme="dark"] .fdm-load-summary :is(div,span,strong) { color: var(--idt-text) !important; }
html[data-idt-theme="dark"] :is(.st-wrap,.stv-wrap,.stdtp-wrap) table thead :is(tr,th) { background-color: var(--idt-raised) !important; color: var(--idt-text) !important; }
html[data-idt-theme="dark"] .ccc-reports-dashboard .ccc-mc-table > tbody > tr.ccc-mc-row,
html[data-idt-theme="dark"] .ccc-reports-dashboard .ccc-mc-table > tbody > tr.ccc-mc-row > td { background-color: var(--idt-surface) !important; color: var(--idt-text) !important; }
html[data-idt-theme="dark"] .ccc-reports-dashboard .ccc-mc-table td::before { color: var(--idt-muted) !important; }
html[data-idt-theme="dark"] :is(.liste-events-cards,.liste-event-card-drawer-shell) :is(.liste-event-card-metric, .liste-event-card-metric span, .liste-event-card-stock, .liste-event-card-bookings, .liste-event-card-entry-label, label, h3, .liste-card-details-head, .liste-card-details-name-row, .liste-card-details-name-row > span, .liste-card-details-name-card, .liste-card-details-name-card strong) { color: var(--idt-text) !important; }
html[data-idt-theme="dark"] .liste-event-card-drawer-shell :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea) { background-color: var(--idt-field) !important; color: var(--idt-text) !important; border-color: var(--idt-border) !important; }
html[data-idt-theme="dark"] :is(.liste-events-cards,.liste-event-card-drawer-shell) :is(.liste-card-details-name-summary, .liste-card-details-name-extra, .liste-card-details-name-extra strong, .liste-card-details-name-extra a, .liste-card-details-name-row.liste-card-details-head) { color: var(--idt-text) !important; }
html[data-idt-theme="dark"] :is(.liste-events-cards,.liste-event-card-drawer-shell) .liste-card-details-name-card.is-checked { background-color: #193c2d !important; }

/* 0.1.3: selectors confirmed against bank/FDM and Royal widget source. */
html[data-idt-theme="dark"] .elementor .elementor-widget-wpr-post-title .wpr-post-title,
html[data-idt-theme="dark"] .elementor .elementor-widget-text-editor > .elementor-widget-container > :is(h1,h2,h3) { color: var(--idt-text) !important; }
html[data-idt-theme="dark"] .ccc-stock-wrap .ccc-stock-table tbody tr:nth-child(n) td { background-color: var(--idt-surface) !important; color: var(--idt-text) !important; }
html[data-idt-theme="dark"] .ccc-stock-wrap .ccc-stock-table tbody tr:nth-child(even) td { background-color: var(--idt-raised) !important; }
html[data-idt-theme="dark"] .ccc-stock-wrap .ccc-stock-table tbody tr:nth-child(n) td.ccc-stock-total-source { background-color: #3e301d !important; }
html[data-idt-theme="dark"] .ccc-stock-wrap .ccc-stock-table tbody tr:nth-child(n) td.ccc-stock-bank-source { background-color: #1c304b !important; }
html[data-idt-theme="dark"] .ccc-stock-wrap .ccc-stock-table tbody tr:nth-child(n) td.ccc-stock-result-source { background-color: #4a301d !important; }
html[data-idt-theme="dark"] .ccc-stock-wrap .ccc-stock-table tfoot td { color: var(--idt-text) !important; }
html[data-idt-theme="dark"] .ccc-stock-wrap :is(.ccc-stock-quarter-total,.ccc-stock-period-select-box,.ccc-stock-preview-value) :is(span,strong) { color: var(--idt-text) !important; }
html[data-idt-theme="dark"] .ccc-stock-wrap .ccc-stock-preview-value { background-color: var(--idt-field) !important; color: var(--idt-text) !important; border-color: var(--idt-border) !important; }
html[data-idt-theme="dark"] .ccc-stock-wrap .ccc-stock-subtitle { color: var(--idt-muted) !important; }
html[data-idt-theme="dark"] .fdm-sales-wrap :is(.fdm-sheet-card,.fdm-sheet-card__title,.fdm-btn-icon) { color: var(--idt-text) !important; }
html[data-idt-theme="dark"] #fdm_report_table tr.is-editing td { background-color: #382833 !important; color: var(--idt-text) !important; }
html[data-idt-theme="dark"] #fdm_report_table tr.is-editing { outline: 1px solid #ff8793; outline-offset: -1px; }
html[data-idt-theme="dark"] .elementor :is(#e-n-tab-title-391747361,#e-n-tab-title-391747362,#e-n-tab-title-391747363)[aria-selected="false"] { background-color: var(--idt-raised) !important; color: var(--idt-text) !important; }

/* 0.1.4: outer converter shell, pagination and inline New Event dialog. */
html[data-idt-theme="dark"] .ufw_wb:has(iframe.ccc-iframe),
html[data-idt-theme="dark"] .ufw_wb_inner:has(iframe.ccc-iframe) {
  background-color: var(--idt-surface) !important;
  color: var(--idt-text) !important;
  border-color: var(--idt-border) !important;
}
html[data-idt-theme="dark"] :is(.ccc-stock-pagination,.ccc-stock-pagination-info,.ccc-stock-per-page span,.ccc-ops-pagination,.ccc-ops-pagination-info) {
  color: var(--idt-text) !important;
}
html[data-idt-theme="dark"] :is(.ccc-stock-pagination-buttons button,.ccc-ops-pagination-pages a) {
  background-color: var(--idt-raised) !important;
  color: var(--idt-text) !important;
  border-color: var(--idt-border) !important;
}
html[data-idt-theme="dark"] .ccc-stock-pagination-buttons button:disabled {
  background-color: #902334 !important;
  color: #fff !important;
}
html[data-idt-theme="dark"] .liste-management-tools .liste-cards-event-dialog.liste-cards-inline-tool-panel[open],
html[data-idt-theme="dark"] .liste-management-tools .liste-cards-event-dialog.liste-cards-inline-tool-panel .liste-cards-event-dialog-form {
  background-color: var(--idt-surface) !important;
  color: var(--idt-text) !important;
  border-color: var(--idt-border) !important;
}
html[data-idt-theme="dark"] .liste-management-tools .liste-cards-event-dialog.liste-cards-inline-tool-panel h3 {
  color: var(--idt-text) !important;
}

/* 0.1.6: black brand chrome, white elevation and visible menu hover. */
html[data-idt-theme="dark"] { --ccc-ui-shadow: 0 2px 6px rgb(255 255 255 / 18%); }
html[data-idt-theme="dark"] :is(#site-header,#top-bar-wrap),
html[data-idt-theme="dark"] .elementor .wpr-content-ticker-inner,
html[data-idt-theme="dark"] .elementor .idt-logo,
html[data-idt-theme="dark"] .elementor .idt-logo > .elementor-widget-container { background-color:#000000 !important; }
html[data-idt-theme="dark"] .elementor .wpr-ticker-gradient:after { background-image:linear-gradient(to right,transparent,#000000) !important; }
html[data-idt-theme="dark"] .elementor .wpr-ticker-gradient:before { background-image:linear-gradient(to left,transparent,#000000) !important; }
html[data-idt-theme="dark"] :is(.wpr-sub-menu,.wpr-mobile-nav-menu,#site-navigation .sub-menu,.ui-datepicker,.select2-dropdown,.ccc-modal,.fdm-suggest-list,.liste-event-card-drawer-shell),
html[data-idt-theme="dark"] .ufw_wb:has(iframe.ccc-iframe) { box-shadow:0 6px 22px rgb(255 255 255 / 22%) !important; }
html[data-idt-theme="dark"] .elementor .elementor-widget-wpr-nav-menu :is(.wpr-sub-menu-item,.wpr-mobile-menu-item,.wpr-mobile-sub-menu-item):is(:hover,:focus-visible) {
  background-color:#df2035 !important; color:#ffffff !important;
  box-shadow:inset 0 0 0 1px rgb(255 255 255 / 40%) !important;
}
html[data-idt-theme="dark"] .fdm-sheet-card:is(:hover,.is-active) { box-shadow:0 6px 16px rgb(255 255 255 / 18%) !important; }
html[data-idt-theme="dark"] :is(.ccc-ops-wrap,.ccc-stock-wrap) button:hover { box-shadow:0 2px 6px rgb(255 255 255 / 24%) !important; }
html[data-idt-theme="dark"] .liste-events-cards .liste-card-details-name-card { box-shadow:0 2px 8px rgb(255 255 255 / 12%) !important; }
html[data-idt-theme="dark"] .liste-events-cards .liste-card-details-name-card.is-open { box-shadow:0 3px 10px rgb(255 255 255 / 18%) !important; }
html[data-idt-theme="dark"] .ccc-export-wrap :is(h2,label,.ccc-export-download,.ccc-export-table th,.ccc-export-pagination) { color:var(--idt-text) !important; }
html[data-idt-theme="dark"] .ccc-export-wrap .ccc-export-subtitle { color:var(--idt-muted) !important; }
html[data-idt-theme="dark"] .ccc-export-wrap .ccc-export-meta { background-color:var(--idt-raised) !important; color:var(--idt-text) !important; border-color:var(--idt-border) !important; }
html[data-idt-theme="dark"] .ccc-export-wrap .ccc-export-table tbody tr:nth-child(n) td { background-color:var(--idt-surface) !important; color:var(--idt-text) !important; border-color:var(--idt-border) !important; }
html[data-idt-theme="dark"] .ccc-export-wrap .ccc-export-table tbody tr:nth-child(even) td { background-color:var(--idt-raised) !important; }
html[data-idt-theme="dark"] .ccc-export-wrap .ccc-export-pagination a { color:var(--idt-link) !important; }

/* 0.1.7: Check uses separate name/summary controls from Details. */
html[data-idt-theme="dark"] :is(.liste-events-cards,.liste-event-card-drawer-shell) .liste-event-card-check-result :is(
  .liste-event-card-check-result-summary,
  .liste-event-card-check-result-summary:hover,
  .liste-event-card-check-result-summary:focus,
  .liste-event-card-check-result-summary:active,
  .liste-event-card-check-name,.liste-event-card-check-pax,.liste-event-card-check-cin
) { color:var(--idt-text) !important; }
html[data-idt-theme="dark"] :is(.liste-events-cards,.liste-event-card-drawer-shell) .liste-event-card-check-status { color:var(--idt-muted) !important; }

/* 0.1.8: Details event totals, including labels and numeric values. */
html[data-idt-theme="dark"] .liste-card-details-section-totals,
html[data-idt-theme="dark"] .liste-card-details-section-totals :is(span,strong) {
  color:var(--idt-text) !important;
}
