/* shell: шапка / правое меню / футер — polish (2026-07-25)
   tone: theme-blue #3480a2 / charcoal; откат = убрать addCss в CAgentPage */

/* ========== profile-dropdown (правое меню) ========== */
#header-nav .profile-dropdown .dropdown-menu {
    min-width: 240px;
    padding: 6px 0;
    margin-top: 6px;
    border: 1px solid rgba(52, 128, 162, 0.18);
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(30, 50, 70, 0.16);
    background: #fff;
}

#header-nav .profile-dropdown .dropdown-menu > li > a {
    padding: 9px 18px 9px 16px;
    color: #2c3e50;
    font-size: 13px;
    line-height: 1.35;
    transition: background-color 0.12s ease, color 0.12s ease;
}

#header-nav .profile-dropdown .dropdown-menu > li > a > i {
    position: static;
    display: inline-block;
    width: 1.4em;
    margin: 0 8px 0 0;
    text-align: center;
    color: #3480a2;
    opacity: 0.9;
}

#header-nav .profile-dropdown .dropdown-menu > li > a:hover,
#header-nav .profile-dropdown .dropdown-menu > li > a:focus {
    background-color: #eef6fa;
    color: #1f5f7a;
}

#header-nav .profile-dropdown .dropdown-menu > li > a:hover > i,
#header-nav .profile-dropdown .dropdown-menu > li > a:focus > i {
    opacity: 1;
    color: #2980b9;
}

/* разделитель перед служебным блоком */
#header-nav .profile-dropdown .dropdown-menu > li.shell-menu-sep {
    height: 0;
    margin: 6px 12px;
    padding: 0;
    border-top: 1px solid #e6eef2;
    list-style: none;
    pointer-events: none;
}

/* «Выйти» — мягкий акцент */
#header-nav .profile-dropdown .dropdown-menu > li > a[href*="logout"] {
    color: #c0392b;
}

#header-nav .profile-dropdown .dropdown-menu > li > a[href*="logout"] > i {
    color: #c0392b;
}

#header-nav .profile-dropdown .dropdown-menu > li > a[href*="logout"]:hover,
#header-nav .profile-dropdown .dropdown-menu > li > a[href*="logout"]:focus {
    background-color: #fdf0ef;
    color: #a93226;
}

/* «Кто где» — выводы на карте мониторинга */
.map-monitor-overview.ww-panel {
    max-width: 360px;
    max-height: 280px;
    overflow: auto;
    padding: 8px 10px;
    font-size: 12px;
    line-height: 1.35;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}
.map-monitor-overview .ww-hint {
    color: #6b7280;
    margin: 4px 0 0;
    font-size: 11px;
}
.map-monitor-overview .ww-item {
    margin: 4px 0;
    padding: 5px 7px;
    border-radius: 4px;
    background: #f8fafc;
}
.map-monitor-overview .ww-item--multi {
    background: #fef2f2;
}
.map-monitor-overview .ww-item--look {
    background: #fffbeb;
}
.map-monitor-overview .ww-item--same {
    background: #f0fdf4;
}
.map-monitor-overview .ww-item__reason {
    margin-top: 2px;
    color: #374151;
}

/* бейдж client_work / ops_reports в меню */
#header-nav .profile-dropdown .cw-menu-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 7px;
    border-radius: 10px;
    background: #f59e0b;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    line-height: 16px;
    vertical-align: middle;
}

/* ========== мобильный сайдбар справа ========== */
#sidebar-wrapper {
    background: #2f3842;
    box-shadow: -4px 0 18px rgba(0, 0, 0, 0.28);
    transition: transform 0.2s ease, right 0.2s ease;
}

#sidebar-wrapper .sidebar-nav {
    padding: 52px 0 20px;
    font-size: 13px;
}

#sidebar-wrapper .sidebar-nav > li {
    text-indent: 0;
    line-height: 1.3;
    margin: 0 8px;
}

#sidebar-wrapper .sidebar-nav > li > a {
    display: block;
    padding: 11px 14px;
    border-radius: 5px;
    color: #c5ced6;
    transition: background-color 0.12s ease, color 0.12s ease;
}

#sidebar-wrapper .sidebar-nav > li > a > i {
    display: inline-block;
    width: 1.4em;
    margin-right: 8px;
    text-align: center;
    color: #7eb6d0;
}

#sidebar-wrapper .sidebar-nav > li > a > span {
    vertical-align: middle;
}

#sidebar-wrapper .sidebar-nav > li > a:hover,
#sidebar-wrapper .sidebar-nav > li > a:focus {
    background: rgba(52, 128, 162, 0.35);
    color: #fff;
}

#sidebar-wrapper .sidebar-nav > li > a:hover > i,
#sidebar-wrapper .sidebar-nav > li > a:focus > i {
    color: #fff;
}

#sidebar-wrapper .toggle.btn-light {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    margin: 0;
    padding: 6px 10px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #c5ced6;
}

#sidebar-wrapper .toggle.btn-light > i {
    color: #c5ced6;
    background: transparent;
}

#sidebar-wrapper .toggle.btn-light:hover,
#sidebar-wrapper .toggle.btn-light:focus,
#sidebar-wrapper .toggle.btn-light:hover > i {
    color: #fff;
    background: rgba(192, 57, 43, 0.55);
    border-color: transparent;
}

/* ========== footer ========== */
#footer-bar.shell-footer {
    line-height: 28px;
    min-height: 28px;
    padding: 0;
    font-size: 12px;
}

#footer-bar.shell-footer #footer-copyright {
    padding-top: 0;
    padding-bottom: 0;
    margin: 0;
}
