
#thread-header-container {
    position: absolute;
    top: 0;
    left: 0;

    overflow: visible;

    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-width: 280px;
    width: max-content;

    background-color: var(--bgcolor-post-node-bg);
    font-family: var(--text-font);
    border: 10px var(--bgcolor-grabbable-border) solid;
    border-top: none;
    border-left: none;

    transition: transform 0.5s;
}

#thread-header-aside {
    position: relative;
}
#thread-header-controls {
    position: absolute;
    left: 0;
    transform: translateY(10px);
}
#thread-header-showhide {
    background-color: var(--bgcolor-post-node-bg);
    border: 5px var(--bgcolor-grabbable-border) solid;
    color: var(--text-color-01);
    padding: 4px;
    font-weight: bold;
    width: max-content;
    font-size: 1rem;

    cursor: pointer;
}

#thread-tags {
    display: grid;
    place-items: center;

    min-width: 280px;
    max-width: 400px;
    overflow-x: auto;
}

#thread-tags-ul {
    list-style: none;
    margin: 5px 0;
    padding: 0;

    display: flex;
    align-items: center;
}

.catalog-item-tag {
    border-radius: 0.3rem;
    color: var(--color-tag);
    margin: 0 0.1rem;
    padding: 0.2rem;
}
.catalog-item-tag::before {
    content: '#';
}

#thread-nav-bar {
    display: flex;
    flex-direction: row;

    justify-content: flex-end;
    color: var(--color-link);
    padding: 4px;
    border-bottom: var(--border-color-01) solid 2px;
}

#thread-nav-bar > a {
    color: var(--color-link);
}

#header-thread-details {
    position: relative;
    width: 100%;
    margin-top: 4px;

    display: grid;
    place-items: center;
    background-color: var(--panel-bg);
}

#thread-subject {
    border-bottom: var(--text-color-04) solid 1px;
    width: 95%;

    text-align: center;
    margin: 0;
    padding: 2px 0;
    font-weight: 700;
    color: var(--thread-subject-color);

    justify-self: center;
}

#header-panel-bottom-section {
    max-height: 350px;
}
#header-panel-bottom-tabs {
    margin-bottom: 5px;
    display: flex;
    flex-direction: row;
    padding: 0;
    border-top: 2px solid var(--bgcolor-grabbable-border);
    border-bottom: 2px solid var(--bgcolor-grabbable-border);
}

.header-sub-menu-button {
    padding: 4px;
    background-color: var(--panel-bg);
    color: var(--text-color);
    font-weight: bold;
    font-size: 1rem;
    border: none;
    border-right: 2px solid var(--bgcolor-grabbable-border);
}
.active-sub-menu {
    background-color: var(--bgcolor-grabbable-border);
    color: var(--panel-bg);
}

#moderation-actions-section {
    padding: 0 8px 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.moderation-actions-section-title {
    color: var(--text-color);
}
.bottom-section-title {
    color: var(--text-color);
    border-top: 2px solid var(--bgcolor-grabbable-border);
    font-weight: bold;
    padding: 4px 0 4px 4px;
}
.moderation-actions-fieldset-buttons {
    border-top: 2px solid var(--bgcolor-grabbable-border);
    margin-top: 4px;
    padding-top: 4px;
}

#moderation-notes-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 4px;
}
#moderation-notes-body {
    color: var(--text-color);
    white-space: pre-line;
    justify-self: flex-start;
    width: 88%;
    border-bottom: 1px solid var(--text-color);
}
#selected-posts-list {
    padding: 0;
    margin: 0;
    margin-bottom: 4px;
    overflow-x: auto;
}
#selected-posts-list:empty {
    margin: 0;
}
.selected-post-list-item {
    position: relative;
}
.selected-post-list-item::after {
    content: "";
    position: absolute;
    /* Negative inset values must match your border-width to cover the border image */
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;

    /* Apply your translucent tint color here */
    background-color: rgb(255, 255, 255);
    
    /* Use mix-blend-mode to blend the tint into the underlying image textures */
    mix-blend-mode: difference;
    
    /* Prevent the overlay from blocking mouse clicks on content */
    pointer-events: none; 
}

#thread-topbar-footer {
    padding: 4px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 4px;
}
#thread-topbar-buttons {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    gap: 4px;
}
#thread-topbar-statuses {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.thread-status-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2px;
    color: var(--text-color);
    border: 2px solid var(--text-color);
    border-bottom: none;
    padding: 4px 8px;
}
.thread-status-item:last-child {
    border-bottom: 2px solid var(--text-color);
}
.thread-status-icon {
    width: 18px;
}