﻿.unit-list{
    list-style: none;
    padding: 0;
}

.unit-list-item {
    position: relative;
    width: 100%;
}

    .unit-list-item > a {
        position: relative;
        display: flex;
        min-height: 5rem;
        width: 100%;
        padding-right: 1.5rem;
        text-decoration: none;
        justify-content: start;
        align-items: center;
        border-left: .4rem #888 solid;
        background-color: #fff;
    }

    .unit-list-item > a:hover {
        border-color: var(--highlight);
        background-color: #f8f8f8;
    }

    .unit-list-item .text {
        width: 95%;
        max-height: 100%;
        max-height: calc(100% - 1rem);
        padding: .5rem;
    }

.unit-list-item .action-button {
    position: absolute;
    right: 2rem;
    align-self: center;
    transition: 250ms ease;
    color: #666;
    background-color: #e7e7e7;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    text-align: center;
    line-height: 2rem;
}

.unit-list-item > a:hover > .action-button {
    right: .5rem;
}

    /*.unit-list-item:hover .activity-title {
        text-decoration: underline;
    }*/

    .unit-list-item .item-duration {
        padding-left: 1rem;
        color: #777;
        font-size: .9rem;
    }

.unit-list-item .item-title {
    font-weight: 600;
    margin: 0;
}

    .unit-list-item .item-description {
        color: var(--text-default);
        text-decoration: none;
        padding-top: 0.4rem;
        padding-left: 1.75rem;
    }

    .unit-list-item:hover .item-description {
        text-decoration: none !important;
    }

.group-list-item > a {
    cursor: pointer;
    border-bottom: 1px solid #e8e8e8;
    background-color: #f8f8f8;
}

    .group-list-item > a:hover {
        border-bottom: 1px solid #ddd;
        background-color: #eee;
    }

    .group-list-item .body-container {
        padding-left: 1.4rem;
        padding-right: 3rem;
        display: block;
        overflow: hidden;
        height: 0;
        transform-origin: top;
        transition: 500ms;
    }

    .group-list-item .body{
        margin: 0;
        list-style: none;
        padding: 0;
    }

    .group-list-item .body > li:last-of-type{
        border-bottom: 1px solid #e8e8e8;
    }