body {
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
	overflow-y: scroll;
}

.fixed {
	table-layout: fixed;
}

table tr>th.ascending:before,
table tr>th.descending:before,
table tr>th.sorting:before {
	bottom: 50%;
	content: "▲"
}

table tr>th.ascending:after,
table tr>th.ascending:before,
table tr>th.descending:after,
table tr>th.descending:before,
table tr>th.sorting:after,
table tr>th.sorting:before {
	opacity: .125
}

table tr>th.ascending:after,
table tr>th.descending:after,
table tr>th.sorting:after {
	content: "▼";
	top: 50%
}

table tr>th.ascending:after,
table tr>th.ascending:before,
table tr>th.descending:after,
table tr>th.descending:before,
table tr>th.sorting:after,
table tr>th.sorting:before {
	display: block;
	font-size: .7em;
	line-height: 11px;
	opacity: .02;
	position: absolute;
	right: 10px
}

table tr>th.ascending:before,
table tr>th.descending:after {
	opacity: .6
}

.sorting,
.descending {
	position: relative;
}

.body-content {
	flex-grow: 1;
	max-width: 100%;
	width: 100%
}

@media (min-width: 901px) {
	.body-content {
		transition: ease-in width .2s, ease-in max-width .2s
	}

	.sidebar-collapsed .body-content {
		transition: ease-in width .2s .2s, ease-in max-width .2s .2s
	}
}

@media (min-width: 901px) {
	.with-sidebar .body-content {
		width: calc(100% - 270px);
		max-width: calc(100% - 270px);
		display: inline-block
	}
}

.body-sidebar {
	display: inline-block;
	vertical-align: top;
	width: 270px;
}

.body-sidebar {
	transition: ease-in opacity .2s .2s, ease-in max-height .2s .2s;
	opacity: 1;
	max-height: 100%
}

@media (min-width: 900px) {
	.sidebar-collapsed .body-sidebar {
		transition: ease-in opacity .2s, ease-in max-height .2s .01s;
		opacity: 0;
		max-height: 0
	}

	.sidebar-collapsed .with-sidebar .body-content {
		width: 100%;
		max-width: 100%
	}
}

@media (max-width: 900px) {
	.body-sidebar {
		display: none;
		opacity: 0;
		transition: all .2s ease, -xf-opacity .2s ease;
		overflow-y: hidden;
		height: 0;
	}
}

.anchorjs-link {
	font-weight: 400;
	transition: color 0.15s ease-in-out, opacity 0.15s ease-in-out;
}

.anchorjs-link {
	opacity: 0;
	text-decoration: none;
}

:hover>.anchorjs-link,
.anchorjs-link:focus {
	opacity: 1;
}

.text-decoration-none {
	text-decoration: none !important;
}

thead th {
	border-top: none !important;
}

.bg-primary {
	background-color: #3F7EC9 !important;
}

.bg-warning {
	background-color: #fff7e6 !important;
}

.text-orange {
	color: #ff9800 !important;
}

.text-yellow {
	color: #ffeb3b !important;
}

a.text-orange:focus,
a.text-orange:hover {
	color: #c57600 !important
}

a {
	color: #3F7EC9;
}

.attention-warning {
	background: #ffeeee;
}

.attention {
	padding: 0.5rem;
	margin-bottom: 0.5rem;
	border-left-width: .25rem;
	border-radius: .25rem;
}

.attention-danger {
	background: #fff8e1;
}

.attention-sucsses {
	background: #ddffdd;
}

.time-cards {
	counter-reset: time-card;
	display: flex;
	gap: 1.5rem;
	margin-top: 1rem;
	padding-left: 0.5rem;
	margin-bottom: 0.5rem;
}

.time-card {
	line-height: 1;
	text-align: center;
	display: inline-block;
	background: #fff;
	border-radius: 0.5em;
	border: 1px solid #ccc;
	counter-increment: time-card;
	position: relative;
	padding: .75rem;
}

.time-card::before {
	content: counter(time-card);
	position: absolute;
	top: -10px;
	left: -10px;
	background-color: #6c757d;
	color: white;
	width: 20px;
	height: 20px;
	border-radius: 10rem;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: bold;
}

.time-value {
	font-weight: 500;
	letter-spacing: 0.8px;
}

.counter {
	display: inline-block;
	padding: .25rem;
	font-weight: 500;
	line-height: 1.3;
	text-align: center;
	vertical-align: 1px;
	border: 1px solid #ccc;
	border-radius: 0.4rem;
}

tbody.width-collapse:not([data-open]) tr:not(:first-child) {
	display: none;
}

tbody tr .arrow {
	cursor: pointer;
	user-select: none;
	display: block;
	padding-left: 1.3rem;
	position: relative;
}

.sticky-col {
	position: sticky;
	z-index: 2;
}

.sticky-col-end {
	box-shadow: 2px 0 0 #dee2e6;
	z-index: 2;
}

