/* закругления углов у вставок рамки в редакторе ДЛЕ */
.noncontenteditable {
	border-radius: 0.375rem;	
}

/* Стандартное Инфо сообщение */
.message-info {
	position: relative;
	padding: 1rem 1rem;
	margin-bottom: 1rem;
	border: 1px solid transparent;
	border-radius: 0.375rem;
	color: var(--bs-info-text, #055160);
	background-color: var(--bs-info-bg-subtle, #cff4fc);
	border-color: var(--bs-info-border-subtle, #b6effb);
	line-height: 1.5;
}

.message-info__title {
	font-weight: 700;
	margin-bottom: 0.25rem;
}

.message-info a {
	color: inherit;
	font-weight: 700;
	text-decoration: underline;
}

.message-info a:hover {
	color: inherit;
	text-decoration: underline;
	opacity: 0.85;
}

.message-info::before {
	content: none;
}

#dleprofilepopup, #dlepopup-news-edit, #dlepopup {
	background-color: #FAFAFA;
	color:#000!important;
}

/* выравнивание в модальном окне */
#dleprofilepopup .userinfo {
    display: flex;
    align-items: flex-start;
    gap: 1rem;          /* отступ между аватаром и текстом */
    flex-wrap: wrap;    /* на мобильных при необходимости переносится */
}

#dleprofilepopup .userinfo .avatar {
    flex-shrink: 0;     /* аватар не сжимается */
    width: 80px;
    height: 80px;
}

#dleprofilepopup .userinfo .avatar .cover {
    display: block;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    border-radius: 50%; /* круглый аватар, если нужно */
}

#dleprofilepopup .userinfo ul {
    flex: 1;            /* список занимает оставшееся пространство */
    margin: 0;
    padding: 0;
    list-style: none;
}

#dleprofilepopup .userinfo li {
    margin-bottom: 0.5rem;
}

#dlepopup textarea, #dlecomplaint textarea {
    display: block;
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

/* Стили при фокусе */
#dlepopup textarea:focus, #dlecomplaint textarea:focus {
    color: #212529;
    background-color: #fff;
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}
#dlecomplaint {color: #212529!important;}
/* Стили для состояния disabled (если нужно) */
#dlepopup textarea:disabled {
    background-color: #e9ecef;
    opacity: 1;
}

/* Стили для состояния readonly (опционально) */
#dlepopup textarea[readonly] {
    background-color: #e9ecef;
    opacity: 1;
}

/* Для корректной поддержки тёмной темы Bootstrap 5*/
[data-bs-theme="dark"] #dlepopup textarea {
    background-color: #343a40;
    border-color: #495057;
    color: #f8f9fa;
}

[data-bs-theme="dark"] #dlepopup textarea:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}
.xfieldscolright select {
    display: block;
    width: 100%;
    padding: 0.375rem 2.25rem 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--bs-body-color);
    background-color: var(--bs-body-bg);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    border: 1px solid var(--bs-border-color);
    border-radius: 0.375rem;
    appearance: none;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;	
	
}
.xfieldscolright input {
    display: block;
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

/* Состояние фокуса */
.xfieldscolright input:focus {
    color: #212529;
    background-color: #fff;
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Состояние disabled */
.xfieldscolright input:disabled {
    background-color: #e9ecef;
    opacity: 1;
}

/* Состояние readonly */
.xfieldscolright input[readonly] {
    background-color: #e9ecef;
    opacity: 1;
}

/* Тёмная тема (если на сайте используется data-bs-theme="dark") */
[data-bs-theme="dark"] .xfieldscolright input {
    background-color: #343a40;
    border-color: #495057;
    color: #f8f9fa;
}

[data-bs-theme="dark"] .xfieldscolright input:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    color: #f8f9fa;
    background-color: #343a40;
}


/* кнопка при регистрации у Правил сайта */
#registration input.bbcodes {
	position: relative;
	padding: 0.8rem 0.8rem;
	margin-bottom: 1rem;
	margin-top: 1.5rem;
	border: 1px solid transparent;
	border-radius: 0.375rem;
	color: #fff;
	background-color: var(--bs-primary, #0d6efd);
	border-color: var(--bs-primary, #0d6efd);
	line-height: 1.5;	
}
#registration input:focus {
	box-shadow: none!important;
}
/* Блок голосования */
#dle-vote {padding-left: 1.15rem;}
.vote-list .vote {
    position: relative;
    margin-bottom: 0.75rem;
    padding-left: 1.15rem;
}

.vote-list .form-check-input {
    position: absolute;
    left: 0;
    top: 0.125rem;
    margin: 0;
    width: 1rem;
    height: 1rem;
}

.vote-list .form-check-label {
    display: inline-block;
    margin-bottom: 0;
    cursor: pointer;
    color: var(--bs-body-color);
}

.vote-list .form-check-label:hover {
    color: var(--bs-primary);
}

/* Адаптация для темной темы */
@media (prefers-color-scheme: dark) {
    .vote-list .form-check-label {
        color: var(--bs-body-color);
    }
}
.vote-list input[type="checkbox"].form-check-input {
    top: 0.125rem;
}

/* календарь */
#arch_calendar table {
    width: 100%;
    margin-bottom: 0;
    background-color: transparent;
}
#arch_calendar th,
#arch_calendar td {
    text-align: center;
    padding: 0.5rem;
    border: 1px solid var(--bs-border-color);
}
#arch_calendar .day_current {
    background-color: var(--bs-primary-bg-subtle);
    font-weight: bold;
}
#arch_calendar .day_other {
    color: var(--bs-secondary-color);
}

/* Выбор темы оформления */
.theme-select-wrapper select {
    display: block;
    width: 100%;
    padding: 0.375rem 2.25rem 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--bs-body-color);
    background-color: var(--bs-body-bg);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    border: 1px solid var(--bs-border-color);
    border-radius: 0.375rem;
    appearance: none;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.theme-select-wrapper select:focus {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: none!important;
}

/* Адаптация для тёмной темы */
[data-bs-theme="dark"] .theme-select-wrapper select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23dee2e6' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
}

/* Если кастомная тёмная тема реализована через медиазапрос */
@media (prefers-color-scheme: dark) {
    .theme-select-wrapper select {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23dee2e6' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    }
}




button.vres,
button.vall {
	width: 40px;
	text-align: center;
	padding: 0 !important;
}

/* Формы */
.form__header {
	margin-bottom: 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.form__title {
	font-size: 24px;
	flex: 1 1 0;
	max-width: 100%;
	min-width: 50px;
}

.form__row {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	align-items: center;
	margin-bottom: 20px;
}

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

.form__caption {
	width: 200px;
	padding-right: 20px;
}

.form__content {
	flex: 1 1 0;
	position: relative;
	max-width: 100%;
	min-width: 50px;
}

.form__label--important::after {
	content: "*";
	margin: 0 0 0 5px;
	color: #e85319;
}

.form__caption--above {
	width: 100%;
	padding: 15px 20px;
	background-color: #2f343a;
	color: #fff;
}

.form__btn--secondary {
	margin-left: 20px;
}

.form__btn--find-related {
	position: absolute;
	right: 0;
	top: 0;
	margin: 0;
	padding: 0 10px;
	font-size: 13px !important;
}

/* Формы расширенные */
.form__content--admintag {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	margin-right: -20px;
}

.form__content--admintag .checkbox {
	width: 33.33%;
	margin-bottom: 20px;
	padding-right: 20px;
}

.checkbox,
.comments_subscribe {
	position: relative;
	padding-left: 10px;
	margin-bottom: 15px;
}

.checkbox span {
	padding-left: 10px;
}

.findrelated {
	margin-top: 10px;
	padding: 8px 10px;
	background-color: #f6e58d;
	font-size: 13px;
}

.form__table {
	width: 100%;
}

.form__table td {
	padding-bottom: 20px;
}

.form__table .addnews {
	width: 200px;
}

.xfields textarea,
.xprofile textarea,
.form__textarea-inside textarea {
	height: 100px !important;
}

#comments_ifr {
	height: 250px !important;
}

.xfields input,
.xprofile input {
	max-width: width 100%;
}

.xfields_table td {
	vertical-align: top;
}

.xfields .bb-editor,
.xfields .wseditor {
	margin-top: 10px;
}

.form__content--sec-code input {
	display: inline-block;
	max-width: 210px;
	vertical-align: middle;
	margin-right: 10px;
	height: 80px;
	line-height: 80px;
	font-size: 24px;
}

.form__content--sec-code>a {
	display: inline-block;
	vertical-align: middle;
}

#result-registration>span {
	display: inline-block;
	margin-top: 10px;
}

.form__content select,
#category {
	width: 100% !important;
}

.form__content--usertag .checkbox {
	width: 50%;
}

