:root {
	--bs-secondary: #2d3436;
	--btn-primary-bg: #cb3340;
}

.btn-primary {
	color: #fff;
	background-color: var(--btn-primary-bg);
	border-color: var(--btn-primary-bg);
}


.btn-success {
	color: #fff;
	background-color: #e34c5b;
	border-color: #e34c5b;
}

body {
	background-color: #f8f9fa;
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}


.error {
	color: red;
	font-size: 12px;
}

.success {
	color: green;
	font-size: 12px;
}


.site-navbar {
	margin: 0 0 25px;
	padding: 10px 0;
	width: 100%;
	min-height: 60px;
	background: #f7f7f7;
}


.login {

	/*max-width: 500px;*/
	margin: 0 auto;
	background-color: #dee2e6;

	min-height: calc(100vh - 56px);

}


.auth-form {
	background: white;
	padding: 2rem;
	border-radius: 15px;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	margin-top: 5rem;
}

.auth-form h2 {
	color: var(--bs-secondary);
	margin-bottom: 1.5rem;
	font-weight: 600;
	letter-spacing: -0.5px;
}

.auth-form .form-floating {
	margin-bottom: 1rem;
}

.auth-form input.form-control {
	border-radius: 10px;
	padding: 1rem;
	font-size: 0.9rem;
}

.auth-form button {
	border-radius: 10px;
	padding: 0.75rem 2rem;
	font-weight: 600;
	transition: all 0.3s ease;
}

.auth-form button:hover {
	transform: translateY(-2px);
	box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.auth-footer {
	margin-top: 1rem;
	color: #6c757d;
	font-size: 0.875rem;
}

.search-form-wrapper {
	padding: 15px 15px;
	margin: 45px auto;
	background-color: #dee2e6;
	border-radius: 8px;
}

.tasks-list .table tbody tr:nth-child(2n-1) td {
	background-color: #efefef;
}

body .pagination {
	display: flex;
	padding-left: 0;
	list-style: none;
	flex-wrap: wrap;
	padding: 15px 0;
}

body .pagination .page-link {
	margin: 6px;
}

.form-wrapper {
	background: #dee2e6;
	padding: 10px;
}

.datamatrix-image {
	margin: 25px;
}

.matrix-code img {
	margin: 15px;
}




.artikul-search-modal .modal-dialog {
	max-width: 90%;
	margin: 1.75rem auto;
}

.manual_checked,
.manual_checked td {
	background-color: #bbdacb;
}


.table_wrap {
	overflow: auto;
	width: 100%;
	margin: 20px 0 0;
}

.artikul_search {
	min-width: 120px;
}


p {
	margin-top: 0;
	margin-bottom: 0.5rem;
}


.page-info {
	display: flex;
	flex-wrap: nowrap;
	list-style: none;
	justify-content: space-between;
	margin: 0;
	padding: 15px 0 25px;
	gap: 10px;
}


.btn-csv {
	white-space: nowrap;
	font-weight: bold;
}



@media (min-width: 992px) {
	.navbar-expand-lg {
		flex-wrap: nowrap;
		justify-content: flex-start;
	}
}


@media (max-width:762px) {
	.table_wrap * {
		line-height: 17px;
		font-size: 14px;
	}

	.navbar-expand-lg {
		flex-wrap: wrap;
		justify-content: flex-start;
	}

	.container,
	.container-sm {
		max-width: 100%;
	}

	.btn-csv {
		white-space: nowrap;
		font-weight: bold;
		font-size: 12px;
	}

}

/* Стиль для левой панели */
.sidebar {
	position: fixed;
	top: 0;
	bottom: 0;
	left: 0;
	z-index: 100;
	padding: 48px 0 0;
	/* Высота шапки */
	width: 250px;
	background-color: #f8f9fa;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	transition: width 0.3s ease;
	/* Плавная анимация изменения ширины */
}

/* Иконный режим */
.sidebar.collapsed {
	width: 80px;
	/* Ширина в иконном режиме */
}

/* Основной контент справа */
.content {
	margin-left: 250px;
	/* Ширина левой панели */
	padding: 20px;
	transition: margin-left 0.3s ease;
	/* Плавная анимация изменения отступа */
}

/* Адаптация основного контента при сворачивании */
.sidebar.collapsed+.content {
	margin-left: 80px;
	/* Отступ в иконном режиме */
}

/* Скрытие текста в иконном режиме */
.sidebar.collapsed .nav-link-text {
	display: none;
}

/* Размещение иконок рядом с текстом */
.nav-link {
	display: flex;
	align-items: center;
}

.nav-link i {
	margin-right: 10px;
}

/* Кнопка переключения */
.toggle-btn {
	position: absolute;
	top: 10px;
	right: -20px;
	background-color: #cb3340;
	color: white;
	border: none;
	border-radius: 50%;
	width: 40px;
	height: 40px;
	cursor: pointer;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Шапка с отступом */
.navbar {
	transition: padding-left 0.3s ease;
	/* Плавная анимация изменения отступа */
}

/* Стиль для <main> */
main {
	transition: padding-left 0.3s ease;
	/* Плавная анимация изменения отступа */
}

.search-container {
	position: relative;
	/* Родительский контейнер для абсолютного позиционирования */
	width: 100%;
	/* Ширина контейнера */
}

#search-results {
	position: absolute;
	/* Абсолютное позиционирование */
	top: 100%;
	/* Размещение сразу под полем ввода */
	left: 0;
	width: 100%;
	/* Ширина совпадает с полем ввода */
	max-height: 500px;
	/* Максимальная высота */
	overflow-y: auto;
	/* Прокрутка при переполнении */
	border: 1px solid #ccc;
	/* Граница */
	background-color: #fff;
	/* Фон */
	z-index: 1000;
	/* Убедитесь, что выпадающий список выше других элементов */
	/*display: none;*/
	/* Скрыт по умолчанию */
	box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
	/* Тень для визуального выделения */
}

#search-results div {
	padding: 8px 12px;
	/* Отступы внутри строки */
	cursor: pointer;
	/* Курсор указывает, что строка кликабельна */
	white-space: nowrap;
	/* Запрещаем перенос текста */
	overflow: hidden;
	/* Обрезаем текст, если он не помещается */
	text-overflow: ellipsis;
	/* Добавляем многоточие для длинных строк */
}