tbody tr .arrow:before {
	content: '';
	border-width: .4rem;
	border-style: solid;
	border-color: transparent transparent transparent currentColor;
	position: absolute;
	top: .3rem;
	left: .4rem;
	transform: rotate(0);
	transform-origin: .2rem 50%;
	transition: .25s transform ease;
}

tbody[data-open] .arrow:before {
	transform: rotate(90deg);
}

.info-header {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding-bottom: .5rem;
	font-size: 1.25rem;
	/* или любой нужный */
	cursor: pointer;
}

.info-header {
	display: flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	user-select: none;
}

details .form-row {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease;
}

details[open] .form-row {
	max-height: 500px;
	/* достаточно большое значение */
}

summary.info-header::before {
	content: '⯈';
	flex-grow: 0;
	margin-right: 6px;
	transition: transform 0.2s ease;
}

details[open]>summary.info-header::before {
	transform: rotate(90deg);
}

summary.info-header {
	list-style: none;
}

summary.info-header::-webkit-details-marker {
	display: none;
}

.info-header:not(summary)::before {
	content: "";
	flex-grow: 0;
	flex-basis: 18px;
	height: 1px;
	background: currentColor;
}

.info-header::after {
	content: "";
	flex-grow: 1;
	height: 1px;
	background: linear-gradient(90deg, currentColor, transparent);
}

.nav-pills .nav-item .nav-link {
	padding: 0.2rem .5rem !important;
}

.nav-pills .nav-link.active,
.nav-pills .show>.nav-link {
	background-color: #3F7EC9 !important;
}

.scroll-map {
	z-index: 1000;
	width: 144px;
	height: 81px;
	background: #f0f0f0;
	border: 2px dashed #aaa;
	border-radius: 2px;
	position: relative;
	opacity: 0.3;
	overflow: hidden;
	cursor: grab;
}

.scroll-indicator {
	position: absolute;
	background: #5bc0de;
	pointer-events: auto;
	border-radius: 2px;
	cursor: grab;
}

.scroll-indicator.dragging {
	cursor: grabbing;
}

.top-0 {
	top: 0 !important;
}

.end-0 {
	right: 0 !important;
}

.bottom-0 {
	bottom: 0 !important;
}

.start-0 {
	left: 0 !important;
}

.dropdown-menu.double {
	min-width: 540px;
}

.table-sticky thead th {
	background-color: rgba(255, 255, 255, 0.8);
}

.table-sticky thead {
	position: sticky;
	top: 0;
	z-index: 10;
}

caption {
	caption-side: top !important;
}

.resizer {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	background: black;
	opacity: 0;
	width: 7px;
	cursor: col-resize;
}

.resizer:hover,
.header--being-resized .resizer {
	opacity: 0.5;
}

th:hover .resizer {
	opacity: 0.3;
}

.table-fixed {
	table-layout: fixed;
}

.table-align-middle td,
.table-align-middle th {
	vertical-align: middle !important;
}

td.text-truncate,
th.text-truncate {
	max-width: 0;
}

[data-checked="true"]>.check-mark:before {
	display: block;
}

.check-mark:before {
	box-sizing: content-box;
	content: '';
	display: none;
	position: absolute;
	top: 50%;
	left: 50%;
	margin: -5px 0 0 -6px;
	height: 4px;
	width: 8px;
	border: solid #39ca74;
	border-width: 0 0 4px 4px;
	transform: rotate(-45deg);
}

.check-mark {
	position: relative;
	top: 2px;
	display: inline-block;
	vertical-align: top;
	margin-right: 12px;
	width: 20px;
	height: 20px;
	display: inline-block;
	min-width: 1em;
	color: rgba(0, 1, 2, .85);
	background: #fcfcfd;
	border-radius: 12px;
	box-shadow: 0 0 0 1px rgba(0, 20, 49, .18) inset;

}

.offcanvas {
	position: fixed;
	top: 0;
	left: 0;
	width: 280px;
	height: 100%;
	background-color: white;
	transform: translateX(-100%);
	transition: transform 0.3s ease-in-out;
	z-index: 1050;
	/* поверх контента */
	padding: 1rem;
}

.offcanvas.show {
	transform: translateX(0);
}

.offcanvas-backdrop {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, .5);
	z-index: 1040;
	display: none;
}

.offcanvas-backdrop.show {
	display: block;
}

tr.clickable {
	cursor: pointer;
}

.list-inline-separator .list-inline-item:not(:last-child) {
	margin-right: 0;
	position: relative;
}

.list-inline-separator .list-inline-item:not(:last-child)::after {
	content: "|";
	margin-left: 0.5rem;
	color: #6c757d;
}

.btn-group .badge:not(:last-child) {
	border-top-right-radius: 0;
	border-bottom-right-radius: 0;
}

.btn-group .badge:not(:first-child) {
	border-top-left-radius: 0;
	border-bottom-left-radius: 0;
}

.backdrop {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.4);
}

.overlay {
	position: absolute;
	inset: 0;
	display: flex;
	justify-content: center;
	align-items: center;
	background: rgba(255, 255, 255, 0.6);
	z-index: 10;
}

.reveal.collapse:not(.show) {
	position: relative;
	display: block;
	height: 3rem !important;
	overflow: hidden;
}

