/*
| Soft dark colour scheme for the private area.
| Enabled by adding .app-theme-dark to <html>; the light scheme stays the
| default. This is a first pass: it covers the shell, the dashboard widgets,
| settings, modals and the main section pages.
*/

html.app-theme-dark {
	color-scheme: dark;
	--app-bg: #1e2634;
	--app-surface: #252f3f;
	--app-border: #384456;
	--app-border-soft: #303b4c;
	--app-panel: #2b3647;
	--app-panel-hover: #344155;
	--app-text: #e7edf5;
	--app-text-soft: #d5dee9;
	--app-text-muted: #9aa8ba;
	--app-accent: #6fb0e6;
	--app-primary: #3b4a60;
	--app-green: #5ed49a;
	--app-red: #f27c7c;
	--app-shadow: 0 1px 3px rgba(0, 0, 0, .35);
	background: #1e2634 !important;
}

html.app-theme-dark body.app-body {
	background: #1e2634 !important;
	color: #e7edf5;
}

/* -------------------------------------------------------------------------
   Shell
   ------------------------------------------------------------------------- */

html.app-theme-dark .app-shell {
	background: #1e2634;
}

html.app-theme-dark .app-header {
	background: #252f3f;
	border-bottom-color: #384456;
	color: #e7edf5;
}

html.app-theme-dark .app-section-title {
	color: #eef3f8;
}

html.app-theme-dark .app-sidebar {
	background: #232c3b;
	border-right-color: #384456;
}

html.app-theme-dark .app-sidebar-footer {
	border-top-color: #384456;
}

html.app-theme-dark .app-nav a {
	color: #aeb9c8;
}

html.app-theme-dark .app-nav a:hover,
html.app-theme-dark .app-nav a:focus {
	background: #2d394a;
	color: #ffffff;
}

html.app-theme-dark .app-nav a.active {
	background: #36445a;
	color: #ffffff;
}

html.app-theme-dark .app-icon-btn {
	color: #aeb9c8;
}

html.app-theme-dark .app-icon-btn:hover,
html.app-theme-dark .app-icon-btn:focus {
	background: #2d394a;
	color: #ffffff;
}

html.app-theme-dark .app-sidebar-toggle {
	color: #aeb9c8;
}

html.app-theme-dark .app-sidebar-toggle:hover,
html.app-theme-dark .app-sidebar-toggle:focus {
	background: #2d394a;
	color: #ffffff;
}

html.app-theme-dark .app-logout-label {
	color: #c3cfdd;
}

html.app-theme-dark .app-btn.app-register-btn {
	border-color: #5b7fa6;
	background: transparent;
	color: #cfe4f7;
}

html.app-theme-dark .app-btn.app-register-btn:hover,
html.app-theme-dark .app-btn.app-register-btn:focus {
	border-color: #8fc0ee;
	background: rgba(143, 192, 238, .12);
	color: #ffffff;
}

html.app-theme-dark .app-overlay {
	background: rgba(8, 12, 18, .62);
}

html.app-theme-dark .app-content,
html.app-theme-dark .app-content-inner {
	color: #e7edf5;
}

/* -------------------------------------------------------------------------
   Common surfaces, typography and controls
   ------------------------------------------------------------------------- */

html.app-theme-dark .jarviswidget,
html.app-theme-dark .jarviswidget > div,
html.app-theme-dark .jarviswidget > header,
html.app-theme-dark .widget-body,
html.app-theme-dark .widget-content,
html.app-theme-dark .dash-grid .jarviswidget,
html.app-theme-dark .dash-grid .jarviswidget > div,
html.app-theme-dark .modal-content {
	background-color: #252f3f !important;
	border-color: #384456 !important;
	color: #e7edf5;
}

html.app-theme-dark .dash-grid .jarviswidget {
	box-shadow: 0 1px 3px rgba(0, 0, 0, .28);
}

html.app-theme-dark .app-content h1,
html.app-theme-dark .app-content h2,
html.app-theme-dark .app-content h3,
html.app-theme-dark .app-content h4,
html.app-theme-dark .app-content h5,
html.app-theme-dark .app-content .page-title,
html.app-theme-dark .jarviswidget h2,
html.app-theme-dark .jarviswidget > header h2 {
	color: #eef3f8;
}

html.app-theme-dark .app-content .label,
html.app-theme-dark .app-content label,
html.app-theme-dark .modal-content .label,
html.app-theme-dark .modal-content label {
	color: #c3cfdd;
}

html.app-theme-dark .app-content .note,
html.app-theme-dark .app-content .text-muted,
html.app-theme-dark .app-content .muted,
html.app-theme-dark .modal-content .note {
	color: #94a2b3 !important;
}

html.app-theme-dark .app-content input[type="text"],
html.app-theme-dark .app-content input[type="password"],
html.app-theme-dark .app-content input[type="email"],
html.app-theme-dark .app-content input[type="number"],
html.app-theme-dark .app-content input[type="search"],
html.app-theme-dark .app-content input[type="date"],
html.app-theme-dark .app-content input[type="tel"],
html.app-theme-dark .app-content select,
html.app-theme-dark .app-content textarea,
html.app-theme-dark .modal-content input[type="text"],
html.app-theme-dark .modal-content input[type="password"],
html.app-theme-dark .modal-content input[type="email"],
html.app-theme-dark .modal-content input[type="number"],
html.app-theme-dark .modal-content select,
html.app-theme-dark .modal-content textarea {
	background: #1f2a39 !important;
	border-color: #3a4759 !important;
	color: #e7edf5 !important;
}

html.app-theme-dark .app-content input::placeholder,
html.app-theme-dark .modal-content input::placeholder,
html.app-theme-dark .app-content textarea::placeholder,
html.app-theme-dark .modal-content textarea::placeholder {
	color: #7f8c9d !important;
	opacity: 1;
}

html.app-theme-dark .app-content select option,
html.app-theme-dark .modal-content select option {
	background: #1f2a39;
	color: #e7edf5;
}

html.app-theme-dark .app-content .table,
html.app-theme-dark .app-content table {
	color: #d5dee9;
}

html.app-theme-dark .app-content .table > thead > tr > th,
html.app-theme-dark .app-content table > thead > tr > th {
	background: #2b3647 !important;
	border-color: #384456 !important;
	color: #c3cfdd;
}

html.app-theme-dark .app-content .table > tbody > tr > td,
html.app-theme-dark .app-content table > tbody > tr > td,
html.app-theme-dark .app-content .table > tbody > tr > th {
	background: transparent;
	border-color: #333f51 !important;
	color: #d5dee9;
}

html.app-theme-dark .app-content .table-striped > tbody > tr:nth-child(odd) > td {
	background: #293344 !important;
}

html.app-theme-dark .app-content .table-hover > tbody > tr:hover > td,
html.app-theme-dark .app-content .table > tbody > tr:hover > td {
	background: #303c4e !important;
}

html.app-theme-dark .app-content .btn-default,
html.app-theme-dark .modal-content .btn-default {
	background: #2f3a4b;
	border-color: #3a4759;
	color: #d5dee9;
}

html.app-theme-dark .app-content .btn-default:hover,
html.app-theme-dark .modal-content .btn-default:hover {
	background: #38465a;
	border-color: #485a74;
	color: #ffffff;
}

html.app-theme-dark .modal-content .btn-primary,
html.app-theme-dark .modal-footer .btn-primary {
	background: #3b4a60;
	border-color: #3b4a60;
	color: #ffffff;
}

html.app-theme-dark .modal-content .btn-primary:hover,
html.app-theme-dark .modal-footer .btn-primary:hover {
	background: #485a74;
}

html.app-theme-dark .modal-header,
html.app-theme-dark .modal-body,
html.app-theme-dark .modal-footer {
	background: #252f3f;
	border-color: #384456;
	color: #d5dee9;
}

html.app-theme-dark .modal-header .modal-title {
	color: #eef3f8;
}

html.app-theme-dark .modal-header .close {
	background: #2f3a4b;
	color: #c3cfdd;
}

html.app-theme-dark .modal-header .close:hover {
	background: #38465a;
	color: #ffffff;
}

/* Alerts and notices */
html.app-theme-dark .alert-info {
	background: #223446 !important;
	border-color: #35506a !important;
	color: #b5d2ec !important;
}

html.app-theme-dark .alert-success {
	background: #1e382b !important;
	border-color: #2f5a42 !important;
	color: #a9e0c1 !important;
}

html.app-theme-dark .alert-warning {
	background: #3a3320 !important;
	border-color: #5a4a24 !important;
	color: #e6c97a !important;
}

html.app-theme-dark .alert-danger {
	background: #3a2224 !important;
	border-color: #5e3236 !important;
	color: #f2a6a6 !important;
}

html.app-theme-dark .settings-notice {
	background: #223446;
	border-color: #35506a;
	color: #b5d2ec;
}

