/* ═══════════════════════════════════════════════════════════════════════════
   CertLogIQ — the office app's left-hand menu  (fireassistiq-sidebar.css)
   ───────────────────────────────────────────────────────────────────────────
   Pages grouped in sections that open and close (fireassistiq-sidebar.js),
   one naming style, a calm grey highlight for the page on screen (red is a
   signal, not chrome), a quiet lock on pages another plan unlocks.
   Loaded after fireassistiq-polish.css and scoped under #adminSidebar, so it
   wins over the older sidebar rules in app.html, the design system and polish.
   ═══════════════════════════════════════════════════════════════════════════ */

#adminSidebar .sidebar-header { padding: 16px 18px 12px 18px !important; border-bottom: 0 !important; }
#adminSidebar .sidebar-nav { padding: 6px 10px 10px 10px !important; }
#adminSidebar .sidebar-nav-section { margin: 0 !important; }
#adminSidebar .sidebar-top { margin: 0 0 4px 0 !important; }

/* Find a page */
#adminSidebar .sidebar-find { position: relative; margin: 0 10px 8px 10px; }
#adminSidebar .sidebar-find i {
    position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
    font-size: 13px !important; color: rgba(255, 255, 255, 0.45) !important; pointer-events: none;
}
#adminSidebar #sidebarFind {
    width: 100% !important; height: 36px !important; box-sizing: border-box !important; margin: 0 !important;
    padding: 0 10px 0 32px !important; border: 1px solid rgba(255, 255, 255, 0.10) !important; border-radius: 8px !important;
    background: rgba(255, 255, 255, 0.06) !important; color: #E6E9ED !important; box-shadow: none !important;
    font-family: inherit !important; font-size: 14px !important; outline: none;
}
#adminSidebar #sidebarFind::placeholder { color: rgba(255, 255, 255, 0.45) !important; }
#adminSidebar #sidebarFind:focus { border-color: rgba(255, 255, 255, 0.28) !important; }

/* Section headings: plain words that open and close, not shouting capitals */
#adminSidebar .sidebar-nav-title {
    display: flex; align-items: center; gap: 8px; width: 100%; box-sizing: border-box;
    min-height: 34px; margin: 4px 0 0 0 !important; padding: 0 10px !important;
    border: 0; border-radius: 8px; background: transparent; cursor: pointer; text-align: left;
    font-family: inherit !important; font-size: 12.5px !important; font-weight: 600 !important;
    letter-spacing: 0.01em !important; text-transform: none !important; color: rgba(255, 255, 255, 0.55) !important;
}
#adminSidebar .sidebar-nav-title:hover { color: #E6E9ED !important; }
#adminSidebar .sidebar-nav-title:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.55); outline-offset: -2px; }
#adminSidebar .sidebar-group-count {
    margin-left: auto; font-size: 12px !important; font-weight: 500 !important;
    color: rgba(255, 255, 255, 0.40) !important; font-variant-numeric: tabular-nums;
}
#adminSidebar .sidebar-group-chevron { font-size: 10px !important; width: 10px; color: rgba(255, 255, 255, 0.45) !important; transition: transform .15s ease; }
#adminSidebar .sidebar-group.sm-open .sidebar-group-chevron { transform: rotate(90deg); }
#adminSidebar .sidebar-group.sm-open .sidebar-group-count { display: none; }
#adminSidebar .sidebar-group-items { display: none; padding: 2px 0 4px 0; }
#adminSidebar .sidebar-group.sm-open .sidebar-group-items { display: block; }

/* While finding a page: every section with a match open, the rest out of the way */
#adminSidebar .sidebar-nav.sm-searching .sidebar-group.sm-has .sidebar-group-items { display: block; }
#adminSidebar .sidebar-nav.sm-searching .sidebar-group:not(.sm-has) { display: none; }
#adminSidebar .sidebar-nav.sm-searching .sidebar-group .sidebar-group-chevron { transform: rotate(90deg); }
#adminSidebar .sidebar-nav.sm-searching .sidebar-group-count { display: none; }
#adminSidebar .sidebar-nav-item.sm-miss { display: none !important; }
#adminSidebar .sidebar-none { margin: 8px 10px 0 10px; font-size: 13.5px !important; line-height: 1.5; color: rgba(255, 255, 255, 0.55) !important; }

/* A page */
#adminSidebar .sidebar-nav-item {
    display: flex; align-items: center; gap: 11px !important;
    min-height: 36px; box-sizing: border-box; margin: 1px 0 !important; padding: 0 10px !important;
    border: 0 !important; border-radius: 8px !important; box-shadow: none !important;
    color: rgba(255, 255, 255, 0.72) !important; transform: none !important;
}
#adminSidebar .sidebar-nav-item i {
    width: 18px !important; flex: 0 0 18px; text-align: center;
    font-size: 15px !important; color: rgba(255, 255, 255, 0.55) !important;
}
#adminSidebar .sidebar-nav-item > span:first-of-type {
    flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    font-size: 14px !important; font-weight: 500 !important; letter-spacing: 0 !important;
}
#adminSidebar .sidebar-nav-item:hover { background: rgba(255, 255, 255, 0.06) !important; color: #FFFFFF !important; }
#adminSidebar .sidebar-nav-item:hover i { color: rgba(255, 255, 255, 0.9) !important; }
#adminSidebar .sidebar-nav-item:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.55) !important; outline-offset: -2px; }
#adminSidebar .sidebar-nav-item.active {
    background: rgba(255, 255, 255, 0.10) !important; color: #FFFFFF !important;
    border-left: 0 !important; box-shadow: none !important;
}
#adminSidebar .sidebar-nav-item.active i { color: #FFFFFF !important; }
#adminSidebar .sidebar-nav-item.active > span:first-of-type { font-weight: 600 !important; }

/* Locked: another plan unlocks it (a quiet lock, the plan's name for screen readers) */
#adminSidebar .sidebar-nav-item .upgrade-badge {
    margin-left: auto; flex: 0 0 auto; padding: 0 !important; background: none !important;
    color: rgba(255, 255, 255, 0.45) !important; font-size: 11px !important;
}
#adminSidebar .sidebar-nav-item .upgrade-badge i { width: auto !important; flex: none; font-size: 11px !important; color: inherit !important; }
.sm-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Open tech app and Settings, kept at the bottom */
#adminSidebar .sidebar-bottom { padding: 6px 10px !important; border-top: 1px solid rgba(255, 255, 255, 0.08); }

/* The person signed in: initials from their name, no red */
#adminSidebar .sidebar-footer { padding: 12px 16px !important; }
#adminSidebar .sidebar-user-avatar {
    width: 34px !important; height: 34px !important; border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.12) !important; color: #E6E9ED !important;
    font-size: 13px !important; font-weight: 700 !important;
}
#adminSidebar .sidebar-user-name { font-size: 14px !important; color: #FFFFFF !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#adminSidebar .sidebar-user-role { font-size: 12.5px !important; color: rgba(255, 255, 255, 0.55) !important; }
