:root {
    --color-dark-gray: rgb(54, 54, 54);
    --scrollbar-thumb-color: var(--color-dark-blue);
}

.dark-theme:root {
    --scrollbar-thumb-color: var(--color-mid-dark-blue);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*::-webkit-scrollbar-thumb {
    background-color: var(--scrollbar-thumb-color);
}

html,
body {
    height: 100vh;
    overflow-x: hidden;
}

.ippam .container-wrapper {
    width: 350px;
    height: 100%;
}

.ippam .container-wrapper > div:first-of-type {
    background-color: var(--color-dark-blue);
    color: var(--color-turquoise);
    height: 50px;
}

.ippam .container-wrapper > div:first-of-type > select {
    border: 0 !important;
}

.ippam .container-wrapper > div:first-of-type > select:focus {
    outline: 1px solid var(--color-turquoise) !important;
    box-shadow: 0 0 10px var(--color-turquoise) !important;
}

.ippam .tab-menu-wrapper {
    height: calc(100vh - 50px);
    overflow-y: auto;
    box-shadow: 0 0 0.75rem rgb(170, 170, 170) inset;
}

.ippam .tab-menu-wrapper ul {
    list-style: none;
    padding-left: 0;
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
    position: relative;

    & ul {
        padding-left: 1.25rem;
        margin-bottom: 0;
        display: none;

        & ul:has(> li.last-ip) {
            padding-left: 2.35rem;
            position: relative;
        }
    }

    & ul ul:has(> li.last-ip)::before {
        content: '';
        display: flex;
        position: absolute;
        height: 100%;
        width: 1px;
        left: 1.6rem;
        top: -0.75rem;
        background-color: var(--color-dark-gray);
        z-index: -1;
    }

    & > li.show > ul {
        display: block;
    }
}

.ippam .tab-menu-wrapper ul li {
    position: relative;
    z-index: 1;
}

.ippam .tab-menu-wrapper ul ul ul li.last-ip::before {
    content: '';
    display: flex;
    position: absolute;
    height: 1px;
    width: 0.65rem;
    left: -0.75rem;
    top: 50%;
    transform: translateY(-25%);
    background-color: var(--color-dark-gray);
    z-index: -1;
}

.ippam .tab-menu-wrapper ul ul li:first-of-type::after {
    height: calc(100% - 0.4rem);
    top: -0.2rem;
}

.ippam .tab-menu-wrapper ul li.active > a {
    background-color: lightblue;
}

.ippam .tab-menu-wrapper ul li.active > a > i {
    background-color: transparent;
}

.ippam .tab-menu-wrapper ul li.active > a > svg {
    background-color: transparent;
}

.ippam .tab-menu-wrapper ul li a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: black;
    height: 1.5rem;
}

.ippam .tab-menu-wrapper a i {
    margin-right: 0.5rem;
    background-color: white;
    position: relative;
    z-index: 1;
}

.ippam .tab-menu-wrapper a svg {
    margin-right: 0.5rem;
    background-color: white;
    position: relative;
    z-index: 1;
}

.ippam main {
    margin: 0;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.ippam main > nav li {
    color: var(--color-light-blue);
}

.ippam main > nav li:last-child {
    font-weight: bold;
    color: var(--color-dark-gray);
}

.ippam main > nav li:last-child::before {
    font-weight: normal;
}

.ippam main > nav + div {
    height: calc(100% - 50px);
    overflow-y: auto;
}

.ippam main > div > table {
    overflow-x: scroll;
}