.reveal.collapsing {
	min-height: 6rem !important;
}

.reveal.collapse:not(.show)::after {
	content: "";
	display: inline-block;
	position: absolute;
	height: 50px;
	width: 100%;
	left: 0;
	right: 0;
	bottom: 0;
	pointer-events: none;
	background-image: linear-gradient(0deg, #fff 10%, transparent);
}

ul.reveal>li:not(:first-child) {
	margin-top: 0.5rem;
}

.btn-link {
	outline: none;
}

.summary[aria-expanded="true"]::before {
	transform: rotate(90deg);
}

.summary::before {
	content: '⯈';
	display: inline-block;
	transition: transform 0.2s ease;
}

[data-collapse-target="toggle"].collapsed .if-not-collapsed {
	display: none;
}

[data-collapse-target="toggle"]:not(.collapsed) .if-collapsed {
	display: none;
}

.air-datepicker-global-container {
	z-index: 2000;
}

.clear-button {
	cursor: pointer;
	margin-right: 0 !important;
	opacity: 0;
	position: absolute;
	right: calc(.75rem - 5px);
	top: 50%;
	transform: translateY(-50%);
	transition: opacity .5s;
}

.form-control:not(:placeholder-shown)~.clear-button {
	opacity: 1;
}

td.sticky-col {
	position: sticky;
	background: rgba(255, 255, 255, 0.8);
}

.rotated {
	writing-mode: vertical-lr;
	text-orientation: mixed;
	/* vertical-align: middle !important; */
	transform: rotate(180deg);
}

.table-sticky {
	border-collapse: separate;
	border-spacing: 0;
}

.table-sticky thead {
	background: rgba(255, 255, 255, 0.8);

	position: relative;
	z-index: 500;
}

th.sticky-col {
	position: sticky;
	isolation: isolate;
}

.gap-1 {
	gap: .25rem !important;
}

.line-clamp {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: var(--read-more-line-clamp, 2);
}

[data-tooltip] {
	position: relative;
}

[data-tooltip]::after {
	content: attr(data-tooltip);
	position: absolute;
	bottom: 100%;
	left: 50%;
	transform: translateX(-50%);
	background: #111;
	color: #fff;
	padding: 4px 8px;
	border-radius: 4px;
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	transition: opacity .15s;
}

[data-tooltip]:hover::after,
[data-tooltip]:focus::after {
	opacity: 1;
}


.tree,
.tree ul {
	margin-left: -0.5em;
	padding: 0;
	list-style: none
}

.tree ul {
	margin-left: 0.5em;
	position: relative
}

.tree ul ul {
	margin-left: 5px
}

.tree ul:before {
	content: "";
	display: block;
	width: 0;
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	border-left: 1px solid
}

.tree li {
	margin: 0;
	padding-left: 15px;
	/* margin-bottom:5px; */
	/* margin-top: -5px; */
	line-height: 1.5em;
	position: relative
}

.tree ul li:before {
	content: "";
	display: block;
	width: 10px;
	height: 0;
	border-top: 1px solid;
	margin-top: -1px;
	position: absolute;
	top: 0.8em;
	left: 0
}

.tree ul li:last-child:before {
	background: #fff;
	height: auto;
	top: 1.0em;
	bottom: 0
}



/* .thumbnail {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
} */

.thumbnail-container {
    width: 100%;
    /* Квадратное соотношение сторон */
    aspect-ratio: 1 / 1; 
    /* Обрезает лишнее, чтобы не было пустых полей */
    object-fit: cover;
    /* Центрирует изображение внутри области */
    object-position: center; 
    display: block;
}




.file-info {
	position: absolute;
	opacity: 0.8;
	padding: .25rem;
	font-size: 0.75rem;
	right: 0;
	bottom: 0;
	left: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	color: #fff;
	background: rgba(0, 0, 0, 0.5);
}

.prompt::before {
	content: attr(data-prompt);
	position: absolute;
	/* z-index: 1; */
	display: block;
	width: 100%;
	text-align: center;
	color: #adb5bd;
	font-weight: bold;
	pointer-events: none;
}

.drop-zone {
	border: 2px dashed #dee2e6;
	border-radius: 0.4rem;
	background-color: #f8f9fa;
	position: relative;
	min-height: 40px;
	/* padding: 5px; */
	/* display: flex; */
	/* align-items: center; */
	/* justify-content: center; */
	/* transition: 0.3s;  */
}

.drop-zone input[type="file"] {
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	opacity: 0;
	cursor: pointer;
	/* z-index: 2; */

}

.drop-zone-prompt {
	position: absolute;
	z-index: 1;
	text-align: center;
	color: #adb5bd;
	user-select: none;
}

.preview-container {
	position: relative;
	z-index: 3;
	display: flex;
	/* flex-wrap: wrap; */
	/* gap: 15px; */
	justify-content: center;
	width: 100%;
	pointer-events: none;
}

.reveal.collapse:empty {
	height: 0 !important;
	min-height: 0 !important;
	display: none;
}