html.app-theme-dark .ad-notice-primary,
html.app-theme-dark .ad-notice-info {
	--notice-bg: #223446;
	--notice-border: #35506a;
	--notice-icon-bg: #2a4054;
	--notice-title: #cfe4f7;
	--notice-text: #b5d2ec;
}

html.app-theme-dark .ad-notice-success {
	--notice-bg: #1e382b;
	--notice-border: #2f5a42;
	--notice-icon-bg: #284736;
	--notice-title: #b8e7cc;
	--notice-text: #a9e0c1;
}

html.app-theme-dark .ad-notice-warning {
	--notice-bg: #3a3320;
	--notice-border: #5a4a24;
	--notice-icon-bg: #4a4027;
	--notice-title: #f0d596;
	--notice-text: #e6c97a;
}

html.app-theme-dark .ad-notice-danger {
	--notice-bg: #3a2224;
	--notice-border: #5e3236;
	--notice-icon-bg: #4a2b2e;
	--notice-title: #f5b5b5;
	--notice-text: #f2a6a6;
}

/* -------------------------------------------------------------------------
   Settings
   ------------------------------------------------------------------------- */

html.app-theme-dark .settings-page {
	background: #252f3f;
	box-shadow: none;
}

html.app-theme-dark .settings-tabs-wrap {
	border-bottom-color: #384456;
}

html.app-theme-dark .settings-tabs > li > a {
	background: #2c3748;
	color: #aeb9c8;
}

html.app-theme-dark .settings-tabs > li > a:hover,
html.app-theme-dark .settings-tabs > li > a:focus {
	background: #344155;
	color: #ffffff;
}

html.app-theme-dark .settings-tabs > li.active > a,
html.app-theme-dark .settings-tabs > li.active > a:hover,
html.app-theme-dark .settings-tabs > li.active > a:focus {
	background: #43536b;
	color: #ffffff;
}

html.app-theme-dark .settings-tab-content {
	color: #e7edf5;
}
html.app-theme-dark #checkout-form .ops-period-tabs > li > a {
	background: #2c3748;
	color: #aeb9c8;
}

html.app-theme-dark #checkout-form .ops-period-tabs > li > a:hover,
html.app-theme-dark #checkout-form .ops-period-tabs > li > a:focus {
	background: #344155;
	color: #ffffff;
}

html.app-theme-dark #checkout-form .ops-period-tabs > li.active > a,
html.app-theme-dark #checkout-form .ops-period-tabs > li.active > a:hover,
html.app-theme-dark #checkout-form .ops-period-tabs > li.active > a:focus {
	background: #43536b;
	color: #ffffff;
}

html.app-theme-dark .theme-mode-switch {
	background: #2c3748;
}

html.app-theme-dark .theme-mode-btn {
	color: #aeb9c8;
}

html.app-theme-dark .theme-mode-btn:hover {
	color: #ffffff;
}

html.app-theme-dark .theme-mode-btn.is-selected {
	background: #43536b;
	color: #ffffff;
	box-shadow: none;
}

html.app-theme-dark .cat-card,
html.app-theme-dark .currency-card {
	background: transparent;
}

html.app-theme-dark .cat-segmented {
	background: #2c3748;
}

html.app-theme-dark .cat-seg {
	color: #aeb9c8;
}

html.app-theme-dark .cat-seg:hover {
	color: #ffffff;
}

html.app-theme-dark .cat-seg.is-active {
	background: #3b4a60;
	color: #ffffff;
	box-shadow: none;
}

html.app-theme-dark .cat-order-toggle {
	background: #2a3446;
	border-color: #3a4759;
	color: #d5dee9;
}

html.app-theme-dark .cat-order-toggle:hover {
	background: #344155;
}

html.app-theme-dark .cat-order-toggle.is-active {
	background: #3b4a60;
	border-color: #4a5a73;
	color: #ffffff;
}

html.app-theme-dark .cat-order-hint {
	background: #3a3320;
	border-color: #5a4a24;
	color: #e6c97a;
}

html.app-theme-dark .cat-order-done {
	color: #e6c97a;
}

html.app-theme-dark .cat-add,
html.app-theme-dark .currency-add,
html.app-theme-dark .security-submit {
	background: #3b4a60;
	color: #ffffff;
}

html.app-theme-dark .cat-add:hover,
html.app-theme-dark .currency-add:hover,
html.app-theme-dark .security-submit:hover {
	background: #485a74;
}

html.app-theme-dark .cat-name,
html.app-theme-dark .currency-name {
	color: #e7edf5;
}

html.app-theme-dark .cat-name:hover,
html.app-theme-dark .currency-name:hover {
	color: #6fb0e6;
}

html.app-theme-dark .cat-name.is-hidden {
	color: #7d8a9c;
}

html.app-theme-dark .cat-badge,
html.app-theme-dark .cat-count,
html.app-theme-dark .currency-badge {
	background: #303b4c;
	color: #9aa8ba;
}

html.app-theme-dark .cat-count:hover {
	background: #3a4759;
	color: #ffffff;
}

html.app-theme-dark .cat-icon-btn,
html.app-theme-dark .currency-icon-btn {
	color: #94a2b3;
}

html.app-theme-dark .cat-icon-btn:hover,
html.app-theme-dark .currency-icon-btn:hover {
	background: #2f3a4b;
	color: #ffffff;
}

html.app-theme-dark .cat-icon-btn.cat-arrow {
	background: #2a3446;
	border-color: #3a4759;
	color: #c3cfdd;
}

html.app-theme-dark .cat-icon-btn.cat-arrow:hover {
	background: #344155;
	color: #ffffff;
}

html.app-theme-dark .cat-group + .cat-group,
html.app-theme-dark .currency-row + .currency-row {
	border-top-color: #333f51;
}

html.app-theme-dark .cat-children::before {
	background: #3a4759;
}

html.app-theme-dark .cat-add-sub {
	color: #6fb0e6;
}

html.app-theme-dark .cat-add-sub:hover {
	background: #26384a;
	color: #9cc8ee;
}

html.app-theme-dark .cat-empty,
html.app-theme-dark .currency-empty {
	color: #94a2b3;
}

html.app-theme-dark .currency-symbol {
	background: #2a3446;
	border-color: #3a4759;
	color: #e0e7f0;
}

html.app-theme-dark .currency-icon-btn.is-danger:hover,
html.app-theme-dark .currency-icon-btn.is-danger:focus {
	background: #3a2629;
	color: #f28b8b;
}

html.app-theme-dark .security-card {
	background: #252f3f;
	border-color: #384456;
	box-shadow: none;
}

html.app-theme-dark .security-title {
	color: #eef3f8;
}

html.app-theme-dark .security-subtitle,
html.app-theme-dark .security-hint,
html.app-theme-dark .security-strength-label {
	color: #94a2b3;
}

html.app-theme-dark .security-label {
	color: #d5dee9;
}

html.app-theme-dark .security-control input {
	background: #1f2a39;
	border-color: #3a4759;
	color: #e7edf5;
}

html.app-theme-dark .security-control input:focus {
	background: #243043;
	border-color: #5a7ea6;
}

html.app-theme-dark .security-control input[readonly] {
	background: #2a3446;
	color: #94a2b3;
}

html.app-theme-dark .security-eye {
	color: #94a2b3;
}

html.app-theme-dark .security-eye:hover,
html.app-theme-dark .security-eye:focus {
	background: #2f3a4b;
	color: #ffffff;
}

html.app-theme-dark .security-recover-toggle {
	background: #2a3446;
	border-color: #3a4759;
	color: #d5dee9;
}

html.app-theme-dark .security-recover-toggle:hover,
html.app-theme-dark .security-recover-toggle:focus {
	background: #344155;
	color: #ffffff;
}

html.app-theme-dark .security-recover-body {
	border-top-color: #333f51;
}

html.app-theme-dark .security-recover-message {
	background: #223446;
	border-color: #35506a;
	color: #b5d2ec;
}

html.app-theme-dark .security-recover-message.is-error {
	background: #3a2224;
	border-color: #5e3236;
	color: #f2a6a6;
}

html.app-theme-dark .security-refresh {
	background: #2a3446;
	border-color: #3a4759;
	color: #c3cfdd;
}

html.app-theme-dark .security-refresh:hover {
	background: #344155;
	color: #ffffff;
}

html.app-theme-dark .session-card {
	background: #252f3f;
	border-color: #384456;
	box-shadow: none;
}

html.app-theme-dark .session-card-current {
	background: #243244;
	border-color: #3f5a78;
}

html.app-theme-dark .session-card-icon {
	background: #2f3a4b;
	color: #aeb9c8;
}

html.app-theme-dark .session-card-current .session-card-icon {
	background: #2a3e55;
	color: #7db6e8;
}

html.app-theme-dark .session-card-title {
	color: #e7edf5;
}

