/**
 * Блок «Новые сообщения» на портале Board3 (разметка в духе vse_lastmessage).
 */
.b3plastmessage-simple-ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.b3plastmessage-simple-ul > li.row {
	margin: 0;
}

.b3plastmessage-simple-item {
	margin: 0;
}

.b3plastmessage-simple-row {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 0;
}

dl.row-item.b3plastmessage-simple-item.b3plastmessage-simple-with-topic-icon dt.b3plastmessage-simple-row {
	padding-left: 52px;
}

.b3plastmessage:not(.b3plastmessage--compact) .b3plastmessage-simple-with-avatar .b3plastmessage-simple-row {
	padding-left: 0;
	display: flex;
	padding: 0;
}

dl.row-item.b3plastmessage-simple-item.b3plastmessage-simple-with-avatar {
	background-image: none !important;
}

dl.row-item.b3plastmessage-simple-item.b3plastmessage-simple-with-avatar dt.b3plastmessage-simple-row {
	background-image: none !important;
	display: flex;
	padding: 0;
	gap: 7px;
}

.b3plastmessage:not(.b3plastmessage--compact) .b3plastmessage-avatar-wrap.b3plastmessage-simple-avatar {
	flex: 0 0 50px;
	width: 50px;
}

.b3plastmessage:not(.b3plastmessage--compact) .b3plastmessage-avatar-wrap .avatar,
.b3plastmessage:not(.b3plastmessage--compact) .b3plastmessage-avatar-wrap img {
	display: block;
	margin: 0 auto;
	max-width: 50px;
	max-height: 50px;
	width: auto;
	height: auto;
	border-radius: 5px;
}

.b3plastmessage--compact .b3plastmessage-avatar-wrap.b3plastmessage-simple-avatar {
	flex: 0 0 33px;
	width: 33px;
}

.b3plastmessage--compact .b3plastmessage-avatar-wrap .avatar,
.b3plastmessage--compact .b3plastmessage-avatar-wrap img {
	display: block;
	margin: 0 auto;
	max-width: 33px;
	max-height: 33px;
	width: auto;
	height: auto;
	border-radius: 4px;
}

.b3plastmessage-simple-content {
	flex: 1;
	min-width: 0;
	font-size: 10px;
	margin-left: 5px;
}

.b3plastmessage-simple-content > .b3plastmessage__line {
	min-width: 0;
}

.b3plastmessage__line {
	margin: 0 0;
    word-wrap: break-word;
    margin-bottom: 0 !important;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.b3plastmessage__line:first-child {
	margin-top: 0;
}

.b3plastmessage__line:last-child {
	margin-bottom: 0;
}

.b3plastmessage__topic-link {
	text-decoration: none;
}

.b3plastmessage__topic-link:hover {
	text-decoration: underline;
}

/* Непрочитанные темы (есть новые сообщения с последнего просмотра) */
.b3plastmessage .b3plastmessage__topic-link--unread {
	color: #105289;
	font-weight: 600;
}

.b3plastmessage .b3plastmessage__topic-link--unread:hover {
	color: #0c6e2b;
}

.b3plastmessage__meta .username-coloured {
	font-weight: bold;
}

.b3plastmessage__forum a {
	text-decoration: none;
}

.b3plastmessage__forum a:hover {
	text-decoration: underline;
}

.b3plastmessage--empty {
	margin: 0.25em 0 0;
}

.b3plastmessage--compact .b3plastmessage-simple-row {
	padding: 4px 0;
}

.b3plastmessage--compact .b3plastmessage__line {
	margin: 0.1em 0;
}

/* Режим: «Компактный вид блока» */
.b3plastmessage--compact .b3plastmessage-simple-item {
	margin: 0;
}

.b3plastmessage--compact .b3plastmessage-simple-content {
	margin-left: 0;
}

.b3plastmessage--compact .b3plastmessage__topic-link {
	font-size: inherit;
}

.b3plastmessage--compact .b3plastmessage__meta {
	font-size: 10px;
}

.panel {
    margin-bottom: 4px;
    padding: 5px 5px;
    border-radius: 7px;
}

@media (max-width: 700px) {
    
	#portal-left .forabg, #portal-center .forabg, #portal-right .forabg, #portal-top .forabg, #portal-bottom .forabg {
		margin-bottom: 3px;
	 }
	 
}