/* выбор категории в добавлении новости */
.card-body select {
	display: block;
	width: 100% !important;
	padding: 0.375rem 2.25rem 0.375rem 0.75rem;
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.5;
	color: var(--bs-body-color, #212529);
	background-color: var(--bs-body-bg, #fff);
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
	background-repeat: no-repeat;
	background-position: right 0.75rem center;
	background-size: 16px 12px;
	border: 1px solid var(--bs-border-color, #dee2e6);
	border-radius: var(--bs-border-radius, 0.375rem);
	transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
	appearance: none;
}

.card-body select:focus {
	border-color: var(--bs-primary-border-subtle, #86b7fe);
	outline: 0;
	box-shadow: none!important;
}

/* Адаптация стрелки под тёмную тему (если используется data-bs-theme="dark") */
[data-bs-theme="dark"] .card-body select {
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23dee2e6' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
}

/* статистика и ПМ */
.stats__list {
	width: 33.33%;
	margin-bottom: 20px;
}

.stats__list li {
	padding: 0 15px 10px 1px;
}

.stats h2 {
	font-size: 18px;
	margin-top: 20px;
}

.stats__latest li {
	margin-bottom: 10px;
}

.table-responsive {
	overflow-y: hidden;
	overflow-x: auto;
}

.dle-table,
.pm {
	width: 100%;
	border: 1px solid #cee0ed;
	border-radius: 10px;
}

.dle-table td,
.pm td {
	padding: 10px;
	font-size: 15px;
	border: 1px solid #cee0ed;
}

.dle-table thead tr:nth-child(1),
.pm tr:nth-child(1) {
	background-color: #cee0ed;
}

.dle-table tr:nth-child(2n+2),
.pm tr:nth-child(2n+2) {
	background-color: #f2f6f9;
}

.pm tr td:first-child {
	width: 37px;
}

.pm__links a,
a.pm_list+a {
	margin-right: 20px;
}

.pm__status,
#blind-animation {
	margin-bottom: 40px;
}

.pm_progress_bar {
	border-radius: 4px;
	margin: 10px 0;
	overflow: hidden;
	box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
	background-color: #eee;
}

.pm_progress_bar span {
	background: #6ab04c;
	font-size: 0;
	text-indent: -2000em;
	height: 20px;
	display: block;
	overflow: hidden;
}

.pm select {
	width: 100%;
	margin-bottom: 10px;
}

.pm-item__img {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	margin-right: 20px;
}

.pm-item__text {
	margin: 6px 0 10px 0;
}

.pm-item__meta>span {
	margin-right: 20px;
	font-size: 13px;
}

/* Страница поиска */
.search-page__title {
	font-size: 18px;
	margin-bottom: 20px;
}

.search-page .search>div {
	display: flex;
	justify-content: space-between;
	margin: 0 !important;
	padding: 20px;
	border-radius: 6px;
	padding-bottom: 10px;
}

.search-page .search br {
	display: none;
}

.search-page .search #searchinput1 {
	flex: 1 1 0;
	margin-right: 20px;
	min-width: 100px;
}

#searchinput {
	display: block;
	width: 100%;
	padding: 0.375rem 0.75rem;
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.5;
	color: #212529;
	background-clip: padding-box;
	border: 1px solid #ced4da;
	border-radius: 0.375rem;
	transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

#searchinput:focus {
	color: #212529;
	border-color: #86b7fe;
	outline: 0;

}

.searchstyle {
	width: 480px
}

.search {
	padding: 0
}

#searchtable,
#searchtable td {
	vertical-align: top;
	text-align: left
}

#searchtable fieldset {
	font-size: 18px;
	border: 1px solid #d7d7d7;
	padding: 10px;
	text-align: left;
	margin: 0 4px 4px 0 !important;
	border-radius: 6px
}

fieldset legend {
	font-size: 11px;
	font-weight: bold;
	color: #696969;
}

#searchtable table,
#searchtable form {
	margin: 0;
	width: 100%;
}

#searchtable select :focus {
	border-color: var(--bs-primary-border-subtle, #86b7fe);
	outline: 0;
}

#searchuser,
#searchinput {
	width: 90% !important;
}

.search>div {
	margin-bottom: 10px;
}

.search input[type="text"],
.search select {
	display: block;
	width: 100%;
	padding: 0.375rem 2.25rem 0.375rem 0.75rem;
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.5;
	color: var(--bs-body-color, #212529);
	background-color: var(--bs-body-bg, #fff);
	border: 1px solid var(--bs-border-color, #dee2e6);
	border-radius: var(--bs-border-radius, 0.375rem);
	transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
	appearance: none;
	margin-bottom: 10px;
}

.search input[type="text"]:focus,
.search select:focus {
	border-color: var(--bs-primary-border-subtle, #86b7fe);
	outline: 0;
	box-shadow: none!important;
}

.search input[type="checkbox"],
.search input[type="radio"] {
	margin-right: 5px;
}

#searchinput+br,
#searchinput+br+br {
	display: none;
}

/* Стилизация DLE-селекта выбора региона у пользователя */
.timezoneselect {
	display: block;
	width: 100%;
	padding: 0.375rem 2.25rem 0.375rem 0.75rem;
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.5;
	color: var(--bs-body-color, #212529);
	background-color: var(--bs-body-bg, #fff);
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
	background-repeat: no-repeat;
	background-position: right 0.75rem center;
	background-size: 16px 12px;
	border: 1px solid var(--bs-border-color, #dee2e6);
	border-radius: var(--bs-border-radius, 0.375rem);
	transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
	appearance: none;
}

/* Стили при фокусе */
.timezoneselect:focus {
	border-color: var(--bs-primary-border-subtle, #86b7fe);
	outline: 0;
	box-shadow: none!important;
}

/* Стили для отключённого состояния */
.timezoneselect:disabled {
	background-color: var(--bs-secondary-bg, #e9ecef);
	opacity: 1;
}

/* Адаптация под тёмную тему через data-bs-theme */
[data-bs-theme="dark"] .timezoneselect {
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23dee2e6' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
}

/*--- AJAX LOADER ---*/
#loading-layer {
	color: #11222c !important;
	display: flex !important;
	z-index: 9999 !important;
	background-color: #fff;
	position: fixed;
	top: 20px !important;
	left: auto !important;
	right: 20px;
	bottom: auto;
	height: 80px;
	flex-direction: column;
	justify-content: center;
	width: 340px;
	max-width: calc(100% - 40px);
	padding: 0 20px;
	border-left: 80px solid #11222c;
	box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
	line-height: 1.4;
}

#loading-layer::after {
	border-radius: 50%;
	content: '';
	position: absolute;
	top: 50%;
	left: 0%;
}

#loading-layer::after {
	width: 30px;
	height: 30px;
	margin: -25px 0 0 -65px;
	border: 10px solid rgba(255, 255, 255, 0.2);
	border-left-color: #fff;
	animation: spin 1s infinite linear;
}

@keyframes spin {
	0% {
		transform: rotate(0deg);
	}

	100% {
		transform: rotate(360deg);
	}
}

/*--- Комментарии, спойлеры и т.п. ---*/
.scriptcode,
.title_spoiler,
.text_spoiler {
	padding: 15px 15px 15px 15px;
	background: #f0f0f0;
	border: 1px solid #e3e3e3;
	text-decoration:none;
	border-radius:8px;
	color:#212529;
	margin-bottom: 5px;
}

.title_spoiler a,
.text_spoiler a {
	text-decoration:none;
}

.comment-item__main .quote {
	margin: 0 0 10px 0;
	font-size: 12px;
	padding: 10px 15px 10px 40px;
}

.comment-item__main .quote::before {
	left: 12px;
	top: 6px;
	font-size: 16px;
}

/*--- ответ на комментарий ---*/
.quote_block {
	position: relative;
	padding: 0.8rem 0.8rem;
	margin-bottom: 1rem;
	margin-top: 1.5rem;
	border: 1px solid transparent;
	border-radius: 0.375rem;
	color: var(--bs-info-text, #055160);
	background-color: var(--bs-info-bg-subtle, #cff4fc);
	border-color: var(--bs-info-border-subtle, #b6effb);
	line-height: 1.5;
}

.title_quote {
	font-weight: 700;
	padding: 5px 15px;
	margin-bottom: 0.25rem;
	font-weight: 600;
}

[data-bs-theme="dark"] .title_quote {
	color: #F0F0F0;
}

.quote {
	margin: 10px 0 5px 0;
	padding: 20px 20px 20px 20px;
	position: relative;
	background-color: #f9f2e8;
	color: #5a4f3e;
	border-left: 1px solid #ffc500;
	border-right: 1px solid #ffc500;
	border-radius: 8px;
}

[data-bs-theme="dark"] .quote {
	background-color: #363A40;
	color: #F0F0F0;
}

.title_spoiler {
	margin-top: 2px;
}

.text_spoiler {
	margin-bottom: 2px;
}

.title_spoiler img {
	vertical-align: middle !important;
	margin: 0 5px 0 0;
	border: 0;
}

.scriptcode {
	color: #4c6d0f;
	text-align: left;
	font-family: "Courier New"
}

.title_spoiler {
	font-weight: normal;
}

.text_spoiler {
	border-top: 0;
	text-align: justify;
}

.hide {
	background-color: #f0f0f0;
	padding: 5px;
	color: #000;
	margin: 0 0 1em 0
}

.hide a {
	text-decoration: underline;
}

.hide a:hover {
	text-decoration: none
}

.inhide {
	border: 1px solid #d1e3ef;
	padding: 5px;
	background-color: #fff;
	margin-bottom: 5px
}

/*--- Календарь---*/
.calendar {
	font-size: 13px;
	width: 100%;
	color: #444;
}

.calendar td,
.calendar th {
	padding: 7px 0;
	vertical-align: middle;
	text-align: center;
}

.calendar td.day,
.calendar td.day-active-v,
.calendar th.workday {
	border: 1px solid #e9e9e9;
	background-color: #fff;
}

.calendar td.weekday,
.calendar td.day-active,
.calendar th.weekday {
	border: 1px solid #e3e3e3;
	background-color: #ebeef3;
}

.weekday-active-v,
.day-active-v,
.weekday-active,
.day-active {
	font-weight: bold;
}

.day-active a,
.day-active-v a {
	color: #3c6695;
}

.calendar td.day-current {
	background: #fd8924;
}

.day-current a,
.day-current {
	color: #fff !important;
}

th.monthselect {
	text-align: left;
	padding-bottom: 5px;
}

th.monthselect b {
	font-weight: normal;
}

th.monthselect center {
	text-align: right;
}

.archives {
	display: block;
	color: #3c6695;
	margin-bottom: 7px;
	padding-left: 15px;
	font-size: 14px;
}

.archives:hover {
	text-decoration: underline;
}

.archives b {
	font-weight: 700;
}

.archives+br,
#dle_news_archive_link br {
	display: none;
}

#dle_news_archive_link .archives {
	color: #000;
	margin-bottom: 0;
}

/*--- Рейтинг ---*/
.unit-rating {
	list-style: none;
	margin: 0;
	padding: 0;
	width: 86px;
	height: 17px;
	position: relative;
	background: url(../images/rating.svg) repeat-x;
	display: inline-block;
}

.unit-rating li {
	text-indent: -90000px;
	padding: 0;
	margin: 0;
	float: left
}

.unit-rating li a {
	display: block;
	width: 17px;
	height: 17px;
	text-decoration: none;
	text-indent: -9000px;
	z-index: 17;
	position: absolute;
	padding: 0;
	transition: none;
}

.unit-rating li a:hover {
	background: url(../images/rating.svg) 0 -17px;
	z-index: 2;
	left: 0
}

.unit-rating a.r1-unit {
	left: 0
}

.unit-rating a.r1-unit:hover {
	width: 17px
}

.unit-rating a.r2-unit {
	left: 17px
}

.unit-rating a.r2-unit:hover {
	width: 34px
}

.unit-rating a.r3-unit {
	left: 34px
}

.unit-rating a.r3-unit:hover {
	width: 51px
}

.unit-rating a.r4-unit {
	left: 51px
}

.unit-rating a.r4-unit:hover {
	width: 68px
}

.unit-rating a.r5-unit {
	left: 68px
}

.unit-rating a.r5-unit:hover {
	width: 85px
}

.unit-rating a.r6-unit {
	left: 85px
}

.unit-rating a.r6-unit:hover {
	width: 102px
}

.unit-rating a.r7-unit {
	left: 102px
}

.unit-rating a.r7-unit:hover {
	width: 119px
}

.unit-rating a.r8-unit {
	left: 119px
}

.unit-rating a.r8-unit:hover {
	width: 136px
}

.unit-rating a.r9-unit {
	left: 136px
}

.unit-rating a.r9-unit:hover {
	width: 153px
}

.unit-rating a.r10-unit {
	left: 153px
}

.unit-rating a.r10-unit:hover {
	width: 170px
}

.unit-rating li.current-rating {
	background: url(../images/rating.svg) 0 -34px;
	position: absolute;
	height: 17px;
	display: block;
	text-indent: -9000px;
	z-index: 1
}

/*---BB Редактор УБРАТЬ ? ---*/
.bb-pane {
	border: 1px solid #e3e3e3;
	background: #fff;
	padding: 5px 1px 5px 10px;
	border-radius: 3px 3px 0 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	position: relative;
	z-index: 10;
	background: linear-gradient(to top, #f8f8f8 0%, #fff 80%, #fff 100%);
}

.bb-btn {
	display: inline-block;
	height: 30px;
	line-height: 30px;
	width: 30px;
	margin-right: 5px;
	color: #444;
	cursor: pointer;
	font-size: 12px;
	border-radius: 3px;
	text-align: center;
	transition: all .3s
}

.bb-btn:hover {
	color: #000;
	background-color: #e3e3e3;
}

@font-face {
	font-family: 'bb-editor-font';
	src: url(../webfonts/bb-editor.woff) format('woff');
	font-weight: normal;
	font-style: normal;
}

[class^="bb-btn"],
[class*=" bb-btn"] {
	font-family: 'bb-editor-font';
	font-style: normal;
	font-weight: normal;
	font-variant: normal;
	text-transform: none;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.bb-sel {
	padding: 2px 2px 0 2px;
}

.bb-sel select {
	font-size: 11px;
}

.bb-sep {
	display: inline-block;
	width: 1px;
	padding: 2px;
}

.bb-btn {
	cursor: pointer;
	outline: 0;
}

#b_font select {
	padding: 0px;
}

#b_size select {
	padding: 0px;
}

#b_b:before {
	content: "\f032";
}

#b_i:before {
	content: "\f033";
}

#b_u:before {
	content: "\f0cd";
}

#b_s:before {
	content: "\f0cc";
}

#b_img:before {
	content: "\f03e";
}

#b_up:before {
	content: "\e930";
}