html.app-theme-dark .session-badge {
	background: #2f4a64;
	color: #a9d0f0;
}

html.app-theme-dark .session-meta-label {
	color: #94a2b3;
}

html.app-theme-dark .session-meta-value {
	color: #c3cfdd;
}

/* -------------------------------------------------------------------------
   Dashboard widgets
   ------------------------------------------------------------------------- */

html.app-theme-dark #main #wid-newoperation.operation-widget {
	background: #252f3f;
	box-shadow: none;
}

html.app-theme-dark #main #wid-newoperation > header.operation-widget-head {
	background: #252f3f !important;
	color: #eef3f8;
}

html.app-theme-dark #wid-newoperation .operation-widget-switch {
	background: #1f2a39;
	border-color: #3a4759;
}

html.app-theme-dark #wid-newoperation .operation-widget-switch > li > a {
	color: #94a2b3;
}

html.app-theme-dark #wid-newoperation .operation-widget-switch > li.active > a {
	background: #3b4a60 !important;
	color: #ffffff !important;
	box-shadow: none;
}

html.app-theme-dark #wid-newoperation .quick-op {
	background: #2f3a4b;
	border-color: #3a4759;
	color: #d5dee9;
}

html.app-theme-dark #wid-newoperation .quick-op:hover {
	background: #38465a;
	color: #ffffff;
}

html.app-theme-dark #wid-newoperation .amount-combo {
	background: #1f2a39;
	border-color: #3a4759;
}

html.app-theme-dark #wid-newoperation .amount-combo input.amount-combo-sum {
	color: #e7edf5;
}

html.app-theme-dark #wid-newoperation .amount-combo .amount-combo-valute {
	background: #2a3446;
	border-left-color: #3a4759;
}

html.app-theme-dark #wid-newoperation .amount-combo .amount-combo-valute select {
	color: #e7edf5;
}

html.app-theme-dark .accounts-widget {
	background: #252f3f !important;
	box-shadow: none;
}

html.app-theme-dark .accounts-widget-head {
	background: #252f3f !important;
	color: #eef3f8;
}

html.app-theme-dark .accounts-widget-title {
	color: #eef3f8;
}

html.app-theme-dark .accounts-widget-date {
	color: #6fb0e6;
}

html.app-theme-dark .accounts-widget-sort-btn,
html.app-theme-dark .accounts-widget-add {
	background: #2f3a4b;
	border-color: #3a4759;
	color: #d5dee9;
}

html.app-theme-dark .accounts-widget-add {
	background: #3b4a60;
	color: #ffffff;
}

html.app-theme-dark .account-widget-row {
	border-color: #333f51;
}

html.app-theme-dark .account-widget-row:hover {
	background: #2d394a;
}

html.app-theme-dark .account-widget-icon-tile {
	background: #2f3a4b;
	border: 0;
}

html.app-theme-dark .account-widget-name {
	color: #e7edf5;
}

html.app-theme-dark .account-widget-balance,
html.app-theme-dark .account-widget-amount {
	color: #e7edf5;
}

html.app-theme-dark .account-widget-currency,
html.app-theme-dark .account-widget-total-label {
	color: #94a2b3;
}

html.app-theme-dark .account-widget-total {
	border-top-color: #384456;
}

html.app-theme-dark .account-widget-actions button {
	background: #2f3a4b;
	border-color: #3a4759;
	color: #c3cfdd;
}

html.app-theme-dark .account-widget-actions button:hover {
	background: #38465a;
	color: #ffffff;
}

html.app-theme-dark .budget-widget,
html.app-theme-dark #wid-id-budget {
	background: #252f3f !important;
	box-shadow: none;
}

html.app-theme-dark .budget-widget-head {
	background: #252f3f !important;
	color: #eef3f8;
}

html.app-theme-dark .budget-widget-title,
html.app-theme-dark .budget-widget-total-value,
html.app-theme-dark .budget-widget-item-name,
html.app-theme-dark .budget-widget-item-amount,
html.app-theme-dark .budget-widget-item-meta b {
	color: #e7edf5;
}

html.app-theme-dark .budget-widget-total-limit,
html.app-theme-dark .budget-widget-left,
html.app-theme-dark .budget-widget-item-meta,
html.app-theme-dark .budget-perday {
	color: #94a2b3;
}

html.app-theme-dark .budget-widget-pace-chip {
	background: #2f3a4b;
	color: #c3cfdd;
}

html.app-theme-dark .budget-widget-track {
	background: #333f51;
}

html.app-theme-dark .budget-widget-status {
	background: #2a3446;
	border-color: #3a4759;
	color: #c3cfdd;
}

html.app-theme-dark .budget-widget-status.is-warning {
	background: #3a3320;
	border-color: #5a4a24;
	color: #e6c97a;
}

html.app-theme-dark .budget-widget-status.is-over {
	background: #3a2224;
	border-color: #5e3236;
	color: #f2a6a6;
}

html.app-theme-dark .budget-widget-empty {
	color: #94a2b3;
}

html.app-theme-dark .budget-widget-total-label {
	color: #94a2b3;
}

html.app-theme-dark .budget-chart-trigger:hover,
html.app-theme-dark .budget-chart-trigger:focus {
	color: #8fc0ee;
}

html.app-theme-dark .budget-chart-spent {
	color: #eef3f8;
}

html.app-theme-dark .budget-chart-subtitle,
html.app-theme-dark .budget-chart-spent span,
html.app-theme-dark .budget-chart-remaining,
html.app-theme-dark .budget-chart-link {
	color: #94a2b3;
}

html.app-theme-dark .budget-chart-link:hover,
html.app-theme-dark .budget-chart-link:focus {
	color: #8fc0ee;
}

html.app-theme-dark .budget-chart-canvas .budget-chart-plan {
	stroke: #56657a;
}

html.app-theme-dark .budget-chart-canvas .budget-chart-plan-dot {
	fill: #252f3f;
	stroke: #5d6d84;
}

html.app-theme-dark .budget-chart-canvas .budget-chart-plan-label {
	fill: #94a2b3;
}

html.app-theme-dark .budget-chart-daily {
	background: #2f3a4b;
	color: #c3cfdd;
}

html.app-theme-dark .budget-chart-daily b {
	color: #eef3f8;
}

html.app-theme-dark .budget-chart-daily span {
	color: #94a2b3;
}

html.app-theme-dark .budget-widget-item-name.budget-chart-trigger,
html.app-theme-dark .budget-chart-trigger-text {
	text-decoration-color: #56657a;
}

html.app-theme-dark .budget-widget-item-name.budget-chart-trigger:hover,
html.app-theme-dark .budget-widget-item-name.budget-chart-trigger:focus,
html.app-theme-dark .budget-chart-trigger:hover .budget-chart-trigger-text,
html.app-theme-dark .budget-chart-trigger:focus .budget-chart-trigger-text {
	text-decoration-color: #8fc0ee;
}

html.app-theme-dark .budget-page-item.budget-chart-row:hover {
	background: #2b3647;
}

html.app-theme-dark .budget-suggest-link {
	border-bottom-color: rgba(143, 192, 238, .5);
	color: #8fc0ee;
}

html.app-theme-dark .budget-suggest-link:hover,
html.app-theme-dark .budget-suggest-link:focus {
	border-bottom-color: rgba(143, 192, 238, .8);
	color: #b1d6f5;
}

html.app-theme-dark .budget-suggest-text {
	color: #94a2b3;
}

html.app-theme-dark .budget-suggest-text b {
	color: #e7edf5;
}

html.app-theme-dark .budget-suggest-text.is-error {
	color: #f2a6a6;
}

html.app-theme-dark .budget-chart-hover-line {
	stroke: #56657a;
}

html.app-theme-dark .budget-chart-hover-dot-plan {
	stroke: #94a2b3;
}

html.app-theme-dark .budget-chart-tooltip {
	border-color: #3a4759;
	background: #111a29;
}

html.app-theme-dark .recent-widget {
	background: #252f3f !important;
	box-shadow: none;
}

html.app-theme-dark .recent-widget-head {
	background: #252f3f !important;
}

html.app-theme-dark .recent-widget-title,
html.app-theme-dark .recent-operation-name,
html.app-theme-dark .recent-op-sum {
	color: #e7edf5;
}

html.app-theme-dark .recent-op-sub,
html.app-theme-dark .recent-day-label,
html.app-theme-dark .recent-op-nostats {
	color: #94a2b3;
}

html.app-theme-dark .recent-day-row td {
	background: #2b3647 !important;
	color: #aeb9c8;
}

html.app-theme-dark .recent-op-row td {
	border-bottom-color: #333f51 !important;
}

html.app-theme-dark .recent-op-row:hover td {
	background: #2d394a !important;
}

html.app-theme-dark .recent-op-icon-tile {
	background: #2f3a4b;
	border: 0;
}

