/* Dark theme (html[data-theme="dark"]), copied from the ET project's sheets.
   Loaded after odoo.css / app-workbench-orange.css and before theme.css (templates/base.html).
   shortcut: ET-only screens' rules (inv-*, crm-*) came along unused; FLEET-only screens keep light colours in dark mode until they get rules here. */

/* ---- from ET odoo.css (51 rules) ---- */
html[data-theme="dark"] {
  color-scheme: dark;
  --o-brand: #d7e3e8;
  --o-brand-dark: #9fb4bc;
  --o-accent: #fb770d;
  --o-accent-dark: #ff8f33;
  --o-peach: #ffa45b;
  --o-beige: #3a2a1f;
  --o-bg: #121820;
  --o-panel: #1a222c;
  --o-border: rgba(255, 164, 91, 0.22);
  --o-text: #e8eef2;
  --o-muted: #9aabb3;
  --o-input-border: rgba(255, 164, 91, 0.35);
  --o-hover: rgba(251, 119, 13, 0.12);
  --o-sidebar: #161d26;
}
html[data-theme="dark"] {
  color-scheme: dark;
  --o-brand: #d7e3e8;
  --o-brand-dark: #9fb4bc;
  --o-accent: #fb770d;
  --o-accent-dark: #ff8f33;
  --o-peach: #ffa45b;
  --o-beige: #3a2a1f;
  --o-bg: #121820;
  --o-panel: #1a222c;
  --o-border: rgba(255, 164, 91, 0.22);
  --o-text: #e8eef2;
  --o-muted: #9aabb3;
  --o-input-border: rgba(255, 164, 91, 0.35);
  --o-hover: rgba(251, 119, 13, 0.12);
  --o-sidebar: #161d26;
}
html[data-theme="dark"] .o_theme-icon--moon {
  display: block;
}
html[data-theme="dark"] .o_user-menu-dropdown {
  background: rgba(26, 34, 44, 0.98);
  border-color: rgba(var(--o-peach-rgb), 0.28);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45);
}
html[data-theme="dark"] .o_user-menu-head,
html[data-theme="dark"] .o_user-menu-section {
  border-color: rgba(232, 238, 242, 0.08);
}
html[data-theme="dark"] .o_sidebar {
  background: var(--o-sidebar);
  border-color: rgba(var(--o-peach-rgb), 0.18);
  color: var(--o-text);
}
html[data-theme="dark"] .o_sidebar_head,
html[data-theme="dark"] .o_sidebar_search_input {
  background: #141b24;
  color: var(--o-text);
  border-color: rgba(var(--o-peach-rgb), 0.22);
}
html[data-theme="dark"] .o_main,
html[data-theme="dark"] .o_web_client .o_main:not(.o_main-module-home) {
  background: var(--o-bg);
  color: var(--o-text);
}
html[data-theme="dark"] .o_list_sheet,
html[data-theme="dark"] .o_form_sheet,
html[data-theme="dark"] .o_form_view .o_form_sheet,
html[data-theme="dark"] .klaro-card,
html[data-theme="dark"] .o_home_header,
html[data-theme="dark"] .module-tile {
  background: var(--o-panel);
  color: var(--o-text);
  border-color: var(--o-border);
}
html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea {
  background: #141b24;
  color: var(--o-text);
  border-color: var(--o-input-border);
}
html[data-theme="dark"] code {
  background: #243040;
  color: var(--o-peach);
}
html[data-theme="dark"] .muted {
  color: var(--o-muted);
}
html[data-theme="dark"] .data-table {
  background: var(--o-panel);
  color: var(--o-text);
}
html[data-theme="dark"] .data-table th,
html[data-theme="dark"] .data-table tfoot td {
  background: #243040;
  color: #d7e3e8;
  border-bottom-color: var(--o-border);
}
html[data-theme="dark"] .data-table td {
  border-bottom-color: #2a3544;
  color: var(--o-text);
}
html[data-theme="dark"] .data-table tbody tr:hover,
html[data-theme="dark"] .data-table tr.chart-row:hover {
  background: rgba(var(--o-accent-rgb), 0.1);
}
html[data-theme="dark"] .data-table input,
html[data-theme="dark"] .data-table select {
  background: #141b24 !important;
  color: var(--o-text) !important;
  border-color: var(--o-input-border) !important;
}
html[data-theme="dark"] .data-table input[readonly],
html[data-theme="dark"] .o_field input[readonly],
html[data-theme="dark"] .inv-name-input,
html[data-theme="dark"] .chartnew-readonly-code,
html[data-theme="dark"] .ledger-field-account input[readonly] {
  background: linear-gradient(180deg, #243040 0%, #1a222c 100%) !important;
  color: #d7e3e8 !important;
  border-color: rgba(var(--o-peach-rgb), 0.4) !important;
}
html[data-theme="dark"] .o_main-form .table-wrap,
html[data-theme="dark"] .table-wrap {
  background: var(--o-panel) !important;
  border-color: var(--o-border) !important;
}
html[data-theme="dark"] .o_list_search,
html[data-theme="dark"] .o_list_pager,
html[data-theme="dark"] .o_list_pager_btn,
html[data-theme="dark"] .o_list_pager_num {
  background: var(--o-panel);
  color: var(--o-text);
  border-color: var(--o-border);
}
html[data-theme="dark"] .o_list_pager_num.is-active {
  background: var(--o-accent);
  color: #fff;
  border-color: var(--o-accent);
}
html[data-theme="dark"] .inv-report-params-sheet,
html[data-theme="dark"] .inv-report-studio .inv-filter-bar,
html[data-theme="dark"] .ledger-params,
html[data-theme="dark"] .report-params,
html[data-theme="dark"] .o_form_sheet_bg,
html[data-theme="dark"] .chartopen-form-sheet,
html[data-theme="dark"] .chartnew-entry,
html[data-theme="dark"] .pinfo-sheet {
  background: var(--o-panel) !important;
  color: var(--o-text);
  border-color: var(--o-border) !important;
}
html[data-theme="dark"] .filter-pill,
html[data-theme="dark"] .fin-filter-pill,
html[data-theme="dark"] .o_status:not(.active) {
  background: #243040;
  color: var(--o-text);
  border-color: var(--o-border);
}
html[data-theme="dark"] .btn-odoo-secondary {
  background: var(--o-panel);
  color: var(--o-text);
  border-color: #3a4656;
}
html[data-theme="dark"] .alert,
html[data-theme="dark"] .flash,
html[data-theme="dark"] .o_notification {
  color: var(--o-text);
}
html[data-theme="dark"] .menu-order-add-bar {
  background: #1a222c;
  color: var(--o-text);
}
html[data-theme="dark"] .menu-order-node.is-extra > .menu-order-row {
  background: #1a2a22;
}
html[data-theme="dark"] .menu-order-node.drag-over-into > .menu-order-row {
  background: #2a2030;
}
html[data-theme="dark"] .command-search,
html[data-theme="dark"] .cmd-search,
html[data-theme="dark"] #cmd-search,
html[data-theme="dark"] .cmd-search-panel {
  background: var(--o-panel);
  color: var(--o-text);
  border-color: var(--o-border);
}
html[data-theme="dark"] .klaro-select-menu,
html[data-theme="dark"] .klaro-select-list,
html[data-theme="dark"] .klaro-select-option {
  background: #1a222c;
  color: var(--o-text);
  border-color: var(--o-border);
}
html[data-theme="dark"] .klaro-select-search-wrap {
  background: #1a222c;
}
html[data-theme="dark"] .klaro-select-search {
  background: #121820;
  color: var(--o-text);
  border-color: var(--o-border);
}
html[data-theme="dark"] .klaro-select-empty {
  color: var(--o-muted);
}
html[data-theme="dark"] .klaro-select-option:hover,
html[data-theme="dark"] .klaro-select-option.is-active,
html[data-theme="dark"] .klaro-select-option.is-highlighted,
html[data-theme="dark"] .klaro-select-option[aria-selected="true"] {
  background: rgba(var(--o-accent-rgb), 0.16);
  color: var(--o-text);
}
html[data-theme="dark"] .o_sidebar .menu-tree a,
html[data-theme="dark"] .o_sidebar .menu-item,
html[data-theme="dark"] .o_sidebar_body {
  color: var(--o-text);
}
html[data-theme="dark"] .o_sidebar .menu-tree a:hover,
html[data-theme="dark"] .o_sidebar .menu-item:hover {
  background: rgba(var(--o-accent-rgb), 0.12);
}
html[data-theme="dark"] .o_breadcrumb,
html[data-theme="dark"] .o_cp_title,
html[data-theme="dark"] label,
html[data-theme="dark"] .o_field label {
  color: var(--o-text);
}
html[data-theme="dark"] .o_field label {
  color: var(--o-muted);
}
html[data-theme="dark"] .o_statusbar,
html[data-theme="dark"] .o_main-form .o_statusbar,
html[data-theme="dark"] .chartopen-statusbar,
html[data-theme="dark"] .pinfo-entry-statusbar {
  background: #1e2834 !important;
  border-bottom-color: var(--o-border) !important;
}
html[data-theme="dark"] .pinfo-hint,
html[data-theme="dark"] .chartopen-hint,
html[data-theme="dark"] .quot-history-section,
html[data-theme="dark"] .quot-history-table-wrap {
  background: #1a222c !important;
  border-color: var(--o-border) !important;
  color: var(--o-text);
}
html[data-theme="dark"] .quot-history-title {
  color: var(--o-text);
}
html[data-theme="dark"] .quot-footer {
  background: linear-gradient(180deg, #1e2834 0%, #1a222c 55%) !important;
  border-color: rgba(var(--o-peach-rgb), 0.28) !important;
  color: var(--o-text);
}
html[data-theme="dark"] .quot-footer-field label {
  color: var(--o-muted) !important;
}
html[data-theme="dark"] .quot-footer-field input {
  background: #141b24 !important;
  color: var(--o-text) !important;
  border-color: var(--o-input-border) !important;
}
html[data-theme="dark"] .quot-footer-field input[readonly] {
  background: linear-gradient(180deg, #243040 0%, #1a222c 100%) !important;
}
html[data-theme="dark"] .quot-disp-red {
  color: #ff8a7a !important;
}
html[data-theme="dark"] .quot-disp-blue {
  color: #7eb6ff !important;
}
html[data-theme="dark"] .quot-footer-row-grand .quot-footer-value input {
  background: linear-gradient(180deg, #2a2218 0%, #243040 100%) !important;
  border-color: rgba(var(--o-accent-rgb), 0.65) !important;
  color: var(--o-peach) !important;
}
html[data-theme="dark"] .o_field input,
html[data-theme="dark"] .o_field textarea,
html[data-theme="dark"] .o_field select:not(.klaro-select-native) {
  background: #141b24 !important;
  color: var(--o-text) !important;
  border-color: var(--o-input-border) !important;
}
html[data-theme="dark"] .btn-odoo {
  border-color: #3a4656;
}
html[data-theme="dark"] .btn-odoo-secondary {
  background: #1a222c !important;
  color: var(--o-text) !important;
}

/* ---- from ET app-workbench-orange.css (113 rules) ---- */
html[data-theme="dark"] .o_form_view .quot-footer {
  background: linear-gradient(180deg, #1e2834 0%, #1a222c 55%) !important;
  border-color: rgba(var(--o-peach-rgb), 0.28) !important;
  color: #e8eef2 !important;
}
html[data-theme="dark"] .o_form_view .quot-footer-field label {
  color: #9aabb3 !important;
}
html[data-theme="dark"] .o_form_view .quot-footer-field input {
  background: #141b24 !important;
  color: #e8eef2 !important;
  border-color: rgba(var(--o-peach-rgb), 0.4) !important;
  -webkit-text-fill-color: #e8eef2 !important;
  box-shadow: none !important;
}
html[data-theme="dark"] .o_form_view .quot-footer-field input[readonly],
html[data-theme="dark"] .o_form_view .quot-footer .quot-disp-red,
html[data-theme="dark"] .o_form_view .quot-footer .quot-disp-blue {
  background: linear-gradient(180deg, #243040 0%, #1a222c 100%) !important;
  border-color: rgba(var(--o-peach-rgb), 0.45) !important;
  box-shadow: none !important;
}
html[data-theme="dark"] .o_form_view .quot-footer .quot-disp-red {
  color: #ff8a7a !important;
  -webkit-text-fill-color: #ff8a7a !important;
}
html[data-theme="dark"] .o_form_view .quot-footer .quot-disp-blue {
  color: #7eb6ff !important;
  -webkit-text-fill-color: #7eb6ff !important;
}
html[data-theme="dark"] .o_form_view .quot-footer-row-grand .quot-footer-value input {
  background: linear-gradient(180deg, #2a2218 0%, #243040 100%) !important;
  border-color: rgba(var(--o-accent-rgb), 0.65) !important;
  color: var(--o-peach) !important;
  -webkit-text-fill-color: var(--o-peach) !important;
}
html[data-theme="dark"] .pinfo-entry-notebook .chartnew-tab-row {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(var(--o-peach-rgb), 0.28);
}
html[data-theme="dark"] {
  --qc-accent: var(--o-accent, #fb770d);
  --qc-accent-dark: var(--o-accent-dark, #ff8f33);
  --qc-accent-soft: rgba(251, 119, 13, 0.18);
  --qc-border: rgba(255, 164, 91, 0.22);
  --qc-border-strong: rgba(255, 164, 91, 0.4);
  --qc-page: #121820;
  --qc-toolbar: #1a222c;
  --qc-panel: #1a222c;
  --qc-muted: #9aabb3;
  --qc-text: #e8eef2;
  --qc-head: #243040;
  --qc-zebra: #161d26;
  --qc-hover: rgba(251, 119, 13, 0.12);
  --qc-input-bg: #141b24;
  --qc-surface-soft: #1e2834;
  --qc-surface-2: #1e2834;
  --qc-surface-3: #182029;
  --qc-line-soft: #2a3544;
  --qc-row-line: #243040;
  --qc-th-text: #fda45b;
  --qc-readonly-bg: linear-gradient(180deg, #243040 0%, #1a222c 100%);
  --qc-readonly-text: #d7e3e8;
  --qc-btn-secondary-bg: #1a222c;
  --qc-btn-secondary-hover: #243040;
  --qc-btn-secondary-border: #3a4656;
  --qc-print-frame: #121820;
  --qc-sheet-inset: rgba(255, 255, 255, 0.04);
}
html[data-theme="dark"] .o_form_view .o_control_panel,
html[data-theme="dark"] .o_action > .o_control_panel,
html[data-theme="dark"] .o_list_sheet ~ .o_control_panel,
html[data-theme="dark"] .o_action .o_control_panel {
  border-color: rgba(var(--o-peach-rgb), 0.22);
  box-shadow: none;
  background: var(--qc-toolbar);
}
html[data-theme="dark"] .forms-catalog-entry .forms-catalog-sheet,
html[data-theme="dark"] .forms-catalog-entry .forms-catalog-hint,
html[data-theme="dark"] .lov-modal .lov-dialog,
html[data-theme="dark"] .lov-dialog,
html[data-theme="dark"] .print-dialog,
html[data-theme="dark"] .chartnew-entry-dialog,
html[data-theme="dark"] .master-quick-dialog {
  background: var(--qc-panel) !important;
  color: var(--qc-text);
  border-color: var(--qc-border) !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45) !important;
}
html[data-theme="dark"] .lov-modal .lov-header,
html[data-theme="dark"] .lov-dialog .lov-header,
html[data-theme="dark"] .print-header,
html[data-theme="dark"] .chartnew-entry-footer,
html[data-theme="dark"] .lov-modal.master-quick-modal .chartnew-entry-footer,
html[data-theme="dark"] .o_form_view .o_notebook_header,
html[data-theme="dark"] .inv-voucher-form .inv-voucher-head,
html[data-theme="dark"] .o_form_view .statusbar-like,
html[data-theme="dark"] .o_form_view .o_form_statusbar {
  background: var(--qc-head) !important;
  border-color: var(--qc-line-soft) !important;
  color: var(--qc-text) !important;
}
html[data-theme="dark"] .forms-catalog-entry .forms-catalog-sheet {
  background: linear-gradient(180deg, #1e2834 0%, #1a222c 55%) !important;
}
html[data-theme="dark"] .forms-catalog-entry .forms-catalog-hint,
html[data-theme="dark"] .lov-modal .lov-hint,
html[data-theme="dark"] .o_form_view .inv-params-hint {
  background: linear-gradient(180deg, #1e2834 0%, #1a222c 80%) !important;
  color: var(--qc-muted) !important;
  border-color: var(--qc-border) !important;
}
html[data-theme="dark"] .forms-catalog-entry #fld-frmcode,
html[data-theme="dark"] .forms-catalog-entry #fld-application,
html[data-theme="dark"] .forms-catalog-entry #fld-applicationdtl,
html[data-theme="dark"] .o_form_view .inv-name-input,
html[data-theme="dark"] .o_form_view input[readonly],
html[data-theme="dark"] .o_form_view .o_field input[readonly],
html[data-theme="dark"] .inv-voucher-form .inv-name-input,
html[data-theme="dark"] .inv-voucher-form .o_field input[readonly],
html[data-theme="dark"] .inv-report-params-sheet .inv-name-input,
html[data-theme="dark"] .ledger-field-account input[readonly],
html[data-theme="dark"] .pinfo-code-name-wrap .inv-name-input,
html[data-theme="dark"] .chartopen-form-sheet .chartopen-field-desc input[readonly],
html[data-theme="dark"] .data-table input[readonly] {
  background: var(--qc-readonly-bg) !important;
  color: var(--qc-readonly-text) !important;
  border-color: rgba(var(--o-peach-rgb), 0.4) !important;
}
html[data-theme="dark"] .o_form_view .o_field input,
html[data-theme="dark"] .o_form_view .o_field textarea,
html[data-theme="dark"] .o_form_view .o_field select:not(.klaro-select-native),
html[data-theme="dark"] .o_list_sheet .o_field input,
html[data-theme="dark"] .o_list_sheet .o_field select:not(.klaro-select-native),
html[data-theme="dark"] .o_form_view .data-table input,
html[data-theme="dark"] .o_form_view .data-table select,
html[data-theme="dark"] .o_form_view .klaro-select-trigger,
html[data-theme="dark"] .o_list_sheet .klaro-select-trigger,
html[data-theme="dark"] .lov-modal .lov-search input,
html[data-theme="dark"] .lov-dialog .lov-search input,
html[data-theme="dark"] .inv-voucher-form .inv-voucher-fields .o_field input,
html[data-theme="dark"] .inv-voucher-form .inv-voucher-fields .o_field select,
html[data-theme="dark"] .inv-voucher-form .inv-voucher-fields .o_field textarea,
html[data-theme="dark"] .crm-search,
html[data-theme="dark"] .crm-pill {
  background: var(--qc-input-bg) !important;
  color: var(--qc-text) !important;
  border-color: var(--qc-border-strong) !important;
}
html[data-theme="dark"] .o_form_view .table-wrap,
html[data-theme="dark"] .o_form_view .quot-lines-wrap,
html[data-theme="dark"] .o_list_sheet .table-wrap,
html[data-theme="dark"] .o_list_sheet .o-list-pane,
html[data-theme="dark"] .lov-modal .lov-table-wrap,
html[data-theme="dark"] .lov-dialog .lov-table-wrap,
html[data-theme="dark"] .o_main-form .table-wrap {
  background: var(--qc-panel) !important;
  border-color: var(--qc-border-strong) !important;
}
html[data-theme="dark"] .o_form_view .data-table thead th,
html[data-theme="dark"] .o_list_sheet .data-table thead th,
html[data-theme="dark"] .inv-voucher-form #lines-table.inv-lines-table thead th,
html[data-theme="dark"] .lov-modal .lov-table thead th,
html[data-theme="dark"] .lov-dialog .lov-table thead th {
  background: var(--qc-head) !important;
  color: var(--qc-th-text) !important;
  border-bottom-color: var(--qc-border-strong) !important;
}
html[data-theme="dark"] .o_form_view .data-table td,
html[data-theme="dark"] .o_list_sheet .data-table td {
  border-bottom-color: var(--qc-row-line) !important;
  color: var(--qc-text);
}
html[data-theme="dark"] .o_form_view .btn-odoo-secondary,
html[data-theme="dark"] .o_action .btn-odoo-secondary,
html[data-theme="dark"] .lov-modal .lov-header .btn-odoo-secondary,
html[data-theme="dark"] .print-header-actions .btn-odoo-secondary,
html[data-theme="dark"] .o_form_view .btn-odoo-danger,
html[data-theme="dark"] .o_action .btn-odoo-danger {
  background: var(--qc-btn-secondary-bg) !important;
  border-color: var(--qc-btn-secondary-border) !important;
  color: var(--qc-text) !important;
}
html[data-theme="dark"] .o_form_view .btn-odoo-danger,
html[data-theme="dark"] .o_action .btn-odoo-danger {
  color: #fda4af !important;
  border-color: rgba(251, 113, 133, 0.45) !important;
}
html[data-theme="dark"] .o_form_view .lov-btn,
html[data-theme="dark"] .o_list_sheet .lov-btn,
html[data-theme="dark"] .inv-voucher-form .lov-btn {
  background: var(--qc-surface-soft) !important;
  color: var(--qc-text) !important;
  border-color: var(--qc-border-strong) !important;
}
html[data-theme="dark"] .klaro-select-menu,
html[data-theme="dark"] .klaro-select-dropdown,
html[data-theme="dark"] .lov-modal .lov-body,
html[data-theme="dark"] .print-frame {
  background: var(--qc-panel) !important;
  color: var(--qc-text) !important;
  border-color: var(--qc-border) !important;
}
html[data-theme="dark"] .klaro-select-search-wrap {
  background: var(--qc-panel) !important;
}
html[data-theme="dark"] .klaro-select-search {
  background: var(--qc-surface-soft) !important;
  color: var(--qc-text) !important;
  border-color: var(--qc-border) !important;
}
html[data-theme="dark"] .crm-col {
  background: var(--qc-surface-3) !important;
}
html[data-theme="dark"] .crm-col-head {
  border-bottom-color: var(--qc-line-soft) !important;
}
html[data-theme="dark"] .o_navbar {
  background: linear-gradient(180deg, #1a222c 0%, #161d26 100%) !important;
  border-bottom-color: rgba(var(--o-peach-rgb), 0.22) !important;
  color: var(--o-text, #e8eef2) !important;
}
html[data-theme="dark"] .o_topbar,
html[data-theme="dark"] .o_main_navbar {
  background: #1a222c !important;
  color: var(--o-text, #e8eef2) !important;
  border-color: rgba(var(--o-peach-rgb), 0.22) !important;
}
html[data-theme="dark"] .o_sidebar {
  background: #161d26 !important;
  border-right-color: rgba(var(--o-peach-rgb), 0.18) !important;
  color: #e8eef2 !important;
  box-shadow: none !important;
}
html[data-theme="dark"] .o_sidebar_head {
  background: #1a222c !important;
  border-bottom-color: rgba(var(--o-peach-rgb), 0.18) !important;
}
html[data-theme="dark"] .o_sidebar_head h2 {
  color: #e8eef2 !important;
}
html[data-theme="dark"] .o_sidebar_search_input,
html[data-theme="dark"] .o_sidebar_search_input:focus {
  background: #141b24 !important;
  color: #e8eef2 !important;
  border-color: rgba(var(--o-peach-rgb), 0.35) !important;
  box-shadow: none !important;
}
html[data-theme="dark"] .o_sidebar_search_input::placeholder {
  color: #9aabb3 !important;
}
html[data-theme="dark"] .o_sidebar_collapse,
html[data-theme="dark"] .o_sidebar_expand-fab {
  background: #1a222c !important;
  color: #e8eef2 !important;
  border-color: rgba(var(--o-peach-rgb), 0.35) !important;
}
html[data-theme="dark"] .o_sidebar_dash {
  color: #e8eef2 !important;
}
html[data-theme="dark"] .o_sidebar_dash:hover {
  background: rgba(var(--o-accent-rgb), 0.14) !important;
  color: var(--o-accent, var(--o-accent)) !important;
}
html[data-theme="dark"] .o_sidebar_dash.active {
  background: rgba(var(--o-accent-rgb), 0.16) !important;
  color: var(--o-accent, var(--o-accent)) !important;
  border-left-color: var(--o-accent, var(--o-accent)) !important;
  box-shadow: none !important;
}
html[data-theme="dark"] .o_sidebar_search_icon {
  color: #9aabb3 !important;
}
html[data-theme="dark"] .o_sidebar_search:focus-within .o_sidebar_search_icon {
  color: var(--o-accent, var(--o-accent)) !important;
}
html[data-theme="dark"] .o_tree_section {
  background: rgba(26, 34, 44, 0.72) !important;
  border-color: rgba(var(--o-peach-rgb), 0.12) !important;
  box-shadow: none !important;
}
html[data-theme="dark"] .o_tree_section.open {
  background: rgba(30, 40, 52, 0.92) !important;
  border-color: rgba(var(--o-accent-rgb), 0.28) !important;
}
html[data-theme="dark"] .o_sidebar_dash_icon {
  color: #9aabb3 !important;
}
html[data-theme="dark"] .o_sidebar_dash.active .o_sidebar_dash_icon,
html[data-theme="dark"] .o_sidebar_dash:hover .o_sidebar_dash_icon {
  color: inherit !important;
}
html[data-theme="dark"] .o_menu_tree,
html[data-theme="dark"] .o_sidebar_body,
html[data-theme="dark"] .o_tree_row,
html[data-theme="dark"] .o_tree_link,
html[data-theme="dark"] .o_tree_section_head {
  color: #e8eef2 !important;
}
html[data-theme="dark"] .o_tree_row,
html[data-theme="dark"] .o_tree_link {
  background: transparent !important;
}
html[data-theme="dark"] .o_tree_icon,
html[data-theme="dark"] .o_tree_chevron {
  color: #9aabb3 !important;
}
html[data-theme="dark"] .o_tree_link:hover,
html[data-theme="dark"] .o_tree_row:hover,
html[data-theme="dark"] .o_tree_folder > .o_tree_row:hover {
  background: rgba(var(--o-accent-rgb), 0.14) !important;
  color: var(--o-accent, var(--o-accent)) !important;
}
html[data-theme="dark"] .o_tree_link:hover .o_tree_icon,
html[data-theme="dark"] .o_tree_folder > .o_tree_row:hover .o_tree_icon,
html[data-theme="dark"] .o_tree_folder > .o_tree_row:hover .o_tree_chevron {
  color: var(--o-accent, var(--o-accent)) !important;
}
html[data-theme="dark"] .o_tree_link.active {
  background: rgba(var(--o-accent-rgb), 0.16) !important;
  color: var(--o-accent, var(--o-accent)) !important;
  border-left: 3px solid var(--o-accent, var(--o-accent)) !important;
  box-shadow: none !important;
}
html[data-theme="dark"] .o_tree_link.active .o_tree_icon {
  color: var(--o-accent, var(--o-accent)) !important;
}
html[data-theme="dark"] .o_menu_tree .o_tree_leaf.o_tree_filter_hit > .o_tree_link {
  background: rgba(var(--o-accent-rgb), 0.16) !important;
}
html[data-theme="dark"] .o_statusbar,
html[data-theme="dark"] .o_main-form .o_statusbar,
html[data-theme="dark"] .o_form_view .o_statusbar,
html[data-theme="dark"] .o_form_view .o_form_statusbar,
html[data-theme="dark"] .o_form_view .statusbar-like {
  background: #1e2834 !important;
  border-bottom-color: rgba(var(--o-peach-rgb), 0.22) !important;
  color: #e8eef2 !important;
}
html[data-theme="dark"] .o_main-form .o_form_sheet_bg,
html[data-theme="dark"] .o_main-form .o_list_sheet,
html[data-theme="dark"] .o_main-form .o_form_sheet,
html[data-theme="dark"] .o_form_view .o_form_sheet {
  background: #1a222c !important;
  border-color: rgba(var(--o-peach-rgb), 0.22) !important;
  color: #e8eef2 !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35) !important;
}
html[data-theme="dark"] .o_main-form,
html[data-theme="dark"] .o_main.o_main-form,
html[data-theme="dark"] .o_web_client .o_main:not(.o_main-module-home) {
  background: #121820 !important;
  color: #e8eef2 !important;
}
html[data-theme="dark"] .o_form_view .o_field input,
html[data-theme="dark"] .o_form_view .o_field textarea,
html[data-theme="dark"] .o_form_view .o_field select:not(.klaro-select-native),
html[data-theme="dark"] .o_main-form .o_field input,
html[data-theme="dark"] .o_main-form .o_field textarea,
html[data-theme="dark"] .o_main-form .o_field select:not(.klaro-select-native),
html[data-theme="dark"] .o_form_view .klaro-select-trigger,
html[data-theme="dark"] .o_list_sheet .klaro-select-trigger,
html[data-theme="dark"] .o_form_view .inv-name-input,
html[data-theme="dark"] .o_form_view input[readonly],
html[data-theme="dark"] .o_form_view .o_field input[readonly] {
  background: #141b24 !important;
  color: #e8eef2 !important;
  border-color: rgba(var(--o-peach-rgb), 0.4) !important;
  -webkit-text-fill-color: #e8eef2 !important;
}
html[data-theme="dark"] .o_form_view .o_field input::placeholder,
html[data-theme="dark"] .o_form_view .o_field textarea::placeholder,
html[data-theme="dark"] .o_main-form .o_field input::placeholder,
html[data-theme="dark"] .klaro-select-trigger .klaro-select-placeholder,
html[data-theme="dark"] .klaro-select-trigger [data-placeholder] {
  color: #9aabb3 !important;
  -webkit-text-fill-color: #9aabb3 !important;
  opacity: 1 !important;
}
html[data-theme="dark"] .o_form_view .o_field label,
html[data-theme="dark"] .o_main-form .o_field label,
html[data-theme="dark"] .o_cp_title,
html[data-theme="dark"] .o_breadcrumb,
html[data-theme="dark"] .o_breadcrumb a {
  color: #e8eef2 !important;
}
html[data-theme="dark"] .o_form_view .o_field label {
  color: #9aabb3 !important;
}
html[data-theme="dark"] .o_form_view .o_control_panel,
html[data-theme="dark"] .o_action .o_control_panel {
  background: #1a222c !important;
  border-color: rgba(var(--o-peach-rgb), 0.22) !important;
  color: #e8eef2 !important;
}
html[data-theme="dark"] .chartnew-entry-row input,
html[data-theme="dark"] .chartnew-entry-row select,
html[data-theme="dark"] .chartnew-dual-field input,
html[data-theme="dark"] .chartnew-dual-field select,
html[data-theme="dark"] .chartnew-entry-dialog input,
html[data-theme="dark"] .chartnew-entry-dialog select,
html[data-theme="dark"] .chartnew-entry-dialog textarea,
html[data-theme="dark"] .lov-dialog input,
html[data-theme="dark"] .lov-dialog select,
html[data-theme="dark"] .lov-dialog textarea,
html[data-theme="dark"] .pinfo-entry-dialog input,
html[data-theme="dark"] .pinfo-entry-dialog select,
html[data-theme="dark"] .pinfo-entry-dialog textarea,
html[data-theme="dark"] .confirm-dialog input,
html[data-theme="dark"] .master-quick-dialog input,
html[data-theme="dark"] .chartnew-entry-row .klaro-select-trigger,
html[data-theme="dark"] .chartnew-dual-field .klaro-select-trigger {
  background: #141b24 !important;
  color: #e8eef2 !important;
  border-color: rgba(var(--o-peach-rgb), 0.4) !important;
  -webkit-text-fill-color: #e8eef2 !important;
  box-shadow: none !important;
}
html[data-theme="dark"] .chartnew-entry-row input[readonly],
html[data-theme="dark"] .chartnew-dual-field input[readonly],
html[data-theme="dark"] .chartnew-entry-dialog input[readonly] {
  background: linear-gradient(180deg, #243040 0%, #1a222c 100%) !important;
  color: #d7e3e8 !important;
  -webkit-text-fill-color: #d7e3e8 !important;
  border-color: rgba(var(--o-peach-rgb), 0.45) !important;
}
html[data-theme="dark"] .chartnew-entry-row input::placeholder,
html[data-theme="dark"] .chartnew-entry-dialog input::placeholder,
html[data-theme="dark"] .lov-dialog input::placeholder {
  color: #9aabb3 !important;
  -webkit-text-fill-color: #9aabb3 !important;
  opacity: 1 !important;
}
html[data-theme="dark"] .chartnew-entry-row label,
html[data-theme="dark"] .chartnew-dual-field label,
html[data-theme="dark"] .chartnew-entry-dialog label {
  color: #9aabb3 !important;
}
html[data-theme="dark"] .chartnew-entry-footer,
html[data-theme="dark"] .pinfo-entry-footer,
html[data-theme="dark"] .lov-modal.master-quick-modal .chartnew-entry-footer {
  background: #1e2834 !important;
  border-top-color: rgba(var(--o-peach-rgb), 0.22) !important;
}
html[data-theme="dark"] .chartnew-entry-footer .btn-odoo-secondary,
html[data-theme="dark"] .pinfo-entry-footer .btn-odoo-secondary,
html[data-theme="dark"] .lov-dialog .btn-odoo-secondary,
html[data-theme="dark"] .confirm-dialog .btn-odoo-secondary,
html[data-theme="dark"] .chartnew-entry-dialog .btn-odoo-secondary {
  background: #1a222c !important;
  border-color: #3a4656 !important;
  color: #e8eef2 !important;
}
html[data-theme="dark"] .chartnew-entry-footer .btn-odoo-danger,
html[data-theme="dark"] .pinfo-entry-footer .btn-odoo-danger,
html[data-theme="dark"] .lov-dialog .btn-odoo-danger,
html[data-theme="dark"] .confirm-dialog .btn-odoo-danger,
html[data-theme="dark"] .chartnew-entry-dialog .btn-odoo-danger {
  background: #1a222c !important;
  border-color: rgba(251, 113, 133, 0.45) !important;
  color: #fda4af !important;
}
html[data-theme="dark"] .lov-modal .lov-dialog,
html[data-theme="dark"] .chartnew-entry-dialog,
html[data-theme="dark"] .pinfo-entry-dialog,
html[data-theme="dark"] .confirm-dialog,
html[data-theme="dark"] .master-quick-dialog {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45) !important;
}
html[data-theme="dark"] .o_main-module-home,
html[data-theme="dark"] .o_main:has(.fin-overview),
html[data-theme="dark"] .o_main:has(.inv-overview),
html[data-theme="dark"] body:has(.fin-overview),
html[data-theme="dark"] .fin-overview,
html[data-theme="dark"] .fin-dash-container,
html[data-theme="dark"] .inv-overview {
  background: #121820 !important;
  color: #e8eef2 !important;
}
html[data-theme="dark"] .fin-overview .fin-card,
html[data-theme="dark"] .fin-overview .fin-kpi-card,
html[data-theme="dark"] .fin-overview [class*="fin-kpi"],
html[data-theme="dark"] .fin-overview .stat-card,
html[data-theme="dark"] .fin-sales-strip,
html[data-theme="dark"] .fin-overview .fin-panel {
  background: #1a222c !important;
  border-color: #2a3544 !important;
  color: #e8eef2 !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35) !important;
}
html[data-theme="dark"] .fin-overview h1,
html[data-theme="dark"] .fin-overview h2,
html[data-theme="dark"] .fin-overview h3,
html[data-theme="dark"] .fin-overview .fin-section-title,
html[data-theme="dark"] .fin-overview .muted {
  color: #e8eef2 !important;
}
html[data-theme="dark"] .fin-overview .muted {
  color: #9aabb3 !important;
}
html[data-theme="dark"] .fin-overview input,
html[data-theme="dark"] .fin-overview select,
html[data-theme="dark"] .fin-overview .klaro-select-trigger,
html[data-theme="dark"] .fin-filter-pill,
html[data-theme="dark"] .fin-overview .fin-filter-pill {
  background: #141b24 !important;
  color: #e8eef2 !important;
  border-color: #2a3544 !important;
}
html[data-theme="dark"] .btn-odoo-secondary {
  background: #1a222c !important;
  border-color: #3a4656 !important;
  color: #e8eef2 !important;
}
html[data-theme="dark"] .btn-odoo-danger:not(.btn-odoo-primary) {
  background: #1a222c !important;
  border-color: rgba(251, 113, 133, 0.45) !important;
  color: #fda4af !important;
}
html[data-theme="dark"] .inv-insight,
html[data-theme="dark"] .acc-insight {
  background: linear-gradient(
  115deg,
  rgba(var(--o-accent-rgb), 0.16) 0%,
  rgba(26, 34, 44, 0.98) 42%,
  rgba(13, 148, 136, 0.12) 100%
  ) !important;
  border-color: rgba(var(--o-accent-rgb), 0.35) !important;
  color: #e8eef2 !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35) !important;
}
html[data-theme="dark"] .inv-insight__text,
html[data-theme="dark"] .acc-insight .inv-insight__text {
  color: #e8eef2 !important;
}
html[data-theme="dark"] .inv-ops-tile {
  background:
  linear-gradient(
  155deg,
  color-mix(in srgb, var(--ops-accent) 18%, #1a222c) 0%,
  #161d26 48%,
  color-mix(in srgb, var(--ops-accent) 10%, #1a222c) 100%
  ) !important;
  border-color: color-mix(in srgb, var(--ops-accent) 28%, #2a3544) !important;
  color: #e8eef2 !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35) !important;
}
html[data-theme="dark"] .inv-ops-tile__label {
  color: color-mix(in srgb, var(--ops-accent) 70%, #9aabb3) !important;
}
html[data-theme="dark"] .inv-ops-tile__value {
  color: #e8eef2 !important;
}
html[data-theme="dark"] .inv-ops-tile__meta {
  color: #9aabb3 !important;
}
html[data-theme="dark"] .inv-ops-progress {
  background: #243040 !important;
}
html[data-theme="dark"] a.inv-ops-tile--link:hover {
  box-shadow:
  0 4px 10px rgba(0, 0, 0, 0.35),
  0 12px 28px color-mix(in srgb, var(--ops-accent) 28%, transparent) !important;
}
html[data-theme="dark"] .inv-overview .stat-card__label,
html[data-theme="dark"] .inv-overview .stat-card__meta,
html[data-theme="dark"] .inv-overview .muted,
html[data-theme="dark"] .inv-overview .fin-kpi-delta {
  color: #9aabb3 !important;
}
html[data-theme="dark"] .inv-overview .stat-card__value,
html[data-theme="dark"] .inv-overview .stat-card {
  color: #e8eef2 !important;
}
html[data-theme="dark"] .inv-overview .stat-card {
  background: #1a222c !important;
  border-color: #2a3544 !important;
}
html[data-theme="dark"] .o_user-menu-dropdown,
html[data-theme="dark"] .o_user-menu-panel .o_user-menu-dropdown {
  background: rgba(26, 34, 44, 0.98) !important;
  border-color: rgba(var(--o-peach-rgb), 0.28) !important;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45) !important;
  color: #e8eef2 !important;
}
html[data-theme="dark"] .o_user-menu-head,
html[data-theme="dark"] .o_user-menu-section {
  border-color: rgba(232, 238, 242, 0.1) !important;
}
html[data-theme="dark"] .o_user-menu-head strong,
html[data-theme="dark"] .o_user-menu-link,
html[data-theme="dark"] .o_user-menu-logout,
html[data-theme="dark"] .o_theme-toggle {
  color: #e8eef2 !important;
}
html[data-theme="dark"] .o_user-menu-role,
html[data-theme="dark"] .o_user-menu-section-label,
html[data-theme="dark"] .o_theme-toggle-hint {
  color: #9aabb3 !important;
}
html[data-theme="dark"] .o_user-menu-link:hover,
html[data-theme="dark"] .o_user-menu-logout:hover,
html[data-theme="dark"] .o_theme-toggle:hover {
  background: rgba(var(--o-accent-rgb), 0.12) !important;
  color: var(--o-peach) !important;
}
html[data-theme="dark"] .o_user-menu-avatar {
  background: rgba(var(--o-accent-rgb), 0.18) !important;
  color: var(--o-accent) !important;
}
html[data-theme="dark"] .cmd-search,
html[data-theme="dark"] .cmd-search__panel,
html[data-theme="dark"] .command-search,
html[data-theme="dark"] #cmd-search,
html[data-theme="dark"] .cmd-search-panel,
html[data-theme="dark"] .o_home_header,
html[data-theme="dark"] .klaro-card,
html[data-theme="dark"] .o_notification,
html[data-theme="dark"] .flash,
html[data-theme="dark"] .alert:not(.alert-danger):not(.alert-success) {
  background: #1a222c !important;
  color: #e8eef2 !important;
  border-color: rgba(var(--o-peach-rgb), 0.22) !important;
}
html[data-theme="dark"] .menu-order-row {
  background: #1a222c !important;
  color: #e8eef2 !important;
  border-color: #2a3544 !important;
}
html[data-theme="dark"] .menu-order-node.is-folder > .menu-order-row {
  background: #243040 !important;
}
html[data-theme="dark"] .menu-order-error {
  background: #3a1f24 !important;
  color: #fda4af !important;
}
html[data-theme="dark"] .badge-posted {
  background: #1a2a22 !important;
  color: #6ee7b7 !important;
}
html[data-theme="dark"] .badge-pending {
  background: #2a2418 !important;
  color: #fbbf24 !important;
}
html[data-theme="dark"] .pts-status-chip--approved,
html[data-theme="dark"] .pts-status-chip--posted {
  background: #1a2a22 !important;
  color: #6ee7b7 !important;
  border-color: #065f46 !important;
}
html[data-theme="dark"] .pts-status-chip--draft,
html[data-theme="dark"] .pts-status-chip--pending {
  background: #2a2418 !important;
  color: #fbbf24 !important;
  border-color: #92400e !important;
}
html[data-theme="dark"] .pts-status-chip--neutral {
  background: #243040 !important;
  color: #cbd5e1 !important;
  border-color: #334155 !important;
}
html[data-theme="dark"] .o_notebook_headers,
html[data-theme="dark"] .o_form_view .o_notebook_header,
html[data-theme="dark"] .quot-master,
html[data-theme="dark"] .inv-voucher-head,
html[data-theme="dark"] .chartnew-entry-footer,
html[data-theme="dark"] .pinfo-entry-footer {
  background: #1e2834 !important;
  border-color: rgba(var(--o-peach-rgb), 0.22) !important;
  color: #e8eef2 !important;
}
html[data-theme="dark"] .alert-warning {
  background: #3a2e16 !important;
  border-color: rgba(255, 193, 7, 0.35) !important;
  color: #ffe7a3 !important;
}
html[data-theme="dark"] .o_export_dropdown,
html[data-theme="dark"] .chartopen-suggest-panel,
html[data-theme="dark"] .form-embed-frame,
html[data-theme="dark"] .crm-tile,
html[data-theme="dark"] .crm-card,
html[data-theme="dark"] .crm-popover-card,
html[data-theme="dark"] .crm-timeline-item,
html[data-theme="dark"] .crm-due-panel,
html[data-theme="dark"] .crm-dup-box,
html[data-theme="dark"] .itemconv-panel,
html[data-theme="dark"] .cmp-brand-preview,
html[data-theme="dark"] .item-coding-sheet .item-pic-preview {
  background: #1a222c !important;
  color: #e8eef2 !important;
  border-color: rgba(var(--o-peach-rgb), 0.22) !important;
}
html[data-theme="dark"] .chartopen-suggest-table thead th,
html[data-theme="dark"] .chartopen-suggest-status {
  background: #243040 !important;
  color: #d7e3e8 !important;
  border-color: rgba(var(--o-peach-rgb), 0.22) !important;
}
html[data-theme="dark"] .chartopen-suggest-table code {
  background: #141b24 !important;
  color: var(--o-peach) !important;
}
html[data-theme="dark"] .desc-edit-body textarea,
html[data-theme="dark"] .desc-edit-body textarea[readonly],
html[data-theme="dark"] .cmp-brand-preview img,
html[data-theme="dark"] .item-coding-sheet .item-pic-preview img {
  background: #141b24 !important;
  color: #e8eef2 !important;
  border-color: rgba(var(--o-peach-rgb), 0.28) !important;
}
html[data-theme="dark"] #finish-body tr.selected,
html[data-theme="dark"] .chartopen-suggest-table tr.chartopen-suggest-row:hover,
html[data-theme="dark"] .chartopen-suggest-table tr.chartopen-suggest-row.selected {
  background: rgba(var(--o-accent-rgb), 0.2) !important;
}
html[data-theme="dark"] .pts-status-chip--locked {
  background: #3a1f24 !important;
  color: #fda4af !important;
  border-color: #7f1d1d !important;
}
html[data-theme="dark"] .acc-shortcut,
html[data-theme="dark"] .acc-shortcut:hover,
html[data-theme="dark"] .crm-scope-toggle,
html[data-theme="dark"] .crm-scope-btn,
html[data-theme="dark"] .crm-scope-btn:hover {
  background: #1e2834 !important;
  color: #e8eef2 !important;
  border-color: rgba(var(--o-peach-rgb), 0.35) !important;
}
html[data-theme="dark"] .crm-scope-btn.is-active,
html[data-theme="dark"] .acc-shortcut:hover {
  background: rgba(var(--o-accent-rgb), 0.2) !important;
  color: var(--o-peach) !important;
}
html[data-theme="dark"] .crm-overview .crm-sticky-bar,
html[data-theme="dark"] .crm-overview .crm-home-card,
html[data-theme="dark"] .crm-overview .crm-home-card.fin-card,
html[data-theme="dark"] .crm-overview tr.crm-overdue td {
  background: #1a222c !important;
  color: #e8eef2 !important;
  border-color: #2a3544 !important;
}
html[data-theme="dark"] .acc-overview .fin-card,
html[data-theme="dark"] .report-studio-results {
  background: #1a222c !important;
  border-color: #2a3544 !important;
  color: #e8eef2 !important;
}

/* ---- from ET fin-dashboard-tokens.css (1 rules) ---- */
html[data-theme="dark"] body:has(.fin-overview),
html[data-theme="dark"] .fin-overview {
  --fin-bg-page: #121820;
  --fin-bg-card: #1a222c;
  --fin-bg-subtle: #161d26;
  --fin-border: #2a3544;
  --fin-text-primary: #e8eef2;
  --fin-text-secondary: #9aabb3;
  --fin-text-muted: #7a8b96;
  --fin-accent: #5b8cff;
  --fin-accent-soft: rgba(91, 140, 255, 0.16);
  --fin-success: #34d399;
  --fin-success-soft: rgba(52, 211, 153, 0.14);
  --fin-danger: #fb7185;
  --fin-danger-soft: rgba(251, 113, 133, 0.14);
  --fin-warning: #fbbf24;
  --fin-warning-soft: rgba(251, 191, 36, 0.14);
  --fin-chart-grid: #2a3544;
  --fin-chart-track: #243040;
  --fin-shadow-card: 0 1px 2px rgba(0, 0, 0, 0.35);
  --fin-cat-journal-bg: rgba(129, 140, 248, 0.16);
  --fin-cat-journal-text: #a5b4fc;
  --fin-cat-sales-bg: rgba(52, 211, 153, 0.14);
  --fin-cat-sales-text: #6ee7b7;
  --fin-cat-receipt-bg: rgba(56, 189, 248, 0.14);
  --fin-cat-receipt-text: #7dd3fc;
  --fin-cat-bank-bg: rgba(91, 140, 255, 0.14);
  --fin-cat-bank-text: #93b4ff;
  --fin-cat-cash-bg: rgba(251, 191, 36, 0.14);
  --fin-cat-cash-text: #fcd34d;
  --fin-cat-purchase-bg: rgba(251, 113, 133, 0.14);
  --fin-cat-purchase-text: #fda4af;
  --fin-cat-neutral-bg: rgba(148, 163, 184, 0.14);
  --fin-cat-neutral-text: #cbd5e1;
}

/* ---- Theme toggle in the user menu (from ET odoo.css) ---- */
html[data-theme="light"] {
  color-scheme: light;
}
.o_theme-toggle {
  width: 100%;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font: inherit;
}
.o_theme-toggle-text {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  min-width: 0;
}
.o_theme-toggle-hint {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--o-muted);
}
.o_theme-icon { display: none; flex-shrink: 0; }
html[data-theme="light"] .o_theme-icon--sun,
html[data-theme="dark"] .o_theme-icon--moon { display: block; }
