#divApplication {
    display: grid;
    grid-template-rows: var(--top-row-height) 1fr;

    .top-row {
        position: sticky;
        z-index: 20;
        top: 0px;
        height: 100%;
        background-color: var(--main-bg-color);
        color: var(--main-bg-color-text);
        display: grid;
        grid-template-columns: 64px 1fr auto 10px;
        align-items: center;
        justify-content: center;
    }

    #divContent {
        display: grid;
        --menu-width: 0px;
        grid-template-columns: 0px 1fr;
        transition: grid-template-columns 500ms ease-in;
        overflow: hidden;
        width: 100vw;
        height: calc(100vh - var(--top-row-height));
    }

    #divContent.showMenu {
        --menu-width: 300px;
        grid-template-columns: 300px 1fr;
        transition: grid-template-columns 500ms ease-in;
    }
    
}

#divMenu.icon {
    position: relative;
    left: 0px;
}

#divMenuIcon {
    text-align: center;
    cursor: pointer;
    color: var(--menu-text);
}

#divMenu {
    height: 100%;
    background-color: var(--main-bg-color);
    z-index: 10;
    white-space: nowrap;
    overflow-y: scroll;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* Internet Explorer 10+ */
    user-select: none;


    #divMenu::-webkit-scrollbar {
        width: 0;
        height: 0;
    }

    #divLogo {
        position: relative;
        top: 24px;
        width: 300px;
        height: 100px;
        z-index: 10;
        font-size: 20px;
        margin-bottom: 64px;
        place-content: center;
        display: grid;
    }

    #imgLogo {
        display: block;
        height: 100%;
    }

    .folders,
    .folder,
    .list-items,
    .list-item {
        list-style-type: none;
        color: var(--menu-text);
    }

    .folders {
        padding-inline-start: 24px;
    }

    .folder {
        display: grid;
        grid-template-rows: min-content 0fr;
        transition: grid-template-rows 300ms ease-in;
        margin-bottom: 24px;
    }

    .folder.active {
        grid-template-rows: min-content 1fr;
    }

    .folder-grid {
        display: grid;
        grid-template-columns: 50px minmax(176px, 1fr) 50px;
        /* otherwise the arrows move when we collapse the menu, 1fr is also possible*/
        position: relative;
        margin-bottom: 16px;
        align-items: center;
        cursor: pointer;
    }

    .folder v-icon {
        position: relative;
    }

    .folder v-icon.caret {
        width: 14px;
        transition: transform 500ms;
    }

    .folder.active v-icon.caret {
        transform: rotate(90deg);
    }


    .folder label {
        cursor: inherit;
    }

    .list-items {
        position: relative;
        padding-inline-start: 50px;
        overflow: hidden;
        cursor: inherit;
    }

    .list-item {
        cursor: inherit;
        margin-bottom: 24px;
        cursor: pointer;
    }

    .list-item.active,
    .folder-grid.active {
        color: white;
        font-weight: 600;
    }
}

#divLogout {
    display: flex;
    color: var(--menu-text);
    fill: var(--menu-text);
    cursor: pointer;

    & label {
        cursor: inherit;
        margin-right: 16px;
        position: relative;
        top: 2px;
    }
}





#divpaging {
    position: relative;
    background: var(--page-bg-color);

    .page.sidebar {
        display: grid;
        grid-template-columns: 380px 1fr 32px;
        transition: grid-template-columns 300ms ease-in;
        column-gap: 32px;
        position: absolute;
        top: 0px;
        width: 100%;
        padding: var(--page-padding);

        & sidebar {
            background: #f5f5f5;
            padding: 16px;
            height: fit-content;
            min-height: 200px;

            .filter {
                margin-bottom: 16px;
            }

            & ul {
                margin: 0px;
                padding: 0px;
                background: #f5f5f5;
                color: black;
                border: 2px solid lightgray;
                border-radius: 4px;
                max-height: calc(100vh - 300px);
                overflow: auto;
            }

            & li {
                list-style: none;
                position: relative;
                padding-block: 10px;
                border-bottom: 1px solid #c1c1c1;
                background: white;
                cursor: pointer;
            }

            & li.active {
                background: lightgray !important;
            }

            & li:nth-child(even) {
                background: #f5f5f5;
            }

            & li:first-child {
                border-top-left-radius: 4px;
                border-top-right-radius: 4px;
            }

            & li:last-child {
                border-bottom-left-radius: 4px;
                border-bottom-right-radius: 4px;
            }

            & li div {
                padding-left: 16px;
                overflow: hidden;
                white-space: nowrap;
                text-overflow: ellipsis;
            }
        }

        .main {
            display: grid;
            grid-template-rows: 64px 1fr;
            position: relative;
            min-height: 100px;
            max-width: 1320px;
            height: fit-content;
            background: #f5f5f5;

            .header {
                display: block;
                padding: 16px;
            }

            section {
                grid-auto-rows: min-content 55px;
                max-height: calc(100vh - 200px);
                overflow: auto;
            }

            section .body {
                display: block;
                padding: 16px;
                margin-bottom: 32px;
                max-height: 70vh;
                height: fit-content;
                overflow: auto;
            }

            section form.auto-grid {
                display: grid;
                grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
                grid-template-rows: auto;
                gap: 24px;
            }

            section .footer {
                padding-inline: 24px;
                border-top: 2px solid lightgray;
                position: sticky;
                bottom: 0px;
                background: #f5f5f5;
            }
        }
    }

    .page.hide {
        grid-template-columns: 0px 1fr;
        transition: grid-template-columns 300ms ease-in;
    }
}

.tabs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(50px, max-content));
    grid-template-rows: auto;
    gap: 16px;
    border-bottom: 3px solid lightgray;
    user-select: none;
    margin-bottom: 16px;
}


section {
    display: none;
}

section.show {
    display: grid;
}