/*
 * Заявки на размут.
 *
 * Страница списка равняется на заявки на разбан из Banlist Plus: значения ниже
 * скопированы из modules_extra/banlist_plus/templates/assets/banlist-plus.css,
 * чтобы обе страницы выглядели одинаково. Классы свои (mta-), поэтому модуль
 * остаётся автономным и не ломается, если Banlist Plus отключить.
 * При рестайле Banlist Plus эти значения нужно обновить вручную.
 *
 * Форма и карточка заявки используют ту же палитру, геометрию и плотность flat,
 * но сохраняют собственные классы, чтобы не менять шаблон сайта.
 */

/* ── Компактная панель списка ────────────────────────────────── */
.mta-list-head {
	align-items: center;
	display: flex;
	justify-content: space-between;
}

.mta-list-head small {
	color: rgba(255, 255, 255, .72);
	font-family: "PT Sans", sans-serif;
	font-size: 11px;
	margin-right: 8px;
}

.mta-toolbar {
	align-items: center;
	background: #f4f7f9;
	border: 1px solid #d5e0e8;
	border-radius: 3px;
	display: grid;
	gap: 10px;
	grid-template-columns: minmax(0, 1fr) minmax(190px, 245px) auto;
	margin: 0 0 10px;
	padding: 10px;
}

.mta-server-select {
	position: relative;
}

.mta-server-select > .glyphicon {
	color: #45688e;
	left: 10px;
	pointer-events: none;
	position: absolute;
	top: 10px;
	z-index: 2;
}

