/*
 * Black sectioned menu (Ryan 2026-11-24, mockup black-menu-dividers.html version 2).
 * Markup: resources/views/partials/black-menu.blade.php and resources/js/shells/nav/BlackMenu.tsx (identical).
 * Each section sets --c (its colour, menu-groups.json); its title line and every icon tile use it.
 */
#sidebar.bm-rail, #sidebar.bm-rail .sidebar-container { background: #07080a !important; }
#sidebar.bm-rail { border-right: 1px solid #1c1f25 !important; }
#sidebar.bm-rail .sidebar-nav { padding: 4px 10px 14px !important; }

.bm { display: flex; flex-direction: column; font-family: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif; color: #eef0f4; }
.bm-div { height: 1px; background: #1e2128; margin: 12px 4px; flex: none; }
.bm-sec {
    display: flex; align-items: center; gap: 10px; padding: 4px 6px 6px;
    font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #9aa0aa;
}
.bm-sec::after { content: ""; flex: 1; height: 2px; border-radius: 2px; background: var(--c, #7c4dff); }

.bm .bm-it {
    display: flex; align-items: center; gap: 12px; box-sizing: border-box;
    min-height: 38px; height: 38px; padding: 3px 8px; margin: 0; border-radius: 10px;
    color: #d7dae1; font-size: 13.5px; font-weight: 500; line-height: 1.2;
    text-decoration: none; cursor: pointer; list-style: none; background: transparent; border: 0;
}
.bm .bm-it::-webkit-details-marker { display: none; }
.bm .bm-it:hover { background: #121419; color: #fff; }
.bm .bm-it.on { background: #111317; color: #fff; font-weight: 600; box-shadow: inset 3px 0 0 var(--c, #c8f146); }
.bm .bm-it:focus-visible, .bm .bm-sl:focus-visible { outline: 2px solid #c8f146; outline-offset: 2px; }
.bm .bm-top { --c: #b6f22e; font-weight: 700; }

.bm .bm-t {
    width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; flex: none;
    background: var(--c, #7c4dff); color: #fff;
}
.bm [data-tone="l"] .bm-t, .bm .bm-top .bm-t { color: #0b0d12; }
/* Centre the glyph in its tile whatever the page's own sidebar icon rules say (Ryan 2026-11-25: icons sat at the top of the tile). */
.bm .bm-t i {
    display: flex !important; align-items: center !important; justify-content: center !important;
    width: 100% !important; height: 100% !important; margin: 0 !important; padding: 0 !important;
    position: static !important; top: auto !important; transform: none !important; vertical-align: middle !important;
    font-size: 15px; line-height: 1 !important; text-align: center;
    color: inherit !important; background: none !important; box-shadow: none !important; border-radius: 0 !important;
}
.bm .bm-t i::before { display: block; line-height: 1 !important; margin: 0 !important; vertical-align: middle; }
.bm .bm-tx { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bm .bm-badge {
    margin-left: auto; background: #c8f146; color: #000; font-size: 11px; font-weight: 800;
    border-radius: 20px; padding: 1px 7px; line-height: 16px;
}
.bm .bm-chev { margin-left: auto; color: #6b717c; font-size: 11px; transition: transform .2s ease; }
.bm details[open] > summary .bm-chev { transform: rotate(90deg); }

.bm .bm-sub { margin: 0 0 4px 22px; border-left: 1px solid #2a2e36; padding-left: 10px; }
.bm .bm-sl {
    position: relative; display: flex; align-items: center; min-height: 32px; box-sizing: border-box;
    padding: 6px 8px; border-radius: 8px; color: #c4c8d0; font-size: 13px; text-decoration: none;
}
.bm .bm-sl::before { content: ""; position: absolute; left: -10px; top: 50%; width: 8px; border-top: 1px solid #2a2e36; }
.bm .bm-sl:hover { background: #121419; color: #fff; }
.bm .bm-sl.on { color: #fff; font-weight: 600; background: #111317; }
.bm .bm-sl.on::after { content: ""; position: absolute; left: -11px; top: 8px; bottom: 8px; width: 3px; border-radius: 2px; background: var(--c, #c8f146); }
.bm .bm-sl .bm-badge { margin-left: auto; }

@media (prefers-reduced-motion: reduce) { .bm .bm-chev { transition: none; } }
