.topic {
    .post-header {
        padding-top: 12px;
        margin-bottom: 24px;

        .post-time {
            font-size: 13px;
            color: #bbb;
        }

        .post-editor {
            margin-left: 10px;
        }

        .votes {
            a {
                padding: 0 10px;
                color: #777;

                &.upvoted, &.downvoted, &:hover {
                    color: @primary-color;
                }
            }
        }
    }

    [component="post"] {
        padding-bottom: 20px;
        margin-bottom: 10px;
        border-bottom: 1px solid #ddd;

        &.deleted {
            .post-content {
                opacity: .3;
            }
        }

        &.highlight {
            border-bottom: 1px solid @primary-color;
        }
    }

    .post {
        .post-author {
            text-align: center;
            padding-bottom: 20px;

            a {
                display: inline-block;
            }

            @media (max-width: @screen-xs-max) {
                text-align: left;
            }

            .user-icon {
                .user-icon(80px, 4em);

                @media (max-width: @screen-xs-max) {
                    margin-right: 10px;
                    .user-icon(60px, 3em);
                }
            }

            .user-avatar {
                .user-avatar(80px);

                @media (max-width: @screen-xs-max) {
                    margin-right: 10px;
                    .user-avatar(60px);
                }
            }
        }

        .author {
            margin-top: 10px;
            vertical-align: top;

            @media (max-width: @screen-xs-max) {
                display: inline-block;
                margin-top: 0;
            }

            .group-label {
                padding: 0 4px;
                border-radius: 2px;
            }
        }

        .post-content {
            padding-bottom: 15px;

            h1 {
                margin-top: 0;
            }

            > blockquote {
				> blockquote {
					> *:not(.blockquote) {
						display: none;
					}
				}

				> blockquote.uncollapsed {
					> *:not(.blockquote) {
							display: block;
					}
				}
			}
            .toggle {
				padding: 0px 5px;
				border: 1px solid #e0e0e0;
				background: #fcfcfc;
				width: 50px;
				text-align: center;
				display:block!important;
			}
        }

        .post-signature {
            padding-top: 10px;
            margin: 20px 0;
            border-top: 1px dashed #ddd;
        }
    }

    .post-footer {
        .post-tools {
            display: inline-block;
            a {
                padding: 0 10px;
            }
        }

        .moderator-tools {
            display: inline-block;
            padding-right: 10px;
            padding-left: 10px;

            >a {
                color: #333;
            }

            .menu-icon {
                display: inline-block;
            }
        }
    }

    .quick-reply {
        margin-top: 20px;

        .reply-user {
            text-align: center;

            a {
                display: inline-block;

                .user-avatar {
                    .user-avatar(80px);
                }

                .user-icon {
                    .user-icon(80px, 4em);
                }
            }

            .author {
                margin-top: 10px;
            }
        }

        button {
            float: right;
            display: block;
            margin: 10px 15px 10px 0;
        }
    }

    .post-bar {
        margin: 20px 0 40px;

        .stats {
            display: inline-block;
            text-align: center;
            vertical-align: middle;
            padding-right: 10px;
            padding-left: 10px;
        }

        .tags {
            margin-bottom: 20px;

            a {
                color: #999;
                padding: 0 5px;
                border-radius: 4px;
                border: 1px solid @primary-color;

                &:hover {
                    color: @primary-color;
                }

                .tag-item {
                    padding-right: 5px;
                }
            }
        }
    }

    .pagination-block {
		position: fixed;
		background-color: @gray-lighter;
		bottom: 0px;
		right: 0px;
		z-index: 100;
		transition: opacity 250ms ease-in;
		opacity: 0;

		.pagination-text {
			color: @text-color;
			position: relative;
    		top: -3px;
    		font-weight: bolder;
		}

		&.ready {
			opacity: 1;
		}

		.wrapper {
			padding: 5px 0px 5px 0px;
			.dropdown-toggle {
				padding-left: 20px;
				padding-right: 20px;
				padding-top: 10px;
				padding-bottom: 10px;
			}
			.dropdown-menu {
				width: 475px;

				li {
					padding: 15px;
				}
				.post-content {
					height: 350px;
					overflow: hidden;
				}
				.scroller-container {
					height: 300px;
					border-right: 3px solid @gray-lighter;
					margin-right: 3px;
					cursor: pointer;
					.scroller-thumb {
						height: 40px;
						position: relative;
						right: -6px;
						padding-right: 15px;
    					margin-right: -15px;


						.scroller-thumb-icon {
							width: 9px;
							height: 40px;
							background-color: @brand-primary;
							position: relative;
							display: inline-block;
							border-radius: 3px;
						}
						.thumb-text {
							font-weight: bolder;
							user-select: none;
							position: relative;
							top: -15px;
							padding-right: 10px;
						}
					}
				}
			}
			@media (max-width: @screen-sm-min) {
				.dropdown-menu {
					width: 100%;
				}
			}
		}
		.progress-bar {
			background-color: @brand-info;
			display:block;
			z-index: -1;
			position: absolute;
			transition: width 50ms ease-in;
		}
	}
	@media (max-width: @screen-sm-min) {
		.pagination-block {
			width: 100%;
		}
	}
}

.fork-thread-card {
    position: fixed;
    bottom: 60px;
    right: 10px;
    z-index: 1;
}

.selection-tooltip-container {
	position: absolute;
	padding: 5px;
	border: 1px solid @well-border;
	background-color: @well-bg;
	border-radius: 3px;
	margin: 10px 0px 0px 0px;
	z-index: 1;
}

.merge-topic-card {
    position: fixed;
    bottom: 60px;
    right: 10px;
    .topics-section {
		text-align: center;
		max-height: 500px;
		overflow-y: auto;
	}
}

.unread {
    #category-no-topics {
        margin-top: 15px;
    }
}