html.app-theme-dark .recent-widget-search-btn,
html.app-theme-dark .recent-widget-excel {
	background: #2f3a4b;
	border-color: #3a4759;
	color: #c3cfdd;
}

html.app-theme-dark .recent-widget-search input {
	background: #1f2a39 !important;
	border-color: #3a4759 !important;
	color: #e7edf5 !important;
}

html.app-theme-dark .recent-op-sum.is-income,
html.app-theme-dark .recent-day-expense {
	color: #5ed49a;
}

html.app-theme-dark .recent-op-sum.is-secondary {
	color: #94a2b3;
}

html.app-theme-dark .stats-widget {
	background: #252f3f !important;
	box-shadow: none;
}

html.app-theme-dark .stats-widget-head {
	background: #252f3f !important;
}

html.app-theme-dark .stats-widget-title,
html.app-theme-dark .sw-balance-value,
html.app-theme-dark .sw-dyn-month {
	color: #e7edf5;
}

html.app-theme-dark .sw-balance-label,
html.app-theme-dark .sw-dyn-head,
html.app-theme-dark .sw-empty,
html.app-theme-dark .sw-dyn-zero {
	color: #94a2b3;
}

html.app-theme-dark .sw-summary,
html.app-theme-dark .stats-widget-body {
	background: #252f3f;
}

html.app-theme-dark .sw-segmented {
	background: #2c3748;
}

html.app-theme-dark .sw-seg-btn {
	color: #aeb9c8;
}

html.app-theme-dark .sw-seg-btn.is-active {
	background: #3b4a60;
	color: #ffffff;
}

html.app-theme-dark .sw-dyn-list {
	border-color: #333f51;
}

html.app-theme-dark .sw-dyn-row {
	border-color: #333f51;
}

html.app-theme-dark .sw-dyn-income {
	color: #5ed49a;
}

html.app-theme-dark .sw-dyn-expense {
	color: #f27c7c;
}

/* -------------------------------------------------------------------------
   Section pages: operations, budget, statistics, AI
   ------------------------------------------------------------------------- */

html.app-theme-dark .accounts-page,
html.app-theme-dark .budget-page-widget {
	background: #252f3f !important;
	border-color: #384456 !important;
}

html.app-theme-dark .accounts-summary-card,
html.app-theme-dark .account-card {
	background: #2a3446;
	border-color: #3a4759;
}

html.app-theme-dark .accounts-page-toolbar h3,
html.app-theme-dark .account-card-name,
html.app-theme-dark .account-balance-line b {
	color: #e7edf5;
}

html.app-theme-dark .budget-page-widget > header.budget-page-head {
	background: #252f3f !important;
	color: #eef3f8;
}

html.app-theme-dark .budget-page-title {
	color: #eef3f8;
}

html.app-theme-dark .budget-page-action {
	background: #2f3a4b;
	color: #d5dee9;
}

html.app-theme-dark .budget-page-item-sub,
html.app-theme-dark .budget-note {
	color: #94a2b3;
}

html.app-theme-dark .budget-page-item-meta,
html.app-theme-dark .budget-widget-item-meta {
	color: #94a2b3;
}

html.app-theme-dark .budget-page-action-btn {
	background: #2f3a4b;
	color: #c3cfdd;
}

html.app-theme-dark .budget-page-action-btn:hover {
	background: #38465a;
	color: #ffffff;
}

html.app-theme-dark .budget-page-action-btn.is-danger:hover {
	background: #3a2629;
	color: #f28b8b;
}

html.app-theme-dark .ai-page {
	background: #232c3b;
	border-color: #384456;
}

html.app-theme-dark .ai-chat {
	background: #252f3f;
	border-color: #384456;
	box-shadow: none;
}

html.app-theme-dark .ai-messages {
	background: #252f3f;
}

html.app-theme-dark .ai-welcome h4 {
	color: #e7edf5;
}

html.app-theme-dark .ai-welcome p,
html.app-theme-dark .ai-loading-text {
	color: #94a2b3;
}

html.app-theme-dark .ai-welcome-icon,
html.app-theme-dark .ai-msg-avatar {
	background: #2a3e55;
	color: #7db6e8;
}

html.app-theme-dark .ai-msg-assistant .ai-bubble {
	background: #2a3446;
	color: #e7edf5;
}

html.app-theme-dark .ai-msg-user .ai-bubble {
	background: #3b4a60;
	color: #ffffff;
}

html.app-theme-dark .ai-chip {
	background: #2f3a4b;
	border-color: #3a4759;
	color: #c3cfdd;
}

html.app-theme-dark .ai-chip:hover {
	background: #38465a;
	color: #ffffff;
}

html.app-theme-dark .ai-composer {
	background: #252f3f;
	border-top-color: #384456;
}

html.app-theme-dark .ai-composer textarea {
	background: #1f2a39;
	border-color: #3a4759;
	color: #e7edf5;
}

html.app-theme-dark .ai-sql pre {
	background: #1f2a39;
	color: #c3cfdd;
}

html.app-theme-dark .ai-table-wrap table th {
	background: #2b3647;
	color: #c3cfdd;
	border-color: #384456;
}

html.app-theme-dark .ai-table-wrap table td {
	border-color: #333f51;
}

html.app-theme-dark .stats-sidebar,
html.app-theme-dark .stats-card,
html.app-theme-dark .stats-filters,
html.app-theme-dark .stats-page {
	background: #252f3f !important;
	border-color: #384456 !important;
}

html.app-theme-dark .stats-filter-title,
html.app-theme-dark .stats-filter-label,
html.app-theme-dark .stats-result-count {
	color: #d5dee9;
}

html.app-theme-dark .stats-filter-muted {
	color: #94a2b3;
}

/* -------------------------------------------------------------------------
   Mobile tweaks
   ------------------------------------------------------------------------- */

@media (max-width: 767px) {
	html.app-theme-dark .app-content-inner {
		color: #e7edf5;
	}
}

/* -------------------------------------------------------------------------
   Stronger, widget-scoped overrides
   The dashboard widgets load their own stylesheets after the shell, so these
   rules repeat the ids to win over the per-widget defaults.
   ------------------------------------------------------------------------- */

html.app-theme-dark #main #wid-newoperation.operation-widget {
	background: #252f3f !important;
	box-shadow: none !important;
}

html.app-theme-dark #main #wid-newoperation > header.operation-widget-head {
	background: #252f3f !important;
	color: #eef3f8 !important;
}

html.app-theme-dark #main #wid-newoperation .operation-widget-switch {
	background: #1f2a39 !important;
	border-color: #3a4759 !important;
}

html.app-theme-dark #main #wid-newoperation .operation-widget-switch > li > a {
	color: #94a2b3 !important;
}

html.app-theme-dark #main #wid-newoperation .operation-widget-switch > li.active > a,
html.app-theme-dark #main #wid-newoperation .operation-widget-switch > li.active > a:hover,
html.app-theme-dark #main #wid-newoperation .operation-widget-switch > li.active > a:focus {
	background: #3b4a60 !important;
	border-color: #4a5a73 !important;
	color: #ffffff !important;
	box-shadow: none !important;
}

html.app-theme-dark #main #wid-newoperation .operation-widget-switch > li.active > a[href="#hr1"] {
	color: #7fe0a8 !important;
}

html.app-theme-dark #main #wid-newoperation .operation-widget-switch > li.active > a[href="#hr2"] {
	color: #ff9b9b !important;
}

html.app-theme-dark #main #wid-newoperation .operation-widget-date {
	background: #2f3a4b !important;
	color: #c3cfdd !important;
}

html.app-theme-dark #main #wid-newoperation .quick-op {
	background: #2f3a4b !important;
	border-color: #3a4759 !important;
	color: #d5dee9 !important;
}

html.app-theme-dark #main #wid-newoperation .amount-combo {
	background: #1f2a39 !important;
	border-color: #3a4759 !important;
}

html.app-theme-dark #main #wid-newoperation .amount-combo .amount-combo-valute {
	background: #2a3446 !important;
	border-left-color: #3a4759 !important;
}

html.app-theme-dark #main #wid-newoperation .amount-combo .amount-combo-valute select {
	color: #e7edf5 !important;
}

html.app-theme-dark #main #wid-newoperation .operation-submit,
html.app-theme-dark #main #wid-newoperation .btn-primary {
	background: #3b4a60 !important;
	border-color: #3b4a60 !important;
	color: #ffffff !important;
}

html.app-theme-dark #main #wid-id-8.accounts-widget,
html.app-theme-dark #main #wid-id-8.accounts-widget > div,
html.app-theme-dark #main #wid-id-8 > header.accounts-widget-head {
	background: #252f3f !important;
	color: #eef3f8 !important;
}

html.app-theme-dark #main #wid-id-8 .accounts-widget-title {
	color: #eef3f8 !important;
}