#search-results div:hover {
	background-color: #f0f8ff;
	/* Цвет фона при наведении */
	color: #007bff;
	/* Цвет текста при наведении */
}


#search-results {
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

#search-results.show {
	opacity: 1;
	visibility: visible;
}




.action-buttons {
	position: fixed;
	bottom: -100px;
	left: 50%;
	transform: translateX(-50%) translateY(100px);
	background-color: #242a33;
	border: 1px solid transparent;
	padding: 10px;
	box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
	z-index: 999;
	opacity: 0;
	transition: transform 0.4s ease, opacity 0.4s ease;
	border-radius: 8px;
	color: rgba(247, 247, 255, 0.9);
}

.show-buttons {
	transform: translateX(-50%) translateY(-120px);
	opacity: 1;
}


.btn-action {
	height: 32px;
	font-size: 14px;
	line-height: 32px;
	transform: scale(1);
	color: #222426;
	background-color: #ffdc60;
	cursor: pointer;
	border-radius: 8px;
	padding: 0 10px;
	margin: 0 4px;
	outline: 0;
}

.btn-action.btn-action-nobg {
	border-color: transparent;
	background-color: transparent;
	color: #cfcaca;
	text-decoration: underline;
}

.btn-action.btn-action-nobg:hover,
.btn-action.btn-action-nobg:active {
	text-decoration: none;
	background-color: #474747;
}


.btn-action:hover {
	background-color: #ffd21f;
	transform: scale(0.98);
}

.btn-action:active {
	transform: scale(0.96);
}


