/* KONSALTOFF CRM v97.177 · тёмное боковое меню по макету. Только оформление: состав меню, права и страницы не меняются. */
.crm-sidebar{background:#0f2a4d!important;border-right:0!important}
.crm-sidebar::-webkit-scrollbar,.crm-sidebar *::-webkit-scrollbar{width:8px}
.crm-sidebar::-webkit-scrollbar-thumb,.crm-sidebar *::-webkit-scrollbar-thumb{background:#2b4a75;border-radius:8px}
.crm-sidebar #tabs .nav-group{background:transparent!important;border:0!important;box-shadow:none!important;margin:0 0 6px!important;padding:8px 0 6px!important;border-bottom:1px solid rgba(255,255,255,.07)!important;border-radius:0!important}
.crm-sidebar #tabs .nav-group:last-child{border-bottom:0!important}
.crm-sidebar #tabs .nav-group-title{color:#fff!important;font-size:14px!important;font-weight:700!important;padding:6px 10px!important;background:transparent!important}
.crm-sidebar #tabs .nav-group-title .nav-icon{color:#4f9bff!important}
.crm-sidebar #tabs .nav-group-title *{color:inherit}
.crm-sidebar #tabs button{color:#c8d6ea!important;background:transparent!important;box-shadow:none!important;border:0!important;border-radius:8px!important;font-weight:500!important;padding:8px 10px!important;text-align:left}
.crm-sidebar #tabs button:not(.hidden){display:flex!important;align-items:center;gap:10px;width:100%}
.crm-sidebar #tabs button:hover{background:rgba(255,255,255,.08)!important;color:#fff!important}
.crm-sidebar #tabs button.active{background:#1f6fe0!important;color:#fff!important;font-weight:700!important}
.crm-sidebar #tabs button::before{content:"▪";flex:none;width:18px;text-align:center;font-size:14px;color:#7fa6da;line-height:1}
.crm-sidebar #tabs button.active::before,.crm-sidebar #tabs button:hover::before{color:#fff}
.crm-sidebar #tabs button[data-page="managerDesktop"]::before{content:"▣"}
.crm-sidebar #tabs button[data-page="managerRegistry"]::before,.crm-sidebar #tabs button[data-page="sales"]::before,.crm-sidebar #tabs button[data-page="processingRegistry"]::before{content:"☰"}
.crm-sidebar #tabs button[data-page="chat"]::before{content:"✉"}
.crm-sidebar #tabs button[data-page="clientDirectory"]::before{content:"☎"}
.crm-sidebar #tabs button[data-page="intermediaryDirectory"]::before{content:"⇄"}
.crm-sidebar #tabs button[data-page="documents"]::before,.crm-sidebar #tabs button[data-page="hrDocuments"]::before{content:"▤"}
.crm-sidebar #tabs button[data-page="salesAnalytics"]::before,.crm-sidebar #tabs button[data-page="summary"]::before{content:"◔"}
.crm-sidebar #tabs button[data-page="bonusPayouts"]::before,.crm-sidebar #tabs button[data-page="payments"]::before,.crm-sidebar #tabs button[data-page="expenses"]::before,.crm-sidebar #tabs button[data-page="fot"]::before{content:"₽"}
.crm-sidebar #tabs button[data-page="cash"]::before,.crm-sidebar #tabs #navMyWallet::before{content:"▭"}
.crm-sidebar #tabs button[data-page="employeeProfile"]::before,.crm-sidebar #tabs button[data-page="staffAccess"]::before{content:"☺"}
.crm-sidebar #tabs button[data-page="vacationSchedule"]::before,.crm-sidebar #tabs button[data-page="vacations"]::before,.crm-sidebar #tabs button[data-page="workTime"]::before{content:"▦"}
.crm-sidebar #tabs button[data-page="usefulMaterials"]::before,.crm-sidebar #tabs button[data-page="trainingCourse"]::before{content:"★"}
.crm-sidebar #tabs button[data-page="settings"]::before{content:"⚙"}
.crm-sidebar #tabs .nav-sub,.crm-sidebar #tabs small{color:#9fb5d3}
.crm-sidebar #tabs details>summary,.crm-sidebar #tabs summary{color:#c8d6ea}

/* v97.178: шапка по макету */
html.th-178 header.crm-topbar{background:#0d2a4f!important;gap:14px}
html.th-178 header.crm-topbar .brand>div{display:flex;align-items:center;gap:12px}
html.th-178 header.crm-topbar .brand small{border-left:1px solid rgba(255,255,255,.28);padding-left:12px;max-width:120px;line-height:1.25;color:#c8d6ea;font-size:11.5px}
html.th-178 header.crm-topbar #globalZoomOut,html.th-178 header.crm-topbar #globalZoom,html.th-178 header.crm-topbar #globalZoomIn,html.th-178 header.crm-topbar #globalZoomValue{display:none!important}
html.th-178 header.crm-topbar .workspace-view-controls{display:none!important}
html.th-178 header.crm-topbar .th-burger{display:inline-flex!important;align-items:center;justify-content:center;width:38px;height:38px;border:0;border-radius:8px;background:transparent;color:#fff;cursor:pointer;flex:none}
html.th-178 header.crm-topbar .th-burger:hover{background:rgba(255,255,255,.1)}
html.th-178 header.crm-topbar .th-burger .workspace-view-label{display:none!important}
html.th-178 header.crm-topbar .global-search-wrap{flex:1;max-width:460px}
html.th-178 header.crm-topbar .th-clock{display:flex!important;align-items:center;gap:10px;margin:0 6px 0 0;padding:0;border:0;background:transparent;box-shadow:none;color:#fff}
html.th-178 header.crm-topbar .th-clock span{padding:7px 12px;border-radius:8px;background:rgba(255,255,255,.1);color:#e6eefb;font-size:12.5px;border:0}
html.th-178 header.crm-topbar .th-clock b{color:#fff;font-size:16px;background:transparent;border:0;padding:0}
html.th-178 header.crm-topbar .th-clock i{color:#9fb5d3;font-style:normal;font-size:11.5px}
@media(min-width:1200px){html.th-178 header.crm-topbar .tu-name{display:flex!important;flex-direction:column;align-items:flex-start;line-height:1.2;color:#fff}html.th-178 header.crm-topbar .tu-name small{color:#9fb5d3;font-size:11px}}
@media(max-width:1100px){html.th-178 header.crm-topbar .th-clock span{display:none}}
html.th-178 header.crm-topbar .brand small{white-space:normal;min-width:96px}
/* v97.184: правая часть шапки по макету — колокольчик, дата, время МСК, разделитель, сотрудник */
html.th-178 header.crm-topbar .top-actions{display:flex;align-items:center;gap:14px;margin-left:auto}
html.th-178 header.crm-topbar #topUser{display:contents}
html.th-178 header.crm-topbar #topUser>.tu-icon:first-child{display:none!important}
html.th-178 header.crm-topbar #topUser>.tu-icon{order:1;background:transparent;border:0;color:#fff}
html.th-178 header.crm-topbar .th-clock{order:2;margin:0}
html.th-178 header.crm-topbar #topUser>.tu-me{order:3;border:0;border-left:1px solid rgba(255,255,255,.22);border-radius:0;background:transparent;padding:2px 0 2px 16px;gap:10px;color:#fff}
html.th-178 header.crm-topbar .th-clock i{margin-left:-2px}
html.th-178 header.crm-topbar .tu-caret{color:#c8d6ea}
html.th-178 header.crm-topbar .th-clock{flex:0 0 auto!important;width:auto!important;min-width:0!important;max-width:none;justify-content:flex-start!important;position:static!important}
html.th-178 header.crm-topbar .th-clock>*{flex:none;width:auto;min-width:0;white-space:nowrap}
html.th-178 header.crm-topbar .brand{flex:none}html.th-178 header.crm-topbar .top-actions{flex:none}
/* v97.186: конверт в шапке и окно письма */
html.th-178 header.crm-topbar .th-mailbtn{order:1;display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border:0;border-radius:8px;background:transparent;color:#fff;cursor:pointer;flex:none;margin-right:-6px}
html.th-178 header.crm-topbar .th-mailbtn:hover{background:rgba(255,255,255,.1)}
.th-mail{padding:16px 18px;display:flex;flex-direction:column;gap:10px}.th-mail-from{font-size:12.5px;color:#4a6079}
.th-mail label{display:flex;flex-direction:column;gap:4px;font-size:12px;font-weight:600;color:#4a6079}
.th-mail input,.th-mail textarea{border:1px solid #cfdcec;border-radius:8px;padding:9px 11px;font:inherit;font-size:14px;font-weight:400;color:#12304f}
.th-mail-actions{display:flex;align-items:center;gap:8px;justify-content:flex-end}.th-mail-actions span{flex:1;font-size:12.5px;color:#6b7f96}
/* v97.188: счётчик непрочитанных сообщений чата на конверте */
html.th-178 header.crm-topbar .th-mailbtn{position:relative}
html.th-178 header.crm-topbar .th-mailbtn i{position:absolute;top:1px;right:0;min-width:16px;height:16px;padding:0 4px;border-radius:999px;background:#e0323f;color:#fff;font-size:10.5px;font-weight:700;font-style:normal;line-height:16px;text-align:center;box-sizing:border-box}
/* v97.201: кнопки масштаба возвращены в шапку в компактном виде (− 100% +), без ползунка */
html.th-178 header.crm-topbar .workspace-view-controls{display:inline-flex!important;align-items:center;gap:4px;order:0;background:rgba(255,255,255,.08);border-radius:8px;padding:2px 4px;border:0}
html.th-178 header.crm-topbar #globalZoom{display:none!important}
html.th-178 header.crm-topbar #globalZoomOut,html.th-178 header.crm-topbar #globalZoomIn{display:inline-flex!important;align-items:center;justify-content:center;width:26px;height:26px;border:0;border-radius:6px;background:transparent;color:#fff;cursor:pointer;font-size:16px;padding:0}
html.th-178 header.crm-topbar #globalZoomOut:hover,html.th-178 header.crm-topbar #globalZoomIn:hover{background:rgba(255,255,255,.14)}
html.th-178 header.crm-topbar #globalZoomValue{display:inline-block!important;min-width:40px;text-align:center;color:#e6eefb;font-size:12px;background:transparent;border:0}