:root {
    --menu-bg: #111827;
    --menu-line: #263244;
    --menu-text: #d1d5db;
    --menu-active: #eef4ff;
    --menu-blue: #2458d3;
}

body.with-app-menu {
    padding-left: 72px;
}

.app-menu {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 72px;
    z-index: 1000;
    background: var(--menu-bg);
    color: #fff;
    border-right: 1px solid #0b1220;
    overflow: hidden;
    transition: width .16s ease;
    box-shadow: 8px 0 24px rgba(16, 24, 40, .08);
}

.app-menu:hover,
.app-menu:focus-within,
.app-menu.expanded {
    width: 238px;
}

.app-menu-inner {
    padding: 14px 10px;
    min-width: 238px;
}

.app-menu-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.app-menu-toggle {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 8px;
    background: #1f2937;
    color: #fff;
    font-weight: 900;
    cursor: pointer;
}

.app-menu-brand {
    font-weight: 900;
    line-height: 1.1;
    white-space: nowrap;
}

.app-menu-brand small {
    display: block;
    color: #9ca3af;
    font-size: 11px;
    margin-top: 3px;
}

.app-menu nav {
    display: grid;
    gap: 4px;
}

.app-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 38px;
    border-radius: 8px;
    color: var(--menu-text);
    text-decoration: none;
    font-weight: 800;
    padding: 0 10px;
    white-space: nowrap;
}

.app-menu a:hover {
    background: var(--menu-line);
    color: #fff;
}

.app-menu a.active {
    background: var(--menu-active);
    color: #102a56;
}

.app-menu-ico {
    width: 26px;
    flex: 0 0 26px;
    text-align: center;
    font-size: 15px;
    font-weight: 950;
}

.app-menu-label {
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-menu-badge {
    margin-left: auto;
    border-radius: 999px;
    background: #fef3c7;
    color: #92400e;
    font-size: 11px;
    padding: 2px 7px;
    font-weight: 900;
}

@media (max-width: 900px) {
    body.with-app-menu {
        padding-left: 0;
    }

    .app-menu {
        position: relative;
        width: 100%;
        height: auto;
    }

    .app-menu:hover,
    .app-menu:focus-within,
    .app-menu.expanded {
        width: 100%;
    }

    .app-menu-inner {
        min-width: 0;
    }

    .app-menu nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .app-menu a {
        min-width: 0;
    }
}