#b_emo:before {
	content: "\f118";
}

#b_url:before {
	content: "\f0c1";
}

#b_leech:before {
	content: "\e98d";
}

#b_mail:before {
	content: "\f003";
}

#b_video:before {
	content: "\e913";
}

#b_audio:before {
	content: "\e911";
}

#b_hide:before {
	content: "\e9d1";
}

#b_quote:before {
	content: "\e977";
}

#b_code:before {
	content: "\f121";
}

#b_left:before {
	content: "\f036";
}

#b_center:before {
	content: "\f037";
}

#b_right:before {
	content: "\f038";
}

#b_color:before {
	content: "\e601";
}

#b_spoiler:before {
	content: "\e600";
}

#b_fla:before {
	content: "\ea8d";
}

#b_yt:before {
	content: "\f166";
}

#b_tf:before {
	content: "\ea61";
}

#b_list:before {
	content: "\f0ca";
}

#b_ol:before {
	content: "\f0cb";
}

#b_tnl:before {
	content: "\ea61";
}

#b_br:before {
	content: "\ea68";
}

#b_pl:before {
	content: "\ea72";
}

#b_size:before {
	content: "\f034";
}

#b_font:before {
	content: "\f031";
}

#b_header:before {
	content: "\f1dc";
}

#b_sub:before {
	content: "\f12c";
}

#b_sup:before {
	content: "\f12b";
}

#b_justify:before {
	content: "\f039";
}

.bb-pane h1 {
	font-size: 36px;
	margin-top: 5px;
	margin-bottom: 5px
}

.bb-pane h2 {
	font-size: 30px;
	margin-top: 5px;
	margin-bottom: 5px
}

.bb-pane h3 {
	font-size: 24px;
	margin-top: 5px;
	margin-bottom: 5px
}

.bb-pane h4 {
	font-size: 18px;
	margin-top: 5px;
	margin-bottom: 5px
}

.bb-pane h5 {
	font-size: 14px;
	margin-top: 5px;
	margin-bottom: 5px
}

.bb-pane h6 {
	font-size: 12px;
	margin-top: 5px;
	margin-bottom: 5px
}

.bb-pane-dropdown {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 1000;
	display: none;
	float: left;
	min-width: 180px;
	padding: 5px 0;
	margin: 2px 0 0;
	list-style: none;
	font-size: 11px;
	border: 1px solid rgba(0, 0, 0, 0.15);
	border-radius: 4px;
	background: white;
	box-shadow: 0 1px 2px #dadada
}

.bb-pane-dropdown>li>a {
	display: block;
	padding: 3px 10px;
	clear: both;
	font-weight: normal;
	line-height: 1.42857;
	color: #333333;
	white-space: nowrap
}

.bb-pane-dropdown>li>a:hover,
.bb-pane-dropdown>li>a:focus {
	text-decoration: none;
	color: #262626;
	background-color: whitesmoke
}

.bb-pane-dropdown .color-palette div .color-btn {
	width: 17px;
	height: 17px;
	padding: 0;
	margin: 0;
	border: 1px solid #fff;
	cursor: pointer
}

.bb-pane-dropdown .color-palette {
	padding: 0px 5px
}

.bb-editor textarea {
	margin-top: -1px
}

.editorcomm .bb-editor {
	width: 565px;
}

.editorcomm .bb-editor textarea {
	height: 200px;
}

/*--- Быстрое редактирование---*/
.quick-edit-text {
	padding: .4em;
	width: 350px;
}

.quick-edit-textarea {
	height: 250px;
	padding: 2px;
	border: 1px solid #d7d7d7;
	width: 100%;
	box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
}

/*--- Меню ---*/
#dropmenudiv {
	font: 13px Arial;
	padding: 10px;
	display: none;
	background: #ffffff;
	border-radius: 8px;
	box-shadow: 0 0 50px 0 rgba(0, 0, 0, 0.22);
	z-index: 200 !important;
}

#dropmenudiv a {
	display: block;
	text-decoration: none;
	padding: 5px 8px;
	width: 154px;
}

/*--- Галерея ---*/
.highslide-container {
	z-index: 1099 !important;
}

.highslide-wrapper,
.highslide-outline {
	background: #fff;
	color: #000;
}

.highslide-image {
	border: 2px solid #fff
}

.highslide-active-anchor {
	visibility: hidden
}

.highslide-active-anchor img {
	visibility: hidden
}

.highslide-dimming {
	background-color: black
}

.highslide-html {
	background-color: white
}

.highslide-loading {
	display: block;
	color: white;
	font-size: 9px;
	font-weight: bold;
	text-decoration: none;
	padding: 3px;
	border: 1px solid white;
	background-color: black
}

a.highslide-full-expand {
	background: url("../images/fullexpand.gif") no-repeat;
	display: block;
	margin: 0 10px 10px 0;
	width: 34px;
	height: 34px
}

.highslide-display-block {
	display: block
}

.highslide-display-none {
	display: none
}

.highslide-caption {
	display: none;
	padding: 5px;
	background: white
}

.highslide-controls {
	width: 195px;
	height: 40px;
	background: url("../../../engine/classes/highslide/graphics/controlbar-black-border.gif") no-repeat 0 -90px;
	margin-right: 15px;
	margin-bottom: 10px;
	margin-top: 10px
}

.highslide-controls ul {
	position: relative;
	left: 15px;
	height: 40px;
	list-style: none;
	margin: 0;
	padding: 0;
	background: url("../../../engine/classes/highslide/graphics/controlbar-black-border.gif") no-repeat 100% -90px
}

.highslide-controls li {
	float: left;
	padding: 5px 0;
}

.highslide-controls a {
	background: url("../../../engine/classes/highslide/graphics/controlbar-black-border.gif");
	display: block;
	float: left;
	height: 30px;
	width: 30px;
	outline: none
}

.highslide-controls a.disabled {
	cursor: default
}

.highslide-controls a span {
	display: none
}

.highslide-controls .highslide-previous a {
	background-position: 0 0
}

.highslide-controls .highslide-previous a:hover {
	background-position: 0 -30px
}