.file-field-container {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.existing-file {
	display: flex;
	align-items: center;
	gap: 10px;
}

.existing-file a {
	color: blue;
	text-decoration: underline;
	font-size: 14px;
}

/* --- User management form --- */
.card--user-form .card-header {
	background: #f8fafc;
	border-bottom: 1px solid #e2e8f0;
}

.card--user-form .card-body {
	background: #fff;
}

.form-section {
	border: 1px solid #e5e9f2;
	border-radius: 5px;
	padding: 1.5rem;
	background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
	box-shadow: 0 8px 18px -12px rgba(15, 23, 42, 0.4);
}

.form-section + .form-section {
	margin-top: 1.5rem;
}

.form-section__header {
	display: flex;
	flex-direction: column;
	margin-bottom: 1.25rem;
	gap: 0.25rem;
}

@media (min-width: 768px) {
	.form-section__header {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}
}

.form-section-title {
	font-weight: 600;
	color: #1f2937;
}

.form-section-subtitle {
	color: #6b7280;
	font-size: 0.875rem;
}

.form-section--system {
	border-color: #c4d3ff;
	background: linear-gradient(180deg, #f5f7ff 0%, #ffffff 100%);
}

.form-section--invite {
	border-style: dashed;
}

.password-field-wrapper .input-group .btn {
	display: flex;
	align-items: center;
	justify-content: center;
}

.password-field-wrapper .btn.copied {
	color: #16a34a;
	border-color: #bbf7d0;
	background: #f0fdf4;
}

.new-file-upload {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.new-file-upload label {
	font-weight: bold;
	font-size: 14px;
	color: #333;
}




.modal-dialog.modal-email {
	max-width: 800px;
}

.mail-block {
	display: flex;
	align-items: center;
	gap: 8px;
	line-height: 21px;
	margin: 0 0 11px;
}

.mail-block.fv {
	flex-direction: column;
}

.mail-block h4 {
	font-size: 16px;
	margin: 0;
	line-height: 22px;
}


.mail-body {
	padding: 10px;
	box-shadow: inset 0 0 2px 0px #c3c3c3;
	background: #f1f1f1;
	width: 100%;
}

.mail-body .hint {
	display: block;
	font-size: 12px;
}

.copy-message {
	display: none;
	border: 1px solid #ff6f05;
	background: #ffd7ca;
	padding: 2px 10px;
}

.sendEmailBody {
	background-color: #00a783;
	border-color: #00a783;
	color: #fff;
}


.sendEmailBody:hover,
.sendEmailBody:focus {
	color: #fff;
	background-color: #038a6c;
	border-color: #038a6c;
}

.sendEmailBody.again_send {
	opacity: 0.8;
}


.sendEmailBody:disabled {
	opacity: 0.8;
	filter: grayscale(100%);
}


.footer-button {
	display: flex;
	justify-content: space-between;
	width: 100%;
}

.sended_message {
	color: #e75f0c;
	background-color: #fff3cd;
	border-color: #ffeeba;
	text-align: left;
	padding: .75rem 1.25rem;
	border: 1px solid transparent;
	border-radius: .25rem;
	display: none;
	width: 100%;
}

.list-group-item {
	padding: 3px 10px;
	font-size: 15px;
}


.sidebar .nav-link {

	display: flex;
	flex-direction: row;
	align-items: center;
	flex-wrap: nowrap;

}

.nav-link-text {
	display: inline-block;
	line-height: 1.1;
}


.report-table {
	width: 100%;
	border-collapse: collapse;
	margin: 20px 0;
}

.report-table th,
.report-table td {
	border: 1px solid #ddd;
	padding: 12px;
	text-align: left;
}

.report-table th {
	background-color: #f5f5f5;
}

.speed-exceeded {
	background-color: #ffe6e6;
}

#map {
	width: 100%;
	height: 600px;
}

.placemark {
	cursor: pointer;
}


#map {
	width: 100%;
	height: 600px;
}

.table-striped>tbody>tr.speed-exceeded>* {
	background-color: #ffd9d9;

}

/* ===== Стили для управления ролями и разрешениями ===== */

:root {
	--vstsm-primary: #5266f4;
	--vstsm-border: rgba(82, 102, 244, .16);
	--vstsm-shadow: 0 0 20px #5267f41f;
	--vstsm-radius: 20px;
	--vstsm-card-bg: #fff;
}

/* Files page-like profile card */
.card__profile {
	background: #fff;
	border: 1px solid var(--vstsm-border);
	border-radius: 20px;
	box-shadow: var(--vstsm-shadow);
	padding: 20px 20px 24px;
}

.title__wrapper h3 {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 16px;
	font-weight: 600;
}

.title__wrapper h3 .ml-2 {
	margin-left: 8px;
}

.card__table-wrapper {
	width: 100%;
}

/* Data table styles (files-like) */
.card__table {
	width: 100%;
	border-collapse: collapse;
	background: rgb(246, 247, 250);
}

.card__table thead th {
	font-weight: 600;
	font-size: 0.9rem;
	padding: 10px 12px;
	color: #0f172a;
	border-bottom: 1px solid var(--vstsm-border);
}

.card__table-header th {
	vertical-align: middle;
}

.card__table tbody td {
	padding: 10px 12px;
	border-bottom: 1px solid var(--vstsm-border);
	font-size: 0.95rem;
	color: #0f172a;
}

.card__table tbody tr:hover {
	background: #fafbff;
}

.card__table .text-end {
	text-align: right;
}

/* User management action buttons */
.um-actions {
	display: inline-flex;
	gap: 8px;
}

.um-actions .action-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: #eef2ff;
	color: var(--vstsm-primary);
	text-decoration: none;
	transition: background .15s ease, transform .1s ease;
	border: none;
}

