/* ==========================================================================
   The app's own dark theme: the dark colour of every rule in base, layout and components.
   Written as :where(:root[data-theme="dark"]) so it weighs the same as the light rule it replaces.
   With the Dark Reader extension on, the app stays light (app.js) and Dark Reader darkens it itself.
   Every new rule with a colour gets its dark twin here (or in its page's own file).
   ========================================================================== */
:where(:root[data-theme="dark"]) { color-scheme: dark; }
:where(:root[data-theme="dark"]) body { color: #e2e8f0; background-color: #0f1626; }
:where(:root[data-theme="dark"]) h1,
:where(:root[data-theme="dark"]) h2,
:where(:root[data-theme="dark"]) h3,
:where(:root[data-theme="dark"]) h4 { color: #f1f5f9; }
:where(:root[data-theme="dark"]) a { color: #93b8fb; }
:where(:root[data-theme="dark"]) a:hover { color: #b4cefc; }
:where(:root[data-theme="dark"]) :focus-visible { outline-color: #4f7fe0; }
:where(:root[data-theme="dark"]) ::selection { background-color: #2c4a85; }
:where(:root[data-theme="dark"]) .muted { color: #94a3b8; }
:where(:root[data-theme="dark"]) kbd { color: #94a3b8; background-color: #1a2439; border-color: #2c3a54; }
:where(:root[data-theme="dark"]) * { scrollbar-color: #34445f transparent; }

/* Header and menu */
:where(:root[data-theme="dark"]) .app-header { background-color: #131c2e; border-bottom-color: #222e45; }
:where(:root[data-theme="dark"]) .brand,
:where(:root[data-theme="dark"]) .brand:hover,
:where(:root[data-theme="dark"]) .auth-brand-text { color: #cfd7e3; }
:where(:root[data-theme="dark"]) .brand-logo { filter: brightness(0.8) saturate(0.85); }
:where(:root[data-theme="dark"]) .brand-text small,
:where(:root[data-theme="dark"]) .auth-brand-text small { color: #8a97ab; }
:where(:root[data-theme="dark"]) .hdr-tools { background-color: #0f1626; border-color: #222e45; }
:where(:root[data-theme="dark"]) .tool-btn { color: #a8b3c4; }
:where(:root[data-theme="dark"]) .tool-btn:hover { color: #f1f5f9; background-color: #1c273c; }
:where(:root[data-theme="dark"]) .user-btn { color: #e2e8f0; }
:where(:root[data-theme="dark"]) .user-btn:hover,
:where(:root[data-theme="dark"]) .user-btn[aria-expanded="true"] { background-color: #1a2439; border-color: #283650; }
:where(:root[data-theme="dark"]) .avatar { color: #b4cefc; background-color: #1d3263; }
:where(:root[data-theme="dark"]) .user-caret { color: #6f7d93; }
:where(:root[data-theme="dark"]) .nav-link { color: #a8b3c4; }
:where(:root[data-theme="dark"]) .nav-link .fa-solid { color: #6f7d93; }
:where(:root[data-theme="dark"]) .nav-link:hover,
:where(:root[data-theme="dark"]) .nav-link[aria-expanded="true"] { color: #f1f5f9; background-color: #1a2439; }
:where(:root[data-theme="dark"]) .nav-link:hover .fa-solid { color: #a8b3c4; }
:where(:root[data-theme="dark"]) .nav-link.is-active { color: #b4cefc; background-color: #172a4f; }
:where(:root[data-theme="dark"]) .nav-link.is-active .fa-solid { color: #7ea6f6; }

/* Page */
:where(:root[data-theme="dark"]) .page-sub,
:where(:root[data-theme="dark"]) .section-sub,
:where(:root[data-theme="dark"]) .auth-sub { color: #94a3b8; }
:where(:root[data-theme="dark"]) .page-title-icon { color: #6f7d93; }
:where(:root[data-theme="dark"]) .auth-card { background-color: #161f32; border-color: #253149; box-shadow: 0 10px 30px -14px rgba(0, 0, 0, 0.6); }

/* Buttons */
:where(:root[data-theme="dark"]) .btn { color: #e2e8f0; background-color: #1a2439; border-color: #2c3a54; box-shadow: none; }
:where(:root[data-theme="dark"]) .btn .fa-solid { color: #94a3b8; }
:where(:root[data-theme="dark"]) .btn:hover { background-color: #212d45; border-color: #3a4a66; }
:where(:root[data-theme="dark"]) .btn:active { background-color: #263350; }
:where(:root[data-theme="dark"]) .btn:disabled:hover { background-color: #1a2439; border-color: #2c3a54; }
:where(:root[data-theme="dark"]) .btn-primary { color: #dbe6fb; background-color: #1d3a7a; border-color: #2f55a8; box-shadow: none; }
:where(:root[data-theme="dark"]) .btn-primary .fa-solid { color: #dbe6fb; }
:where(:root[data-theme="dark"]) .btn-primary:hover { background-color: #23468f; border-color: #3a62b8; }
:where(:root[data-theme="dark"]) .btn-primary:active { background-color: #1a3370; }
:where(:root[data-theme="dark"]) .btn-primary:disabled:hover { background-color: #1d3a7a; border-color: #2f55a8; }
:where(:root[data-theme="dark"]) .btn-quiet { color: #a8b3c4; background-color: transparent; border-color: transparent; }
:where(:root[data-theme="dark"]) .btn-quiet:hover { color: #f1f5f9; background-color: #1a2439; border-color: transparent; }
:where(:root[data-theme="dark"]) .btn-quiet:disabled:hover { background-color: transparent; }
:where(:root[data-theme="dark"]) .btn-danger { color: #fca5a5; }
:where(:root[data-theme="dark"]) .btn-danger .fa-solid { color: #f87171; }
:where(:root[data-theme="dark"]) .btn-danger:hover { color: #fecaca; background-color: #2e1517; border-color: #5c2a2e; }

/* Segmented, counts, chips */
:where(:root[data-theme="dark"]) .seg { background-color: #0f1626; border-color: #222e45; }
:where(:root[data-theme="dark"]) .seg-btn { color: #a8b3c4; }
:where(:root[data-theme="dark"]) .seg-btn .fa-solid { color: #6f7d93; }
:where(:root[data-theme="dark"]) .seg-btn:hover { color: #f1f5f9; }
:where(:root[data-theme="dark"]) .seg-btn.is-active { color: #b4cefc; background-color: #1d2a44; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 0 0 1px #2c3a54; }
:where(:root[data-theme="dark"]) .seg-btn.is-active .fa-solid { color: #7ea6f6; }
:where(:root[data-theme="dark"]) .count { color: #a8b3c4; background-color: #253149; }
:where(:root[data-theme="dark"]) .is-active > .count { color: #cfe0fd; background-color: #24407a; }
:where(:root[data-theme="dark"]) .chip { color: #cbd5e1; background-color: #161f32; border-color: #2c3a54; }
:where(:root[data-theme="dark"]) .chip:hover { background-color: #1a2439; border-color: #3a4a66; }
:where(:root[data-theme="dark"]) .chip.is-active { color: #b4cefc; background-color: #172a4f; border-color: #3b5b9a; }
:where(:root[data-theme="dark"]) .chip.is-off { color: #6f7d93; }

/* Forms */
:where(:root[data-theme="dark"]) .label { color: #cbd5e1; }
:where(:root[data-theme="dark"]) .label-opt { color: #6f7d93; }
:where(:root[data-theme="dark"]) .hint { color: #94a3b8; }
:where(:root[data-theme="dark"]) .input,
:where(:root[data-theme="dark"]) .select,
:where(:root[data-theme="dark"]) .textarea { color: #e2e8f0; background-color: #0f1626; border-color: #2c3a54; }
:where(:root[data-theme="dark"]) .input::placeholder,
:where(:root[data-theme="dark"]) .textarea::placeholder { color: #5f6d84; }
:where(:root[data-theme="dark"]) .input:hover,
:where(:root[data-theme="dark"]) .select:hover,
:where(:root[data-theme="dark"]) .textarea:hover { border-color: #3a4a66; }
:where(:root[data-theme="dark"]) .input:focus,
:where(:root[data-theme="dark"]) .select:focus,
:where(:root[data-theme="dark"]) .textarea:focus { border-color: #4f7fe0; box-shadow: 0 0 0 3px rgba(79, 127, 224, 0.22); }
:where(:root[data-theme="dark"]) .input:disabled,
:where(:root[data-theme="dark"]) .select:disabled,
:where(:root[data-theme="dark"]) .textarea:disabled { color: #8a97ab; background-color: #141c2c; }
:where(:root[data-theme="dark"]) .input.is-invalid,
:where(:root[data-theme="dark"]) .select.is-invalid,
:where(:root[data-theme="dark"]) .textarea.is-invalid { border-color: #b04545; box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.18); }
:where(:root[data-theme="dark"]) .select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%2394a3b8' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E"); }
:where(:root[data-theme="dark"]) .input-eye { color: #6f7d93; }
:where(:root[data-theme="dark"]) .input-eye:hover { color: #cbd5e1; background-color: #1a2439; }
:where(:root[data-theme="dark"]) .input-search .fa-magnifying-glass { color: #6f7d93; }
:where(:root[data-theme="dark"]) .check { color: #cbd5e1; }
:where(:root[data-theme="dark"]) .check input { accent-color: #4f7fe0; }
:where(:root[data-theme="dark"]) .form-error { color: #fca5a5; }

/* Cards */
:where(:root[data-theme="dark"]) .card { background-color: #161f32; border-color: #253149; box-shadow: none; }
:where(:root[data-theme="dark"]) .card-head { border-bottom-color: #1f2a40; }
:where(:root[data-theme="dark"]) .card-title { color: #f1f5f9; }
:where(:root[data-theme="dark"]) .card-sub { color: #94a3b8; }
:where(:root[data-theme="dark"]) .card-foot { background-color: #141c2c; border-top-color: #1f2a40; }

/* Tables */
:where(:root[data-theme="dark"]) .table th { color: #94a3b8; background-color: #1a2439; border-bottom-color: #283650; }
:where(:root[data-theme="dark"]) .table td { color: #e2e8f0; border-bottom-color: #1f2a40; }
@media (hover: hover) { :where(:root[data-theme="dark"]) .table tbody tr:hover { background-color: #1a2439; } }
:where(:root[data-theme="dark"]) .table tbody tr.is-picked { background-color: #172a4f; }
:where(:root[data-theme="dark"]) .table tbody tr.is-picked > td { background-color: #1c3566; }
:where(:root[data-theme="dark"]) .table tbody tr.is-picked > td:first-child { box-shadow: inset 4px 0 0 #5b8def; }
:where(:root[data-theme="dark"]) .table .cell-sub { color: #94a3b8; }
:where(:root[data-theme="dark"]) .table.is-sheet td { border-bottom-color: #233049; }
:where(:root[data-theme="dark"]) .table.is-sheet .row-no { color: #6f7d93; background-color: #141c2c; }

/* Badges and dots */
:where(:root[data-theme="dark"]) .badge { color: #a8b4c6; background-color: transparent; border-color: #2c3a54; }
:where(:root[data-theme="dark"]) .badge.is-blue { color: #9dbcf5; background-color: transparent; border-color: #2f4573; }
:where(:root[data-theme="dark"]) .badge.is-green { color: #6ccaa6; background-color: transparent; border-color: #2d4a48; }
:where(:root[data-theme="dark"]) .badge.is-amber { color: #dcb06a; background-color: transparent; border-color: #4a4032; }
:where(:root[data-theme="dark"]) .badge.is-red { color: #f47676; background-color: transparent; border-color: #6e2a2e; }
:where(:root[data-theme="dark"]) .badge.is-purple { color: #c4b2f5; background-color: transparent; border-color: #3e3463; }
:where(:root[data-theme="dark"]) .badge.is-grey { color: #a8b4c6; background-color: transparent; border-color: #2c3a54; }
:where(:root[data-theme="dark"]) .badge-invoice { color: #7fd6cb; background-color: transparent; border-color: #23484a; }
:where(:root[data-theme="dark"]) a.badge-invoice:hover { color: #a3e6dd; background-color: #12242a; }
:where(:root[data-theme="dark"]) .dot { background-color: #6f7d93; }
:where(:root[data-theme="dark"]) .dot.is-green { background-color: #34c172; }
:where(:root[data-theme="dark"]) .dot.is-amber { background-color: #b98c45; }
:where(:root[data-theme="dark"]) .dot.is-red { background-color: #f06363; }
:where(:root[data-theme="dark"]) .dot.is-blue { background-color: #6d97f0; }

/* Notes */
:where(:root[data-theme="dark"]) .note { color: #cbd5e1; background-color: #141f38; border-color: #253c69; }
:where(:root[data-theme="dark"]) .note > .fa-solid { color: #7ea6f6; }
:where(:root[data-theme="dark"]) .note strong { color: #f1f5f9; }
:where(:root[data-theme="dark"]) .note.is-warn { background-color: #211c13; border-color: #3c3220; }
:where(:root[data-theme="dark"]) .note.is-warn > .fa-solid { color: #b98c45; }
:where(:root[data-theme="dark"]) .note.is-ok { background-color: #0f2219; border-color: #1d4231; }
:where(:root[data-theme="dark"]) .note.is-ok > .fa-solid { color: #34c172; }
:where(:root[data-theme="dark"]) .note.is-error { background-color: #261417; border-color: #532a2e; }
:where(:root[data-theme="dark"]) .note.is-error > .fa-solid { color: #f06363; }

/* Tabs, steps */
:where(:root[data-theme="dark"]) .tabs { border-bottom-color: #253149; }
:where(:root[data-theme="dark"]) .tab { color: #94a3b8; }
:where(:root[data-theme="dark"]) .tab:hover { color: #f1f5f9; }
:where(:root[data-theme="dark"]) .tab.is-active { color: #b4cefc; border-bottom-color: #4f7fe0; }
:where(:root[data-theme="dark"]) .step { color: #6f7d93; background-color: transparent; box-shadow: inset 0 0 0 1px #243049; }
:where(:root[data-theme="dark"]) .step.is-done { color: #6ccaa6; background-color: transparent; box-shadow: inset 0 0 0 1px #2d4a48; }
:where(:root[data-theme="dark"]) .step.is-now { color: #9dbcf5; background-color: transparent; box-shadow: inset 0 0 0 1px #2f4573; }
:where(:root[data-theme="dark"]) .step.is-wait { color: #dcb06a; background-color: transparent; box-shadow: inset 0 0 0 1px #4a4032; }
:where(:root[data-theme="dark"]) .step-sep { background-color: #334155; }

/* Menus */
:where(:root[data-theme="dark"]) .menu { background-color: #182236; border-color: #2c3a54; box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.6); }
:where(:root[data-theme="dark"]) .menu-head strong { color: #f1f5f9; }
:where(:root[data-theme="dark"]) .menu-head span { color: #94a3b8; }
:where(:root[data-theme="dark"]) .menu-item { color: #cbd5e1; }
:where(:root[data-theme="dark"]) .menu-item .fa-solid { color: #6f7d93; }
:where(:root[data-theme="dark"]) .menu-item:hover { color: #f1f5f9; background-color: #212d45; }
:where(:root[data-theme="dark"]) .menu-item.is-active { color: #b4cefc; background-color: #172a4f; }
:where(:root[data-theme="dark"]) .menu-item.is-active .fa-solid { color: #7ea6f6; }
:where(:root[data-theme="dark"]) .menu-item.is-danger { color: #fca5a5; }
:where(:root[data-theme="dark"]) .menu-item.is-danger .fa-solid { color: #f87171; }
:where(:root[data-theme="dark"]) .menu-sep { background-color: #253149; }
:where(:root[data-theme="dark"]) .menu-label { color: #6f7d93; }

/* Windows */
:where(:root[data-theme="dark"]) .modal-back { background-color: rgba(2, 6, 18, 0.62); }
:where(:root[data-theme="dark"]) .modal { background-color: #161f32; border-color: #2c3a54; box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.7); }
:where(:root[data-theme="dark"]) .modal-title { color: #f1f5f9; }
:where(:root[data-theme="dark"]) .modal-title .fa-solid { color: #7ea6f6; }
:where(:root[data-theme="dark"]) .modal-sub { color: #94a3b8; }
:where(:root[data-theme="dark"]) .modal-x { color: #6f7d93; }
:where(:root[data-theme="dark"]) .modal-x:hover { color: #e2e8f0; background-color: #1f2a40; }
:where(:root[data-theme="dark"]) .modal-foot { background-color: #141c2c; border-top-color: #1f2a40; }

/* Messages */
:where(:root[data-theme="dark"]) .toast { color: #e2e8f0; background-color: #1a2439; border-color: #2c3a54; border-left-color: #6d97f0; box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.7); }
:where(:root[data-theme="dark"]) .toast > .fa-solid { color: #6d97f0; }
:where(:root[data-theme="dark"]) .toast.is-ok { border-left-color: #34c172; }
:where(:root[data-theme="dark"]) .toast.is-ok > .fa-solid { color: #34c172; }
:where(:root[data-theme="dark"]) .toast.is-error { border-left-color: #f06363; }
:where(:root[data-theme="dark"]) .toast.is-error > .fa-solid { color: #f06363; }
:where(:root[data-theme="dark"]) .toast.is-warn { border-left-color: #b98c45; }
:where(:root[data-theme="dark"]) .toast.is-warn > .fa-solid { color: #b98c45; }
:where(:root[data-theme="dark"]) .toast-time { background-color: #6d97f0; }
:where(:root[data-theme="dark"]) .toast.is-ok .toast-time { background-color: #34c172; }
:where(:root[data-theme="dark"]) .toast.is-error .toast-time { background-color: #f06363; }
:where(:root[data-theme="dark"]) .toast.is-warn .toast-time { background-color: #b98c45; }

/* Dashboard boxes, empty places */
:where(:root[data-theme="dark"]) .stat { background-color: #161f32; border-color: #253149; box-shadow: none; }
:where(:root[data-theme="dark"]) a.stat:hover { border-color: #34466a; box-shadow: 0 8px 20px -12px rgba(0, 0, 0, 0.7); }
:where(:root[data-theme="dark"]) .stat-icon { color: #7ea6f6; background-color: #172a4f; }
:where(:root[data-theme="dark"]) .stat.is-green .stat-icon { color: #4fcf86; background-color: #10291d; }
:where(:root[data-theme="dark"]) .stat.is-amber .stat-icon { color: #b98c45; background-color: #241e13; }
:where(:root[data-theme="dark"]) .stat.is-purple .stat-icon { color: #b19bfa; background-color: #231b3d; }
:where(:root[data-theme="dark"]) .stat-label { color: #94a3b8; }
:where(:root[data-theme="dark"]) .stat-value { color: #f1f5f9; }
:where(:root[data-theme="dark"]) .stat-value.is-empty { color: #34445f; }
:where(:root[data-theme="dark"]) .stat-sub { color: #6f7d93; }
:where(:root[data-theme="dark"]) .empty > .fa-solid { color: #34445f; }
:where(:root[data-theme="dark"]) .empty-title { color: #cbd5e1; }
:where(:root[data-theme="dark"]) .empty-text { color: #94a3b8; }

/* The stock logo is its own blue tile: nothing extra in dark. */

/* Pills, side panel, checklist */
/* Pills in dark: no coloured fill, only the text and a thin tinted edge (the old site's calm look). */
:where(:root[data-theme="dark"]) .pill { color: #a8b4c6; background-color: transparent; border-color: #2c3a54; }
:where(:root[data-theme="dark"]) .pill.is-blue { color: #9dbcf5; background-color: transparent; border-color: #2f4573; }
:where(:root[data-theme="dark"]) .pill.is-green { color: #6ccaa6; background-color: transparent; border-color: #2d4a48; }
:where(:root[data-theme="dark"]) .pill.is-amber { color: #dcb06a; background-color: transparent; border-color: #4a4032; }
:where(:root[data-theme="dark"]) .pill.is-red { color: #f47676; background-color: transparent; border-color: #6e2a2e; }
:where(:root[data-theme="dark"]) .pill.is-grey { color: #a8b4c6; background-color: transparent; border-color: #2c3a54; }
:where(:root[data-theme="dark"]) .pill-more { color: #6f7d93; }
:where(:root[data-theme="dark"]) .drawer { background-color: #0f1626; border-left-color: #283650; box-shadow: -18px 0 40px -20px rgba(0, 0, 0, 0.7); }
:where(:root[data-theme="dark"]) .drawer-head { background-color: #131c2e; border-bottom-color: #222e45; }
:where(:root[data-theme="dark"]) .check-row { color: #cbd5e1; border-bottom-color: #1f2a40; }
:where(:root[data-theme="dark"]) .check-mark { color: #8a97ab; background-color: #212c42; }
:where(:root[data-theme="dark"]) .check-row.is-ok { color: #8a97ab; }
:where(:root[data-theme="dark"]) .check-row.is-ok .check-mark { color: #86dba6; background-color: #163724; }
:where(:root[data-theme="dark"]) .check-row.is-todo { color: #f1f5f9; }
:where(:root[data-theme="dark"]) .check-row.is-todo .check-mark { color: #dbe6fb; background-color: #2a4f9e; }
:where(:root[data-theme="dark"]) .check-row.is-wait .check-mark { color: #c8a06a; background-color: #2a2314; }
:where(:root[data-theme="dark"]) .check-row.is-red .check-mark { color: #ffffff; background-color: #c53030; }
:where(:root[data-theme="dark"]) .check-warn { color: #c8a06a; }

/* Date field and calendar */
:where(:root[data-theme="dark"]) .datef-btn { color: #6f7d93; }
:where(:root[data-theme="dark"]) .datef-btn:hover { color: #b4cefc; background-color: #172a4f; }
:where(:root[data-theme="dark"]) .cal { background-color: #182236; border-color: #2c3a54; box-shadow: 0 16px 36px -12px rgba(0, 0, 0, 0.7); }
:where(:root[data-theme="dark"]) .cal-title { color: #f1f5f9; }
:where(:root[data-theme="dark"]) .cal-nav { color: #94a3b8; }
:where(:root[data-theme="dark"]) .cal-nav:hover { color: #f1f5f9; background-color: #212d45; }
:where(:root[data-theme="dark"]) .cal-wd { color: #6f7d93; }
:where(:root[data-theme="dark"]) .cal-day { color: #e2e8f0; }
:where(:root[data-theme="dark"]) .cal-day:hover { background-color: #212d45; }
:where(:root[data-theme="dark"]) .cal-day.is-other { color: #56647b; }
:where(:root[data-theme="dark"]) .cal-day.is-today { color: #a9c6fb; box-shadow: inset 0 0 0 1px #2c4a85; }
:where(:root[data-theme="dark"]) .cal-day.is-picked { color: #ffffff; background-color: #2f5fcc; }
:where(:root[data-theme="dark"]) .tcal-h { color: #6f7d93; }
:where(:root[data-theme="dark"]) .tcal-tile { color: #e2e8f0; }
:where(:root[data-theme="dark"]) .tcal-tile:hover { background-color: #212d45; }
:where(:root[data-theme="dark"]) .tcal-tile.is-picked { color: #ffffff; background-color: #2f5fcc; }
:where(:root[data-theme="dark"]) .cal-day:disabled { color: #3a475c; background-color: transparent; }
:where(:root[data-theme="dark"]) .cal-foot { border-top-color: #253149; }

/* Hover card */
:where(:root[data-theme="dark"]) .hc { color: #cbd5e1; background-color: #18233a; border-color: #2c3a54; box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.6); }
:where(:root[data-theme="dark"]) .hc-head { color: #f1f5f9; }
:where(:root[data-theme="dark"]) .hc-head .fa-solid { color: #94a3b8; }
:where(:root[data-theme="dark"]) .hc-list dt { color: #94a3b8; }
:where(:root[data-theme="dark"]) .hc-list dd { color: #f1f5f9; }
:where(:root[data-theme="dark"]) .hc-list dd.is-green { color: #4ade80; }
:where(:root[data-theme="dark"]) .hc-list dd.is-amber { color: #c8a06a; }
:where(:root[data-theme="dark"]) .hc-list dd.is-red { color: #f87171; }
:where(:root[data-theme="dark"]) .hc-sub { color: #f1f5f9; border-top-color: #243049; }
:where(:root[data-theme="dark"]) .hc-note { color: #94a3b8; }
:where(:root[data-theme="dark"]) .hc-checks .is-ok { color: #6f7d93; }
:where(:root[data-theme="dark"]) .hc-checks .is-ok .fa-solid { color: #4ade80; }
:where(:root[data-theme="dark"]) .hc-checks .is-todo .fa-solid { color: #60a5fa; }
:where(:root[data-theme="dark"]) .hc-checks .is-wait .fa-solid { color: #c8a06a; }
:where(:root[data-theme="dark"]) .hc-checks .is-later .fa-solid { color: #6f7d93; }

/* Who is online */
:where(:root[data-theme="dark"]) .online-btn { color: #cbd5e1; background-color: transparent; border-color: transparent; }
:where(:root[data-theme="dark"]) .online-btn:hover,
:where(:root[data-theme="dark"]) .online-btn[aria-expanded="true"] { background-color: #1a2439; border-color: #2c3a54; }
:where(:root[data-theme="dark"]) .online-dot { background-color: #4cc98a; box-shadow: 0 0 0 3px rgba(76, 201, 138, 0.16); }
:where(:root[data-theme="dark"]) .online-dot.is-away { background-color: #4a5870; box-shadow: none; }
:where(:root[data-theme="dark"]) .online-name { color: #f1f5f9; }
:where(:root[data-theme="dark"]) .online-name small { color: #6f7d93; }
:where(:root[data-theme="dark"]) .online-sub { color: #94a3b8; }
:where(:root[data-theme="dark"]) .online-row.is-away .avatar { color: #94a3b8; background-color: #1f2a3d; }
:where(:root[data-theme="dark"]) .online-row.is-away .online-name { color: #cbd5e1; }
:where(:root[data-theme="dark"]) .online-empty { color: #6f7d93; }

/* The bell */
:where(:root[data-theme="dark"]) .bell-count { color: #ffffff; background-color: #dc2626; box-shadow: 0 0 0 2px #0f1626; }
:where(:root[data-theme="dark"]) .bell-item { color: #cbd5e1; border-top-color: #1f2a40; }
:where(:root[data-theme="dark"]) .bell-item:hover { background-color: #1a2439; }
:where(:root[data-theme="dark"]) .bell-item.is-new { color: #f1f5f9; box-shadow: inset 3px 0 0 #60a5fa; }
:where(:root[data-theme="dark"]) .bell-item small { color: #6f7d93; }
:where(:root[data-theme="dark"]) .bell-empty { color: #6f7d93; }
:where(:root[data-theme="dark"]) .bell-x { color: #6f7d93; }
:where(:root[data-theme="dark"]) .bell-x:hover { color: #fca5a5; background-color: #3a1a1f; }
:where(:root[data-theme="dark"]) .bell-all { color: #94a3b8; border-top-color: #1f2a40; }
:where(:root[data-theme="dark"]) .bell-all:hover { color: #fca5a5; background-color: #3a1a1f; }


/* Our dropdown */
:where(:root[data-theme="dark"]) .cselect.is-open { border-color: #4f7fe0; box-shadow: 0 0 0 3px rgba(79, 127, 224, 0.2); }
:where(:root[data-theme="dark"]) .cselect-pop { background-color: #182236; border-color: #2c3a54; box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.6); }
:where(:root[data-theme="dark"]) .cselect-opt { color: #cbd5e1; }
:where(:root[data-theme="dark"]) .cselect-lines small { color: #8391a7; }
:where(:root[data-theme="dark"]) .cselect-opt .fa-check { color: #7ea6f6; }
:where(:root[data-theme="dark"]) .cselect-opt.is-active { color: #f1f5f9; background-color: #212d45; }
:where(:root[data-theme="dark"]) .cselect-opt.is-selected { color: #b4cefc; }
:where(:root[data-theme="dark"]) .cselect-opt:disabled { color: #56627a; }
:where(:root[data-theme="dark"]) .cselect-box { background-color: #121a2b; border-color: #3a4a66; }
:where(:root[data-theme="dark"]) .cselect-opt.is-selected .cselect-box { background-color: #3b72e6; border-color: #3b72e6; }
:where(:root[data-theme="dark"]) .cselect-opt.is-selected .cselect-box .fa-check { color: #fff; }
:where(:root[data-theme="dark"]) .cselect-pop.is-multi .cselect-opt.is-all { box-shadow: 0 4px 0 -3px #1f2a40; }
:where(:root[data-theme="dark"]) .cselect.is-picked { color: #b4cefc; border-color: #34508a; background-color: #15213a; }
:where(:root[data-theme="dark"]) .cselect-group { color: #6f7d93; }
:where(:root[data-theme="dark"]) .cselect-empty { color: #94a3b8; }

/* The e-mail window */
:where(:root[data-theme="dark"]) .mc { background-color: #121a2b; border-color: #26324a; }
:where(:root[data-theme="dark"]) .mc-head { border-bottom-color: #26324a; }
:where(:root[data-theme="dark"]) .mc-line { border-bottom-color: #1f2a40; }
:where(:root[data-theme="dark"]) .mc-line.is-invalid,
:where(:root[data-theme="dark"]) .mc-area.is-invalid { background-color: #24161b; }
:where(:root[data-theme="dark"]) .mc-lbl { color: #8391a7; }
:where(:root[data-theme="dark"]) .mc-from { color: #cbd5e1; }
:where(:root[data-theme="dark"]) .mc-from small { color: #6f7d93; }
:where(:root[data-theme="dark"]) .mc-from small.is-warn { color: #dcb06a; }
:where(:root[data-theme="dark"]) .mc-input { color: #e2e8f0; }
:where(:root[data-theme="dark"]) .mc-input::placeholder { color: #5b6880; }
:where(:root[data-theme="dark"]) .mc-save { color: #a8b4c6; background-color: #161f32; border-bottom-color: #1f2a40; }
:where(:root[data-theme="dark"]) .mc-chip { color: #9dbcf5; background-color: transparent; border-color: #2f4573; }
:where(:root[data-theme="dark"]) .mc-chip button { color: #8391a7; }
:where(:root[data-theme="dark"]) .mc-chip button:hover { color: #f0a3a3; background-color: #2a1a22; }
:where(:root[data-theme="dark"]) .mc-chip.is-fixed { color: #cbd5e1; background-color: #161f32; border-color: #2c3a54; }
:where(:root[data-theme="dark"]) .mc-chip.is-fixed i { color: #6f7d93; }
:where(:root[data-theme="dark"]) .mc-staff { border-bottom-color: #1f2a40; }
:where(:root[data-theme="dark"]) .mc-staff-btn { color: #a8b4c6; background-color: transparent; border-color: #3a4a66; }
:where(:root[data-theme="dark"]) .mc-staff-btn:hover { color: #9dbcf5; border-color: #3b5b9a; }
:where(:root[data-theme="dark"]) .mc-staff-btn.is-on { color: #6ccaa6; background-color: transparent; border-color: #2d4a48; }
:where(:root[data-theme="dark"]) .mc-bar { background-color: #161f32; border-bottom-color: #1f2a40; }
:where(:root[data-theme="dark"]) .mc-tool { color: #a8b4c6; }
:where(:root[data-theme="dark"]) .mc-tool:hover { color: #f1f5f9; background-color: #212d45; }
:where(:root[data-theme="dark"]) .mc-sep { background-color: #2c3a54; }
:where(:root[data-theme="dark"]) .mc-pop { background-color: #182236; border-color: #2c3a54; box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.6); }
:where(:root[data-theme="dark"]) .mc-size { color: #cbd5e1; }
:where(:root[data-theme="dark"]) .mc-size:hover { background-color: #212d45; }
:where(:root[data-theme="dark"]) .mc-dot { color: #8391a7; background-color: #121a2b; border-color: #2c3a54; }
:where(:root[data-theme="dark"]) .mc-dot:hover { box-shadow: 0 0 0 2px #2f4573; }
/* The colour choices stay the colours the e-mail will carry. */
:where(:root[data-theme="dark"]) .is-c0 { background-color: #1f2937; }
:where(:root[data-theme="dark"]) .is-c1 { background-color: #64748b; }
:where(:root[data-theme="dark"]) .is-c2 { background-color: #2563eb; }
:where(:root[data-theme="dark"]) .is-c3 { background-color: #15803d; }
:where(:root[data-theme="dark"]) .is-c4 { background-color: #b45309; }
:where(:root[data-theme="dark"]) .is-c5 { background-color: #c0392b; }
:where(:root[data-theme="dark"]) .is-c6 { background-color: #7c3aed; }
:where(:root[data-theme="dark"]) .is-m0 { background-color: #fef08a; }
:where(:root[data-theme="dark"]) .is-m1 { background-color: #bbf7d0; }
:where(:root[data-theme="dark"]) .is-m2 { background-color: #bfdbfe; }
:where(:root[data-theme="dark"]) .is-m3 { background-color: #fecaca; }
:where(:root[data-theme="dark"]) .mc-link { background-color: #142036; border-bottom-color: #26324a; }
:where(:root[data-theme="dark"]) .mc-link .fa-link { color: #7ea6f6; }
:where(:root[data-theme="dark"]) .mc-area { color: #e2e8f0; background-color: transparent; }
:where(:root[data-theme="dark"]) .mc-area a { color: #9dbcf5; }
:where(:root[data-theme="dark"]) .mc-caret { color: #6f7d93; }
:where(:root[data-theme="dark"]) .mc-files { border-top-color: #1f2a40; }
:where(:root[data-theme="dark"]) .mc-file { color: #cbd5e1; background-color: #161f32; border-color: #2c3a54; }
:where(:root[data-theme="dark"]) .mc-file .fa-file-pdf { color: #e8735f; }
:where(:root[data-theme="dark"]) .mc-file a { color: #6f7d93; }
:where(:root[data-theme="dark"]) .mc-file a:hover { color: #9dbcf5; }
:where(:root[data-theme="dark"]) .lt-desc-add { color: #7ea6f6; }
:where(:root[data-theme="dark"]) .lt-desc-add:hover { color: #9dbcf5; }

:where(:root[data-theme="dark"]) .pager { color: #8391a7; }
:where(:root[data-theme="dark"]) .pager-sizes { background-color: #131b2c; border-color: #26324a; }
:where(:root[data-theme="dark"]) .pager-size { color: #a3b1c6; }
:where(:root[data-theme="dark"]) .pager-size:hover { color: #f1f5f9; }
:where(:root[data-theme="dark"]) .pager-size.is-active { color: #a9c6fb; background-color: #1e2b45; box-shadow: none; }
:where(:root[data-theme="dark"]) .pager-btn { color: #a3b1c6; background-color: #161f32; border-color: #2c3a54; }
:where(:root[data-theme="dark"]) .pager-btn:hover:not(:disabled) { color: #a9c6fb; border-color: #3b5a92; }
:where(:root[data-theme="dark"]) .th-menu { background-color: #161f32; border-color: #2c3a54; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4); }
:where(:root[data-theme="dark"]) .th-menu-sep { background-color: #1f2a40; }
:where(:root[data-theme="dark"]) .th-menu-title { color: #6f7d93; }
:where(:root[data-theme="dark"]) .th-value { color: #cbd5e1; }
:where(:root[data-theme="dark"]) .th-value:hover { background-color: #1a2439; }
:where(:root[data-theme="dark"]) .th-value small { color: #6f7d93; }
:where(:root[data-theme="dark"]) .th-filtered { color: #7ea6f6; }
:where(:root[data-theme="dark"]) [data-dbl-edit]:hover { background-color: #1a2439; }

:where(:root[data-theme="dark"]) .no-btn { color: #5b6880; }
:where(:root[data-theme="dark"]) .no-btn:hover { color: #a9c6fb; background-color: #1a2439; border-color: #2c3a54; }
:where(:root[data-theme="dark"]) .mk-tone { border-color: #161f32; box-shadow: 0 0 0 1px #2c3a54; }
:where(:root[data-theme="dark"]) .mk-tone.is-on { box-shadow: 0 0 0 2px #f1f5f9; }
:where(:root[data-theme="dark"]) .mk-by { color: #6f7d93; }
:where(:root[data-theme="dark"]) .table tbody tr.is-mk-yellow > td { background-color: #2e2914 !important; }
:where(:root[data-theme="dark"]) .table tbody tr.is-mk-green > td { background-color: #13291e !important; }
:where(:root[data-theme="dark"]) .table tbody tr.is-mk-blue > td { background-color: #16243f !important; }
:where(:root[data-theme="dark"]) .table tbody tr.is-mk-pink > td { background-color: #2f1824 !important; }
:where(:root[data-theme="dark"]) .table tbody tr.is-mk-purple > td { background-color: #231c3d !important; }
:where(:root[data-theme="dark"]) .table tbody tr.is-mk .no-btn { color: #e2e8f0; }
:where(:root[data-theme="dark"]) .table .is-cm-yellow { background-color: #2e2914 !important; }
:where(:root[data-theme="dark"]) .table .is-cm-green { background-color: #13291e !important; }
:where(:root[data-theme="dark"]) .table .is-cm-blue { background-color: #16243f !important; }
:where(:root[data-theme="dark"]) .table .is-cm-pink { background-color: #2f1824 !important; }
:where(:root[data-theme="dark"]) .table .is-cm-purple { background-color: #231c3d !important; }
:where(:root[data-theme="dark"]) .table thead .is-cm-yellow { background-color: #3a3215 !important; }
:where(:root[data-theme="dark"]) .table thead .is-cm-green { background-color: #1a3a2a !important; }
:where(:root[data-theme="dark"]) .table thead .is-cm-blue { background-color: #1c2f52 !important; }
:where(:root[data-theme="dark"]) .table thead .is-cm-pink { background-color: #3e1f30 !important; }
:where(:root[data-theme="dark"]) .table thead .is-cm-purple { background-color: #2e2550 !important; }
:where(:root[data-theme="dark"]) .mk-log-row { color: #cbd5e1; border-bottom-color: #1f2a40; }
:where(:root[data-theme="dark"]) .mk-log-row small { color: #6f7d93; }
:where(:root[data-theme="dark"]) .mk-log-row.is-undone > span { color: #5b6880; }
:where(:root[data-theme="dark"]) .sticky-bar { background-color: #0f1626; }
:where(:root[data-theme="dark"]) .card-head { background-color: #161f32; border-color: #253149; border-bottom-color: #1f2a40; }
:where(:root[data-theme="dark"]) .mk-tone.is-yellow, :where(:root[data-theme="dark"]) .no-dot.is-yellow { background-color: #d9b94a; }
:where(:root[data-theme="dark"]) .mk-tone.is-green, :where(:root[data-theme="dark"]) .no-dot.is-green { background-color: #4fb37c; }
:where(:root[data-theme="dark"]) .mk-tone.is-blue, :where(:root[data-theme="dark"]) .no-dot.is-blue { background-color: #6f98ef; }
:where(:root[data-theme="dark"]) .mk-tone.is-pink, :where(:root[data-theme="dark"]) .no-dot.is-pink { background-color: #e07fa8; }
:where(:root[data-theme="dark"]) .mk-tone.is-purple, :where(:root[data-theme="dark"]) .no-dot.is-purple { background-color: #9c84e6; }
:where(:root[data-theme="dark"]) .table tbody tr.is-mk > td :is(strong, b, .cell-main, .pr-price, .pr-code, .sl-n, .sl-cust-name, .sl-name),
:where(:root[data-theme="dark"]) .table tbody td[class*="is-cm-"] :is(strong, b, .cell-main, .pr-price, .pr-code, .sl-n, .sl-cust-name),
:where(:root[data-theme="dark"]) .table thead th[class*="is-cm-"] :is(.sl-name) { color: #c7d8ff; }

:where(:root[data-theme="dark"]) .modal.is-scrolled .modal-head { box-shadow: 0 1px 0 #26324a, 0 6px 10px -8px rgba(0, 0, 0, 0.6); }
:where(:root[data-theme="dark"]) .modal.has-more .modal-foot { box-shadow: 0 -6px 10px -8px rgba(0, 0, 0, 0.6); }

/* The timeline */
:where(:root[data-theme="dark"]) .timeline::before { background-color: #24314a; }
:where(:root[data-theme="dark"]) .tl-dot { background-color: #111827; border-color: #a78bfa; }
:where(:root[data-theme="dark"]) .tl-item.is-blue .tl-dot { border-color: #7f9ee8; }
:where(:root[data-theme="dark"]) .tl-item.is-green .tl-dot { border-color: #5fc290; }
:where(:root[data-theme="dark"]) .tl-item.is-amber .tl-dot { border-color: #e8b456; }
:where(:root[data-theme="dark"]) .tl-item.is-red .tl-dot { border-color: #e89090; }
:where(:root[data-theme="dark"]) .tl-item.is-teal .tl-dot { border-color: #5cc1ba; }
:where(:root[data-theme="dark"]) .tl-item.is-grey .tl-dot { border-color: #6f7d93; }
:where(:root[data-theme="dark"]) .tl-icon { color: #8fb0ff; }
:where(:root[data-theme="dark"]) .tl-item.is-purple .tl-icon { color: #b69cf5; }
:where(:root[data-theme="dark"]) .tl-item.is-green .tl-icon { color: #6fcf97; }
:where(:root[data-theme="dark"]) .tl-item.is-amber .tl-icon { color: #f0c26b; }
:where(:root[data-theme="dark"]) .tl-item.is-red .tl-icon { color: #f0a3a3; }
:where(:root[data-theme="dark"]) .tl-item.is-teal .tl-icon { color: #6fd1c9; }
:where(:root[data-theme="dark"]) .tl-item.is-grey .tl-icon { color: #8492a6; }
:where(:root[data-theme="dark"]) .tl-title { color: #e2e8f0; }
:where(:root[data-theme="dark"]) .tl-count { color: #94a3b8; }
:where(:root[data-theme="dark"]) .tl-sub { color: #94a3b8; }
:where(:root[data-theme="dark"]) .tl-undone { color: #94a3b8; background-color: #1e293b; }
:where(:root[data-theme="dark"]) .tl-item.is-undone .tl-title { color: #6f7d93; }
:where(:root[data-theme="dark"]) .tl-meta { color: #94a3b8; }
:where(:root[data-theme="dark"]) .tl-role { color: #c4b0fa; background-color: #2a2145; }
:where(:root[data-theme="dark"]) .tl-who .fa-regular { color: #6f7d93; }
:where(:root[data-theme="dark"]) .tl-details { color: #cbd5e1; }
:where(:root[data-theme="dark"]) .tl-details li::marker { color: #56637a; }
:where(:root[data-theme="dark"]) .tl-label { color: #94a3b8; }
:where(:root[data-theme="dark"]) .tl-old { color: #6f7d93; }
:where(:root[data-theme="dark"]) .tl-arrow { color: #6f7d93; }
:where(:root[data-theme="dark"]) .tl-new { color: #f1f5f9; }
:where(:root[data-theme="dark"]) .menu-switch { color: #f0b46b; }
:where(:root[data-theme="dark"]) .hdr-switch { background: #2b2114; color: #f0b46b; border-color: #4a3618; }
:where(:root[data-theme="dark"]) .vip-ico.is-always { color: #f2c14e; }
:where(:root[data-theme="dark"]) .vip-ico.is-order { color: #b79cf5; }
:where(:root[data-theme="dark"]) .ov-fact { background-color: #161e2c; border-color: #26324a; }
:where(:root[data-theme="dark"]) .ov-fact > span, :where(:root[data-theme="dark"]) .ov-fact > strong small { color: #8d99ad; }
:where(:root[data-theme="dark"]) .badge.is-orange, :where(:root[data-theme="dark"]) .pill.is-orange { color: #fb9a62; background-color: transparent; border-color: #6b3417; }

/* One search box for everything */
:where(:root[data-theme="dark"]) .omni-open { color: #6f7d93; background-color: #131c2e; border-color: #233049; }
:where(:root[data-theme="dark"]) .omni-open:hover { border-color: #334563; }
:where(:root[data-theme="dark"]) .omni-open kbd { color: #94a3b8; background-color: #182236; border-color: #2c3a54; }
:where(:root[data-theme="dark"]) .omni-box { background-color: #182236; border-color: #2c3a54; box-shadow: 0 18px 40px -14px rgba(0, 0, 0, 0.7); }
:where(:root[data-theme="dark"]) .omni-field { border-bottom-color: #233049; }
:where(:root[data-theme="dark"]) .omni-field i { color: #8fb0f5; }
:where(:root[data-theme="dark"]) .omni-input { color: #f1f5f9; }
:where(:root[data-theme="dark"]) .omni-group + .omni-group { border-top-color: #233049; }
:where(:root[data-theme="dark"]) .omni-h { color: #6f7d93; }
:where(:root[data-theme="dark"]) .omni-item { color: #e2e8f0; }
:where(:root[data-theme="dark"]) .omni-item:hover, :where(:root[data-theme="dark"]) .omni-item.is-on { color: #f1f5f9; background-color: #212d45; }
:where(:root[data-theme="dark"]) .omni-sub { color: #94a3b8; }
:where(:root[data-theme="dark"]) .omni-item mark { background-color: #4a3d12; }
:where(:root[data-theme="dark"]) .omni-empty { color: #94a3b8; }
:where(:root[data-theme="dark"]) .omni-keys { color: #6f7d93; border-top-color: #233049; }

/* Photo viewer: dark in both themes (the same colours) */
:where(:root[data-theme="dark"]) .lbx-top { color: #e2e8f0; }
:where(:root[data-theme="dark"]) .lbx-n { color: #94a3b8; }
:where(:root[data-theme="dark"]) .lbx-btn { color: #e2e8f0; }
:where(:root[data-theme="dark"]) .lbx-btn:hover { color: #ffffff; background-color: rgba(255, 255, 255, 0.1); }
:where(:root[data-theme="dark"]) .lbx-nav { color: #e2e8f0; background-color: rgba(255, 255, 255, 0.08); }
:where(:root[data-theme="dark"]) .lbx-th.is-on { border-color: #6b97f0; }
:where(:root[data-theme="dark"]) .guide-h { border-top-color: #233049; }
:where(:root[data-theme="dark"]) .guide-steps li::marker { color: #8fb0f5; }
:where(:root[data-theme="dark"]) .guide-see { border-top-color: #2c3a54; }
:where(:root[data-theme="dark"]) .omni-kind { color: #a8c3f7; background-color: #1a2742; border-color: #2c4677; }
:where(:root[data-theme="dark"]) .omni-kind.is-orders { color: #6ee7c4; background-color: #12291f; border-color: #1f4d3a; }
:where(:root[data-theme="dark"]) .omni-kind.is-products, :where(:root[data-theme="dark"]) .omni-kind.is-stock { color: #c4b5fd; background-color: #241c3d; border-color: #3b2d66; }
:where(:root[data-theme="dark"]) .omni-kind.is-serials { color: #fbbf24; background-color: #2e2412; border-color: #4a3a12; }
:where(:root[data-theme="dark"]) .omni-kind.is-offers, :where(:root[data-theme="dark"]) .omni-kind.is-receipts, :where(:root[data-theme="dark"]) .omni-kind.is-makers, :where(:root[data-theme="dark"]) .omni-kind.is-incoming { color: #cbd5e1; background-color: #1a2436; border-color: #2a3647; }
:where(:root[data-theme="dark"]) .omni-kind.is-fedex { color: #c9b8fd; background-color: #241a3d; border-color: #3b2d63; }
:where(:root[data-theme="dark"]) .omni-tag { color: #94a3b8; }
:where(:root[data-theme="dark"]) .omni-pre-h { color: #6f7d93; }
:where(:root[data-theme="dark"]) .omni-chip { color: #cbd5e1; background-color: #131c2e; border-color: #2c3a54; }
:where(:root[data-theme="dark"]) .omni-chip b { color: #8fb0f5; }
:where(:root[data-theme="dark"]) .omni-chip:hover { border-color: #3a5a9a; background-color: #1a2742; }
:where(:root[data-theme="dark"]) .omni-item.is-on .omni-title { color: #a8c3f7; }

:where(:root[data-theme="dark"]) .pill.is-purple { color: #c4b5fd; background-color: #221a3d; border-color: #3b2f66; }

/* Admin menu: the Vasco group */
:where(:root[data-theme="dark"]) .menu-item.is-group-vasco.is-group-end { box-shadow: 0 6px 0 -5px #253149; }
:where(:root[data-theme="dark"]) .pr-sort { color: #34445f; }
:where(:root[data-theme="dark"]) .pr-th.is-sorted { color: #9dbcf5; }
:where(:root[data-theme="dark"]) .pr-th.is-sorted .pr-sort { color: #7ea6f6; }
:where(:root[data-theme="dark"]) .dl-hc-list b { color: #b9a4f5; }
:where(:root[data-theme="dark"]) .dl-hc-list small { color: #94a3b8; }
:where(:root[data-theme="dark"]) .dl-hc-foot { border-top-color: #26324a; }
:where(:root[data-theme="dark"]) .lbx-pdf { background-color: #ffffff; }
:where(:root[data-theme="dark"]) .lbx-th > i { color: #94a3b8; }
:where(:root[data-theme="dark"]) .bell-row, :where(:root[data-theme="dark"]) .bell-foot { border-top-color: #1f2a40; }
:where(:root[data-theme="dark"]) .bell-x[data-read] { color: #93b4f5; }
:where(:root[data-theme="dark"]) .bell-x[data-read]:hover, :where(:root[data-theme="dark"]) .bell-foot .bell-all[data-read]:hover { color: #bcd2ff; background-color: #1a2a48; }
:where(:root[data-theme="dark"]) .omni-pre { background-color: #131c2e; border-bottom-color: #233049; }
:where(:root[data-theme="dark"]) .td-done-chip { color: #e2e8f0; background-color: #172131; border-color: #334155; }
:where(:root[data-theme="dark"]) .td-done-chip i { color: #6f7d93; }
:where(:root[data-theme="dark"]) .td-done-chip:hover { border-color: #4b6cb7; background-color: #1a2a48; }
:where(:root[data-theme="dark"]) .td-done-chip.is-change { color: #bcd2ff; background-color: #172a4f; border-color: #2c4a86; }
:where(:root[data-theme="dark"]) .td-done-chip.is-on, :where(:root[data-theme="dark"]) .td-done-chip.is-on i { color: #86dba6; background-color: #12321f; border-color: #2f7a4b; }
:where(:root[data-theme="dark"]) .td-check.is-done-mark { color: #0b1220; background-color: #3ecf7c; }
:where(:root[data-theme="dark"]) .td-what-full { color: #bbf7d0; background-color: #12321f; border-left-color: #3ecf7c; }
:where(:root[data-theme="dark"]) .td-what-full i, :where(:root[data-theme="dark"]) .td-chip.td-what, :where(:root[data-theme="dark"]) .td-group.is-forme .td-group-title { color: #86dba6; }
:where(:root[data-theme="dark"]) .on-file > .fa-file-excel { color: #3ecf7c; }
:where(:root[data-theme="dark"]) .cu-novasco, :where(:root[data-theme="dark"]) .cu-novasco a { color: #fbbf24; }
:where(:root[data-theme="dark"]) .pr-fit { color: #e2e8f0; background-color: #1e293b; border-color: #334155; }
:where(:root[data-theme="dark"]) .pr-fit:hover, :where(:root[data-theme="dark"]) .pr-fit-pick:hover { background-color: #273449; }
:where(:root[data-theme="dark"]) .pr-fit b { color: #7aa7ff; }
:where(:root[data-theme="dark"]) .pr-fit-pick small, :where(:root[data-theme="dark"]) .pr-fit-other { color: #94a3b8; }
:where(:root[data-theme="dark"]) .vz-sync-url, :where(:root[data-theme="dark"]) .vz-sync-key { background-color: #1e293b; }
:where(:root[data-theme="dark"]) .menu-sub { color: #94a3b8; }
:where(:root[data-theme="dark"]) .hdr-closed { background: #2e1616; color: #f5a3a3; border-color: #4f2222; }
:where(:root[data-theme="dark"]) .pick-list { background-color: #131b2c; border-color: #253149; }
:where(:root[data-theme="dark"]) .pick-row { border-bottom-color: #1f2a40; }
:where(:root[data-theme="dark"]) .pick-row:hover, :where(:root[data-theme="dark"]) .pick-row:focus-visible { background-color: #172a4f; }
:where(:root[data-theme="dark"]) .pick-main strong, :where(:root[data-theme="dark"]) .pick-side .pick-amount { color: #f1f5f9; }
:where(:root[data-theme="dark"]) .pick-sub { color: #94a3b8; }
:where(:root[data-theme="dark"]) .pick-go { color: #4b5870; }
:where(:root[data-theme="dark"]) .pick-row:hover .pick-go { color: #93b4ff; }
:where(:root[data-theme="dark"]) .pick-empty { color: #64748b; }

/* Read-only tables in windows on a phone (r640) */
@media (max-width: 760px) {
    :where(:root[data-theme="dark"]) .modal .table.is-cards tbody tr { border-bottom-color: #1f2a40; }
    :where(:root[data-theme="dark"]) .modal .table.is-cards td.card-num { background-color: #161f32; }
    :where(:root[data-theme="dark"]) .modal .table.is-cards td.card-num::before,
    :where(:root[data-theme="dark"]) .modal .table.is-cards td.card-text::before { color: #8391a7; }
    :where(:root[data-theme="dark"]) .modal .table.is-cards tfoot tr { border-top-color: #2c3a54; }
}
:where(:root[data-theme="dark"]) .sh-float { background-color: #172033; border-bottom-color: #2c3a54; box-shadow: 0 6px 12px -8px rgba(0, 0, 0, 0.6); }
:where(:root[data-theme="dark"]) .pwa-steps { background-color: #161f32; border-color: #2c3a54; }
:where(:root[data-theme="dark"]) .pwa-icon { color: #cbd5e1; border-color: #2c3a54; }
:where(:root[data-theme="dark"]) .pwa-icon:hover { color: #9dbcf5; background-color: #161f32; }
/* Dark Reader (r657): it darkens the light colours itself, and pure red comes out much brighter than the other tones.
   With it on, the red pills, badges and the red box get softer light colours, so they come out like "Not paid". */
.is-darkreader .pill.is-red, .is-darkreader .badge.is-red { color: #9f1d1d; background-color: #f9ebeb; border-color: #f0c2c2; }
.is-darkreader .op-box.is-red { background-color: #ffffff; border-color: #f0c2c2; }
.is-darkreader .op-box.is-red .op-box-value { color: #9f1d1d; }