.highslide-controls .highslide-previous a.disabled {
	background-position: 0 -60px !important
}

.highslide-controls .highslide-play a {
	background-position: -30px 0
}

.highslide-controls .highslide-play a:hover {
	background-position: -30px -30px
}

.highslide-controls .highslide-play a.disabled {
	background-position: -30px -60px !important
}

.highslide-controls .highslide-pause a {
	background-position: -60px 0
}

.highslide-controls .highslide-pause a:hover {
	background-position: -60px -30px
}

.highslide-controls .highslide-next a {
	background-position: -90px 0
}

.highslide-controls .highslide-next a:hover {
	background-position: -90px -30px
}

.highslide-controls .highslide-next a.disabled {
	background-position: -90px -60px !important
}

.highslide-controls .highslide-move a {
	background-position: -120px 0
}

.highslide-controls .highslide-move a:hover {
	background-position: -120px -30px
}

.highslide-controls .highslide-full-expand a {
	background-position: -150px 0
}

.highslide-controls .highslide-full-expand a:hover {
	background-position: -150px -30px
}

.highslide-controls .highslide-full-expand a.disabled {
	background-position: -150px -60px !important
}

.highslide-controls .highslide-close a {
	background-position: -180px 0
}

.highslide-controls .highslide-close a:hover {
	background-position: -180px -30px
}

/* Плавный hover-эффект для карточек комментариев */
.transition-hover {
    transition: background-color 0.2s ease-in-out;
}
.transition-hover:hover {
    background-color: var(--bs-tertiary-bg);
}
/* Ссылка не меняет цвет при наведении, но можно оставить затемнение */
a.text-body:hover {
    color: var(--bs-primary) !important;
}

/*--- Облако тегов ---*/
.clouds_xsmall,
.clouds_small,
.clouds_medium,
.clouds_large,
.clouds_xlarge {
	display: inline-block;
	margin: 0 3px 6px 0;
	text-decoration:none;
}

.clouds_xsmall {
	font-size: 1em
}

.clouds_small {
	font-size: 1em;
}

.clouds_medium {
	font-size: 1em;
}

.clouds_large {
	font-size: 1em
}

.clouds_xlarge {
	font-size: 1em
}

.tag_list span a {
	display: block;
	padding: 5px 7px;
	border: 1px solid #e3e3e3;
	border-radius: 5px;
	text-decoration:none;
}

.tag_list span a:hover {
	background-color: #e3e3e3;
	color: #A60000;
}

.tags_more a {
	margin-top: 8px;
	display: inline-block;
	color: #CD4646;
}

/*--- Поиск выпадающий---*/
#searchsuggestions {
	z-index: 99998;
	width: 400px;
	font-size: 13px;
	background: #fff;
	box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
}

#searchsuggestions a,
#searchsuggestions span {
	display: block;
	text-decoration: none !important;
}

#searchsuggestions a,
#searchsuggestions span.notfound {
	padding: 10px 15px;
	border-bottom: 1px solid #f7f7f7;
}

#searchsuggestions a:hover {
	background-color: #f7f7f7;
}

#searchsuggestions span.searchheading {
	margin-bottom: 10px;
	font-size: 16px;
	text-decoration: none !important;
}

#searchsuggestions span.searchheading+span {
	color: #949494;
	text-decoration: none !important;
}

#searchsuggestions span.seperator a {
	padding: 10px 0;
	text-align: center;
	background-color: #11222c;
	color: #fff;
	text-decoration: none !important;
}

#searchsuggestions span.notfound {
	padding: 15px 20px;
}

#searchsuggestions .break,
#searchsuggestions span.seperator {
	display: none;
}

@media screen and (max-width: 960px) {
	#searchsuggestions {
		width: calc(100% - 40px);
	}
}

/*--- UI виджет ---*/
.ui-widget-overlay {
	background: #000;
	opacity: 0.5;
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
	position: fixed;
}

.ui-dialog {
	background-color: #ffffff;
	position: absolute;
	width: 500px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	border-radius: 10px;
	overflow: hidden;
}

