/* Recent Topics
--------------------------------------------- */

#phpbbsection {
    overflow: hidden;
}

/* side view big screen maxed out */
@media screen and (min-width: 1024px)
{
    .index-left {
        width: auto;
        overflow: hidden;
    }
    .index-right {
        float: right;
        margin-left: 10px;
        width: 302px;
    }
}

/* smartphones */
/* put side view as top block anyways */
@media only screen and (max-width: 1024px) {
    /*hide the forum index */
    .index-left, .index-right {
        display: block;
        width: 100%;
    }
}

a#recent-topics {
    display: none;
}

#recent-topics ul {
    list-style: none;
}

#recent-topics li.row {
    border-top: none;
    border-bottom-color: #222;
    transition: background 0.15s ease-in-out 0s;
}

#recent-topics li dl.icon {
    padding-bottom: 0px;
}

#recent-topics li.row dl {
    padding: 9px 5px 5px 0;
    position: relative;
}

#recent-topics li.row dl:after {
    clear: both;
    content: "";
    display: block;
}

#recent-topics a.topictitle {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 1px;
}

#recent-topics a.forum-link {
    color: #877b69;
    font-size: 10px;
}

#recent-topics dd.lastpost {
    bottom: 3px;
    right: 5px;
    line-height: normal;
    display: block;
    min-height: inherit;
    width: auto;
    text-align: right;
}

#recent-topics dl {
    position: relative;
}

#recent-topics dd.status-icons {
    position: absolute;
    top: 3px;
    right: 5px;
    min-height: inherit;
}

#recent-topics dd.status-icons > a,
#recent-topics dd.status-icons > span {
    float: right;
    margin-left: 2px;
}

#recenttopicstop  .action-bar {
    margin-top: 0;
    margin-bottom: 12px;
}

#recenttopicstop  .action-bar .pagination {
    margin-top: 0;
}

#recenttopicsbottom .forabg + .action-bar {
    margin-top: 0.5em;
}

/* Recent Topics custom
--------------------------------------------- */

#recent-topics-box ul.topiclist li.row dl {
    background-image: none;
    position: relative;
}

#recent-topics-box dl.row-item dt {
    background-image: none !important;
}

#recent-topics-box ul.topiclist dl {
    /* display: flex; */
}

#recent-topics-box ul.topiclist dl dt {
    /* flex-grow: 1; */
    margin-right: 0;
    width: 100%;
}

#recent-topics-box ul.topiclist li:not(.header) dt .list-inner {
    margin-right: 0;
}

#recent-topics-box ul.topiclist dl dd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-inline-start: 45px;
    min-height: auto;
    padding: 0;
}

#recent-topics-box ul.topiclist dl dd > div {
    background-color: var(--tag-background-color);
    padding: 2px 10px;
}

#recent-topics-box ul.topiclist dl dd .icon {
    color: var(--icon-main);
}

@media only screen and (max-width: 700px) {

    #recent-topics-box ul.topiclist dl {
        flex-direction: column;
    }
    
    #recent-topics-box ul.topiclist dl dd {
        flex-basis: auto;
        margin-inline-start: 46px;
    }

}

