.forum-topic__collapse-button
{
    margin-left: 3px;
    margin-right: 3px;
    min-height: 14px;
    min-width: 14px;
    background: url(/img/box-cross.gif) center center no-repeat;
    cursor: pointer;
}
.forum-topic__scroll-top-button {
    display: inline-block;
	min-width: 24px;
	min-height: 24px;
	border: 1px solid transparent;
	-webkit-border-radius: 14px;
	-moz-border-radius: 14px;
	border-radius: 14px;
	background: url(/img/arrow-up-gray.png) center no-repeat;
}
.forum-topic__scroll-top-button:hover {
    border-color: silver;
}
.forum-topic__footer,
.message__footer {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 6px;
    padding: 6px;
    text-align: right;
    white-space: nowrap;
    font-size: 12px;
}
.forum-topic__footer
{
    border-bottom: 1px solid #a9a9a9;
}
.forum-topic__footer .link-with-icon,
.message__footer .link-with-icon {
    font-size: 12px;
}
.forum-topic__footer .fast-task-item
{
    margin: 0px;
    font-size: 12px;
}
.forum-posts__navigator
{
    padding: 3px 6px;
}

.forum-post {
    padding-bottom: 120px;
}
.forum-post__table {
    width: 100%;
    max-width: 1000px;
    table-layout: fixed;
    margin-top: 6px;
}
.forum-post__row:first-child .forum-post__info-cell,
.forum-post__row:first-child .forum-post__message-cell
{
    border-top: 1px solid #a9a9a9;
}
.forum-post__row .forum-post__info-cell {
    border-right: 1px dotted #efefef;
}
.forum-post__info-cell {
    vertical-align: top;
    padding: 6px;
}
.forum-post__info-cell {
    border-bottom: 1px solid #a9a9a9;
    background-color: #e5e5e5;
    padding-right: 12px;
    padding-left: 12px;
}

.forum-post__table .forum-post__info-cell {
    position: relative;
    text-align: center;
}

TH.forum-post__info-cell,
TD.forum-post__info-cell {
    padding-right: 12px;
    padding-left: 12px;
}
TH.forum-post__info-cell {
    vertical-align: middle;
}
.row-state-normal TD.forum-post__info-cell {
    background-color: #e5e5e5;
    border-bottom: 1px dotted #c9c9c9;
}
.row-state-hover TD.forum-post__info-cell {
    background-color: #cce7f4;
    border-bottom: 1px dotted #b1ddf4;
}
TR.row-state-hover.forum-topic_sticky TD {
    background-color: #daf3ff;
    border-bottom: 1px dotted #b1ddf4;
}
TR.row-state-hover.forum-topic_sticky TD.forum-post__info-cell {
    background-color: #cce7f4;
    border-bottom: 1px dotted #b1ddf4;
}
.row-state-selected TD.forum-post__info-cell {
    background-color: #b1ddf4;
}

.forum-post__message-cell {
    vertical-align: top;
    border-bottom: 1px solid #a9a9a9;
}
.forum-post__message-cell.message_editing .forum-post__message,
.forum-post__message-cell.message_editing .forum-post__message-bar
{
    display: none !important;
}
form[name=form_create_post] textarea,
form[name=form_message] textarea,
form[name=form_topic] textarea,
.forum-post__message-cell form textarea {
    padding: 9px;
    font-size: 16px;
}
form[name=form_create_post] .form-button-box,
.forum-post__message-cell form .form-button-box
{
    margin-bottom: 12px;
}
.forum-post__message-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #e5e5e5;
    border-bottom: 1px dotted #a6a6a6;
    padding: 6px 12px;
}
.forum-post__message-bar.forum-post__message-bar_with-menu {
    padding-right: 3px;
}
.forum-post__message-bar__pane {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    column-gap: 6px;
}

.forum-post__menu-button
{
    width: 16px;
    height: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}
.forum-post__menu-button > div {
    width: 4px;
    height: 4px;
    border-radius: 2px;
    background-color: #606060;
}
.forum-post__menu-button:hover > div {
    background-color: black;
}