.ui-dialog input
{
	display: block;
	width: 100%;
	padding: 0.375rem 2.25rem 0.375rem 0.75rem;
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.5;
	color: var(--bs-body-color, #212529);
	background-color: var(--bs-body-bg, #fff);
	border: 1px solid var(--bs-border-color, #dee2e6);
	border-radius: var(--bs-border-radius, 0.375rem);
	transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
	appearance: none;
	margin-bottom: 10px;
	background-color: #F4F4F4;
}
.ui-dialog input:focus
{
	border: 0px solid var(--bs-border-color, #dee2e6)!important;
	box-shadow: none!important;
}

.ui-dialog-titlebar {
	background-color: #11222c;
	color: #fff;
}

.ui-dialog-title {
	display: block;
	font-size: 18px;
	padding: 15px 60px 15px 30px;
}

.ui-dialog-content {
	padding: 30px;
	overflow: auto;
	position: relative;
}

.ui-dialog-buttonpane {
	padding: 15px 25px;
	text-align: center;
	background-color: #f7f7f7;
}

.ui-icon-closethick {
	cursor: pointer;
	position: absolute;
	right: 7px;
	top: 7px;
	width: 40px;
	height: 40px;
}

.ui-icon-closethick:before {
	content: "\f00d";
	font-family: 'Font Awesome 6 Free', 'Font Awesome 6 Pro', 'FontAwesome';
	font-weight: 300;
	width: 40px;
	height: 40px;
	line-height: 40px;
	text-align: center;
	color: #fff;
	position: absolute;
	right: 0;
	top: 0px;
	text-indent: 0;
	font-size: 18px;
	display: block;
}

.ui-dialog-buttonpane button {
	height: 30px;
	margin: 0 5px;
	padding: 0 15px;
	font-size: 13px;
}

.ui-dialog .ui-resizable-se {
	bottom: 3px;
	height: 14px;
	right: 3px;
	width: 14px;
}

.ui-draggable .ui-dialog-titlebar {
	cursor: move;
}

.ui-state-error {
	background: #fef1ec 50% 50% repeat-x !important;
	border: 1px solid #cd0a0a;
	color: #cd0a0a;
}

/*--- Прогресбар голосовалки ---*/
.voteprogress,
.pollprogress {
	overflow: hidden;
	height: 15px;
	margin-bottom: 5px;
	background: linear-gradient(to bottom, #f5f5f5, #f9f9f9);
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
	border-radius: 4px
}

.voteprogress span,
.pollprogress span {
	color: #ffffff;
	text-align: center;
	text-indent: -2000em;
	height: 15px;
	display: block;
	overflow: hidden;
	text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
	background: #0e90d2;
	background: linear-gradient(to bottom, #149bdf, #0480be)
}

.voteprogress .vote2,
span.poll1 {
	background-color: #dd514c;
	background: linear-gradient(to bottom, #ee5f5b, #c43c35)
}

.voteprogress .vote3,
span.poll2 {
	background-color: #5eb95e;
	background: linear-gradient(to bottom, #62c462, #57a957)
}

.voteprogress .vote4,
span.poll3 {
	background-color: #4bb1cf;
	background: linear-gradient(to bottom, #5bc0de, #339bb9)
}

.voteprogress .vote5,
span.poll4 {
	background-color: #faa732;
	background: linear-gradient(to bottom, #fbb450, #f89406)
}

/* ---  UI меню --- */
.ui-autocomplete {
	position: absolute;
	cursor: default;
}

.ui-menu {
	list-style: none;
	padding: 2px;
	margin: 0;
	display: block;
	float: left;
	background: #fff 50% bottom repeat-x;
	border: 1px solid #dedede;
	color: #222;
}

.ui-menu .ui-menu {
	margin-top: -3px;
}

.ui-menu .ui-menu-item {
	margin: 0;
	padding: 0;
	zoom: 1;
	float: left;
	clear: left;
	width: 100%;
}

.ui-menu .ui-menu-item a {
	text-decoration: none;
	display: block;
	padding: .2em .4em;
	line-height: 1.5;
	zoom: 1;
}

.ui-menu .ui-menu-item a.ui-state-hover,
.ui-menu .ui-menu-item a.ui-state-active {
	font-weight: normal;
	margin: -1px;
	border: 1px solid #a7a7a7;
	color: #4e4e4e;
	font-weight: bold;
}

/* Контейнер кнопок при редактировании коментария */
.save-buttons {
	display: flex !important;
	justify-content: flex-end !important;
	gap: 0.5rem;
	width: 100% !important;
	padding-top: 5px !important;
}

/* Общие стили для обеих кнопок (как btn) */
.save-buttons input.bbcodes {
	display: inline-block;
	font-weight: 400;
	line-height: 1.5;
	text-align: center;
	text-decoration: none;
	vertical-align: middle;
	cursor: pointer;
	user-select: none;
	background-color: transparent;
	border: 1px solid transparent;
	padding: 0.375rem 0.75rem;
	font-size: 1rem;
	border-radius: var(--bs-border-radius, 0.375rem);
	transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

/* Кнопка "Принять исправления" (основная) */
.save-buttons input.bbcodes.applychanges {
	color: #fff;
	background-color: var(--bs-primary, #0d6efd);
	border-color: var(--bs-primary, #0d6efd);
}

.save-buttons input.bbcodes.applychanges:hover {
	background-color: var(--bs-primary-dark, #0b5ed7);
	border-color: var(--bs-primary-dark, #0a58ca);
}

.save-buttons input.bbcodes.applychanges:focus {
	outline: 0;
	box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb, 13, 110, 253), 0.25);
}

.save-buttons input.bbcodes.applychanges:active {
	background-color: var(--bs-primary-dark, #0a58ca);
	border-color: var(--bs-primary-darker, #0851b5);
	color: #fff;
}

/* Кнопка "Отменить" (вторичная) */
.save-buttons input.bbcodes.cancelchanges {
	color: #fff;
	background-color: var(--bs-secondary, #6c757d);
	border-color: var(--bs-secondary, #6c757d);
}

.save-buttons input.bbcodes.cancelchanges:hover {
	background-color: var(--bs-secondary-dark, #5c636a);
	border-color: var(--bs-secondary-dark, #565e64);
}

.save-buttons input.bbcodes.cancelchanges:focus {
	outline: 0;
	box-shadow: 0 0 0 0.25rem rgba(var(--bs-secondary-rgb, 108, 117, 125), 0.25);
}

.save-buttons input.bbcodes.cancelchanges:active {
	background-color: var(--bs-secondary-dark, #565e64);
	border-color: var(--bs-secondary-darker, #4e555b);
	color: #fff;
}

/* Отключённое состояние (если кнопки могут быть disabled) */
.save-buttons input.bbcodes:disabled,
.save-buttons input.bbcodes.disabled {
	pointer-events: none;
	opacity: 0.65;
}

/* --- TEXT [CODE] --- */
pre {
	display: block;
	padding: 10px;
	background: #F9FAFA!important;
	color: #DCDCDC;
	text-shadow: none!important;
	line-height: 18px!important;
	border-radius: 8px!important;
	white-space: pre-wrap;
	word-break: break-all;
	word-wrap: break-word;
}

pre .tag,
pre.css .class,
pre.css .id,
pre.lisp .title,
pre.nginx .title,
pre .request,
pre .status,
pre .clojure .attribute {
	color: #E3CEAB
}

pre.django .template_tag,
pre.django .variable,
pre.django .filter .argument {
	color: #DCDCDC
}

pre .number,
pre .date {
	color: #8CD0D3
}

pre.dos .envvar,
pre.dos .stream,
pre .variable,
pre.apache .sqbracket {
	color: #EFDCBC
}

pre.dos .flow,
pre.diff .change,
pre.python .exception,
pre.python .built_in,
pre .literal,
pre.tex .special {
	color: #EFEFAF
}

pre.diff .chunk,
pre .subst {
	color: #8F8F8F
}

pre.dos .keyword,
pre.python .decorator,
pre .title,
pre.haskell .type,
pre.diff .header,
pre.ruby .class .parent,
pre.apache .tag,
pre.nginx .built_in,
pre.tex .command,
pre .prompt {
	color: #efef8f
}

pre.dos .winutils,
pre.ruby .symbol,
pre.ruby .symbol .string,
pre.ruby .string {
	color: #DCA3A3
}

pre.diff .deletion,
pre .string,
pre .tag .value,
pre .preprocessor,
pre .pragma,
pre .built_in,
pre.sql .aggregate,
pre .javadoc,
pre.smalltalk .class,
pre.smalltalk .localvars,
pre.smalltalk .array,
pre.css .rules .value,
pre .attr_selector,
pre .pseudo,
pre.apache .cbracket,
pre.tex .formula,
pre.coffeescript .attribute {
	color: #CC9393
}

pre .shebang,
pre.diff .addition,
pre .comment,
pre.java .annotation,
pre .template_comment,
pre .pi,
pre .doctype {
	color: #7F9F7F
}

pre.coffeescript .javascript,
pre.javascript .xml,
pre.tex .formula,
pre.xml .javascript,
pre.xml .vbscript,
pre.xml .css,
pre.xml .cdata {
	color: inherit;
}

/*--- Поделиться ---*/
#marker-bar,
#txtselect_marker {
	display: block;
	visibility: hidden;
	position: absolute;
	bottom: 0;
	z-index: 1200;
	opacity: 0;
	transition: opacity .4s, visibility .1s linear .4s
}

#txtselect_marker {
	cursor: pointer;
	width: 32px;
	height: 32px;
	background: url(../images/marker.png) -0px -0px no-repeat
}

#txtselect_marker:hover {
	background-position: -0px -32px
}

#marker-bar {
	border: 1px solid #ccc;
	border-radius: 15px;
	background: #fff;
	padding: 5px 10px;
	cursor: default;
	box-shadow: 0px 0px 4px #ccc
}

#marker-bar.show,
#txtselect_marker.show {
	visibility: visible;
	transition: opacity .4s, visibility 0s;
	opacity: 1
}

#marker-bar .masha-social,
#marker-bar .masha-marker {
	cursor: pointer;
	display: block;
	margin: 0 5px;
	float: left
}

#marker-bar .masha-marker {
	line-height: 1em;
	color: #aaa;
	border-bottom: 1px dotted #aaa;
	margin-right: 10px
}

#marker-bar .masha-marker:hover {
	color: #ea3e26;
	border-color: #ea3e26
}

.user_selection,
.user_selection_true {
	background: #c4f47d;
	padding: 2px 0
}

.user_selection a.txtsel_close,
.user_selection_true a.txtsel_close {
	display: none
}

.user_selection .closewrap,
.user_selection_true .closewrap {
	position: relative
}

.user_selection.hover a.txtsel_close,
.user_selection_true.hover a.txtsel_close {
	display: inline-block;
	position: absolute;
	top: -7px;
	left: -5px;
	width: 33px;
	height: 33px;
	background: url(../images/closemarker.png) -0px -0px no-repeat
}

.user_selection.hover a.txtsel_close:hover,
.user_selection_true.hover a.txtsel_close:hover {
	background-position: -0px -33px
}

#share-popup {
	background: #fff;
	border: 1px solid #aaa;
	border-radius: 5px;
	box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
	position: absolute;
	width: 414px;
	display: none;
	z-index: 100;
	padding: 10px 0;
	opacity: 0;
	transition: opacity .4s, visibility .1s linear .4s
}

#share-popup.show {
	display: block;
	opacity: 1;
	transition: opacity .4s, visibility 0s
}

#share-popup .social {
	padding: 0 0 10px 17px;
	height: 40px
}

#share-popup .social p {
	padding-bottom: 10px;
	margin: 0;
	font-weight: bold
}

#share-popup .social ul {
	list-style: none;
	margin: 0;
	padding: 0
}

#share-popup .social ul li {
	float: left;
	margin-right: 20px;
	padding-top: 2px;
	position: relative
}

#share-popup .social ul a {
	text-decoration: none;
	font-size: 11px;
	display: inline-block;
	color: #aaa;
	padding-left: 25px
}

#share-popup .social ul a:hover {
	text-decoration: underline;
	color: #ea3e26
}

#share-popup .social a span {
	cursor: pointer;
	width: 20px;
	height: 20px;
	background: url(../dleimages/social-icons.png) 20px 20px no-repeat;
	position: absolute;
	left: 0;
	top: 0
}

#share-popup .social .tw span {
	background-position: 0 -20px
}

#share-popup .social .tw:hover span {
	background-position: 0 0
}

#share-popup .social .fb span {
	background-position: -20px -20px
}

#share-popup .social .fb:hover span {
	background-position: -20px 0
}

#share-popup .social .vk span {
	background-position: -40px -20px
}

#share-popup .social .vk:hover span {
	background-position: -40px 0
}

#share-popup .social .gp span {
	background-position: -60px -20px
}

#share-popup .social .gp:hover span {
	background-position: -60px 0
}

#share-popup .link {
	clear: both;
	border-top: 1px solid #d9d9d9;
	padding: 10px 5px 0 10px;
	line-height: 1.2;
	overflow: hidden;
	margin: 0 7px
}

#share-popup .link p {
	font-weight: bold;
	padding: 0 0 3px 0;
	margin: 0
}

#share-popup .link span {
	color: #999;
	font-size: 10px;
	display: block;
	padding-top: 3px
}

#share-popup .link a {
	display: block
}

/*--- UPDATES TO NEW VERSIONS ---*/

.comments-tree-list {
	display: block;
	margin: 0;
	padding: 0;
	list-style: none;
}

.comments-tree-list .comments-tree-list {
	padding-left: 50px;
	position: relative;
}

.comments-tree-item {
	display: block;
	margin: 0;
	padding: 0;
}

#dlefastreplycomments {
	padding: 10px;
	margin: 10px 0 5px 30px;
	padding-top: 15px;
}

.commentsreplyname {
	padding: 2px;
	border: 1px solid #bcc0c2;
	width: 200px;
	background: #fff;
}

#dlereplypopup form>div {
	margin-bottom: 5px;
}

#dlereplypopup form input[type="text"] {
	height: 30px;
	line-height: 30px;
}

#dlereplypopup form textarea {
	height: 80px;
}

.pollallvotes {
	text-align: center;
	margin-top: 10px;
}

/*--- 11, 12 ---*/
.emoji {
	border: none;
	vertical-align: middle;
	width: 22px;
	height: 22px;
}

.file-box {
	width: 95%;
	max-width: 437px;
	border: 1px solid #B3B3B3;
	border-radius: 3px;
	background-color: #F5F5F5;
	padding: 10px;
	margin-top: 10px;
}

.qq-upload-drop-area {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 2;
	max-width: 437px;
	background: #FF9797;
	text-align: center;
}

.qq-upload-drop-area span {
	display: block;
	position: absolute;
	top: 50%;
	width: 100%;
	margin-top: -8px;
	font-size: 16px;
}

.qq-upload-drop-area-active {
	background: #FF7171;
}

.uploadedfile {
	width: 115px;
	height: 130px;
	margin: 10px 5px 5px 5px;
	border: 1px solid #B3B3B3;
	box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.3);
	text-align: center;
	background: #ffffff;
}

.uploadedfile .uploadimage {
	margin-top: 5px;
	width: 115px;
	height: 90px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: move;
}

.sortable-ghost {
	opacity: 0.4;
}

.uploadedfile .info {
	text-align: left;
	white-space: nowrap;
	margin: 0px 5px 0px 5px;
	overflow: hidden;
}

.progress {
	overflow: hidden;
	margin-top: 10px;
	margin-bottom: 10px;
	background-color: whitesmoke;
	height: 10px;
	border-radius: 8px;
	background: #eee;
	box-shadow: 0 1px 0 white, 0 0px 0 1px rgba(0, 0, 0, 0.1) inset, 0 1px 4px rgba(0, 0, 0, 0.2) inset;
}