html.app-theme-dark #main #wid-id-8 .accounts-widget-date {
	color: #6fb0e6 !important;
}

html.app-theme-dark #main #wid-id-8 .account-widget-name,
html.app-theme-dark #main #wid-id-8 .account-widget-amount,
html.app-theme-dark #main #wid-id-8 .account-widget-balance {
	color: #e7edf5 !important;
}

html.app-theme-dark #main #wid-id-8 .account-widget-currency,
html.app-theme-dark #main #wid-id-8 .account-widget-total-label {
	color: #94a2b3 !important;
}

html.app-theme-dark #main #wid-id-8 .account-widget-total {
	background: #252f3f !important;
	border-top-color: #384456 !important;
}

html.app-theme-dark #main #wid-id-8 .account-widget-total .account-widget-balance,
html.app-theme-dark #main #wid-id-8 .account-widget-total .account-widget-amount {
	color: #e7edf5 !important;
}

html.app-theme-dark #main #wid-id-8 .account-widget-icon-tile {
	background: #2f3a4b !important;
	border: 0 !important;
}

html.app-theme-dark #main #wid-id-8 .account-widget-row:hover {
	background: #2d394a !important;
}

html.app-theme-dark #main #wid-id-8 .accounts-widget-sort-btn {
	background: #2f3a4b !important;
	border-color: #3a4759 !important;
	color: #c3cfdd !important;
}

html.app-theme-dark #main #wid-id-8 .accounts-widget-add {
	background: #3b4a60 !important;
	color: #ffffff !important;
}

html.app-theme-dark #main #wid-id-budget.budget-widget,
html.app-theme-dark #main #wid-id-budget.budget-widget > div,
html.app-theme-dark #main #wid-id-budget > header.budget-widget-head {
	background: #252f3f !important;
	color: #eef3f8 !important;
}

html.app-theme-dark #main #wid-id-budget .budget-widget-title,
html.app-theme-dark #main #wid-id-budget .budget-widget-total-value,
html.app-theme-dark #main #wid-id-budget .budget-widget-total-value b,
html.app-theme-dark #main #wid-id-budget .budget-widget-total-limit {
	color: #e7edf5 !important;
}

html.app-theme-dark #main #wid-id-budget .budget-widget-total-label,
html.app-theme-dark #main #wid-id-budget .budget-widget-left,
html.app-theme-dark #main #wid-id-budget .budget-widget-meta,
html.app-theme-dark #main #wid-id-budget .budget-perday {
	color: #94a2b3 !important;
}

html.app-theme-dark #main #wid-id-budget .budget-widget-month {
	background: #2f3a4b !important;
	color: #c3cfdd !important;
}

html.app-theme-dark #main #wid-id-budget .budget-widget-edit {
	background: #2f3a4b !important;
	color: #c3cfdd !important;
}

html.app-theme-dark #main #wid-id-budget .budget-widget-edit:hover,
html.app-theme-dark #main #wid-id-budget .budget-widget-edit:focus {
	background: #3a4759 !important;
	color: #e7edf5 !important;
}

html.app-theme-dark #main #wid-id-budget .budget-widget-item-name,
html.app-theme-dark #main #wid-id-budget .budget-widget-item-amount {
	color: #e7edf5 !important;
}

html.app-theme-dark #main #wid-id-budget .budget-widget-track {
	background: #333f51 !important;
}

html.app-theme-dark #main #wid-id-1.recent-widget,
html.app-theme-dark #main #wid-id-1.recent-widget > div,
html.app-theme-dark #main #wid-id-1 > header.recent-widget-head {
	background: #252f3f !important;
}

html.app-theme-dark #main #wid-id-1 .recent-widget-title {
	color: #eef3f8 !important;
}

html.app-theme-dark #main #wid-id-1 .recent-operation-name {
	color: #e7edf5 !important;
}

html.app-theme-dark #main #wid-id-1 .recent-op-sum {
	color: #e7edf5 !important;
}

html.app-theme-dark #main #wid-id-1 .recent-op-sum.is-income {
	color: #5ed49a !important;
}

html.app-theme-dark #main #wid-id-1 .recent-op-sub,
html.app-theme-dark #main #wid-id-1 .recent-day-label,
html.app-theme-dark #main #wid-id-1 .recent-op-nostats {
	color: #94a2b3 !important;
}

html.app-theme-dark #main #wid-id-1 .recent-day-row td {
	background: #2b3647 !important;
	color: #aeb9c8 !important;
}

html.app-theme-dark #main #wid-id-1 .recent-op-row td {
	border-bottom-color: #333f51 !important;
}

html.app-theme-dark #main #wid-id-1 .recent-op-row:hover td {
	background: #2d394a !important;
}

html.app-theme-dark #main #wid-id-1 .recent-op-icon-tile {
	background: #2f3a4b !important;
	border: 0 !important;
}

html.app-theme-dark #main #wid-id-1 .recent-widget-search-btn,
html.app-theme-dark #main #wid-id-1 .recent-widget-excel {
	background: #2f3a4b !important;
	border-color: #3a4759 !important;
	color: #c3cfdd !important;
}

html.app-theme-dark #main #wid-id-1 .recent-widget-search input {
	background: #1f2a39 !important;
	border-color: #3a4759 !important;
	color: #e7edf5 !important;
}

html.app-theme-dark #main #wid-id-3,
html.app-theme-dark #main #wid-id-3 > div,
html.app-theme-dark #main #wid-id-3 > header.stats-widget-head {
	background: #252f3f !important;
	box-shadow: none !important;
}

html.app-theme-dark #main #wid-id-3 .stats-widget-title {
	color: #eef3f8 !important;
}

html.app-theme-dark #main #wid-id-3 .stats-widget-chip {
	background: #2f3a4b !important;
	color: #c3cfdd !important;
}

html.app-theme-dark #main #wid-id-3 .stats-widget-switch {
	background: #2c3748 !important;
}

html.app-theme-dark #main #wid-id-3 .stats-widget-switch-btn {
	color: #94a2b3 !important;
}

html.app-theme-dark #main #wid-id-3 .stats-widget-switch-btn.is-active {
	background: #3b4a60 !important;
	color: #ffffff !important;
	box-shadow: none !important;
}

html.app-theme-dark #main #wid-id-3 .sw-balance-value,
html.app-theme-dark #main #wid-id-3 .sw-dyn-month {
	color: #e7edf5 !important;
}

html.app-theme-dark #main #wid-id-3 .sw-balance-label,
html.app-theme-dark #main #wid-id-3 .sw-dyn-head,
html.app-theme-dark #main #wid-id-3 .sw-empty,
html.app-theme-dark #main #wid-id-3 .sw-dyn-zero {
	color: #94a2b3 !important;
}

html.app-theme-dark #main #wid-id-3 .sw-segmented {
	background: #2c3748 !important;
}

html.app-theme-dark #main #wid-id-3 .sw-seg-btn {
	color: #aeb9c8 !important;
}

html.app-theme-dark #main #wid-id-3 .sw-seg-btn.is-active {
	background: #3b4a60 !important;
	color: #ffffff !important;
}

html.app-theme-dark #main #wid-id-3 .sw-dyn-list,
html.app-theme-dark #main #wid-id-3 .sw-dyn-row {
	border-color: #333f51 !important;
}

html.app-theme-dark .appearance-heading {
	color: #eef3f8;
}

html.app-theme-dark .wp-tile {
	background: #2f3a4b;
}

html.app-theme-dark .wp-tile:hover {
	background: #38465a;
	border-color: #4a5a73;
}

html.app-theme-dark .wp-tile.is-selected {
	background: #3b4a60;
	border-color: #6fb0e6;
	box-shadow: 0 0 0 3px rgba(111, 176, 230, .18);
}

html.app-theme-dark .wp-label {
	color: #e7edf5;
}

/* Tom Select pickers on the statistics page */
html.app-theme-dark #checkout-form .ts-control {
	background: #1f2a39;
	border-color: #3a4759;
	color: #e7edf5;
}

html.app-theme-dark #checkout-form .ts-wrapper.focus .ts-control {
	border-color: #5a7ea6;
	background: #243043;
	box-shadow: 0 0 0 3px rgba(111, 176, 230, .14);
}

html.app-theme-dark #checkout-form .ts-control > input,
html.app-theme-dark #checkout-form .ts-control .items-placeholder {
	color: #e7edf5;
}

html.app-theme-dark #checkout-form .ts-control > input::placeholder,
html.app-theme-dark #checkout-form .ts-control .items-placeholder::placeholder {
	color: #7f8c9d;
}

html.app-theme-dark #checkout-form .ts-control .item {
	background: #2f4a64;
	color: #cfe4f7;
}

html.app-theme-dark #checkout-form .ts-control .item .remove {
	color: #9cc8ee;
}

html.app-theme-dark .stats-ts-dropdown {
	background: #252f3f;
	border-color: #384456;
}