.forum-post__person {
    text-decoration: none;
}
.forum-post__table .forum-post__person {
    line-height: 14px;
    font-size: 12px;
    font-style: italic;
    color: #606060;
}
.forum-post__person[href]:hover
{
    text-decoration: underline;
}
.forum-post__table .forum-post__info-cell .forum-post__person__img-box {
    padding: 6px 0px 3px 0px;
    text-align: center;
}

.forum-post__person .forum-post__person__presence_marker {
    position: absolute;
    top: 9px;
    right: 6px;
    display:inline-block;
    min-height: 8px;
    min-width: 8px;
    vertical-align: baseline;
    border-radius: 4px;
    background-color: green;
}

.forum-post__info-cell .forum-post__person__subscription_marker {
    position: absolute;
    top: 4px;
    left: 4px;
    display:inline-block;
    min-height: 8px;
    min-width: 8px;
    vertical-align: baseline;
    border-bottom-right-radius: 8px;
    background-color: steelblue;
}

.forum-post__index {
    white-space: nowrap;
    text-decoration: none;
    font-size: 14px;
    color: #404040;
}
.forum-post__message {
    padding: 12px;
    white-space: pre-line;
}
.forum-post__message img {
    max-width: 100%;
}
TH.forum-post__subject-cell,
TD.forum-post__subject-cell {
    padding-left: 12px;
    padding-right: 12px;
}
.forum-post__subject {
    margin-bottom: 6px;
    text-decoration: none;
    font-weight: bold;
}
.forum-post__subject:hover {
    text-decoration: underline;
}
.forum-post__subject-content {
    max-width: 600px;
}
.forum-post__subject-content p.form-hint,
.rus-name-topic__comment.form-control {
    word-break: break-all;
    word-break: break-word;
    word-wrap: break-word;
}
.forum-post__subject.forum__name {
    font-size: 16px;
}
.forum-post__message-bar__pane__item,
.forum-post__message-bar__pane__item .command,
.forum-post__time {
    font-size: 14px;
    color: #606060;
}
.forum-post__message-bar__pane__item .command:hover {
    border-color: #606060;
}
.forum-post__message-bar__pane__item span,
.forum-post__time span {
    white-space: nowrap;
}
.forum-post__unread-link.link-with-icon
{
    padding: 0px 12px;
    background-image: none;
    display: none;
}
.forum-topic_has-new .forum-post__unread-link
{
    display: inline-block;
}

.forum-post__row.forum-post__unread-message .forum-post__message-cell {
    background-color: #f9f9e0;
}