.um-actions .action-btn:hover {
	background: #e3e8ff;
	transform: translateY(-1px);
}

.um-actions .action-delete {
	background: #ffdede;
	color: #e23c3c;
}

.um-actions .action-delete:hover {
	background: #ffe6e6;
}

/* Badges (bigger, themed) */
.badge {
	display: inline-flex;
	align-items: center;
	padding: 0.35rem 0.6rem;
	border-radius: 999px;
	font-weight: 600;
	font-size: 0.9rem;
	line-height: 1;
}

.badge-soft-primary {
	background: rgba(82, 102, 244, 0.12);
	color: #5266f4;
}

.badge-soft-success {
	background: #eaf7f0;
	color: #1ea45d;
}

.badge-soft-secondary {
	background: #f1f3f5;
	color: #6c757d;
	padding: 0px;
}

/* Breadcrumbs (vstsm-like) */
nav[aria-label="breadcrumb"] {
	display: block;
	padding: 0 30px;
}

.breadcrumb {
	min-height: 42px;
	width: fit-content;
	display: flex;
	justify-content: flex-start;
	align-items: center;
	box-sizing: border-box;
	border: 1px solid rgba(82, 102, 244, .16);
	border-radius: 12px;
	box-shadow: 0 0 20px #5267f41f;
	background: #fff;
	padding: 7.5px 10px;
	margin: 0;
	gap: 6px;
}

.breadcrumb .breadcrumb-item {
	display: inline-flex;
	align-items: center;
	color: #6c757d;
	padding: 0;
}

.breadcrumb .breadcrumb-item a {
	color: var(--vstsm-primary);
	text-decoration: none;
}

.breadcrumb .breadcrumb-item a:hover {
	text-decoration: underline;
}

.breadcrumb .breadcrumb-item.active {
	color: #0f172a;
	font-weight: 600;
}

/* Override default divider with chevron */
.breadcrumb .breadcrumb-item+.breadcrumb-item::before {
	content: "";
	display: inline-block;
	width: 6px;
	height: 9px;
	border-right: 2px solid #5266f4;
	border-top: 2px solid #5266f4;
	transform: rotate(45deg);
	margin: 0 9px 0 0px;
	opacity: 0.5;
}