@import "react-checkbox-tree/lib/react-checkbox-tree.css";
@import "./palette.css";

@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: normal;
	src:
		local("Inter"),
		url("/fonts/Inter/Inter-VariableFont_opsz,wght.ttf") format("truetype");
}

@font-face {
	font-family: "Inter-Italic";
	font-style: italic;
	font-weight: normal;
	src:
		local("Inter"),
		url("/fonts/Inter/Inter-Italic-VariableFont_opsz,wght.ttf")
			format("truetype");
}

* {
	font-family: "Inter" !important;
}

body {
	margin: 0;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	width: 100%;
	height: 100%;

	-ms-overflow-style: none;
	scrollbar-width: thin;
}

::-webkit-scrollbar {
	display: thin;
}

code {
	font-family:
		source-code-pro, Menlo, Monaco, Consolas, "Courier New", monospace;
}

p {
	margin: 0;
}

.mover {
	position: absolute;
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	height: 100%;
	z-index: -1;
}

.mover.mover-top {
	z-index: 1500;
}

.inactive {
	color: rgb(163, 159, 154);
}
.active {
	color: rgb(117, 106, 92);
}

.fields-grid-template {
	grid-template-columns: max-content 1fr;
	gap: 0 1rem;
	align-items: center;
}

.fields-grid-template > div {
	padding: 0.25rem 0rem;
}

.fields-grid-template > div:nth-child(odd) {
	font-style: italic;
	font-size: smaller;
	text-align: end;
}

.fields-grid-template > div:nth-child(even) {
	font-weight: bold;
}

.carousel-control-icon {
	background-color: brown;
}

.leaflet-popup-content-wrapper {
	padding: 0 !important;
}
.leaflet-popup-content {
	padding: 0 !important;
	margin: 0 !important;
}

.leaflet-control-attribution.leaflet-control a:first-child,
.leaflet-control-attribution.leaflet-control span {
	display: none;
}

.scrollable-container {
	flex: 1 1 auto;
	overflow-y: auto;
	height: 0px;
}

.animation {
	animation: bubble 1s infinite;
}

@keyframes bubble {
	0% {
		background-color: transparent;
	}

	50% {
		background-color: #d00;
	}

	100% {
		background-color: transparent;
	}
}

.width-40-rem {
	width: 40rem;
}

.leaflet-popup-content {
	width: auto !important;
}

.my-20 {
	max-height: 20rem;
}

td,
th {
	text-wrap: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.react-transform-wrapper {
	width: 100% !important;
	height: 100% !important;
}

.ant-picker-dropdown {
	z-index: 1301 !important;
}

.table-pagination-container p {
	margin: 0;
}

input:focus {
	outline: none;
	border: none;
}

.leaflet-popup-content-wrapper {
	padding: 0;
}

.leaflet-popup-content {
	padding: 0;
	margin: 0;
}

.alarm-icon-svg {
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
}
/* Пульсирующие кольца */
.pulse-ring {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 36px;
	height: 36px;
	margin: -18px 0 0 -18px; /* чтобы кольцо центрировалось по иконке */
	border: 4px solid var(--error-700);
	border-radius: 50%;
	animation:
		pulse1 2s infinite,
		pulse 2s infinite;
	pointer-events: none;
	opacity: 0;
}

/* Разные задержки, чтобы кольца "шли волной" */
.pulse-ring:nth-child(2) {
	animation-delay: 0.5s;
}
.pulse-ring:nth-child(3) {
	animation-delay: 1s;
}

/* Ключевые кадры анимации "пульса" */
@keyframes pulse {
	0% {
		opacity: 0;
	}
	50% {
		opacity: 1;
	}
	100% {
		opacity: 0;
	}
}
@keyframes pulse1 {
	0% {
		transform: scale(1);
	}
	100% {
		transform: scale(2.5);
	}
}

dialog {
	border: 0;
	border-image: none;
}

.leaflet-control {
	margin: 0 !important;
}