.forum-post__regular-topic {
    width: 100%;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.forum-post__regular-topic a {
    width: 100%;
    display: inline-block;
    padding: 18px;
}
.forum-post__regular-topic a:hover {
    border: 1px dotted #666;
    border-radius: 3px;
}
.forum-post__regular-topic a:hover img {
    filter: brightness(0.75);
}

.forum-post__code {
    margin: 3px 0px;
    border: 1px solid #a9a9a9;
    background-color: #eee;
    border-radius: 3px;
    padding: 6px;
    overflow-x: auto;
}
.forum-post__code code {
    font: inherit;
    font-family: Courier New;
    font-style: normal;
    color: initial;
}
.forum-post__quote {
    margin: 3px 0px;
    border: 1px solid #a9a9a9;
    border-left: 3px solid #606060;
    border-right: 3px solid #606060;
    background-color: white;
    padding: 0px 9px;
}
.forum-post__quote.forum-post__quote_with-cite {
    padding-top: 9px;
}
.forum-post__quote blockquote {
    margin: 0px;
    padding: 6px 0px;
    overflow-x: auto;
    font-style: italic;
    color: #606060;
}
.forum-post__quote cite {
    font-size: 14px;
    font-style: normal;
    font-weight: bold;
}
.forum-post__list {
    margin-top: 3px;
    margin-bottom: 3px;
}
.forum-post__url {
    display: inline-block;
    vertical-align: top;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.forum-post__attachments {
    padding-top: 9px;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-start;
    flex-wrap: wrap;
}

.forum-post-attachment__control {
    display: inline-block;
    position: relative;
    cursor: pointer;
}

.forum-post-attachment__control .post-attachment__input {
    position: absolute;
    left: 0px;
    top: 0px;
    right: 0px;
    bottom: -1px;
    opacity: 0;
    cursor: pointer;
}
.forum-post-attachment__separator {
    margin: 0px 0.5em;
    color: gray;
}

.forum-post__attachment {
    display: inline-block;
    position: relative;
    height: 200px;
    width: 200px;
    margin: 0px 6px 6px 0px;
    border: 1px solid silver;
    border-radius: 2px;
    background-color: #f0f0f0;
    overflow: hidden;
}
.forum-post__attachment.forum-post__attachment_oversized {
    border-color: red;
    cursor: not-allowed;
}
.forum-post__attachment.forum-post__attachment_oversized .forum-post-attachment__file-name {
    color: red;
}
.forum-post__attachment.forum-post__attachment_to-delete .forum-post-attachment__preview-box {
    opacity: .3;
}
.forum-post__attachment.forum-post__attachment_to-delete .forum-post-attachment__file-name,
.forum-post__attachment.forum-post__attachment_to-delete .forum-post-attachment__file-ext {
    text-decoration: line-through;
}
.forum-post-attachment__file-name {
    position: absolute;
    left: 0px;
    right: 0px;
    bottom: 0px;
    background-color: #e5e5e5;
    padding: 3px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    text-align: center;
    font-size: 12px;
}
.forum-post-attachment__preview-box {
    height: 180px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f6f6f6;
}
.forum-post-attachment__preview-box > a {
    text-decoration: none;
    color: inherit;
}
.forum-post-attachment__file-ext {
    text-transform: uppercase;
    font-size: 48px;
    font-weight: bold;
}
.forum-post-attachment__image-ext {
    padding: 20px;
    border: 1px solid #e0e0e0;
    background-color: #fefefe;
    color: darkgreen;
}
.forum-post-attachment__button {
    position: absolute;
    top: 3px;
    right: 3px;
    cursor: pointer;
}
.forum-post-attachment__bbcode {
    position: absolute;
    top: 3px;
    left: 3px;
    cursor: pointer;
}
.form_create_post__open .forum-post-attachment__bbcode.forum-post-attachment__existing {
    display: block !important;
}
.forum-post__attachment_to-delete .forum-post-attachment__bbcode {
    display: none;
}

TH.forum-topic__extra-image-cell {
    padding-left: 6px;
    padding-right: 6px;
}
TD.forum-topic__extra-image-cell {
    padding: 6px;
}

A.forum-topic__extra-content {
    display: inline-block;
}

.forum-topic__state {
    display: inline-block;
    box-sizing: border-box;
    width: 16px;
    height: 16px;
    border: 1px solid silver;
    border-radius: 3px;
}
TABLE.forum-table .forum-topic__state {
    margin-top: 3px;
}

.forum-topic__state.closed {
    border: none;
	background: url(/img/menu-icon-lock.gif) 0px 0px no-repeat;
}

TR.forum-topic_sticky TD.forum-topic__state-cell .forum-topic__state {
    border: none;
	/*background: url(/img/menu-icon-info.gif) center center no-repeat;*/
	background: url(/img/msg-icon-warning.gif) center center no-repeat;
}
TR.forum-topic_sticky TD {
    background-color: #efefef;
    border-bottom-color: #cdcdcd;
}
TR.forum-topic_unread:not(:hover) TD.forum-post__info-cell {
    background-color: #deded7;
    border-bottom-color: #a9a9a9;
}
TR.forum-topic_unread:not(:hover) TD:not(.forum-post__info-cell) {
    background-color: #eaffe0;
    border-bottom-color: #cdcdcd;
}

TABLE.forum-table.list-table TD {
    padding-top: 6px;
    padding-bottom: 6px;
}
.nav.forum-topic__navigator {
    padding-left: 0px;
}
.nav.forum-topic__navigator .nav-controls-forward,
.nav.forum-topic__navigator .nav-link-prev,
.nav.forum-topic__navigator .nav-controls-backward .nav-control-separator:first-of-type
{
    display: none;
}