.mta-server-select .form-control {
	background: #fff;
	border-color: #c7d3dc;
	border-radius: 3px;
	cursor: pointer;
	font-weight: 600;
	height: 34px;
	overflow: hidden;
	padding-left: 31px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mta-server-select .form-control:focus {
	border-color: #477fae;
	box-shadow: 0 0 0 2px rgba(71, 127, 174, .16);
}

.mta-toolbar-action {
	flex: 0 0 auto;
}

.mta-add-button {
	align-items: center;
	border-radius: 3px !important;
	display: inline-flex;
	font-size: 12px;
	font-weight: 700;
	gap: 7px;
	height: 34px;
	justify-content: center;
	margin: 0 !important;
	padding: 7px 13px;
	white-space: nowrap;
}

/* ── Фильтры статусов ────────────────────────────────────────── */
.mta-status-filters {
	display: flex;
	gap: 4px;
	min-width: 0;
	overflow-x: auto;
	scrollbar-width: none;
}

.mta-status-filters::-webkit-scrollbar {
	display: none;
}

.mta-status-filter {
	align-items: center;
	background: transparent;
	border: 1px solid transparent;
	border-radius: 3px;
	color: #455b6c;
	display: inline-flex;
	flex: 0 0 auto;
	font-size: 12px;
	font-weight: 600;
	gap: 6px;
	height: 34px;
	padding: 0 10px;
	text-decoration: none !important;
	transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.mta-status-filter:hover,
.mta-status-filter:focus {
	background: #e8eff4;
	border-color: #c5d3dc;
	color: #284f6d;
}

.mta-status-filter.active {
	background: #45688e;
	border-color: #45688e;
	color: #fff;
}

.mta-status-filter strong {
	background: #dfe7ec;
	border-radius: 9px;
	color: #516574;
	font-size: 10px;
	line-height: 18px;
	min-width: 18px;
	padding: 0 4px;
	text-align: center;
}

.mta-status-filter.active strong {
	background: rgba(255, 255, 255, .22);
	color: #fff;
}

/* ── Статус-пилюли ───────────────────────────────────────────── */
/* Имена классов зафиксированы: main.js переписывает class у #mta-status. */
.mta-status {
	align-items: center;
	border: 1px solid transparent;
	border-radius: 3px;
	display: inline-flex;
	font-size: 11px;
	font-weight: 700;
	gap: 6px;
	justify-content: center;
	min-height: 27px;
	padding: 3px 8px;
	white-space: nowrap;
}

.mta-status-success { background: #d9f2df; border-color: #9dd5aa; color: #226e38; }
.mta-status-danger  { background: #fde1df; border-color: #efaaa5; color: #a42e28; }
.mta-status-warning { background: #fff0bd; border-color: #e8c865; color: #775a00; }

/* ── Таблица списка ──────────────────────────────────────────── */
.mta-appeals-table {
	border-collapse: separate;
	border-spacing: 0;
	table-layout: fixed;
	width: 100%;
}

.mta-appeals-table > thead > tr > td {
	background: #eaf1f5;
	border-color: #d3dfe7 !important;
	color: #43596b;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .035em;
	padding: 7px 9px !important;
	text-transform: uppercase;
}

.mta-appeals-table > thead td:nth-child(1) { width: 34%; }
.mta-appeals-table > thead td:nth-child(2) { width: 17%; }
.mta-appeals-table > thead td:nth-child(3) { width: 15%; }
.mta-appeals-table > thead td:nth-child(4) { width: 18%; }
.mta-appeals-table > thead td:nth-child(5) { width: 16%; }

.mta-appeals-table > thead td:not(:first-child),
.mta-appeals-table > tbody > .mta-appeal-row > td:not(:first-child) {
	text-align: center;
}

.mta-appeals-table > tbody > .mta-appeal-row > td {
	border-color: #dbe4ea !important;
	overflow-wrap: anywhere;
	padding: 7px 9px !important;
	transition: background-color .15s ease, box-shadow .15s ease;
	vertical-align: middle;
}

.mta-appeal-status-success > td { background: #f0f9f2 !important; }
.mta-appeal-status-danger  > td { background: #fff2f1 !important; }
.mta-appeal-status-warning > td { background: #fff9e9 !important; }
.mta-appeal-status-success:hover > td { background: #e7f5eb !important; }
.mta-appeal-status-danger:hover  > td { background: #fee8e6 !important; }
.mta-appeal-status-warning:hover > td { background: #fff4d8 !important; }

.mta-appeal-status-success > td:first-child { box-shadow: inset 3px 0 #49a363; }
.mta-appeal-status-danger  > td:first-child { box-shadow: inset 3px 0 #d65b52; }
.mta-appeal-status-warning > td:first-child { box-shadow: inset 3px 0 #d7a72e; }

.mta-appeal-title {
	display: inline-block;
	font-size: 13px;
	font-weight: 700;
	line-height: 17px;
	text-decoration: none !important;
}

.mta-appeal-title .glyphicon {
	color: #7290a8;
	font-size: 9px;
	margin-left: 3px;
}

.mta-appeal-title:hover {
	color: #245b88;
	text-decoration: underline !important;
}

.mta-appeal-meta {
	color: #687d8d;
	font-size: 11px;
	line-height: 17px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mta-appeal-reason {
	color: #3e5364;
	font-weight: 600;
}

.mta-meta-dot {
	color: #a3b1bb;
	margin: 0 5px;
}

.mta-user {
	align-items: center;
	display: inline-flex;
	gap: 6px;
	max-width: 100%;
	min-width: 0;
	vertical-align: middle;
}

.mta-user .small_us_av {
	border: 1px solid #45688e;
	height: 24px;
	object-fit: cover;
	width: 24px;
	flex: 0 0 24px;
}

.mta-user > span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mta-muted {
	color: #7c8894;
}

.mta-appeal-date {
	color: #354a5a;
	font-size: 11px;
}

.mta-appeal-date small {
	color: #7d8d98;
	display: block;
	font-size: 10px;
	margin-top: 2px;
}

/* ── Форма подачи ────────────────────────────────────────────── */
.mta-add-page .block {
	padding-bottom: 15px;
}

.mta-add-steps {
	align-items: center;
	background: #f4f7f9;
	border-bottom: 1px solid #d9e3ea;
	color: #496072;
	display: flex;
	font-size: 12px;
	gap: 10px;
	justify-content: center;
	padding: 9px 15px;
}

.mta-add-steps span {
	align-items: center;
	display: inline-flex;
	font-weight: 600;
	gap: 6px;
}

.mta-add-steps b {
	align-items: center;
	background: #45688e;
	border-radius: 2px;
	color: #fff;
	display: inline-flex;
	font-size: 10px;
	height: 19px;
	justify-content: center;
	width: 19px;
}

.mta-add-steps > .glyphicon {
	color: #9aaab6;
	font-size: 8px;
}

.mta-add-search-layout {
	margin: 0;
	padding: 15px 7px 0;
}

.mta-section-heading {
	border-bottom: 1px solid #dfe7ec;
	margin-bottom: 13px;
	padding-bottom: 8px;
}

.mta-section-heading h4 {
	color: #344c60;
	font-size: 14px;
	font-weight: 700;
	margin: 0 0 3px;
}

.mta-section-heading h4 .glyphicon {
	color: #45688e;
	font-size: 12px;
	margin-right: 4px;
}

.mta-section-heading p {
	color: #718391;
	font-size: 11px;
	line-height: 16px;
	margin: 0;
}

.mta-field-label {
	color: #3d5364;
	display: block;
	font-size: 12px;
	margin-bottom: 5px;
}

.mta-field-label small {
	color: #7a8b97;
	font-weight: normal;
}

.mta-required {
	color: #c54c43;
	font-weight: 700;
}

.mta-add-page .form-control {
	border-color: #c9d4dc;
	border-radius: 2px;
}

.mta-add-page input.form-control,
.mta-add-page select.form-control {
	height: 35px;
}

.mta-add-page .form-control:focus {
	border-color: #477fae;
	box-shadow: 0 0 0 2px rgba(71, 127, 174, .13);
}

.mta-search-control {
	display: grid;
	gap: 7px;
	grid-template-columns: minmax(0, 1fr) auto;
}

.mta-search-control .btn2 {
	align-items: center;
	display: inline-flex;
	font-size: 12px;
	font-weight: 700;
	gap: 5px;
	height: 35px;
	justify-content: center;
	margin: 0;
	min-width: 125px;
}

.mta-search-result:not(:empty) {
	margin-top: 10px;
}

.mta-search-item {
	background: #f8fafb;
	border: 1px solid #d6e0e7;
	border-left: 3px solid #5281a8;
	border-radius: 2px;
	margin-bottom: 8px;
	padding: 10px;
}

.mta-search-item:last-child {
	margin-bottom: 0;
}

.mta-search-item-head {
	align-items: center;
	display: flex;
	gap: 10px;
	justify-content: space-between;
}

.mta-search-item-title {
	min-width: 0;
}

.mta-search-item-title strong,
.mta-search-item-title small {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mta-search-item-title strong {
	color: #315d82;
	font-size: 13px;
}

.mta-search-item-title small {
	color: #748693;
	font-size: 10px;
	margin-top: 2px;
}

.mta-select-mute {
	flex: 0 0 auto;
	font-size: 11px;
	margin: 0;
	padding: 5px 10px;
}

.mta-search-details,
.mta-selected-details {
	display: grid;
	gap: 7px 12px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin-top: 9px;
}

.mta-meta-line {
	min-width: 0;
	overflow-wrap: anywhere;
}

.mta-meta-line span,
.mta-meta-line b {
	display: block;
}

.mta-meta-line span {
	color: #7b8b96;
	font-size: 10px;
	font-weight: normal;
	line-height: 13px;
}

.mta-meta-line b {
	color: #3a4f60;
	font-size: 11px;
	line-height: 15px;
}

.mta-add-help {
	margin: 0;
	min-height: 112px;
}

.mta-add-help h4 {
	font-size: 14px;
	margin-bottom: 7px;
}

.mta-add-help p:last-child {
	margin-bottom: 0;
}

.mta-add-details {
	border-top: 1px solid #d9e3ea;
	margin-top: 10px;
	padding-top: 15px;
}

.mta-selected-card {
	background: #f0f9f2;
	border: 1px solid #c6e1cd;
	border-left: 4px solid #49a363;
	border-radius: 2px;
	margin: 0 15px 15px;
	padding: 10px 12px;
}

.mta-selected-card:empty {
	display: none;
}

.mta-selected-heading {
	align-items: center;
	display: flex;
	gap: 9px;
}

.mta-selected-heading > .glyphicon {
	align-items: center;
	background: #49a363;
	border-radius: 50%;
	color: #fff;
	display: inline-flex;
	flex: 0 0 24px;
	font-size: 10px;
	height: 24px;
	justify-content: center;
}

.mta-selected-heading small,
.mta-selected-heading strong {
	display: block;
}

.mta-selected-heading small {
	color: #5d8067;
	font-size: 10px;
}

.mta-selected-heading strong {
	color: #285b36;
	font-size: 13px;
	overflow-wrap: anywhere;
}

.mta-add-details > .row {
	margin-left: 0;
	margin-right: 0;
}

/* Контейнер нужен main.js как крючок для .has-error. */
.mta-evidence-upload.has-error label {
	color: #a94442;
}

.mta-upload-control {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
}

.mta-upload-control .input-file {
	max-width: 100%;
}

.mta-upload-control .btn {
	font-size: 11px;
	margin: 0;
}

/* Превью загрузки: шаблон стилизует только #imgs, loadImages() собирает #imgs-mta. */
#imgs-mta:not(:empty) {
	margin-bottom: 9px;
}

#imgs-mta .thumbnail {
	float: left;
	margin-bottom: 5px;
	margin-right: 8px;
	max-width: 90px;
}

#imgs-mta:before,
#imgs-mta:after {
	content: " ";
	display: table;
}

#imgs-mta:after {
	clear: both;
}

.mta-submit-row {
	align-items: center;
	background: #f4f7f9;
	border-top: 1px solid #d9e3ea;
	display: flex;
	gap: 12px;
	margin: 5px 15px -15px;
	min-height: 58px;
	padding: 10px 12px;
}

.mta-submit-row p {
	color: #71818d;
	font-size: 10px;
	margin: 0;
}

#mta-form-result {
	flex: 1 1 auto;
	font-size: 12px;
	text-align: right;
}

.mta-submit-row .btn2 {
	align-items: center;
	display: inline-flex;
	font-size: 13px;
	font-weight: 700;
	gap: 6px;
	justify-content: center;
	margin: 0;
	min-width: 178px;
}

/* ── Страница заявки ─────────────────────────────────────────── */
.mta-appeal-page > .col-md-12 > .block {
	overflow: hidden;
}

.mta-appeal-overview {
	align-items: center;
	border-bottom: 1px solid #dbe4ea;
	border-left: 4px solid #47749f;
	display: flex;
	justify-content: space-between;
	min-height: 76px;
	padding: 11px 15px;
}

.mta-appeal-overview-success { background: #f0f9f2; border-left-color: #49a363; }
.mta-appeal-overview-danger  { background: #fff2f1; border-left-color: #d65b52; }
.mta-appeal-overview-warning { background: #fff9e9; border-left-color: #d7a72e; }

.mta-appeal-player {
	min-width: 0;
}

.mta-appeal-player > span,
.mta-appeal-player > strong,
.mta-appeal-player > small {
	display: block;
}

.mta-appeal-player > span {
	color: #718391;
	font-size: 10px;
	line-height: 13px;
}

.mta-appeal-player > strong {
	color: #294d69;
	font-size: 17px;
	line-height: 22px;
	overflow-wrap: anywhere;
}

.mta-appeal-player > small {
	color: #6e808d;
	font-size: 11px;
	margin-top: 1px;
	overflow-wrap: anywhere;
}

.mta-appeal-decision {
	align-items: flex-end;
	display: flex;
	flex-direction: column;
	gap: 5px;
	padding-left: 12px;
}

.mta-appeal-decision small {
	color: #647886;
	font-size: 10px;
	white-space: nowrap;
}

#mta-actions:empty,
.mta-action-result:empty {
	display: none;
}

.mta-action-panel {
	align-items: center;
	background: #f4f7f9;
	border-bottom: 1px solid #d9e3ea;
	display: flex;
	gap: 16px;
	padding: 10px 15px;
}

.mta-action-copy {
	flex: 0 0 190px;
}

.mta-action-copy strong,
.mta-action-copy small {
	display: block;
}

.mta-action-copy strong {
	color: #3b5264;
	font-size: 12px;
}

.mta-action-copy small {
	color: #788995;
	font-size: 10px;
	line-height: 14px;
}

.mta-appeal-actions {
	display: flex;
	flex: 1 1 auto;
	flex-wrap: wrap;
	gap: 7px;
}

.mta-appeal-actions .btn {
	font-size: 12px;
	height: 34px;
	margin: 0;
	padding: 7px 12px;
}

.mta-appeal-actions .mta-resolve-primary {
	font-size: 13px;
	font-weight: 700;
	min-width: 148px;
}

.mta-appeal-actions .mta-delete-appeal {
	margin-left: auto;
}

.mta-action-result {
	background: #f4f7f9;
	border-bottom: 1px solid #d9e3ea;
	font-size: 12px;
	padding: 8px 15px;
}

.mta-appeal-content {
	display: grid;
	gap: 14px;
	grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
	padding: 15px;
}

.mta-appeal-section {
	border: 1px solid #d9e3ea;
	border-radius: 2px;
	min-width: 0;
}

.mta-appeal-section > h4 {
	background: #eaf1f5;
	border-bottom: 1px solid #d4e0e8;
	color: #3b5366;
	font-size: 12px;
	font-weight: 700;
	margin: 0;
	padding: 8px 10px;
}

.mta-appeal-section > h4 .glyphicon {
	color: #45688e;
	font-size: 11px;
	margin-right: 4px;
}

.mta-info-grid {
	display: grid;
	gap: 10px 14px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	padding: 11px;
}

.mta-info-item {
	min-width: 0;
}

.mta-info-wide {
	grid-column: 1 / -1;
}

.mta-info-item > span,
.mta-info-item > strong {
	display: block;
}

.mta-info-item > span,
.mta-appeal-text > span,
.mta-evidence-item > span {
	color: #748692;
	font-size: 10px;
	font-weight: normal;
	line-height: 14px;
}

.mta-info-item > strong {
	color: #344b5d;
	font-size: 12px;
	line-height: 17px;
	overflow-wrap: anywhere;
}

.mta-appeal-meta-grid {
	padding-bottom: 10px;
}

.mta-appeal-text {
	border-top: 1px solid #e0e7ec;
	margin: 0 11px 11px;
	padding-top: 9px;
}

.mta-appeal-text .with_code {
	background: #f8fafb;
	border: 1px solid #e0e7ec;
	color: #354b5c;
	font-size: 12px;
	line-height: 18px;
	margin-top: 5px;
	min-height: 57px;
	overflow-wrap: anywhere;
	padding: 9px;
}

.mta-evidence-section {
	margin: 0 15px 15px;
}

.mta-evidence-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mta-evidence-item {
	min-width: 0;
	padding: 10px 11px;
}

.mta-evidence-item + .mta-evidence-item {
	border-left: 1px solid #e0e7ec;
}

.mta-evidence-item > span {
	display: block;
	margin-bottom: 6px;
}

.mta-evidence-content {
	color: #445a69;
	font-size: 11px;
	min-height: 29px;
	overflow-wrap: anywhere;
}

.mta-evidence-content .thumbnail {
	display: inline-block;
	float: none;
	margin: 0 6px 6px 0;
	max-width: 110px;
	vertical-align: top;
}

.mta-empty-evidence {
	align-items: center;
	background: #f6f8fa;
	border: 1px dashed #d3dce3;
	color: #7b8a95;
	display: flex;
	font-size: 11px;
	justify-content: center;
	min-height: 29px;
	padding: 5px 8px;
	text-align: center;
}

/* ── Комментарии ─────────────────────────────────────────────── */
/* Сами сообщения используют штатную разметку .chat_message шаблона flat. */
#mta-comment-text {
	min-height: 96px;
	resize: vertical;
}

#mta-comments .chat_message .with_code {
	min-height: 29px;
}

/* ── Админка ─────────────────────────────────────────────────── */
.mta-admin-section {
	margin-bottom: 20px;
}
.mta-admin-toggle {
	display: block;
	font-weight: normal;
}
.mta-admin-server {
	font-weight: normal;
	margin-right: 15px;
}

/* Счётчик новых заявок в профиле. */
#profile_box .mta-pending-line .glyphicon {
	margin-right: 4px;
}

/* ── Мобильные и узкие колонки ───────────────────────────────── */
/* Одна карточка содержит две смысловые строки вместо пяти повторяющихся полей. */
@media (max-width: 991px) {
	.mta-add-help {
		margin-top: 12px;
	}

	.mta-add-details .col-md-5 .mta-form-section {
		margin-top: 4px;
	}

	.mta-appeal-content {
		grid-template-columns: minmax(0, 1fr);
	}

	.mta-toolbar {
		grid-template-areas:
			"statuses statuses"
			"server action";
		grid-template-columns: minmax(0, 1fr) auto;
		padding: 8px;
	}

	.mta-status-filters { grid-area: statuses; }
	.mta-server-select { grid-area: server; }
	.mta-toolbar-action { grid-area: action; }

	.mta-list-page .table-responsive {
		border: 0;
		overflow: visible;
	}

	.mta-appeals-table,
	.mta-appeals-table > tbody {
		display: block;
		table-layout: auto;
	}

	.mta-appeals-table > thead {
		display: none;
	}

	.mta-appeals-table > tbody > .mta-appeal-row {
		border: 1px solid #cedae3;
		border-left: 4px solid #47749f;
		border-radius: 4px;
		display: grid;
		gap: 7px 9px;
		grid-template-areas:
			"appeal appeal status"
			"author reviewer date";
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
		margin: 8px 5px;
		overflow: hidden;
		padding: 9px 10px;
	}

	.mta-appeals-table > tbody > .mta-appeal-status-success { background: #f4fbf6; border-left-color: #49a363; }
	.mta-appeals-table > tbody > .mta-appeal-status-danger  { background: #fff5f4; border-left-color: #d65b52; }
	.mta-appeals-table > tbody > .mta-appeal-status-warning { background: #fffbef; border-left-color: #d7a72e; }

	.mta-appeals-table > tbody > .mta-appeal-row > td {
		align-items: center;
		background: transparent !important;
		border: 0 !important;
		box-shadow: none !important;
		display: flex;
		min-width: 0;
		padding: 0 !important;
		text-align: left !important;
		width: auto !important;
	}

	.mta-appeals-table > tbody > .mta-appeal-row > td:nth-child(1) {
		display: block;
		grid-area: appeal;
	}

	.mta-appeals-table > tbody > .mta-appeal-row > td:nth-child(2) {
		grid-area: author;
	}

	.mta-appeals-table > tbody > .mta-appeal-row > td:nth-child(2)::after {
		color: #8ca0ae;
		content: "→";
		font-size: 12px;
		margin-left: auto;
		padding-left: 6px;
	}

	.mta-appeals-table > tbody > .mta-appeal-row > td:nth-child(3) {
		align-self: start;
		grid-area: status;
		justify-self: end;
	}

	.mta-appeals-table > tbody > .mta-appeal-row > td:nth-child(4) {
		grid-area: reviewer;
	}

	.mta-appeals-table > tbody > .mta-appeal-row > td:nth-child(5) {
		grid-area: date;
		justify-self: end;
		text-align: right !important;
	}

	.mta-appeals-table > tbody > .mta-appeal-row > td:nth-child(2),
	.mta-appeals-table > tbody > .mta-appeal-row > td:nth-child(4),
	.mta-appeals-table > tbody > .mta-appeal-row > td:nth-child(5) {
		border-top: 1px solid rgba(110, 135, 153, .18) !important;
		padding-top: 7px !important;
	}

	.mta-appeals-table .mta-status {
		font-size: 10px;
		min-height: 24px;
		padding: 2px 7px;
	}

	.mta-appeals-table .mta-user {
		font-size: 11px;
	}

	.mta-appeals-table .mta-user .small_us_av {
		flex-basis: 22px;
		height: 22px;
		width: 22px;
	}

	.mta-appeal-date {
		white-space: nowrap;
	}

	.mta-empty-row {
		display: block;
	}

	.mta-empty-row td {
		display: block;
		padding: 15px !important;
	}
}

@media (max-width: 640px) {
	.mta-add-steps {
		display: grid;
		gap: 5px;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		padding: 8px;
	}

	.mta-add-steps span {
		font-size: 10px;
		justify-content: center;
		line-height: 13px;
		text-align: center;
	}

	.mta-add-steps > .glyphicon {
		display: none;
	}

	.mta-search-control {
		grid-template-columns: minmax(0, 1fr);
	}

	.mta-search-control .btn2 {
		width: 100%;
	}

	.mta-search-item-head {
		align-items: stretch;
		flex-direction: column;
	}

	.mta-select-mute {
		width: 100%;
	}

	.mta-selected-card {
		margin-left: 10px;
		margin-right: 10px;
	}

	.mta-selected-details,
	.mta-search-details {
		grid-template-columns: minmax(0, 1fr);
	}

	.mta-submit-row {
		align-items: stretch;
		flex-direction: column;
		margin-left: 10px;
		margin-right: 10px;
	}

	#mta-form-result {
		text-align: left;
	}

	.mta-submit-row .btn2 {
		width: 100%;
	}

	.mta-appeal-overview {
		align-items: stretch;
		flex-direction: column;
		gap: 9px;
	}

	.mta-appeal-decision {
		align-items: flex-start;
		border-top: 1px solid rgba(92, 119, 138, .2);
		padding-left: 0;
		padding-top: 8px;
	}

	.mta-appeal-decision small {
		white-space: normal;
	}

	.mta-action-panel {
		align-items: stretch;
		flex-direction: column;
		gap: 8px;
	}

	.mta-action-copy {
		flex-basis: auto;
	}

	.mta-appeal-actions {
		display: grid;
		grid-template-columns: minmax(0, 1fr);
	}

	.mta-appeal-actions .btn,
	.mta-appeal-actions .mta-resolve-primary,
	.mta-appeal-actions .mta-delete-appeal {
		margin-left: 0;
		width: 100%;
	}

	.mta-appeal-content {
		padding: 10px;
	}

	.mta-info-grid,
	.mta-evidence-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.mta-info-wide {
		grid-column: auto;
	}

	.mta-evidence-section {
		margin: 0 10px 10px;
	}

	.mta-evidence-item + .mta-evidence-item {
		border-left: 0;
		border-top: 1px solid #e0e7ec;
	}

	.mta-list-head small {
		display: none;
	}

	.mta-status-filters {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		overflow: visible;
	}

	.mta-status-filter {
		justify-content: center;
		padding-left: 6px;
		padding-right: 6px;
	}

	.mta-toolbar {
		grid-template-areas:
			"statuses"
			"server"
			"action";
		grid-template-columns: minmax(0, 1fr);
	}

	.mta-toolbar-action,
	.mta-add-button {
		width: 100%;
	}

	.mta-appeal-date {
		align-items: flex-end !important;
		flex-direction: column;
		line-height: 13px;
	}
}

@media (max-width: 420px) {
	.mta-appeals-table > tbody > .mta-appeal-row {
		gap: 7px;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
		margin-left: 2px;
		margin-right: 2px;
		padding: 8px;
	}

	.mta-appeal-title {
		max-width: 100%;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}
}
