@media screen {
html[data-theme="light"] {
color-scheme: light;
--bg: #f3f5f8;
--panel: #ffffff;
--panel-2: #f8fafb;
--border: #d8e1e8;
--text: #23313e;
--muted: #5b6978;
--income: #146b4f;
--cyan: #006b88;
--expense: #9e367d;
--warn: #825b12;
--burgundy: #91465a;
--green: var(--income);
--ok: var(--income);
--accent: var(--cyan);
--dim: var(--muted);
--theme-danger: #ae3446;
--theme-soft: #eaf4f0;
--theme-hover: #edf3f7;
--theme-track: #e1e8ee;
--theme-shadow: 0 8px 28px rgb(26 46 64 / 12%);
scrollbar-color: #a5b5c3 var(--panel-2);
}
html[data-theme="light"] body {
background-color: var(--bg);
background-image: linear-gradient(rgb(0 107 136 / 3%) 1px, transparent 1px),
linear-gradient(90deg, rgb(0 107 136 / 3%) 1px, transparent 1px);
background-size: 32px 32px;
color: var(--text);
}
html[data-theme="light"] ::-webkit-scrollbar-thumb { background: #a5b5c3; }
html[data-theme="light"] ::-webkit-scrollbar-thumb:hover { background: #859aaa; }
html[data-theme="light"] :is(input, select, textarea) { color-scheme: light; }
html[data-theme="light"] input::placeholder,
html[data-theme="light"] textarea::placeholder { color: var(--muted); opacity: 1; }
html[data-theme="light"] :is(input, select, textarea):focus {
box-shadow: 0 0 0 2px rgb(0 107 136 / 12%);
}
html[data-theme="light"] :is(a, button, .logo, .logo span, .site-footer-brand,
.site-footer-brand>span, .stat-value, .st-card-sum, .pay-sum, .pvz-title,
.sel-label, .sum-hint, .keybox-code, .support-mail a, .overdue, .mp-pick-hint,
.adm-mark, .adm-badge, .dz-icon, .sh-tot-final b, .nf-code) { text-shadow: none; }
html[data-theme="light"] .topbar {
background: rgb(255 255 255 / 97%);
box-shadow: 0 1px 8px rgb(26 46 64 / 4%);
}
html[data-theme="light"] :is(.mainnav a.active, .uname-link.active, .lk-tabs a.active) {
background: var(--theme-hover); box-shadow: none;
}
html[data-theme="light"] :is(.btn-primary, .emp-group-action.btn-primary,
.rp-pay-btn.btn, .rp-fab) {
color: #fff; background: var(--income); border-color: var(--income); box-shadow: none;
}
html[data-theme="light"] :is(.btn-primary, .emp-group-action.btn-primary,
.rp-pay-btn.btn, .rp-fab):hover { background: #105c43; color: #fff; box-shadow: none; }
html[data-theme="light"] .btn-warn { background: #f9edcb; color: #694806; border-color: #c2a365; box-shadow: none; }
html[data-theme="light"] .btn-warn:hover { background: #f1dfac; box-shadow: none; }
html[data-theme="light"] :is(.btn-danger, .login-blocked, .adm-mark, .adm-badge) { color: var(--theme-danger); border-color: #c98993; box-shadow: none; }
html[data-theme="light"] .btn-link-del:hover { color: var(--theme-danger); }
html[data-theme="light"] :is(.btn-green-outline, .btn-create, .sel-arrow,
.emp-rate-plus, .btn-row-replace) { background: var(--theme-soft); box-shadow: none; border-color: #a2c7b7; }
html[data-theme="light"] :is(.btn, .proj-switch, .uname-link, .sel-arrow,
.btn-create, .btn-row-replace, .emp-rate-plus, .pvz-card):hover { box-shadow: none; }
html[data-theme="light"] :is(.act-badge, .rp-badge-debt) {
background: var(--theme-danger); color: #fff; border-color: var(--theme-danger); box-shadow: none;
}
html[data-theme="light"] .lk-badge { color: #fff; }
html[data-theme="light"] :is(.toast, .msel-pop, .pp-bar, .fv-tip) { box-shadow: var(--theme-shadow); }
html[data-theme="light"] :is(.flash-ok, .toast-ok) { background: var(--theme-soft); border-color: #a2c7b7; color: var(--income); }
html[data-theme="light"] :is(.flash-err, .toast-err) { background: #fff1f4; border-color: #d6a3ad; color: var(--theme-danger); }
html[data-theme="light"] :is(.flash-warn, .toast-warn, .warn-box) { background: #fff8e7; border-color: #d7bb7c; color: var(--warn); }
html[data-theme="light"] :is(.panel, .auth-card, .pay-card, .tk-card) { box-shadow: 0 3px 14px rgb(26 46 64 / 3%); }
html[data-theme="light"] .pay-card { background: var(--panel); }
html[data-theme="light"] :is(.pay-purpose, .pay-recon, .sync-line, .rate-dlg,
.sh-assign-chip, .sh-assign-inactive, .sh-ghost) { background: var(--panel-2); }
html[data-theme="light"] :is(.rate-dlg, .sh-ghost) { color: var(--text); box-shadow: var(--theme-shadow); }
html[data-theme="light"] :is(dialog, .rate-dlg)::backdrop { background: rgb(22 38 50 / 38%); }
html[data-theme="light"] :is(.badge-warn, .sh-sub, .sh-contacts-lost,
.day-passport-restore, .sh-note, .sh-who-note, .sh-x-note, .st-part,
.st-row-total .st-card-days, .op-manual-badge) { color: var(--warn); }
html[data-theme="light"] :is(.pay-state.st-wait, .pay-badge.st-wait) {
background: #f9edcb; color: #694806; border-color: #d7bb7c; box-shadow: none;
}
html[data-theme="light"] .pay-card.st-wait .pay-sum,
html[data-theme="light"] .recon-delta .recon-val { text-shadow: none; }
html[data-theme="light"] :is(.rp-chip-ok, .ct-save) { color: var(--income); background: var(--theme-soft); box-shadow: none; }
html[data-theme="light"] .rp-chip-ic { color: #fff; }
html[data-theme="light"] .px-box { background: var(--panel); box-shadow: inset 0 0 0 2px var(--panel); }
html[data-theme="light"] .px-check input:checked + .px-box { box-shadow: inset 0 0 0 2px var(--panel); }
html[data-theme="light"] .px-check input:checked + .px-box::before,
html[data-theme="light"] .px-check input:checked + .px-box::after { box-shadow: none; }
html[data-theme="light"] :where(.sh-day, .emp-card, .st-row, .st-bar, .st-chip,
.st-tag, .sh-mp .mp-chip, .sh-pt, .emp-proj, .emp-card .emp-proj) { border-color: var(--border); }
html[data-theme="light"] :is(.sh-mp .mp-chip, .emp-card .emp-proj) { border-color: var(--border); }
html[data-theme="light"] :is(.sh-day, .st-row, .emp-card) { background: var(--panel); }
html[data-theme="light"] :is(.sh-day, .st-row):hover { background: var(--theme-hover); box-shadow: none; }
html[data-theme="light"] .sh-day-all:hover { border-color: var(--border); }
html[data-theme="light"] .sh-wknd { background: #f6f2f8; }
html[data-theme="light"] .sh-head-row .sh-we { color: #79568a; }
html[data-theme="light"] .sh-today { border-color: var(--income); background: var(--theme-soft); box-shadow: 0 0 0 1px var(--income); }
html[data-theme="light"] .sh-slot { background: #edf5f8; }
html[data-theme="light"] .sh-slot:has(.sh-sub) { background: #fff8e7; border-left-color: #ba934d; }
html[data-theme="light"] .sh-slot:has(.sh-paid) { background: var(--theme-soft); border-left-color: var(--income); }
html[data-theme="light"] :is(.sh-empty, .st-card-note, .st-dash, .emp-proj-label::after) { color: var(--muted); }
html[data-theme="light"] :is(.sh-tot-fine, .sh-tot-fine b, .sh-tot-final.sh-amount-negative,
.sh-tot-final.sh-amount-negative b, .sh-x-fine, .st-chip.st-f, .st-f, .st-fine,
.st-card-sum.sh-amount-negative, .st-due-left b.sh-amount-negative) { color: var(--theme-danger); text-shadow: none; }
html[data-theme="light"] .sh-assign-active { color: var(--warn) !important; border-color: var(--warn) !important; box-shadow: none; }
html[data-theme="light"] .sh-cal.sh-assign-on .sh-day:not(.sh-void) { border-color: #c4aa78; box-shadow: none; }
html[data-theme="light"] .sh-day.sh-drop-hot { background: #f5e9cd; border-color: var(--warn); box-shadow: none; }
html[data-theme="light"] .sh-day.sh-drop { background: #fff8e7; border-color: #ba934d; box-shadow: none; }
html[data-theme="light"] body.pp-on .sh-day.pp-can:hover { background: #e8f3f7; box-shadow: none; }
html[data-theme="light"] body.pp-on .sh-day.pp-pick { background: var(--theme-soft); box-shadow: none; }
html[data-theme="light"] .st-bar { background: var(--theme-track); }
html[data-theme="light"] .st-row-paid .st-bar i { box-shadow: none; }
html[data-theme="light"] :is(.st-ava, .ava) { background: #e7eef3; }
html[data-theme="light"] .st-c-due { background: var(--theme-soft); }
html[data-theme="light"] .st-row-unpaid { border-left-color: var(--warn); box-shadow: none; }
html[data-theme="light"] .st-row-half { border-left-color: var(--cyan); box-shadow: none; }
html[data-theme="light"] .st-row-paid { border-left-color: var(--income); box-shadow: none; }
html[data-theme="light"] .st-row-total { background: var(--panel-2); border-color: var(--border); }
html[data-theme="light"] .st-tg:not(.st-tg-on) { border-color: var(--border); }
html[data-theme="light"] .st-tg:hover:not(:disabled) { background: var(--theme-hover); }
html[data-theme="light"] :is(.st-tg-no.st-tg-on, .st-tg-part.st-tg-on) { color: var(--warn); border-color: #ba934d; background: #fff8e7; }
html[data-theme="light"] .st-tg-yes.st-tg-on { background: var(--theme-soft); border-color: var(--income); }
html[data-theme="light"] .st-tg-half.st-tg-on { background: #e8f3f7; border-color: var(--cyan); }
html[data-theme="light"] .op-check-ozon { color: #235c9d; }
html[data-theme="light"] .op-check-wb { color: #7445a7; }
html[data-theme="light"] .tk-c4 { color: #7445a7; }
html[data-theme="light"] .tk-c5 { color: #995322; }
html[data-theme="light"] .tk-card.tk-done .tk-card-title { text-decoration-color: #87949e; }
html[data-theme="light"] .stamp { background: rgb(255 255 255 / 94%); box-shadow: none; }
html[data-theme="light"] .stamp-sold { color: var(--theme-danger); }
html[data-theme="light"] .team-matrix td.na { color: var(--muted); }
html[data-theme="light"] .ozc-del-contact:hover { color: var(--theme-danger); }
html[data-theme="light"] .sh-num-diff { background: #f9edcb; color: #694806; }
html[data-theme="light"] .bb-hero { background: var(--panel); }
html[data-theme="light"] .bb-sheet { box-shadow: 0 6px 18px rgb(26 46 64 / 12%); }
html[data-theme="light"] .bb-sheet-1 { background: var(--panel-2); }
html[data-theme="light"] .bb-avito .bb-logo { background: #1a232c; }
html[data-theme="light"] :is(.site-footer-title, .site-footer .site-footer-title) { color: var(--text); }
html[data-theme="light"] .site-footer .adm-mark { color: var(--theme-danger); border-color: #c98993; text-shadow: none; }
html[data-theme="light"] .site-footer-group + .site-footer-group { border-color: var(--border); }
html[data-theme="light"] .theme-control { --theme-control-bg: #fff; --theme-control-line: #d8e1e8; --theme-control-text: #5b6978; --theme-control-active: #eaf4f0; --theme-control-accent: #146b4f; }
}
@media screen {
html[data-theme="light"] .st-advance-save { color: var(--muted); border-color: var(--border); background: transparent; }
html[data-theme="light"] .st-advance-save:hover { background: var(--theme-hover); }
html[data-theme="light"] .st-advance-save.st-advance-save-on { color: #845d13; border-color: #c5a466; background: #fff8e7; }
html[data-theme="light"] .st-advance-save.st-advance-save-on:hover { background: #f9edce; border-color: #9b762e; }
html[data-theme="light"] .st-advance-mode { background: var(--panel-2); }
html[data-theme="light"] .st-advance-mode input:checked + span { color: #845d13; border-color: #c5a466; background: #fff8e7; }
html[data-theme="light"] .st-row.st-row-advance { border-left-color: #b98a2b; }
html[data-theme="light"] .st-row-advance :is(.st-fixed-status, .st-advance-total, .st-advance-excess),
html[data-theme="light"] .sh-slot-advance .sh-paid,
html[data-theme="light"] .sh-fixed-advance { color: #845d13; }
html[data-theme="light"] .st-row-advance .st-bar i { background: #bd9442; }
html[data-theme="light"] .st-row-advance .st-tg-yes.st-tg-on { color: #845d13; border-color: #c5a466; background: #fff8e7; }
html[data-theme="light"] .sh-slot.sh-slot-advance,
html[data-theme="light"] .sh-slot.sh-slot-advance:has(.sh-paid) { background: #fff8e7; border-left-color: #b98a2b; }
}
.theme-control {
--theme-control-bg: #131a21;
--theme-control-line: #263341;
--theme-control-text: #a3b1be;
--theme-control-active: #10362b;
--theme-control-accent: #00ff9c;
width: min(660px, 100%); margin: 24px auto 0; padding: 20px 12px 0;
border-top: 1px solid var(--theme-control-line); color: var(--theme-control-text);
font: 12px/1.5 Consolas, 'Courier New', monospace;
display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap;
}
.theme-control form { display: flex; flex-wrap: nowrap; align-items: stretch; gap: 3px; padding: 3px;
border: 1px solid var(--theme-control-line); border-radius: 9px; background: var(--theme-control-bg); margin: 0; }
.theme-control button { display: flex; gap: 6px; align-items: center; justify-content: center;
background: transparent; color: var(--theme-control-text); border: 0; border-radius: 6px;
min-height: 36px; padding: 7px 12px; font: inherit; cursor: pointer; box-shadow: none; }
.theme-control button[aria-pressed="true"] { background: var(--theme-control-active); color: var(--theme-control-accent); }
.theme-control button:hover { box-shadow: inset 0 0 0 1px var(--theme-control-line); }
.theme-control button:focus-visible { outline: 2px solid var(--theme-control-accent); outline-offset: 3px; }
.theme-control svg { width: 15px; height: 15px; flex: none; }
.theme-control-status { flex-basis: 100%; text-align: center; font-size: 11px; }
.theme-control-status:empty { display: none; }
.theme-control-status[data-error="true"] { color: var(--theme-danger, #ff8b99); }
.theme-compact-footer { flex: none; padding: 0 12px 12px; }
.theme-compact-footer .theme-control { border: 0; margin-top: 0; padding-top: 8px; }
@media (pointer: coarse) { .theme-control button { min-height: 44px; } }
@media (max-width: 400px) { .theme-control { gap: 8px; } .theme-control-label { flex-basis: 100%; text-align: center; } }
@media print { .theme-control, .theme-compact-footer { display: none !important; } }