html.app-theme-dark .stats-ts-dropdown .dropdown-input-wrap {
	border-bottom-color: #333f51;
}

html.app-theme-dark .stats-ts-dropdown .dropdown-input {
	background: #1f2a39;
	border-color: #3a4759;
	color: #e7edf5;
}

html.app-theme-dark .stats-ts-dropdown .dropdown-input:focus {
	border-color: #5a7ea6;
	background: #243043;
}

html.app-theme-dark .stats-ts-dropdown .option {
	color: #d5dee9;
}

html.app-theme-dark .stats-ts-dropdown .option.active {
	background: #2f4a64;
	color: #cfe4f7;
}

html.app-theme-dark .stats-ts-dropdown .option.selected {
	background: #2a3e55;
	color: #b5d2ec;
}

html.app-theme-dark .stats-ts-dropdown .optgroup-header {
	background: #2b3647;
	color: #94a2b3;
}

html.app-theme-dark .stats-ts-dropdown .no-results {
	color: #94a2b3;
}

/* AI charts on the statistics page */
html.app-theme-dark .ai-charts-card,
html.app-theme-dark .ai-chart-result {
	background: #252f3f;
}

html.app-theme-dark .ai-charts-badge {
	background: #2f3c4d;
	color: #cfe4f7;
}

html.app-theme-dark .ai-charts-title,
html.app-theme-dark .ai-chart-result-title {
	color: #e7edf5;
}

html.app-theme-dark .ai-charts-empty,
html.app-theme-dark .ai-chart-modal-hint {
	color: #94a2b3;
}

html.app-theme-dark .ai-charts-add {
	background: #2f4a64;
	color: #e7edf5;
}

html.app-theme-dark .ai-charts-add:hover,
html.app-theme-dark .ai-charts-add:focus {
	background: #3a5b7b;
}

html.app-theme-dark .ai-charts-item {
	border-color: #3a4759;
	background: #1f2a39;
}

html.app-theme-dark .ai-charts-item:hover {
	border-color: #4a5a6f;
	background: #243043;
}

html.app-theme-dark .ai-charts-item.is-active {
	border-color: #5a7ea6;
	background: #2f4a64;
}

html.app-theme-dark .ai-charts-open {
	color: #d5dee9;
}

html.app-theme-dark .ai-charts-open:hover,
html.app-theme-dark .ai-charts-open:focus {
	color: #9cc8ee;
}

html.app-theme-dark .ai-charts-item-icon {
	background: #2a3e55;
	color: #9cc8ee;
}

html.app-theme-dark .ai-charts-item.is-table .ai-charts-item-icon {
	background: #224434;
	color: #7fd6a4;
}

html.app-theme-dark .ai-charts-remove {
	color: #7f8c9d;
}

html.app-theme-dark .ai-charts-remove:hover,
html.app-theme-dark .ai-charts-remove:focus {
	background: #4d2a31;
	color: #ff9d9d;
}

html.app-theme-dark .ai-chart-prompt {
	border-color: #3a4759;
	background: #1f2a39;
	color: #e7edf5;
}

html.app-theme-dark .ai-chart-prompt:focus {
	border-color: #5a7ea6;
	background: #243043;
}

html.app-theme-dark .ai-chart-modal-error {
	background: #4d2a31;
	color: #ffb4b4;
}

html.app-theme-dark .ai-chart-create-btn {
	background: #3276b1;
}

html.app-theme-dark .ai-chart-create-btn:hover,
html.app-theme-dark .ai-chart-create-btn:focus {
	background: #3a86c8;
}

html.app-theme-dark .ai-chart-result-head {
	border-bottom-color: #333f51;
}

html.app-theme-dark .ai-chart-result-kicker {
	color: #8c9aab;
}

html.app-theme-dark .ai-chart-back {
	background: #2f3c4d;
	color: #c8d3df;
}

html.app-theme-dark .ai-chart-back:hover,
html.app-theme-dark .ai-chart-back:focus {
	background: #3a4a5e;
	color: #e7edf5;
}

html.app-theme-dark .ai-chart-empty {
	background: #1f2a39;
	color: #8c9aab;
}

html.app-theme-dark .ai-chart-error {
	background: #4d2a31;
	color: #ffb4b4;
}

html.app-theme-dark .ai-chart-error-actions button {
	background: #2f3c4d;
	color: #ffb4b4;
}

html.app-theme-dark .ai-chart-loading-title {
	color: #d5dee9;
}

html.app-theme-dark .ai-chart-loading-sub {
	color: #8c9aab;
}

html.app-theme-dark .ai-chart-skeleton {
	background: linear-gradient(90deg, #263242 25%, #2c3a4c 37%, #263242 63%);
	background-size: 400% 100%;
}

html.app-theme-dark .ai-chart-result-body table thead th,
html.app-theme-dark .ai-chart-table thead th {
	border-bottom-color: #333f51;
	background: #1f2a39;
	color: #94a2b3;
}

html.app-theme-dark .ai-chart-result-body table tbody td,
html.app-theme-dark .ai-chart-table tbody td {
	border-bottom-color: #333f51;
	color: #d5dee9;
}

html.app-theme-dark .ai-chart-result-body .ai-chart-note {
	color: #8c9aab;
}

/* Fullscreen statistics control */
html.app-theme-dark .stats-fs-btn {
	background: #2f3c4d;
	color: #c8d3df;
}

html.app-theme-dark .stats-fs-btn:hover,
html.app-theme-dark .stats-fs-btn:focus {
	background: #3a4a5e;
	color: #e7edf5;
}

html.app-theme-dark #statsarea.stats-fullscreen {
	background: #1b2433;
}

/* AI chart script viewer */
html.app-theme-dark .ai-charts-code {
	color: #7f8c9d;
}

html.app-theme-dark .ai-charts-code:hover,
html.app-theme-dark .ai-charts-code:focus {
	background: #2a3e55;
	color: #9cc8ee;
}

html.app-theme-dark .ai-chart-code-badge {
	background: #2f4a64;
	color: #cfe4f7;
}

html.app-theme-dark .ai-chart-code-title {
	color: #c8d3df;
}

html.app-theme-dark .ai-chart-code-copy {
	background: #3276b1;
}

html.app-theme-dark .ai-chart-code-copy:hover,
html.app-theme-dark .ai-chart-code-copy:focus {
	background: #3a86c8;
}

html.app-theme-dark .ai-chart-code {
	border-color: #3a4759;
	background: #1f2a39;
	color: #d5dee9;
}

/* AI charts collapse toggle */
html.app-theme-dark .ai-charts-toggle {
	color: #94a2b3;
}

html.app-theme-dark .ai-charts-toggle:hover,
html.app-theme-dark .ai-charts-toggle:focus {
	background: #2f3c4d;
	color: #e7edf5;
}

/* Tom Select filters on the operations page */
html.app-theme-dark .ops-ts-dropdown {
	background: #252f3f;
	border-color: #384456;
}

html.app-theme-dark .ops-ts-dropdown .dropdown-input-wrap {
	border-bottom-color: #333f51;
}

html.app-theme-dark .ops-ts-dropdown .dropdown-input {
	background: #1f2a39;
	border-color: #3a4759;
	color: #e7edf5;
}

html.app-theme-dark .ops-ts-dropdown .dropdown-input:focus {
	border-color: #5a7ea6;
	background: #243043;
}

html.app-theme-dark .ops-ts-dropdown .option {
	color: #d5dee9;
}

html.app-theme-dark .ops-ts-dropdown .option.active {
	background: #2f4a64;
	color: #cfe4f7;
}

html.app-theme-dark .ops-ts-dropdown .option.selected {
	background: #2a3e55;
	color: #b5d2ec;
}

html.app-theme-dark .ops-ts-dropdown .optgroup-header {
	background: #2b3647;
	color: #94a2b3;
}

html.app-theme-dark .ops-ts-dropdown .no-results {
	color: #94a2b3;
}

/* Dashboard account total conversion */
html.app-theme-dark .account-widget-total:hover,
html.app-theme-dark .account-widget-total:focus-visible {
	background: #2a3a4d;
}

html.app-theme-dark .account-widget-total.is-converted {
	background: #22364a;
}

html.app-theme-dark .account-widget-total.is-converted:hover,
html.app-theme-dark .account-widget-total.is-converted:focus-visible {
	background: #263d54;
}

html.app-theme-dark .account-widget-total-rate {
	color: #7f8c9d;
}

html.app-theme-dark .account-widget-total .account-widget-balance.is-unconverted {
	color: #94a2b3;
}

/* Dashboard budget notice */
html.app-theme-dark .budget-widget-notice {
	border-color: #3a5875;
	background: #21364a;
	color: #cfe4f7;
}

html.app-theme-dark .budget-widget-notice-text a {
	color: #9cc8ee;
}