.progress .progress-bar {
	float: left;
	width: 0%;
	font-size: 13px;
	line-height: 20px;
	color: white;
	text-align: center;
	background-color: #428bca;
	box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15);
	transition: width 0.6s ease;
	border-radius: 8px;
	box-shadow: none;
	height: 8px;
}

.progress-bar span {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	border: 0;
}

.progress-blue {
	background-image: linear-gradient(to bottom, #9bcff5 0%, #6db9f0 100%);
	background-repeat: repeat-x;
	border: 1px solid #55aeee;
}

/* Стилизация контейнера xfields как строки Bootstrap */
.xfieldsrow {
	display: flex;
	flex-wrap: wrap;
	margin-bottom: 1rem;
	align-items: flex-start;
	/* выравнивание по верхнему краю */
}

/* Левая колонка (метка) — занимает 3 колонки на sm-экранах и выше */
.xfieldscolleft {
	flex: 0 0 auto;
	width: 100%;
	/* на мобильных полная ширина */
	font-weight: 600;
	padding-right: 0.5rem;
	margin-bottom: 0.25rem;
}

/* Правая колонка (поле) — занимает 9 колонок на sm-экранах и выше */
.xfieldscolright {
	flex: 0 0 auto;
	width: 100%;
}

/* На экранах от 576px (sm) переключаем на сетку Bootstrap */
@media (min-width: 576px) {
	.xfieldscolleft {
		width: 25%;
		/* col-sm-3 */
	}

	.xfieldscolright {
		width: 75%;
		/* col-sm-9 */
	}
}

/* Стилизация кнопки загрузки изображения */
.xfieldsrow .qq-upload-button {
	display: inline-block;
	font-weight: 400;
	line-height: 1.5;
	color: #fff;
	text-align: center;
	text-decoration: none;
	vertical-align: middle;
	cursor: pointer;
	background-color: var(--bs-primary, #0d6efd);
	border: 1px solid var(--bs-primary, #0d6efd);
	padding: 0.375rem 0.75rem;
	font-size: 1rem;
	border-radius: var(--bs-border-radius, 0.375rem);
	transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
	box-shadow: none;
	position: relative;
	z-index: 2;
	/* выше шима */
}

.xfieldsrow .qq-upload-button:hover {
	background-color: var(--bs-primary-dark, #0b5ed7);
	border-color: var(--bs-primary-dark, #0a58ca);
	color: #fff;
}

.xfieldsrow .qq-upload-button:focus {
	outline: 0;
	box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Контейнер загрузчика — убираем лишние позиционирования */
#xfupload_tumb {
	position: relative !important;
	display: inline-block;
	/* чтобы ширина была по содержимому */
	width: auto !important;
}

/* Область, куда выводится имя загруженного файла */
#uploadedfile_tumb {
	margin-bottom: 0.5rem;
	font-size: 0.9rem;
	color: var(--bs-body-color, #212529);
}

/* Скрытое поле ввода файла (moxie-shim) — не трогаем, оставляем как есть */
.moxie-shim {
	pointer-events: none;
	/* чтобы не мешало кликам по кнопке, но это может нарушить работу. Лучше не трогать */
}

/* Адаптация для тёмной темы */
[data-bs-theme="dark"] .xfieldsrow .qq-upload-button {
	background-color: var(--bs-primary);
	border-color: var(--bs-primary);
	color: #fff;
}

[data-bs-theme="dark"] .xfieldsrow .qq-upload-button:hover {
	background-color: var(--bs-primary-dark, #0b5ed7);
	border-color: var(--bs-primary-dark, #0a58ca);
}

.xfieldimagegallery {
	display: flex;
	flex-wrap: wrap;
	margin: 20px 0;
	list-style: none;
	padding: 0;
}

.xfieldimagegallery::after {
	content: "";
	display: table;
	clear: both;
}

.xfieldimagegallery li {
	list-style: none;
	margin: 0;
	padding: 5px;
	width: 25%;
	/* 4 элемента в ряд */
	box-sizing: border-box;
}

.xfieldimagegallery li img {
	width: 100%;
	height: auto;
	object-fit: cover;
	border: 5px solid #fff;
	border-radius: 3px;
	transition: all 0.3s ease;
}

.xfieldimagegallery li img:hover {
	box-shadow: 0px 0px 7px rgba(0, 0, 0, 0.4);
	transform: scale(1.02);
}

/* Адаптивность */
@media (max-width: 992px) {
	.xfieldimagegallery li {
		width: 33.333%;
		/* 3 элемента в ряд на планшетах */
	}
}

@media (max-width: 768px) {
	.xfieldimagegallery li {
		width: 50%;
		/* 2 элемента в ряд на мобильных */
	}
}

@media (max-width: 576px) {
	.xfieldimagegallery li {
		width: 100%;
		/* 1 элемент в ряд на очень маленьких экранах */
	}
}

.btn.disabled,
.btn[disabled],
fieldset[disabled] .btn {
	cursor: not-allowed;
	pointer-events: none;
	opacity: 0.65;
}

.dle-captcha {
	position: relative;
}

.dle-captcha:after {
	clear: both;
	display: block;
	content: "";
}

.dle-captcha>a {
	float: left;
	margin-right: 5px;
}

.dle-captcha img {
	position: relative;
	display: block;
	width: 130px;
	height: 46px;
	transition: all ease .2s;
}

.dle-captcha>input {
	float: left;
	width: 130px;
}

.xfieldsnote {
	color: #838383;
	font-size: .9em;
}

.instagram-media,
.twitter-tweet {
	display: inline-block !important;
}

/*--- 13, 14 ---*/
.ui-front {
	z-index: 1000;
}

.ui-button-icon-only {
	overflow: hidden;
	text-indent: -9999px;
}

button.ui-dialog-titlebar-close {
	background: none;
	position: absolute;
	right: 0;
	top: 0;
	width: 40px;
	height: 40px;
	border: none;
	cursor: pointer;
	padding: 0;
}

/* Стили для внутреннего элемента с иконкой */
button.ui-dialog-titlebar-close .ui-icon-closethick {
	display: block;
	width: 100%;
	height: 100%;
}

button.ui-dialog-titlebar-close .ui-icon-closethick::before {
	content: "\f00d";
	font-family: 'Font Awesome 6 Free';
	font-weight: 900;
	font-size: 18px;
	color: #000;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

.emoji_box {
	width: 100%;
	max-width: 390px;
}

.emoji_category {
	padding: 7px;
	clear: both;
}

.emoji_list {
	margin-top: 5px;
	margin-bottom: 5px;
	width: 100%;
	font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'NotoColorEmoji', 'Segoe UI Symbol', 'Android Emoji', 'EmojiSymbols';
	font-size: 2em;
}

.emoji_symbol {
	float: left;
	margin-bottom: 10px;
	width: 12.5%;
	text-align: center;
}

.emoji_symbol a,
.emoji_symbol a:hover {
	cursor: pointer;
	text-decoration: none;
}

.native-emoji {
	font-size: 1.3em;
	font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'NotoColorEmoji', 'Segoe UI Symbol', 'Android Emoji', 'EmojiSymbols';
}

/*--- 14,3 ---*/
/*--- Подсветка исходного кода ---*/
.hljs-comment,
.hljs-quote {
	color: #a0a1a7;
	font-style: italic;
}

.hljs-doctag,
.hljs-keyword,
.hljs-formula {
	color: #a626a4;
}

.hljs-section,
.hljs-name,
.hljs-selector-tag,
.hljs-deletion,
.hljs-subst {
	color: #e45649;
}

.hljs-literal {
	color: #0184bb;
}

.hljs-string,
.hljs-regexp,
.hljs-addition,
.hljs-attribute,
.hljs-meta-string {
	color: #50a14f;
}

.hljs-built_in,
.hljs-class .hljs-title {
	color: #c18401;
}

.hljs-attr,
.hljs-variable,
.hljs-template-variable,
.hljs-type,
.hljs-selector-class,
.hljs-selector-attr,
.hljs-selector-pseudo,
.hljs-number {
	color: #986801;
}

.hljs-symbol,
.hljs-bullet,
.hljs-link,
.hljs-meta,
.hljs-selector-id,
.hljs-title {
	color: #4078f2;
}

.hljs-emphasis {
	font-style: italic;
}

.hljs-strong {
	font-weight: bold;
}

.hljs-link {
	text-decoration: underline;
}

/*--- 15,1 ---*/
figure {
	margin: 0;
}

figure.align-left {
	float: left;
}

figure.align-right {
	float: right;
}

figure.image.align-center {
	display: table;
	margin-left: auto;
	margin-right: auto;
}

figure.image figcaption {
	padding: 1rem;
	background-color: #fafafa;
	font-size: .8rem;
	caption-side: bottom;
	word-break: break-word;
	text-align: center;
}

figure.image.align-center figcaption {
	display: table-caption;
}

/*--- 15,3 ---*/
.comments-image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;            /* отступы между изображениями */
    margin: 0;
    padding: 0;
    list-style: none;
}

.comments-image-gallery li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comments-image-gallery li img {
    border: 5px solid #fff;
    width: 200px;
    height: auto;
    transition: box-shadow 0.5s ease;
    display: block;      /* убираем лишние отступы у inline-элементов */
}

.comments-image-gallery li img:hover {
    box-shadow: 0px 0px 7px rgba(0, 0, 0, 0.4);
}

.comments-image-uploader-area a {
    display: inline-block;
    font-weight: 400;
    line-height: 1.5;
    color: #fff;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    background-color: #0d6efd;
    border: 1px solid #0d6efd;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    border-radius: 0.375rem;
    transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
	margin-top: 15px;
	margin-bottom: 10px;
}

.comments-image-uploader-area a:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

.mce-toc {
	border: 1px solid #dbdada;
	margin: 0 0 .7rem 0;
}

.mce-toc h2 {
	margin: 4px;
}

.mce-toc ul {
	padding-left: 20px;
	list-style: none;
	margin-top: 0;
	margin-bottom: 0;
	margin-block-start: 1em;
	margin-block-end: 1em;
}

.mce-toc ul ul {
	padding-left: 20px;
	margin-block-start: 0;
	margin-block-end: 0;
}

.mce-toc li {
	list-style-type: none;
}

/*--- 16 ---*/
.image-bordered {
	border: 1px solid #ddd;
}

.image-shadows {
	box-shadow: rgb(9 30 66 / 25%) 0px 4px 8px -2px, rgb(9 30 66 / 8%) 0px 0px 0px 1px;
}

.image-padded {
	padding: 0.5rem;
}

.comments-user-profile {
	font-weight: bold;
	cursor: pointer;
	color: #3394e6;
}

/*--- 16 ---*/
.title_spoiler svg {
	vertical-align: middle;
	margin-top: -4px;
	margin-right: 7px;
	height: 16px;
	width: 16px;
}

/*--- 17 ---*/
.mce-accordion summary {
	cursor: pointer;
}

.self_delete_link {
	border: 0 none;
	display: inline-block;
	vertical-align: middle;
	cursor: pointer;
	padding: 12px 27px;
	border-radius: 10px;
	outline: none;
	background-color: #f44336;
	color: #fff;
	text-shadow: 0 1px #333;
	text-decoration: none !important;
	box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.2);
	box-sizing: border-box;
	transition: all ease .1s;
	transition: all ease .1s;
}

/*--- 17,1 ---*/
.DLEPush {
	z-index: 2001;
	position: fixed;
	right: 20px;
	top: 20px
}

@keyframes DLEPush-show {
	0% {
		transform: translateY(100%);
		opacity: 0;
	}

	100% {
		transform: translateY(0);
		opacity: 1;
	}
}

.DLEPush-notification.wrapper {
	animation-name: DLEPush-show;
	animation-duration: 1s;
	position: relative;
	display: grid;
	grid-template-columns: auto 1fr;
	align-items: center;
	color: #333;
	margin-bottom: 10px;
	width: 100%;
	max-width: 400px;
	box-shadow: 0 10px 15px rgb(0 0 0 / 20%);
	background-color: #fff;
	border-radius: 10px
}

.DLEPush-notification .DLEPush-icon {
	grid-column: 1;
	grid-row: 1 / span 2;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	width: 45px;
	height: 100%;
	border-top-left-radius: 10px;
	border-bottom-left-radius: 10px;
	text-align: center;
}

.DLEPush-notification .DLEPush-icon svg {
	scale: .8;
}

.DLEPush-notification .DLEPush-header {
	font-weight: 500;
	grid-column: 2;
	grid-row: 1;
	font-size: 1rem;
	margin-left: 1rem;
	margin-top: .5rem;
}

.DLEPush-notification .DLEPush-header:empty {
	margin-top: 0;
}

.DLEPush-notification .DLEPush-message {
	grid-column: 2;
	grid-row: 2;
	font-size: .875rem;
	margin: 1rem;
}

.DLEPush-notification .DLEPush-message li,
.DLEPush-notification .DLEPush-message ul {
	list-style-type: none;
	padding-left: 0;
}

.DLEPush-notification .DLEPush-close {
	position: absolute;
	top: 8px;
	right: 10px;
	font-weight: 300;
	background: none;
	border: 0;
	font-size: 1.15rem;
	cursor: pointer;
	line-height: 1;
	padding: 0;
	color: inherit;
	outline: 0;
	opacity: 0.75;
}

@media only screen and (min-width: 601px) {
	.DLEPush-notification.wrapper {
		min-width: 400px;
	}
}

.DLEPush-notification .DLEPush-close:hover {
	opacity: 1;
}

.DLEPush-notification.wrapper.push-success {
	background-color: #e0f2f1;
}

.DLEPush-notification.wrapper.push-success .DLEPush-icon {
	background-color: #00897b;
}

.DLEPush-notification.wrapper.push-warning {
	background-color: #FFF3E0;
}

.DLEPush-notification.wrapper.push-warning .DLEPush-icon {
	background-color: #FF9800;
}

.DLEPush-notification.wrapper.push-error {
	background-color: #FBE9E7;
}

.DLEPush-notification.wrapper.push-error .DLEPush-icon {
	background-color: #FF5722;
}

input[type="text"].comments_author_field {
	width: 100%;
	margin-bottom: 10px;
}

/*--- 17,3 ---*/
.ui-dialog-buttonset button.ui-button-delete {
	background-color: #db3a2f !important;
	border-color: #db3a2f !important;
	color: #fff;
	border: 0px solid transparent;
	padding: 0.375rem 0.75rem;
	border-radius: 5px;
}

.ui-dialog-buttonset button.ui-button-delete:hover {
	background-color: #BE2D21;
	border-color: #BE2D21;
	color: #fff;
}

.ui-dialog .ui-dialog-buttonpane button {
	background-color: #6c757d;
	border-color: #6c757d;
	color: #fff;
	border: 0px solid transparent;
	padding: 0.375rem 0.75rem;
	border-radius: 5px;
}

.ui-dialog .ui-dialog-titlebar-close .ui-button-text {
	display: none;
	/* скрываем текст "Close" */
}

.ui-dialog .ui-dialog-titlebar-close::after {
	content: "×";
	font-size: 1.5rem;
	font-weight: 300;
	line-height: 1;
	color: var(--bs-body-color, #000);
}

.form-check-label {
	cursor: pointer;
}

.form-check-label span {
	padding-left: 15px;
}

.form-check-input input {
	appearance: none;
	-webkit-appearance: none;
	display: inline-block;
	transition: all .2s linear;
	height: 20px;
	width: 40px;
	border-radius: 10px;
	background-color: #eee;
	cursor: pointer;
	box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
	position: absolute;
	left: 0;
	top: 50%;
	margin-top: -10px;
}

.form-check-input input::before,
.comments_subscribe input::before {
	content: '';
	width: 18px;
	height: 18px;
	border-radius: 10px;
	position: absolute;
	left: 1px;
	top: 1px;
	background-color: #fff;
	transition: all .2s linear;
}

.form-check-input input:checked,
.comments_subscribe input:checked {
	background-color: #6ab04c;
}

.form-check-input input:checked::before,
.comments_subscribe input:checked::before {
	left: 21px;
}

/*--- 18 ---*/
.pm th {
	text-align: left;
	font-weight: 600;
	white-space: nowrap;
}

.pm th.pm_checkbox {
	text-align: center;
}

.pm_list.pm_subj,
.pm_list.pm_icon,
.pm_list.pm_last_user {
	cursor: pointer;
}

.pm_list.pm_icon svg {
	width: 1.4rem;
	height: 1.4rem;
	vertical-align: middle;
	margin-left: 15px;
}

.pm_checkbox checkbox {

	border: 1px solid #f5f5f5;
	background-color: #ffffff;
	padding: 10px;
}

.pm_list.pm_icon.pm-unread-image {
	color: #3394e6;
}

.pm td.pm_list.pm_icon,
.userstop td,
th.pm_head.pm_icon {
	border-bottom: none;
}

.pm_list.pm_icon.pm-reply-image {
	color: #087e02;
}

.pm_list.pm_icon.pm-read-image {
	color: #afafaf;
}

.pm_list .pm_last_message,
.pm_list .pm_last_date,
.pm_list .pm_with_user {
	color: #64748b;

}

.pm tbody>tr:hover {
	background-color: #e2e8f0;
}

.pm_navigation {
	margin-top: 1rem;
}

.pm_navigation .navigation {
	display: inline-block;
	color: #333333;
	background-color: #f5f5f5;
	border-radius: 0.188rem;
	padding: .4rem;
}

.pm_navigation .navigation a,
.pm_navigation .navigation span {
	padding: 0.5rem;
	min-width: 2.25rem;
}

.pm_navigation .navigation span {
	background-color: #4581d0;
	color: #fff;
}

.pm_navigation .navigation a {
	text-decoration: none;
	color: #000;
}

.pm_navigation .navigation a:hover {
	background-color: #e2e8f0;
}

.pm table {
	border-collapse: separate;
	border-spacing: 0;
	border-radius: 10px;
	overflow: hidden;
	width: 100%;
	border: 0px solid #dedede;
	font-size: 1 em;
	margin: 20px 0 30px 0;
}

.pm td,
.pm th {
	border: 0;
	padding: 15px 5px;
	text-align: left;
	border: 0px solid #dedede;
}

.pm th {
	text-transform: uppercase;
	padding: 15px 5px;
	background: #CF5957;
	color: #fff;
	font-size: 0.9em;
	border: 0px solid #dedede;
	font-weight: 600;
}

[data-bs-theme="dark"] .pm th {
	background-color: var(--bs-dark);
	border-color: var(--bs-gray-700);
	color: var(--bs-light);
}

.pm tr {
	background: #fff;
}

.pm table td:first-child {
	text-align: left;
	padding-left: 24px;
}

.pm table tr:nth-child(odd) {
	background: #fcfcfc;
}

.pm td.pm_checkbox {
	text-align: center;
}

.pm td.pm_last_user {
	margin-left: 15px !important;
}

.pm th.pm_last_user {
	margin-left: 15px !important;
}

.pm th.pm_head {
	margin-left: 15px !important;
}

.pm th.pm_subj {
	margin-left: 15px !important;
}

.pm_list,
.pm_last_message,
.pm_last_date {
	margin-left: 15px !important;
}

.pm_head {
	margin-left: 15px !important;
}

.pm_navigation {}

#pmlist_doaction {
	margin-bottom: 30px;
}

.comment {
	padding: 20px;
	position: relative;
	border: 1px solid #f5f5f5;
}

.com_list .comment {
	border-top: 1px solid #efefef;
	background-color: transparent;
	margin: 0;
	border-radius: 0;
	box-shadow: none;
	-webkit-box-shadow: none;
}

.avatar {
	display: inline-block;
}

.avatar .cover {
	width: 100px;
	height: 100px;
	border-radius: 50%;
	white-space: nowrap;
	text-indent: -9999px;
	display: inline-block;
}

.comment .avatar {
	float: left;
	margin-right: 15px;
	position: relative;
}

.comment .avatar .cover {
	width: 36px;
	height: 36px;
}

.com_online {
	position: absolute;
	left: 100%;
	top: 50%;
	margin: -4px 0 0 -4px;
	overflow: hidden;
	text-indent: -9999px;
	background-color: #70bb39;
	border: 2px solid #fff;
	width: 4px;
	height: 4px;
	border-radius: 50%;
}

.usp__columns1 {
	padding: 20px;
	background-color: #E2E2E2;
}

.pm_txt {
	padding: 20px;
}

.usp__group1 {
	padding-top: 10px;
	padding-bottom: 10px;
	margin-left: 12px;
}

.pm_message-actions {
	display: flex;
	gap: 0.25rem;
}

/* Базовая кнопка действия */
.pm_action-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	padding: 0;
	border: none;
	background: transparent;
	color: var(--bs-secondary-color, #6c757d);
	border-radius: var(--bs-border-radius-pill, 50%);
	cursor: pointer;
	transition: all 0.15s ease-in-out;
}

.pm_action-btn:hover {
	background-color: var(--bs-tertiary-bg, #e9ecef);
	color: var(--bs-body-color, #212529);
}

/* Кнопки с опасным действием (жалоба, удаление) */
.pm_action-btn--danger {
	color: var(--bs-danger, #dc3545);
}

.pm_action-btn--danger:hover {
	background-color: var(--bs-danger-bg-subtle, #f8d7da);
	color: var(--bs-danger, #dc3545);
}

/* Скрытый текст для скринридеров */
.pm_visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Адаптация для тёмной темы */
[data-bs-theme="dark"] .pm_action-btn {
	color: var(--bs-secondary-color, #adb5bd);
}

[data-bs-theme="dark"] .pm_action-btn:hover {
	background-color: var(--bs-tertiary-bg, #2b3035);
	color: var(--bs-body-color, #f8f9fa);
}

.pm_navigation select {
	width: 300px;
	padding: 0.275rem 2.25rem 0.375rem 0.75rem;
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.5;
	color: var(--bs-body-color, #212529);
	background-color: var(--bs-body-bg, #fff);
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
	background-repeat: no-repeat;
	background-position: right 0.75rem center;
	background-size: 16px 12px;
	border: 1px solid var(--bs-border-color, #dee2e6);
	border-radius: var(--bs-border-radius, 0.375rem);
	transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
	appearance: none;
}

.pm_navigation select:focus {
	border-color: var(--bs-primary-border-subtle, #86b7fe);
	outline: 0;

}

.pm_navigation .bbcodes {
	display: inline-block;
	font-weight: 400;
	line-height: 1.5;
	color: #fff;
	text-align: center;
	text-decoration: none;
	vertical-align: middle;
	cursor: pointer;
	user-select: none;
	background-color: var(--bs-danger, #dc3545);
	border: 1px solid var(--bs-danger, #dc3545);
	padding: 0.275rem 0.75rem;
	font-size: 1rem;
	border-radius: var(--bs-border-radius, 0.375rem);
	transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.pm_navigation .bbcodes:hover {
	background-color: var(--bs-danger-dark, #bb2d3b);
	border-color: var(--bs-danger-dark, #b02a37);
	color: #fff;
}

.searchtable .bbcodes {
	display: inline-block;
	font-weight: 400;
	line-height: 1.5;
	color: #fff;
	text-align: center;
	text-decoration: none;
	vertical-align: middle;
	cursor: pointer;
	user-select: none;
	background-color: var(--bs-danger, #dc3545);
	border: 1px solid var(--bs-danger, #dc3545);
	padding: 0.175rem 0.75rem;
	font-size: 1rem;
	border-radius: var(--bs-border-radius, 0.375rem);
	transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
	margin-left: 15px;
}

.searchtable .bbcodes:hover {
	background-color: var(--bs-danger-dark, #bb2d3b);
	border-color: var(--bs-danger-dark, #b02a37);
	color: #fff;
}

/* Контейнер массовых действий с комментариями*/
.mass_comments_action {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 1rem 0;
}

/* Текст "Выбранные комментарии:" */
.mass_comments_action span {
	white-space: nowrap;
}

/* Стилизация селекта (генерируется без класса) */
.mass_comments_action select {
	display: block;
	width: auto;
	max-width: 300px;
	flex: 1 1 auto;
	padding: 0.375rem 2.25rem 0.375rem 0.75rem;
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.5;
	color: var(--bs-body-color);
	background-color: var(--bs-body-bg);
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
	background-repeat: no-repeat;
	background-position: right 0.75rem center;
	background-size: 16px 12px;
	border: 1px solid var(--bs-border-color);
	border-radius: var(--bs-border-radius);
	transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
	appearance: none;
}

.mass_comments_action select:focus {
	border-color: var(--bs-primary-border-subtle);
	outline: 0;

}

/* Стилизация кнопки с классом bbcodes */
.mass_comments_action input.bbcodes {
	display: inline-block;
	font-weight: 400;
	line-height: 1.5;
	color: #fff;
	text-align: center;
	text-decoration: none;
	vertical-align: middle;
	cursor: pointer;
	user-select: none;
	background-color: var(--bs-primary);
	border: 1px solid var(--bs-primary);
	padding: 0.375rem 0.75rem;
	font-size: 1rem;
	border-radius: var(--bs-border-radius);
	transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.mass_comments_action input.bbcodes:hover {
	background-color: var(--bs-primary-dark, #0b5ed7);
	border-color: var(--bs-primary-dark, #0a58ca);
	color: #fff;
}

.mass_comments_action input.bbcodes:focus {
	outline: 0;

}

/* Адаптация для тёмной темы */
[data-bs-theme="dark"] .mass_comments_action select {
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23dee2e6' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
}

/* --- ADAPTIVE --- */
@media screen and (max-width: 760px) {

	.form__caption:not(.form__caption--above),
	.form__table .addnews {
		width: 100%;
		padding: 0 0 10px 0;
	}

	.form__content--admintag .checkbox {
		width: 100%;
	}

	.usp {
		margin-left: -20px;
		margin-right: -20px;
	}

	.usp__list li {
		width: 100%;
	}

	.comments-tree-list .comments-tree-list {
		padding-left: 0;
	}
}

@media screen and (max-width: 590px) {
	.form__title {
		font-size: 18px;
	}

	.form__header .form__btn .far {
		display: none;
	}

	.form__btn--find-related {
		position: static;
		width: 100%;
		margin-top: 10px;
	}

	.qq-upload-button,
	.pm__links li,
	.stats__list {
		width: 100% !important;
	}

	.form__row--without-label>.form__btn,
	.pm__links li a {
		width: 100%;
		margin: 10px 0 0 0;
	}

	.form__content--sec-code input {
		max-width: 100%;
		width: 100%;
		margin: 0 0 10px 0;
		height: 40px;
		line-height: 40px;
		font-size: 16px;
	}

	.usp__right,
	.usp__meta .usp__btn {
		width: 100%;
		margin-top: 20px;
		margin-left: 0;
	}

	.usp__left {
		width: 60px;
		margin-right: 10px;
	}

	.usp__img {
		width: 60px;
		height: 60px;
	}

	.usp__status {
		width: auto;
		margin: 0;
		padding-left: 10px;
		padding-right: 10px;
	}

	.usp__activity {
		justify-content: flex-end;
		text-align: right;
	}

	.ui-dialog {
		width: 100% !important;
	}

	.usp-popup__left {
		margin: 0 auto 15px auto;
		width: 100%;
	}

	.ui-dialog .ui-dialog-buttonpane button {
		margin: 0 0 5px 0;
		width: 100%;
	}

	#dofullsearch,
	#searchsuggestions span.seperator {
		display: none !important;
	}

	.dcont button {
		font-size: 13px;
		padding: 0 15px !important;
	}

	.comments-tree-list .comments-tree-list {
		padding-left: 0px !important;
	}

	.comments-tree-list .comments-tree-list:before {
		display: none;
	}

	.mass_comments_action {
		display: none;
	}
}

/*--- 18.1 ---*/
.quote_link {
	float: right;
}

.quote_link svg {
	color: #6c838e;
	vertical-align: middle;
}

/*--- 19 ---*/
.clipboard-copy-link svg {
	color: #6c838e;
	vertical-align: middle;
	margin-top: -3px;
}

/*--- 19.1 ---*/

/* Оформление Яндекс Captcha */
.smart-captcha {
	display: inline-block;
}

/* Оформление математических формул */
.mathml-container {
	font-family: math;
}

div.mathml-block {
	font-size: 1.1em;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: .139em .35em;
}

div.mathml-block .katex {
	font-size: 1.1em;
}

span.mathml-inline {
	display: inline-block;
	vertical-align: middle;
	margin: 0 .12em;
}

/* Оформление блока скрытого текста */
.dleshowhidden {
	position: relative;
	padding: 1rem 1rem;
	margin-bottom: 1rem;
	margin-top: 1rem;
	border: 1px solid transparent;
	border-radius: 0.375rem;
	color: var(--bs-info-text, #055160);
	background-color: var(--bs-info-bg-subtle, #cff4fc);
	border-color: var(--bs-info-border-subtle, #b6effb);
	line-height: 1.5;
}
[data-bs-theme="dark"] .dleshowhidden {
    color: #8AE6F9;
}

/* все инпуты убрать тень */
input:focus {
	box-shadow: none!important;
}
textarea:focus {
	box-shadow: none!important;
}