/* ===== Dark theme — applies when html[data-theme="dark"] ===== */
html[data-theme="dark"] {
    color-scheme: dark;
    --primary: #3b82f6;
    --primary-dark: #60a5fa;
    --body-bg: #0b1220;
    --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
    --surface: #111827;
    --surface-2: #1e293b;
    --surface-3: #243044;
    --text: #e2e8f0;
    --text-muted: #94a3b8;
    --border: #334155;
    --border-soft: #1f2a3a;
    --danger: #f87171;
    --success: #4ade80;
    --warning: #fbbf24;
}

html[data-theme="dark"] body,
html[data-theme="dark"] .app-content,
html[data-theme="dark"] .app-main {
    background: var(--body-bg);
    color: var(--text);
}

html[data-theme="dark"] .money-usd { color: #f8fafc; }
html[data-theme="dark"] .money-iqd { color: #94a3b8; }
html[data-theme="dark"] .money-sep { color: #475569; }

/* Header */
html[data-theme="dark"] .app-header {
    background: #0f172a;
    border-bottom-color: var(--border);
}
html[data-theme="dark"] .header-title h1,
html[data-theme="dark"] .header-title .h5 { color: #f1f5f9; }
html[data-theme="dark"] .header-home-btn { color: #cbd5e1; }
html[data-theme="dark"] .header-home-btn:hover {
    color: #93c5fd;
    background: rgba(59, 130, 246, 0.12);
}
html[data-theme="dark"] .header-logo,
html[data-theme="dark"] .header-lang-btn,
html[data-theme="dark"] .header-theme-btn {
    background: #111827;
    border-color: var(--border);
    color: #e2e8f0;
    box-shadow: none;
}
html[data-theme="dark"] .header-logo:hover,
html[data-theme="dark"] .header-lang-btn:hover,
html[data-theme="dark"] .header-lang-btn.show,
html[data-theme="dark"] .header-theme-btn:hover,
html[data-theme="dark"] .header-theme-btn.is-dark {
    border-color: #3b82f6;
    background: #1e293b;
}
html[data-theme="dark"] .header-rate-widget,
html[data-theme="dark"] a.header-rate-widget {
    background: #0f172a;
    border-color: #334155;
    color: #e2e8f0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
html[data-theme="dark"] a.header-rate-widget:hover {
    border-color: #3b82f6;
    background: #111827;
    color: #e2e8f0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}
html[data-theme="dark"] .header-rate-cell-usd {
    background: linear-gradient(180deg, rgba(251, 191, 36, 0.16) 0%, rgba(245, 158, 11, 0.1) 100%);
}
html[data-theme="dark"] .header-rate-cell-iqd {
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.16) 0%, rgba(5, 150, 105, 0.1) 100%);
}
html[data-theme="dark"] .header-rate-code { color: #94a3b8; }
html[data-theme="dark"] .header-rate-amount { color: #f8fafc; }
html[data-theme="dark"] .header-rate-cell-usd .header-rate-amount { color: #fbbf24; }
html[data-theme="dark"] .header-rate-cell-iqd .header-rate-amount { color: #34d399; }
html[data-theme="dark"] .header-rate-unit { color: #6ee7b7; }
html[data-theme="dark"] .header-rate-bridge {
    background: #1e293b;
    border-color: #334155;
    color: #94a3b8;
}
html[data-theme="dark"] .header-rate-edit {
    background: rgba(59, 130, 246, 0.16);
    border-color: rgba(59, 130, 246, 0.35);
    color: #93c5fd;
}
html[data-theme="dark"] a.header-rate-widget:hover .header-rate-edit {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}
html[data-theme="dark"] .header-rate-flag {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}
html[data-theme="dark"] .header-lang-menu {
    background: #111827;
    border-color: var(--border);
}
html[data-theme="dark"] .header-lang-menu-head { color: #64748b; }
html[data-theme="dark"] .header-lang-item-text strong { color: #f1f5f9; }
html[data-theme="dark"] .header-lang-item-text small { color: #94a3b8; }
html[data-theme="dark"] .header-lang-menu .dropdown-item:hover {
    background: #1e293b;
}
html[data-theme="dark"] .header-lang-menu .dropdown-item.active,
html[data-theme="dark"] .header-lang-menu .dropdown-item:active {
    background: rgba(59, 130, 246, 0.18);
    color: #93c5fd;
}

/* Login */
html[data-theme="dark"] .login-page {
    background: linear-gradient(160deg, #0b1220 0%, #111827 45%, #0f172a 100%);
    color: var(--text);
}
html[data-theme="dark"] .login-card {
    background: #111827;
    border-color: var(--border);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}
html[data-theme="dark"] .login-card-top h1 { color: #f8fafc; }
html[data-theme="dark"] .login-card-top p,
html[data-theme="dark"] .login-footer-note,
html[data-theme="dark"] .login-field label { color: #94a3b8; }
html[data-theme="dark"] .login-input-wrap .form-control {
    background: #0b1220;
    border-color: var(--border);
    color: #e2e8f0;
}
html[data-theme="dark"] .login-input-wrap .form-control:focus {
    background: #0f172a;
    border-color: #3b82f6;
}
html[data-theme="dark"] .login-input-wrap i { color: #64748b; }
html[data-theme="dark"] .login-alert {
    background: rgba(248, 113, 113, 0.12);
    border-color: rgba(248, 113, 113, 0.35);
    color: #fca5a5;
}

/* Home menu */
html[data-theme="dark"] .home-menu-topbar {
    background:
        radial-gradient(520px 140px at 100% 0%, rgba(59, 130, 246, 0.16), transparent 60%),
        linear-gradient(180deg, #111827 0%, #0f172a 100%);
    border-color: var(--border);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}
html[data-theme="dark"] .home-menu-topbar::before {
    background: linear-gradient(90deg, #1d4ed8 0%, #3b82f6 45%, #38bdf8 100%);
}
html[data-theme="dark"] .home-menu-brand-kicker {
    background: rgba(59, 130, 246, 0.18);
    color: #93c5fd;
}
html[data-theme="dark"] .home-menu-brand-text h1 { color: #f8fafc; }
html[data-theme="dark"] .home-menu-brand-text p { color: #94a3b8; }
html[data-theme="dark"] .home-menu-meta-chip,
html[data-theme="dark"] .home-menu-user {
    background: #111827;
    border-color: var(--border);
    box-shadow: none;
}
html[data-theme="dark"] .home-menu-meta-icon {
    background: rgba(59, 130, 246, 0.16);
    color: #93c5fd;
}
html[data-theme="dark"] .home-menu-meta-chip strong,
html[data-theme="dark"] .home-menu-user-text strong { color: #f1f5f9; }
html[data-theme="dark"] .home-menu-meta-chip small,
html[data-theme="dark"] .home-menu-user-text small { color: #94a3b8; }
html[data-theme="dark"] .home-menu-section {
    background: #111827 !important;
    border-color: #334155 !important;
    box-shadow: none !important;
}
html[data-theme="dark"] .home-menu-section-title { color: #f1f5f9 !important; }
html[data-theme="dark"] .home-menu-section-subtitle { color: #94a3b8 !important; }
html[data-theme="dark"] .home-menu-section-shop .home-menu-section-icon {
    background: rgba(59, 130, 246, 0.16) !important;
    color: #93c5fd !important;
}
html[data-theme="dark"] .home-menu-section-construction .home-menu-section-icon {
    background: rgba(45, 212, 191, 0.14) !important;
    color: #5eead4 !important;
}
html[data-theme="dark"] .home-menu-section-system .home-menu-section-icon {
    background: rgba(148, 163, 184, 0.14) !important;
    color: #cbd5e1 !important;
}
html[data-theme="dark"] .home-menu-card {
    background: #111827;
    border-color: #334155;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
    color: #e2e8f0;
}
html[data-theme="dark"] .home-menu-card:hover {
    background: #1e293b;
    color: #f8fafc;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
}
html[data-theme="dark"] .home-menu-card.active {
    background: rgba(59, 130, 246, 0.14);
}
html[data-theme="dark"] .home-menu-card-label { color: #e2e8f0; }
html[data-theme="dark"] .home-menu-card.tone-blue { border-color: #3b82f6; }
html[data-theme="dark"] .home-menu-card.tone-orange { border-color: #fb923c; }
html[data-theme="dark"] .home-menu-card.tone-purple { border-color: #a78bfa; }
html[data-theme="dark"] .home-menu-card.tone-teal { border-color: #2dd4bf; }
html[data-theme="dark"] .home-menu-card.tone-green { border-color: #4ade80; }
html[data-theme="dark"] .home-menu-card.tone-pink { border-color: #f472b6; }
html[data-theme="dark"] .home-menu-card.tone-amber { border-color: #fbbf24; }
html[data-theme="dark"] .home-menu-card.tone-cyan { border-color: #22d3ee; }
html[data-theme="dark"] .home-menu-card.tone-indigo { border-color: #818cf8; }
html[data-theme="dark"] .home-menu-card.tone-rose { border-color: #fb7185; }
html[data-theme="dark"] .home-menu-card.tone-sky { border-color: #38bdf8; }
html[data-theme="dark"] .home-menu-card.tone-lime { border-color: #a3e635; }
html[data-theme="dark"] .home-menu-card.tone-blue .home-menu-card-icon { background: rgba(59,130,246,.18); color: #93c5fd; }
html[data-theme="dark"] .home-menu-card.tone-orange .home-menu-card-icon { background: rgba(251,146,60,.16); color: #fdba74; }
html[data-theme="dark"] .home-menu-card.tone-purple .home-menu-card-icon { background: rgba(167,139,250,.16); color: #c4b5fd; }
html[data-theme="dark"] .home-menu-card.tone-teal .home-menu-card-icon { background: rgba(45,212,191,.14); color: #5eead4; }
html[data-theme="dark"] .home-menu-card.tone-green .home-menu-card-icon { background: rgba(74,222,128,.14); color: #86efac; }
html[data-theme="dark"] .home-menu-card.tone-pink .home-menu-card-icon { background: rgba(244,114,182,.14); color: #f9a8d4; }
html[data-theme="dark"] .home-menu-card.tone-amber .home-menu-card-icon { background: rgba(251,191,36,.14); color: #fcd34d; }
html[data-theme="dark"] .home-menu-card.tone-cyan .home-menu-card-icon { background: rgba(34,211,238,.14); color: #67e8f9; }
html[data-theme="dark"] .home-menu-card.tone-indigo .home-menu-card-icon { background: rgba(129,140,248,.16); color: #a5b4fc; }
html[data-theme="dark"] .home-menu-card.tone-rose .home-menu-card-icon { background: rgba(251,113,133,.14); color: #fda4af; }
html[data-theme="dark"] .home-menu-card.tone-sky .home-menu-card-icon { background: rgba(56,189,248,.14); color: #7dd3fc; }
html[data-theme="dark"] .home-menu-card.tone-lime .home-menu-card-icon { background: rgba(163,230,53,.14); color: #bef264; }

/* Cards / panels / stats */
html[data-theme="dark"] .content-card,
html[data-theme="dark"] .card,
html[data-theme="dark"] .stat-card,
html[data-theme="dark"] .dashboard-panel,
html[data-theme="dark"] .dashboard-quick-links,
html[data-theme="dark"] .dashboard-notice,
html[data-theme="dark"] .settings-page .content-card,
html[data-theme="dark"] .page-card,
html[data-theme="dark"] .filter-card,
html[data-theme="dark"] .report-card,
html[data-theme="dark"] .empty-state,
html[data-theme="dark"] .modal-content {
    background: #111827 !important;
    border-color: var(--border) !important;
    color: var(--text);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}
html[data-theme="dark"] .stat-card .stat-label,
html[data-theme="dark"] .text-muted,
html[data-theme="dark"] .dashboard-panel-subtitle,
html[data-theme="dark"] .form-label,
html[data-theme="dark"] .form-text {
    color: #94a3b8 !important;
}
html[data-theme="dark"] .stat-card .stat-value,
html[data-theme="dark"] .dashboard-panel-title h3,
html[data-theme="dark"] h1, html[data-theme="dark"] h2,
html[data-theme="dark"] h3, html[data-theme="dark"] h4,
html[data-theme="dark"] h5, html[data-theme="dark"] h6 {
    color: #f1f5f9;
}
html[data-theme="dark"] .dashboard-hero {
    background: linear-gradient(135deg, #020617 0%, #1e3a8a 55%, #2563eb 100%);
}
html[data-theme="dark"] .dashboard-panel-head,
html[data-theme="dark"] .card-header,
html[data-theme="dark"] .modal-header,
html[data-theme="dark"] .modal-footer {
    background: #0f172a;
    border-color: var(--border) !important;
}
html[data-theme="dark"] .dashboard-panel-link { color: #93c5fd; }
html[data-theme="dark"] .dash-sale-item {
    background: #0f172a;
    border-color: var(--border);
}
html[data-theme="dark"] .dash-sale-invoice { color: #93c5fd; }
html[data-theme="dark"] .dash-sale-total { color: #f8fafc; }
html[data-theme="dark"] .dashboard-empty { color: #94a3b8; }

/* Tables */
html[data-theme="dark"] .table {
    --bs-table-bg: transparent;
    --bs-table-color: #e2e8f0;
    --bs-table-border-color: #334155;
    --bs-table-striped-bg: rgba(148, 163, 184, 0.06);
    --bs-table-hover-bg: rgba(59, 130, 246, 0.1);
    --bs-table-hover-color: #f8fafc;
    color: #e2e8f0;
}
html[data-theme="dark"] .table > :not(caption) > * > * {
    background-color: transparent;
    border-bottom-color: #334155;
    color: inherit;
}
html[data-theme="dark"] .table thead th {
    background: #0f172a !important;
    color: #cbd5e1 !important;
    border-color: #334155 !important;
}
html[data-theme="dark"] .table-responsive {
    background: transparent;
}

/* Forms */
html[data-theme="dark"] .form-control,
html[data-theme="dark"] .form-select,
html[data-theme="dark"] .input-group-text,
html[data-theme="dark"] textarea.form-control {
    background-color: #0b1220 !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}
html[data-theme="dark"] .form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%94a3b8' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: left 0.75rem center !important;
    background-size: 16px 12px !important;
    padding-left: 2.25rem !important;
}
html[dir="ltr"][data-theme="dark"] .form-select {
    background-position: right 0.75rem center !important;
    padding-left: 0.75rem !important;
    padding-right: 2.25rem !important;
}
html[data-theme="dark"] .construction-material-filter-label {
    color: #94a3b8 !important;
}
html[data-theme="dark"] .construction-material-filter-select {
    background-color: #0b1220 !important;
    border-color: #334155 !important;
    color: #f8fafc !important;
}
html[data-theme="dark"] .form-control:focus,
html[data-theme="dark"] .form-select:focus {
    background-color: #0f172a !important;
    border-color: #3b82f6 !important;
    color: #f8fafc !important;
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.2);
}
html[data-theme="dark"] .form-control::placeholder { color: #64748b; }
html[data-theme="dark"] .form-control::file-selector-button,
html[data-theme="dark"] .form-control::-webkit-file-upload-button {
    background: #1e293b !important;
    border: 0 !important;
    border-inline-end: 1px solid #334155 !important;
    color: #e2e8f0 !important;
    box-shadow: none !important;
}
html[data-theme="dark"] .form-check-input {
    background-color: #0b1220;
    border-color: #475569;
}
html[data-theme="dark"] .form-check-input:checked {
    background-color: #2563eb;
    border-color: #2563eb;
}

/* Buttons */
html[data-theme="dark"] .btn-outline-secondary,
html[data-theme="dark"] .btn-outline-dark {
    color: #cbd5e1;
    border-color: #475569;
}
html[data-theme="dark"] .btn-outline-secondary:hover,
html[data-theme="dark"] .btn-outline-dark:hover {
    background: #1e293b;
    border-color: #64748b;
    color: #f8fafc;
}
html[data-theme="dark"] .btn-light {
    background: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
}
html[data-theme="dark"] .btn-light:hover {
    background: #243044;
    color: #fff;
}

/* Bootstrap surfaces */
html[data-theme="dark"] .dropdown-menu {
    background: #111827;
    border-color: #334155;
    color: #e2e8f0;
}
html[data-theme="dark"] .dropdown-item { color: #e2e8f0; }
html[data-theme="dark"] .dropdown-item:hover,
html[data-theme="dark"] .dropdown-item:focus {
    background: #1e293b;
    color: #fff;
}
html[data-theme="dark"] .dropdown-divider { border-color: #334155; }
html[data-theme="dark"] .list-group-item {
    background: #111827;
    border-color: #334155;
    color: #e2e8f0;
}
html[data-theme="dark"] .alert-success {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.35);
    color: #86efac;
}
html[data-theme="dark"] .alert-danger {
    background: rgba(248, 113, 113, 0.12);
    border-color: rgba(248, 113, 113, 0.35);
    color: #fca5a5;
}
html[data-theme="dark"] .alert-warning {
    background: rgba(251, 191, 36, 0.12);
    border-color: rgba(251, 191, 36, 0.35);
    color: #fcd34d;
}
html[data-theme="dark"] .alert-info {
    background: rgba(56, 189, 248, 0.12);
    border-color: rgba(56, 189, 248, 0.35);
    color: #7dd3fc;
}
html[data-theme="dark"] .badge.bg-light,
html[data-theme="dark"] .badge.text-dark {
    background: #1e293b !important;
    color: #e2e8f0 !important;
}
html[data-theme="dark"] .pagination .page-link {
    background: #111827;
    border-color: #334155;
    color: #cbd5e1;
}
html[data-theme="dark"] .pagination .page-item.active .page-link {
    background: #2563eb;
    border-color: #2563eb;
}
html[data-theme="dark"] .pagination .page-item.disabled .page-link {
    background: #0f172a;
    color: #64748b;
}
html[data-theme="dark"] .nav-tabs {
    border-bottom-color: #334155;
}
html[data-theme="dark"] .nav-tabs .nav-link {
    color: #94a3b8;
}
html[data-theme="dark"] .nav-tabs .nav-link.active {
    background: #111827;
    border-color: #334155 #334155 #111827;
    color: #f8fafc;
}
html[data-theme="dark"] hr { border-color: #334155; opacity: 1; }
html[data-theme="dark"] code,
html[data-theme="dark"] .product-barcode {
    color: #93c5fd;
    background: rgba(59, 130, 246, 0.12);
}
html[data-theme="dark"] .progress {
    background: #1e293b;
}

/* Soft icon backgrounds used across app */
html[data-theme="dark"] .bg-primary-soft { background: rgba(59, 130, 246, 0.18) !important; color: #93c5fd; }
html[data-theme="dark"] .bg-success-soft { background: rgba(34, 197, 94, 0.16) !important; color: #86efac; }
html[data-theme="dark"] .bg-warning-soft { background: rgba(251, 191, 36, 0.16) !important; color: #fcd34d; }
html[data-theme="dark"] .bg-danger-soft { background: rgba(248, 113, 113, 0.16) !important; color: #fca5a5; }
html[data-theme="dark"] .bg-info-soft { background: rgba(56, 189, 248, 0.16) !important; color: #7dd3fc; }
html[data-theme="dark"] .bg-purple-soft { background: rgba(167, 139, 250, 0.16) !important; color: #c4b5fd; }
html[data-theme="dark"] .bg-teal-soft { background: rgba(45, 212, 191, 0.14) !important; color: #5eead4; }

/* POS screen (posx) */
html[data-theme="dark"] {
    --posx-accent: #3b82f6;
    --posx-accent-dark: #60a5fa;
    --posx-green: #4ade80;
    --posx-ink: #e2e8f0;
    --posx-muted: #94a3b8;
    --posx-line: #334155;
    --posx-soft: #1e293b;
}

html[data-theme="dark"] body.pos-screen,
html[data-theme="dark"] .app-wrapper.is-pos-screen .app-content,
html[data-theme="dark"] .app-wrapper.is-pos-screen .app-main-pos {
    background: #0b1220 !important;
}

html[data-theme="dark"] .posx {
    background: linear-gradient(180deg, #0f172a 0%, #0b1220 42%, #020617 100%) !important;
    color: #e2e8f0;
}

html[data-theme="dark"] .posx-main {
    background: transparent;
    color: #e2e8f0;
}

html[data-theme="dark"] .posx-title,
html[data-theme="dark"] .posx-user-meta strong,
html[data-theme="dark"] .posx-order-head strong,
html[data-theme="dark"] .posx-line-info strong,
html[data-theme="dark"] .posx-card-name,
html[data-theme="dark"] .posx-summary-total,
html[data-theme="dark"] .posx-total {
    background: transparent !important;
    color: #f8fafc !important;
}

html[data-theme="dark"] .posx-line-price,
html[data-theme="dark"] .posx-card-money {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

html[data-theme="dark"] .posx-card-money-iqd {
    border-top: 0 !important;
}

html[data-theme="dark"] .posx-card-money-usd strong,
html[data-theme="dark"] .posx-qty span {
    color: #f8fafc !important;
}

html[data-theme="dark"] .posx-breadcrumb,
html[data-theme="dark"] .posx-breadcrumb a,
html[data-theme="dark"] .posx-muted,
html[data-theme="dark"] .posx-card-meta,
html[data-theme="dark"] .posx-user-meta small,
html[data-theme="dark"] .posx-field label,
html[data-theme="dark"] .posx-line-info span,
html[data-theme="dark"] .posx-card-sku,
html[data-theme="dark"] .posx-card-money-iqd small,
html[data-theme="dark"] .posx-card-money-iqd .posx-card-iqd {
    color: #94a3b8 !important;
}
html[data-theme="dark"] .posx-line-price .money-usd { color: #f8fafc !important; }
html[data-theme="dark"] .posx-line-price .money-iqd,
html[data-theme="dark"] .posx-line-unit-sep,
html[data-theme="dark"] .posx-line-price .money-sep { color: #94a3b8 !important; }
html[data-theme="dark"] .posx-price-currency {
    background: #0f172a !important;
    border-color: #334155 !important;
}
html[data-theme="dark"] .posx-price-currency:hover {
    border-color: #60a5fa !important;
    background: #1e293b !important;
}
html[data-theme="dark"] .posx-price-input {
    background: #0f172a !important;
    border-color: #334155 !important;
    color: #f8fafc !important;
}
html[data-theme="dark"] .posx-line.is-loss {
    background: rgba(248, 113, 113, 0.08) !important;
}
html[data-theme="dark"] .posx-line.is-loss .posx-price-input {
    border-color: #f87171 !important;
    color: #f87171 !important;
    background: rgba(127, 29, 29, 0.25) !important;
}
html[data-theme="dark"] .posx-line-loss {
    background: rgba(248, 113, 113, 0.14) !important;
    color: #f87171 !important;
}

html[data-theme="dark"] .posx-breadcrumb a:hover {
    color: #93c5fd !important;
}

html[data-theme="dark"] .posx-menu-btn,
html[data-theme="dark"] .posx-btn-ghost,
html[data-theme="dark"] .posx-icon-btn,
html[data-theme="dark"] .posx-logout,
html[data-theme="dark"] .posx-search,
html[data-theme="dark"] .posx-select,
html[data-theme="dark"] .posx-cat,
html[data-theme="dark"] .posx-card,
html[data-theme="dark"] .posx-line,
html[data-theme="dark"] .posx-qty button {
    background: #111827 !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
    box-shadow: none !important;
}

html[data-theme="dark"] .posx-menu-btn:hover,
html[data-theme="dark"] .posx-btn-ghost:hover,
html[data-theme="dark"] .posx-cat:hover,
html[data-theme="dark"] .posx-card:hover {
    background: #1e293b !important;
    border-color: #3b82f6 !important;
    color: #f8fafc !important;
}

html[data-theme="dark"] .posx-btn-accent {
    background: #2563eb !important;
    border-color: #2563eb !important;
    color: #fff !important;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.28) !important;
}

html[data-theme="dark"] .posx-btn-accent:hover {
    background: #1d4ed8 !important;
    color: #fff !important;
}

html[data-theme="dark"] .posx-cat.active {
    background: rgba(59, 130, 246, 0.2) !important;
    color: #93c5fd !important;
    border-color: #3b82f6 !important;
}

html[data-theme="dark"] .posx-search input,
html[data-theme="dark"] .posx-select,
html[data-theme="dark"] .posx-field .form-select,
html[data-theme="dark"] .posx-field .form-control,
html[data-theme="dark"] .posx input.form-control,
html[data-theme="dark"] .posx select.form-select,
html[data-theme="dark"] .posx textarea {
    background: #0b1220 !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .posx-search input:focus,
html[data-theme="dark"] .posx-select:focus,
html[data-theme="dark"] .posx-field .form-select:focus,
html[data-theme="dark"] .posx-field .form-control:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 0.15rem rgba(59, 130, 246, 0.2) !important;
}

html[data-theme="dark"] .posx-search i {
    color: #64748b !important;
}

/* Cart sidebar */
html[data-theme="dark"] .posx-cart {
    background: #111827 !important;
    border-right-color: #334155 !important;
    box-shadow: -10px 0 28px rgba(0, 0, 0, 0.35) !important;
    color: #e2e8f0;
}

html[data-theme="dark"] .posx-cart-user,
html[data-theme="dark"] .posx-cart-controls,
html[data-theme="dark"] .posx-order-head,
html[data-theme="dark"] .posx-cart-foot,
html[data-theme="dark"] .posx-cart-footer {
    background: #111827 !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .posx-balance-hint,
html[data-bs-theme="dark"] .posx-balance-hint {
    background: #0f172a !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}
html[data-theme="dark"] .posx-balance-metric,
html[data-bs-theme="dark"] .posx-balance-metric {
    background: #111827 !important;
    border-color: #1e293b !important;
}
html[data-theme="dark"] .posx-balance-metric em,
html[data-theme="dark"] .posx-balance-metric .money-iqd,
html[data-bs-theme="dark"] .posx-balance-metric em,
html[data-bs-theme="dark"] .posx-balance-metric .money-iqd {
    color: #94a3b8 !important;
}
html[data-theme="dark"] .posx-balance-metric.is-in .money-usd { color: #4ade80 !important; }
html[data-theme="dark"] .posx-balance-metric.is-out .money-usd { color: #f87171 !important; }
html[data-theme="dark"] .posx-balance-metric.is-balance .money-usd { color: #5eead4 !important; }
html[data-theme="dark"] .pos-customer-debt,
html[data-bs-theme="dark"] .pos-customer-debt {
    background: rgba(59, 130, 246, 0.14) !important;
    border: 1px solid rgba(96, 165, 250, 0.35);
    color: #93c5fd !important;
}

html[data-theme="dark"] .pos-customer-debt i,
html[data-bs-theme="dark"] .pos-customer-debt i {
    color: #60a5fa !important;
}

html[data-theme="dark"] .pos-customer-debt .money-wrap,
html[data-theme="dark"] .pos-customer-debt .money-amount,
html[data-theme="dark"] .pos-customer-debt .inv-amt-main,
html[data-bs-theme="dark"] .pos-customer-debt .money-wrap,
html[data-bs-theme="dark"] .pos-customer-debt .money-amount,
html[data-bs-theme="dark"] .pos-customer-debt .inv-amt-main {
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .pos-customer-debt .money-iqd .money-amount,
html[data-theme="dark"] .pos-customer-debt .inv-amt-sub,
html[data-bs-theme="dark"] .pos-customer-debt .money-iqd .money-amount,
html[data-bs-theme="dark"] .pos-customer-debt .inv-amt-sub {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .posx-cart-body {
    background: #0f172a !important;
}

html[data-theme="dark"] .posx-logout:hover,
html[data-theme="dark"] .posx-icon-btn:hover,
html[data-theme="dark"] .posx-icon-btn.danger:hover {
    background: rgba(248, 113, 113, 0.14) !important;
    color: #f87171 !important;
}

html[data-theme="dark"] .posx-seg {
    background: #0b1220 !important;
}

html[data-theme="dark"] .posx-seg span {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .posx-seg input:checked + span {
    background: #1e293b !important;
    color: #f8fafc !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35) !important;
}

html[data-theme="dark"] .posx-seg .is-cash input:checked + span {
    color: #4ade80 !important;
    background: rgba(74, 222, 128, 0.12) !important;
}

html[data-theme="dark"] .posx-seg .is-credit input:checked + span {
    color: #fbbf24 !important;
    background: rgba(251, 191, 36, 0.12) !important;
}

html[data-theme="dark"] .posx-line {
    background: transparent !important;
    border-color: #334155 !important;
}

html[data-theme="dark"] .posx-buy-item {
    background: transparent !important;
    border-color: #334155 !important;
    box-shadow: none !important;
}

html[data-theme="dark"] .posx-buy-name {
    color: #f1f5f9 !important;
}

html[data-theme="dark"] .posx-buy-total {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .posx-buy-remove {
    background: #1e293b !important;
    color: #94a3b8 !important;
}

html[data-theme="dark"] .posx-buy-remove:hover {
    background: rgba(244, 63, 94, 0.18) !important;
    color: #fb7185 !important;
}

html[data-theme="dark"] .posx-buy-qty {
    background: #1e293b !important;
}

html[data-theme="dark"] .posx-buy-qty button {
    background: #0f172a !important;
    color: #e2e8f0 !important;
    box-shadow: none !important;
}

html[data-theme="dark"] .posx-line-note {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .posx-line-thumb.has-image,
html[data-theme="dark"] .posx-line-thumb-fallback {
    background: #0f172a !important;
    border-color: #334155 !important;
    color: #94a3b8 !important;
}
html[data-theme="dark"] .posx-line-main { min-width: 0; }

html[data-theme="dark"] .posx-summary,
html[data-theme="dark"] .posx-summary-row,
html[data-theme="dark"] .posx-checkout-row {
    color: #cbd5e1 !important;
    border-color: #334155 !important;
}

html[data-theme="dark"] .posx-empty,
html[data-theme="dark"] .posx-cart-empty,
html[data-theme="dark"] .posx-empty-state {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .posx-card {
    background: #111827 !important;
    border-color: #334155 !important;
}

html[data-theme="dark"] .posx-card-stock {
    background: rgba(74, 222, 128, 0.12) !important;
    color: #86efac !important;
}
html[data-theme="dark"] .posx-card-stock.is-low {
    background: rgba(251, 191, 36, 0.16) !important;
    color: #fbbf24 !important;
}

html[data-theme="dark"] .posx-card-add {
    background: rgba(15, 23, 42, 0.65) !important;
    color: #fff !important;
}

html[data-theme="dark"] .posx-held-badge {
    background: #ef4444 !important;
    color: #fff !important;
}

html[data-theme="dark"] .pos-money-input,
html[data-theme="dark"] .pos-money-input-sm,
html[data-theme="dark"] .pos-money-input-xs,
html[data-theme="dark"] .posx-summary-discount .pos-money-input {
    background: #0b1220 !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
    box-shadow: none !important;
}

html[data-theme="dark"] .pos-money-input .form-control,
html[data-theme="dark"] .pos-money-input-sm .form-control,
html[data-theme="dark"] .pos-money-input-xs .form-control {
    background: transparent !important;
    border: 0 !important;
    color: #f8fafc !important;
    box-shadow: none !important;
}

html[data-theme="dark"] .pos-money-input .form-control::placeholder {
    color: #64748b !important;
}

html[data-theme="dark"] .pos-money-prefix,
html[data-theme="dark"] .pos-money-input .input-group-text,
html[data-theme="dark"] .currency-sync-group .input-group-text {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #94a3b8 !important;
}

html[data-theme="dark"] .currency-sync-group .form-control {
    background: #0b1220 !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .posx-credit-card,
html[data-theme="dark"] .pos-credit-card {
    background: #0f172a !important;
    border-color: #334155 !important;
}

html[data-theme="dark"] .posx-credit-stat,
html[data-theme="dark"] .pos-credit-stat {
    background: #111827 !important;
    border-color: #334155 !important;
}

html[data-theme="dark"] .posx-cart-foot {
    background: #0f172a !important;
    border-top: 1px solid #334155 !important;
    box-shadow: 0 -10px 24px rgba(0, 0, 0, 0.25);
}

html[data-theme="dark"] .posx-summary-total {
    margin-top: 0.35rem;
    margin-bottom: 0.85rem;
    padding: 0.75rem 0.85rem;
    border-radius: 14px;
    border: 1px solid #334155 !important;
    background: #111827 !important;
}

html[data-theme="dark"] .posx-summary-total span,
html[data-theme="dark"] .posx-summary-total strong {
    color: #f8fafc !important;
}

html[data-theme="dark"] .posx-summary-total .money-usd {
    color: #f8fafc !important;
}

html[data-theme="dark"] .posx-summary-total .money-iqd {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .posx-actions {
    gap: 0.65rem;
}

html[data-theme="dark"] .posx-pay-btn,
html[data-theme="dark"] .posx-checkout-btn,
html[data-theme="dark"] .posx-btn-pay {
    background: #2563eb !important;
    color: #fff !important;
    border: 0 !important;
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.28) !important;
}

html[data-theme="dark"] .posx-print-btn {
    background: #059669 !important;
    color: #fff !important;
    border: 0 !important;
    box-shadow: 0 10px 22px rgba(5, 150, 105, 0.25) !important;
}

html[data-theme="dark"] .posx-pay-btn em {
    background: rgba(255, 255, 255, 0.22) !important;
    color: #fff !important;
}

html[data-theme="dark"] .posx-pay-btn:disabled,
html[data-theme="dark"] .posx-print-btn:disabled {
    opacity: 1 !important;
    background: #1e293b !important;
    color: #64748b !important;
    box-shadow: none !important;
    border: 1px solid #334155 !important;
}

html[data-theme="dark"] .posx-pay-btn:disabled em {
    background: #334155 !important;
    color: #94a3b8 !important;
}

html[data-theme="dark"] .posx-pay-btn:not(:disabled):hover {
    background: #1d4ed8 !important;
    color: #fff !important;
}

html[data-theme="dark"] .posx-print-btn:not(:disabled):hover {
    background: #047857 !important;
    color: #fff !important;
}

/* Theme/lang controls inside POS topbar */
html[data-theme="dark"] .posx-topbar-actions .header-theme-btn,
html[data-theme="dark"] .posx-topbar-actions .header-lang-btn {
    background: #111827 !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}

/* Held orders side panel */
html[data-theme="dark"] .posx-held-overlay {
    background: rgba(2, 6, 23, 0.72) !important;
}

html[data-theme="dark"] .posx-held-panel {
    background: #0f172a !important;
    color: #e2e8f0;
    box-shadow: 12px 0 40px rgba(0, 0, 0, 0.45) !important;
}

html[dir="rtl"][data-theme="dark"] .posx-held-panel {
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.45) !important;
}

html[data-theme="dark"] .posx-held-panel-head {
    background: #111827 !important;
    border-bottom-color: #334155 !important;
}

html[data-theme="dark"] .posx-held-panel-head h2 {
    color: #f8fafc !important;
}

html[data-theme="dark"] .posx-held-panel-head p {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .posx-held-list {
    background: #0b1220 !important;
    color: #94a3b8;
}

html[data-theme="dark"] .posx-held-list .pos-cart-empty,
html[data-theme="dark"] .posx-held-list .posx-empty,
html[data-theme="dark"] .posx-held-list .text-muted {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .posx-held-item {
    background: #111827 !important;
    border-color: #334155 !important;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28) !important;
}

html[data-theme="dark"] .posx-held-item-top strong {
    color: #f1f5f9 !important;
}

html[data-theme="dark"] .posx-held-item-top span {
    color: #93c5fd !important;
}

html[data-theme="dark"] .posx-held-item-meta {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .posx-held-item-names {
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .posx-held-item-actions .posx-btn-ghost {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .posx-held-item-actions .posx-btn-accent {
    background: #2563eb !important;
    color: #fff !important;
}

html[data-theme="dark"] .posx-held-panel-head .posx-icon-btn,
html[data-theme="dark"] .posx-held-panel-head .btn-close {
    background: #1e293b !important;
    color: #94a3b8 !important;
    border-color: #334155 !important;
    opacity: 1;
    filter: invert(0);
}

html[data-theme="dark"] .posx-held-panel-head .posx-icon-btn:hover {
    background: rgba(248, 113, 113, 0.14) !important;
    color: #f87171 !important;
}

html[data-theme="dark"] .pos-alert-success {
    background: rgba(16, 185, 129, 0.14) !important;
    color: #6ee7b7 !important;
    border-color: rgba(16, 185, 129, 0.35) !important;
}

html[data-theme="dark"] .pos-alert-warning {
    background: rgba(251, 191, 36, 0.14) !important;
    color: #fcd34d !important;
    border-color: rgba(251, 191, 36, 0.35) !important;
}

/* Returns page — full dark pass */
html[data-theme="dark"] .returns-page {
    color: #e2e8f0;
}

html[data-theme="dark"] .returns-page-title,
html[data-theme="dark"] .returns-panel-head h3,
html[data-theme="dark"] .returns-form-head h3,
html[data-theme="dark"] .returns-sale-total,
html[data-theme="dark"] .return-item-name {
    color: #f1f5f9 !important;
}

html[data-theme="dark"] .returns-page-subtitle,
html[data-theme="dark"] .returns-panel-head p,
html[data-theme="dark"] .returns-form-head p,
html[data-theme="dark"] .returns-sale-meta,
html[data-theme="dark"] .returns-sale-empty,
html[data-theme="dark"] .return-item-meta,
html[data-theme="dark"] .return-item-qty-label,
html[data-theme="dark"] .returns-state {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .returns-mode-tabs {
    background: #111827 !important;
    border-color: #334155 !important;
}

html[data-theme="dark"] .returns-mode-tab {
    color: #94a3b8 !important;
    background: transparent !important;
    box-shadow: none !important;
}

html[data-theme="dark"] .returns-mode-tab:hover {
    color: #e2e8f0 !important;
    background: #1e293b !important;
}

html[data-theme="dark"] .returns-mode-tab.is-active {
    background: rgba(59, 130, 246, 0.18) !important;
    color: #93c5fd !important;
    box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.35) !important;
}

html[data-theme="dark"] .returns-page .content-card,
html[data-theme="dark"] .returns-picker,
html[data-theme="dark"] .returns-form-card,
html[data-theme="dark"] .returns-state-card {
    background: #111827 !important;
    border-color: #334155 !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28) !important;
}

html[data-theme="dark"] .returns-panel-head,
html[data-theme="dark"] .returns-form-head {
    background: #0f172a !important;
    border-bottom: 1px solid #334155 !important;
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .returns-panel-icon {
    background: rgba(59, 130, 246, 0.18) !important;
    color: #93c5fd !important;
}

html[data-theme="dark"] .returns-sale-list {
    background: #111827 !important;
}

html[data-theme="dark"] .returns-sale-item {
    background: #0b1220 !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .returns-sale-item:hover {
    background: #1e293b !important;
    border-color: #3b82f6 !important;
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .returns-sale-item.is-active {
    background: rgba(59, 130, 246, 0.14) !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18) !important;
}

html[data-theme="dark"] .returns-sale-invoice,
html[data-theme="dark"] .returns-sale-item.is-active .returns-sale-invoice,
html[data-theme="dark"] .returns-invoice-link {
    color: #93c5fd !important;
}

html[data-theme="dark"] .returns-sale-total .money-usd {
    color: #f8fafc !important;
}

html[data-theme="dark"] .returns-sale-total .money-iqd {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .returns-form {
    background: #111827 !important;
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .return-items-table thead th {
    background: #0f172a !important;
    border-color: #334155 !important;
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .return-items-table tbody td {
    background: #111827 !important;
    border-bottom-color: #1f2a3a !important;
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .return-max-badge {
    background: #1e293b !important;
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .return-item-card {
    background: #0b1220 !important;
    border-color: #334155 !important;
}

html[data-theme="dark"] .returns-option-label,
html[data-theme="dark"] .returns-form-options {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .returns-page .form-control,
html[data-theme="dark"] .returns-page .form-select,
html[data-theme="dark"] .return-qty-input {
    background: #0b1220 !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .returns-page .form-control:focus,
html[data-theme="dark"] .returns-page .form-select:focus,
html[data-theme="dark"] .return-qty-input:focus {
    background: #0b1220 !important;
    border-color: #3b82f6 !important;
    color: #f8fafc !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.16) !important;
}

html[data-theme="dark"] .returns-state-icon {
    background: #0f172a !important;
    border-color: #334155 !important;
    color: #64748b !important;
}

html[data-theme="dark"] .returns-state-info .returns-state-icon {
    background: rgba(59, 130, 246, 0.14) !important;
    border-color: rgba(59, 130, 246, 0.35) !important;
    color: #93c5fd !important;
}

html[data-theme="dark"] .returns-submit-btn {
    background: #d97706 !important;
    border-color: #d97706 !important;
    color: #fff !important;
    box-shadow: 0 8px 20px rgba(217, 119, 6, 0.28) !important;
}

html[data-theme="dark"] .returns-submit-btn:hover {
    background: #b45309 !important;
    border-color: #b45309 !important;
    color: #fff !important;
}

/* Classic POS layout used by returns direct mode */
html[data-theme="dark"] .pos-cart-column,
html[data-theme="dark"] .pos-panel,
html[data-theme="dark"] .pos-cart,
html[data-theme="dark"] .pos-cart-checkout,
html[data-theme="dark"] .pos-cart-head,
html[data-theme="dark"] .pos-cart-foot,
html[data-theme="dark"] .pos-cart-settings,
html[data-theme="dark"] .pos-panel-head {
    background: #111827 !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
    box-shadow: none !important;
}

html[data-theme="dark"] .pos-cart-body {
    background: #0f172a !important;
}

html[data-theme="dark"] .pos-search-input {
    background: #0b1220 !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
    box-shadow: none !important;
}

html[data-theme="dark"] .pos-search-input:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.18) !important;
}

html[data-theme="dark"] .pos-search-icon {
    color: #64748b !important;
}

html[data-theme="dark"] .pos-panel-head h2,
html[data-theme="dark"] .pos-cart-head-title h2,
html[data-theme="dark"] .pos-cart-item-name,
html[data-theme="dark"] .pos-setting-label {
    color: #f1f5f9 !important;
}

html[data-theme="dark"] .pos-cart-total {
    background: #0b1220 !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .pos-grand-total {
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .pos-grand-total strong,
html[data-theme="dark"] .pos-cart-total .money-usd,
html[data-theme="dark"] .pos-cart-total strong {
    color: #93c5fd !important;
}

html[data-theme="dark"] .pos-cart-total .money-iqd {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .pos-checkout-label,
html[data-theme="dark"] .pos-total-meta {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .pos-cart-checkout {
    background: #111827 !important;
    border-top-color: #334155 !important;
}

html[data-theme="dark"] .pos-cart-settings .pos-cart-checkout {
    border-top-color: #334155 !important;
}

html[data-theme="dark"] .pos-panel-hint,
html[data-theme="dark"] .pos-cart-count,
html[data-theme="dark"] .pos-cart-empty,
html[data-theme="dark"] .pos-cart-item-price,
html[data-theme="dark"] .pos-product-category {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .pos-product-item,
html[data-theme="dark"] .pos-cart-item,
html[data-theme="dark"] .list-group-item {
    background: #0f172a !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .pos-product-item:hover,
html[data-theme="dark"] .list-group-item-action:hover,
html[data-theme="dark"] .list-group-item-action:focus {
    background: #1e293b !important;
    color: #f8fafc !important;
}

html[data-theme="dark"] .pos-product-info strong,
html[data-theme="dark"] .pos-product-price strong,
html[data-theme="dark"] .pos-cart-item-total strong {
    color: #f8fafc !important;
}

html[data-theme="dark"] .pos-seg,
html[data-theme="dark"] .pos-qty-control {
    background: #0b1220 !important;
}

html[data-theme="dark"] .pos-toggle-btn {
    background: transparent !important;
    color: #94a3b8 !important;
    border-color: transparent !important;
}

html[data-theme="dark"] .pos-toggle input:checked + .pos-toggle-btn,
html[data-theme="dark"] .pos-seg input:checked + .pos-toggle-btn {
    background: #1e293b !important;
    color: #f8fafc !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35) !important;
}

html[data-theme="dark"] .pos-cart-clear,
html[data-theme="dark"] .pos-qty-control button,
html[data-theme="dark"] .pos-cart-remove {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .pos-cart-clear:hover,
html[data-theme="dark"] .pos-cart-remove:hover {
    background: rgba(248, 113, 113, 0.14) !important;
    color: #f87171 !important;
}

html[data-theme="dark"] .returns-direct-page .pos-complete-btn {
    background: #d97706 !important;
    border-color: #d97706 !important;
    color: #fff !important;
}

html[data-theme="dark"] .returns-direct-page .pos-complete-btn:disabled {
    opacity: 1 !important;
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #64748b !important;
}

html[data-theme="dark"] .pos-alert {
    background: #0f172a !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}

/* Reports / debts / settings extras */
html[data-theme="dark"] .reports-link,
html[data-theme="dark"] .debts-phone-link,
html[data-theme="dark"] a:not(.btn):not(.home-menu-card):not(.header-logo):not(.nav-link):not(.dropdown-item):not(.page-link) {
    color: #93c5fd;
}
html[data-theme="dark"] .settings-page-subtitle,
html[data-theme="dark"] .page-subtitle { color: #94a3b8; }
html[data-theme="dark"] .badge-stock-low {
    background: rgba(251, 191, 36, 0.18);
    color: #fcd34d;
}
html[data-theme="dark"] .badge-stock-out {
    background: rgba(248, 113, 113, 0.18);
    color: #fca5a5;
}
html[data-theme="dark"] .payment-pill-cash {
    background: rgba(34, 197, 94, 0.16);
    color: #86efac;
}
html[data-theme="dark"] .payment-pill-credit {
    background: rgba(167, 139, 250, 0.16);
    color: #c4b5fd;
}

/* Theme toggle icons */
html[data-theme="dark"] .theme-icon-moon { display: none !important; }
html[data-theme="dark"] .theme-icon-sun { display: inline-block !important; }
html[data-theme="light"] .theme-icon-moon,
html:not([data-theme]) .theme-icon-moon { display: inline-block !important; }
html[data-theme="light"] .theme-icon-sun,
html:not([data-theme]) .theme-icon-sun { display: none !important; }

/* Catch-all surfaces that still use white backgrounds */
html[data-theme="dark"] .bg-white,
html[data-theme="dark"] .bg-light,
html[data-theme="dark"] .table-light {
    background-color: #111827 !important;
    color: #e2e8f0 !important;
}
html[data-theme="dark"] .border,
html[data-theme="dark"] .border-top,
html[data-theme="dark"] .border-bottom,
html[data-theme="dark"] .border-start,
html[data-theme="dark"] .border-end {
    border-color: #334155 !important;
}
html[data-theme="dark"] .text-dark { color: #e2e8f0 !important; }
html[data-theme="dark"] .text-black { color: #f8fafc !important; }
html[data-theme="dark"] .shadow,
html[data-theme="dark"] .shadow-sm,
html[data-theme="dark"] .shadow-lg {
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35) !important;
}
html[data-theme="dark"] .offcanvas {
    background: #111827;
    color: #e2e8f0;
}
html[data-theme="dark"] .accordion-item {
    background: #111827;
    border-color: #334155;
    color: #e2e8f0;
}
html[data-theme="dark"] .accordion-button {
    background: #0f172a;
    color: #e2e8f0;
}
html[data-theme="dark"] .accordion-button:not(.collapsed) {
    background: #1e293b;
    color: #93c5fd;
}
html[data-theme="dark"] .toast {
    background: #111827;
    border-color: #334155;
    color: #e2e8f0;
}
html[data-theme="dark"] .popover {
    background: #111827;
    border-color: #334155;
    color: #e2e8f0;
}
html[data-theme="dark"] .popover-header {
    background: #0f172a;
    border-color: #334155;
    color: #f1f5f9;
}
html[data-theme="dark"] .tooltip-inner {
    background: #1e293b;
    color: #f8fafc;
}

/* Invoice / print-adjacent screens on screen only */
@media screen {
    html[data-theme="dark"] .invoice-page .content-card,
    html[data-theme="dark"] .invoice-page .invoice-body,
    html[data-theme="dark"] .invoice-box,
    html[data-theme="dark"] .receipt-box,
    html[data-theme="dark"] .print-sheet {
        background: #111827 !important;
        color: #e2e8f0 !important;
        border-color: #334155 !important;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28) !important;
    }

    html[data-theme="dark"] .invoice-box h1,
    html[data-theme="dark"] .invoice-box h2,
    html[data-theme="dark"] .invoice-box h3,
    html[data-theme="dark"] .invoice-box .h3,
    html[data-theme="dark"] .invoice-box .h5,
    html[data-theme="dark"] .invoice-box .h6,
    html[data-theme="dark"] .invoice-box strong {
        color: #f1f5f9 !important;
    }

    html[data-theme="dark"] .invoice-box .text-muted,
    html[data-theme="dark"] .invoice-box .small,
    html[data-theme="dark"] .invoice-meta .h6 {
        color: #94a3b8 !important;
    }

    html[data-theme="dark"] .invoice-items-table,
    html[data-theme="dark"] .invoice-items-table > :not(caption) > * > * {
        border-color: #334155 !important;
        color: #e2e8f0 !important;
    }

    html[data-theme="dark"] .invoice-items-table thead,
    html[data-theme="dark"] .invoice-items-table thead.table-light,
    html[data-theme="dark"] .invoice-items-table thead th,
    html[data-theme="dark"] .invoice-items-table tbody td,
    html[data-theme="dark"] .invoice-items-table tbody tr,
    html[data-theme="dark"] .invoice-items-table tfoot td,
    html[data-theme="dark"] .invoice-items-table tfoot tr {
        background: #0f172a !important;
        border-color: #334155 !important;
        color: #e2e8f0 !important;
        --bs-table-bg: #0f172a !important;
        --bs-table-color: #e2e8f0 !important;
        --bs-table-border-color: #334155 !important;
    }

    html[data-theme="dark"] .invoice-items-table tbody tr {
        background: #111827 !important;
        --bs-table-bg: #111827 !important;
    }

    html[data-theme="dark"] .invoice-items-table tfoot tr.table-primary,
    html[data-theme="dark"] .invoice-items-table tfoot tr.table-primary > * {
        background: rgba(59, 130, 246, 0.18) !important;
        color: #bfdbfe !important;
        --bs-table-bg: rgba(59, 130, 246, 0.18) !important;
        --bs-table-color: #bfdbfe !important;
        border-color: rgba(59, 130, 246, 0.35) !important;
    }

    html[data-theme="dark"] .invoice-items-table tbody td::before {
        color: #94a3b8 !important;
    }

    html[data-theme="dark"] .invoice-box .money-usd {
        color: #f8fafc !important;
    }

    html[data-theme="dark"] .invoice-box .money-iqd {
        color: #94a3b8 !important;
    }
}

/* ===== Comprehensive module dark pass ===== */

/* Titles / muted text across modules */
html[data-theme="dark"] .sales-page-title,
html[data-theme="dark"] .customers-page-title,
html[data-theme="dark"] .products-page-title,
html[data-theme="dark"] .debts-page-title,
html[data-theme="dark"] .suppliers-page-title,
html[data-theme="dark"] .expenses-page-title,
html[data-theme="dark"] .reports-page-title,
html[data-theme="dark"] .users-page-title,
html[data-theme="dark"] .settings-page-title,
html[data-theme="dark"] .categories-page-title,
html[data-theme="dark"] .purchase-orders-page-title,
html[data-theme="dark"] .warehouse-page-title,
html[data-theme="dark"] .card-header-custom h2,
html[data-theme="dark"] .card-header-custom h3,
html[data-theme="dark"] .card-header-custom .h5 {
    color: #f1f5f9 !important;
}

html[data-theme="dark"] .sales-page-subtitle,
html[data-theme="dark"] .customers-page-subtitle,
html[data-theme="dark"] .products-page-subtitle,
html[data-theme="dark"] .debts-page-subtitle,
html[data-theme="dark"] .suppliers-page-subtitle,
html[data-theme="dark"] .expenses-page-subtitle,
html[data-theme="dark"] .reports-page-subtitle,
html[data-theme="dark"] .users-page-subtitle,
html[data-theme="dark"] .settings-page-subtitle,
html[data-theme="dark"] .customers-muted,
html[data-theme="dark"] .debts-muted,
html[data-theme="dark"] .products-muted,
html[data-theme="dark"] .suppliers-muted {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .content-card .card-header-custom {
    border-color: #334155 !important;
    background: #0f172a !important;
    color: #e2e8f0 !important;
}

/* Shared table hover + thead (module-specific beats Bootstrap vars) */
html[data-theme="dark"] .sales-table thead th,
html[data-theme="dark"] .customers-table thead th,
html[data-theme="dark"] .products-table thead th,
html[data-theme="dark"] .categories-table thead th,
html[data-theme="dark"] .suppliers-table thead th,
html[data-theme="dark"] .purchase-orders-table thead th,
html[data-theme="dark"] .expenses-table thead th,
html[data-theme="dark"] .debts-table thead th,
html[data-theme="dark"] .reports-table thead th,
html[data-theme="dark"] .users-table thead th,
html[data-theme="dark"] .dashboard-table thead th,
html[data-theme="dark"] .orders-table thead th,
html[data-theme="dark"] .warehouse-table thead th {
    background: #0f172a !important;
    color: #cbd5e1 !important;
    border-color: #334155 !important;
}

html[data-theme="dark"] .sales-table tbody tr:hover,
html[data-theme="dark"] .customers-table tbody tr:hover,
html[data-theme="dark"] .products-table tbody tr:hover,
html[data-theme="dark"] .categories-table tbody tr:hover,
html[data-theme="dark"] .suppliers-table tbody tr:hover,
html[data-theme="dark"] .purchase-orders-table tbody tr:hover,
html[data-theme="dark"] .expenses-table tbody tr:hover,
html[data-theme="dark"] .debts-table tbody tr:hover,
html[data-theme="dark"] .reports-table tbody tr:hover,
html[data-theme="dark"] .users-table tbody tr:hover,
html[data-theme="dark"] .dashboard-table tbody tr:hover,
html[data-theme="dark"] .orders-table tbody tr:hover,
html[data-theme="dark"] .warehouse-table tbody tr:hover,
html[data-theme="dark"] .table tbody tr:hover {
    background: rgba(59, 130, 246, 0.1) !important;
}

html[data-theme="dark"] .sales-table tbody td,
html[data-theme="dark"] .customers-table tbody td,
html[data-theme="dark"] .products-table tbody td,
html[data-theme="dark"] .categories-table tbody td,
html[data-theme="dark"] .suppliers-table tbody td,
html[data-theme="dark"] .purchase-orders-table tbody td,
html[data-theme="dark"] .expenses-table tbody td,
html[data-theme="dark"] .debts-table tbody td,
html[data-theme="dark"] .reports-table tbody td,
html[data-theme="dark"] .users-table tbody td {
    border-color: #1f2a3a !important;
    color: #e2e8f0 !important;
}

/* Mobile cards across modules */
html[data-theme="dark"] .sales-card,
html[data-theme="dark"] .customer-card,
html[data-theme="dark"] .product-card,
html[data-theme="dark"] .supplier-card,
html[data-theme="dark"] .debts-card,
html[data-theme="dark"] .expense-card,
html[data-theme="dark"] .user-card,
html[data-theme="dark"] .purchase-order-card,
html[data-theme="dark"] .report-card,
html[data-theme="dark"] .category-card {
    background: #111827 !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28) !important;
}

html[data-theme="dark"] .sales-card-top,
html[data-theme="dark"] .customer-card-top,
html[data-theme="dark"] .product-card-top,
html[data-theme="dark"] .supplier-card-top,
html[data-theme="dark"] .debts-card-top,
html[data-theme="dark"] .expense-card-head,
html[data-theme="dark"] .user-card-head,
html[data-theme="dark"] .report-card-top,
html[data-theme="dark"] .purchase-order-card-top {
    background: #0f172a !important;
    border-color: #334155 !important;
}

/* Action buttons / empty icons */
html[data-theme="dark"] .sales-action-btn,
html[data-theme="dark"] .customers-action-btn,
html[data-theme="dark"] .products-action-btn,
html[data-theme="dark"] .product-card-action,
html[data-theme="dark"] .suppliers-action-btn,
html[data-theme="dark"] .debts-action-btn,
html[data-theme="dark"] .expenses-action-btn,
html[data-theme="dark"] .users-action-btn,
html[data-theme="dark"] .purchase-orders-action-btn,
html[data-theme="dark"] .reports-action-btn {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .sales-action-btn:hover,
html[data-theme="dark"] .customers-action-btn:hover,
html[data-theme="dark"] .products-action-btn:hover,
html[data-theme="dark"] .product-card-action:hover,
html[data-theme="dark"] .suppliers-action-btn:hover,
html[data-theme="dark"] .debts-action-btn:hover,
html[data-theme="dark"] .expenses-action-btn:hover,
html[data-theme="dark"] .users-action-btn:hover,
html[data-theme="dark"] .purchase-orders-action-btn:hover {
    background: #243044 !important;
    color: #f8fafc !important;
    border-color: #475569 !important;
}

html[data-theme="dark"] .sales-empty-icon,
html[data-theme="dark"] .customers-empty-icon,
html[data-theme="dark"] .products-empty-icon,
html[data-theme="dark"] .suppliers-empty-icon,
html[data-theme="dark"] .debts-empty-icon,
html[data-theme="dark"] .expenses-empty-icon,
html[data-theme="dark"] .users-empty-icon,
html[data-theme="dark"] .purchase-orders-empty-icon,
html[data-theme="dark"] .reports-empty-icon {
    background: #1e293b !important;
    color: #94a3b8 !important;
}

html[data-theme="dark"] .sales-empty,
html[data-theme="dark"] .customers-empty,
html[data-theme="dark"] .products-empty,
html[data-theme="dark"] .suppliers-empty,
html[data-theme="dark"] .debts-empty,
html[data-theme="dark"] .expenses-empty,
html[data-theme="dark"] .users-empty {
    color: #94a3b8 !important;
}

/* Section heads / form sections */
html[data-theme="dark"] .product-form-section-head,
html[data-theme="dark"] .supplier-form-section-head,
html[data-theme="dark"] .expenses-form-section-head,
html[data-theme="dark"] .user-form-section-head,
html[data-theme="dark"] .settings-form-section-head,
html[data-theme="dark"] .settings-info-head,
html[data-theme="dark"] .debts-section-head,
html[data-theme="dark"] .reports-result-head,
html[data-theme="dark"] .users-roles-head {
    background: #0f172a !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .product-form-section-icon,
html[data-theme="dark"] .supplier-form-section-icon,
html[data-theme="dark"] .expenses-form-section-icon,
html[data-theme="dark"] .user-form-section-icon,
html[data-theme="dark"] .settings-form-section-icon,
html[data-theme="dark"] .settings-info-icon,
html[data-theme="dark"] .debts-section-icon,
html[data-theme="dark"] .reports-result-icon {
    background: rgba(59, 130, 246, 0.16) !important;
    color: #93c5fd !important;
}

/* Sticky mobile form footers */
html[data-theme="dark"] .product-form-actions,
html[data-theme="dark"] .supplier-form-actions,
html[data-theme="dark"] .expenses-form-actions,
html[data-theme="dark"] .user-form-actions,
html[data-theme="dark"] .settings-form-actions {
    background: linear-gradient(180deg, rgba(11, 18, 32, 0) 0%, #0b1220 28%, #0b1220 100%) !important;
    border-color: #334155 !important;
}

/* Filters / chips */
html[data-theme="dark"] .products-filter-chip,
html[data-theme="dark"] .reports-nav-pill,
html[data-theme="dark"] .tg-preset-chip,
html[data-theme="dark"] .customer-debt-pill-clear,
html[data-theme="dark"] .debts-count-pill {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .products-filter-chip.is-active,
html[data-theme="dark"] .reports-nav-pill.active,
html[data-theme="dark"] .reports-mobile-item.active {
    background: rgba(59, 130, 246, 0.18) !important;
    border-color: #3b82f6 !important;
    color: #93c5fd !important;
}

/* Stats cards */
html[data-theme="dark"] .reports-pl-card,
html[data-theme="dark"] .tg-stat-card {
    background: #111827 !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28) !important;
}

html[data-theme="dark"] .reports-pl-positive {
    background: linear-gradient(145deg, rgba(59, 130, 246, 0.12), #111827) !important;
}

html[data-theme="dark"] .reports-pl-negative {
    background: linear-gradient(145deg, rgba(248, 113, 113, 0.12), #111827) !important;
}

html[data-theme="dark"] .tg-stat-label {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .tg-stat-value {
    color: #f8fafc !important;
}

/* Debts page — full dark pass */
html[data-theme="dark"] .debts-page {
    color: #e2e8f0;
}

html[data-theme="dark"] .debts-stat-card {
    background: #111827 !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28) !important;
}

html[data-theme="dark"] .debts-stat-customers {
    border-color: rgba(248, 113, 113, 0.4) !important;
    background: linear-gradient(135deg, #111827 0%, rgba(248, 113, 113, 0.12) 100%) !important;
}

html[data-theme="dark"] .debts-stat-suppliers {
    border-color: rgba(251, 191, 36, 0.4) !important;
    background: linear-gradient(135deg, #111827 0%, rgba(251, 191, 36, 0.12) 100%) !important;
}

html[data-theme="dark"] .debts-stat-icon {
    background: #1e293b !important;
    color: #94a3b8 !important;
}

html[data-theme="dark"] .debts-stat-customers .debts-stat-icon {
    color: #f87171 !important;
    background: rgba(248, 113, 113, 0.16) !important;
}

html[data-theme="dark"] .debts-stat-suppliers .debts-stat-icon {
    color: #fbbf24 !important;
    background: rgba(251, 191, 36, 0.16) !important;
}

html[data-theme="dark"] .debts-stat-value .money-usd {
    color: #f8fafc !important;
}

html[data-theme="dark"] .debts-stat-label,
html[data-theme="dark"] .debts-stat-note {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .debts-stat-value {
    color: #f8fafc !important;
}

html[data-theme="dark"] .debts-stat-customers .debts-stat-value .money-usd {
    color: #fca5a5 !important;
}

html[data-theme="dark"] .debts-stat-suppliers .debts-stat-value .money-usd {
    color: #fcd34d !important;
}

html[data-theme="dark"] .debts-stat-value .money-iqd {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .debts-section-card {
    background: #111827 !important;
    border-color: #334155 !important;
}

html[data-theme="dark"] .debts-section-head {
    background: #0f172a !important;
    border-bottom-color: #334155 !important;
}

html[data-theme="dark"] .debts-section-title h3 {
    color: #f1f5f9 !important;
}

html[data-theme="dark"] .debts-section-title p {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .debts-section-icon {
    background: rgba(59, 130, 246, 0.16) !important;
    color: #93c5fd !important;
}

html[data-theme="dark"] .debts-section-icon-supplier {
    background: rgba(251, 191, 36, 0.16) !important;
    color: #fbbf24 !important;
}

html[data-theme="dark"] .debts-name,
html[data-theme="dark"] .debts-card-name {
    color: #f8fafc !important;
}

html[data-theme="dark"] .debts-phone-link {
    color: #4ade80 !important;
}

html[data-theme="dark"] .debts-phone-link:hover {
    color: #86efac !important;
}

html[data-theme="dark"] .debts-count-pill {
    background: #1e293b !important;
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .debts-paid .money-usd {
    color: #4ade80 !important;
}

html[data-theme="dark"] .debts-amount-danger {
    background: rgba(248, 113, 113, 0.16) !important;
    color: #fca5a5 !important;
    border-color: rgba(248, 113, 113, 0.35) !important;
}

html[data-theme="dark"] .debts-amount-clear {
    background: rgba(74, 222, 128, 0.14) !important;
    color: #86efac !important;
    border-color: rgba(74, 222, 128, 0.3) !important;
}

html[data-theme="dark"] .debts-action-btn {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .debts-table tbody tr:hover td {
    background: rgba(59, 130, 246, 0.1) !important;
}

html[data-theme="dark"] .debts-card {
    background: #111827 !important;
    border-color: #334155 !important;
}

html[data-theme="dark"] .debts-card-meta {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .debts-empty-icon {
    background: #0f172a !important;
    border-color: #334155 !important;
    color: #64748b !important;
}

/* Dashboard extras */
html[data-theme="dark"] .dashboard-quick-link {
    background: #111827 !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .dashboard-quick-link:hover {
    background: #1e293b !important;
    border-color: #3b82f6 !important;
}

html[data-theme="dark"] .dashboard-quick-link-slate .dashboard-quick-icon { background: #1e293b !important; color: #cbd5e1 !important; }
html[data-theme="dark"] .dashboard-quick-link-amber .dashboard-quick-icon { background: rgba(251,191,36,.16) !important; color: #fcd34d !important; }
html[data-theme="dark"] .dashboard-quick-link-teal .dashboard-quick-icon { background: rgba(45,212,191,.14) !important; color: #5eead4 !important; }
html[data-theme="dark"] .dashboard-quick-link-purple .dashboard-quick-icon { background: rgba(167,139,250,.16) !important; color: #c4b5fd !important; }
html[data-theme="dark"] .dashboard-quick-link-green .dashboard-quick-icon { background: rgba(74,222,128,.14) !important; color: #86efac !important; }
html[data-theme="dark"] .dashboard-quick-link-pink .dashboard-quick-icon { background: rgba(244,114,182,.14) !important; color: #f9a8d4 !important; }
html[data-theme="dark"] .dashboard-quick-link-red .dashboard-quick-icon { background: rgba(248,113,113,.14) !important; color: #fca5a5 !important; }
html[data-theme="dark"] .dashboard-quick-link-orange .dashboard-quick-icon { background: rgba(251,146,60,.14) !important; color: #fdba74 !important; }
html[data-theme="dark"] .dashboard-quick-link-blue .dashboard-quick-icon { background: rgba(59,130,246,.16) !important; color: #93c5fd !important; }

html[data-theme="dark"] .dashboard-hero-action {
    background: #fff !important;
    color: #1d4ed8 !important;
}

html[data-theme="dark"] .dashboard-notice {
    background: rgba(251, 191, 36, 0.12) !important;
    border-color: rgba(251, 191, 36, 0.3) !important;
    color: #fcd34d !important;
}

/* Reports nav */
html[data-theme="dark"] .reports-mobile-item,
html[data-theme="dark"] .reports-nav-item {
    background: #111827 !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .reports-mobile-item-icon {
    background: #1e293b !important;
    color: #93c5fd !important;
}

html[data-theme="dark"] .reports-link {
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .reports-link:hover {
    color: #93c5fd !important;
}

/* Settings */
html[data-theme="dark"] .settings-subnav {
    background: #0f172a !important;
    border-color: #334155 !important;
}

html[data-theme="dark"] .settings-subnav-link {
    color: #94a3b8 !important;
    background: transparent !important;
}

html[data-theme="dark"] .settings-subnav-link:hover {
    background: #1e293b !important;
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .settings-subnav-link.active {
    background: rgba(59, 130, 246, 0.16) !important;
    color: #93c5fd !important;
}

html[data-theme="dark"] .expenses-amount-field {
    background: #0b1220 !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .expenses-amount-prefix {
    background: #1e293b !important;
    color: #93c5fd !important;
    border-color: #334155 !important;
}

html[data-theme="dark"] .users-role-item,
html[data-theme="dark"] .user-role-option,
html[data-theme="dark"] .users-role-cashier {
    background: #111827 !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .user-role-option input:checked + .user-role-option-cashier,
html[data-theme="dark"] .user-role-option input:checked + span,
html[data-theme="dark"] .users-role-item.is-active {
    background: rgba(59, 130, 246, 0.16) !important;
    border-color: #3b82f6 !important;
}

/* Telegram settings — full dark pass */
html[data-theme="dark"] .settings-telegram-section {
    background: #111827 !important;
    border-color: #334155 !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28) !important;
}

html[data-theme="dark"] .tg-enable-card {
    background: linear-gradient(145deg, rgba(14, 165, 233, 0.18), #0f172a 55%, #111827) !important;
    border-color: rgba(56, 189, 248, 0.35) !important;
    color: #e2e8f0 !important;
    box-shadow: none !important;
}

html[data-theme="dark"] .tg-enable-card-icon {
    background: #0284c7 !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35) !important;
}

html[data-theme="dark"] .tg-enable-card-text strong {
    color: #f1f5f9 !important;
}

html[data-theme="dark"] .tg-status-badge {
    background: #1e293b !important;
    color: #94a3b8 !important;
    border-color: #475569 !important;
}

html[data-theme="dark"] .tg-status-badge.is-active {
    background: rgba(56, 189, 248, 0.16) !important;
    color: #7dd3fc !important;
    border-color: rgba(56, 189, 248, 0.4) !important;
}

html[data-theme="dark"] .settings-telegram-switch-ui {
    background: #475569 !important;
}

html[data-theme="dark"] .settings-telegram-switch input:checked + .settings-telegram-switch-ui {
    background: #0284c7 !important;
}

html[data-theme="dark"] .tg-panel,
html[data-theme="dark"] .tg-stat-card {
    background: #0b1220 !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
    box-shadow: none !important;
}

html[data-theme="dark"] .tg-panel-head-icon {
    background: rgba(59, 130, 246, 0.16) !important;
    color: #93c5fd !important;
}

html[data-theme="dark"] .tg-panel-head-icon-schedule {
    background: rgba(251, 191, 36, 0.16) !important;
    color: #fbbf24 !important;
}

html[data-theme="dark"] .tg-panel-head h4 {
    color: #f1f5f9 !important;
}

html[data-theme="dark"] .tg-panel-head p,
html[data-theme="dark"] .tg-field-hint,
html[data-theme="dark"] .tg-stat-label,
html[data-theme="dark"] .tg-schedule-input span {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .tg-input-icon {
    color: #64748b !important;
}

html[data-theme="dark"] .tg-input,
html[data-theme="dark"] .tg-schedule-input .form-control {
    background: #111827 !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .tg-input:focus,
html[data-theme="dark"] .tg-schedule-input .form-control:focus {
    background: #111827 !important;
    border-color: #38bdf8 !important;
    color: #f8fafc !important;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.16) !important;
}

html[data-theme="dark"] .tg-preset-chip {
    background: #111827 !important;
    border-color: #334155 !important;
    color: #cbd5e1 !important;
    box-shadow: none !important;
}

html[data-theme="dark"] .tg-preset-chip:hover {
    border-color: #38bdf8 !important;
    color: #7dd3fc !important;
    background: rgba(14, 165, 233, 0.1) !important;
}

html[data-theme="dark"] .tg-preset-chip.active {
    background: #0284c7 !important;
    border-color: #0284c7 !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.28) !important;
}

html[data-theme="dark"] .tg-stat-icon {
    background: rgba(16, 185, 129, 0.16) !important;
    color: #34d399 !important;
}

html[data-theme="dark"] .tg-stat-icon-next {
    background: rgba(59, 130, 246, 0.16) !important;
    color: #93c5fd !important;
}

html[data-theme="dark"] .tg-stat-card strong {
    color: #f1f5f9 !important;
}

html[data-theme="dark"] .tg-btn-save {
    background: #0284c7 !important;
    border-color: #0284c7 !important;
    color: #fff !important;
}

html[data-theme="dark"] .tg-btn-save:hover {
    background: #0369a1 !important;
    border-color: #0369a1 !important;
    color: #fff !important;
}

html[data-theme="dark"] .tg-btn-test {
    background: rgba(14, 165, 233, 0.1) !important;
    border: 1px dashed rgba(56, 189, 248, 0.45) !important;
    color: #7dd3fc !important;
}

html[data-theme="dark"] .tg-btn-test:hover:not(:disabled) {
    background: #0284c7 !important;
    border-style: solid !important;
    border-color: #0284c7 !important;
    color: #fff !important;
}

html[data-theme="dark"] .tg-btn-test:disabled {
    background: #0f172a !important;
    border-color: #334155 !important;
    color: #64748b !important;
    opacity: 1 !important;
}

/* Debts amount pills */
html[data-theme="dark"] .debts-amount-pill.debts-amount-danger {
    background: rgba(248, 113, 113, 0.14) !important;
    color: #fca5a5 !important;
    border-color: rgba(248, 113, 113, 0.35) !important;
}

html[data-theme="dark"] .debts-amount-pill.debts-amount-clear {
    background: rgba(74, 222, 128, 0.14) !important;
    color: #86efac !important;
    border-color: rgba(74, 222, 128, 0.3) !important;
}

html[data-theme="dark"] .customers-action-pay:hover,
html[data-theme="dark"] .debts-action-pay:hover {
    background: rgba(34, 197, 94, 0.16) !important;
    color: #86efac !important;
    border-color: rgba(34, 197, 94, 0.35) !important;
}

/* Customers page — full dark pass */
html[data-theme="dark"] .customers-page {
    color: #e2e8f0;
}

html[data-theme="dark"] .customers-filter-label {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .customers-filters-card,
html[data-theme="dark"] .customers-list-card {
    background: #111827 !important;
    border-color: #334155 !important;
}

html[data-theme="dark"] .customer-name,
html[data-theme="dark"] .customer-card-name {
    color: #f8fafc !important;
}

html[data-theme="dark"] .customer-name.is-project-owner,
html[data-theme="dark"] .customer-card-name.is-project-owner,
html[data-theme="dark"] .customers-owner-hint {
    color: #60a5fa !important;
}

html[data-theme="dark"] .customer-owner-badge,
html[data-theme="dark"] .customer-owner-balance,
html[data-theme="dark"] .customer-project-count {
    background: rgba(96, 165, 250, 0.16) !important;
    color: #93c5fd !important;
}

html[data-theme="dark"] .customers-table tr.is-project-owner-row {
    background: rgba(37, 99, 235, 0.1) !important;
}

html[data-theme="dark"] .customers-table tr.is-project-owner-row td:first-child code {
    background: rgba(96, 165, 250, 0.18) !important;
    color: #93c5fd !important;
}

html[data-theme="dark"] .customer-card.is-project-owner-card {
    border-color: rgba(96, 165, 250, 0.4) !important;
}

html[data-theme="dark"] .customers-action-owner-btn {
    color: #60a5fa !important;
    border-color: rgba(96, 165, 250, 0.45) !important;
}

html[data-theme="dark"] .customer-phone-link {
    color: #4ade80 !important;
}

html[data-theme="dark"] .customer-phone-link:hover {
    color: #86efac !important;
}

html[data-theme="dark"] .customers-address,
html[data-theme="dark"] .customer-card-meta {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .customer-debt-pill-danger {
    background: rgba(248, 113, 113, 0.16) !important;
    color: #fca5a5 !important;
    border-color: rgba(248, 113, 113, 0.35) !important;
}

html[data-theme="dark"] .customer-debt-pill-clear {
    background: rgba(74, 222, 128, 0.14) !important;
    color: #86efac !important;
    border-color: rgba(74, 222, 128, 0.3) !important;
}

html[data-theme="dark"] .customer-purchase-count {
    background: #1e293b !important;
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .customers-action-btn {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .customers-action-btn:hover {
    background: rgba(59, 130, 246, 0.16) !important;
    border-color: #3b82f6 !important;
    color: #93c5fd !important;
}

html[data-theme="dark"] .customers-table tbody tr:hover td {
    background: rgba(59, 130, 246, 0.1) !important;
}

html[data-theme="dark"] .customers-table .money-usd {
    color: #f8fafc !important;
}

html[data-theme="dark"] .customers-table .money-iqd {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .customer-card {
    background: #111827 !important;
    border-color: #334155 !important;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28) !important;
}

html[data-theme="dark"] .customers-empty-icon {
    background: #0f172a !important;
    border-color: #334155 !important;
    color: #64748b !important;
}

html[data-theme="dark"] .customers-search-wrap i {
    color: #64748b !important;
}

/* Categories page — full dark pass */
html[data-theme="dark"] .categories-page {
    color: #e2e8f0;
}

html[data-theme="dark"] .categories-page-title {
    color: #f1f5f9 !important;
}

html[data-theme="dark"] .categories-page-subtitle {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .categories-form-card,
html[data-theme="dark"] .categories-list-card {
    background: #111827 !important;
    border-color: #334155 !important;
}

html[data-theme="dark"] .categories-form-head,
html[data-theme="dark"] .categories-list-head {
    background: #0f172a !important;
    border-bottom-color: #334155 !important;
}

html[data-theme="dark"] .categories-form-head h3,
html[data-theme="dark"] .categories-list-head h3 {
    color: #f1f5f9 !important;
}

html[data-theme="dark"] .categories-form-head p,
html[data-theme="dark"] .categories-list-head p {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .categories-form-icon {
    background: rgba(167, 139, 250, 0.16) !important;
    color: #c4b5fd !important;
}

html[data-theme="dark"] .categories-list-icon {
    background: rgba(59, 130, 246, 0.16) !important;
    color: #93c5fd !important;
}

html[data-theme="dark"] .categories-form-label {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .categories-form-body .form-control,
html[data-theme="dark"] .categories-edit-modal .form-control {
    background: #0f172a !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .categories-form-body .form-control:focus,
html[data-theme="dark"] .categories-edit-modal .form-control:focus {
    background: #0f172a !important;
    border-color: #3b82f6 !important;
    color: #f8fafc !important;
}

html[data-theme="dark"] .category-name,
html[data-theme="dark"] .category-card-name {
    color: #f8fafc !important;
}

html[data-theme="dark"] .category-desc,
html[data-theme="dark"] .category-card-desc {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .category-count-pill {
    background: #1e293b !important;
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .categories-table tbody tr:hover td {
    background: rgba(59, 130, 246, 0.1) !important;
}

html[data-theme="dark"] .categories-action-btn {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .categories-action-btn:hover {
    background: rgba(59, 130, 246, 0.16) !important;
    border-color: #3b82f6 !important;
    color: #93c5fd !important;
}

html[data-theme="dark"] .categories-action-delete:hover {
    background: rgba(248, 113, 113, 0.16) !important;
    border-color: rgba(248, 113, 113, 0.4) !important;
    color: #fca5a5 !important;
}

html[data-theme="dark"] .category-card {
    background: #111827 !important;
    border-color: #334155 !important;
}

html[data-theme="dark"] .category-card-actions {
    border-top-color: #334155 !important;
}

html[data-theme="dark"] .category-card-action {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .category-card-action-edit {
    background: rgba(59, 130, 246, 0.14) !important;
    border-color: rgba(59, 130, 246, 0.35) !important;
    color: #93c5fd !important;
}

html[data-theme="dark"] .category-card-action-delete {
    background: rgba(248, 113, 113, 0.14) !important;
    border-color: rgba(248, 113, 113, 0.35) !important;
    color: #fca5a5 !important;
}

html[data-theme="dark"] .categories-empty {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .categories-empty-icon {
    background: #0f172a !important;
    border-color: #334155 !important;
    color: #64748b !important;
}

html[data-theme="dark"] .categories-edit-modal .modal-content {
    background: #111827 !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .categories-edit-modal .modal-header,
html[data-theme="dark"] .categories-edit-modal .modal-footer {
    background: #0f172a !important;
    border-color: #334155 !important;
}

html[data-theme="dark"] .categories-edit-modal .modal-title {
    color: #f1f5f9 !important;
}

/* Supplier form (add/edit) — full dark pass */
html[data-theme="dark"] .supplier-form-page {
    color: #e2e8f0;
}

html[data-theme="dark"] .supplier-form-title {
    color: #f1f5f9 !important;
}

html[data-theme="dark"] .supplier-form-subtitle {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .supplier-form-section {
    background: #111827 !important;
    border-color: #334155 !important;
}

html[data-theme="dark"] .supplier-form-section-head {
    background: #0f172a !important;
    border-bottom-color: #334155 !important;
}

html[data-theme="dark"] .supplier-form-section-head h3 {
    color: #f1f5f9 !important;
}

html[data-theme="dark"] .supplier-form-section-head p {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .supplier-form-section-icon {
    background: rgba(251, 146, 60, 0.16) !important;
    color: #fdba74 !important;
}

html[data-theme="dark"] .supplier-form-label {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .supplier-form-section-body .form-control,
html[data-theme="dark"] .supplier-form-section-body textarea {
    background: #0f172a !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .supplier-form-section-body .form-control:focus,
html[data-theme="dark"] .supplier-form-section-body textarea:focus {
    background: #0f172a !important;
    border-color: #3b82f6 !important;
    color: #f8fafc !important;
}

html[data-theme="dark"] .supplier-phone-field {
    background: #111827 !important;
    border-color: #334155 !important;
}

html[data-theme="dark"] .supplier-phone-field:focus-within {
    border-color: #4ade80 !important;
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.16) !important;
}

html[data-theme="dark"] .supplier-phone-prefix {
    background: rgba(74, 222, 128, 0.14) !important;
    border-color: #334155 !important;
    color: #86efac !important;
}

html[data-theme="dark"] .supplier-phone-field .form-control {
    background: #111827 !important;
    color: #f8fafc !important;
}

html[data-theme="dark"] .supplier-form-actions {
    border-top-color: #334155 !important;
    background: linear-gradient(180deg, rgba(11, 18, 32, 0) 0%, #0b1220 28%, #0b1220 100%) !important;
}

/* Suppliers list — dark pass */
html[data-theme="dark"] .suppliers-page {
    color: #e2e8f0;
}

html[data-theme="dark"] .suppliers-filters-card,
html[data-theme="dark"] .suppliers-list-card {
    background: #111827 !important;
    border-color: #334155 !important;
}

html[data-theme="dark"] .suppliers-filter-label {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .suppliers-search-wrap i {
    color: #64748b !important;
}

html[data-theme="dark"] .supplier-name,
html[data-theme="dark"] .supplier-card-name {
    color: #f8fafc !important;
}

html[data-theme="dark"] .supplier-phone-link {
    color: #4ade80 !important;
}

html[data-theme="dark"] .supplier-phone-link:hover {
    color: #86efac !important;
}

html[data-theme="dark"] .supplier-card-meta,
html[data-theme="dark"] .suppliers-muted {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .supplier-debt-pill-danger {
    background: rgba(248, 113, 113, 0.16) !important;
    color: #fca5a5 !important;
    border-color: rgba(248, 113, 113, 0.35) !important;
}

html[data-theme="dark"] .supplier-debt-pill-clear {
    background: rgba(74, 222, 128, 0.14) !important;
    color: #86efac !important;
    border-color: rgba(74, 222, 128, 0.3) !important;
}

html[data-theme="dark"] .supplier-purchase-count {
    background: #1e293b !important;
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .suppliers-action-btn {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .suppliers-action-btn:hover {
    background: rgba(59, 130, 246, 0.16) !important;
    border-color: #3b82f6 !important;
    color: #93c5fd !important;
}

html[data-theme="dark"] .supplier-card {
    background: #111827 !important;
    border-color: #334155 !important;
}

html[data-theme="dark"] .supplier-card-actions {
    border-top-color: #334155 !important;
}

html[data-theme="dark"] .supplier-card-action {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .supplier-card-action-pay {
    background: rgba(74, 222, 128, 0.14) !important;
    border-color: rgba(74, 222, 128, 0.3) !important;
    color: #86efac !important;
}

html[data-theme="dark"] .supplier-card-action-edit {
    background: rgba(59, 130, 246, 0.14) !important;
    border-color: rgba(59, 130, 246, 0.35) !important;
    color: #93c5fd !important;
}

html[data-theme="dark"] .suppliers-empty-icon {
    background: #0f172a !important;
    border-color: #334155 !important;
    color: #64748b !important;
}

/* Expenses page — full dark pass */
html[data-theme="dark"] .expenses-page {
    color: #e2e8f0;
}

html[data-theme="dark"] .expenses-hero,
html[data-theme="dark"] .expenses-page-head {
    --expenses-hero-ink: #f1f5f9;
    --expenses-hero-muted: #94a3b8;
    --expenses-hero-line: #334155;
    --expenses-hero-soft: #111827;
    --expenses-hero-accent: #2dd4bf;
    --expenses-hero-accent-soft: rgba(45, 212, 191, 0.14);
    background:
        linear-gradient(135deg, rgba(45, 212, 191, 0.08), transparent 42%),
        #111827 !important;
    border-color: #334155 !important;
    box-shadow: none !important;
}

html[data-theme="dark"] .expenses-hero-mark {
    background: rgba(45, 212, 191, 0.14) !important;
    color: #2dd4bf !important;
}

html[data-theme="dark"] .expenses-hero-metrics {
    background: transparent !important;
    border-color: #334155 !important;
}

html[data-theme="dark"] .expenses-hero-metric {
    background: transparent !important;
    border-color: #334155 !important;
}

html[data-theme="dark"] .expenses-hero-metric.is-total {
    background: transparent !important;
}

html[data-theme="dark"] .expenses-hero-metric-label {
    color: #64748b !important;
}

html[data-theme="dark"] .expenses-hero-metric-value {
    color: #f8fafc !important;
}

html[data-theme="dark"] .expenses-hero-metric.is-total .expenses-hero-metric-value {
    color: #2dd4bf !important;
}

html[data-theme="dark"] .expenses-form-section,
html[data-theme="dark"] .expenses-categories-section,
html[data-theme="dark"] .expenses-page .content-card,
html[data-theme="dark"] .expenses-filters-card,
html[data-theme="dark"] .expenses-list-card {
    background: #111827 !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
    box-shadow: none !important;
}

html[data-theme="dark"] .expenses-report-title {
    color: #f1f5f9 !important;
}

html[data-theme="dark"] .expenses-report-subtitle {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .expenses-form-section-head {
    background: #0f172a !important;
    border-bottom-color: #334155 !important;
}

html[data-theme="dark"] .expenses-form-section-head h3 {
    color: #f1f5f9 !important;
}

html[data-theme="dark"] .expenses-form-section-head p {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .expenses-form-section-icon {
    background: rgba(248, 113, 113, 0.16) !important;
    color: #fca5a5 !important;
}

html[data-theme="dark"] .expenses-form-section-body {
    background: #111827 !important;
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .expenses-form-label,
html[data-theme="dark"] .expenses-filter-label {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .expenses-form-section-body .form-control,
html[data-theme="dark"] .expenses-form-section-body .form-select,
html[data-theme="dark"] .expenses-form-section-body textarea,
html[data-theme="dark"] .expenses-filters .form-control,
html[data-theme="dark"] .expenses-filters .form-select {
    background: #0b1220 !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
    box-shadow: none !important;
}

html[data-theme="dark"] .expenses-form-section-body .form-control::placeholder,
html[data-theme="dark"] .expenses-form-section-body textarea::placeholder {
    color: #64748b !important;
}

html[data-theme="dark"] .expenses-form-section-body .form-control:focus,
html[data-theme="dark"] .expenses-form-section-body .form-select:focus,
html[data-theme="dark"] .expenses-form-section-body textarea:focus,
html[data-theme="dark"] .expenses-filters .form-control:focus,
html[data-theme="dark"] .expenses-filters .form-select:focus {
    background: #0b1220 !important;
    border-color: #3b82f6 !important;
    color: #f8fafc !important;
}

html[data-theme="dark"] .expenses-form-section-body .form-select option,
html[data-theme="dark"] .expenses-filters .form-select option {
    background: #111827;
    color: #e2e8f0;
}

html[data-theme="dark"] .expenses-amount-field {
    background: #0b1220 !important;
    border-color: #334155 !important;
}

html[data-theme="dark"] .expenses-amount-field:focus-within {
    border-color: #f87171 !important;
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.16) !important;
}

html[data-theme="dark"] .expenses-amount-prefix {
    background: rgba(248, 113, 113, 0.16) !important;
    border-color: #334155 !important;
    color: #fca5a5 !important;
}

html[data-theme="dark"] .expenses-amount-field .form-control {
    background: #0b1220 !important;
    color: #f8fafc !important;
}

html[data-theme="dark"] .expenses-form-actions {
    border-top-color: #334155 !important;
    background: transparent !important;
}

html[data-theme="dark"] .expenses-form-submit.btn-primary {
    background: #2563eb !important;
    border-color: #2563eb !important;
    color: #fff !important;
}

html[data-theme="dark"] .expenses-form-submit.btn-outline-primary {
    background: transparent !important;
    border-color: #334155 !important;
    color: #93c5fd !important;
}

html[data-theme="dark"] .expenses-form-submit.btn-outline-primary:hover {
    background: rgba(59, 130, 246, 0.16) !important;
    border-color: #3b82f6 !important;
    color: #bfdbfe !important;
}

html[data-theme="dark"] .expense-category-list {
    border-color: #334155 !important;
}

html[data-theme="dark"] .expense-category-row {
    background: #0b1220 !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .expense-category-row .text-muted {
    color: #64748b !important;
}

html[data-theme="dark"] .expenses-categories-section {
    background: #111827 !important;
    border-color: #334155 !important;
}

html[data-theme="dark"] .expenses-page .expense-category-choice {
    background: #0b1220 !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .expenses-page .expense-category-choice:hover {
    border-color: #475569 !important;
    background: #111827 !important;
}

html[data-theme="dark"] .expenses-page .expense-category-choice.is-active {
    background: rgba(45, 212, 191, 0.14) !important;
    border-color: #2dd4bf !important;
    color: #5eead4 !important;
    box-shadow: none !important;
}

html[data-theme="dark"] .expense-amount-cell,
html[data-theme="dark"] .expense-card-amount {
    color: #fca5a5 !important;
}

html[data-theme="dark"] .expense-notes-cell,
html[data-theme="dark"] .expense-card-notes,
html[data-theme="dark"] .expense-card-meta {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .expense-category-pill {
    background: #1e293b !important;
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .expense-category-rent {
    background: rgba(59, 130, 246, 0.16) !important;
    color: #93c5fd !important;
}

html[data-theme="dark"] .expense-category-salary {
    background: rgba(74, 222, 128, 0.14) !important;
    color: #86efac !important;
}

html[data-theme="dark"] .expense-category-electricity {
    background: rgba(251, 191, 36, 0.14) !important;
    color: #fbbf24 !important;
}

html[data-theme="dark"] .expense-category-transport {
    background: rgba(167, 139, 250, 0.16) !important;
    color: #c4b5fd !important;
}

html[data-theme="dark"] .expense-category-other {
    background: #1e293b !important;
    color: #94a3b8 !important;
}

html[data-theme="dark"] .expenses-action-btn {
    background: #1e293b !important;
    border-color: rgba(248, 113, 113, 0.35) !important;
    color: #fca5a5 !important;
}

html[data-theme="dark"] .expenses-action-btn:hover {
    background: rgba(248, 113, 113, 0.16) !important;
    border-color: rgba(248, 113, 113, 0.5) !important;
    color: #fecaca !important;
}

html[data-theme="dark"] .expenses-table tbody tr:hover td {
    background: rgba(248, 113, 113, 0.08) !important;
}

html[data-theme="dark"] .expense-card {
    background: #111827 !important;
    border-color: #334155 !important;
}

html[data-theme="dark"] .expense-card-top {
    background: #0f172a !important;
    border-bottom-color: #334155 !important;
}

html[data-theme="dark"] .expense-card-date {
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .expense-card-actions {
    border-top-color: #334155 !important;
}

html[data-theme="dark"] .expense-card-action {
    background: #1e293b !important;
    border-color: rgba(248, 113, 113, 0.35) !important;
    color: #fca5a5 !important;
}

html[data-theme="dark"] .expense-card-action:hover {
    background: rgba(248, 113, 113, 0.16) !important;
    color: #fecaca !important;
}

html[data-theme="dark"] .expenses-empty {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .expenses-empty-icon {
    background: rgba(248, 113, 113, 0.14) !important;
    color: #fca5a5 !important;
}

/* Users page — full dark pass */
html[data-theme="dark"] .users-page {
    color: #e2e8f0;
}

html[data-theme="dark"] .users-roles-card,
html[data-theme="dark"] .users-filters-card,
html[data-theme="dark"] .users-list-card {
    background: #111827 !important;
    border-color: #334155 !important;
}

html[data-theme="dark"] .users-roles-head {
    background: #0f172a !important;
    border-bottom-color: #334155 !important;
}

html[data-theme="dark"] .users-roles-head h3 {
    color: #f1f5f9 !important;
}

html[data-theme="dark"] .users-roles-head p {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .users-roles-icon {
    background: rgba(59, 130, 246, 0.16) !important;
    color: #93c5fd !important;
}

html[data-theme="dark"] .users-role-item {
    background: #0f172a !important;
    border-color: #334155 !important;
}

html[data-theme="dark"] .users-role-admin {
    border-color: rgba(59, 130, 246, 0.4) !important;
    background: linear-gradient(135deg, #0f172a 0%, rgba(59, 130, 246, 0.12) 100%) !important;
}

html[data-theme="dark"] .users-role-cashier {
    border-color: #334155 !important;
    background: #111827 !important;
}

html[data-theme="dark"] .users-role-admin .users-role-badge {
    color: #93c5fd !important;
}

html[data-theme="dark"] .users-role-cashier .users-role-badge {
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .users-role-item p,
html[data-theme="dark"] .users-filter-label {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .users-search-wrap i {
    color: #64748b !important;
}

html[data-theme="dark"] .users-filters .form-control {
    background: #0f172a !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .users-filters .form-control:focus {
    border-color: #3b82f6 !important;
    color: #f8fafc !important;
}

html[data-theme="dark"] .user-name,
html[data-theme="dark"] .user-card-name {
    color: #f8fafc !important;
}

html[data-theme="dark"] .user-username {
    background: #1e293b !important;
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .user-role-pill-admin {
    background: rgba(59, 130, 246, 0.16) !important;
    color: #93c5fd !important;
    border-color: rgba(59, 130, 246, 0.35) !important;
}

html[data-theme="dark"] .user-role-pill-cashier {
    background: #1e293b !important;
    color: #cbd5e1 !important;
    border-color: #334155 !important;
}

html[data-theme="dark"] .users-action-btn {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .users-action-btn:hover {
    background: rgba(59, 130, 246, 0.16) !important;
    border-color: #3b82f6 !important;
    color: #93c5fd !important;
}

html[data-theme="dark"] .users-table tbody tr:hover td {
    background: rgba(59, 130, 246, 0.1) !important;
}

html[data-theme="dark"] .user-card {
    background: #111827 !important;
    border-color: #334155 !important;
}

html[data-theme="dark"] .user-card-top {
    background: #0f172a !important;
    border-bottom-color: #334155 !important;
}

html[data-theme="dark"] .user-card-username,
html[data-theme="dark"] .user-card-meta {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .user-card-action {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #93c5fd !important;
}

html[data-theme="dark"] .user-card-action:hover {
    background: rgba(59, 130, 246, 0.16) !important;
    border-color: #3b82f6 !important;
    color: #bfdbfe !important;
}

html[data-theme="dark"] .users-empty {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .users-empty-icon {
    background: rgba(59, 130, 246, 0.14) !important;
    color: #93c5fd !important;
}

/* User form — dark pass */
html[data-theme="dark"] .user-form-page {
    color: #e2e8f0;
}

html[data-theme="dark"] .user-form-title {
    color: #f1f5f9 !important;
}

html[data-theme="dark"] .user-form-subtitle,
html[data-theme="dark"] .user-form-hint {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .user-form-section {
    background: #111827 !important;
    border-color: #334155 !important;
}

html[data-theme="dark"] .user-form-section-head {
    background: #0f172a !important;
    border-bottom-color: #334155 !important;
}

html[data-theme="dark"] .user-form-section-head h3 {
    color: #f1f5f9 !important;
}

html[data-theme="dark"] .user-form-section-head p {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .user-form-section-icon {
    background: rgba(59, 130, 246, 0.16) !important;
    color: #93c5fd !important;
}

html[data-theme="dark"] .user-form-label {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .user-input-field {
    background: #111827 !important;
    border-color: #334155 !important;
}

html[data-theme="dark"] .user-input-field:focus-within {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.16) !important;
}

html[data-theme="dark"] .user-input-prefix {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #94a3b8 !important;
}

html[data-theme="dark"] .user-input-field .form-control,
html[data-theme="dark"] .user-form-section-body .form-control,
html[data-theme="dark"] .user-form-section-body .form-select {
    background: #111827 !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .user-role-option-body {
    background: #0f172a !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .user-role-option-icon {
    background: #1e293b !important;
    color: #94a3b8 !important;
}

html[data-theme="dark"] .user-role-option-text strong {
    color: #f8fafc !important;
}

html[data-theme="dark"] .user-role-option-text small {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .user-role-option input:checked + .user-role-option-body,
html[data-theme="dark"] .user-role-option input:checked + .user-role-option-admin {
    background: rgba(59, 130, 246, 0.14) !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12) !important;
}

html[data-theme="dark"] .user-role-option input:checked + .user-role-option-cashier {
    background: #1e293b !important;
    border-color: #64748b !important;
    box-shadow: 0 0 0 3px rgba(100, 116, 139, 0.16) !important;
}

html[data-theme="dark"] .user-role-option input:checked + .user-role-option-admin .user-role-option-icon {
    background: rgba(59, 130, 246, 0.2) !important;
    color: #93c5fd !important;
}

html[data-theme="dark"] .user-role-option input:checked + .user-role-option-cashier .user-role-option-icon {
    background: #334155 !important;
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .user-form-actions {
    border-top-color: #334155 !important;
    background: linear-gradient(180deg, rgba(11, 18, 32, 0) 0%, #0b1220 28%, #0b1220 100%) !important;
}

/* Settings page — full dark pass */
html[data-theme="dark"] .settings-page {
    color: #e2e8f0;
}

html[data-theme="dark"] .settings-page .content-card,
html[data-theme="dark"] .settings-form-section,
html[data-theme="dark"] .settings-info-section,
html[data-theme="dark"] .settings-backup-section,
html[data-theme="dark"] .settings-telegram-section {
    background: #111827 !important;
    border-color: #334155 !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28) !important;
}

html[data-theme="dark"] .settings-form-section-head,
html[data-theme="dark"] .settings-info-head,
html[data-theme="dark"] .settings-backup-section .settings-form-section-head,
html[data-theme="dark"] .settings-telegram-section .settings-form-section-head {
    background: #0f172a !important;
    border-bottom: 1px solid #334155 !important;
}

html[data-theme="dark"] .settings-form-section-head h3,
html[data-theme="dark"] .settings-info-head h3 {
    color: #f1f5f9 !important;
}

html[data-theme="dark"] .settings-form-section-head p,
html[data-theme="dark"] .settings-info-head p {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .settings-form-section-icon {
    background: rgba(251, 191, 36, 0.16) !important;
    color: #fbbf24 !important;
}

html[data-theme="dark"] .settings-backup-icon {
    background: rgba(16, 185, 129, 0.16) !important;
    color: #34d399 !important;
}

html[data-theme="dark"] .settings-info-icon {
    background: rgba(59, 130, 246, 0.16) !important;
    color: #93c5fd !important;
}

html[data-theme="dark"] .settings-form-label,
html[data-theme="dark"] .settings-examples-label,
html[data-theme="dark"] .settings-form-hint {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .settings-form-section-body .form-control,
html[data-theme="dark"] .settings-form-section-body .form-select,
html[data-theme="dark"] .settings-import-field .form-control {
    background: #0b1220 !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .settings-form-section-body .form-control:focus,
html[data-theme="dark"] .settings-form-section-body .form-select:focus,
html[data-theme="dark"] .settings-import-field .form-control:focus {
    background: #0b1220 !important;
    border-color: #3b82f6 !important;
    color: #f8fafc !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.16) !important;
}

html[data-theme="dark"] .settings-import-field .form-control::file-selector-button,
html[data-theme="dark"] .settings-import-field .form-control::-webkit-file-upload-button {
    background: #1e293b !important;
    border: 0 !important;
    border-inline-end: 1px solid #334155 !important;
    color: #e2e8f0 !important;
    margin-inline-end: 0.75rem;
    box-shadow: none !important;
}

html[data-theme="dark"] .settings-rate-field {
    background: #111827 !important;
    border-color: #334155 !important;
}

html[data-theme="dark"] .settings-rate-field:focus-within {
    border-color: #fbbf24 !important;
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.16) !important;
}

html[data-theme="dark"] .settings-rate-prefix {
    background: rgba(251, 191, 36, 0.14) !important;
    border-color: #334155 !important;
    color: #fbbf24 !important;
}

html[data-theme="dark"] .settings-rate-suffix {
    background: rgba(74, 222, 128, 0.14) !important;
    border-color: #334155 !important;
    color: #86efac !important;
}

html[data-theme="dark"] .settings-rate-field .form-control {
    background: #111827 !important;
    color: #f8fafc !important;
}

html[data-theme="dark"] .settings-example-card {
    background: #0f172a !important;
    border-color: #334155 !important;
    color: #f8fafc !important;
}

html[data-theme="dark"] .settings-example-card .money-iqd,
html[data-theme="dark"] .settings-example-iqd {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .settings-form-actions {
    border-top-color: #334155 !important;
    background: linear-gradient(180deg, rgba(11, 18, 32, 0) 0%, #0b1220 28%, #0b1220 100%) !important;
}

html[data-theme="dark"] .settings-form-section-body .form-check-label,
html[data-theme="dark"] .settings-form-section-body .form-text,
html[data-theme="dark"] .settings-import-confirm {
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .settings-backup-card {
    background: #0b1220 !important;
    border-color: #334155 !important;
    box-shadow: inset 0 1px 0 rgba(148, 163, 184, 0.04);
}

html[data-theme="dark"] .settings-backup-card h4 {
    color: #f1f5f9 !important;
}

html[data-theme="dark"] .settings-backup-card p {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .settings-backup-card-icon {
    background: rgba(59, 130, 246, 0.16) !important;
    color: #93c5fd !important;
    border: 1px solid rgba(59, 130, 246, 0.28) !important;
}

html[data-theme="dark"] .settings-backup-import-icon {
    background: rgba(248, 113, 113, 0.14) !important;
    color: #fca5a5 !important;
    border-color: rgba(248, 113, 113, 0.28) !important;
}

html[data-theme="dark"] .invoice-design-preview-wrap {
    background: #0b1220 !important;
    border-color: #334155 !important;
}
html[data-theme="dark"] .invoice-design-color-row input[type="color"] {
    background: #0f172a !important;
    border-color: #334155 !important;
}

html[data-theme="dark"] .settings-page .btn-outline-primary {
    background: transparent !important;
    border-color: rgba(59, 130, 246, 0.55) !important;
    color: #93c5fd !important;
}

html[data-theme="dark"] .settings-page .btn-outline-primary:hover {
    background: rgba(59, 130, 246, 0.16) !important;
    border-color: #3b82f6 !important;
    color: #bfdbfe !important;
}

html[data-theme="dark"] .settings-page .btn-danger {
    background: #dc2626 !important;
    border-color: #dc2626 !important;
    color: #fff !important;
}

html[data-theme="dark"] .settings-page .btn-danger:hover {
    background: #b91c1c !important;
    border-color: #b91c1c !important;
}

html[data-theme="dark"] .settings-subnav {
    background: #111827 !important;
    border-color: #334155 !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

html[data-theme="dark"] .settings-subnav-link {
    color: #94a3b8 !important;
    background: transparent !important;
    box-shadow: none !important;
}

html[data-theme="dark"] .settings-subnav-link:hover {
    background: #1e293b !important;
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .settings-subnav-link.active {
    background: rgba(59, 130, 246, 0.18) !important;
    color: #93c5fd !important;
    box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.35) !important;
}

html[data-theme="dark"] .settings-subnav-link-telegram.active {
    background: rgba(56, 189, 248, 0.16) !important;
    color: #7dd3fc !important;
    box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.35) !important;
}

html[data-theme="dark"] .settings-subnav-link-telegram.active i {
    color: #7dd3fc !important;
}

html[data-theme="dark"] .currency-hero {
    background:
        radial-gradient(1200px 200px at 10% -20%, rgba(251, 191, 36, 0.12), transparent 55%),
        radial-gradient(900px 180px at 90% 0%, rgba(16, 185, 129, 0.1), transparent 50%),
        linear-gradient(180deg, #111827 0%, #0f172a 100%) !important;
    border-color: #334155 !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28) !important;
}

html[data-theme="dark"] .currency-hero-side {
    background: #111827 !important;
    border-color: #334155 !important;
}

html[data-theme="dark"] .currency-hero-code,
html[data-theme="dark"] .currency-hero-note {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .currency-hero-side strong {
    color: #f8fafc !important;
}

html[data-theme="dark"] .currency-hero-eq {
    background: #1e293b !important;
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .settings-credit-field {
    background: #111827 !important;
    border-color: #334155 !important;
}

html[data-theme="dark"] .settings-credit-field .form-control {
    background: #111827 !important;
    color: #f8fafc !important;
}

html[data-theme="dark"] .settings-credit-suffix {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #94a3b8 !important;
}

html[data-theme="dark"] .settings-example-kicker {
    color: #64748b !important;
}

html[data-theme="dark"] .settings-currency-item {
    background: #111827 !important;
    border-color: #334155 !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.24) !important;
}

html[data-theme="dark"] .settings-currency-item.is-display {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.16) 0%, rgba(59, 130, 246, 0.08) 100%) !important;
    border-color: #3b82f6 !important;
}

html[data-theme="dark"] .settings-currency-item.is-base {
    background: #0f172a !important;
}

html[data-theme="dark"] .settings-currency-flag {
    background: #0f172a !important;
    border-color: #334155 !important;
}

html[data-theme="dark"] .settings-currency-meta strong,
html[data-theme="dark"] .settings-currency-base-rate,
html[data-theme="dark"] .settings-currency-add-head h4 {
    color: #f8fafc !important;
}

html[data-theme="dark"] .settings-currency-symbol,
html[data-theme="dark"] .settings-currency-meta > span,
html[data-theme="dark"] .settings-currency-add-head p,
html[data-theme="dark"] .settings-currency-footnote {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .settings-currency-tag {
    background: #1e293b !important;
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .settings-currency-tag.is-active {
    background: rgba(59, 130, 246, 0.2) !important;
    color: #93c5fd !important;
}

html[data-theme="dark"] .settings-currency-active-note {
    color: #93c5fd !important;
}

html[data-theme="dark"] .settings-currency-add {
    background: #0f172a !important;
    border-color: #475569 !important;
}

html[data-theme="dark"] .settings-currency-flag-dropzone {
    background: #111827 !important;
    border-color: #475569 !important;
}

html[data-theme="dark"] .settings-currency-flag-dropzone:hover,
html[data-theme="dark"] .settings-currency-flag-dropzone:focus-visible {
    background: rgba(59, 130, 246, 0.1) !important;
    border-color: #3b82f6 !important;
}

html[data-theme="dark"] .settings-currency-flag-preview {
    background: #0b1220 !important;
    border-color: #334155 !important;
}

html[data-theme="dark"] .settings-currency-flag-copy strong {
    color: #f1f5f9 !important;
}

html[data-theme="dark"] .settings-currency-flag-copy small {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .currency-flag-fallback {
    background: #1e293b !important;
    color: #e2e8f0 !important;
}

/* Reports page — full dark pass */
html[data-theme="dark"] .reports-page {
    color: #e2e8f0;
}

html[data-theme="dark"] .reports-nav-bar,
html[data-theme="dark"] .reports-filters-card,
html[data-theme="dark"] .reports-result-card {
    background: #111827 !important;
    border-color: #334155 !important;
}

html[data-theme="dark"] .reports-nav-bar-label,
html[data-theme="dark"] .reports-filter-label {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .reports-mobile-item {
    background: #0f172a !important;
    border-color: #334155 !important;
}

html[data-theme="dark"] .reports-mobile-item-label {
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .reports-mobile-item-icon {
    background: transparent !important;
    color: #94a3b8 !important;
}

html[data-theme="dark"] .reports-mobile-item.active {
    background: rgba(59, 130, 246, 0.16) !important;
    border-color: #3b82f6 !important;
    box-shadow: none !important;
}

html[data-theme="dark"] .reports-mobile-item.active .reports-mobile-item-icon {
    background: transparent !important;
    color: #93c5fd !important;
}

html[data-theme="dark"] .reports-mobile-item.active .reports-mobile-item-label {
    color: #93c5fd !important;
}

html[data-theme="dark"] .reports-nav-pill {
    background: #0f172a !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
    box-shadow: none !important;
}

html[data-theme="dark"] .reports-nav-pill > i {
    background: transparent !important;
    color: #94a3b8 !important;
}

html[data-theme="dark"] .reports-nav-pill:hover {
    background: rgba(59, 130, 246, 0.1) !important;
    border-color: #3b82f6 !important;
    color: #93c5fd !important;
    box-shadow: none !important;
}

html[data-theme="dark"] .reports-nav-pill:hover > i {
    background: transparent !important;
    color: #93c5fd !important;
}

html[data-theme="dark"] .reports-nav-pill.active {
    background: rgba(59, 130, 246, 0.16) !important;
    border-color: #3b82f6 !important;
    color: #93c5fd !important;
    box-shadow: none !important;
}

html[data-theme="dark"] .reports-nav-pill.active > i {
    background: transparent !important;
    color: #93c5fd !important;
}

html[data-theme="dark"] .reports-filters .form-control,
html[data-theme="dark"] .reports-filters .form-select,
html[data-theme="dark"] .reports-date-input {
    background: #0f172a !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
    color-scheme: dark;
}

html[data-theme="dark"] .reports-filters .form-control:focus,
html[data-theme="dark"] .reports-filters .form-select:focus,
html[data-theme="dark"] .reports-date-input:focus {
    background: #0f172a !important;
    border-color: #3b82f6 !important;
    color: #f8fafc !important;
}

html[data-theme="dark"] .reports-result-head {
    background: #0f172a !important;
    border-bottom-color: #334155 !important;
}

html[data-theme="dark"] .reports-result-head h3 {
    color: #f1f5f9 !important;
}

html[data-theme="dark"] .reports-result-head p {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .reports-result-icon {
    background: rgba(59, 130, 246, 0.16) !important;
    border-color: rgba(59, 130, 246, 0.35) !important;
    color: #93c5fd !important;
}

html[data-theme="dark"] .reports-table tbody tr:hover td {
    background: rgba(59, 130, 246, 0.1) !important;
}

html[data-theme="dark"] .reports-amount-positive {
    color: #86efac !important;
}

html[data-theme="dark"] .reports-amount-negative {
    color: #fca5a5 !important;
}

html[data-theme="dark"] .reports-stock-low {
    background: rgba(251, 191, 36, 0.14) !important;
    color: #fbbf24 !important;
}

html[data-theme="dark"] .reports-badge-clear {
    background: rgba(74, 222, 128, 0.14) !important;
    color: #86efac !important;
}

html[data-theme="dark"] .reports-phone-link {
    color: #4ade80 !important;
}

html[data-theme="dark"] .reports-phone-link:hover {
    color: #86efac !important;
}

html[data-theme="dark"] .reports-pl-card {
    background: #111827 !important;
    border-color: #334155 !important;
}

html[data-theme="dark"] .reports-pl-positive {
    border-color: rgba(74, 222, 128, 0.35) !important;
    background: linear-gradient(135deg, #111827 0%, rgba(74, 222, 128, 0.12) 100%) !important;
}

html[data-theme="dark"] .reports-pl-negative {
    border-color: rgba(248, 113, 113, 0.35) !important;
    background: linear-gradient(135deg, #111827 0%, rgba(248, 113, 113, 0.12) 100%) !important;
}

html[data-theme="dark"] .reports-pl-label {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .reports-pl-value {
    color: #f8fafc !important;
}

html[data-theme="dark"] .reports-pl-positive .reports-pl-value {
    color: #86efac !important;
}

html[data-theme="dark"] .reports-pl-negative .reports-pl-value {
    color: #fca5a5 !important;
}

html[data-theme="dark"] .reports-empty {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .reports-empty-icon {
    background: #0f172a !important;
    border-color: #334155 !important;
    color: #64748b !important;
}

html[data-theme="dark"] .report-card {
    background: #111827 !important;
    border-color: #334155 !important;
}

html[data-theme="dark"] .report-card-top {
    background: #0f172a !important;
    border-color: #334155 !important;
}

html[data-theme="dark"] .report-card-top strong,
html[data-theme="dark"] .report-card-top a,
html[data-theme="dark"] .report-card-rows strong {
    color: #f8fafc !important;
}

html[data-theme="dark"] .report-card-meta,
html[data-theme="dark"] .report-card-rows span {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .report-card-value {
    color: #e2e8f0 !important;
}

/* Products page — full dark pass */
html[data-theme="dark"] .products-page {
    color: #e2e8f0;
}

html[data-theme="dark"] .products-stat-card {
    background: #111827 !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28) !important;
}

html[data-theme="dark"] .products-stat-warning {
    border-color: rgba(251, 191, 36, 0.4) !important;
    background: linear-gradient(135deg, #111827 0%, rgba(251, 191, 36, 0.12) 100%) !important;
}

html[data-theme="dark"] .products-stat-danger {
    border-color: rgba(248, 113, 113, 0.4) !important;
    background: linear-gradient(135deg, #111827 0%, rgba(248, 113, 113, 0.12) 100%) !important;
}

html[data-theme="dark"] .products-filter-count {
    background: rgba(148, 163, 184, 0.18) !important;
}

html[data-theme="dark"] .products-stat-label {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .products-stat-value {
    color: #f8fafc !important;
}

html[data-theme="dark"] .products-stat-warning .products-stat-value {
    color: #fbbf24 !important;
}

html[data-theme="dark"] .products-stat-danger .products-stat-value {
    color: #fca5a5 !important;
}

html[data-theme="dark"] .products-filters-card,
html[data-theme="dark"] .products-list-card {
    background: #111827 !important;
    border-color: #334155 !important;
}

html[data-theme="dark"] .products-filter-label {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .products-search-wrap i {
    color: #64748b !important;
}

html[data-theme="dark"] .products-filter-chips {
    background: #0f172a !important;
    border-color: #334155 !important;
}

html[data-theme="dark"] .products-filter-chip {
    color: #94a3b8 !important;
    background: transparent !important;
}

html[data-theme="dark"] .products-filter-chip:hover {
    color: #e2e8f0 !important;
    background: rgba(30, 41, 59, 0.8) !important;
}

html[data-theme="dark"] .products-filter-chip.is-active {
    background: #1e293b !important;
    color: #93c5fd !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35) !important;
}

html[data-theme="dark"] .product-thumb {
    background: #1f2937 !important;
    border-color: rgba(148, 163, 184, 0.25) !important;
    color: #94a3b8 !important;
}

html[data-theme="dark"] .product-thumb.has-image,
html[data-theme="dark"] .product-card-media.has-image {
    background: #111827 !important;
}

html[data-theme="dark"] .product-card-media {
    background: #1f2937 !important;
    border-bottom-color: rgba(148, 163, 184, 0.18) !important;
    color: #94a3b8 !important;
}

html[data-theme="dark"] .product-name,
html[data-theme="dark"] .product-card-name {
    color: #f8fafc !important;
}

html[data-theme="dark"] .product-barcode {
    background: #0f172a !important;
    border-color: #334155 !important;
    color: #93c5fd !important;
}

html[data-theme="dark"] .product-category {
    background: #1e293b !important;
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .product-price-sale .money-usd {
    color: #93c5fd !important;
}

html[data-theme="dark"] .products-table .money-usd {
    color: #f8fafc !important;
}

html[data-theme="dark"] .products-table .money-iqd {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .products-table tbody tr:hover td {
    background: rgba(59, 130, 246, 0.1) !important;
}

html[data-theme="dark"] .products-action-btn {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .products-action-btn:hover {
    background: rgba(59, 130, 246, 0.16) !important;
    border-color: #3b82f6 !important;
    color: #93c5fd !important;
}

html[data-theme="dark"] .products-action-delete:hover {
    background: rgba(248, 113, 113, 0.16) !important;
    border-color: rgba(248, 113, 113, 0.4) !important;
    color: #fca5a5 !important;
}

html[data-theme="dark"] .product-card {
    background: #111827 !important;
    border-color: #334155 !important;
}

html[data-theme="dark"] .product-card-prices {
    background: #0f172a !important;
    border-color: #334155 !important;
}

html[data-theme="dark"] .product-card-price-label {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .product-card-price-value {
    color: #f8fafc !important;
}

html[data-theme="dark"] .product-card-price-value .money-iqd {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .product-card-price-row-sale .product-card-price-value .money-usd {
    color: #93c5fd !important;
}

html[data-theme="dark"] .product-card-actions {
    border-top-color: #334155 !important;
}

html[data-theme="dark"] .product-card-action {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .product-card-action-edit {
    background: rgba(59, 130, 246, 0.14) !important;
    border-color: rgba(59, 130, 246, 0.35) !important;
    color: #93c5fd !important;
}

html[data-theme="dark"] .product-card-action-delete {
    background: rgba(248, 113, 113, 0.14) !important;
    border-color: rgba(248, 113, 113, 0.35) !important;
    color: #fca5a5 !important;
}

html[data-theme="dark"] .products-empty-icon {
    background: #0f172a !important;
    border-color: #334155 !important;
    color: #64748b !important;
}

html[data-theme="dark"] .badge-stock-ok,
html[data-theme="dark"] .badge-stock-in {
    background: rgba(74, 222, 128, 0.14) !important;
    color: #86efac !important;
}

/* Product form (add/edit) — full dark pass */
html[data-theme="dark"] .product-form-page {
    color: #e2e8f0;
}

html[data-theme="dark"] .product-form-title {
    color: #f1f5f9 !important;
}

html[data-theme="dark"] .product-form-subtitle {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .product-form-section {
    background: #111827 !important;
    border-color: #334155 !important;
}

html[data-theme="dark"] .product-form-section-head {
    background: #0f172a !important;
    border-bottom-color: #334155 !important;
}

html[data-theme="dark"] .product-form-section-head h3 {
    color: #f1f5f9 !important;
}

html[data-theme="dark"] .product-form-section-head p {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .product-form-section-icon {
    background: rgba(59, 130, 246, 0.16) !important;
    color: #93c5fd !important;
}

html[data-theme="dark"] .product-form-section-icon-price {
    background: rgba(74, 222, 128, 0.14) !important;
    color: #86efac !important;
}

html[data-theme="dark"] .product-form-section-icon-stock {
    background: rgba(251, 191, 36, 0.14) !important;
    color: #fbbf24 !important;
}

html[data-theme="dark"] .product-form-label {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .product-price-field {
    background: #0f172a !important;
    border-color: #334155 !important;
}

html[data-theme="dark"] .product-money-field {
    background: #111827 !important;
    border-color: #334155 !important;
}

html[data-theme="dark"] .product-money-prefix {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #94a3b8 !important;
}

html[data-theme="dark"] .product-money-field .form-control {
    background: #111827 !important;
    color: #f8fafc !important;
}

html[data-theme="dark"] .product-form-section-body .form-control,
html[data-theme="dark"] .product-form-section-body .form-select {
    background: #0f172a !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .product-form-section-body .form-control:focus,
html[data-theme="dark"] .product-form-section-body .form-select:focus {
    background: #0f172a !important;
    border-color: #3b82f6 !important;
    color: #f8fafc !important;
}

html[data-theme="dark"] .product-form-section-body .form-select option {
    background: #111827;
    color: #e2e8f0;
}

html[data-theme="dark"] .product-image-dropzone {
    background: #0f172a !important;
    border-color: #475569 !important;
}

html[data-theme="dark"] .product-image-dropzone:hover,
html[data-theme="dark"] .product-image-dropzone:focus-visible {
    background: rgba(59, 130, 246, 0.1) !important;
    border-color: #3b82f6 !important;
}

html[data-theme="dark"] .product-image-upload.has-image .product-image-dropzone {
    background: #111827 !important;
    border-color: #334155 !important;
}

html[data-theme="dark"] .product-image-preview {
    background: #0f172a !important;
    border-color: #334155 !important;
}

html[data-theme="dark"] .product-image-placeholder {
    color: #64748b !important;
}

html[data-theme="dark"] .product-image-copy strong {
    color: #f1f5f9 !important;
}

html[data-theme="dark"] .product-image-copy small {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .sales-action-return:hover {
    background: rgba(251, 191, 36, 0.14) !important;
    color: #fcd34d !important;
    border-color: rgba(251, 191, 36, 0.35) !important;
}

html[data-theme="dark"] .product-barcode-wrap,
html[data-theme="dark"] .product-barcode {
    background: #0b1220 !important;
    border-color: #334155 !important;
    color: #93c5fd !important;
}

/* Generic light remnants that still leak */
html[data-theme="dark"] .page-subtitle,
html[data-theme="dark"] .section-subtitle,
html[data-theme="dark"] .helper-text {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .btn-close {
    filter: invert(1) grayscale(100%);
    opacity: 0.7;
}

html[data-theme="dark"] .modal-backdrop {
    background: #020617;
}

html[data-theme="dark"] .list-group-item-action {
    color: #e2e8f0;
}

html[data-theme="dark"] .list-group-flush > .list-group-item {
    border-color: #334155 !important;
}

html[data-theme="dark"] .input-group-text {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #94a3b8 !important;
}

html[data-theme="dark"] .form-control:disabled,
html[data-theme="dark"] .form-select:disabled,
html[data-theme="dark"] .form-control[readonly] {
    background: #0f172a !important;
    color: #64748b !important;
}

html[data-theme="dark"] .table-striped > tbody > tr:nth-of-type(odd) > * {
    --bs-table-bg-type: rgba(148, 163, 184, 0.05);
    color: #e2e8f0;
}

/* Debt collection — modern workspace dark */
html[data-theme="dark"] .collect-page {
    --collect-ink: #f1f5f9;
    --collect-muted: #94a3b8;
    --collect-line: #334155;
    --collect-surface: #111827;
    --collect-soft: #0b1220;
    --collect-accent: #2dd4bf;
    --collect-accent-soft: rgba(45, 212, 191, 0.14);
    --collect-debt: #fdba74;
    --collect-debt-soft: rgba(251, 146, 60, 0.12);
}

html[data-theme="dark"] .collect-hero {
    background:
        radial-gradient(900px 180px at 100% 0%, rgba(45, 212, 191, 0.12), transparent 55%),
        linear-gradient(180deg, #111827 0%, #0f172a 100%) !important;
    border-color: #334155 !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28) !important;
}

html[data-theme="dark"] .collect-hero-metric,
html[data-theme="dark"] .collect-hero-link,
html[data-theme="dark"] .collect-panel,
html[data-theme="dark"] .collect-search,
html[data-theme="dark"] .collect-history-link,
html[data-theme="dark"] .collect-receipt-btn,
html[data-theme="dark"] .collect-amount-field,
html[data-theme="dark"] .collect-method input:checked + span {
    background: #111827 !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .collect-panel-head,
html[data-theme="dark"] .collect-search-wrap input,
html[data-theme="dark"] .collect-amount-prefix,
html[data-theme="dark"] .collect-pay-form textarea,
html[data-theme="dark"] .collect-method span,
html[data-theme="dark"] .collect-debtor-item,
html[data-theme="dark"] .collect-recent-item {
    background: #0b1220 !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .collect-hero-title,
html[data-theme="dark"] .collect-panel-head h2,
html[data-theme="dark"] .collect-debtor-main strong,
html[data-theme="dark"] .collect-selected-copy h2,
html[data-theme="dark"] .collect-empty strong,
html[data-theme="dark"] .collect-recent-main strong,
html[data-theme="dark"] .collect-amount-field input {
    color: #f8fafc !important;
}

html[data-theme="dark"] .collect-hero-metric-value,
html[data-theme="dark"] .collect-full-btn,
html[data-theme="dark"] .collect-method input:checked + span {
    color: #5eead4 !important;
}

html[data-theme="dark"] .collect-debtor-avatar,
html[data-theme="dark"] .collect-empty-icon {
    background: rgba(45, 212, 191, 0.14) !important;
    color: #5eead4 !important;
}

html[data-theme="dark"] .collect-chip {
    background: #1e293b !important;
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .collect-debtor-item:hover,
html[data-theme="dark"] .collect-debtor-item.is-active,
html[data-theme="dark"] .collect-recent-item:hover {
    background: #111827 !important;
    border-color: rgba(45, 212, 191, 0.4) !important;
    box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.12) !important;
}

html[data-theme="dark"] .collect-debtor-amount,
html[data-theme="dark"] .collect-debt-banner strong {
    color: #fdba74 !important;
}

html[data-theme="dark"] .collect-debt-banner {
    background: rgba(251, 146, 60, 0.12) !important;
    border-color: rgba(251, 146, 60, 0.28) !important;
}

html[data-theme="dark"] .collect-debt-banner span {
    color: #fdba74 !important;
}

html[data-theme="dark"] .collect-search-btn {
    background: #0f766e !important;
    color: #fff !important;
}

html[data-theme="dark"] .collect-search-wrap input:focus,
html[data-theme="dark"] .collect-amount-field:focus-within,
html[data-theme="dark"] .collect-pay-form textarea:focus {
    border-color: #2dd4bf !important;
    box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.16) !important;
    background: #0b1220 !important;
}

html[data-theme="dark"] .collect-pay-submit {
    background: linear-gradient(180deg, #0f766e 0%, #0d9488 100%) !important;
    color: #fff !important;
    box-shadow: 0 12px 24px rgba(13, 148, 136, 0.28) !important;
}

html[data-theme="dark"] .collect-recent-amount {
    color: #6ee7b7 !important;
}

html[data-theme="dark"] .collect-search-wrap i,
html[data-theme="dark"] .collect-hero-subtitle,
html[data-theme="dark"] .collect-panel-head p,
html[data-theme="dark"] .collect-empty,
html[data-theme="dark"] .collect-recent-main span,
html[data-theme="dark"] .collect-pay-label,
html[data-theme="dark"] .collect-pay-label-row label,
html[data-theme="dark"] .collect-pay-field > label {
    color: #94a3b8 !important;
}

/* Wasted products */
html[data-theme="dark"] .wasted-page .waste-form-card,
html[data-theme="dark"] .wasted-page .content-card {
    background: #111827 !important;
    border-color: #334155 !important;
}

html[data-theme="dark"] .wasted-page .card-header-custom {
    background: #0f172a !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .wasted-page .form-label {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .wasted-page .form-control,
html[data-theme="dark"] .wasted-page .form-select {
    background: #0b1220 !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}
html[data-theme="dark"] .dashx {
    --dashx-ink: #e2e8f0;
    --dashx-muted: #94a3b8;
    --dashx-line: #334155;
    --dashx-card: #0f172a;
    --dashx-soft: #111827;
}
html[data-theme="dark"] .dashx-chip-btn,
html[data-theme="dark"] .dashx-field input {
    background: #111827;
    border-color: #334155;
    color: #e2e8f0;
}
html[data-theme="dark"] .dashx-chip-btn:hover {
    background: #1e293b;
    border-color: #38bdf8;
    color: #7dd3fc;
}
html[data-theme="dark"] .dashx-trend.is-up { background: rgba(16,185,129,.16); color: #34d399; }
html[data-theme="dark"] .dashx-trend.is-down { background: rgba(239,68,68,.16); color: #f87171; }
html[data-theme="dark"] .dashx-rank-no { background: #1e293b; color: #cbd5e1; }
html[data-theme="dark"] .dashx-rank-bar {
    background: repeating-linear-gradient(-45deg, #1e293b, #1e293b 6px, #0f172a 6px, #0f172a 12px);
}
html[data-theme="dark"] .dashx-rank-bar em {
    color: #e2e8f0;
    background: rgba(15, 23, 42, 0.9);
}
html[data-theme="dark"] .dashx-sale:hover { background: #111827; }
html[data-theme="dark"] .dashx-gauge {
    background:
        radial-gradient(circle at 50% 100%, #0f172a 58%, transparent 59%),
        conic-gradient(from 180deg,
            #0ea5e9 0deg,
            #14b8a6 calc(var(--gauge) * 1.8deg),
            #334155 calc(var(--gauge) * 1.8deg) 180deg,
            transparent 180deg 360deg);
}
html[data-theme="dark"] .dashx-pill.is-cash { background: rgba(16,185,129,.16); color: #34d399; }
html[data-theme="dark"] .dashx-pill.is-credit { background: rgba(249,115,22,.16); color: #fdba74; }
html[data-theme="dark"] .dashx-stock-badge.is-low { background: rgba(245,158,11,.16); color: #fbbf24; }
html[data-theme="dark"] .dashx-stock-badge.is-out { background: rgba(239,68,68,.16); color: #f87171; }
html[data-theme="dark"] .retx {
    --retx-ink: #e2e8f0;
    --retx-muted: #94a3b8;
    --retx-line: #334155;
    --retx-card: #0f172a;
    --retx-soft: #111827;
}
html[data-theme="dark"] .retx-mode,
html[data-theme="dark"] .retx-card,
html[data-theme="dark"] .retx-checkout,
html[data-theme="dark"] .retx-chip,
html[data-theme="dark"] .retx-result,
html[data-theme="dark"] .retx-invoice-item,
html[data-theme="dark"] .retx-field select,
html[data-theme="dark"] .retx-field input,
html[data-theme="dark"] .retx-search input,
html[data-theme="dark"] .retx-item,
html[data-theme="dark"] .retx-item input,
html[data-theme="dark"] .retx-line-info input,
html[data-theme="dark"] .retx-form-foot select,
html[data-theme="dark"] .retx-form-foot input,
html[data-theme="dark"] .retx-seg span {
    background: #111827;
    border-color: #334155;
    color: #e2e8f0;
}
html[data-theme="dark"] .retx-mode.is-active {
    background: linear-gradient(180deg, #0c4a6e, #0f172a);
    border-color: #38bdf8;
}
html[data-theme="dark"] .retx-mode-copy strong,
html[data-theme="dark"] .retx-card-head h2,
html[data-theme="dark"] .retx-result-copy strong,
html[data-theme="dark"] .retx-line-info strong,
html[data-theme="dark"] .retx-invoice-top strong,
html[data-theme="dark"] .retx-item strong,
html[data-theme="dark"] .retx-total strong {
    color: #e2e8f0;
}
html[data-theme="dark"] .retx-steps span,
html[data-theme="dark"] .retx-qty,
html[data-theme="dark"] .retx-icon-btn {
    background: #1e293b;
    color: #94a3b8;
}
html[data-theme="dark"] .retx-qty button {
    background: #0f172a;
    color: #e2e8f0;
    box-shadow: inset 0 0 0 1px #334155;
}
html[data-theme="dark"] .retx-qty button:hover {
    background: #1e293b;
    color: #7dd3fc;
}
html[data-theme="dark"] .retx-qty span,
html[data-theme="dark"] .retx-line-total {
    color: #e2e8f0;
}
html[data-theme="dark"] .retx-icon-btn:hover {
    background: #450a0a;
    color: #fca5a5;
}
html[data-theme="dark"] .retx-result:hover,
html[data-theme="dark"] .retx-result-split:hover,
html[data-theme="dark"] .retx-invoice-item {
    background: #111827;
    border-color: #334155;
    box-shadow: none;
}
html[data-theme="dark"] .retx-invoice-item:hover {
    background: linear-gradient(135deg, #0c4a6e 0%, #111827 70%);
    border-color: #38bdf8;
    box-shadow: 0 10px 22px rgba(14, 165, 233, 0.12);
}
html[data-theme="dark"] .retx-invoice-item.is-active {
    background: linear-gradient(135deg, #0c4a6e 0%, #0f172a 60%, #111827 100%);
    border-color: #38bdf8;
    box-shadow: 0 12px 28px rgba(14, 165, 233, 0.18);
}
html[data-theme="dark"] .retx-price-pick,
html[data-theme="dark"] .retx-type-btn {
    background: #0f172a;
    border-color: #334155;
    color: #e2e8f0;
}
html[data-theme="dark"] .retx-price-pick em,
html[data-theme="dark"] .retx-type-btn {
    color: #94a3b8;
}
html[data-theme="dark"] .retx-price-pick strong,
html[data-theme="dark"] .retx-bought-price {
    color: #7dd3fc;
}
html[data-theme="dark"] .retx-price-pick:hover,
html[data-theme="dark"] .retx-type-btn.is-on {
    background: #0c4a6e;
    border-color: #38bdf8;
    color: #7dd3fc;
}
html[data-theme="dark"] .retx-seg input:checked + span {
    background: #0c4a6e;
    border-color: #38bdf8;
    color: #7dd3fc;
}
html[data-theme="dark"] .retx-invoices {
    background: linear-gradient(180deg, #0f172a 0%, #111827 30%);
}
html[data-theme="dark"] .retx-side-head h2 {
    color: #e2e8f0;
}
html[data-theme="dark"] .retx-side-badge {
    background: linear-gradient(145deg, #0c4a6e, #075985);
    color: #7dd3fc;
}
html[data-theme="dark"] .retx-debt-amt {
    color: #fdba74 !important;
}
html[data-theme="dark"] .retx-debt-amt small {
    color: #fb923c;
}
html[data-theme="dark"] .retx-invoice-code {
    background: #1e293b;
    color: #94a3b8;
}
html[data-theme="dark"] .retx-invoice-item.is-active .retx-invoice-code {
    background: rgba(56, 189, 248, 0.14);
    color: #7dd3fc;
}
html[data-theme="dark"] .retx-sale-amount {
    background: #0f172a;
    border-color: #334155;
    color: #e2e8f0;
}
html[data-theme="dark"] .retx-invoice-main {
    background:
        radial-gradient(circle at top left, rgba(14, 165, 233, 0.1), transparent 36%),
        #0f172a;
}
html[data-theme="dark"] .retx-sale-banner {
    background:
        radial-gradient(circle at top right, rgba(14, 165, 233, 0.18), transparent 42%),
        linear-gradient(180deg, #111827, #0f172a);
    border-color: #334155;
}
html[data-theme="dark"] .retx-item-row,
html[data-theme="dark"] .retx-form-bar {
    background: #111827;
    border-color: #334155;
}
html[data-theme="dark"] .retx-pager-btn,
html[data-theme="dark"] .retx-pager-num {
    background: #0f172a;
    border-color: #334155;
    color: #e2e8f0;
}
html[data-theme="dark"] .retx-pager-num.is-on {
    background: #0ea5e9;
    border-color: #0ea5e9;
    color: #fff;
}
@media (max-width: 991.98px) {
    html[data-theme="dark"] .retx-pager {
        background: linear-gradient(180deg, transparent, #0f172a 35%);
    }
}
html[data-theme="dark"] .retx-item-thumb {
    background: #1e293b;
    color: #7dd3fc;
}
html[data-theme="dark"] .retx-item-thumb.has-image {
    background: #0f172a;
}
html[data-theme="dark"] .retx-item-qty,
html[data-theme="dark"] .retx-qty-btn {
    background: #1e293b;
    color: #e2e8f0;
}
html[data-theme="dark"] .retx-invoice-avatar {
    background: linear-gradient(145deg, #0c4a6e, #075985);
    color: #e0f2fe;
}
html[data-theme="dark"] .retx-tag { background: #1e293b; color: #94a3b8; }
html[data-theme="dark"] .retx-tag.is-cash { background: rgba(16,185,129,.16); color: #34d399; }
html[data-theme="dark"] .retx-tag.is-credit { background: rgba(249,115,22,.16); color: #fdba74; }
html[data-theme="dark"] .retx-tag.is-type { background: rgba(59,130,246,.16); color: #93c5fd; }
html[data-theme="dark"] .retx-tag.is-best { background: rgba(250,204,21,.16); color: #fde047; }
html[data-theme="dark"] .retx-tag.is-high-debt { background: rgba(248,113,113,.16); color: #fca5a5; }
html[data-theme="dark"] .retx-empty-glow {
    background: linear-gradient(145deg, #0c4a6e, #075985);
    color: #7dd3fc;
}
html[data-theme="dark"] .retx-sale-banner h2,
html[data-theme="dark"] .retx-item-main strong,
html[data-theme="dark"] .retx-empty-panel h3 {
    color: #e2e8f0;
}

html[data-theme="dark"] .warehouse-title { color: #f1f5f9 !important; }
html[data-theme="dark"] .warehouse-subtitle,
html[data-theme="dark"] .warehouse-stat span,
html[data-theme="dark"] .warehouse-card-meta,
html[data-theme="dark"] .warehouse-card-foot { color: #94a3b8 !important; }
html[data-theme="dark"] .warehouse-stat,
html[data-theme="dark"] .warehouse-card {
    background: #111827 !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}
html[data-theme="dark"] .warehouse-stat strong { color: #f8fafc !important; }
html[data-theme="dark"] .warehouse-stat.is-warn strong { color: #fbbf24 !important; }
html[data-theme="dark"] .warehouse-stat.is-danger strong { color: #f87171 !important; }
html[data-theme="dark"] .warehouse-stat.is-active,
html[data-theme="dark"] .warehouse-stat:hover { border-color: #3b82f6 !important; }
html[data-theme="dark"] .warehouse-search-wrap input {
    background: #0b1220 !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .app-confirm-backdrop {
    background: rgba(2, 6, 23, 0.72) !important;
}
html[data-theme="dark"] .app-confirm-dialog {
    background: #111827 !important;
    border-color: #334155 !important;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45) !important;
}
html[data-theme="dark"] .app-confirm-title { color: #f8fafc !important; }
html[data-theme="dark"] .app-confirm-message { color: #94a3b8 !important; }
html[data-theme="dark"] .app-confirm-icon {
    background: rgba(251, 191, 36, 0.14) !important;
    color: #fbbf24 !important;
}
html[data-theme="dark"] .app-confirm.is-danger .app-confirm-icon {
    background: rgba(248, 113, 113, 0.14) !important;
    color: #f87171 !important;
}
html[data-theme="dark"] .app-confirm-cancel {
    background: #0b1220 !important;
    border-color: #334155 !important;
    color: #cbd5e1 !important;
}
html[data-theme="dark"] .app-confirm-ok.btn-danger {
    background: #dc2626 !important;
    border-color: #dc2626 !important;
    color: #fff !important;
}

html[data-theme="dark"] .construction-nav-link {
    background: #0b1220 !important; border-color: #334155 !important; color: #e2e8f0 !important;
}
html[data-theme="dark"] .construction-nav-link.is-active {
    background: rgba(45, 212, 191, 0.14) !important; border-color: #2dd4bf !important; color: #5eead4 !important;
}
html[data-theme="dark"] .construction-hero {
    background: linear-gradient(135deg, #111827 0%, #0f172a 100%) !important;
    border-color: #334155 !important;
}
html[data-theme="dark"] .construction-page-title,
html[data-theme="dark"] .construction-card-title,
html[data-theme="dark"] .construction-metric-value,
html[data-theme="dark"] .construction-dl dd { color: #f1f5f9 !important; }
html[data-theme="dark"] .construction-page-subtitle,
html[data-theme="dark"] .construction-metric-label,
html[data-theme="dark"] .construction-dl dt { color: #94a3b8 !important; }
html[data-theme="dark"] .construction-metric,
html[data-theme="dark"] .construction-mobile-card,
html[data-theme="dark"] .construction-breakdown-item {
    background: #111827 !important; border-color: #334155 !important;
}
html[data-theme="dark"] .construction-metric.is-profit { background: rgba(34, 197, 94, 0.12) !important; border-color: #166534 !important; }
html[data-theme="dark"] .construction-metric.is-loss { background: rgba(239, 68, 68, 0.12) !important; border-color: #7f1d1d !important; }
html[data-theme="dark"] .construction-month-row,
html[data-theme="dark"] .construction-mini-list li { border-bottom-color: #1e293b !important; }

html[data-theme="dark"] .construction-balance-pill {
    background: #1e293b !important;
    color: #cbd5e1 !important;
}
html[data-theme="dark"] .construction-balance-pill.is-positive {
    background: rgba(45, 212, 191, 0.14) !important;
    color: #5eead4 !important;
}
html[data-theme="dark"] .construction-balance-pill.is-negative {
    background: rgba(248, 113, 113, 0.14) !important;
    color: #fca5a5 !important;
}
html[data-theme="dark"] .construction-client-card {
    background: #111827 !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}
html[data-theme="dark"] .construction-tx-credit { background: rgba(34, 197, 94, 0.16) !important; color: #86efac !important; }
html[data-theme="dark"] .construction-tx-debit { background: rgba(239, 68, 68, 0.16) !important; color: #fca5a5 !important; }
html[data-theme="dark"] .construction-form-field .form-label { color: #94a3b8 !important; }
html[data-theme="dark"] .construction-form-actions-inline { border-top-color: #1e293b !important; }
html[data-theme="dark"] .construction-form-danger-inline { border-top-color: #7f1d1d !important; }

/* Construction expenses � dark theme */
html[data-theme="dark"] .construction-expense-hero {
    background:
        radial-gradient(circle at top left, rgba(45, 212, 191, 0.14), transparent 42%),
        linear-gradient(135deg, #111827 0%, #0f172a 55%, #111827 100%) !important;
    border-color: #334155 !important;
}
html[data-theme="dark"] .construction-expense-stat {
    background: rgba(15, 23, 42, 0.92) !important;
    border-color: rgba(45, 212, 191, 0.2) !important;
    box-shadow: none !important;
}
html[data-theme="dark"] .construction-expense-stat.is-balance {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.96), rgba(13, 148, 136, 0.12)) !important;
    border-color: rgba(45, 212, 191, 0.28) !important;
}
html[data-theme="dark"] .construction-expense-stat.is-over {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.96), rgba(127, 29, 29, 0.2)) !important;
    border-color: rgba(248, 113, 113, 0.35) !important;
}
html[data-theme="dark"] .construction-expense-stat.is-paid .construction-expense-stat-icon {
    background: rgba(74, 222, 128, 0.14) !important;
    color: #4ade80 !important;
}
html[data-theme="dark"] .construction-expense-stat.is-spent .construction-expense-stat-icon {
    background: rgba(251, 191, 36, 0.14) !important;
    color: #fbbf24 !important;
}
html[data-theme="dark"] .construction-expense-stat.is-balance .construction-expense-stat-icon {
    background: rgba(45, 212, 191, 0.14) !important;
    color: #2dd4bf !important;
}
html[data-theme="dark"] .construction-expense-stat.is-over .construction-expense-stat-icon {
    background: rgba(248, 113, 113, 0.14) !important;
    color: #f87171 !important;
}
html[data-theme="dark"] .construction-expense-stat-label { color: #94a3b8 !important; }
html[data-theme="dark"] .construction-expense-stat-value { color: #f1f5f9 !important; }
html[data-theme="dark"] .construction-expense-stat.is-paid .construction-expense-stat-value { color: #4ade80 !important; }
html[data-theme="dark"] .construction-expense-stat.is-spent .construction-expense-stat-value { color: #fbbf24 !important; }
html[data-theme="dark"] .construction-expense-stat.is-balance .construction-expense-stat-value { color: #5eead4 !important; }
html[data-theme="dark"] .construction-expense-stat.is-over .construction-expense-stat-value { color: #f87171 !important; }
html[data-theme="dark"] .construction-expense-stat-value .money-iqd { color: #94a3b8 !important; }
html[data-theme="dark"] .construction-money-stack .money-iqd { color: #94a3b8 !important; }
html[data-theme="dark"] .construction-spend-chip {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.18) 0%, rgba(15, 23, 42, 0.9) 100%) !important;
    border-color: #1e3a8a !important;
    color: #bfdbfe !important;
}
html[data-theme="dark"] .construction-spend-chip-icon { background: #3b82f6 !important; color: #fff !important; }
html[data-theme="dark"] .construction-spend-chip-copy em,
html[data-theme="dark"] .construction-spend-chip-copy .money-iqd { color: #94a3b8 !important; }
html[data-theme="dark"] .construction-spend-chip-copy strong,
html[data-theme="dark"] .construction-spend-chip-copy .money-usd { color: #93c5fd !important; }
html[data-theme="dark"] .construction-spend-chip-share {
    background: rgba(59, 130, 246, 0.2) !important;
    color: #93c5fd !important;
}
html[data-theme="dark"] .construction-spend-chip.is-count {
    background: #0f172a !important;
    border-color: #334155 !important;
}
html[data-theme="dark"] .construction-spend-chip.is-count .construction-spend-chip-icon { background: #475569 !important; }
html[data-theme="dark"] .construction-spend-chip.is-count .construction-spend-chip-copy strong { color: #f1f5f9 !important; }
html[data-theme="dark"] .construction-expense-cat {
    background: #111827 !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}
html[data-theme="dark"] .construction-expense-cat:hover {
    border-color: #2dd4bf !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28) !important;
}
html[data-theme="dark"] .construction-expense-cat.is-active {
    background: rgba(45, 212, 191, 0.1) !important;
    border-color: #2dd4bf !important;
}
html[data-theme="dark"] .construction-expense-cat-icon {
    background: rgba(45, 212, 191, 0.14) !important;
    color: #5eead4 !important;
}
html[data-theme="dark"] .construction-expense-cat-copy strong { color: #f1f5f9 !important; }
html[data-theme="dark"] .construction-expense-cat-copy em { color: #5eead4 !important; }
html[data-theme="dark"] .construction-expense-mode {
    background: #0f172a !important;
    border-color: #1e293b !important;
}
html[data-theme="dark"] .construction-expense-mode button { color: #94a3b8 !important; }
html[data-theme="dark"] .construction-expense-mode button.is-active {
    background: #1e293b !important;
    color: #5eead4 !important;
    box-shadow: none !important;
}
html[data-theme="dark"] .construction-expense-form-badge {
    background: rgba(45, 212, 191, 0.14) !important;
    color: #5eead4 !important;
}
html[data-theme="dark"] .construction-expense-list-sub,
html[data-theme="dark"] .construction-expense-list-balance > span,
html[data-theme="dark"] .construction-expense-owner,
html[data-theme="dark"] .construction-expense-date,
html[data-theme="dark"] .construction-expense-thumb {
    background: #0f172a !important;
    border-color: #334155 !important;
    color: #94a3b8 !important;
}
html[data-theme="dark"] .construction-expense-thumb.has-image { background: #111827 !important; }
html[data-theme="dark"] .construction-owner-summary-card {
    background: linear-gradient(180deg, #111827 0%, #0f172a 100%) !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}
html[data-theme="dark"] .construction-owner-summary-card:hover {
    border-color: #2dd4bf !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28) !important;
}
html[data-theme="dark"] .construction-owner-summary-head strong { color: #f1f5f9 !important; }
html[data-theme="dark"] .construction-owner-summary-head span,
html[data-theme="dark"] .construction-owner-summary-metrics em,
html[data-theme="dark"] .construction-owner-summary-metrics .money-iqd,
html[data-theme="dark"] .construction-cashbox-history-count { color: #94a3b8 !important; }
html[data-theme="dark"] .construction-owner-summary-metrics .is-in { color: #4ade80 !important; }
html[data-theme="dark"] .construction-owner-summary-metrics .is-out { color: #f87171 !important; }
html[data-theme="dark"] .construction-owner-summary-metrics .is-balance { color: #5eead4 !important; }
html[data-theme="dark"] .construction-owner-summary-metrics .is-in .money-usd,
html[data-theme="dark"] .construction-owner-summary-metrics .is-out .money-usd,
html[data-theme="dark"] .construction-owner-summary-metrics .is-balance .money-usd { color: inherit !important; }
html[data-theme="dark"] .construction-cashbox-hero {
    background:
        radial-gradient(circle at top left, rgba(45, 212, 191, 0.14), transparent 42%),
        linear-gradient(135deg, #0f172a 0%, #111827 55%, #0f172a 100%) !important;
}
html[data-theme="dark"] .construction-cashbox-stat {
    background: rgba(15, 23, 42, 0.78) !important;
    border-color: #334155 !important;
}
html[data-theme="dark"] .construction-cashbox-stat-label { color: #94a3b8 !important; }
html[data-theme="dark"] .construction-cashbox-stat-value { color: #f1f5f9 !important; }
html[data-theme="dark"] .construction-cashbox-stat.is-balance .construction-cashbox-stat-value { color: #5eead4 !important; }
html[data-theme="dark"] .construction-cashbox-stat.is-in .construction-cashbox-stat-value { color: #4ade80 !important; }
html[data-theme="dark"] .construction-cashbox-stat.is-out .construction-cashbox-stat-value { color: #f87171 !important; }
html[data-theme="dark"] .construction-cashbox-mode {
    background: #0f172a !important;
    border-color: #334155 !important;
}
html[data-theme="dark"] .construction-cashbox-mode button { color: #94a3b8 !important; }
html[data-theme="dark"] .construction-cashbox-mode button.is-active {
    background: #111827 !important;
    color: #5eead4 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28) !important;
}
html[data-theme="dark"] .construction-cashbox-form.is-out .construction-cashbox-mode button[data-cashbox-mode="out"].is-active {
    color: #f87171 !important;
}
html[data-theme="dark"] .construction-owner-summary-avatar {
    background: rgba(45, 212, 191, 0.14) !important;
    color: #5eead4 !important;
}
html[data-theme="dark"] .construction-cashbox-table tbody tr:hover { background: #0f172a !important; }
html[data-theme="dark"] .construction-ledger-panel-icon {
    background: rgba(45, 212, 191, 0.14) !important;
    color: #5eead4 !important;
}
html[data-theme="dark"] .construction-ledger-panel-sub { color: #94a3b8 !important; }
html[data-theme="dark"] .construction-ledger-stat {
    background: #0f172a !important;
    border-color: #334155 !important;
}
html[data-theme="dark"] .construction-ledger-stat em { color: #94a3b8 !important; }
html[data-theme="dark"] .construction-ledger-stat strong { color: #f8fafc !important; }
html[data-theme="dark"] .construction-ledger-stat.is-in {
    background: rgba(22, 101, 52, 0.28) !important;
    border-color: rgba(74, 222, 128, 0.28) !important;
}
html[data-theme="dark"] .construction-ledger-stat.is-in strong { color: #86efac !important; }
html[data-theme="dark"] .construction-ledger-stat.is-out {
    background: rgba(153, 27, 27, 0.28) !important;
    border-color: rgba(248, 113, 113, 0.28) !important;
}
html[data-theme="dark"] .construction-ledger-stat.is-out strong { color: #fca5a5 !important; }
html[data-theme="dark"] .construction-ledger-filters {
    background: #0f172a !important;
    border-color: #334155 !important;
}
html[data-theme="dark"] .construction-ledger-filter-field > span { color: #94a3b8 !important; }
html[data-theme="dark"] .construction-ledger-type-toggle {
    background: #111827 !important;
    border-color: #334155 !important;
}
html[data-theme="dark"] .construction-ledger-type-btn { color: #cbd5e1 !important; }
html[data-theme="dark"] .construction-ledger-type-btn.is-active {
    background: #1e293b !important;
    color: #f8fafc !important;
}
html[data-theme="dark"] .construction-ledger-chip {
    background: #0f172a !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}
html[data-theme="dark"] .construction-ledger-row {
    background: #0f172a !important;
    border-color: #334155 !important;
}
html[data-theme="dark"] .construction-ledger-row.is-in {
    background: linear-gradient(90deg, rgba(22, 101, 52, 0.22) 0%, #0f172a 32%) !important;
}
html[data-theme="dark"] .construction-ledger-row.is-out {
    background: linear-gradient(90deg, rgba(153, 27, 27, 0.22) 0%, #0f172a 32%) !important;
}
html[data-theme="dark"] .construction-ledger-row-purpose { color: #f8fafc !important; }
html[data-theme="dark"] .construction-ledger-row-date,
html[data-theme="dark"] .construction-ledger-row-notes { color: #94a3b8 !important; }
html[data-theme="dark"] .construction-ledger-meta-link {
    background: #111827 !important;
    border-color: #334155 !important;
    color: #cbd5e1 !important;
}
html[data-theme="dark"] .construction-ledger-balance-pill.is-owner {
    background: #111827 !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}
html[data-theme="dark"] .construction-ledger-balance-pill.is-ok {
    background: rgba(22, 101, 52, 0.28) !important;
    border-color: rgba(74, 222, 128, 0.28) !important;
    color: #bbf7d0 !important;
}
html[data-theme="dark"] .construction-ledger-balance-pill.is-broke {
    background: rgba(153, 27, 27, 0.28) !important;
    border-color: rgba(248, 113, 113, 0.28) !important;
    color: #fecaca !important;
}
html[data-theme="dark"] .construction-ledger-row.is-in .construction-ledger-row-dot {
    background: rgba(22, 101, 52, 0.4) !important;
    color: #86efac !important;
}
html[data-theme="dark"] .construction-ledger-row.is-out .construction-ledger-row-dot {
    background: rgba(153, 27, 27, 0.4) !important;
    color: #fca5a5 !important;
}
html[data-theme="dark"] .construction-ledger-amount-block.is-in,
html[data-theme="dark"] .construction-ledger-amount-block.is-in .money-usd {
    color: #86efac !important;
}
html[data-theme="dark"] .construction-ledger-amount-block.is-out,
html[data-theme="dark"] .construction-ledger-amount-block.is-out .money-usd {
    color: #fca5a5 !important;
}
html[data-theme="dark"] .construction-ledger-amount-value .money-iqd {
    color: #94a3b8 !important;
}
html[data-theme="dark"] .construction-ledger-print {
    background: #111827 !important;
    border-color: #475569 !important;
    color: #e2e8f0 !important;
}
html[data-theme="dark"] .construction-ledger-print:hover {
    background: rgba(45, 212, 191, 0.12) !important;
    border-color: #2dd4bf !important;
    color: #5eead4 !important;
}
html[data-theme="dark"] .construction-ledger-print i {
    color: inherit !important;
}
html[data-theme="dark"] .construction-cashbox-card {
    background: #111827 !important;
    border-color: #334155 !important;
}
html[data-theme="dark"] .construction-cashbox-card-purpose { color: #f1f5f9 !important; }
html[data-theme="dark"] .construction-cashbox-card-meta { color: #94a3b8 !important; }
html[data-theme="dark"] .construction-cashbox-card-meta a { color: #5eead4 !important; }
html[data-theme="dark"] .construction-cashbox-see-more { border-top-color: #334155 !important; }
html[data-theme="dark"] .construction-owner-summary-card.is-active {
    border-color: #2dd4bf !important;
    box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.14) !important;
}
html[data-theme="dark"] .construction-owner-summary-meta > span { color: #94a3b8 !important; }
html[data-theme="dark"] .construction-owner-summary-meta i,
html[data-theme="dark"] .construction-owner-summary-projects-count { color: #5eead4 !important; }
html[data-theme="dark"] .construction-owner-summary-projects-count {
    background: rgba(45, 212, 191, 0.14) !important;
}
html[data-theme="dark"] .construction-owner-summary-project-chip.is-ok {
    color: #bbf7d0 !important;
    background: linear-gradient(180deg, rgba(22, 101, 52, 0.45) 0%, rgba(21, 128, 61, 0.28) 100%) !important;
    border-color: rgba(74, 222, 128, 0.35) !important;
    box-shadow: none !important;
}
html[data-theme="dark"] .construction-owner-summary-project-chip.is-ok strong,
html[data-theme="dark"] .construction-owner-summary-project-chip.is-ok em {
    color: #bbf7d0 !important;
}
html[data-theme="dark"] .construction-owner-summary-project-chip.is-broke {
    color: #fecaca !important;
    background: linear-gradient(180deg, rgba(153, 27, 27, 0.5) 0%, rgba(185, 28, 28, 0.28) 100%) !important;
    border-color: rgba(248, 113, 113, 0.35) !important;
    box-shadow: none !important;
}
html[data-theme="dark"] .construction-owner-summary-project-chip.is-broke strong,
html[data-theme="dark"] .construction-owner-summary-project-chip.is-broke em {
    color: #fecaca !important;
}
html[data-theme="dark"] .construction-owner-summary-project-chip.is-flat,
html[data-theme="dark"] .construction-owner-summary-project-more {
    color: #cbd5e1 !important;
    background: #0f172a !important;
    border-color: #334155 !important;
}
html[data-theme="dark"] .construction-owner-summary-metrics { border-top-color: #1e293b !important; }
html[data-theme="dark"] .construction-owner-summary-metric { background: #0f172a !important; }
html[data-theme="dark"] .construction-owner-summary-metrics .money-sep { color: #475569 !important; }
html[data-theme="dark"] .construction-expense-desc,
html[data-theme="dark"] .construction-expense-card-meta,
html[data-theme="dark"] .construction-expense-card-desc { color: #94a3b8 !important; }
html[data-theme="dark"] .construction-expense-list-owner { color: #e2e8f0 !important; }
html[data-theme="dark"] .construction-expense-project { color: #5eead4 !important; }
html[data-theme="dark"] .construction-expense-amount { color: #f8fafc !important; }
html[data-theme="dark"] .construction-expense-table tbody tr:hover { background: #0f172a !important; }
html[data-theme="dark"] .construction-expense-card {
    background: linear-gradient(180deg, #111827 0%, #0f172a 100%) !important;
    border-color: #334155 !important;
}
html[data-theme="dark"] .construction-expense-card-actions {
    border-top-color: #1e293b !important;
}
html[data-theme="dark"] .construction-expense-pill {
    background: #1e293b !important;
    color: #cbd5e1 !important;
}
html[data-theme="dark"] .construction-expense-pill-products { background: rgba(59, 130, 246, 0.18) !important; color: #93c5fd !important; }
html[data-theme="dark"] .construction-expense-pill-materials { background: rgba(6, 182, 212, 0.16) !important; color: #67e8f9 !important; }
html[data-theme="dark"] .construction-expense-pill-labor { background: rgba(99, 102, 241, 0.16) !important; color: #a5b4fc !important; }
html[data-theme="dark"] .construction-expense-pill-equipment { background: rgba(249, 115, 22, 0.16) !important; color: #fdba74 !important; }
html[data-theme="dark"] .construction-expense-pill-transportation { background: rgba(34, 197, 94, 0.16) !important; color: #86efac !important; }
html[data-theme="dark"] .construction-expense-pill-subcontractors { background: rgba(217, 70, 239, 0.16) !important; color: #f0abfc !important; }
html[data-theme="dark"] .construction-expense-pill-other { background: #1e293b !important; color: #94a3b8 !important; }
html[data-theme="dark"] .construction-table th { color: #94a3b8 !important; }
html[data-theme="dark"] .construction-table td { color: #e2e8f0 !important; border-color: #1e293b !important; }
html[data-theme="dark"] .construction-money-cell .money-iqd { color: #94a3b8 !important; }
html[data-theme="dark"] .construction-money-cell.is-in .money-usd { color: #4ade80 !important; }
html[data-theme="dark"] .construction-money-cell.is-out .money-usd { color: #f87171 !important; }
html[data-theme="dark"] .construction-money-cell.is-balance .money-usd { color: #5eead4 !important; }
html[data-theme="dark"] .construction-project-mobile-money > div { background: #0f172a !important; }
html[data-theme="dark"] .construction-project-mobile-money em,
html[data-theme="dark"] .construction-project-mobile-money .money-iqd { color: #94a3b8 !important; }
html[data-theme="dark"] .construction-project-mobile-money .is-in .money-usd { color: #4ade80 !important; }
html[data-theme="dark"] .construction-project-mobile-money .is-out .money-usd { color: #f87171 !important; }
html[data-theme="dark"] .construction-project-mobile-money .is-balance .money-usd { color: #5eead4 !important; }
html[data-theme="dark"] .construction-owner-label { color: #94a3b8 !important; }
html[data-theme="dark"] .construction-owner-link { color: #5eead4 !important; }
html[data-theme="dark"] .construction-project-hero-dates { color: #94a3b8 !important; }
html[data-theme="dark"] .construction-project-hero-dates i { color: #2dd4bf !important; }
html[data-theme="dark"] .construction-project-hero-dates strong { color: #f1f5f9 !important; }
html[data-theme="dark"] .construction-form-field .form-text,
html[data-theme="dark"] .js-project-owner-balance { color: #94a3b8 !important; }
html[data-theme="dark"] .construction-money-pair .input-group-text {
    background: #0b1220 !important;
    border-color: #334155 !important;
    color: #cbd5e1 !important;
}
html[data-theme="dark"] .construction-empty-icon {
    background: rgba(45, 212, 191, 0.12) !important;
    color: #5eead4 !important;
}
html[data-theme="dark"] .construction-empty p { color: #94a3b8 !important; }
html[data-theme="dark"] .construction-status-planning { background: rgba(99, 102, 241, 0.18) !important; color: #a5b4fc !important; }
html[data-theme="dark"] .construction-status-active { background: rgba(45, 212, 191, 0.16) !important; color: #5eead4 !important; }
html[data-theme="dark"] .construction-status-on_hold { background: rgba(251, 191, 36, 0.16) !important; color: #fbbf24 !important; }
html[data-theme="dark"] .construction-status-completed { background: rgba(34, 197, 94, 0.16) !important; color: #86efac !important; }
html[data-theme="dark"] .construction-status-cancelled { background: rgba(248, 113, 113, 0.16) !important; color: #fca5a5 !important; }

/* Construction dashboard — dark */
html[data-theme="dark"] .construction-dash-hero {
    background:
        radial-gradient(circle at top left, rgba(45, 212, 191, 0.14), transparent 46%),
        linear-gradient(135deg, #111827 0%, #0f172a 55%, #111827 100%) !important;
    border-color: #334155 !important;
}
html[data-theme="dark"] .construction-dash-kpi {
    background: #111827 !important;
    border-color: #334155 !important;
    box-shadow: none !important;
}
html[data-theme="dark"] .construction-dash-kpi.is-accent {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.96), rgba(13, 148, 136, 0.12)) !important;
    border-color: rgba(45, 212, 191, 0.28) !important;
}
html[data-theme="dark"] .construction-dash-kpi.is-accent.is-over {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.96), rgba(127, 29, 29, 0.25)) !important;
    border-color: rgba(248, 113, 113, 0.35) !important;
}
html[data-theme="dark"] .construction-dash-kpi.is-accent.is-over .construction-dash-kpi-value {
    color: #fca5a5 !important;
}
html[data-theme="dark"] .construction-dash-kpi-icon.is-teal { background: rgba(45, 212, 191, 0.14) !important; color: #2dd4bf !important; }
html[data-theme="dark"] .construction-dash-kpi-icon.is-blue { background: rgba(96, 165, 250, 0.14) !important; color: #60a5fa !important; }
html[data-theme="dark"] .construction-dash-kpi-icon.is-amber { background: rgba(251, 191, 36, 0.14) !important; color: #fbbf24 !important; }
html[data-theme="dark"] .construction-dash-kpi-icon.is-green { background: rgba(74, 222, 128, 0.14) !important; color: #4ade80 !important; }
html[data-theme="dark"] .construction-dash-kpi-label,
html[data-theme="dark"] .construction-dash-kpi-hint,
html[data-theme="dark"] .construction-dash-kpi-value .money-iqd,
html[data-theme="dark"] .construction-dash-month-top span,
html[data-theme="dark"] .construction-dash-simple-meta,
html[data-theme="dark"] .construction-dash-simple-money .money-iqd { color: #94a3b8 !important; }
html[data-theme="dark"] .construction-dash-kpi-value,
html[data-theme="dark"] .construction-dash-month-top strong,
html[data-theme="dark"] .construction-dash-recent-top strong { color: #f1f5f9 !important; }
html[data-theme="dark"] .construction-dash-quick-link {
    background: #111827 !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}
html[data-theme="dark"] .construction-dash-quick-link i { color: #2dd4bf !important; }
html[data-theme="dark"] .construction-dash-quick-link:hover {
    border-color: #2dd4bf !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28) !important;
    color: #f8fafc !important;
}
html[data-theme="dark"] .construction-dash-month-track { background: #1e293b !important; }
html[data-theme="dark"] .construction-dash-month-fill {
    background: linear-gradient(90deg, #2dd4bf, #0d9488) !important;
}
html[data-theme="dark"] .construction-dash-project,
html[data-theme="dark"] .construction-dash-recent-card {
    background: linear-gradient(180deg, #111827 0%, #0f172a 100%) !important;
    border-color: #334155 !important;
}
html[data-theme="dark"] .construction-dash-project:hover {
    border-color: #2dd4bf !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28) !important;
}
html[data-theme="dark"] .construction-dash-project-figs { border-top-color: #1e293b !important; }
html[data-theme="dark"] .construction-dash-link { color: #5eead4 !important; }
html[data-theme="dark"] .construction-dash-table tbody tr:hover { background: #0f172a !important; }

/* Construction project show � dark */
html[data-theme="dark"] .construction-project-hero {
    background:
        radial-gradient(circle at top left, rgba(45, 212, 191, 0.14), transparent 44%),
        linear-gradient(135deg, #111827 0%, #0f172a 55%, #111827 100%) !important;
    border-color: #334155 !important;
}
html[data-theme="dark"] .construction-project-facts > div { border-bottom-color: #1e293b !important; }
html[data-theme="dark"] .construction-project-facts dt,
html[data-theme="dark"] .construction-project-fact-sub { color: #94a3b8 !important; }
html[data-theme="dark"] .construction-project-facts dd,
html[data-theme="dark"] .construction-project-breakdown-label,
html[data-theme="dark"] .construction-project-breakdown-top strong { color: #f1f5f9 !important; }
html[data-theme="dark"] .construction-project-facts dd a { color: #5eead4 !important; }
html[data-theme="dark"] .construction-project-breakdown-label i { color: #2dd4bf !important; }
html[data-theme="dark"] .construction-project-breakdown-track { background: #1e293b !important; }
html[data-theme="dark"] .construction-project-breakdown-track > span {
    background: linear-gradient(90deg, #2dd4bf, #0d9488) !important;
}

html[data-theme="dark"] .construction-project-add {
    background: #0f172a !important;
    border-color: #334155 !important;
}
html[data-theme="dark"] .construction-quick-field > span { color: #94a3b8 !important; }
html[data-theme="dark"] .construction-expense-type-head span { color: #94a3b8 !important; }
html[data-theme="dark"] .construction-expense-chip {
    background: #111827 !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}
html[data-theme="dark"] .construction-expense-chip:hover {
    background: #1e293b !important;
    border-color: #475569 !important;
}
html[data-theme="dark"] .construction-expense-chip.is-active {
    border-color: #2dd4bf !important;
    background: rgba(45, 212, 191, 0.12) !important;
    color: #5eead4 !important;
    box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.12) !important;
}
html[data-theme="dark"] .construction-expense-chip-add { color: #5eead4 !important; }
html[data-theme="dark"] .construction-expense-field > span { color: #94a3b8 !important; }
html[data-theme="dark"] .construction-expense-field > span i { color: #2dd4bf !important; }
html[data-theme="dark"] .construction-expense-field .form-control,
html[data-theme="dark"] .construction-expense-field .form-select {
    background: #0f172a !important;
    border-color: #334155 !important;
    color: #f1f5f9 !important;
}
html[data-theme="dark"] .construction-expense-amount-panel {
    background:
        radial-gradient(circle at top right, rgba(45, 212, 191, 0.12), transparent 48%),
        linear-gradient(180deg, #0f172a 0%, #111827 100%) !important;
    border-color: #334155 !important;
}
html[data-theme="dark"] .construction-expense-amount-label { color: #94a3b8 !important; }
html[data-theme="dark"] .construction-expense-amount-input {
    background: #111827 !important;
    border-color: #334155 !important;
}
html[data-theme="dark"] .construction-expense-amount-input:focus-within {
    border-color: #2dd4bf !important;
    box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.14) !important;
}
html[data-theme="dark"] .construction-expense-amount-input .form-control {
    background: transparent !important;
    color: #f8fafc !important;
}
html[data-theme="dark"] .construction-expense-amount-input em { color: #64748b !important; }
html[data-theme="dark"] .construction-expense-feed-icon {
    background: rgba(45, 212, 191, 0.12) !important;
    color: #5eead4 !important;
}
html[data-theme="dark"] .construction-empty-sm i { color: #64748b !important; }

html[data-theme="dark"] .construction-project-feed-row {
    background: #0f172a !important;
    border-color: #334155 !important;
}
html[data-theme="dark"] .construction-project-feed-main strong { color: #f1f5f9 !important; }
html[data-theme="dark"] .construction-project-feed-main strong a { color: #5eead4 !important; }
html[data-theme="dark"] .construction-project-feed-main span,
html[data-theme="dark"] .construction-project-feed-amt .money-iqd { color: #94a3b8 !important; }
html[data-theme="dark"] .construction-project-feed-amt .money-usd { color: #f8fafc !important; }

html[data-theme="dark"] .construction-product-picker-trigger {
    background: #0b1220 !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}
html[data-theme="dark"] .construction-product-picker.is-open .construction-product-picker-trigger {
    border-color: #2dd4bf !important;
    box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.14) !important;
}
html[data-theme="dark"] .construction-product-picker-panel {
    background: #111827 !important;
    border-color: #334155 !important;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4) !important;
}
html[data-theme="dark"] .construction-product-picker-search { border-bottom-color: #1e293b !important; }
html[data-theme="dark"] .construction-product-picker-search .form-control {
    background: transparent !important;
    color: #f1f5f9 !important;
}
html[data-theme="dark"] .construction-product-picker-item:hover,
html[data-theme="dark"] .construction-product-picker-item.is-active {
    background: rgba(45, 212, 191, 0.12) !important;
}
html[data-theme="dark"] .construction-product-picker-copy strong { color: #f1f5f9 !important; }
html[data-theme="dark"] .construction-product-picker-copy em,
html[data-theme="dark"] .construction-product-picker-empty { color: #94a3b8 !important; }
html[data-theme="dark"] .construction-product-picker-thumb {
    background: #1e293b !important;
}
html[data-theme="dark"] .construction-product-picker-thumb.has-image {
    background: #0f172a !important;
}

html[data-theme="dark"] .construction-material-checkout {
    background: linear-gradient(180deg, #0f172a 0%, #111827 100%) !important;
    border-color: #1e3a5f !important;
}
html[data-theme="dark"] .construction-material-price-mode label {
    background: #0b1220 !important;
    border-color: #334155 !important;
    color: #cbd5e1 !important;
}
html[data-theme="dark"] .construction-material-price-mode label.is-active {
    background: #1e3a5f !important;
    border-color: #60a5fa !important;
    color: #93c5fd !important;
}
html[data-theme="dark"] .construction-material-qty button {
    background: #0b1220 !important;
    border-color: #334155 !important;
    color: #f8fafc !important;
}
html[data-theme="dark"] .construction-material-line-total {
    background: #020617 !important;
}
html[data-theme="dark"] .construction-material-cart-head strong { color: #f8fafc !important; }
html[data-theme="dark"] .construction-material-cart-empty {
    border-color: #334155 !important;
    color: #94a3b8 !important;
}
html[data-theme="dark"] .construction-material-cart-line {
    background: #0b1220 !important;
    border-color: #334155 !important;
}
html[data-theme="dark"] .construction-material-cart-copy strong,
html[data-theme="dark"] .construction-material-cart-money .money-usd { color: #f8fafc !important; }
html[data-theme="dark"] .construction-material-cart-money .money-iqd { color: #94a3b8 !important; }
html[data-theme="dark"] .construction-material-cart-qty {
    background: #111827 !important;
    border-color: #334155 !important;
}
html[data-theme="dark"] .construction-material-cart-qty button {
    background: #0f172a !important;
    box-shadow: 0 0 0 1px #334155 !important;
    color: #f8fafc !important;
}
html[data-theme="dark"] .construction-material-cart-qty input {
    background: transparent !important;
    color: #f8fafc !important;
}
html[data-theme="dark"] .construction-material-cart-remove {
    background: rgba(185, 28, 28, 0.25) !important;
    color: #fca5a5 !important;
}
html[data-theme="dark"] .construction-material-selected-icon {
    background: #1e3a5f !important;
    color: #93c5fd !important;
}
html[data-theme="dark"] .construction-material-selected-copy strong { color: #f8fafc !important; }
html[data-theme="dark"] .construction-material-selected-copy small,
html[data-theme="dark"] .construction-material-checkout-field > span { color: #94a3b8 !important; }
html[data-theme="dark"] .construction-pos-picker-search {
    background: #0b1220 !important;
    border-color: #334155 !important;
}
html[data-theme="dark"] .construction-pos-picker-search .form-control {
    background: transparent !important;
    color: #f1f5f9 !important;
}
html[data-theme="dark"] .construction-product-menu-item {
    background: #0f172a !important;
    border-color: #334155 !important;
}
html[data-theme="dark"] .construction-product-menu-item:hover,
html[data-theme="dark"] .construction-product-menu-item.is-selected {
    border-color: #60a5fa !important;
    background: #1e293b !important;
}
html[data-theme="dark"] .construction-product-menu-thumb {
    background: #1e293b !important;
    color: #94a3b8 !important;
}
html[data-theme="dark"] .construction-product-menu-thumb.has-image {
    background: #0b1220 !important;
    border-color: #334155 !important;
}
html[data-theme="dark"] .construction-product-menu-copy strong,
html[data-theme="dark"] .construction-product-menu-price strong { color: #f8fafc !important; }
html[data-theme="dark"] .construction-product-menu-copy small,
html[data-theme="dark"] .construction-product-menu-price small { color: #94a3b8 !important; }
html[data-theme="dark"] .construction-pos-picker-empty { color: #94a3b8 !important; }


/* posx-card dense dark overrides */
html[data-theme="dark"] .posx-card {
    background: #111827 !important;
    border-color: rgba(148, 163, 184, 0.16) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25) !important;
}
html[data-theme="dark"] .posx-card:hover {
    border-color: #3b82f6 !important;
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.18) !important;
}
html[data-theme="dark"] .posx-card-media {
    background: linear-gradient(160deg, #0f172a 0%, #1e293b 100%) !important;
}
html[data-theme="dark"] .posx-card-media.has-image {
    background: #0f172a !important;
}
html[data-theme="dark"] .posx-card-body {
    background: transparent !important;
}
html[data-theme="dark"] .posx-card-name {
    background: transparent !important;
    color: #f8fafc !important;
}
html[data-theme="dark"] .posx-card-price {
    border-top-color: rgba(148, 163, 184, 0.12) !important;
    background: transparent !important;
}
html[data-theme="dark"] .posx-card-money {
    background: transparent !important;
    border: 0 !important;
}
html[data-theme="dark"] .posx-card-money-usd strong {
    color: #f8fafc !important;
}
html[data-theme="dark"] .posx-card-money-iqd {
    border-top: 0 !important;
}
html[data-theme="dark"] .posx-card-money-iqd small,
html[data-theme="dark"] .posx-card-money-iqd .posx-card-iqd {
    color: #94a3b8 !important;
}
html[data-theme="dark"] .posx-card-stock {
    background: rgba(59, 130, 246, 0.14) !important;
    color: #93c5fd !important;
}
html[data-theme="dark"] .posx-card-stock.is-low {
    background: rgba(245, 158, 11, 0.16) !important;
    color: #fbbf24 !important;
}
html[data-theme="dark"] .posx-line-price {
    background: transparent !important;
    border: 0 !important;
}
html[data-theme="dark"] .posx-line-info strong {
    background: transparent !important;
}


/* posx money row dark */
html[data-theme="dark"] .posx-card-money-usd strong {
    color: #f8fafc !important;
}
html[data-theme="dark"] .posx-card-money-iqd .posx-card-iqd,
html[data-theme="dark"] .posx-card-money-iqd small {
    color: #94a3b8 !important;
}
html[data-theme="dark"] .posx-card-money,
html[data-theme="dark"] .posx-card-money-iqd {
    background: transparent !important;
    border: 0 !important;
}

/* product-form-check dark */
html[data-theme="dark"] .product-form-check {
    background: #0f172a;
    border-color: #334155;
    color: #e2e8f0;
}
html[data-theme="dark"] .product-form-check:hover {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.12);
}

/* construction invoice desk dark */
html[data-theme="dark"] .construction-invoice-desk-avatar {
    background: rgba(45, 212, 191, 0.14) !important;
    color: #5eead4 !important;
}
html[data-theme="dark"] .construction-invoice-desk-sub { color: #94a3b8 !important; }
html[data-theme="dark"] .construction-invoice-desk-sub a:hover { color: #5eead4 !important; }
html[data-theme="dark"] .construction-invoice-desk-tab {
    background: #0f172a !important;
    border-color: #334155 !important;
    color: #cbd5e1 !important;
}
html[data-theme="dark"] .construction-invoice-desk-tab:hover {
    border-color: #64748b !important;
    color: #f1f5f9 !important;
}
html[data-theme="dark"] .construction-invoice-desk-tab.is-active {
    border-color: #2dd4bf !important;
    background: rgba(45, 212, 191, 0.12) !important;
    color: #5eead4 !important;
}
html[data-theme="dark"] .construction-invoice-buy-row {
    background: #0f172a !important;
    border-color: #1e293b !important;
}
html[data-theme="dark"] .construction-invoice-buy-thumb {
    background: #1e293b !important;
    color: #94a3b8 !important;
}
html[data-theme="dark"] .construction-invoice-buy-copy strong { color: #f1f5f9 !important; }
html[data-theme="dark"] .construction-invoice-buy-copy span { color: #94a3b8 !important; }
html[data-theme="dark"] .construction-invoice-mode-btn {
    background: #0f172a !important;
    border-color: #334155 !important;
    color: #cbd5e1 !important;
}
html[data-theme="dark"] .construction-invoice-mode-btn.is-active {
    border-color: #2dd4bf !important;
    background: rgba(45, 212, 191, 0.12) !important;
    color: #5eead4 !important;
}

html[data-theme="dark"] .construction-invoice-source {
    background: rgba(45, 212, 191, 0.14) !important;
    color: #5eead4 !important;
}
html[data-theme="dark"] .construction-invoice-source.is-pos {
    background: rgba(96, 165, 250, 0.16) !important;
    color: #93c5fd !important;
}

/* construction invoice picker clean dark */
html[data-theme="dark"] .construction-invoice-filter-reset { color: #94a3b8 !important; }
html[data-theme="dark"] .construction-invoice-filter-reset:hover { color: #f1f5f9 !important; }
html[data-theme="dark"] .construction-invoice-pick + .construction-invoice-pick { border-top-color: #1e293b !important; }
html[data-theme="dark"] .construction-invoice-pick-owner strong { color: #f1f5f9 !important; }
html[data-theme="dark"] .construction-invoice-pick-owner span,
html[data-theme="dark"] .construction-invoice-pick-project-text span { color: #94a3b8 !important; }
html[data-theme="dark"] .construction-invoice-pick-owner:hover strong,
html[data-theme="dark"] .construction-invoice-pick-owner.is-active strong,
html[data-theme="dark"] .construction-invoice-pick-project.is-active strong { color: #5eead4 !important; }
html[data-theme="dark"] .construction-invoice-pick-project:hover { background: #0f172a !important; }
html[data-theme="dark"] .construction-invoice-pick-project.is-active { background: rgba(45, 212, 191, 0.1) !important; }
html[data-theme="dark"] .construction-invoice-pick-dot { border-color: #475569 !important; }
html[data-theme="dark"] .construction-invoice-pick-project.is-active .construction-invoice-pick-dot {
    border-color: #2dd4bf !important;
    background: #14b8a6 !important;
    box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.16) !important;
}
html[data-theme="dark"] .construction-invoice-pick-project-text strong { color: #cbd5e1 !important; }

/* construction invoice bar dark */
html[data-theme="dark"] .construction-invoice-bar { border-bottom-color: #1e293b !important; }
html[data-theme="dark"] .construction-invoice-bar-field > span { color: #94a3b8 !important; }
html[data-theme="dark"] .construction-invoice-bar-field .form-select {
    background: #0f172a !important;
    border-color: #334155 !important;
    color: #f1f5f9 !important;
}
html[data-theme="dark"] .construction-invoice-bar-reset { color: #94a3b8 !important; }
html[data-theme="dark"] .construction-invoice-bar-reset:hover {
    color: #f1f5f9 !important;
    background: #0f172a !important;
}
html[data-theme="dark"] .construction-invoice-print-alert {
    background: linear-gradient(135deg, #431407 0%, #7c2d12 100%) !important;
    border-color: #ea580c !important;
    color: #ffedd5 !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35) !important;
}
html[data-theme="dark"] .construction-invoice-print-alert-icon {
    background: rgba(251, 146, 60, 0.18) !important;
    color: #fdba74 !important;
}
html[data-theme="dark"] .construction-invoice-print-alert-close {
    color: #fdba74 !important;
}
html[data-theme="dark"] .construction-invoice-print-alert-close:hover {
    background: rgba(251, 146, 60, 0.16) !important;
}
html[data-theme="dark"] .construction-invoice-printall {
    background: #0f172a !important;
    border-color: #1e293b !important;
}
html[data-theme="dark"] .construction-invoice-printall-check { color: #e2e8f0 !important; }