html.app-theme-dark .budget-widget-notice-close {
	color: #9cc8ee;
}

html.app-theme-dark .budget-widget-notice-close:hover,
html.app-theme-dark .budget-widget-notice-close:focus {
	background: #2f4a64;
	color: #e7edf5;
}

/* -------------------------------------------------------------------------
   Statistics widget: category list and donut centre
   ------------------------------------------------------------------------- */

html.app-theme-dark .sw-center-value,
html.app-theme-dark .sw-cat-name,
html.app-theme-dark .sw-cat-amount,
html.app-theme-dark .sw-total b {
	color: #e7edf5 !important;
}

html.app-theme-dark .sw-center-name,
html.app-theme-dark .sw-section-label,
html.app-theme-dark .sw-cat-pct,
html.app-theme-dark .sw-total,
html.app-theme-dark .sw-sub-row {
	color: #94a2b3 !important;
}

html.app-theme-dark .sw-center-pct {
	color: #7f8c9d !important;
}

html.app-theme-dark .sw-expand-all {
	color: #aeb9c8 !important;
}

html.app-theme-dark .sw-expand-all:hover,
html.app-theme-dark .sw-expand-all:focus {
	color: #e7edf5 !important;
}

html.app-theme-dark .sw-cat-head:hover .sw-cat-name {
	color: #8fc0ee !important;
}

html.app-theme-dark .sw-cat {
	border-color: #333f51 !important;
}

html.app-theme-dark .sw-sub-list {
	border-left-color: #333f51 !important;
}

html.app-theme-dark .sw-sub-row b {
	color: #c3cfdd !important;
}

html.app-theme-dark .sw-total {
	border-top-color: #333f51 !important;
}

/* -------------------------------------------------------------------------
   New-operation widget: card body and form controls
   ------------------------------------------------------------------------- */

html.app-theme-dark #main #wid-newoperation.operation-widget > div,
html.app-theme-dark #main #wid-newoperation .tab-content,
html.app-theme-dark #main #wid-newoperation .smart-form,
html.app-theme-dark #main #wid-newoperation .smart-form fieldset {
	background: #252f3f !important;
}

html.app-theme-dark #main #wid-newoperation .smart-form .label {
	color: #94a2b3 !important;
}

html.app-theme-dark #main #wid-newoperation .smart-form .input input,
html.app-theme-dark #main #wid-newoperation .smart-form .select select,
html.app-theme-dark #main #wid-newoperation .smart-form .textarea textarea {
	background: #1f2a39 !important;
	border-color: #3a4759 !important;
	color: #e7edf5 !important;
}

html.app-theme-dark #main #wid-newoperation .smart-form .input input:focus,
html.app-theme-dark #main #wid-newoperation .smart-form .select select:focus,
html.app-theme-dark #main #wid-newoperation .smart-form .textarea textarea:focus {
	background: #243244 !important;
	border-color: #5b7fa6 !important;
}

html.app-theme-dark #main #wid-newoperation .smart-form .input input::placeholder,
html.app-theme-dark #main #wid-newoperation .smart-form .textarea textarea::placeholder {
	color: #7f8c9d !important;
	opacity: 1;
}

html.app-theme-dark #main #wid-newoperation #operation-date,
html.app-theme-dark #main #wid-newoperation #operation-date:visited,
html.app-theme-dark #main #wid-newoperation #operation-date:hover,
html.app-theme-dark #main #wid-newoperation #operation-date:focus,
html.app-theme-dark #main #wid-newoperation #operation-date.editable-click {
	color: #e7edf5 !important;
}

html.app-theme-dark #main #wid-newoperation .operation-widget-date svg {
	color: #9cc8ee !important;
}

/* Chosen selects are used by the new-operation widget and operation forms. */
html.app-theme-dark .app-content .chosen-container-single .chosen-single,
html.app-theme-dark .modal-content .chosen-container-single .chosen-single {
	background: #1f2a39 !important;
	background-image: none !important;
	border-color: #3a4759 !important;
	color: #e7edf5 !important;
	box-shadow: none !important;
}

html.app-theme-dark .app-content .chosen-container-single .chosen-default,
html.app-theme-dark .modal-content .chosen-container-single .chosen-default {
	color: #7f8c9d !important;
}

html.app-theme-dark .app-content .chosen-container-single .chosen-single span,
html.app-theme-dark .modal-content .chosen-container-single .chosen-single span {
	color: inherit !important;
}

html.app-theme-dark .app-content .chosen-container-single .chosen-single div b,
html.app-theme-dark .modal-content .chosen-container-single .chosen-single div b {
	filter: invert(1) brightness(1.45);
}

html.app-theme-dark .app-content .chosen-container-active .chosen-single,
html.app-theme-dark .modal-content .chosen-container-active .chosen-single,
html.app-theme-dark .app-content .chosen-container-active.chosen-with-drop .chosen-single,
html.app-theme-dark .modal-content .chosen-container-active.chosen-with-drop .chosen-single {
	border-color: #5b7fa6 !important;
	background: #243244 !important;
	box-shadow: 0 0 0 3px rgba(91, 127, 166, .18) !important;
}

html.app-theme-dark .app-content .chosen-container .chosen-drop,
html.app-theme-dark .modal-content .chosen-container .chosen-drop {
	border-color: #3a4759 !important;
	background: #252f3f !important;
	box-shadow: 0 14px 34px rgba(0, 0, 0, .34) !important;
}

html.app-theme-dark .app-content .chosen-container .chosen-results,
html.app-theme-dark .modal-content .chosen-container .chosen-results {
	color: #c3cfdd !important;
}

html.app-theme-dark .app-content .chosen-container .chosen-results li,
html.app-theme-dark .modal-content .chosen-container .chosen-results li {
	color: #c3cfdd !important;
}

html.app-theme-dark .app-content .chosen-container .chosen-results li.highlighted,
html.app-theme-dark .modal-content .chosen-container .chosen-results li.highlighted {
	background: #3b4a60 !important;
	color: #ffffff !important;
}

html.app-theme-dark .app-content .chosen-container .chosen-results li.no-results,
html.app-theme-dark .modal-content .chosen-container .chosen-results li.no-results {
	background: #2b3647 !important;
	color: #94a2b3 !important;
}

html.app-theme-dark .app-content .chosen-container .chosen-search input,
html.app-theme-dark .modal-content .chosen-container .chosen-search input {
	border-color: #3a4759 !important;
	background: #1f2a39 !important;
	color: #e7edf5 !important;
}

/* -------------------------------------------------------------------------
   Dark skeletons (page sections, modals, budget chart)
   ------------------------------------------------------------------------- */

html.app-theme-dark .msk {
	background: linear-gradient(90deg, #2a3546 25%, #3a4759 37%, #2a3546 63%) !important;
}

html.app-theme-dark .ps-card {
	background: #252f3f !important;
	box-shadow: none !important;
}

/* Native selects in the operation widget need an explicit dark rendering. */
html.app-theme-dark #main #wid-newoperation .smart-form .select select {
	-webkit-appearance: none !important;
	appearance: none !important;
	padding-right: 34px !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%239cc8ee' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: right 12px center !important;
	background-size: 12px 12px !important;
}

html.app-theme-dark #main #wid-newoperation .smart-form .select select option {
	background: #1f2a39 !important;
	color: #e7edf5 !important;
}

html.app-theme-dark #main #wid-newoperation .smart-form footer {
	background: #252f3f !important;
	border-color: #333f51 !important;
}

/* Native select arrow (SmartAdmin's white <i>) in the operation widget. */
html.app-theme-dark #main #wid-newoperation .smart-form .select i {
	display: none !important;
}

/* Shared month pager on the statistics and budget widgets/pages. */
html.app-theme-dark .monthnav {
	background: #1f2a39 !important;
}

html.app-theme-dark .monthnav-btn {
	color: #94a2b3 !important;
}

html.app-theme-dark .monthnav-btn:hover:not(:disabled),
html.app-theme-dark .monthnav-btn:focus:not(:disabled) {
	background: #2f3a4b !important;
	color: #e7edf5 !important;
}

html.app-theme-dark .monthnav-btn:disabled {
	color: #7f8c9d !important;
}

html.app-theme-dark .monthnav-select {
	color: #e7edf5 !important;
}

html.app-theme-dark .monthnav-select:focus {
	box-shadow: inset 0 0 0 2px rgba(143, 192, 238, .28) !important;
}

html.app-theme-dark .monthnav-select option {
	background: #1f2a39 !important;
	color: #e7edf5 !important;
}

html.app-theme-dark .monthnav-caret {
	color: #94a2b3 !important;
}

/* «Показать ещё операции» in the recent operations widget. */
html.app-theme-dark #wid-id-1 .recent-load-more-link {
	background: #2f3a4b !important;
	border-color: #3a4759 !important;
	color: #c3cfdd !important;
}

