/* Night look («حالت شب»): made by catalog/build_dark.py from the day style sheets - do not edit by hand;
   hand-made fixes go in catalog/dark-extra.css. */
@media screen {

    /* ---- catalog/static/catalog/site.css */
    html.ns-dark,
    html.ns-dark[data-theme] { color-scheme: dark; --ns-blue: #2563eb; --ns-blue-dark: #6689ea; --ns-blue-soft: #111d34; --ns-bg: #181d27; --ns-line: #333942; --ns-shadow: 0 1px 3px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.1); --primary: #2563eb; --secondary: #6689ea; --accent: #111d34; --primary-fg: #ffffff; --body-fg: #c7d1e0; --body-bg: #1b1b1b; --body-quiet-color: #9fa4af; --body-medium-color: #afb7c3; --body-loud-color: #cfd7ea; --header-color: #cfd7ea; --header-branding-color: #cfd7ea; --header-bg: #1b1b1b; --header-link-color: #608df0; --breadcrumbs-fg: #9fa4af; --breadcrumbs-link-fg: #608df0; --link-fg: #608df0; --link-hover-color: #6689ea; --link-selected-fg: #6689ea; --hairline-color: #2f353d; --border-color: #383e48; --darkened-bg: #181e25; --selected-bg: #111d34; --selected-row: #0e1d32; --button-fg: #ffffff; --button-bg: #2563eb; --button-hover-bg: #1d4ed8; --default-button-bg: #2563eb; --default-button-hover-bg: #1d4ed8; --close-button-bg: #54585f; --close-button-hover-bg: #6b7280; --delete-button-bg: #dc2626; --delete-button-hover-bg: #b91c1c; --object-tools-fg: #608df0; --object-tools-bg: #111d34; --object-tools-hover-bg: #14223c; --message-success-bg: #1c3025; --message-warning-bg: #3a2e11; --message-error-bg: #311313; }
    html.ns-dark,
    html.ns-dark body,
    html.ns-dark #container { background: var(--ns-bg); }
    html.ns-dark body { color: var(--body-fg); }
    html.ns-dark .ns-sidebar { background: #1b1b1b; border-inline-end: 1px solid var(--ns-line); }
    html.ns-dark .ns-brand { border-bottom: 1px solid var(--ns-line); }
    html.ns-dark .ns-brand span { color: #7197e0 !important; }
    html.ns-dark .ns-nav a { color: #c7d1e0 !important; }
    html.ns-dark .ns-nav a .icon { color: #b9c2d0; }
    html.ns-dark .ns-nav a:hover { background: #171e29; }
    html.ns-dark .ns-nav a.active { background: var(--ns-blue-soft); color: var(--ns-blue) !important; box-shadow: inset -3px 0 0 var(--ns-blue); }
    html.ns-dark[dir=ltr] .ns-nav a.active { box-shadow: inset 3px 0 0 var(--ns-blue); }
    html.ns-dark .ns-nav a.active .icon { color: var(--ns-blue); }
    html.ns-dark .ns-nav-title { color: var(--body-quiet-color); }
    html.ns-dark .ns-sidebar-foot { color: var(--body-quiet-color); }
    html.ns-dark .ns-topbar { background: #1b1b1b; border-bottom: 1px solid var(--ns-line); }
    html.ns-dark .ns-search .icon { color: #9fa4af; }
    html.ns-dark .ns-search input[type=search] { background: #171d26; border: 1px solid var(--ns-line); }
    html.ns-dark .ns-date { color: #b9c2d0; }
    html.ns-dark .ns-avatar { background: var(--ns-blue); color: #ffffff; }
    html.ns-dark .ns-user-name small { color: var(--body-quiet-color); }
    html.ns-dark .ns-user-menu { background: #1b1b1b; border: 1px solid var(--ns-line); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3); }
    html.ns-dark .ns-user-menu a,
    html.ns-dark .ns-user-menu button { border: 0; background: none; color: #c7d1e0 !important; }
    html.ns-dark .ns-user-menu a:hover,
    html.ns-dark .ns-user-menu button:hover { background: #171e29; }
    html.ns-dark .ns-footer { color: var(--body-quiet-color); }
    html.ns-dark #header { background: #1b1b1b; color: var(--header-color); border-bottom: 1px solid var(--ns-line); }
    html.ns-dark h1 { color: #cfd7ea; }
    html.ns-dark #content > h2 { color: #b9c2d0; }
    html.ns-dark .module,
    html.ns-dark fieldset.module,
    html.ns-dark .inline-group,
    html.ns-dark #changelist .changelist-form-container,
    html.ns-dark #changelist-filter,
    html.ns-dark .dashboard .module,
    html.ns-dark .app-list .module,
    html.ns-dark .submit-row,
    html.ns-dark .linked-box,
    html.ns-dark .send-card { background: #1b1b1b; border: 1px solid var(--ns-line) !important; box-shadow: var(--ns-shadow); }
    html.ns-dark .inline-group fieldset.module { border: 0 !important; box-shadow: none; }
    html.ns-dark .module h2,
    html.ns-dark .module caption,
    html.ns-dark .inline-group h2,
    html.ns-dark fieldset.module h2,
    html.ns-dark #changelist-filter h2 { background: #1b1b1b; color: #cfd7ea !important; border-bottom: 1px solid var(--ns-line); }
    html.ns-dark .module caption a,
    html.ns-dark .module h2 a { color: #cfd7ea !important; }
    html.ns-dark .form-row { border-bottom-color: var(--hairline-color); }
    html.ns-dark table thead th,
    html.ns-dark .module table th,
    html.ns-dark #result_list thead th { background: #181e25; color: #afb7c3; border-bottom: 1px solid var(--ns-line); }
    html.ns-dark #result_list tbody td,
    html.ns-dark #result_list tbody th { border-bottom: 1px solid var(--hairline-color); }
    html.ns-dark #result_list tbody tr:nth-child(even) td,
    html.ns-dark #result_list tbody tr:nth-child(even) th { background: #1b1b1b; }
    html.ns-dark #result_list tbody tr:hover td,
    html.ns-dark #result_list tbody tr:hover th { background: #0d1a2e; }
    html.ns-dark #changelist .actions,
    html.ns-dark #changelist .paginator,
    html.ns-dark #toolbar { background: #1b1b1b; border-color: var(--ns-line); }
    html.ns-dark #changelist-filter li.selected a { color: var(--ns-blue) !important; }
    html.ns-dark .pill { color: var(--pill, #608df0); background: color-mix(in srgb, var(--pill, #2563eb) 12%, #1b1b1b); }
    html.ns-dark input[type=text],
    html.ns-dark input[type=number],
    html.ns-dark input[type=email],
    html.ns-dark input[type=password],
    html.ns-dark input[type=search],
    html.ns-dark input[type=url],
    html.ns-dark textarea,
    html.ns-dark select,
    html.ns-dark .vTextField,
    html.ns-dark .select2-container--admin-autocomplete .select2-selection { border: 1px solid var(--border-color); }
    html.ns-dark input:focus,
    html.ns-dark textarea:focus,
    html.ns-dark select:focus { outline: 2px solid #273c66; border-color: var(--ns-blue); }
    html.ns-dark .object-tools a:link,
    html.ns-dark .object-tools a:visited { background: var(--ns-blue-soft); color: var(--ns-blue) !important; }
    html.ns-dark .object-tools a:hover { background: #14223c; }
    html.ns-dark .object-tools a.addlink,
    html.ns-dark .object-tools a.send-button { background: var(--ns-blue); color: #ffffff !important; }
    html.ns-dark .object-tools a.addlink:hover,
    html.ns-dark .object-tools a.send-button:hover { background: var(--ns-blue-dark); }
    html.ns-dark #recent-actions-module { background: #1b1b1b; }
    html.ns-dark #content-related { background: transparent; }
    html.ns-dark .ns-card { background: #1b1b1b; border: 1px solid var(--ns-line); box-shadow: var(--ns-shadow); color: #cfd7ea !important; }
    html.ns-dark .ns-card:hover { border-color: color-mix(in srgb, var(--card) 40%, #2b2b2b); }
    html.ns-dark .ns-card-text { color: #afb7c3; }
    html.ns-dark .ns-card-text b { color: #cfd7ea; }
    html.ns-dark .ns-card-icon { color: var(--card); background: color-mix(in srgb, var(--card) 12%, #1b1b1b); }
    html.ns-dark body.login #container { background: #1b1b1b; border: 1px solid var(--ns-line); box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2); }
    html.ns-dark body.login #header { border-bottom: 1px solid var(--ns-line); }
    html.ns-dark body.login .submit-row { border: 0 !important; box-shadow: none; }
    html.ns-dark body.login .main,
    html.ns-dark body.login main.content { background: transparent; }
    html.ns-dark .ns-menu-toggle { background: #1b1b1b; border: 1px solid var(--ns-line); color: #b9c2d0; }
    html.ns-dark .ns-menu-toggle:hover { background: #171e29; }
    html.ns-dark .ns-scroll::-webkit-scrollbar-track { background: #111b31; }
    html.ns-dark .ns-scroll::-webkit-scrollbar-thumb { background: #293a5d; border: 2px solid #1c2a49; }
    html.ns-dark .ns-scroll::-webkit-scrollbar-thumb:hover { background: var(--ns-blue); }
    html.ns-dark .ns-scroll::-webkit-scrollbar-corner { background: transparent; }
    @supports not selector(::-webkit-scrollbar) {
        html.ns-dark .ns-scroll { scrollbar-color: #293a5d #111b31; }
    }
    html.ns-dark .ns-scroll thead th { background: #171d26; }
    html.ns-dark .ns-auto-backup { background: #0f1e33; border: 1px solid #2d425d; }
    html.ns-dark .ns-backup-card { background: #1b1b1b; border: 1px solid var(--ns-line); box-shadow: var(--ns-shadow); }
    html.ns-dark .ns-backup-card p { color: var(--body-quiet-color); }
    html.ns-dark .ns-backup-list { background: #1b1b1b; }
    html.ns-dark .danger-box { border: 2px solid #cf222e; background: #32110e; color: #f65a78; }
    html.ns-dark .ns-restore .button,
    html.ns-dark .ns-backup-list .button { background: #cf222e; color: #ffffff; }
    html.ns-dark .ns-dash { --ns-bar-soft: #131d30; }
    html.ns-dark .ns-card-text small { color: #9fa4af; }
    html.ns-dark .ns-panel { background: #1b1b1b; border: 1px solid var(--ns-line); box-shadow: var(--ns-shadow); }
    html.ns-dark .ns-panel h2 { color: #cfd7ea; background: none; }
    html.ns-dark .ns-muted { color: #9fa4af; }
    html.ns-dark .ns-empty { color: #9fa4af; }
    html.ns-dark .ns-bars a { color: #c7d1e0 !important; }
    html.ns-dark .ns-bars a:hover,
    html.ns-dark .ns-bars a:focus-visible { background: #181d27; }
    html.ns-dark .ns-bar-track { background: var(--ns-bar-soft); }
    html.ns-dark .ns-bar { background: var(--ns-bar); }
    html.ns-dark .ns-col { outline: none; }
    html.ns-dark .ns-col-value { color: #b9c2d0; }
    html.ns-dark .ns-col-track { border-bottom: 1px solid var(--ns-line); }
    html.ns-dark .ns-col-bar { background: color-mix(in srgb, var(--ns-bar) 55%, #1b1b1b); }
    html.ns-dark .ns-col.current .ns-col-bar { background: var(--ns-bar); }
    html.ns-dark .ns-col-label { color: #9fa4af; }
    html.ns-dark .ns-col.current .ns-col-label { color: var(--ns-blue); }
    html.ns-dark .ns-tip { background: #111827; color: #ffffff; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5); }
    html.ns-dark .ns-attention a { background: #181e25; border: 1px solid var(--ns-line); color: #c7d1e0 !important; }
    html.ns-dark .ns-attention a:hover { border-color: #2d3d5e; background: #111b2e; }
    html.ns-dark .ns-attention li { --tone: #2563eb; }
    html.ns-dark .ns-attention li.tone-warn { --tone: #f79e5a; }
    html.ns-dark .ns-attention li.tone-bad { --tone: #e86868; }
    html.ns-dark .ns-dot { background: var(--tone); }
    html.ns-dark .ns-tone-label { color: var(--tone); }
    html.ns-dark .ns-table th { color: #9fa4af; border-bottom: 1px solid var(--ns-line); background: none; }
    html.ns-dark .ns-table td { border-bottom: 1px solid #2b333c; }
    html.ns-dark .ns-table tr:last-child td { border-bottom: none; }
    html.ns-dark .ns-tag-c { background: #111d34; color: #6689ea; }
    html.ns-dark .ns-tag-v { background: #191131; color: #9b6ce5; }
    html.ns-dark .ns-version { color: #9fa4af; }
    html.ns-dark .ns-nav-group > summary { color: #c7d1e0; }
    html.ns-dark .ns-nav-group > summary .icon { color: #b9c2d0; }
    html.ns-dark .ns-nav-group > summary:hover { background: rgba(27, 27, 27, 0.55); }
    html.ns-dark .ns-nav-group > summary.active { background: var(--ns-blue-soft); color: var(--ns-blue); }
    html.ns-dark .ns-nav-group > summary.active .icon { color: var(--ns-blue); }
    html.ns-dark .ns-nav-chevron { color: #9ca3af; }
    html.ns-dark .ns-nav-chevron .icon { color: inherit !important; }
    html.ns-dark .ns-nav-sub { border-inline-start: 1.5px solid rgba(103, 113, 126, 0.35); }
    html.ns-dark .ns-nav-sec > summary { color: #97a3b4; }
    html.ns-dark .ns-nav-sec > summary:hover { background: rgba(27, 27, 27, 0.55); color: #b6c2d3; }
    html.ns-dark .ns-nav-sec[data-here] > summary { color: var(--sec); }
    html.ns-dark .ns-nav-dot { background: var(--sec); }
    html.ns-dark.ns-collapsed .ns-nav-sub { border: 0; }
    html.ns-dark.ns-framed body.popup { background: linear-gradient(180deg, rgba(13, 22, 45, 0.96), rgba(27, 33, 45, 0.96)); }
    html.ns-dark.ns-framed body.popup #content > h1 { color: #cfd7ea; }
    html.ns-dark.ns-framed body.popup fieldset.module { border: 1px solid rgba(43, 43, 43, 0.9); background: rgba(27, 27, 27, 0.6); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.12); }
    html.ns-dark.ns-framed body.popup fieldset .form-row { border: 0; }
    html.ns-dark.ns-framed body.popup fieldset input[type=text],
    html.ns-dark.ns-framed body.popup fieldset input:not([type]),
    html.ns-dark.ns-framed body.popup fieldset select { border: 1px solid rgba(103, 113, 126, 0.45); background: #1b1b1b; }
    html.ns-dark.ns-framed body.popup .submit-row { background: none; border: 0; box-shadow: none; }
    html.ns-dark.ns-framed body.popup .submit-row input[type=submit] { background: #4c4c51; border: 0; color: #ffffff; }
    html.ns-dark.ns-framed body.popup .ns-brand-finder { border: 1px solid rgba(43, 43, 43, 0.9); background: rgba(27, 27, 27, 0.6); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.12); }
    html.ns-dark .ns-brand-search { border: 1px solid rgba(103, 113, 126, 0.45); }
    html.ns-dark .ns-brand-list li:hover { background: rgba(37, 99, 235, 0.08); }
    html.ns-dark .ns-brand-list .ns-brand-edit { color: #b9c2d0; }
    html.ns-dark .ns-brand-list .ns-brand-edit:hover { background: #4c4c51; color: #ffffff; }
    html.ns-dark .ns-brand-none { color: #9fa4af; }
    html.ns-dark.ns-framed body.popup fieldset textarea { border: 1px solid rgba(103, 113, 126, 0.45); background: #1b1b1b; }
    html.ns-dark .ns-dash-tools button { border: 1px solid #2d4058; background: #1b1b1b; color: #608df0; }
    html.ns-dark .ns-dash-tools .ns-dash-save { background: #2563eb; color: #ffffff; border-color: #2563eb; }
    html.ns-dark .ns-dash-on .ns-dash-tray { border: 1px dashed #425a7f; background: #0e1b2f; }
    html.ns-dark .ns-dash-tray button { border: 1px solid #2d4058; background: #1b1b1b; }
    html.ns-dark .ns-dash-on [data-card] { outline: 2px dashed #425a7f; }
    html.ns-dark .ns-dash-on .ns-card-tools { background: #0f1e33; }
    html.ns-dark .ns-grip { color: #608df0; }
    html.ns-dark .ns-card-tools button { border: 1px solid #2d4058; background: #1b1b1b; }
    html.ns-dark .ns-card-tools .ns-sizes button.on { background: #2563eb; color: #ffffff; border-color: #2563eb; }
    html.ns-dark .ns-card-tools .ns-hide { color: #e86868; }
    html.ns-dark .ns-owes { color: #66ea97; }
    html.ns-dark .ns-owed { color: #e86868; }
    html.ns-dark .ns-neg { color: #e86868; }
    html.ns-dark tr.ns-late td { color: #e86868; }
    html.ns-dark .ns-dash-on #dash-grid .grid-stack-item.ui-draggable-dragging > .grid-stack-item-content { box-shadow: 0 24px 50px -12px rgba(0, 0, 0, 0.6) !important; }
    html.ns-dark #dash-grid .grid-stack-placeholder > .placeholder-content { border: 2px dashed #3a68a0; background: rgba(37, 99, 235, 0.07) !important; }
    html.ns-dark .ns-dash-on #dash-grid .grid-stack-item:hover .ui-resizable-e,
    html.ns-dark .ns-dash-on #dash-grid .grid-stack-item:hover .ui-resizable-w { background: linear-gradient(90deg, transparent 3px, rgba(37, 99, 235, 0.45) 3px, rgba(37, 99, 235, 0.45) 6px, transparent 6px); }
    html.ns-dark .ns-dash-on #dash-grid .grid-stack-item:hover .ui-resizable-s { background: linear-gradient(0deg, transparent 3px, rgba(37, 99, 235, 0.45) 3px, rgba(37, 99, 235, 0.45) 6px, transparent 6px); }
    html.ns-dark .ns-card-tools .ns-remove { color: #e86868; }
    html.ns-dark .ns-builder { border: 0; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6); }
    html.ns-dark .ns-builder::backdrop { background: rgba(15, 23, 42, 0.35); }
    html.ns-dark .ns-builder label { color: #b6c2d3; }
    html.ns-dark .ns-builder input,
    html.ns-dark .ns-builder select,
    html.ns-dark .ns-builder textarea { border: 1px solid #424b56; }
    html.ns-dark .ns-builder-buttons button { border: 1px solid #2d4058; background: #1b1b1b; color: #608df0; }
    html.ns-dark .ns-builder-buttons .ns-dash-save { background: #2563eb; color: #ffffff; border-color: #2563eb; }
    html.ns-dark .ns-links a { border: 1px solid #2d4058; background: #0e1b2f; }
    html.ns-dark .ns-pos { color: #6ae799; }
    html.ns-dark body .ns-dash .ns-panel[data-tint],
    html.ns-dark body .ns-dash [data-tint] .ns-card { background: linear-gradient(160deg, color-mix(in srgb, var(--tint) 42%, rgba(27, 27, 27, 0.7)),
                                    color-mix(in srgb, var(--tint) 26%, rgba(27, 27, 27, 0.62))) !important; border-color: color-mix(in srgb, var(--tint) 55%, #2b2b2b) !important; }
    html.ns-dark .ns-tints { background: rgba(27, 27, 27, 0.92); border: 1px solid #333d4d; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45); }
    html.ns-dark .ns-tints > button:not(.ns-tint-none) { border: 2px solid #2b2b2b; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12); }
    html.ns-dark .ns-tints > button.on { box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.6); }
    html.ns-dark .ns-tint-own input { border: 0; background: none; }
    html.ns-dark .ns-settings-part > header h2 { color: #cbd5ed; background: none; }
    html.ns-dark .ns-settings-part > header span { color: #97a3b4; }
    html.ns-dark .ns-settings-card { background: rgba(27, 27, 27, 0.72); border: 1px solid rgba(43, 43, 43, 0.9); box-shadow: 0 4px 18px rgba(0, 0, 0, 0.15); color: inherit; }
    html.ns-dark a.ns-settings-card:hover { background: rgba(27, 27, 27, 0.92); box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35); }
    html.ns-dark .ns-settings-card b { color: #cbd5ed; }
    html.ns-dark .ns-settings-card small { color: #97a3b4; }
    html.ns-dark .ns-settings-icon { background: #0f1e32; color: #608df0; }
    html.ns-dark .ns-settings-soon { border-color: #424b56; background: rgba(27, 27, 27, 0.45); box-shadow: none; }
    html.ns-dark .ns-settings-soon .ns-settings-icon { background: #1a2229; color: #94a3b8; }
    html.ns-dark .ns-builder-preview-title { color: #97a3b4; }
    html.ns-dark .ns-builder select optgroup { color: #718de0; }
    html.ns-dark .ns-w-big { color: #cbd5ed; }
    html.ns-dark .ns-w-big small { color: #97a3b4; }
    html.ns-dark .ns-w-note { color: #97a3b4; }
    html.ns-dark .ns-w-delta.up { color: #57f9cb; background: #19402c; }
    html.ns-dark .ns-w-delta.down { color: #e86868; background: #381212; }
    html.ns-dark .ns-lang { color: #6689ea !important; background: rgba(27, 27, 27, 0.8); border: 1px solid rgba(37, 99, 235, 0.25); }
    html.ns-dark .ns-lang:hover { background: #0f1e32; }
    html.ns-dark .ns-top-menu-button { border: 1px solid var(--ns-line); background: #171d26; color: #c7d1e0; }
    html.ns-dark .ns-top-menu-button .icon { color: var(--ns-blue); }
    html.ns-dark .ns-top-menu-button:hover,
    html.ns-dark .ns-top-menu.ns-open .ns-top-menu-button { border-color: #425a7f; background: #0f1e33; }
    html.ns-dark .ns-top-menu-list { background: #1b1b1b; border: 1px solid var(--ns-line); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3); }
    html.ns-dark .ns-top-menu-list a,
    html.ns-dark .ns-top-menu-list span { color: #c7d1e0 !important; }
    html.ns-dark .ns-top-menu-list a:hover { background: #171e29; }
    html.ns-dark .ns-top-menu-list .icon { color: var(--ns-blue); }
    html.ns-dark .ns-top-menu-list .ns-top-menu-soon { color: #9ca3af !important; }
    html.ns-dark .ns-top-menu-soon .icon { color: #9ca3af; }
    html.ns-dark body.ns-glass .ns-top-menu-list { background: var(--g-panel-strong); }
    html.ns-dark body.ns-glass .ns-top-menu-button { background: rgba(27, 27, 27, 0.6); }
    html.ns-dark .ns-history-find { border: 1px solid var(--ns-line); }
    html.ns-dark .ns-history-all { border: 1px solid #2d4058; background: #1b1b1b; color: #608df0; }
    html.ns-dark .ns-history-person { background: rgba(27, 27, 27, 0.75); border: 1px solid var(--ns-line); }
    html.ns-dark .ns-history-person > summary::before { color: #608df0; }
    html.ns-dark .ns-history-person > summary:hover { background: #111b2e; }
    html.ns-dark .ns-history-count { color: #608df0; background: #0f1e33; }
    html.ns-dark .ns-history-count.ns-history-none { color: #9ca3af; background: #1f2125; }
    html.ns-dark .ns-history-table th { color: #9fa4af; border-bottom: 1px solid var(--ns-line); }
    html.ns-dark .ns-history-table td { border-bottom: 1px solid #2e333c; }
    html.ns-dark .ns-history-table tbody tr:hover { background: #111b2e; }
    html.ns-dark .ns-history-empty { color: #9ca3af; }
    html.ns-dark .ns-ph-hint { color: #9fa4af; }
    html.ns-dark .ns-ph-choice { border: 1px solid var(--ns-line); background: rgba(27, 27, 27, 0.8); color: #c7d1e0 !important; }
    html.ns-dark .ns-ph-choice:hover { border-color: #425a7f; background: #111b2e; }
    html.ns-dark .ns-ph-choice b { color: #608df0; }
    html.ns-dark .ns-ph-oem,
    html.ns-dark .ns-ph-car { color: #9fa4af; }
    html.ns-dark .ns-ph-counts em { color: #608df0; background: #0f1e33; }
    html.ns-dark .ns-ph-product b { color: #608df0; }
    html.ns-dark .ns-ph-title small { color: #9fa4af; }
    html.ns-dark .ns-ph-box { border: 1px solid var(--ns-line); background: rgba(27, 27, 27, 0.8); }
    html.ns-dark .ns-ph-box small { color: #9fa4af; }
    html.ns-dark .ns-ph-box em { color: #9fa4af; }
    html.ns-dark .ns-ph-table { background: rgba(27, 27, 27, 0.75); }
    html.ns-dark .ns-ph-cancelled td { color: #9ca3af; }
    html.ns-dark .ns-ph-none { color: #9ca3af; }
    html.ns-dark .ns-ph .history-ordered { color: #6fe290; }
    html.ns-dark .ns-drop { border: 2px dashed #475264; background: #0d1a2e; color: #acb7c6; }
    html.ns-dark .ns-drop.over,
    html.ns-dark .ns-drop:hover { border-color: #2563eb; background: #0f1b33; }
    html.ns-dark .ns-drop.has-file { border-color: #16a34a; background: #172a1e; }
    html.ns-dark .ns-drop-file { color: #69e89f; }
    html.ns-dark .ns-update-done h2 { color: #69e89f; }
    html.ns-dark a.ns-version:hover { color: #608df0; }
    html.ns-dark .ns-update-found { border: 1px solid #40664e; background: #172a1e; }
    html.ns-dark .ns-update-found b { color: #69e89f; }
    html.ns-dark .acc-home-btn { background: linear-gradient(120deg, #1d4ed8, #0891b2); color: #ffffff !important; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.6); }
    html.ns-dark .acc-home-btn .icon { color: currentColor; }
    html.ns-dark .ns-pop { background: #1b1b1b; color: #73dd9d; border: 1px solid #2d6741; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6); }
    html.ns-dark .ns-pop-mark { background: #16a34a; color: #ffffff; }
    html.ns-dark .ns-pop-error { color: #df7272; border-color: #602222; }
    html.ns-dark .ns-pop-error .ns-pop-mark { background: #dc2626; }
    html.ns-dark .ns-back { border: 1px solid #343e4c; background: #1b1b1b; color: #718de0 !important; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15); }
    html.ns-dark .ns-back:hover { background: #0f1e32; border-color: #244267; }
    html.ns-dark.ns-dark .ns-back { background: #3f536f; border-color: #8c9ab1; color: #e5e7eb !important; }
    html.ns-dark dialog.ns-frame { border: 0; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6); }
    html.ns-dark dialog.ns-frame::backdrop { background: rgba(15, 23, 42, 0.4); }
    html.ns-dark .ns-frame-head { background: #1f2227; color: #c7d1e0; }
    html.ns-dark .ns-frame-close { border: 0; background: #25282f; color: #b6c2d3; }
    html.ns-dark dialog.ns-frame iframe { border: 0; background: #1b1e23; }
    html.ns-dark.ns-dark .ns-frame-head { background: #3f536f; color: #e5e7eb; }
    html.ns-dark .ns-health-intro { color: #abb6c6; }
    html.ns-dark .ns-health-all { background: #13311f; color: #71e09b; }
    html.ns-dark .ns-health-card { background: #1b1b1b; border: 1px solid #353c45; }
    html.ns-dark .ns-health-card p { color: #b6c2d3; }
    html.ns-dark .ns-health-card small { color: #97a3b4; }
    html.ns-dark .ns-h-dot { background: #16a34a; }
    html.ns-dark .ns-h-tag { background: #13311f; color: #71e09b; }
    html.ns-dark .ns-h-warn .ns-h-dot { background: #d97706; }
    html.ns-dark .ns-h-warn .ns-h-tag { background: #33230f; color: #f79e5a; }
    html.ns-dark .ns-h-warn { border-color: #745028; }
    html.ns-dark .ns-h-bad .ns-h-dot { background: #dc2626; }
    html.ns-dark .ns-h-bad .ns-h-tag { background: #2f1111; color: #e86868; }
    html.ns-dark .ns-h-bad { border-color: #602222; }
    html.ns-dark .lp-imp-save fieldset { border: 0; }
    html.ns-dark tr.lp-imp-same td { color: #6689ea; }
    html.ns-dark .ns-wh { border: 1px solid #303745; background: rgba(27, 27, 27, 0.6); }
    html.ns-dark .ns-wh-name { color: #6689ea; }
    html.ns-dark .ns-wh-name small { color: #97a3b4; }
    html.ns-dark .ns-wh-facts { color: #abb6c6; }
    html.ns-dark .ns-wh-facts b { color: #cbd5ed; }
    html.ns-dark .ns-wh-items summary { color: #608df0; }
    html.ns-dark .ns-help-menu { background: #1b1b1b; border: 1px solid var(--ns-line); }
    html.ns-dark .ns-help-menu h3 { color: #9fa4af; }
    html.ns-dark .ns-help-menu a { color: #c7d1e0 !important; }
    html.ns-dark .ns-help-menu a:hover { background: #0f1e33; }
    html.ns-dark .ns-help-menu a.here { background: #142137; color: #6a8fe7 !important; }
    html.ns-dark .ns-help-find input { border: 1px solid #404853; }
    html.ns-dark .ns-help-body { background: #1b1b1b; border: 1px solid var(--ns-line); }
    html.ns-dark .ns-help-body h2 { border-top: 1px solid var(--ns-line); }
    html.ns-dark .ns-help-body h4 { color: #acb3bb; }
    html.ns-dark .ns-help-line { color: #acb3bb; }
    html.ns-dark .ns-help-body kbd,
    html.ns-dark .ns-help-body .btn { border: 1px solid #404853; background: #171d26; }
    html.ns-dark .ns-help-table th,
    html.ns-dark .ns-help-table td { border: 1px solid var(--ns-line); }
    html.ns-dark .ns-help-table th { background: #181f28; }
    html.ns-dark .ns-help-example { background: #111b2e; border: 1px solid #2d3e5d; }
    html.ns-dark .ns-help-example::before { color: #6a8fe7; }
    html.ns-dark .ns-help-note { background: #372b10; border: 1px solid #756034; }
    html.ns-dark .ns-help-forms { border-top: 1px solid var(--ns-line); }
    html.ns-dark .ns-help-forms > summary { color: #6a8fe7; }
    html.ns-dark .ns-help-next { border-top: 1px solid var(--ns-line); }
    html.ns-dark .ns-help-cards section h2 { border: 0; }
    html.ns-dark .ns-help-cards a,
    html.ns-dark .ns-help-hit { border: 1px solid var(--ns-line); color: #c7d1e0 !important; }
    html.ns-dark .ns-help-cards a:hover,
    html.ns-dark .ns-help-hit:hover { border-color: #425a7f; background: #111b2e; }
    html.ns-dark .ns-help-cards small,
    html.ns-dark .ns-help-hit span { color: #9fa4af; }
    html.ns-dark .ns-panel .ns-table tfoot th { color: inherit; border-top: 1px solid rgba(127, 127, 127, 0.25); }
    html.ns-dark .ns-lan-state { background: #1f2125; }
    html.ns-dark .ns-lan-state.ns-on { background: #1c3025; color: #69e89f; }
    html.ns-dark .ns-lan-qr { border: 1px solid var(--ns-line); }
    html.ns-dark .ns-lan-name { color: #b9c2d0; }
    
    /* ---- catalog/static/catalog/glass.css */
    html.ns-dark body.ns-glass { --g-panel: rgba(27, 27, 27, 0.58); --g-panel-strong: rgba(27, 27, 27, 0.78); --g-edge: rgba(43, 43, 43, 0.75); --g-line: rgba(30, 58, 138, 0.1); --g-shadow: 0 8px 32px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.096); }
    html.ns-dark:has(body.ns-glass),
    html.ns-dark body.ns-glass,
    html.ns-dark body.ns-glass #container { background: transparent; }
    html.ns-dark body.ns-glass::before { background: #1b1e23; }
    html.ns-dark body.ns-glass .ns-sidebar,
    html.ns-dark body.ns-glass .ns-topbar,
    html.ns-dark body.ns-glass .module,
    html.ns-dark body.ns-glass fieldset.module,
    html.ns-dark body.ns-glass .inline-group,
    html.ns-dark body.ns-glass #changelist .changelist-form-container,
    html.ns-dark body.ns-glass #changelist-filter,
    html.ns-dark body.ns-glass .submit-row,
    html.ns-dark body.ns-glass .acc-card,
    html.ns-dark body.ns-glass .acc-filters,
    html.ns-dark body.ns-glass .acc-sheet,
    html.ns-dark body.ns-glass .acc-reset,
    html.ns-dark body.ns-glass .acc-totals,
    html.ns-dark body.ns-glass #toolbar,
    html.ns-dark body.ns-glass .ns-card,
    html.ns-dark body.ns-glass .ns-panel,
    html.ns-dark body.ns-glass .ns-backup-card,
    html.ns-dark body.ns-glass .ns-auto-backup,
    html.ns-dark body.ns-glass .linked-box,
    html.ns-dark body.ns-glass .send-card { background: var(--g-panel) !important; border: 1px solid var(--g-edge) !important; box-shadow: var(--g-shadow); }
    html.ns-dark body.ns-glass .ns-brand { border-bottom-color: var(--g-line); }
    html.ns-dark body.ns-glass .ns-nav a:hover { background: rgba(27, 27, 27, 0.55); }
    html.ns-dark body.ns-glass .ns-nav a.active { background: rgba(37, 99, 235, 0.12); box-shadow: none; }
    html.ns-dark body.ns-glass .ns-search input[type=search] { background: rgba(27, 27, 27, 0.6); border-color: var(--g-edge); }
    html.ns-dark body.ns-glass .ns-user-menu { background: var(--g-panel-strong); }
    html.ns-dark body.ns-glass table thead th,
    html.ns-dark body.ns-glass .module table th,
    html.ns-dark body.ns-glass #result_list thead th,
    html.ns-dark body.ns-glass .acc-table th { background: rgba(27, 27, 27, 0.45) !important; border-color: var(--g-line); }
    html.ns-dark body.ns-glass #result_list tbody td,
    html.ns-dark body.ns-glass #result_list tbody th,
    html.ns-dark body.ns-glass #result_list tbody tr:nth-child(even) td,
    html.ns-dark body.ns-glass #result_list tbody tr:nth-child(even) th,
    html.ns-dark body.ns-glass .module td,
    html.ns-dark body.ns-glass .acc-table td { background: transparent; border-color: var(--g-line); }
    html.ns-dark body.ns-glass #result_list tbody tr:hover td,
    html.ns-dark body.ns-glass #result_list tbody tr:hover th { background: rgba(27, 27, 27, 0.55); }
    html.ns-dark body.ns-glass .acc-table tfoot td,
    html.ns-dark body.ns-glass .acc-table tr.section td { background: rgba(27, 27, 27, 0.5); }
    html.ns-dark body.ns-glass .acc-table tr.result td { background: rgba(25, 64, 44, 0.55); }
    html.ns-dark body.ns-glass .acc-table tr.opening td { background: rgba(72, 62, 22, 0.55); }
    html.ns-dark body.ns-glass .module h2,
    html.ns-dark body.ns-glass .inline-group h2,
    html.ns-dark body.ns-glass fieldset.module h2 { background: transparent !important; color: #718de0; border-bottom: 1px solid var(--g-line); }
    html.ns-dark body.ns-glass input[type=text],
    html.ns-dark body.ns-glass input[type=number],
    html.ns-dark body.ns-glass input[type=email],
    html.ns-dark body.ns-glass input[type=password],
    html.ns-dark body.ns-glass input[type=url],
    html.ns-dark body.ns-glass textarea,
    html.ns-dark body.ns-glass select,
    html.ns-dark body.ns-glass .vTextField,
    html.ns-dark body.ns-glass .select2-container--admin-autocomplete .select2-selection { background: rgba(27, 27, 27, 0.85); border: 1px solid rgba(103, 113, 126, 0.35); }
    html.ns-dark body.ns-glass input:focus,
    html.ns-dark body.ns-glass textarea:focus,
    html.ns-dark body.ns-glass select:focus { outline: 3px solid rgba(37, 99, 235, 0.18); border-color: #2563eb; }
    html.ns-dark body.ns-glass .submit-row input.default,
    html.ns-dark body.ns-glass input[type=submit].default,
    html.ns-dark body.ns-glass .object-tools a.addlink { background: linear-gradient(180deg, #3b74f0, #2251d6) !important; color: #ffffff !important; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.042); }
    html.ns-dark body.ns-glass .object-tools a:link,
    html.ns-dark body.ns-glass .object-tools a:visited { background: rgba(27, 27, 27, 0.6); border: 1px solid var(--g-edge); }
    html.ns-dark body.ns-glass .acc-card:hover { background: rgba(27, 27, 27, 0.78) !important; }
    html.ns-dark body.ns-glass .jdate-pop { background: rgba(27, 27, 27, 0.85); border-color: var(--g-edge); }
    html.ns-dark .g-drawer-backdrop { background: rgba(30, 41, 99, 0.18); }
    html.ns-dark .g-drawer { background: rgba(27, 27, 27, 0.62); border: 1px solid rgba(43, 43, 43, 0.8); box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.108); }
    html.ns-dark .g-drawer-head { border-bottom: 1px solid rgba(30, 58, 138, 0.1); }
    html.ns-dark .g-drawer-head b { color: #cfd7ea; }
    html.ns-dark .g-drawer-head button { border: 1px solid rgba(43, 43, 43, 0.9); background: rgba(27, 27, 27, 0.8); color: #b9c2d0; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); }
    html.ns-dark .g-drawer-head button:hover { background: #1b1b1b; }
    html.ns-dark .g-drawer iframe { border: 0; background: transparent; }
    html.ns-dark .g-toast { background: rgba(19, 49, 35, 0.9); border: 1px solid rgba(43, 43, 43, 0.9); color: #a4f9e1; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45); }
    html.ns-dark body.ns-glass .acc-filters .jdate-button { border: 0; background: none; }
    html.ns-dark body.ns-glass .ns-attention a { background: rgba(27, 27, 27, 0.55); border-color: var(--g-edge); }
    html.ns-dark body.ns-glass .ns-attention a:hover { background: rgba(27, 27, 27, 0.85); }
    html.ns-dark body.ns-glass .ns-bar-track { background: rgba(37, 99, 235, 0.08); }
    html.ns-dark body.ns-glass .ns-table td { border-color: var(--g-line); }
    html.ns-dark body.ns-top-filters #changelist-filter h2 { border: 0 !important; background: none !important; color: #718de0; }
    html.ns-dark body.ns-top-filters #changelist-filter-extra-actions { border: 0 !important; }
    html.ns-dark body.ns-top-filters #changelist-filter #changelist-filter-clear { border: 0; }
    html.ns-dark body.ns-top-filters #changelist-filter details { border: 0; }
    html.ns-dark body.ns-top-filters #changelist-filter details summary { border: 1px solid rgba(43, 43, 43, 0.85); background: rgba(27, 27, 27, 0.6); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.175); color: #c7d1e0; }
    html.ns-dark body.ns-top-filters #changelist-filter details summary::after { color: #9fa4af; }
    html.ns-dark body.ns-top-filters #changelist-filter details[open] summary,
    html.ns-dark body.ns-top-filters #changelist-filter details summary:hover { background: rgba(27, 27, 27, 0.9); color: #6689ea; }
    html.ns-dark body.ns-top-filters #changelist-filter details.ns-filter-on summary { background: rgba(37, 99, 235, 0.12); border-color: rgba(37, 99, 235, 0.3); color: #6b88e6; }
    html.ns-dark body.ns-top-filters #changelist-filter details ul { background: rgba(27, 27, 27, 0.95); border: 1px solid rgba(43, 43, 43, 0.9); box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5); }
    html.ns-dark body.ns-top-filters #changelist-filter details li a { color: #cfd7ea; }
    html.ns-dark body.ns-top-filters #changelist-filter details li a:hover { background: rgba(37, 99, 235, 0.1); color: #6689ea; }
    html.ns-dark body.ns-top-filters #changelist-filter details li.selected a { background: rgba(37, 99, 235, 0.14); color: #6689ea; }
    html.ns-dark body.ns-top-filters #changelist-filter details li.selected { border: 0; }
    html.ns-dark body.ns-glass a.add-related,
    html.ns-dark body.ns-glass a.related-widget-wrapper-link.add-related { background: #1b1b1b url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 7v10M7 12h10' stroke='%23111' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center / 18px no-repeat; box-shadow: inset 0 0 0 1.6px rgba(0, 0, 0, 0.6), 0 2px 5px rgba(0, 0, 0, 0.375); }
    html.ns-dark body.ns-glass a.add-related:hover { background-color: #212428; }
    html.ns-dark body.ns-glass .inline-group .add-row a,
    html.ns-dark body.ns-glass a.addlink:not(.object-tools a) { background-image: none !important; }
    html.ns-dark body.ns-glass .inline-group .add-row a::before,
    html.ns-dark body.ns-glass a.addlink:not(.object-tools a)::before { background: #1b1b1b url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 7v10M7 12h10' stroke='%23111' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center / 16px no-repeat; box-shadow: inset 0 0 0 1.6px rgba(0, 0, 0, 0.6), 0 2px 5px rgba(0, 0, 0, 0.375); }
    
    /* ---- invoices/static/invoices/invoice.css */
    html.ns-dark .inline-group .tabular tr.row-checked td { background: rgba(255, 196, 0, 0.3); }
    html.ns-dark .inline-group .tabular input[name$="-row_number"] { background: transparent; border: none; }
    html.ns-dark .row-tool { border: 1px solid var(--border-color, #545454); background: var(--body-bg, #1b1b1b); color: var(--body-fg, #cfcfcf); }
    html.ns-dark .row-tool:hover { background: var(--selected-bg, #2e2e2e); }
    html.ns-dark .audit { color: var(--body-quiet-color, #b0b0b0); }
    html.ns-dark .product-info-dialog { border: 1px solid var(--border-color, #545454); background: var(--body-bg, #1b1b1b); color: var(--body-fg, #cfcfcf); }
    html.ns-dark .product-info-dialog::backdrop { background: rgba(61, 61, 61, 0.4); }
    html.ns-dark .vendor-badge { color: #ffffff !important; }
    html.ns-dark .linked-box { border-inline-start: 6px solid; background: var(--body-bg, #1b1b1b); box-shadow: 0 1px 6px rgba(0, 0, 0, 0.125); }
    html.ns-dark .linked-table tr.current td { background: var(--selected-row, #454514); }
    html.ns-dark .send-card { background: var(--body-bg, #1b1b1b); }
    html.ns-dark .send-button { background: var(--default-button-bg, #205067) !important; }
    html.ns-dark .object-tools li.report-buttons { background: none; color: var(--body-quiet-color); }
    html.ns-dark .change-form #content-main form > div > fieldset.aligned .form-row { border-bottom: none; }
    html.ns-dark .inline-group .tabular td.field-status p { color: #608df0; }
    html.ns-dark .line-warning { color: #e76a73; }
    html.ns-dark .danger-box { border: 2px solid #cf222e; background: #32110e; color: #f65a78; }
    html.ns-dark .danger-box h3 { color: #e76a73; }
    html.ns-dark .frame-dialog { border: none; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6); }
    html.ns-dark .frame-dialog::backdrop { background: rgba(15, 23, 42, 0.45); }
    html.ns-dark .frame-dialog iframe { border: 0; }
    html.ns-dark .frame-dialog .dialog-close { border: none; background: transparent; color: #9fa4af; }
    html.ns-dark body.popup .send-card { box-shadow: none; }
    html.ns-dark .country-warning { border: 1px solid #d4a72c; background: #494315; }
    html.ns-dark .linked-table th.sortable-th:hover { color: var(--ns-blue, #608df0); }
    html.ns-dark .linked-table th.sortable-th::after { color: #9ca3af; }
    html.ns-dark .linked-table th[data-sort="asc"]::after { color: var(--ns-blue, #608df0); }
    html.ns-dark .linked-table th[data-sort="desc"]::after { color: var(--ns-blue, #608df0); }
    html.ns-dark .already-sent { color: #6fe290; }
    html.ns-dark .send-info { color: var(--ns-blue, #608df0); }
    html.ns-dark .send-info.is-sent { color: #ffc652; }
    html.ns-dark .import-preview tr.bad-row td { background: #32110e; }
    html.ns-dark .import-preview tr.choose-row td { background: #373110; }
    html.ns-dark .choose-text { color: #f8b759; }
    html.ns-dark .ok-text { color: #6fe290; }
    html.ns-dark .bad-text { color: #e76a73; }
    html.ns-dark .object-tools a.import-button,
    html.ns-dark .import-button { background: #1a7f37 !important; color: #ffffff !important; }
    html.ns-dark .inline-group .tabular .info-button { color: #608df0; background: #1b1b1b; border: 1.5px solid #2563eb; }
    html.ns-dark .inline-group .tabular .info-button:hover { background: #0f1a32; }
    html.ns-dark .date-edit-button { border: 1px solid #2563eb; color: #608df0; background: #1b1b1b; }
    html.ns-dark .date-edit-button:hover { background: #0f1a32; }
    html.ns-dark .mail-item { border: 1px solid var(--hairline-color, #3a3c42); background: #1b1b1b; }
    html.ns-dark .mail-item.mail-in { border-inline-start: 4px solid #16a34a; }
    html.ns-dark .mail-item.mail-out { border-inline-start: 4px solid var(--ns-blue, #2563eb); }
    html.ns-dark .mail-kind { color: #9fa4af; }
    html.ns-dark .mail-date { color: #9fa4af; }
    html.ns-dark .mail-badge { background: #dc2626; color: #ffffff; }
    html.ns-dark .mail-meta { color: #afb7c3; }
    html.ns-dark .mail-text { border-top: 1px solid #29333e; }
    html.ns-dark .mail-from { color: #afb7c3; }
    html.ns-dark .price-import tr.compare-found td:last-child { color: #6fe290; }
    html.ns-dark .price-import tr.compare-alternative td { background: #1a0e32; }
    html.ns-dark .price-import tr.compare-extra td { background: #372c10; }
    html.ns-dark .price-import tr.compare-skip td { color: #9ca3af; }
    html.ns-dark .price-import tr.title-row td { background: #0f1b33; }
    html.ns-dark .price-import .column-map tr.mapped td { background: #0f1b33; }
    html.ns-dark .price-import .column-map td.samples span { color: #b9c2d0; }
    html.ns-dark tr.form-row[data-status="need_discount"] td { background: #544b18 !important; }
    html.ns-dark tr.form-row[data-status="customer_cancel"] td,
    html.ns-dark tr.form-row[data-status="cancelled"] td { background: #411813 !important; }
    html.ns-dark tr.form-row[data-status="ordered"] td { background: #1e3825 !important; }
    html.ns-dark tr.form-row[data-status="ordered_/_shipped"] td { background: #223d37 !important; }
    html.ns-dark tr.form-row[data-status="extra"] td,
    html.ns-dark tr.form-row[data-status="extra_/_shipped"] td { background: #221036 !important; }
    html.ns-dark tr.form-row[data-status="ordered_/_not_shipped"] td,
    html.ns-dark tr.form-row[data-status="extra_/_not_shipped"] td { background: #381414 !important; }
    html.ns-dark .order-table td.field-quantity_shipped input { background: #373110; }
    html.ns-dark .order-table td.field-back_order_text { color: #eb6f66; }
    html.ns-dark td.field-ordered { background: #1c2e21; }
    html.ns-dark .object-tools a.cancel-order-button { background: #cf222e !important; color: #ffffff !important; }
    html.ns-dark tr.form-row[data-status="after_discount"] td { background: #503817 !important; }
    html.ns-dark tr.form-row[data-status="add_new_item"] td { background: #381b23 !important; }
    html.ns-dark tr.form-row[data-status="not_available"] td { background: #21252a !important; }
    html.ns-dark .discount-pop { background: #24527a; color: #ffffff; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6); }
    html.ns-dark .discount-pop label { color: #ffffff; }
    html.ns-dark .discount-pop input,
    html.ns-dark .discount-pop output { border: 0; background: #1b1b1b; color: #e3e3e3; }
    html.ns-dark .discount-pop output { background: #222b34; }
    html.ns-dark .discount-pop hr { border: 0; border-top: 1px solid rgba(43, 43, 43, 0.35); }
    html.ns-dark .discount-pop .dp-error { color: #ffd8d3; }
    html.ns-dark .discount-pop .dp-warn { background: rgba(255, 196, 0, 0.18); border: 1px solid rgba(157, 129, 52, 0.6); color: #fff3c4; }
    html.ns-dark .discount-pop .dp-warn label { color: #ffffff; }
    html.ns-dark .order-table th .shipped-all { border: 1px solid #2563eb; background: #0f1b33; color: #6689ea; }
    html.ns-dark .order-table th .shipped-all:hover { background: #12203d; }
    html.ns-dark .frame-dialog.reports-dialog { background: linear-gradient(160deg, rgba(27, 27, 27, 0.82), rgba(15, 29, 52, 0.7)); border: 1px solid rgba(43, 43, 43, 0.85); box-shadow: 0 30px 70px -16px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.114); }
    html.ns-dark .frame-dialog.reports-dialog::backdrop { background: rgba(15, 23, 42, 0.22); }
    html.ns-dark .frame-dialog.reports-dialog .dialog-close { background: rgba(27, 27, 27, 0.8); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.3); }
    html.ns-dark:has(body.popup.reports-page),
    html.ns-dark body.popup.reports-page { background: transparent !important; }
    html.ns-dark body.popup.reports-page #container,
    html.ns-dark body.popup.reports-page #main,
    html.ns-dark body.popup.reports-page #content { background: transparent !important; }
    html.ns-dark body.popup.reports-page .reports-card { background: transparent !important; border: 0 !important; box-shadow: none !important; }
    html.ns-dark .reports-card .reports-filter { color: #abb6c6; }
    html.ns-dark .reports-card .reports-table thead,
    html.ns-dark .reports-card .reports-table thead tr { background: transparent !important; }
    html.ns-dark .reports-card .reports-table thead th { background: transparent !important; border: 0 !important; color: #97a3b4; }
    html.ns-dark .reports-card .reports-table tbody td { background: rgba(27, 27, 27, 0.72) !important; border: 0 !important; }
    html.ns-dark .reports-card .reports-table tbody tr { box-shadow: 0 2px 8px -4px rgba(0, 0, 0, 0.45); }
    html.ns-dark .reports-card .reports-table .button,
    html.ns-dark .reports-card .reports-table .button.default { background: #1b1b1b !important; color: #cfd7ea !important; border: 1px solid rgba(112, 139, 204, 0.12) !important; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important; }
    html.ns-dark .reports-card .reports-table .button.default { color: #6689ea !important; }
    html.ns-dark .reports-card .reports-table .button:hover { background: #181e25 !important; box-shadow: 0 3px 10px -2px rgba(0, 0, 0, 0.4) !important; }
    html.ns-dark .notes-card h2 .notes-party { color: #97a3b4; }
    html.ns-dark .notes-card .note-new,
    html.ns-dark .notes-card .note-item { background: rgba(27, 27, 27, 0.72); box-shadow: 0 2px 8px -4px rgba(0, 0, 0, 0.45); }
    html.ns-dark .notes-card textarea { border: 1px solid rgba(112, 139, 204, 0.14); background: rgba(27, 27, 27, 0.9); }
    html.ns-dark .notes-card textarea:focus { outline: 2px solid rgba(37, 99, 235, 0.35); border-color: #2d5581; }
    html.ns-dark .notes-card .note-attach { background: #1b1b1b; border: 1px dashed rgba(37, 99, 235, 0.45); color: #6689ea; }
    html.ns-dark .notes-card .note-attach:hover { background: #0f1e32; }
    html.ns-dark .notes-card .note-picked { color: #abb6c6; }
    html.ns-dark .notes-card .button,
    html.ns-dark .notes-card .button.default { background: #1b1b1b !important; color: #cfd7ea !important; border: 1px solid rgba(112, 139, 204, 0.12) !important; }
    html.ns-dark .notes-card .button.default { background: #2563eb !important; color: #ffffff !important; border-color: #2563eb !important; }
    html.ns-dark .notes-card .note-actions button { border: 0; background: none; color: #608df0; }
    html.ns-dark .notes-card .note-actions button:hover { background: rgba(37, 99, 235, 0.08); }
    html.ns-dark .notes-card .note-actions .note-del { color: #e86868; }
    html.ns-dark .notes-card .note-file { background: #1b1b1b; border: 1px solid rgba(112, 139, 204, 0.1); }
    html.ns-dark .notes-card .note-file a,
    html.ns-dark .notes-card .note-file .note-open button { color: #cfd7ea; border: 0; background: none; }
    html.ns-dark .notes-card .note-file a:hover bdi,
    html.ns-dark .notes-card .note-file .note-open button:hover bdi { color: #608df0; }
    html.ns-dark .notes-card .note-file small { color: #94a3b8; }
    html.ns-dark .notes-card .note-file-del { border: 0; background: none; color: #94a3b8; }
    html.ns-dark .notes-card .note-file-del:hover { color: #e86868; }
    html.ns-dark .notes-card .note-when { color: #97a3b4; }
    html.ns-dark .history-card .history-find input { border: 1px solid rgba(112, 139, 204, 0.14); }
    html.ns-dark .history-card .history-choices a { background: rgba(27, 27, 27, 0.7); }
    html.ns-dark .history-card .history-choices a:hover { background: #0f1e32; }
    html.ns-dark .history-card .history-product { background: rgba(15, 30, 50, 0.8); }
    html.ns-dark .history-card .history-product span { color: #abb6c6; }
    html.ns-dark .history-card .history-box { background: rgba(27, 27, 27, 0.8); border: 1px solid rgba(112, 139, 204, 0.08); }
    html.ns-dark .history-card .history-box small { color: #97a3b4; }
    html.ns-dark .history-card .history-box div span { color: #abb6c6; }
    html.ns-dark .history-card .history-box div em { color: #97a3b4; }
    html.ns-dark .history-card .history-box div.low b { color: #6ae799; }
    html.ns-dark .history-card .history-table { background: rgba(27, 27, 27, 0.75); }
    html.ns-dark .history-card .history-table th { background: rgba(26, 34, 41, 0.9); }
    html.ns-dark .history-card .history-table th,
    html.ns-dark .history-card .history-table td { border-bottom: 1px solid rgba(112, 139, 204, 0.06); }
    html.ns-dark .history-card .history-ordered { color: #6ae799; }
    html.ns-dark .history-card .history-hint { color: #97a3b4; }
    html.ns-dark .history-card .history-choices a em { color: #6ae799; background: #163b22; }
    html.ns-dark .reminder-due { background: rgba(72, 62, 22, 0.9); border: 1px solid #ac913c; color: #f09761; }
    html.ns-dark .reminder-due.late { background: rgba(56, 18, 18, 0.9); border-color: #762b2b; color: #e56c6c; }
    html.ns-dark .reminders-card .reminder-new { background: rgba(27, 27, 27, 0.75); }
    html.ns-dark .reminders-card .reminder-new input[name=text] { border: 1px solid rgba(112, 139, 204, 0.14); }
    html.ns-dark .reminders-card .reminder-item { background: rgba(27, 27, 27, 0.8); border-inline-start: 4px solid #2d5581; }
    html.ns-dark .reminders-card .reminder-item.today { border-inline-start-color: #f59e0b; background: rgba(72, 62, 22, 0.7); }
    html.ns-dark .reminders-card .reminder-item.late { border-inline-start-color: #b14848; background: rgba(56, 18, 18, 0.7); }
    html.ns-dark .reminders-card .reminder-item.done { border-inline-start-color: #3d8858; }
    html.ns-dark .reminders-card .reminder-when small { color: #97a3b4; }
    html.ns-dark .reminders-card .reminder-actions button { border: 1px solid rgba(112, 139, 204, 0.12); background: #1b1b1b; }
    html.ns-dark .reminders-card .reminder-actions .reminder-done { color: #6ae799; border-color: #3d8858; }
    html.ns-dark .reminders-card .reminder-hint { color: #97a3b4; }
    html.ns-dark .reminders-card .reminder-old summary { color: #abb6c6; }
    html.ns-dark .inline-group tr.ns-dup > td { background: rgba(87, 59, 26, 0.55) !important; }
    html.ns-dark .inline-group tr.ns-dup > td.field-row_number,
    html.ns-dark .inline-group tr.ns-dup > td.original { box-shadow: inset -3px 0 0 rgba(0, 0, 0, 0.6); }
    html.ns-dark .inline-group tr.ns-dup > td.field-product::after { color: #f5885c; background: #402d13; }
    html.ns-dark .ns-price-was { color: #f5885c; background: #33230f; border: 1px solid #745028; }
    html.ns-dark .ns-price-was small { color: #ed8664; }
    html.ns-dark td:has(> .ns-price-was.up) input[name$='-price_vendor'] { border-color: #b67540 !important; }
    html.ns-dark .ns-price-was.same { color: #abb6c6; background: #181e25; border-color: #333c47; }
    html.ns-dark .ns-price-was.same small { color: #97a3b4; }
    html.ns-dark .ns-price-was.down { color: #6ae799; background: #132e1b; border-color: #2d6741; }
    html.ns-dark .ns-price-was.down small { color: #71e09b; }
    html.ns-dark .info-button.history-row-button svg text { fill: #6ae799; }
    html.ns-dark .ns-pinned { color: #ffefaf; border: 0; --paper-a: #504a17; --paper-b: #726a21; --paper-c: #82772b; --paper-fold: #8c8138; background: linear-gradient(170deg, var(--paper-a) 0%, var(--paper-b) 60%, var(--paper-c) 100%); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2), 0 10px 18px -6px rgba(0, 0, 0, 0.6); }
    html.ns-dark .ns-pinned.ns-paper-1 { color: #d57ca0; --paper-a: #3a1120; --paper-b: #471526; --paper-c: #53182b; --paper-fold: #5d2639; }
    html.ns-dark .ns-pinned.ns-paper-2 { color: #bce2be; --paper-a: #273b1a; --paper-b: #344d25; --paper-c: #3f5d2e; --paper-fold: #4d6b3c; }
    html.ns-dark .ns-pinned.ns-paper-3 { color: #73aade; --paper-a: #11283b; --paper-b: #153049; --paper-c: #193857; --paper-fold: #254563; }
    html.ns-dark .ns-pinned:hover { box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2), 0 16px 24px -8px rgba(0, 0, 0, 0.6); }
    html.ns-dark .ns-pinned::after { background: linear-gradient(225deg, var(--paper-fold) 50%, transparent 50%); }
    html.ns-dark .ns-pin { background: radial-gradient(circle at 35% 30%, #691e1e, #d61f1f 55%, #8e0d0d); box-shadow: 0 3px 4px rgba(0, 0, 0, 0.6); }
    html.ns-dark .ns-pin::after { background: rgba(61, 61, 61, 0.25); }
    html.ns-dark .ih-card .ih-head { background: rgba(15, 30, 50, 0.85); }
    html.ns-dark .ih-card .ih-head span { color: #97a3b4; }
    html.ns-dark .ih-card .ih-status b { color: #6689ea; }
    html.ns-dark .ih-card .ih-table { background: rgba(27, 27, 27, 0.8); }
    html.ns-dark .ih-card .ih-table th { background: rgba(26, 34, 41, 0.95); }
    html.ns-dark .ih-card .ih-table td { border-bottom: 1px solid rgba(112, 139, 204, 0.07); }
    html.ns-dark .ih-card .ih-table tbody tr:nth-child(even) td { background: rgba(24, 30, 37, 0.7); }
    html.ns-dark .ih-card .ih-item small { color: #97a3b4; }
    html.ns-dark .ih-card .ih-cell { border-inline-start: 1px solid rgba(112, 139, 204, 0.05); }
    html.ns-dark .ih-card .ih-badge { color: #718de0; background: #13253c; }
    html.ns-dark .ih-card .ih-qty { color: #b6c2d3; }
    html.ns-dark .ih-card .ih-price { color: #cbd5ed; }
    html.ns-dark .ih-card .ih-total { color: #abb6c6; }
    html.ns-dark .ih-card .ih-extra { color: #97a3b4; }
    html.ns-dark .ih-card .ih-none { color: #cbd5e1; }
    html.ns-dark .ih-card .ih-last { color: #6ae799; }
    html.ns-dark .ih-card .ih-totals div { background: rgba(27, 27, 27, 0.85); border: 1px solid rgba(112, 139, 204, 0.08); }
    html.ns-dark .ih-card .ih-totals span { color: #abb6c6; }
    html.ns-dark .ih-card .ih-events li { border-bottom: 1px dashed rgba(112, 139, 204, 0.08); }
    html.ns-dark .ih-card .ih-events li span { color: #97a3b4; }
    html.ns-dark .ih-card .ih-last.stopped { color: #e86868; }
    html.ns-dark .ns-scroll thead tr.ns-filter-row th { background: #171d26; }
    html.ns-dark input.ns-col-filter { border: 1px solid #33405b; background: #1b1b1b; }
    html.ns-dark input.ns-col-filter:not(:placeholder-shown) { border-color: #2563eb; background: #0f1b33; }
    html.ns-dark .ns-jump { border: 1px solid #33405b; background: #1b1b1b; color: #698ae7; }
    html.ns-dark .ns-jump:hover { background: #12203d; }
    html.ns-dark .dup-dialog { border: 0; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6); }
    html.ns-dark .dup-dialog::backdrop { background: rgba(15, 23, 42, 0.45); }
    html.ns-dark .dup-dialog h3 { color: #f5885c; }
    html.ns-dark .dup-dialog .dup-list { background: #33230f; border: 1px solid #745028; }
    html.ns-dark .dup-dialog .dup-buttons .button.dup-fix { background: #1b1b1b !important; color: #c7d1e0 !important; border: 1px solid #424b56 !important; box-shadow: none !important; }
    html.ns-dark tr.form-row.ns-error-row td { box-shadow: inset 0 2px 0 rgba(0, 0, 0, 0.6), inset 0 -2px 0 rgba(0, 0, 0, 0.6); }
    html.ns-dark #result_list tr.ns-in-group > td:first-child,
    html.ns-dark #result_list tr.ns-in-group > th:first-child { box-shadow: inset -6px 0 0 var(--ns-group); }
    html.ns-dark #result_list tr.ns-in-group > td:last-child { box-shadow: inset 6px 0 0 var(--ns-group-2, var(--ns-group)); }
    html.ns-dark #result_list.ns-group-focus tbody tr.ns-group-hl > td,
    html.ns-dark #result_list.ns-group-focus tbody tr.ns-group-hl > th { background: color-mix(in srgb, var(--ns-group) 10%, #1b1b1b) !important; }
    html.ns-dark .ns-fold-button { border: 1px solid #33405b; background: #1b1b1b; color: #698ae7; }
    html.ns-dark .ns-fold-button:hover { background: #12203d; }
    html.ns-dark .ns-fold-summary { color: #718de0; }
    html.ns-dark .inline-group.ns-docked { background: #1b1b1b !important; box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.3); }
    html.ns-dark .ns-dock-handle { background: #151d2b; border-bottom: 1px solid #2b3549; }
    html.ns-dark .ns-dock-handle::before { background: #2b354c; }
    html.ns-dark .ns-dock-handle:hover::before,
    html.ns-dark body.ns-dragging .ns-dock-handle::before { background: #2563eb; }
    html.ns-dark .inline-group.ns-docked .ns-scroll thead th { background: #161d2a !important; }
    html.ns-dark .inline-group.ns-docked .ns-dock-handle { background: #151d2b !important; }
    html.ns-dark a.send-button.ns-vendor-edit { border: 1px solid #33405b; background: #1b1b1b !important; color: #698ae7 !important; }
    html.ns-dark a.send-button.ns-vendor-edit:hover { background: #12203d !important; }
    html.ns-dark .ns-cancelled-customer { color: #e86868; }
    html.ns-dark .ns-cancelled-note { color: #e86868; }
    html.ns-dark .ns-lock-banner { background: rgba(26, 34, 41, 0.95); border: 1px solid #424b56; color: #b6c2d3; }
    html.ns-dark .ns-lock-banner span { color: #97a3b4; }
    html.ns-dark .ns-lock-banner.open { background: rgba(72, 62, 22, 0.9); border-color: #ac913c; color: #f09761; }
    html.ns-dark body.ns-locked #content-main form :is(input:not([type=hidden]), select, textarea) { background: #181e25 !important; }
    
    /* ---- invoices/static/invoices/menubar.css */
    html.ns-dark .ns-topbar.ns-topbar-menus .ns-search:not(:focus-within) input[type=search]::placeholder { color: transparent; }
    html.ns-dark .ns-doc-badge { color: #ffffff; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.042); }
    html.ns-dark .ns-doc-customer { background: linear-gradient(180deg, #3b74f0, #2251d6); }
    html.ns-dark .ns-doc-vendor { background: linear-gradient(180deg, #462c82, #6d28d9); }
    html.ns-dark .ns-menu-btn { border: 1px solid rgba(43, 43, 43, 0.85) !important; background: rgba(27, 27, 27, 0.55) !important; color: #c7d1e0 !important; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.108) !important; }
    html.ns-dark .ns-menu-btn:focus { outline: none; }
    html.ns-dark .ns-menu-btn:focus-visible { outline: 2px solid rgba(37, 99, 235, 0.45); }
    html.ns-dark .ns-menu-btn .icon { color: #9fa4af; }
    html.ns-dark .ns-menu-btn:hover .icon,
    html.ns-dark .ns-menu.open .ns-menu-btn .icon { color: #cfd7ea; }
    html.ns-dark .ns-menu-chevron { color: #9ca3af; }
    html.ns-dark .ns-menu-chevron svg { fill: none; stroke: currentColor; }
    html.ns-dark .ns-menu.open .ns-menu-chevron { color: #b9c2d0; }
    html.ns-dark .ns-menu-btn:hover,
    html.ns-dark .ns-menu.open .ns-menu-btn { background: rgba(27, 27, 27, 0.85) !important; color: #cfd7ea !important; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important; }
    html.ns-dark .ns-menu-list { background: rgba(27, 27, 27, 0.94); border: 1px solid rgba(43, 43, 43, 0.9); box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.108); }
    html.ns-dark .ns-menu-item { border: 0 !important; background: transparent !important; color: #cfd7ea !important; box-shadow: none !important; }
    html.ns-dark .ns-menu-item:hover { background: rgba(37, 99, 235, 0.1) !important; color: #6689ea !important; }
    html.ns-dark .ns-menu-item.danger { color: #e86868 !important; }
    html.ns-dark .ns-menu-item.danger:hover { background: rgba(220, 38, 38, 0.1) !important; }
    html.ns-dark .ns-menu-item.off { color: #9ca3af !important; }
    html.ns-dark .ns-menu-item.off:hover { background: rgba(79, 87, 99, 0.12) !important; color: #9fa4af !important; }
    html.ns-dark .ns-menu-sep { background: rgba(30, 58, 138, 0.1); }
    html.ns-dark .ns-menu-empty { color: #9ca3af; }
    html.ns-dark .ns-active-sub { color: #ffffff; background: linear-gradient(180deg, #3b74f0, #2251d6); }
    html.ns-dark body.ns-has-menubar .inline-group.ns-sub-active { outline: 2px solid rgba(37, 99, 235, 0.45); }
    html.ns-dark body.ns-glass.ns-customer-page::before { background: radial-gradient(1200px 600px at 85% -10%, rgba(27, 27, 27, 0.85), transparent 60%),
                    linear-gradient(180deg, #202226 0%, #27292d 100%) !important; }
    html.ns-dark body.ns-customer-page #content > h1 { color: #6689ea; }
    html.ns-dark body.ns-vendor-page #content > h1 { color: #9b6ce5; }
    html.ns-dark body.ns-glass #customerinvoice_form fieldset.module.aligned:not(.inline-group fieldset) { background: linear-gradient(180deg, rgba(23, 42, 76, 0.82) 0%, rgba(29, 51, 90, 0.74) 100%) !important; border: 1px solid rgba(43, 43, 43, 0.85) !important; box-shadow: 0 8px 14px -10px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.096) !important; }
    html.ns-dark body.ns-glass #customerinvoice_form fieldset.module.aligned:not(.inline-group fieldset) label { color: #718de0; }
    html.ns-dark body.ns-glass #customerinvoice_form fieldset.module.aligned:not(.inline-group fieldset) .readonly,
    html.ns-dark body.ns-glass #customerinvoice_form fieldset.module.aligned:not(.inline-group fieldset) .grand-total b { color: #cbd5ed; }
    html.ns-dark body.ns-glass #customerinvoice_form fieldset.module.aligned:not(.inline-group fieldset) .grand-total .in-words { color: #b6c2d3; }
    html.ns-dark body.ns-glass #customerinvoice_form fieldset.module.aligned:not(.inline-group fieldset) input[type=text],
    html.ns-dark body.ns-glass #customerinvoice_form fieldset.module.aligned:not(.inline-group fieldset) textarea,
    html.ns-dark body.ns-glass #customerinvoice_form fieldset.module.aligned:not(.inline-group fieldset) .select2-selection { background: rgba(27, 27, 27, 0.8) !important; border-color: rgba(37, 99, 235, 0.22) !important; }
    html.ns-dark body.ns-has-menubar #customerinvoice_form fieldset.aligned .form-row:has(.field-created_info) .readonly { color: #abb6c6 !important; }
    html.ns-dark body.ns-glass .ns-topbar.ns-topbar-menus { background: transparent !important; }
    html.ns-dark body.ns-glass .ns-topbar.ns-topbar-menus::before { background: var(--g-panel); }
    html.ns-dark .ns-menu-list { background: linear-gradient(160deg, rgba(27, 27, 27, 0.84) 0%, rgba(15, 27, 51, 0.74) 100%) !important; border: 1px solid rgba(43, 43, 43, 0.75) !important; box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.6), 0 2px 6px rgba(0, 0, 0, 0.2),
                    inset 0 1px 0 rgba(255, 255, 255, 0.114), inset 0 -1px 0 rgba(255, 255, 255, 0.042) !important; }
    html.ns-dark .ns-menu-list::before { background: linear-gradient(180deg, rgba(27, 27, 27, 0.55), rgba(27, 27, 27, 0)); }
    html.ns-dark .ns-menu-item:hover { background: linear-gradient(180deg, rgba(59, 116, 240, 0.16), rgba(37, 99, 235, 0.1)) !important; color: #6689ea !important; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.3) !important; }
    html.ns-dark .ns-menu-sep { background: linear-gradient(90deg, transparent, rgba(30, 58, 138, 0.16), transparent) !important; }
    html.ns-dark body.ns-glass dialog.product-info-dialog { background: linear-gradient(160deg, rgba(27, 27, 27, 0.8), rgba(15, 29, 52, 0.68)); border: 1px solid rgba(43, 43, 43, 0.85); box-shadow: 0 30px 70px -16px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.114); }
    html.ns-dark body.ns-glass dialog.product-info-dialog::backdrop { background: rgba(15, 23, 42, 0.22); }
    html.ns-dark .product-info-status,
    html.ns-dark .product-info-active { background: rgba(27, 27, 27, 0.75); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.3); }
    html.ns-dark .product-info-active { color: #abb6c6; }
    html.ns-dark .product-info-groups section { background: rgba(27, 27, 27, 0.62); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.108), 0 4px 12px -8px rgba(0, 0, 0, 0.6); }
    html.ns-dark .product-info-groups h4 { color: #6689ea; }
    html.ns-dark .product-info-groups dt { color: #97a3b4; }
    html.ns-dark .product-info-groups dd { color: #cbd5ed; border-bottom: 1px solid rgba(30, 58, 138, 0.07); }
    html.ns-dark body.ns-glass #vendorinvoice_form fieldset.module.aligned.ns-vendor-deal { background: linear-gradient(180deg, rgba(24, 17, 52, 0.82) 0%, rgba(27, 20, 63, 0.7) 100%) !important; border: 1px solid rgba(43, 43, 43, 0.85) !important; box-shadow: 0 8px 14px -10px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.114) !important; }
    html.ns-dark body.ns-glass #vendorinvoice_form fieldset.ns-vendor-deal label { color: #9c6ee3; }
    html.ns-dark body.ns-glass #vendorinvoice_form fieldset.ns-vendor-deal input[type=text],
    html.ns-dark body.ns-glass #vendorinvoice_form fieldset.ns-vendor-deal textarea,
    html.ns-dark body.ns-glass #vendorinvoice_form fieldset.ns-vendor-deal select { background: rgba(27, 27, 27, 0.85) !important; border-color: rgba(109, 40, 217, 0.2) !important; }
    html.ns-dark .ns-calc { background: linear-gradient(160deg, rgba(27, 27, 27, 0.86), rgba(15, 27, 52, 0.78)); border: 1px solid rgba(43, 43, 43, 0.9); box-shadow: 0 24px 60px -14px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.12); outline: none; }
    html.ns-dark .ns-calc:focus-within,
    html.ns-dark .ns-calc:focus { box-shadow: 0 24px 60px -14px rgba(0, 0, 0, 0.6), 0 0 0 2px rgba(0, 0, 0, 0.6); }
    html.ns-dark .ns-calc .calc-head { color: #b6c2d3; }
    html.ns-dark .ns-calc .calc-close { border: 0; background: rgba(27, 27, 27, 0.85); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.3); color: #abb6c6; }
    html.ns-dark .ns-calc .calc-screen { background: rgba(27, 27, 27, 0.78); box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2); }
    html.ns-dark .ns-calc .calc-line { color: #97a3b4; }
    html.ns-dark .ns-calc .calc-value { color: #cbd5ed; }
    html.ns-dark .ns-calc .calc-keys button { border: 0; background: rgba(27, 27, 27, 0.92); color: #cbd5ed; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25); }
    html.ns-dark .ns-calc .calc-keys button:hover { background: #1b1b1b; }
    html.ns-dark .ns-calc .calc-keys .calc-op { background: rgba(19, 37, 60, 0.95); color: #6689ea; }
    html.ns-dark .ns-calc .calc-keys .calc-fn { background: rgba(26, 34, 41, 0.95); color: #abb6c6; }
    html.ns-dark .ns-calc .calc-keys .calc-eq { background: #2563eb; color: #ffffff; }
    html.ns-dark .ns-calc .calc-keys .calc-eq:hover { background: #1d4ed8; }
    html.ns-dark .ns-calc .calc-foot { color: #97a3b4; }
    html.ns-dark .ns-calc .calc-copy { border: 1px solid rgba(112, 139, 204, 0.12); background: #1b1b1b; }
    html.ns-dark .ns-calc .calc-tape button { border: 0; background: rgba(27, 27, 27, 0.55); color: #abb6c6; }
    html.ns-dark .ns-calc .calc-tape button:hover { background: #1b1b1b; }
    html.ns-dark .ns-calc .calc-tape b { color: #cbd5ed; }
    
    /* ---- invoices/static/invoices/polish.css */
    html.ns-dark .inline-group .tabular tr.form-row { --st-fg: #abb6c6; --st-bg: rgba(100, 116, 139, 0.12); }
    html.ns-dark .inline-group .tabular tr.form-row[data-status^="pending"] { --st-fg: #6689ea; --st-bg: rgba(37, 99, 235, 0.12); }
    html.ns-dark .inline-group .tabular tr.form-row[data-status="sent_to_vendor"],
    html.ns-dark .inline-group .tabular tr.form-row[data-status="request_price"] { --st-fg: #55c1fc; --st-bg: rgba(14, 165, 233, 0.14); }
    html.ns-dark .inline-group .tabular tr.form-row[data-status="price_received"],
    html.ns-dark .inline-group .tabular tr.form-row[data-status^="ordered"] { --st-fg: #6ae799; --st-bg: rgba(34, 197, 94, 0.16); }
    html.ns-dark .inline-group .tabular tr.form-row[data-status="suggestion"],
    html.ns-dark .inline-group .tabular tr.form-row[data-status^="extra"] { --st-fg: #ad6ae6; --st-bg: rgba(90, 44, 134, 0.14); }
    html.ns-dark .inline-group .tabular tr.form-row[data-status="need_discount"],
    html.ns-dark .inline-group .tabular tr.form-row[data-status="after_discount"] { --st-fg: #f79e5a; --st-bg: rgba(245, 158, 11, 0.18); }
    html.ns-dark .inline-group .tabular tr.form-row[data-status="customer_cancel"],
    html.ns-dark .inline-group .tabular tr.form-row[data-status="cancelled"] { --st-fg: #e86868; --st-bg: rgba(143, 53, 53, 0.14); }
    html.ns-dark .inline-group .tabular tr.form-row[data-status="add_new_item"] { --st-fg: #ec659d; --st-bg: rgba(141, 54, 97, 0.14); }
    html.ns-dark .inline-group .tabular tr.form-row[data-status="not_available"] { --st-fg: #abb6c6; --st-bg: rgba(100, 116, 139, 0.14); }
    html.ns-dark body.ns-glass .inline-group .tabular td.field-status p { color: var(--st-fg); background: var(--st-bg); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--st-fg) 12%, transparent); }
    html.ns-dark body.ns-glass .inline-group .tabular td.field-status select { color: var(--st-fg); background-color: var(--st-bg) !important; border: 1px solid color-mix(in srgb, var(--st-fg) 22%, transparent) !important; }
    html.ns-dark body.ns-glass .inline-group .tabular td.field-item_code p,
    html.ns-dark body.ns-glass .inline-group .tabular td.field-name_fa p { background: rgba(27, 27, 27, 0.72); border: 1px solid rgba(103, 113, 126, 0.35); }
    html.ns-dark body.ns-glass .inline-group .tabular .info-button { border: 0 !important; background: none !important; box-shadow: none !important; }
    html.ns-dark .info-button svg circle:first-child { fill: #ffffff; stroke: rgba(112, 139, 204, 0.22); }
    html.ns-dark .info-button svg .ink { fill: #e3e3e3; }
    html.ns-dark .info-button svg .ink-line { fill: none; stroke: #9e9e9e; }
    html.ns-dark .info-button:hover svg circle:first-child { fill: #f1f5f9; stroke: rgba(112, 139, 204, 0.4); }
    html.ns-dark body.ns-glass .row-tools .row-tool { border: 1px solid rgba(103, 113, 126, 0.35); background: rgba(27, 27, 27, 0.8); color: #b6c2d3; }
    html.ns-dark body.ns-glass .row-tools .row-tool:hover { background: #1b1b1b; color: #52a8ff; border-color: rgba(10, 132, 255, 0.4); }
    html.ns-dark .row-tools .row-tool.row-delete svg { fill: none; stroke: currentColor; }
    html.ns-dark body.ns-glass .row-tools .row-tool.row-delete { color: #ff5b52; border-color: rgba(255, 59, 48, 0.35); }
    html.ns-dark body.ns-glass .row-tools .row-tool.row-delete:hover { background: #32110e; color: #ff5b52; border-color: rgba(255, 59, 48, 0.6); }
    html.ns-dark body.ns-glass .row-tools .row-tool.row-delete.on { background: #ff3b30; border-color: #ff3b30; color: #ffffff; }
    html.ns-dark body.ns-glass .inline-group .tabular td input[type=checkbox] { border: 1.5px solid rgba(100, 116, 139, 0.45); background: rgba(27, 27, 27, 0.85); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); }
    html.ns-dark body.ns-glass .inline-group .tabular td input[type=checkbox]:hover { border-color: #0a84ff; }
    html.ns-dark body.ns-glass .inline-group .tabular td input[type=checkbox]:checked { border-color: #0a84ff; background: #0a84ff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6.5 12.5 3.5 3.5 7.5-8' fill='none' stroke='#1b1b1b' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }
    html.ns-dark body.ns-glass .inline-group .tabular td.field-name_en p,
    html.ns-dark body.ns-glass .inline-group .tabular td.field-vendor_brand p,
    html.ns-dark body.ns-glass .inline-group .tabular td[class*="field-total"] p { background: rgba(27, 27, 27, 0.72); border: 1px solid rgba(103, 113, 126, 0.35); }
    html.ns-dark .frame-dialog.add-dialog.quick-add { background: rgba(13, 22, 45, 0.9); border: 1px solid rgba(43, 43, 43, 0.9); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.12); }
    html.ns-dark .frame-dialog.add-dialog.quick-add::backdrop { background: rgba(15, 23, 42, 0.28); }
    html.ns-dark .inline-group .tabular tr.row-checked td { background: #142844 !important; }
    html.ns-dark .inline-group .tabular td.field-row_number input[readonly],
    html.ns-dark .inline-group .tabular td.field-price_offer input[readonly] { background: transparent !important; border-color: transparent !important; box-shadow: none !important; }
    html.ns-dark body.ns-glass .inline-group .tabular td.field-status select { background-color: #1b1b1b !important; }
    html.ns-dark .grand-total b { color: #cfd7ea; }
    html.ns-dark .grand-total .in-words { color: #b9c2d0; }
    
    /* ---- invoices/static/invoices/progress.css */
    html.ns-dark .ns-flow-track { background: rgba(79, 87, 99, 0.28); }
    html.ns-dark .ns-flow-fill { background: linear-gradient(to left, #295080, #2563eb 55%, #7c3aed); box-shadow: 0 0 10px rgba(0, 0, 0, 0.6); }
    html.ns-dark[dir=ltr] .ns-flow-fill { background: linear-gradient(to right, #295080, #2563eb 55%, #7c3aed); }
    html.ns-dark .ns-flow-spark { background: radial-gradient(circle, #1b1b1b 0 30%, rgba(23, 47, 76, 0.9) 45%, rgba(41, 80, 128, 0) 72%); }
    html.ns-dark .ns-flow-node { background: rgba(27, 27, 27, 0.82); border: 1.5px solid rgba(103, 113, 126, 0.45); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.108); }
    html.ns-dark .ns-flow-node > svg { fill: none; stroke: #67717e; }
    html.ns-dark .ns-flow-step.done .ns-flow-node { background: linear-gradient(160deg, #295080 0%, #2563eb 55%, #1d4ed8 100%); border-color: rgba(43, 43, 43, 0.6); box-shadow: 0 6px 14px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.054); }
    html.ns-dark .ns-flow-step.done .ns-flow-node > svg { stroke: #2b2b2b; }
    html.ns-dark .ns-flow-check { background: #34c759; border: 2px solid #2b2b2b; }
    html.ns-dark .ns-flow-check svg { fill: none; stroke: #2b2b2b; }
    html.ns-dark .ns-flow-step.now .ns-flow-node { background: #1b1b1b; border-color: transparent; }
    html.ns-dark .ns-flow-step.now .ns-flow-node > svg { stroke: #2563eb; }
    html.ns-dark .ns-flow-step.now .ns-flow-node::before { background: conic-gradient(from 0deg, #295080, #7c3aed, rgba(124, 58, 237, 0) 62%, #295080); }
    html.ns-dark .ns-flow-step.skip .ns-flow-node { border-color: #2d5581; background: rgba(15, 30, 50, 0.8); }
    html.ns-dark .ns-flow-step.skip .ns-flow-node > svg { stroke: #2d5581; }
    html.ns-dark .ns-flow-step.cancel .ns-flow-node { border-color: rgba(177, 72, 72, 0.35); background: rgba(47, 17, 17, 0.85); }
    html.ns-dark .ns-flow-step.cancel .ns-flow-node > svg { stroke: #963838; }
    html.ns-dark .ns-flow.cancelled .ns-flow-track { background: repeating-linear-gradient(90deg, rgba(143, 53, 53, 0.35) 0 6px, transparent 6px 11px); }
    html.ns-dark .ns-flow-label { color: #94a3b8; }
    html.ns-dark .ns-flow-step.done .ns-flow-label { color: #c7d1e0; }
    html.ns-dark .ns-flow-step.now .ns-flow-label { background: linear-gradient(90deg, #2563eb, #7c3aed); color: transparent; }
    html.ns-dark .ns-flow-caption { color: #94a3b8; }
    html.ns-dark .ns-flow-step.done .ns-flow-caption { color: #66ea97; }
    html.ns-dark .ns-flow-step.now .ns-flow-caption { color: #608df0; }
    html.ns-dark .ns-flow-step.now.complete .ns-flow-caption { color: #66ea97; }
    html.ns-dark .ns-steps-status { color: var(--pill, #97a3b4); }
    html.ns-dark .ns-list-note { background: rgba(250, 204, 21, 0.18); color: #eeac62; }
    html.ns-dark .ns-list-reminder { background: rgba(37, 99, 235, 0.1); color: #6b88e6; }
    html.ns-dark .ns-list-reminder.today { background: rgba(234, 88, 12, 0.14); color: #ed8664; }
    html.ns-dark .ns-list-reminder.late { background: rgba(220, 38, 38, 0.13); color: #e56c6c; }
    
    /* ---- accounting/static/accounting/accounting.css */
    html.ns-dark .acc-name.acc-l1 { color: #718de0; }
    html.ns-dark .object-tools li.acc-tools { background: none; }
    html.ns-dark .acc-totals { border: 1px solid #263861; background: #0e182f; }
    html.ns-dark .acc-totals.unbalanced { border-color: #6e353b; background: #2f0e0e; }
    html.ns-dark .acc-totals.unbalanced .t-diff-box { color: #e76a73; }
    html.ns-dark .acc-card { border: 1px solid #333d4d; background: #1b1b1b; }
    html.ns-dark .acc-card:hover { border-color: #2563eb; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); }
    html.ns-dark .acc-card b { color: #718de0; }
    html.ns-dark .acc-card span { color: #acb3bb; }
    html.ns-dark .acc-filters { background: #191e26; border: 1px solid #343b47; }
    html.ns-dark .acc-filters label { color: #acb3bb; }
    html.ns-dark .acc-sheet { background: #1b1b1b; }
    html.ns-dark .acc-head h2 { color: #718de0; }
    html.ns-dark .acc-head h2 small { color: #acb3bb; }
    html.ns-dark .acc-period { color: #acb3bb; }
    html.ns-dark .acc-table th { background: #151e2f; border: 1px solid #394251; }
    html.ns-dark .acc-table td { border: 1px solid #333a46; }
    html.ns-dark .acc-table tfoot td { background: #171e29; }
    html.ns-dark .acc-table tr.first-line td { border-top: 2px solid #404a5b; }
    html.ns-dark .acc-table tr.section td { background: #181e25; color: #718de0; }
    html.ns-dark .acc-table tr.subtotal td { background: #131926; }
    html.ns-dark .acc-table tr.result td { background: #1c2b21; }
    html.ns-dark .acc-table tr.opening td { background: #352e0f; }
    html.ns-dark .acc-table tr.bad td { color: #e76a73; }
    html.ns-dark body.acc-print { background: #1b1b1b; }
    html.ns-dark .jdate-button { border: 1px solid #414852; background: #1b1b1b; }
    html.ns-dark .jdate-pop { background: #1b1b1b; border: 1px solid #404a5a; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45); }
    html.ns-dark .jdate-head b { color: #718de0; }
    html.ns-dark .jdate-head button,
    html.ns-dark .jdate-foot button { border: 0; background: #151e2f; }
    html.ns-dark .jdate-days i { color: #8a94a6; }
    html.ns-dark .jdate-days button { border: 0; background: none; }
    html.ns-dark .jdate-days button:hover { background: #111e35; }
    html.ns-dark .jdate-days button.today { outline: 1px solid #2563eb; }
    html.ns-dark .jdate-days button.chosen { background: #2563eb; color: #ffffff; }
    html.ns-dark .acc-reset { background: #1b1b1b; border: 1px solid #6e353b; }
    html.ns-dark .acc-reset h2 { color: #e76a73; }
    html.ns-dark .treasury-total { border: 1px solid #263861; background: #0e182f; }
    html.ns-dark .treasury-lock { border: 1px solid #856f3a; background: #352e0f; }
    html.ns-dark .cheque-ops { border: 1px solid #263861; background: #0e182f; }
    html.ns-dark .cheque-ops label { color: #acb3bb; }
    html.ns-dark .cheque-facts span { color: #acb3bb; }
    html.ns-dark .cheque-totals { background: #0e182f; border: 1px solid #263861; }
    html.ns-dark .party-balance { color: #acb3bb; }
    html.ns-dark .party-balance .owes { color: #e76a73; }
    html.ns-dark .party-balance .owed { color: #6fe290; }
    html.ns-dark .settle-ask { background: rgba(15, 23, 42, 0.25); }
    html.ns-dark .settle-box { background: #1b1b1b; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5); }
    html.ns-dark .rm-card { background: #1b1b1b; border: 1px solid #333e4d; }
    html.ns-dark .rm-card em { color: #acb3bb; }
    html.ns-dark .rm-card i { color: #acb3bb; }
    html.ns-dark .rm-card.rm-profit { background: #1d2d23; border-color: #40604b; }
    html.ns-dark .rm-card.rm-profit em,
    html.ns-dark .rm-card.rm-profit span { color: #77da9c; }
    html.ns-dark .rm-grid .li-cell .help { color: #acb3bb; }
    html.ns-dark .rm-grid .li-cell.field-customer_sum input,
    html.ns-dark .rm-grid .li-cell.field-exchanger_sum input { background: #111b2e; border-color: #3f5478; }
    html.ns-dark .rm-whatsapp { background: #1d2d23 !important; color: #77da9c !important; border: 1px solid #40604b !important; }
    html.ns-dark .remit-note .remit-diff b { color: #5ca8f5; }
    html.ns-dark .remit-note code { background: #171f2b; border: 1px solid #324151; }
    html.ns-dark .rate-warn { color: #e26f6f; }
    html.ns-dark input.rate-bad { border-color: #c62828 !important; background: #2f0e0e !important; }
    html.ns-dark .remit-split { color: #9eaab9; }
    html.ns-dark .payouts-note { background: #0f1e33; border: 1px solid #2d4058; }
    html.ns-dark .payouts-note b { color: #5ca8f5; }
    html.ns-dark .payouts-note b.over { color: #e26f6f; }
    html.ns-dark .keys-toggle { border: 1px solid #2d4058; background: #2563eb; color: #ffffff; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6); }
    html.ns-dark .keys-toggle.off { background: #1b1b1b; color: #608df0; }
    html.ns-dark .transfer-note { color: #5ca8f5; }
    html.ns-dark .transfer-note .warn { color: #f79e5a; }
    html.ns-dark .remit-state.remit-draft { background: #33230f; border: 1px solid #946533; color: #ed8664; }
    html.ns-dark .remit-state.remit-cancelled { background: #1f2125; border: 1px solid #484b51; color: #afb7c3; }
    html.ns-dark .remit-states .draft-button { background: #f59e0b !important; color: #ffffff !important; }
    html.ns-dark .remit-states .cancel-button { background: #1b1b1b !important; color: #e86868 !important; border: 1px solid #762b2b !important; }
    html.ns-dark .date-fa::placeholder { color: #b9c1cd; }
    html.ns-dark .li-cell > label { color: #b7c1d2; }
    html.ns-dark .li-cell.has-error input,
    html.ns-dark .li-cell.has-error select { border-color: #cf222e; }
    html.ns-dark .li-req { color: #e76a73; }
    html.ns-dark .li-auto { border: 1px dashed #464e59; color: #acb3bb; background: #1b2025; }
    html.ns-dark .local-invoice-page { --li: #2563eb; --li-soft: #0f1b33; --li-line: #445678; --li-head: #12203d; }
    html.ns-dark .local-invoice-page.li-sale { --li: #6ae799; --li-soft: #182c1f; --li-line: #548165; --li-head: #213b2a; }
    html.ns-dark .local-invoice-page.li-proforma { --li: #7c3aed; --li-soft: #1a0e32; --li-line: #42306e; --li-head: #20133b; }
    html.ns-dark .local-invoice-page .local-lines tr.form-row:not(.empty-form) td.original::before { background: #1b1b1b; color: var(--li); border: 1px solid var(--li-line); }
    html.ns-dark .local-invoice-page .local-lines td.field-line_total { color: var(--li); }
    html.ns-dark .local-invoice-page .local-lines td input,
    html.ns-dark .local-invoice-page .local-lines td select,
    html.ns-dark .local-invoice-page .local-lines td .select2-selection,
    html.ns-dark .local-invoice-page .local-settle td input,
    html.ns-dark .local-invoice-page .local-settle td select { background: var(--li-soft) !important; border: 1px solid var(--li-line) !important; }
    html.ns-dark .local-invoice-page .local-lines td input:focus,
    html.ns-dark .local-invoice-page .local-lines td select:focus { background: #1b1b1b !important; border-color: var(--li) !important; box-shadow: 0 0 0 3px color-mix(in srgb, var(--li) 18%, transparent); }
    html.ns-dark .local-invoice-page .local-lines .local-stock { color: var(--li); }
    html.ns-dark .local-invoice-page .local-lines tbody tr.form-row:not(.empty-form) td { border-bottom: 1px solid #353c45; }
    html.ns-dark .li-unit-add { border: 1px solid var(--li-line, #445678); background: #1b1b1b; color: var(--li, #608df0); }
    html.ns-dark .li-unit-add:hover { background: var(--li, #2563eb); color: #ffffff; }
    html.ns-dark .li-hint { background: #342d0f; border: 1px solid #ac913c; color: #ec9665; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.375); }
    html.ns-dark .li-hint.li-hint-bad { background: #2f1111; border-color: #762b2b; }
    html.ns-dark .li-hint-warn { color: #e86868; }
    html.ns-dark body.local-invoice-page .li-sum.module { background: linear-gradient(180deg, #34260f, #1b1b1b) !important; border: 1px solid #856436 !important; }
    html.ns-dark body.local-invoice-page .li-sum.module h2 { background: linear-gradient(90deg, #f59e0b, #ea580c) !important; color: #ffffff !important; }
    html.ns-dark .li-sum .li-row { border-bottom: 1px solid #5f4b2c; }
    html.ns-dark .li-sum .li-input input { background: #1b1b1b; border-color: #856436 !important; }
    html.ns-dark .li-sum .li-val small { color: #9fa4af; }
    html.ns-dark .li-sum .li-total { background: #3c2b12; }
    html.ns-dark .li-sum .li-total .li-val { color: #ed8664; }
    html.ns-dark .li-sum .li-rest .li-val { color: #6689ea; }
    html.ns-dark .li-sum .li-rest.bad-text .li-val { color: #e76a73; }
    html.ns-dark .li-sum .li-small { color: #acb3bb; border-bottom: 0; }
    html.ns-dark .local-invoice-page .local-lines.module,
    html.ns-dark .local-invoice-page .local-lines .module { background: #1b1b1b !important; border: 1px solid var(--li-line); }
    html.ns-dark body.local-invoice-page .local-lines h2 { background: var(--li-head) !important; color: var(--li) !important; }
    html.ns-dark .local-invoice-page .local-lines thead th { background: color-mix(in srgb, var(--li-head) 60%, #1b1b1b) !important; color: #c7d1e0; }
    html.ns-dark .local-invoice-page .local-lines tr.form-row:not(.empty-form) td { background: #1b1b1b !important; }
    html.ns-dark .local-invoice-page .local-lines tr.form-row:not(.empty-form):nth-child(even) td { background: #161b24 !important; }
    html.ns-dark .local-invoice-page .local-settle.module,
    html.ns-dark .local-invoice-page .local-settle .module { background: #172a1e !important; border: 1px solid #40664e; }
    html.ns-dark body.local-invoice-page .local-settle h2 { background: #213b2a !important; color: #71e09b !important; }
    html.ns-dark .local-invoice-page .local-settle thead th { background: #1e3425 !important; }
    html.ns-dark .local-invoice-page .local-settle tr.form-row:not(.empty-form) td { background: #1b2f22 !important; }
    html.ns-dark .local-invoice-page .local-settle td input,
    html.ns-dark .local-invoice-page .local-settle td select { --li-soft: #1b1b1b; --li-line: #4e765d; }
    html.ns-dark .li-tools { background: #1b1b1b; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); }
    html.ns-dark .li-tool { border: 1px solid #414852; background: #1b1b1b; color: #c7d1e0; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15); }
    html.ns-dark .li-tool:hover { border-color: var(--li); color: var(--li); }
    html.ns-dark .li-tool-print { color: #6689ea; }
    html.ns-dark .li-tool-send { color: #6ae799; }
    html.ns-dark .li-tool-import { color: #f79e5a; }
    html.ns-dark .li-tool-convert { background: #7c3aed; border-color: #7c3aed; color: #ffffff !important; }
    html.ns-dark .li-tool-convert:hover { background: #6d28d9; color: #ffffff; }
    html.ns-dark .li-menu-list { background: #1b1b1b; border: 1px solid #353c45; box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4); }
    html.ns-dark .li-menu-list a,
    html.ns-dark .li-menu-list button { border: 0; background: none; color: #c7d1e0 !important; }
    html.ns-dark .li-menu-list a:hover,
    html.ns-dark .li-menu-list button:hover { background: #0e1831; }
    html.ns-dark .li-pill { background: #181134; color: #9b6ce5; }
    html.ns-dark .submit-row .li-proforma-btn { background: #7c3aed !important; border-color: #7c3aed !important; color: #ffffff !important; }
    html.ns-dark .li-dialog { border: 0; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6); }
    html.ns-dark .li-dialog::backdrop { background: rgba(15, 23, 42, 0.4); }
    html.ns-dark .li-dialog-head { background: linear-gradient(90deg, #1d4ed8, #2563eb); color: #ffffff; }
    html.ns-dark .li-dialog-close { border: 0; background: rgba(27, 27, 27, 0.18); color: #ffffff; }
    html.ns-dark .li-dialog.li-frame iframe { border: 0; background: #191e26; }
    html.ns-dark .li-import-problems { color: #e86868; }
    html.ns-dark .li-import-problems b { color: #c7d1e0; }
    html.ns-dark .lp-head { border: 1px solid #343e4c; background: #0d1a2e; }
    html.ns-dark .lp-code { background: #101d36; color: #6a8fe7; }
    html.ns-dark .lp-stock { background: #1d3124; color: #69e89f; }
    html.ns-dark .lp-stock.zero { background: #1f2227; color: #acb3bb; }
    html.ns-dark .lp-stock.bad { background: #311313; color: #eb6f66; }
    html.ns-dark .lp-card { border: 1px solid #333a46; background: #1b1b1b; }
    html.ns-dark .lp-card span { color: #acb3bb; }
    html.ns-dark .lp-card small { color: #acb3bb; }
    html.ns-dark .lp-card.in { border-color: #40664e; background: #172a1e; }
    html.ns-dark .lp-card.out { border-color: #63302e; background: #2f110e; }
    html.ns-dark .lp-card.stock { border-color: #2d3d5d; background: #0e182f; }
    html.ns-dark .lp-filters { border: 1px solid #333a46; background: #1a1e22; }
    html.ns-dark .lp-table tr.k-in td:nth-child(6) { color: #69e89f; }
    html.ns-dark .lp-table tr.k-out td:nth-child(7) { color: #eb6f66; }
    html.ns-dark .k-in .k-badge { background: #1d3124; color: #69e89f; }
    html.ns-dark .k-out .k-badge { background: #311313; color: #eb6f66; }
    html.ns-dark .lp-empty { color: #acb3bb; }
    html.ns-dark .lp-photo { border: 1.5px dashed #4b5563; background: #171d26; }
    html.ns-dark .lp-photo:hover,
    html.ns-dark .lp-photo.drop { border-color: #1f6feb; background: #0f1b33; }
    html.ns-dark .lp-photo img { background: #1b1b1b; }
    html.ns-dark .lp-photo-empty { color: #acb3bb; }
    html.ns-dark .lp-photo-empty b { color: #b7c1d2; }
    html.ns-dark .lp-photo-clear { color: #eb6f66; }
    html.ns-dark .lp-barcode { border: 1px solid #333a46; background: #1b1b1b; }
    html.ns-dark .lp-edit { background: #171f2e; }
    html.ns-dark img.lp-thumb { border: 1px solid #333a46; background: #1b1b1b; }
    html.ns-dark span.lp-thumb.none { color: #c3ccd9; }
    html.ns-dark .lp-moves-btn { border: 1px solid #2d3d5d; background: #0e182f; color: #6a8fe7; }
    html.ns-dark .lp-moves-btn.open { background: #1f6feb; border-color: #1f6feb; color: #ffffff; }
    html.ns-dark tr.lp-moves-row > td { background: #171d26 !important; }
    html.ns-dark .lp-moves { border: 1px solid #343e4c; background: #1b1b1b; }
    html.ns-dark .bc-field { border: 1.5px solid #445678; background: #1b1b1b; }
    html.ns-dark .bc-field:focus-within { border-color: #1f6feb; box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.375); }
    html.ns-dark .bc-field .icon { color: #6a8fe7; }
    html.ns-dark .li-tools .bc-field input.bc-input,
    html.ns-dark .li-tools .bc-field input.bc-input:focus { border: 0 !important; outline: 0; box-shadow: none !important; background: transparent; }
    html.ns-dark .bc-status.good { color: #69e89f; }
    html.ns-dark .bc-status.bad { color: #eb6f66; }
    html.ns-dark dialog.bc-camera { border: 0; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6); }
    html.ns-dark .bc-camera-head { border-bottom: 1px solid #333a46; }
    html.ns-dark .bc-camera-head button { border: 0; background: none; }
    html.ns-dark .bc-video { background: #3d3d3d; }
    html.ns-dark .bc-aim { border: 2px solid rgba(43, 43, 43, 0.85); box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.6); }
    html.ns-dark .bc-camera-note.bad { color: #eb6f66; }
    html.ns-dark .acc-page .good-text { color: #6be697; }
    html.ns-dark .acc-page .bad-text { color: #e26f6f; }
    html.ns-dark .rv-note { border: 1px solid #2d3d5d; background: #0e182f; color: #b7c1d2; }
    html.ns-dark .rv-note b { color: #718de0; }
    html.ns-dark .rv-check { color: #b7c1d2; }
    html.ns-dark .fx-form label.fx-used { color: #718de0; }
    html.ns-dark .va-box { border: 1px solid #343e4c; background: #0d192c; }
    html.ns-dark .va-item { border: 1px solid #333a46; background: #1b1b1b; }
    html.ns-dark .va-thumb { background: #171f2e center / cover no-repeat; color: #6a8fe7; }
    html.ns-dark .va-info small { color: #acb3bb; }
    html.ns-dark .va-ops button { background: none; border: 0; color: #e26f6f; }
    html.ns-dark .va-drop { border: 1px dashed #465778; color: #6a8fe7; background: #0e182f; }
    html.ns-dark .va-drop.over { background: #101e37; }
    html.ns-dark .hub-head { color: #ffffff; background: linear-gradient(120deg, #1d4ed8 0%, #2563eb 45%, #0891b2 100%); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6); }
    html.ns-dark .hub-head h1 { color: #ffffff; }
    html.ns-dark .hub-head p { color: rgba(255, 255, 255, 0.88); }
    html.ns-dark .hub-date { background: rgba(27, 27, 27, 0.18); }
    html.ns-dark .hub-number { background: #1b1b1b; border: 1px solid #333a46; color: #c7d1e0; }
    html.ns-dark .hub-number:hover { box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2); }
    html.ns-dark .hub-number-icon { color: var(--c); background: color-mix(in srgb, var(--c) 12%, #1b1b1b); }
    html.ns-dark .hub-number b { color: #cfd7ea; }
    html.ns-dark .hub-number small { color: #acb3bb; }
    html.ns-dark .hub-group h2 { color: #c7d1e0; background: none; }
    html.ns-dark .hub-group h2::before { background: var(--c); }
    html.ns-dark .hub-main { color: #ffffff !important; background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 72%, #3d3d3d)); box-shadow: 0 4px 14px color-mix(in srgb, var(--c) 30%, transparent); }
    html.ns-dark .hub-main:hover { box-shadow: 0 10px 22px color-mix(in srgb, var(--c) 38%, transparent); }
    html.ns-dark .hub-icon { background: rgba(27, 27, 27, 0.2); }
    html.ns-dark .hub-icon .icon { color: #ffffff; }
    html.ns-dark .hub-text b { color: #ffffff; }
    html.ns-dark .hub-text small { color: rgba(255, 255, 255, 0.85); }
    html.ns-dark .hub-count { background: rgba(27, 27, 27, 0.22); }
    html.ns-dark .hub-list { background: #1b1b1b; border: 2px solid var(--c); color: var(--c) !important; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.375); }
    html.ns-dark .hub-list .icon { color: var(--c); }
    html.ns-dark .hub-list b { background: color-mix(in srgb, var(--c) 14%, #1b1b1b); }
    html.ns-dark .hub-list:hover { background: var(--c); color: #ffffff !important; }
    html.ns-dark .hub-list:hover .icon { color: #ffffff; }
    html.ns-dark .hub-list:hover b { background: rgba(27, 27, 27, 0.25); }
    html.ns-dark .local-invoice-page.li-sale-return { --li: #f5885c; --li-soft: #331f0f; --li-line: #865738; --li-head: #422713; }
    html.ns-dark .local-invoice-page.li-purchase-return { --li: #f06184; --li-soft: #310e13; --li-line: #733643; --li-head: #3a1119; }
    html.ns-dark .li-flash { box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.6) !important; }
    html.ns-dark .li-commission .li-val { color: #9560f0; }
    html.ns-dark .li-credit { color: #6ae799; }
    html.ns-dark .li-credit.over { color: #e76a73; }
    html.ns-dark .li-tool-return { color: #f5885c; }
    html.ns-dark .li-num-toggle { border: 1px solid var(--li-line); background: #1b1b1b; color: var(--li); }
    html.ns-dark .li-num-toggle:hover { background: var(--li-soft); }
    html.ns-dark .li-num-note { color: #e86868; }
    html.ns-dark .li-fold { border: 1px solid #414852; background: #1b1b1b; color: #acb3bb; }
    html.ns-dark .li-fold:hover { color: var(--li); border-color: var(--li); }
    html.ns-dark .li-brief { color: #b7c1d2; }
    html.ns-dark .li-rt { border: 1.5px solid #6b717a; background: #1b1b1b; color: #acb7c6; }
    html.ns-dark .li-rt:hover { border-color: var(--li); color: var(--li); }
    html.ns-dark .li-rt.li-rt-del { border-color: #762b2b; color: #e76a6a; background: #2f1111; }
    html.ns-dark .li-rt.li-rt-del:hover { background: #381212; border-color: #b14848; color: #e86868; }
    html.ns-dark .li-vat { color: #acb3bb; }
    html.ns-dark .li-sum .li-vat-on input[name=tax] { background: #33230f !important; color: #ed8664; }
    html.ns-dark .li-sum .li-discount input { border-color: #3d8858 !important; }
    html.ns-dark .li-sum .li-discount label { color: #6ae799; }
    html.ns-dark .local-invoice-page .local-settle tr.form-row { border: 1px solid #40664e; background: #1b2f22; }
    html.ns-dark .local-invoice-page .local-settle tr.form-row td { border: 0 !important; background: transparent !important; }
    html.ns-dark .local-invoice-page .local-settle tr.form-row td[data-label]::before { color: #71e09b; }
    html.ns-dark .local-invoice-page.li-transfer { --li: #61d1f0; --li-soft: #0f3234; --li-line: #487881; --li-head: #1b383d; }
    html.ns-dark .local-invoice-page.li-count { --li: #b2ec64; --li-soft: #293216; --li-line: #6d844d; --li-head: #33401f; }
    html.ns-dark .sd-diff.bad { color: #e76a73; }
    html.ns-dark .sd-diff.good { color: #6ae799; }
    html.ns-dark .sd-system { color: #acb7c6; }
    html.ns-dark .lp-store { border: 1px solid #414852; background: #1b1b1b; }
    html.ns-dark .lp-store.bad b { color: #e76a73; }
    html.ns-dark .k-badge.k-move { background: #122a3a; color: #61d1f0; }
    html.ns-dark .lp-store .icon { color: #61d1f0; }
    html.ns-dark .local-invoice-page.li-expense { --li: #f79e5a; --li-soft: #32260e; --li-line: #836539; --li-head: #473717; }
    html.ns-dark .local-invoice-page.li-petty { --li: #65ebe1; --li-soft: #152e28; --li-line: #4f7d76; --li-head: #203d37; }
    html.ns-dark .ex-pill span { border: 1px solid var(--li-line, #474e57); background: #1b1b1b; color: #b9c2d0; }
    html.ns-dark .ex-pill:hover span { border-color: var(--li, #2563eb); color: var(--li, #608df0); }
    html.ns-dark .ex-pill input:checked + span { background: var(--li, #2563eb); border-color: var(--li, #2563eb); color: #ffffff; }
    html.ns-dark .ex-pill input:focus-visible + span { outline: 2px solid var(--li, #2563eb); }
    html.ns-dark .ex-quick > span { color: #acb3bb; }
    html.ns-dark .ex-chip { border: 1px dashed var(--li-line, #474e57); background: var(--li-soft, #1b2025); color: var(--li, #608df0); }
    html.ns-dark .ex-chip:hover { background: #1b1b1b; }
    html.ns-dark .pf-tools .pf-charge { color: #6ae799; }
    html.ns-dark .pf-tools .pf-expense { color: #f79e5a; }
    html.ns-dark .lp-table tr.k-in td.num b,
    html.ns-dark .br-table tr.k-in td.num b { color: #6ae799; }
    html.ns-dark .lp-table tr.k-out td.num b,
    html.ns-dark .br-table tr.k-out td.num b { color: #eb6f66; }
    html.ns-dark .br-file-side { color: #acb3bb; }
    html.ns-dark .br-un { color: #eb6f66; }
    html.ns-dark .sr-filters .sr-excel { color: #6ae799; }
    html.ns-dark .sr-table thead th.sr-group { border-bottom: 1px solid #333a46; }
    html.ns-dark .sr-table .sr-buy { background: #0e1a2f; }
    html.ns-dark .sr-table .sr-sale { background: #172a1e; }
    html.ns-dark .sr-table thead th.sr-buy { color: #6689ea; }
    html.ns-dark .sr-table thead th.sr-sale { color: #6ae799; }
    html.ns-dark .sr-table td small { color: #9fa4af; }
    html.ns-dark .sr-table .sr-zero { color: #9ca3af; }
    html.ns-dark .sr-table tfoot td { background: #1b2025; border-top: 2px solid #414852; }
    html.ns-dark .pt-fields h3 { color: var(--li, #608df0); }
    html.ns-dark .pt-table code { color: #6689ea; background: #0f1b33; }
    html.ns-dark .pt-chip { background: #20311f; color: #71e09b; }
    html.ns-dark .pt-chip.bad { background: #301616; color: #eb6f66; }
    html.ns-dark .pt-try { color: #6689ea; }
    html.ns-dark .marketer-page .mk-wait { color: #f79e5a; }
    html.ns-dark .mk-tag { background: #1c232b; color: #b7c1d2; }
    html.ns-dark .mk-percent i { color: #acb3bb; }
    html.ns-dark .mk-option > span { border: 1px solid #474e57; background: #1b1b1b; }
    html.ns-dark .mk-option small { color: #acb3bb; }
    html.ns-dark .mk-option:hover > span { border-color: #2563eb; }
    html.ns-dark .mk-option input:checked + span { border-color: #2563eb; background: #0f1c32; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.6); }
    html.ns-dark .mk-option input:checked + span b { color: #6689ea; }
    html.ns-dark .mk-option input:focus-visible + span { outline: 2px solid #2563eb; }
    html.ns-dark .mk-list li { border-bottom: 1px dashed #333a46; }
    html.ns-dark .mk-list small { color: #acb3bb; }
    html.ns-dark .lp-service-row { background: #140e30; }
    html.ns-dark .lp-low { color: #f89359; }
    html.ns-dark .lp-low-pill { border: 1px solid #63302e; background: #2f110e; color: #eb6f66 !important; }
    html.ns-dark .local-low { color: #f89359 !important; }
    html.ns-dark .ro-empty { border: 1px dashed #40664e; background: #172a1e; color: #6fe290; }
    html.ns-dark .rm-card { border: 1px solid #333a46; background: #1b1b1b; }
    html.ns-dark .rm-card.needs { border-color: #2d3d5d; box-shadow: inset 3px 0 0 rgba(0, 0, 0, 0.6); }
    html.ns-dark .rm-card.needs.late { border-color: #63302e; box-shadow: inset 3px 0 0 rgba(0, 0, 0, 0.6); }
    html.ns-dark .rm-pill { background: #0f1933; color: #6a8fe7; }
    html.ns-dark .rm-pill.done { background: #172a1e; color: #6fe290; }
    html.ns-dark .rm-items tr.rm-late td { color: #eb6f66; }
    html.ns-dark .rm-items tr.rm-today td { color: #f89359; }
    html.ns-dark .rm-phone { color: #acb3bb; }
    html.ns-dark .rm-text { border: 1px solid #454b52; }
    html.ns-dark .rm-settings,
    html.ns-dark .rm-history { border: 1px solid #333a46; background: #1b1b1b; }
    html.ns-dark .rm-settings label small { color: #acb3bb; }
    html.ns-dark .party-page .pf-head { border: 1px solid #333a46; background: #1b1b1b; }
    html.ns-dark .pf-who .pf-company { color: #acb3bb; }
    html.ns-dark .pf-avatar { background: linear-gradient(135deg, #2563eb, #1e40af); color: #ffffff; }
    html.ns-dark .pf-tag { background: #0f1933; color: #6a8fe7; }
    html.ns-dark .pf-tag.off { background: #2f110e; color: #eb6f66; }
    html.ns-dark .pf-tabs { border-bottom: 1px solid #333a46; }
    html.ns-dark .pf-tab { border: 0; border-bottom: 3px solid transparent; background: none; color: #acb3bb; }
    html.ns-dark .pf-tab.on { color: #6a8fe7; border-bottom-color: #1f4fbf; }
    html.ns-dark .pf-tab:hover { color: #6a8fe7; }
    html.ns-dark .pf-owes { color: #eb6f66; }
    html.ns-dark .pf-owed { color: #6fe290; }
    html.ns-dark .pf-block { border: 1px solid #333a46; background: #1b1b1b; }
    html.ns-dark .pf-block-head h2 { background: none; color: inherit; }
    html.ns-dark .pf-block-head h2 small { color: #acb3bb; }
    html.ns-dark .pf-chip { border: 1px solid #454b52; background: #1b1b1b; }
    html.ns-dark .pf-chip b { color: #acb3bb; }
    html.ns-dark .pf-chip.on { background: #1f4fbf; border-color: #1f4fbf; color: #ffffff; }
    html.ns-dark .pf-chip.on b { color: #dbe6ff; }
    html.ns-dark .pf-badge { background: #202326; }
    html.ns-dark .pf-b-sale { background: #0f1933; color: #6a8fe7; }
    html.ns-dark .pf-b-purchase { background: #382710; color: #f89359; }
    html.ns-dark .pf-b-sale_return,
    html.ns-dark .pf-b-purchase_return { background: #180e32; color: #9b6ce5; }
    html.ns-dark .pf-b-open { background: #0f1933; color: #6a8fe7; }
    html.ns-dark .pf-late td { background: #2e110d; }
    html.ns-dark .pf-ok { color: #6fe290; }
    html.ns-dark .li-quick-btn { border: 1px solid #454b52; border-inline-start: 0; background: #191e26; }
    html.ns-dark .li-quick-btn i { background: #3b6aa8; }
    html.ns-dark .li-quick-btn:hover { background: #131f33; }
    html.ns-dark .li-quick-list { border: 1px solid #333a46; background: #161b24; }
    html.ns-dark .li-quick-pick { border: 1px solid transparent; background: #1b1b1b; color: inherit; box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1); }
    html.ns-dark .li-quick-pick:hover { border-color: #414e66; background: #0f1933; color: #6a8fe7; }
    html.ns-dark .li-quick-del { border: 0; background: none; color: #98a2b3; }
    html.ns-dark .li-quick-del:hover { background: #2f110e; color: #eb6f66; }
    html.ns-dark .li-quick-none { color: #acb3bb; }
    html.ns-dark .li-quick-new { border-top: 1px dashed #454b52; }
    html.ns-dark .li-quick-add { border: 1px solid #1f4fbf; background: #1f4fbf; color: #ffffff; }
    html.ns-dark .li-quick-add:hover { background: #1a43a3; }
    html.ns-dark .li-quick-clear { border: 0; background: #1f2329; color: #acb3bb; }
    html.ns-dark .li-quick-clear:hover { background: #351513; color: #eb6f66; }
    html.ns-dark .sd-box { border: 1px solid #454b52; background: #1b1b1b; }
    html.ns-dark .sd-box small { color: #acb3bb; }
    html.ns-dark .sd-stop { border-color: #622e33; background: #2f0e0e; }
    html.ns-dark .sd-stop h3 { color: #eb6f66; }
    html.ns-dark .sd-gone h3 { color: #ffc652; }
    html.ns-dark .sd-kept h3 { color: #6fe290; }
    html.ns-dark .sd-form { border: 1px solid #454b52; background: #1b1b1b; }
    html.ns-dark .sd-error { color: #eb6f66; }
    html.ns-dark .sd-delete { background: #cf222e; color: #ffffff; border: 0; }
    html.ns-dark .sd-delete:hover { background: #a40e26; }
    html.ns-dark .sd-cancel { border: 1px solid #454b52; background: #1b2025; }
    html.ns-dark .hb-head h1 { color: #cbd5ed; }
    html.ns-dark .hb-head p { color: #97a3b4; }
    html.ns-dark .hb-year { border: 1px solid #333c47; background: #1b1b1b; }
    html.ns-dark .hb-new { background: #2563eb; color: #ffffff !important; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6); }
    html.ns-dark .hb-new:hover { background: #1d4ed8; }
    html.ns-dark .hb-service { background: #181134; color: #9b6ce5; }
    html.ns-dark .lp-service { --pill: #7c3aed; }
    html.ns-dark .hb-ghost { border: 1px solid #333c47; background: #1b1b1b; color: #b6c2d3 !important; }
    html.ns-dark .hb-card { background: #1b1b1b; border: 1px solid #2c343f; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); }
    html.ns-dark .hb-card::before { background: #2563eb; }
    html.ns-dark .hb-card.hb-good::before { background: #16a34a; }
    html.ns-dark .hb-card.hb-blue::before { background: #0ea5e9; }
    html.ns-dark .hb-card.hb-warn::before { background: #f59e0b; }
    html.ns-dark .hb-card.hb-bad::before { background: #dc2626; }
    html.ns-dark .hb-card span { color: #97a3b4; }
    html.ns-dark .hb-card b { color: #cbd5ed; }
    html.ns-dark .hb-card small { color: #94a3b8; }
    html.ns-dark .hb-other { color: #abb6c6; }
    html.ns-dark .hb-panel { background: #1b1b1b; border: 1px solid #2c343f; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); }
    html.ns-dark .hb-bar { border-bottom: 1px solid #29333e; }
    html.ns-dark .hb-tab { border: 0; background: none; color: #abb6c6; }
    html.ns-dark .hb-tab i { background: #1a2229; color: #97a3b4; }
    html.ns-dark .hb-tab:hover { background: #181e25; }
    html.ns-dark .hb-tab.on { background: #0f1e32; color: #6689ea; }
    html.ns-dark .hb-tab.on i { background: #2563eb; color: #ffffff; }
    html.ns-dark .hb-search { border: 1px solid #333c47; background: #181e25; }
    html.ns-dark .hb-search:focus { background: #1b1b1b; border-color: #2d5581; outline: none; }
    html.ns-dark .hb-table th { color: #94a3b8; background: #1b1b1b; border-bottom: 1px solid #29333e; }
    html.ns-dark .hb-table td { border-bottom: 1px solid #262f39; color: #b6c2d3; background: #1b1b1b; }
    html.ns-dark .hb-row:hover td { background: #0d1b2d; }
    html.ns-dark .hb-num small,
    html.ns-dark .hb-who small { color: #94a3b8; }
    html.ns-dark .hb-dim { color: #cbd5e1; }
    html.ns-dark .hb-who b { color: #cbd5ed; }
    html.ns-dark .hb-avatar { background: #0f1733; color: #7e76db; }
    html.ns-dark .hb-pill.hb-paid { background: #163b22; color: #6ae799; }
    html.ns-dark .hb-pill.hb-partial { background: #122a3a; color: #55c1fc; }
    html.ns-dark .hb-pill.hb-unpaid { background: #483e16; color: #f79e5a; }
    html.ns-dark .hb-pill.hb-late { background: #381212; color: #e86868; }
    html.ns-dark .hb-pill.hb-m-cash { background: #163b22; color: #6ae799; }
    html.ns-dark .hb-pill.hb-m-bank { background: #122a3a; color: #55c1fc; }
    html.ns-dark .hb-pill.hb-m-cheque { background: #483e16; color: #f79e5a; }
    html.ns-dark .hb-pill.hb-m-endorse { background: #181134; color: #9b6ce5; }
    html.ns-dark .hb-acts a { color: #94a3b8; }
    html.ns-dark .hb-acts a:hover { background: #0f1e32; color: #608df0; }
    html.ns-dark .hb-none,
    html.ns-dark .hb-empty { color: #97a3b4; }
    html.ns-dark body.model-voucher.change-form .acc-voucher-head { background: #26351b; }
    html.ns-dark body.model-voucher.change-form #voucher_form fieldset.module:first-of-type:not(.voucher-lines) { background: rgba(0, 117, 255, 0.16) !important; }
    html.ns-dark body.model-voucher.change-form .inline-group,
    html.ns-dark body.model-voucher.change-form .inline-group h2 { background: transparent !important; box-shadow: none !important; }
    html.ns-dark body.model-voucher.change-form .acc-totals:not(.unbalanced) { background: #26351b !important; }
    html.ns-dark body.model-voucher.change-form #voucher_form fieldset.aligned .form-row { border: 0; background: transparent; }
    html.ns-dark body.model-voucher.change-form #voucher_form fieldset.aligned .fieldBox > label { color: #b6c2d3; }
    html.ns-dark .tr-alloc { border: 1px solid #2d3e5e; background: #0d1a2e; }
    html.ns-dark .tr-alloc-none { color: #acb3bb; }
    html.ns-dark .tr-alloc-table th { color: #acb7c6; border-bottom: 1px solid #333d4d; background: transparent; }
    html.ns-dark .tr-alloc-table td { border-bottom: 1px solid #2a3340; }
    html.ns-dark .tr-alloc-table input { border: 1px solid #445678; background: #1b1b1b; }
    html.ns-dark .tr-alloc-table input.bad { border-color: #cf222e; background: #2f0e0e; }
    html.ns-dark .tr-alloc-sum.bad-text { color: #e76a73; }
    html.ns-dark .li-alloc-list { color: #acb3bb; }
    html.ns-dark .li-draft { background: #342d0f; border: 1px solid #87752f; color: #f09761; }
    html.ns-dark .pt-default { border: 1px solid #85723b; background: #3d3212; color: #ffc652; }
    html.ns-dark .pt-make-default { border: 1px solid #454b52; background: #1b1b1b; color: #acb3bb; }
    html.ns-dark .pt-make-default:hover { border-color: #1f4fbf; color: #6a8fe7; background: #0f1933; }
    html.ns-dark .hb-report { border: 0; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6); }
    html.ns-dark .hb-report::backdrop { background: rgba(15, 23, 42, 0.35); }
    html.ns-dark .hb-report h3 { color: #cbd5ed; }
    html.ns-dark .hb-report-grid label { color: #abb6c6; }
    html.ns-dark .hb-report-grid input,
    html.ns-dark .hb-report-grid select { border: 1px solid #333c47; background-color: #1b1b1b; }
    html.ns-dark .hb-date .jdate-button { border: 0; background: none; }
    html.ns-dark .hb-report .help { color: #97a3b4; }
    html.ns-dark .pt-section-bar label { color: #b6c2d3; }
    html.ns-dark .pt-section-bar select { border: 1px solid #424b56; background-color: #1b1b1b; }
    html.ns-dark .pt-section-add { background: #2563eb; color: #ffffff !important; }
    html.ns-dark .role-table tr.role-head th { background: #191e26; border-inline-start: 4px solid var(--c, #2563eb); }
    html.ns-dark .role-special { border: 1px solid #333a46; background: #1b1b1b; }
    html.ns-dark .role-special:has(input:checked) { border-color: #354e80; background: #0e1931; }
    html.ns-dark .log-changes del { color: #eb6f66; }
    html.ns-dark .log-changes ins { color: #5af7b5; }
    html.ns-dark .log-tag { background: #1c232b; }
    html.ns-dark .log-add,
    html.ns-dark .log-login { background: #1d3023; color: #5af7b5; }
    html.ns-dark .log-change { background: #0f1b33; color: #6689ea; }
    html.ns-dark .log-delete,
    html.ns-dark .log-failed { background: #331613; color: #eb6f66; }
    html.ns-dark .acc-table .acc-tick input { accent-color: #66ea97; }
    html.ns-dark .acc-table tr.acc-ticked > td { background: rgba(34, 197, 94, 0.2) !important; }
    html.ns-dark .hb-filters { border-bottom: 1px solid #29333e; }
    html.ns-dark .hb-filters label { color: #97a3b4; }
    html.ns-dark .hb-filters input,
    html.ns-dark .hb-filters select { border: 1px solid #333c47; background: #1b1b1b; }
    html.ns-dark .hb-paid-text { color: #6ae799; }
    html.ns-dark .hb-left-text { color: #e86868; }
    html.ns-dark .hb-late-text { color: #f5885c; }
    html.ns-dark .hb-table tr.hb-row-late > td:first-child { box-shadow: inset -3px 0 0 rgba(0, 0, 0, 0.6); }
    html.ns-dark .vf-result { border: 1px solid; }
    html.ns-dark .vf-ok { background: #13311f; border-color: #3d7252; color: #6be697; }
    html.ns-dark .vf-bad { background: #2f1311; border-color: #67322d; color: #eb6f66; }
    html.ns-dark .vf-result span { color: #b7c1d2; }
    html.ns-dark .vf-facts th { color: #acb3bb; }
    html.ns-dark .vf-form { border: 1px solid #333a46; background: #1b1b1b; }
    html.ns-dark .cm-waiting { border: 1px solid #866d36; background: #342b0f; }
    html.ns-dark .cm-waiting b { color: #f89359; }
    html.ns-dark .li-commission-wait { color: #f89359; }
    html.ns-dark .li-commission-wait small { color: #dfbb72; }
    html.ns-dark .bank-rec-page .submit-row,
    html.ns-dark .bs-columns-page .submit-row { background: #1b1b1b; box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.2); }
    html.ns-dark .br-act .br-doc { color: #6689ea; }
    
    /* ---- catalog/dark-extra.css */
    /* Hand-made fixes of the night look (added after the rules copied by catalog/build_dark.py). */
    html.ns-dark { color-scheme: dark; }
    /* status pills: the status colour as text needs to be lighter on a dark pill */
    html.ns-dark .pill { color: color-mix(in srgb, var(--pill, #2563eb) 55%, white); background: color-mix(in srgb, var(--pill, #2563eb) 22%, #111827); }
    /* the logo's dark letters */
    html.ns-dark img[src*="logo"] { filter: invert(.92) hue-rotate(180deg); mix-blend-mode: lighten; }
    /* fields Django colours itself */
    html.ns-dark input, html.ns-dark select, html.ns-dark textarea { background-color: #161c2a; color: #e5e7eb; border-color: #2c3547; }
    html.ns-dark input[type=checkbox], html.ns-dark input[type=radio] { background-color: initial; }
    html.ns-dark input:disabled, html.ns-dark select:disabled, html.ns-dark textarea:disabled, html.ns-dark input[readonly] { background-color: #1b2130; color: #9ca3af; }
    html.ns-dark ::placeholder { color: #6b7280; }
    /* the select2 boxes (product pickers) */
    html.ns-dark .select2-container--admin-autocomplete .select2-selection,
    html.ns-dark .select2-dropdown, html.ns-dark .select2-search__field { background-color: #161c2a !important; color: #e5e7eb !important; border-color: #2c3547 !important; }
    html.ns-dark .select2-container--admin-autocomplete .select2-selection__rendered { color: #e5e7eb !important; }
    html.ns-dark .select2-results__option--highlighted { background-color: #1d4ed8 !important; color: #fff !important; }
    /* the day/night button */
    .ns-theme { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--ns-line); border-radius: 10px;
        background: #f7f9fc; color: #374151; cursor: pointer; padding: 0; }
    .ns-theme svg { width: 18px; height: 18px; }
    .ns-theme .ns-moon, html.ns-dark .ns-theme .ns-sun { display: block; }
    .ns-theme .ns-sun, html.ns-dark .ns-theme .ns-moon { display: none; }
    html.ns-dark .ns-theme { background: #1b2232; color: #fbbf24; border-color: #2c3547; }
    /* Django's small black icons (+ beside a field, pencil, calendar) */
    html.ns-dark a.related-widget-wrapper-link img, html.ns-dark img[src*="/admin/img/icon-"]:not([src*="yes"]):not([src*="no"]):not([src*="alert"]) { filter: invert(.9) hue-rotate(180deg); }
    /* the round + of every "add": light ring and plus at night */
    html.ns-dark body.ns-glass a.add-related, html.ns-dark body.ns-glass a.related-widget-wrapper-link.add-related,
    html.ns-dark body.ns-glass .inline-group .add-row a::before, html.ns-dark body.ns-glass a.addlink:not(.object-tools a)::before {
        background-color: #1b2232;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 7v10M7 12h10' stroke='%23e5e7eb' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E");
        box-shadow: inset 0 0 0 1.6px #cbd5e1, 0 2px 5px rgba(0, 0, 0, .4);
    }
    html.ns-dark body.ns-glass a.add-related:hover { background-color: #26304a; }
    
}
