
html.v2 {color-scheme:light;--v2-bg:#e7ebf0;--v2-panel:#fff;--v2-text:#243447;--v2-muted:#708499;--v2-border:#dce4ec;--v2-accent:#5288c1}
html.v2[data-theme=dark]{color-scheme:dark;--v2-bg:#17212b;--v2-panel:#242f3d;--v2-text:#e4edf5;--v2-muted:#9aafc3;--v2-border:#394b5e;--v2-accent:#5288c1}
html.v2 body:has(#account:not([hidden])){background:var(--v2-bg)!important;color:var(--v2-text)}
html.v2 #account:not([hidden]){color:var(--v2-text)}
html.v2 #requestNavigation button{border:0!important;border-radius:7px!important;text-align:left;padding:12px!important;font-weight:600;white-space:normal}
html.v2 #requestNavigation button::before{display:inline-block;width:25px;font-size:17px}
#workViewBtn::before{content:'▤'} #archiveViewBtn::before{content:'▣'} #salesViewBtn::before{content:'▥'} #chatViewBtn::before{content:'◉'}
html.v2 #avatarProfile{background:var(--v2-panel);border-radius:10px;padding:10px;color:var(--v2-text)}
html.v2 #account input,html.v2 #account textarea,html.v2 #account select{background:var(--v2-panel);color:var(--v2-text);border-color:var(--v2-border);border-radius:8px}
#v2Theme{width:auto;margin:8px 0;padding:8px 12px;background:var(--v2-panel);color:var(--v2-text);border:1px solid var(--v2-border);border-radius:8px}
@media(min-width:1024px){html.v2 body:has(#account:not([hidden])) main{margin-left:240px!important;width:calc(100% - 240px)!important;max-width:none!important;box-sizing:border-box}html.v2 #account:not([hidden]) #requestNavigation{position:fixed!important;left:0;top:0;bottom:0;width:220px;box-sizing:border-box;background:var(--v2-panel);padding:16px 10px;display:flex!important;flex-direction:column;justify-content:flex-start;gap:8px!important;margin:0!important;z-index:20;border-right:1px solid var(--v2-border)}html.v2 #requestNavigation::before{content:'Магазин — Склад';font-weight:700;padding:12px;color:var(--v2-text)}}
@media(max-width:1023px){html.v2 #requestNavigation{gap:4px!important}html.v2 #requestNavigation button{font-size:12px;padding:8px 4px!important;text-align:center}html.v2 #requestNavigation button::before{display:block;width:auto}}
/* V21 navigation */
html.v2 #requestNavigation {overflow-y:auto;}
html.v2 #requestNavigation button {background:transparent!important;color:var(--v2-text)!important;flex-shrink:0;}
html.v2 #requestNavigation button.v21-active {background:var(--v2-accent)!important;color:white!important;}
html.v2 #requestNavigation button:hover:not(.v21-active){background:var(--v2-border)!important;}
html.v2 #requestNavigation button[hidden],html.v2 #v21Settings[hidden],html.v2 #v21Admin[hidden]{display:none!important;}
html.v2 #v21Settings,html.v2 #v21Admin{background:var(--v2-panel);color:var(--v2-text);padding:16px;border-radius:10px;margin:12px 0;}
html.v2 #v21Telegram::before{content:'▣'} html.v2 #v21SettingsBtn::before{content:'⚙'} html.v2 #v21AdminBtn::before{content:'♙'}
html.v2 #v21ProfileLabel{margin-top:auto;padding:12px;color:var(--v2-muted);overflow-wrap:anywhere;}
@media(max-width:1023px){html.v2 #requestNavigation{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;}html.v2 #v21ProfileLabel{display:none;}}

/* V21 refined design */
html.v2{--bg:#e7ebf0;--panel:#fff;--text:#243447;--muted:#708499;--border:#dce4ec;--accent:#5288c1;--soft:#f3f6f9;color-scheme:light}
html.v2[data-theme=dark]{--bg:#17212b;--panel:#242f3d;--text:#e4edf5;--muted:#9aafc3;--border:#394b5e;--accent:#5288c1;--soft:#1d2936;color-scheme:dark}
html.v2 body:has(#account:not([hidden])){background:var(--bg)!important;color:var(--text);font:14px/1.45 "Segoe UI",sans-serif}
html.v2 body:has(#account:not([hidden])) > main{background:transparent!important;box-shadow:none!important;border:0!important;padding:26px!important;border-radius:0!important}
html.v2 #account{background:transparent!important;color:var(--text);box-shadow:none!important}
html.v2 #requestNavigation{background:var(--panel)!important;border-color:var(--border)!important;box-sizing:border-box;gap:5px!important}
html.v2 #requestNavigation button{font:600 14px/1.45 "Segoe UI",sans-serif!important;border-radius:9px!important;box-shadow:none!important;padding:11px 12px!important;background:transparent!important;color:var(--text)!important}
html.v2 #requestNavigation button:hover{background:var(--soft)!important}
html.v2 #requestNavigation button.v21-active{background:var(--accent)!important;color:white!important}
html.v2 :is(#newRequestPanel,#requestListColumn,#v21Settings,#v21Admin,#salesPanel,#tgArchivePanel){background:var(--panel)!important;color:var(--text)!important;border:1px solid var(--border)!important;border-radius:14px!important;box-shadow:none!important;padding:18px!important;min-width:0}
html.v2 #requestsPanel{background:transparent!important;border:0!important;box-shadow:none!important;gap:18px!important}
html.v2 :is(#account,#requestsPanel,#salesPanel,#tgArchivePanel) :is(input:not([type=checkbox]):not([type=radio]),textarea,select){background:var(--soft)!important;color:var(--text)!important;border:1px solid var(--border)!important;border-radius:9px!important;box-shadow:none!important;font-family:inherit}
html.v2 :is(#newRequestPanel,#requestListColumn,#v21Settings,#v21Admin,#salesPanel,#tgArchivePanel) h2{font-size:16px!important;color:var(--text)!important;font-weight:600!important}
html.v2 :is(#sendRequestBtn,#showRequestBtn,#selectPhotoBtn,#createEmployeeBtn,#v2Theme){border-radius:9px!important;box-shadow:none!important;font-size:14px!important}
html.v2 :is(#sendRequestBtn,#createEmployeeBtn){background:var(--accent)!important;color:white!important;border:1px solid var(--accent)!important}
html.v2 :is(#showRequestBtn,#selectPhotoBtn,#v2Theme){background:var(--soft)!important;color:var(--text)!important;border:1px solid var(--border)!important}
html.v2 #newRequestPanel > div:has(> #sendRequestBtn),html.v2 #desktopSearchToolbar{background:var(--panel)!important;box-shadow:none!important}
html.v2 #photoDropZone{border-color:var(--border)!important;background:var(--soft)!important;border-radius:9px!important}
html.v2 #v21ProfileLabel{border-top:1px solid var(--border);padding:14px 5px 0;color:var(--muted)}
@media(min-width:1024px){html.v2 #requestNavigation{width:244px!important;padding:18px 12px!important;margin:0!important}html.v2 body:has(#account:not([hidden])) > main{margin-left:244px!important;width:calc(100% - 244px)!important}html.v2 #requestsPanel:not([hidden]):has(#newRequestPanel:not([hidden])){grid-template-columns:minmax(260px,340px) minmax(0,1fr)!important}html.v2 #chatOverlay #chatMain{margin-left:0!important;width:auto!important}}
@media(max-width:1023px){html.v2 body:has(#account:not([hidden])) > main{padding:16px!important}html.v2 #requestNavigation button{font-size:11px!important;padding:8px 3px!important}}
@media(prefers-reduced-motion:no-preference){html.v2 #requestNavigation button{transition:background-color .15s,color .15s}}
html.v2{--v2-muted:#596d80}html.v2[data-theme=dark]{--v2-muted:#b1c2d3}html.v2 #account{font-size:15px!important;line-height:1.5}html.v2 #requestNavigation button{font-size:15px!important;font-weight:600!important}html.v2 #requestNavigation button::before{font-size:19px!important}html.v2 #account h2{font-size:17px!important}html.v2 #account :is(input,textarea,select,label,summary){font-size:15px!important}html.v2 #v21ProfileLabel{font-size:14px!important}html.v2 #account :is(small,#searchCount){font-size:13px!important;color:var(--v2-muted)!important}@media(max-width:1023px){html.v2 #requestNavigation button{font-size:12px!important}}
html.v2 #warehouseCounters{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important;width:100%!important;max-width:560px!important;margin:16px 0!important}html.v2 #warehouseCounters>div{display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:center!important;gap:8px!important;background:var(--v2-panel)!important;border:1px solid var(--v2-border)!important;border-radius:12px!important;padding:14px 18px!important;font-size:15px!important;font-weight:600!important;box-shadow:none!important}html.v2 #newRequestsCount,html.v2 #acceptedRequestsCount{font-size:30px!important;font-weight:700!important;line-height:1.2!important}html.v2 #warehouseCounters>div:first-child{color:#5288c1!important}html.v2 #warehouseCounters>div:nth-child(2){color:#a47c39!important}html.v2 #warehouseCounters>div:hover{background:var(--v2-soft)!important}@media(max-width:600px){html.v2 #warehouseCounters>div{padding:10px!important;font-size:13px!important}}

/* V21 profile responsive */
html.v2 #v21ProfileLabel{display:none!important}
html.v2 #v21ProfilePanel[hidden]{display:none!important}
html.v2 #v21ProfilePanel{margin-top:auto;border-top:1px solid var(--v2-border);padding:12px 0 0;display:grid;gap:8px;flex-shrink:0;min-width:0}
html.v2 #v21ProfilePanel #avatarProfile{display:flex;align-items:center;gap:10px;padding:4px;background:transparent;min-width:0}
html.v2 #v21ProfilePanel #avatarProfile>div{min-width:0;overflow-wrap:anywhere}
html.v2 #v21ProfilePanel #myAvatar{width:42px!important;height:42px!important;min-width:42px;padding:0!important;border-radius:50%!important;background:#d7e7f7!important;color:#285d91!important;overflow:hidden;display:grid;place-items:center}
html.v2 #v21ProfilePanel #myAvatar::before,html.v2 #v21ProfilePanel button::before{content:none!important;display:none!important}
html.v2 #v21ProfilePanel #employeeName{font-size:14px!important;line-height:1.35;margin:0!important;color:var(--v2-text)!important}
html.v2 #v21ProfilePanel #employeeRole{font-size:12px!important;margin:3px 0 0!important;color:var(--v2-muted)!important}
html.v2 #account :is(#v2Theme,#logoutBtn){position:static!important;width:100%!important;margin:0!important;padding:10px!important;border:1px solid var(--v2-border)!important;border-radius:9px!important;background:var(--v2-panel)!important;color:var(--v2-text)!important;font-size:14px!important;text-align:center!important;box-shadow:none!important}
html.v2 #v21ProfilePanel #avatarMenu{background:var(--v2-panel);border-color:var(--v2-border);padding:8px}
html.v2 #v21ProfilePanel #avatarMenu[hidden],html.v2 #v21ProfilePanel #avatarFile[hidden]{display:none!important}
html.v2[data-theme=dark] #manualPartDetails summary{color:#d5e2ef!important}html.v2[data-theme=dark] #warehouseCounters>div:first-child{color:#90c2f5!important}html.v2[data-theme=dark] #warehouseCounters>div:nth-child(2){color:#e6bd76!important}html.v2[data-theme=dark] #account input::placeholder,html.v2[data-theme=dark] #account textarea::placeholder{color:#9aafc3!important;opacity:1}html.v2[data-theme=dark] main hr{border:0!important;border-top:1px solid #394b5e!important}
html.v2[data-theme=dark] .rp-trigger,html.v2[data-theme=dark] .rp-panel{background:var(--v2-panel)!important;color:var(--v2-text)!important;border:1px solid var(--v2-border)!important}html.v2[data-theme=dark] :is(.rp-month,.rp-header,.rp-prev,.rp-next,.rp-close){color:var(--v2-text)!important}html.v2[data-theme=dark] :is(.rp-prev,.rp-next,.rp-close){background:var(--v2-soft)!important;border-color:var(--v2-border)!important}html.v2[data-theme=dark] :is(.rp-weekday,.rp-hint){color:var(--v2-muted)!important}html.v2[data-theme=dark] .rp-day{color:var(--v2-text)!important}html.v2[data-theme=dark] .rp-day.rp-between{background:#304c68!important;color:#dbeafe!important}html.v2[data-theme=dark] .rp-day.rp-selected{background:#5288c1!important;color:#fff!important}html.v2[data-theme=dark] .rp-day.rp-today{box-shadow:inset 0 0 0 1px #90c2f5!important}html.v2[data-theme=dark] .rp-day:disabled{opacity:.35!important}
html.v2 #salesReportContent{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}html.v2 #salesReportContent>*{grid-column:1/-1}html.v2 #salesReportContent>div:nth-child(-n+3){grid-column:auto;margin:0!important;padding:18px!important;border:1px solid var(--v2-border)!important;border-radius:12px!important;background:var(--v2-panel)!important}html.v2 #salesReportContent>div:nth-child(-n+3)>div:first-child{color:var(--v2-muted)!important;font-size:15px!important}html.v2 #salesReportContent>div:nth-child(-n+3)>div:nth-child(2){font-size:30px!important;margin-top:8px;font-variant-numeric:tabular-nums}html.v2 #salesReportContent>div:nth-child(n+4),html.v2 #salesReportContent>details{border-color:var(--v2-border)!important;background:var(--v2-panel)!important;margin:0!important}html.v2 #salesReportContent>p{color:var(--v2-muted)!important}html.v2[data-theme=dark] #salesReportContent>div:nth-child(1)>div:nth-child(2){color:#90c2f5!important}html.v2[data-theme=dark] #salesReportContent>div:nth-child(2)>div:nth-child(2),html.v2[data-theme=dark] #salesReportContent>div:nth-child(3)>div[style*="color: rgb(220, 38, 38)"]{color:#fca5a5!important}html.v2[data-theme=dark] #salesReportContent>div:nth-child(3)>div[style*="color: rgb(21, 128, 61)"]{color:#86efac!important}@media(max-width:767px){html.v2 #salesReportContent{grid-template-columns:1fr!important}}
html.v2 #v21Settings{max-width:900px;box-sizing:border-box;padding:24px!important}html.v2 #v21Settings::before{content:"\041D\0430\0441\0442\0440\043E\0439\043A\0438";display:block;font-size:20px;font-weight:700;margin-bottom:20px}html.v2 #v21Settings #avatarContacts,html.v2 #v21Settings #pushSettings{background:#f8fafc!important;border:1px solid #dce4ec!important;border-radius:10px!important;padding:16px!important;margin:12px 0!important}html.v2 #v21Settings summary{font-size:15px!important;font-weight:600!important;color:#334155!important}html.v2 #v21Settings #enablePushBtn,html.v2 #v21Settings #disablePushBtn,html.v2 #v21Settings #requestSoundBtn{width:auto!important;max-width:100%;min-height:38px!important;padding:10px 20px!important;border-radius:8px!important}html.v2 #v21Settings #enablePushBtn{background:#5288c1!important;color:white!important}html.v2[data-theme=dark] #v21Settings #avatarContacts,html.v2[data-theme=dark] #v21Settings #pushSettings{background:#242f3d!important;border-color:#394b5e!important;color:#e4edf5!important}html.v2[data-theme=dark] #v21Settings summary{color:#e4edf5!important}html.v2[data-theme=dark] #v21Settings #pushDeviceCount,html.v2[data-theme=dark] #v21Settings #avatarContactList [style*=color]{color:#aabed0!important}html.v2[data-theme=dark] #v21Settings #pushError{color:#fca5a5!important}html.v2[data-theme=dark] #v21Settings #disablePushBtn,html.v2[data-theme=dark] #v21Settings #requestSoundBtn{background:#34475b!important;color:#e4edf5!important}