html.app-theme-dark #wid-id-1 .recent-load-more-link:hover,
html.app-theme-dark #wid-id-1 .recent-load-more-link:focus {
	background: #38465a !important;
	border-color: #4a5a73 !important;
	color: #e7edf5 !important;
}

/* Coloured active operation type in the dark theme. */
html.app-theme-dark #main #wid-newoperation .operation-widget-switch > li.active > a[href="#hr1"],
html.app-theme-dark #main #wid-newoperation .operation-widget-switch > li.active > a[href="#hr1"]:hover,
html.app-theme-dark #main #wid-newoperation .operation-widget-switch > li.active > a[href="#hr1"]:focus {
	border-color: #1e7a3d !important;
	background: #1e7a3d !important;
	color: #ffffff !important;
	box-shadow: 0 2px 6px rgba(0, 0, 0, .28) !important;
}

html.app-theme-dark #main #wid-newoperation .operation-widget-switch > li.active > a[href="#hr2"],
html.app-theme-dark #main #wid-newoperation .operation-widget-switch > li.active > a[href="#hr2"]:hover,
html.app-theme-dark #main #wid-newoperation .operation-widget-switch > li.active > a[href="#hr2"]:focus {
	border-color: #c0392b !important;
	background: #c0392b !important;
	color: #ffffff !important;
	box-shadow: 0 2px 6px rgba(0, 0, 0, .28) !important;
}

html.app-theme-dark #main #wid-newoperation .operation-widget-switch > li.active > a[href="#hr3"],
html.app-theme-dark #main #wid-newoperation .operation-widget-switch > li.active > a[href="#hr3"]:hover,
html.app-theme-dark #main #wid-newoperation .operation-widget-switch > li.active > a[href="#hr3"]:focus {
	border-color: #2f6fb0 !important;
	background: #2f6fb0 !important;
	color: #ffffff !important;
	box-shadow: 0 2px 6px rgba(0, 0, 0, .28) !important;
}

/* Solid transaction action colours for the dark theme. */
html.app-theme-dark #main #wid-newoperation .btn-transaction-submit--income {
	background-color: #4ade80 !important;
	background-image: none !important;
	color: #052e16 !important;
	box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .16), 0 2px 5px rgba(0, 0, 0, .2) !important;
}

html.app-theme-dark #main #wid-newoperation .btn-transaction-submit--income:hover,
html.app-theme-dark #main #wid-newoperation .btn-transaction-submit--income:focus {
	background-color: #22c55e !important;
	color: #052e16 !important;
}

html.app-theme-dark #main #wid-newoperation .btn-transaction-submit--income:active {
	background-color: #16a34a !important;
	box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .16) !important;
}

html.app-theme-dark #main #wid-newoperation .btn-transaction-submit--expense {
	background-color: #f87171 !important;
	background-image: none !important;
	color: #450a0a !important;
	box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .16), 0 2px 5px rgba(0, 0, 0, .2) !important;
}

html.app-theme-dark #main #wid-newoperation .btn-transaction-submit--expense:hover,
html.app-theme-dark #main #wid-newoperation .btn-transaction-submit--expense:focus {
	background-color: #ef4444 !important;
	color: #450a0a !important;
}

html.app-theme-dark #main #wid-newoperation .btn-transaction-submit--expense:active {
	background-color: #dc2626 !important;
	box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .16) !important;
}

html.app-theme-dark #main #wid-newoperation .btn-transaction-submit--transfer {
	background-color: #60a5fa !important;
	background-image: none !important;
	color: #0b1b36 !important;
	box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .16), 0 2px 5px rgba(0, 0, 0, .2) !important;
}

html.app-theme-dark #main #wid-newoperation .btn-transaction-submit--transfer:hover,
html.app-theme-dark #main #wid-newoperation .btn-transaction-submit--transfer:focus {
	background-color: #3b82f6 !important;
	color: #0b1b36 !important;
}

html.app-theme-dark #main #wid-newoperation .btn-transaction-submit--transfer:active {
	background-color: #2563eb !important;
	box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .16) !important;
}

html.app-theme-dark #main #wid-newoperation .btn-transaction-submit--income:disabled,
html.app-theme-dark #main #wid-newoperation .btn-transaction-submit--expense:disabled,
html.app-theme-dark #main #wid-newoperation .btn-transaction-submit--transfer:disabled {
	background-color: #475569 !important;
	color: #cbd5e1 !important;
	box-shadow: none !important;
}

/* Coloured active expense/income tab in the statistics widget. */
html.app-theme-dark .sw-seg-btn.is-active[data-type="-1"],
html.app-theme-dark #main #wid-id-3 .sw-seg-btn.is-active[data-type="-1"],
html.app-theme-dark .sw-seg-btn.is-active[data-type="-1"]:hover,
html.app-theme-dark .sw-seg-btn.is-active[data-type="-1"]:focus {
	background: #c0392b !important;
	color: #ffffff !important;
	box-shadow: 0 2px 6px rgba(0, 0, 0, .28) !important;
}

html.app-theme-dark .sw-seg-btn.is-active[data-type="1"],
html.app-theme-dark #main #wid-id-3 .sw-seg-btn.is-active[data-type="1"],
html.app-theme-dark .sw-seg-btn.is-active[data-type="1"]:hover,
html.app-theme-dark .sw-seg-btn.is-active[data-type="1"]:focus {
	background: #1e7a3d !important;
	color: #ffffff !important;
	box-shadow: 0 2px 6px rgba(0, 0, 0, .28) !important;
}

/* Clickable widget titles keep a muted dotted underline in the dark theme. */
html.app-theme-dark #main #wid-id-1 .recent-widget-title,
html.app-theme-dark #main #wid-id-budget .budget-widget-title,
html.app-theme-dark #main #wid-id-3 .stats-widget-title {
	text-decoration-color: #56657a;
}

html.app-theme-dark #main #wid-id-1 .recent-widget-title:hover,
html.app-theme-dark #main #wid-id-1 .recent-widget-title:focus,
html.app-theme-dark #main #wid-id-budget .budget-widget-title:hover,
html.app-theme-dark #main #wid-id-budget .budget-widget-title:focus,
html.app-theme-dark #main #wid-id-3 .stats-widget-title:hover,
html.app-theme-dark #main #wid-id-3 .stats-widget-title:focus {
	text-decoration-color: #8fc0ee;
}

/* Operations mini-statistics. */
html.app-theme-dark .ops-mini-stats {
	border-color: #3a4759;
	background: #252f3f;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .28);
}

html.app-theme-dark .ops-mini-stat > span,
html.app-theme-dark .ops-mini-cats-head,
html.app-theme-dark .ops-mini-cat-pct {
	color: #94a2b3;
}

html.app-theme-dark .ops-mini-stat > b,
html.app-theme-dark .ops-mini-cat-sum {
	color: #e7edf5;
}

html.app-theme-dark .ops-mini-stat > b.is-inc {
	color: #7fe0a8;
}

html.app-theme-dark .ops-mini-stat > b.is-exp {
	color: #ff9b9b;
}

html.app-theme-dark .ops-mini-bar {
	background: #334052;
}

html.app-theme-dark .ops-mini-cat {
	border-color: #333f51;
	color: #c3cfdd;
}

html.app-theme-dark .ops-mini-cats-head {
	color: #e7edf5;
}

html.app-theme-dark .ops-mini-cats-head a {
	color: #8fc0ee;
}

html.app-theme-dark #operations_list .ops-row-meta {
	color: #94a2b3;
}

/* Operations table amounts. */
html.app-theme-dark #operations_list .ops-table-sum {
	color: #e7edf5;
}

html.app-theme-dark #operations_list .ops-table-sum.is-inc {
	color: #7fe0a8;
}

/* Mobile date pager in the operations mini-statistics. */
html.app-theme-dark .ops-mobile-date-nav,
html.app-theme-dark .ops-mobile-date-mode {
	border-color: #3a4759;
	background: #1f2a39;
	color: #e7edf5;
}

html.app-theme-dark #ops-mobile-date-mode,
html.app-theme-dark body.app-body #main .theme-scope .app-content #content #ops-mobile-date-mode {
	border-color: #3a4759 !important;
}

html.app-theme-dark .ops-mobile-date-nav:disabled {
	color: #56657a;
}

html.app-theme-dark .ops-mobile-date-label {
	color: #e7edf5;
}

/* Operations table skeleton. */
html.app-theme-dark .ops-table-skeleton {
	background: #1f2a37;
}

html.app-theme-dark .ops-sk-row {
	border-color: #333f51;
}

html.app-theme-dark .ops-sk-icon,
html.app-theme-dark .ops-sk-line,
html.app-theme-dark .ops-sk-amount {
	background: linear-gradient(90deg, #2f3a4b 25%, #3a4759 37%, #2f3a4b 63%);
	background-size: 400% 100%;
}
