/* ========================================================
   CATEGORY SIDEBAR MENU - THE GIOI IN AN STYLE (theme-custom)
   ======================================================== */

.tgia-dm__sidebar {
    width: 100%;
    font-size: 14px;
    font-family: inherit;
    background: #ffffff;
    box-sizing: border-box;
    padding: 6px 12px 16px 12px;
    border-radius: 8px;
}

@media (min-width: 992px) {
    .tgia-dm__sidebar {
        position: sticky;
        top: 20px;
        align-self: flex-start;
        max-height: calc(100vh - 40px);
        overflow-y: auto;
        overflow-x: hidden;
        scrollbar-width: thin;
        scrollbar-color: transparent transparent;
        transition: scrollbar-color .2s ease;
    }

    .tgia-dm__sidebar:hover {
        scrollbar-color: #CBD1D8 transparent;
    }

    .tgia-dm__sidebar::-webkit-scrollbar {
        width: 5px;
    }

    .tgia-dm__sidebar::-webkit-scrollbar-track {
        background: transparent;
    }

    .tgia-dm__sidebar::-webkit-scrollbar-thumb {
        border-radius: 999px;
        background: transparent;
        transition: background .2s ease;
    }

    .tgia-dm__sidebar:hover::-webkit-scrollbar-thumb {
        background: #CBD1D8;
    }

    .tgia-dm__sidebar:hover::-webkit-scrollbar-thumb:hover {
        background: #AEB5BE;
    }
}

.tgia-dm__sidegroup {
    margin-bottom: 6px;
}

.tgia-dm__sidegroup-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 4px 10px 4px;
    border-bottom: 1px solid #f0f0f0;
    transition: border-color .2s ease;
    user-select: none;
}

.tgia-dm__sidegroup:last-child .tgia-dm__sidegroup-head {
    border-bottom: none;
}

.tgia-dm__sidegroup-title {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
    padding: 0;
    min-height: 22px;
    line-height: 1.4;
    font-size: 15px;
    font-weight: 700;
    color: #444444;
    text-decoration: none !important;
    transition: color .2s ease;
    cursor: pointer;
}

.tgia-dm__sidegroup-title:hover {
    color: var(--theme-color, #1D8057) !important;
}

.tgia-dm__sidegroup-title.is-current {
    color: var(--theme-color, #1D8057) !important;
}

.tgia-dm__sidegroup.is-open .tgia-dm__sidegroup-title {
    color: var(--theme-color, #1D8057);
}

.tgia-dm__sidegroup-toggle {
    flex: 0 0 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: #A4A4A5;
    cursor: pointer;
    border-radius: 50%;
    transition: background-color .2s ease, color .2s ease;
}

.tgia-dm__sidegroup-toggle:hover {
    background-color: rgba(29, 128, 87, 0.08);
    color: var(--theme-color, #1D8057);
}

.tgia-dm__sidegroup.is-open .tgia-dm__sidegroup-toggle {
    color: var(--theme-color, #1D8057);
}

.tgia-dm__sidegroup-arrow {
    flex: none;
    width: 18px;
    height: 18px;
    color: inherit;
    transition: transform .25s cubic-bezier(.22, .61, .36, 1);
}

.tgia-dm__sidegroup.is-open .tgia-dm__sidegroup-arrow {
    transform: rotate(180deg);
}

.tgia-dm__sidelist {
    margin: 8px 0 12px 0;
    padding: 0;
    list-style: none;
}

.tgia-dm__sidelist li {
    margin: 0;
    padding: 0;
}

.tgia-dm__sidelist a {
    position: relative;
    display: block;
    padding: 6px 0 6px 18px;
    font-size: 14px;
    line-height: 1.5;
    color: #555555;
    text-decoration: none !important;
    transition: all .2s ease;
}

.tgia-dm__sidelist a::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #CBD1D8;
    transition: background-color .2s ease, transform .2s ease;
}

.tgia-dm__sidelist a:hover {
    color: var(--theme-color, #1D8057) !important;
    padding-left: 21px;
}

.tgia-dm__sidelist a:hover::before {
    background: var(--theme-color, #1D8057);
    transform: translateY(-50%) scale(1.3);
}

.tgia-dm__sidelist li.is-active a {
    color: var(--theme-color, #1D8057) !important;
    font-weight: 600;
}

.tgia-dm__sidelist li.is-active a::before {
    background: var(--theme-color, #1D8057);
    width: 5px;
    height: 5px;
}
