/*
 * Панель фильтра сделок (/task/): пульт управления — радар, барабанные счётчики, тумблеры, латунные кнопки.
 * Сгенерировано из витрины фильтров (вариант 13), палитра темы: графит, латунь, зелёная лампа.
 */

.fng-fp {
	--brass: linear-gradient(180deg, #f3d95a 0%, #dbb300 30%, #8a6d00 68%, #4a3a00 100%);
	--brass-flat: #dbb300;
	--brass-dk: #8a6d00;
	--steel: linear-gradient(180deg, #3a3a3a 0%, #282828 40%, #1c1c1c 100%);
	--steel-edge: inset 0 0 3px #444, 0 0 5px #000, 0 0 2px #000;
	--led: #3ddc84;
	--led-dim: #0f3d24;
	--warn: #c2182f;
	--muted: #b5b5b5;
	--rivet: radial-gradient(circle at 35% 30%, #f1f1f1 0, #9a9a9a 38%, #3a3a3a 75%, #111 100%);
	--rivets:
		var(--rivet) left 8px top 8px / 9px 9px no-repeat,
		var(--rivet) right 8px top 8px / 9px 9px no-repeat,
		var(--rivet) left 8px bottom 8px / 9px 9px no-repeat,
		var(--rivet) right 8px bottom 8px / 9px 9px no-repeat;
	color: #fff;
	max-width: 100%;
}

.fng-fp *,
.fng-fp *::before,
.fng-fp *::after {
	box-sizing: border-box;
}

.fng-fp .fs-lab {
	display: block;
	margin: 0 0 5px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--muted);
}

.fng-fp .fs-lab:empty {
	display: none;
}

.fng-fp .fs-plate {
	display: inline-block;
	padding: 2px 9px;
	background: var(--brass);
	border-radius: 2px;
	box-shadow: 0 1px 2px #000, inset 0 1px 0 rgba(255, 245, 180, .7);
	color: #2a2000;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .12em;
	line-height: 1.5;
	text-shadow: 0 1px 0 rgba(255, 240, 160, .55);
	text-transform: uppercase;
	white-space: nowrap;
}

.fng-fp .fs-lcd {
	display: inline-block;
	padding: 4px 10px;
	background: #031208;
	border: 1px solid #000;
	border-radius: 2px;
	box-shadow: inset 0 0 6px #000, 0 1px 0 #555;
	color: var(--led);
	font-family: "Courier New", monospace;
	font-size: 13px;
	letter-spacing: .05em;
	text-shadow: 0 0 6px rgba(61, 220, 132, .7);
	white-space: nowrap;
}

.fng-fp .fs-lcd b {
	font-weight: 700;
}

.fng-fp .fs-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

.fng-fp .fs-f {
	display: block;
	min-width: 0;
	margin: 0;
}

.fng-fp .fs-sw {
	position: relative;
	display: block;
}

.fng-fp .fs-sw::after {
	content: "";
	position: absolute;
	right: 13px;
	top: 50%;
	width: 6px;
	height: 6px;
	margin-top: -5px;
	border-right: 2px solid var(--caret, var(--brass-flat));
	border-bottom: 2px solid var(--caret, var(--brass-flat));
	transform: rotate(45deg);
	pointer-events: none;
}

.fng-fp select.fs-sel,
.fng-fp input.fs-txt {
	width: 100%;
	height: auto !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 9px 32px 9px 12px !important;
	background: #070707 !important;
	background-image: none !important;
	border: 1px solid #000 !important;
	border-radius: 3px !important;
	box-shadow: inset 0 2px 6px #000, 0 1px 0 #666 !important;
	color: #fff !important;
	font-size: 14px;
	line-height: 1.3;
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
}

.fng-fp input.fs-txt {
	padding-right: 12px !important;
	cursor: text;
}

.fng-fp select.fs-sel:focus,
.fng-fp input.fs-txt:focus {
	outline: none;
	box-shadow: inset 0 2px 6px #000, 0 0 0 1px var(--led), 0 0 8px rgba(61, 220, 132, .45) !important;
}

.fng-fp .fs-radios {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.fng-fp .fs-tg {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 5px 0;
	margin: 0;
	cursor: pointer;
	font-size: 14px;
	color: #ddd;
}

.fng-fp .fs-tg input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.fng-fp .fs-tg .lamp {
	flex: 0 0 auto;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--led-dim);
	box-shadow: inset 0 0 3px #000, 0 0 0 2px #111;
	transition: background .15s, box-shadow .15s;
}

.fng-fp .fs-tg input:checked ~ .lamp {
	background: var(--led);
	box-shadow: 0 0 9px var(--led), 0 0 0 2px #111;
}

.fng-fp .fs-tg .sw {
	position: relative;
	flex: 0 0 auto;
	width: 46px;
	height: 22px;
	border-radius: 11px;
	background: #050505;
	box-shadow: inset 0 2px 5px #000, 0 1px 0 #666;
}

.fng-fp .fs-tg .sw::after {
	content: "";
	position: absolute;
	top: 2px;
	left: 3px;
	width: 20px;
	height: 18px;
	border-radius: 9px;
	background: var(--brass);
	box-shadow: 0 2px 3px #000;
	transition: left .18s;
}

.fng-fp .fs-tg input:checked ~ .sw::after {
	left: 23px;
}

.fng-fp .fs-tg input:focus-visible ~ .sw {
	outline: 2px solid var(--led);
}

.fng-fp .fs-tg input:checked ~ span {
	color: #fff;
}

.fng-fp .fs-dual {
	position: relative;
	height: var(--th-h, 22px);
}

.fng-fp .fs-dual .fs-track {
	position: absolute;
	left: calc(var(--tw, 22px) / 2);
	right: calc(var(--tw, 22px) / 2);
	top: 50%;
	height: var(--tr-h, 8px);
	margin-top: calc(var(--tr-h, 8px) / -2);
	border-radius: var(--tr-r, 4px);
	background: var(--tr-bg, #050505);
	box-shadow: var(--tr-sh, inset 0 2px 5px #000, 0 1px 0 #666);
}

.fng-fp .fs-dual .fs-fill {
	position: absolute;
	top: 0;
	bottom: 0;
	left: calc(var(--lo) * 1%);
	right: calc((100 - var(--hi)) * 1%);
	border-radius: inherit;
	background: var(--fill-bg, linear-gradient(180deg, #7dffb3, #3ddc84 50%, #198754));
	box-shadow: var(--fill-sh, 0 0 8px rgba(61, 220, 132, .6));
}

.fng-fp .fs-dual input[type="range"] {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: var(--th-h, 22px);
	margin: 0 !important;
	padding: 0 !important;
	background: none !important;
	border: 0 !important;
	box-shadow: none !important;
	pointer-events: none;
	-webkit-appearance: none;
	appearance: none;
}

.fng-fp .fs-dual input[type="range"]:focus {
	outline: none;
}

.fng-fp .fs-dual input[type="range"]::-webkit-slider-runnable-track {
	height: var(--th-h, 22px);
	background: transparent;
	border: 0;
}

.fng-fp .fs-dual input[type="range"]::-moz-range-track {
	height: var(--th-h, 22px);
	background: transparent;
	border: 0;
}

.fng-fp .fs-dual input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	pointer-events: auto;
	width: var(--tw, 22px);
	height: var(--th-h, 22px);
	border-radius: var(--th-r, 50%);
	background: var(--th-bg, #dbb300);
	border: var(--th-bd, 0);
	box-shadow: var(--th-sh, none);
	box-sizing: border-box;
	cursor: grab;
}

.fng-fp .fs-dual input[type="range"]::-moz-range-thumb {
	pointer-events: auto;
	width: var(--tw, 22px);
	height: var(--th-h, 22px);
	border-radius: var(--th-r, 50%);
	background: var(--th-bg, #dbb300);
	border: var(--th-bd, 0);
	box-shadow: var(--th-sh, none);
	box-sizing: border-box;
	cursor: grab;
}

.fng-fp .fs-dual input[type="range"]:focus-visible::-webkit-slider-thumb {
	outline: 2px solid var(--led);
}

.fng-fp .odos {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 24px;
	margin-bottom: 10px;
}

.fng-fp .ow {
	text-align: center;
}

.fng-fp .odo {
	display: inline-flex;
	gap: 2px;
	margin-top: 6px;
	padding: 5px;
	border-radius: 3px;
	background: #000;
	box-shadow: 0 0 0 3px #8a6d00, 0 0 0 4px #000, inset 0 0 6px #000;
}

.fng-fp .odo i {
	display: block;
	width: 24px;
	height: 38px;
	background: linear-gradient(180deg, #0c0c0c 0, #2d2d2d 48%, #000 50%, #242424 52%, #0c0c0c 100%);
	color: #f4f1e4;
	font: 700 24px/38px "Courier New", monospace;
	font-style: normal;
	text-align: center;
}

.fng-fp .odo i.z {
	color: #4a4a4a;
}

.fng-fp .radar {
	position: relative;
	width: 220px;
	height: 220px;
	margin: 0 auto;
	overflow: hidden;
	border-radius: 50%;
	background:
		linear-gradient(90deg, transparent 49.6%, rgba(61, 220, 132, .35) 50%, transparent 50.4%),
		linear-gradient(0deg, transparent 49.6%, rgba(61, 220, 132, .35) 50%, transparent 50.4%),
		repeating-radial-gradient(circle, transparent 0 26px, rgba(61, 220, 132, .3) 26px 27px),
		#031208;
	box-shadow: inset 0 0 30px #000, 0 0 0 6px #8a6d00, 0 0 0 8px #000, 0 0 18px rgba(61, 220, 132, .25);
}

.fng-fp .sweep {
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: conic-gradient(from 0deg, rgba(61, 220, 132, 0) 0 270deg, rgba(61, 220, 132, .55) 358deg, #b9ffd5 360deg);
	animation: fs-spin 4s linear infinite;
}

.fng-fp .rng {
	position: absolute;
	left: 50%;
	top: 50%;
	aspect-ratio: 1;
	border: 1px dashed var(--brass-flat);
	border-radius: 50%;
	transform: translate(-50%, -50%);
	width: calc(var(--hi) * 1%);
	transition: width .15s;
}

.fng-fp .rng.lo {
	border-color: #ff5a45;
	width: calc(var(--lo) * 1%);
}

.fng-fp .blip {
	position: absolute;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #d9ffe8;
	box-shadow: 0 0 9px var(--led);
	animation: fs-blip 4s ease-out infinite;
}

.fng-fp .b1 { left: 62%; top: 24%; animation-delay: .3s;
}

.fng-fp .b2 { left: 30%; top: 36%; animation-delay: 1.4s;
}

.fng-fp .b3 { left: 70%; top: 62%; animation-delay: 2.2s;
}

.fng-fp .b4 { left: 40%; top: 74%; animation-delay: 3s;
}

.fng-fp .b5 { left: 54%; top: 46%; animation-delay: 1s;
}

.fng-fp .tuner {
	padding: 0 14px;
	border-radius: 4px;
	background:
		repeating-linear-gradient(90deg, #c8c8c8 0 1px, transparent 1px 5%) 14px 6px / calc(100% - 28px) 14px no-repeat,
		repeating-linear-gradient(90deg, #777 0 1px, transparent 1px 1%) 14px 6px / calc(100% - 28px) 7px no-repeat,
		linear-gradient(180deg, #050505, #1c1c1c);
	box-shadow: inset 0 0 8px #000, 0 0 0 3px #8a6d00, 0 0 0 4px #000;
}

.fng-fp .tuner .fs-dual {
	--tw: 5px;
	--th-h: 60px;
	--th-r: 1px;
	--tr-h: 0px;
	--tr-sh: none;
	--tr-bg: transparent;
	--fill-bg: rgba(61, 220, 132, .22);
	--fill-sh: none;
	--th-sh: 0 0 8px currentColor;
}

.fng-fp .tuner .fs-dual .fs-fill {
	top: -30px;
	bottom: -30px;
}

.fng-fp .tuner input[data-role="min"] {
	--th-bg: #f3d95a;
	color: #dbb300;
}

.fng-fp .tuner input[data-role="max"] {
	--th-bg: #ff5a45;
	color: #ff5a45;
}

.fng-fp .odos .cur {
	align-self: center;
	padding-top: 22px;
	color: var(--brass-flat);
	font-size: 20px;
}

.fng-fp .odo i {
	width: 22px;
	height: 34px;
	font-size: 22px;
	line-height: 34px;
}

.fng-fp .qline .cursor {
	margin-left: 6px;
	animation: fs-blink 1s steps(1) infinite;
}

.fng-fp {
	padding: 22px 24px;
	border-radius: 6px;
	background: var(--rivets), var(--steel);
	box-shadow: var(--steel-edge), inset 0 0 0 2px #000;
}

.fng-fp .bridge {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 220px minmax(0, 1fr);
	align-items: center;
	gap: 18px;
	margin-bottom: 20px;
}

.fng-fp .bridge .ow {
	text-align: center;
}

.fng-fp .bridge .ow:first-child {
	justify-self: end;
}

.fng-fp .bridge .ow:last-child {
	justify-self: start;
}

.fng-fp .bridge .odo i {
	width: 20px;
	height: 32px;
	font-size: 20px;
	line-height: 32px;
}

.fng-fp .tuner {
	margin: 0 0 20px;
}

.fng-fp .cells {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px 16px;
	margin-bottom: 18px;
}

.fng-fp .cell {
	position: relative;
	padding: 12px 12px 12px;
	border-radius: 4px;
	background: linear-gradient(180deg, #202020, #141414);
	box-shadow: inset 0 0 0 1px #000, inset 0 0 8px #000, 0 0 0 1px #444;
}

.fng-fp .cell::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 100%;
	width: 12px;
	height: 14px;
	margin-left: -6px;
	background: linear-gradient(90deg, #5a4700, #f3d95a 40%, #5a4700);
	box-shadow: 0 0 0 1px #000;
}

.fng-fp .cell .fs-plate {
	margin-bottom: 8px;
}

.fng-fp .cell .fs-f + .fs-f {
	margin-top: 8px;
}

.fng-fp .qline {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 12px;
	padding: 10px 14px;
	border-radius: 3px;
	background: #031208;
	box-shadow: inset 0 0 8px #000, 0 0 0 2px #000, 0 1px 0 2px #555;
	color: #d4f7e1;
	font-family: "Courier New", monospace;
	font-size: 13px;
	line-height: 1.5;
}

.fng-fp .qline .qk {
	color: var(--led);
	letter-spacing: .12em;
}

.fng-fp .qline .qv {
	flex: 1 1 200px;
	min-width: 0;
}

.fng-fp .qline .qv b {
	color: var(--led);
	font-weight: 700;
}

.fng-fp .stat {
	margin-bottom: 20px;
	padding: 12px 16px 12px;
	border-radius: 4px;
	background: #0c0c0c;
	box-shadow: inset 0 0 8px #000, 0 0 0 2px #8a6d00, 0 0 0 3px #000;
}

.fng-fp .stat .fs-lab {
	margin-bottom: 8px;
}

.fng-fp .stat .fs-radios {
	flex-direction: row;
	gap: 6px;
}

.fng-fp .stat .fs-tg {
	flex: 1 1 0;
	flex-direction: column;
	justify-content: flex-start;
	gap: 8px;
	min-width: 0;
	padding: 4px 2px;
	font-size: 12px;
	line-height: 1.25;
	text-align: center;
}

.fng-fp .stat .fs-tg span {
	min-height: 30px;
}

.fng-fp .btnbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: 22px;
}

.fng-fp .btnbar .fs-key2 {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	width: 190px;
	height: 56px;
	margin: 0;
	padding: 0 18px;
	border: 0;
	border-radius: 8px;
	background: radial-gradient(ellipse at 50% 0, #555 0, #2a2a2a 55%, #151515 100%);
	box-shadow: 0 5px 0 #000, 0 0 0 3px #8a6d00, 0 0 0 4px #000, 0 8px 10px 3px rgba(0, 0, 0, .55), inset 0 1px 1px rgba(255, 255, 255, .25);
	color: #e8e8e8;
	cursor: pointer;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	transition: transform .08s, box-shadow .08s, color .15s;
}

.fng-fp .btnbar .fs-key2 .lmp {
	flex: 0 0 auto;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	box-shadow: inset 0 0 3px #000, 0 0 0 2px #0a0a0a;
	transition: background .15s, box-shadow .15s;
}

.fng-fp .btnbar .k-apply .lmp {
	background: var(--led);
	box-shadow: 0 0 10px var(--led), 0 0 0 2px #0a0a0a;
	animation: fs-breathe 2.2s ease-in-out infinite;
}

.fng-fp .btnbar .k-reset .lmp {
	background: #3d0f0a;
}

.fng-fp .btnbar .k-apply {
	color: #d9ffe8;
	text-shadow: 0 0 6px rgba(61, 220, 132, .6);
}

.fng-fp .btnbar .k-apply::after {
	content: "";
	position: absolute;
	inset: 4px;
	border-radius: 5px;
	background: linear-gradient(100deg, transparent 35%, rgba(61, 220, 132, .22) 50%, transparent 65%) -120% 0 / 60% 100% no-repeat;
	animation: fs-sheen 3.4s ease-in-out infinite;
	pointer-events: none;
}

.fng-fp .btnbar .k-reset:hover,
.fng-fp .btnbar .k-reset:focus-visible {
	color: #ffd5cf;
}

.fng-fp .btnbar .k-reset:hover .lmp,
.fng-fp .btnbar .k-reset:focus-visible .lmp {
	background: #ff5a45;
	box-shadow: 0 0 10px #ff5a45, 0 0 0 2px #0a0a0a;
}

.fng-fp .btnbar .k-apply:hover,
.fng-fp .btnbar .k-apply:focus-visible {
	color: #fff;
	filter: brightness(1.12);
}

.fng-fp .btnbar .fs-key2:focus-visible {
	outline: 2px solid var(--led);
	outline-offset: 5px;
}

.fng-fp .btnbar .fs-key2:active {
	transform: translateY(4px);
	box-shadow: 0 1px 0 #000, 0 0 0 3px #8a6d00, 0 0 0 4px #000, 0 3px 6px 2px rgba(0, 0, 0, .55), inset 0 1px 1px rgba(255, 255, 255, .25);
}

@keyframes fs-blink {
	50% { opacity: 0; }
}
@keyframes fs-spin {
	to { transform: rotate(360deg); }
}
@keyframes fs-blip {
	0%, 100% { opacity: .1; transform: scale(.7); }
	12% { opacity: 1; transform: scale(1.4); }
	60% { opacity: .25; }
}
@keyframes fs-breathe {
	0%, 100% { opacity: 1; box-shadow: 0 0 12px var(--led), 0 0 0 2px #0a0a0a; }
	50% { opacity: .55; box-shadow: 0 0 4px var(--led), 0 0 0 2px #0a0a0a; }
}
@keyframes fs-sheen {
	0%, 55% { background-position: -120% 0; }
	100% { background-position: 220% 0; }
}

/* =========================================================
   Интеграция в страницу /task/
   ========================================================= */

.fng-tasks-archive .fng-fp {
	margin-top: 4px;
}

.fng-fp-cur {
	display: none;
}

/* Табличка-подпись: перебиваем общие стили label темы */
.fng-fp label.fs-plate {
	display: inline-block;
	width: auto;
	margin: 0 0 8px;
	padding: 2px 9px;
	float: none;
}

.fng-fp .fng-extra-field {
	margin: 0;
}

.fng-fp .cell .fs-f {
	margin: 0;
}

.fng-fp .cell select.fs-sel {
	margin: 0 !important;
}

.fng-fp .qline .cursor {
	flex: 0 0 auto;
	animation: fs-blink 1s steps(1) infinite;
}

/* Парные кнопки: «Сбросить» — ссылка, оформляем так же, как кнопку */
.fng-fp .btnbar a.fs-key2,
.fng-fp .btnbar a.fs-key2:hover,
.fng-fp .btnbar a.fs-key2:focus {
	text-decoration: none;
	color: #e8e8e8;
}

.fng-fp .btnbar a.fs-key2.k-reset:hover,
.fng-fp .btnbar a.fs-key2.k-reset:focus-visible {
	color: #ffd5cf;
}

.fng-fp .btnbar button.fs-key2 {
	font-family: inherit;
}

.fng-fp .btnbar .k-apply,
.fng-fp .btnbar .k-apply:hover,
.fng-fp .btnbar .k-apply:focus {
	color: #d9ffe8;
}

/* ---------- Поиск по объектам (combobox) ---------- */

.fng-fp .fs-sw.is-combo > select {
	display: none;
}

.fng-fp .fs-sw.is-combo::after {
	z-index: 1;
}

.fng-fp .fng-combo {
	position: relative;
}

body .fng-fp .fs-sw input.fs-txt.fng-combo-input {
	width: 100% !important;
	height: auto !important;
	margin: 0 !important;
	padding: 9px 62px 9px 12px !important;
	background: #070707 !important;
	background-image: none !important;
	border: 1px solid #000 !important;
	border-radius: 3px !important;
	box-shadow: inset 0 2px 6px #000, 0 1px 0 #666 !important;
	color: #fff !important;
	line-height: 1.3 !important;
	cursor: text;
	text-overflow: ellipsis;
}

body .fng-fp .fs-sw input.fs-txt.fng-combo-input:focus {
	outline: none;
	box-shadow: inset 0 2px 6px #000, 0 0 0 1px var(--led), 0 0 8px rgba(61, 220, 132, .45) !important;
}

.fng-fp .fng-combo-clear {
	position: absolute;
	right: 34px;
	top: 50%;
	width: 22px;
	height: 22px;
	margin: -11px 0 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #2a2a2a;
	box-shadow: inset 0 1px 0 #777, 0 0 0 1px #000;
	color: #ddd;
	cursor: pointer;
	font-size: 15px;
	line-height: 22px;
	text-align: center;
	z-index: 2;
}

.fng-fp .fng-combo-clear[hidden] {
	display: none;
}

.fng-fp .fng-combo-clear:hover,
.fng-fp .fng-combo-clear:focus-visible {
	background: #5a1a12;
	color: #fff;
	outline: none;
}

.fng-fp .fng-combo-list {
	position: absolute;
	left: 0;
	right: 0;
	top: calc(100% + 4px);
	z-index: 60;
	max-height: 264px;
	margin: 0;
	padding: 4px;
	overflow-y: auto;
	list-style: none;
	background: #070707;
	border: 1px solid #8a6d00;
	border-radius: 4px;
	box-shadow: 0 0 0 1px #000, 0 10px 22px rgba(0, 0, 0, .8), inset 0 0 8px #000;
	scrollbar-color: #8a6d00 #111;
	scrollbar-width: thin;
}

.fng-fp .fng-combo-list[hidden] {
	display: none;
}

.fng-fp .fng-combo-list li {
	margin: 0;
	padding: 8px 10px;
	border-radius: 3px;
	color: #e8e8e8;
	font-size: 14px;
	line-height: 1.3;
	list-style: none;
	cursor: pointer;
}

.fng-fp .fng-combo-list li::before,
.fng-fp .fng-combo-list li::marker {
	content: none;
}

.fng-fp .fng-combo-list li.is-active {
	background: #12301f;
	color: #fff;
	box-shadow: inset 2px 0 0 var(--led);
}

.fng-fp .fng-combo-list li.is-selected {
	color: var(--brass-flat);
}

.fng-fp .fng-combo-list li.fng-combo-empty {
	color: var(--muted);
	cursor: default;
	font-style: italic;
}

.fng-fp .fng-combo-list mark {
	padding: 0;
	background: none;
	color: #f3d95a;
	font-weight: 700;
	text-decoration: underline;
	text-decoration-color: rgba(243, 217, 90, .5);
}

/* ---------- Адаптив ---------- */

@media (max-width: 720px) {
	.fng-fp {
		padding: 16px 12px;
	}

	.fng-fp .bridge .odo {
		gap: 1px;
		padding: 4px;
	}

	.fng-fp .bridge .odo i {
		width: 14px;
		height: 26px;
		font-size: 16px;
		line-height: 26px;
	}

	.fng-fp .bridge {
		grid-template-columns: 1fr 1fr;
	}

	.fng-fp .bridge .radar {
		grid-column: 1 / -1;
		grid-row: 1;
	}

	.fng-fp .bridge .ow:first-child,
	.fng-fp .bridge .ow:last-child {
		justify-self: center;
	}

	.fng-fp .cells {
		grid-template-columns: 1fr;
	}

	.fng-fp .stat .fs-radios {
		flex-wrap: wrap;
	}

	.fng-fp .stat .fs-tg {
		flex: 1 1 28%;
	}

	.fng-fp .btnbar .fs-key2 {
		flex: 1 1 0;
		width: auto;
		padding: 0 8px;
	}
}


/* =========================================================
   Верхняя планка: [Фильтры] [поиск] [Найти] — единый стальной пульт с панелью
   ========================================================= */

.fng-tasks-archive .fng-search-form {
	--brass-flat: #dbb300;
	--steel: linear-gradient(180deg, #3a3a3a 0%, #282828 40%, #1c1c1c 100%);
	--steel-edge: inset 0 0 3px #444, 0 0 5px #000, 0 0 2px #000;
	--led: #3ddc84;
	--muted: #b5b5b5;
	--rivet: radial-gradient(circle at 35% 30%, #f1f1f1 0, #9a9a9a 38%, #3a3a3a 75%, #111 100%);
	--rivets:
		var(--rivet) left 8px top 8px / 9px 9px no-repeat,
		var(--rivet) right 8px top 8px / 9px 9px no-repeat,
		var(--rivet) left 8px bottom 8px / 9px 9px no-repeat,
		var(--rivet) right 8px bottom 8px / 9px 9px no-repeat;
}

.fng-tasks-archive .fng-search-form form.fng-search-form-inner {
	display: block;
	width: 100%;
	margin: 0;
	padding: 18px 30px;
	border: 0;
	border-radius: 6px;
	background: var(--rivets), var(--steel);
	box-shadow: var(--steel-edge), inset 0 0 0 2px #000;
}

.fng-tasks-archive .fng-search-row {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 18px;
	width: 100%;
}

.fng-tasks-archive .fng-search-toggle-wrap {
	flex: 0 0 auto;
	margin: 0;
}

.fng-tasks-archive .fng-search-field-keyword {
	flex: 1 1 auto;
	min-width: 0;
	margin: 0;
}

/* Поле поиска — «утопленное», как поля фильтра */
body .fng-tasks-archive .fng-search-field-keyword input#fng-fs {
	display: block;
	width: 100% !important;
	height: 48px !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 14px !important;
	background: #070707 !important;
	background-image: none !important;
	border: 1px solid #000 !important;
	border-radius: 3px !important;
	box-shadow: inset 0 2px 6px #000, 0 1px 0 #666 !important;
	color: #fff !important;
	font-size: 14px;
	line-height: 48px !important;
}

body .fng-tasks-archive .fng-search-field-keyword input#fng-fs::placeholder {
	color: #8c8c8c;
}

body .fng-tasks-archive .fng-search-field-keyword input#fng-fs:focus {
	outline: none;
	box-shadow: inset 0 2px 6px #000, 0 0 0 1px var(--led), 0 0 8px rgba(61, 220, 132, .45) !important;
}

/* Две клавиши: «Фильтры» и «Найти» — одного размера и стиля */
.fng-tasks-archive .fng-search-toggle,
.fng-tasks-archive .fng-search-go {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	height: 48px;
	min-width: 150px;
	margin: 0;
	padding: 0 18px;
	border: 0;
	border-radius: 8px;
	background: radial-gradient(ellipse at 50% 0, #555 0, #2a2a2a 55%, #151515 100%);
	box-shadow: 0 4px 0 #000, 0 0 0 3px #8a6d00, 0 0 0 4px #000, 0 7px 9px 3px rgba(0, 0, 0, .55), inset 0 1px 1px rgba(255, 255, 255, .25);
	color: #e8e8e8;
	cursor: pointer;
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .1em;
	line-height: 1;
	text-transform: uppercase;
	text-shadow: none;
	white-space: nowrap;
	transition: transform .08s, box-shadow .08s, color .15s, filter .15s;
}

.fng-tasks-archive .fng-search-go {
	min-width: 130px;
	color: #d9ffe8;
	text-shadow: 0 0 6px rgba(61, 220, 132, .6);
}

.fng-tasks-archive .fng-search-go::after {
	content: "";
	position: absolute;
	inset: 4px;
	border-radius: 5px;
	background: linear-gradient(100deg, transparent 35%, rgba(61, 220, 132, .22) 50%, transparent 65%) -120% 0 / 60% 100% no-repeat;
	animation: fs-sheen 3.4s ease-in-out infinite;
	pointer-events: none;
}

.fng-tasks-archive .fng-search-toggle:hover,
.fng-tasks-archive .fng-search-toggle:focus-visible,
.fng-tasks-archive .fng-search-go:hover,
.fng-tasks-archive .fng-search-go:focus-visible {
	color: #fff;
	filter: brightness(1.12);
}

.fng-tasks-archive .fng-search-toggle:focus-visible,
.fng-tasks-archive .fng-search-go:focus-visible {
	outline: 2px solid var(--led);
	outline-offset: 5px;
}

.fng-tasks-archive .fng-search-toggle:active,
.fng-tasks-archive .fng-search-go:active {
	transform: translateY(3px);
	box-shadow: 0 1px 0 #000, 0 0 0 3px #8a6d00, 0 0 0 4px #000, 0 3px 6px 2px rgba(0, 0, 0, .55), inset 0 1px 1px rgba(255, 255, 255, .25);
}

/* Лампочки на клавишах */
.fng-tasks-archive .fng-search-toggle .lmp,
.fng-tasks-archive .fng-search-go .lmp {
	flex: 0 0 auto;
	width: 13px;
	height: 13px;
	border-radius: 50%;
	box-shadow: inset 0 0 3px #000, 0 0 0 2px #0a0a0a;
	transition: background .15s, box-shadow .15s;
}

.fng-tasks-archive .fng-search-go .lmp {
	background: var(--led);
	box-shadow: 0 0 10px var(--led), 0 0 0 2px #0a0a0a;
	animation: fs-breathe 2.2s ease-in-out infinite;
}

.fng-tasks-archive .fng-search-toggle .lmp {
	background: #15341f;
}

.fng-tasks-archive .fng-search-toggle[aria-expanded="true"] .lmp,
.fng-tasks-archive .fng-search-toggle.has-active .lmp {
	background: var(--led);
	box-shadow: 0 0 10px var(--led), 0 0 0 2px #0a0a0a;
}

.fng-tasks-archive .fng-search-toggle[aria-expanded="true"] {
	color: #fff;
}

/* Счётчик активных фильтров */
.fng-tasks-archive .fng-search-toggle .fng-toggle-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	border-radius: 10px;
	background: linear-gradient(180deg, #f3d95a 0%, #dbb300 40%, #8a6d00 100%);
	box-shadow: 0 0 0 1px #000;
	color: #1a1400;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0;
}

.fng-tasks-archive .fng-search-toggle .fng-toggle-count[hidden] {
	display: none;
}

.fng-tasks-archive .fng-toggle-caret {
	width: 7px;
	height: 7px;
	margin: -3px 0 0 2px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	transition: transform .2s;
}

.fng-tasks-archive .fng-search-toggle[aria-expanded="true"] .fng-toggle-caret {
	margin-top: 3px;
	transform: rotate(-135deg);
}

/* Панель внутри общего стального корпуса — без второй рамки */
.fng-tasks-archive .fng-extra-fields.open {
	margin-top: 22px;
	padding-top: 22px;
	border-top: 1px solid #000;
	box-shadow: 0 -1px 0 #4a4a4a;
}

.fng-tasks-archive .fng-search-form .fng-fp {
	margin: 0;
	padding: 0;
	background: none;
	box-shadow: none;
	border-radius: 0;
}

@media (max-width: 720px) {
	.fng-tasks-archive .fng-search-form form.fng-search-form-inner {
		padding: 16px 14px;
	}

	.fng-tasks-archive .fng-search-row {
		flex-wrap: wrap;
		gap: 14px 10px;
	}

	.fng-tasks-archive .fng-search-field-keyword {
		order: 3;
		flex: 1 1 100%;
	}

	.fng-tasks-archive .fng-search-toggle-wrap,
	.fng-tasks-archive .fng-search-go {
		flex: 1 1 0;
	}

	.fng-tasks-archive .fng-search-toggle,
	.fng-tasks-archive .fng-search-go {
		width: 100%;
		min-width: 0;
		padding: 0 8px;
		letter-spacing: .05em;
	}

	.fng-tasks-archive .fng-extra-fields.open {
		margin-top: 16px;
		padding-top: 16px;
	}
}

/* Перебиваем старые правила style.css для .type-horizontal (колонка на мобильных) */
.fng-tasks-archive .fng-search-form.type-horizontal .fng-search-row {
	flex-direction: row;
	align-items: center;
	gap: 18px;
}

@media (max-width: 720px) {
	.fng-tasks-archive .fng-search-form.type-horizontal .fng-search-row {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
		gap: 14px 10px;
	}

	.fng-tasks-archive .fng-search-form.type-horizontal .fng-search-field-keyword {
		flex: 1 1 100%;
		min-width: 0;
		order: 3;
	}

	.fng-tasks-archive .fng-search-form.type-horizontal .fng-search-toggle-wrap,
	.fng-tasks-archive .fng-search-form.type-horizontal .fng-search-go {
		flex: 1 1 0;
		min-width: 0;
	}
}
