.automation-manager--sidebar {
    display: flex;
    flex-direction: column;
    --nav-height: 10em;
    --bottom-height: 3em;
    position: relative;
    height: 100%;
    min-width: calc(min(max(25vw, 35em), 50vw));
    transition: min-width ease-in-out 500ms,
        min-height ease-in-out 500ms,
        height ease-in-out 500ms,
        width ease-in-out 500ms,
        opacity ease-in-out 500ms;
}

.automation-manager--sidebar-box--nav {
    max-height: var(--nav-height);
}

.automation-manager--sidebar .automation-manager--sidebar-box--list {
    flex: 1;
    max-height: calc(100vh - var(--bottom-height) - var(--nav-height));
    min-height: calc(100vh - var(--bottom-height) - var(--nav-height));
    overflow: auto;
    box-shadow: 1px 1px var(--mui-primary-light);
}

.automation-manager--sidebar-box--bottom-buttons {
    height: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    position: relative;
}

.automation-manager--sidebar-box--bottom-buttons .hide-btn {
    position: absolute;
    right: 0;
}

.automation-manager--sidebar.hidden {
    width: 3em;
    min-width: 0;
}

.automation-manager--sidebar.hidden .add-btn {
    display: none;
}

.automation-manager--sidebar.hidden .automation-manager--sidebar-box--nav,
.automation-manager--sidebar.hidden .automation-manager--sidebar-box--list,
.automation-manager--sidebar.hidden .automation-manager--sidebar-box--bottom-buttons .add-btn {
    width: 0;
    opacity: 0;
}

.automation-manager--sidebar.hidden .automation-manager--sidebar-box--bottom-buttons .hide-btn {
    transform: rotate(180deg);
}