html,
body {
	max-width: 100%;
	overflow-x: hidden;
}

@media (max-width: 767.98px) {
	html,
	body {
		/*
		 * На мобильных запрещаем горизонтальный pan и pinch-zoom через CSS.
		 * Вертикальная прокрутка остаётся рабочей.
		 */
		touch-action: pan-y;
		overscroll-behavior-x: none;
	}
}

body {
	background: #f5f5f5;
}

/*
 * Bootstrap при открытии модалки добавляет body.modal-open и блокирует body.
 * Дополнительно закрываем root-scroller html: на части браузеров именно он продолжает прокручивать фон страницы.
 */
html:has(body.modal-open),
body.modal-open {
	overflow: hidden !important;
	overscroll-behavior: none;
}

/*
 * Не даём прокрутке из модалки пробрасываться на страницу под ней.
 * Это лёгкое CSS-усиление без фиксации body через JS.
 */
.modal {
	overscroll-behavior: contain;
}


/*
 * Bootstrap по умолчанию даёт .modal-header .btn-close отрицательные margin.
 * Кнопки закрытия в проекте позиционируются вручную, поэтому глобально убираем этот сдвиг.
 */
.modal-header .btn-close {
	margin: 0;
}

.mt-15{
	margin-top:15px;	
}

.mb-15{
	margin-bottom:15px;	
}

.rotate-180 {
	transform: rotate(180deg);
	transition: transform 0s ease;
}

.copy-success {
	background-color: #f9e6eb;
	transition: background-color 0.3s ease;
}

.navbar-brand i{
	margin-right:6px;
}

.navbar-brand-logo {
	display: inline-flex;
	align-items: baseline;
}

/*
 * Акцент для первых двух букв логотипа RAZUM.biz.
 * Цвет взят из заголовка просроченных клиентов/задач.
 */
.navbar-brand-logo-accent {
	color: #b04a63;
}

.auth-navbar-home-logo {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 78px;
	height: 48px;
	padding: 2px 0;
	text-decoration: none;
}

.auth-navbar-home-logo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.nav-link{
	display:flex;
	align-items:center;
	gap:6px;
}

.nav-link.active{
	font-weight:600;
}

.nav-item{
	color: #000000;
}

.nav-item a{
	color: #000000;
}

/* =========================
   Bootstrap Icons — нормализация размеров
   ========================= */

.bi {
	/*
	 * Bootstrap Icons подключены как иконный шрифт.
	 * Без явного line-height сам <i> может получать высоту строки от родителя,
	 * например от .btn, из-за чего иконка становится условно 30x32 вместо 30x30.
	 */
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1em;
	height: 1em;
	line-height: 1;
	vertical-align: -0.125em;
}

.bi::before {
	/*
	 * У самой иконки контент лежит в ::before.
	 * Делаем его блочным, чтобы вокруг glyph не появлялась лишняя высота строки.
	 */
	display: block;
	line-height: 1;
}

.form-control,
.form-select,
textarea.form-control {
	border-radius: var(--bs-border-radius);
}

.form-control:focus {
/*	border-color: #6c757d ;*/
	border: var(--bs-border-width) solid var(--bs-border-color);
	outline: 0;
	 
	box-shadow: 0 0 0 .15rem #f2f2f2;
}


.form-control.is-invalid, .was-validated .form-control:invalid {
    background-image: none;
}


/* =========================
   Глобальный размытый фон модальных окон
   ========================= */

.modal-backdrop {
	transition:
		backdrop-filter 0.12s ease-out,
		-webkit-backdrop-filter 0.12s ease-out,
		background-color 0.12s ease-out,
		opacity 0.12s ease-out;
}

.modal-backdrop.show {
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
	background-color: rgba(0, 0, 0, 0.45);
	opacity: 1;
}


/* =========================
   Глобальные модальные окна
   ========================= */

.modal .modal-header {
	/* Убираем стандартный Bootstrap-разделитель сверху во всех модальных окнах сайта. */
	border-bottom: 0;
}

.modal .modal-footer {
	/* Убираем стандартный Bootstrap-разделитель снизу во всех модальных окнах сайта. */
	border-top: 0;
	justify-content: center;
	gap: 10px;
}

.modal .modal-footer.flex-column,
.modal .modal-footer.align-items-stretch {
	align-items: center !important;
}

.modal .modal-footer.flex-column > .alert,
.modal .modal-footer.flex-column > [id$="_error"] {
	width: 100%;
}



/* =========================
   Верхнее меню пользователя
   ========================= */

.user-menu-toggle {
	min-width: 50px;
	height: 38px;
	border-radius: 999px;
	padding: 0 10px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	font-weight: 700;
	line-height: 1;
	color: #333333;
	background: #ffffff;
	border: 1px solid #dddddd;
	--bs-btn-color: #333333;
	--bs-btn-bg: #ffffff;
	--bs-btn-border-color: #dddddd;
	--bs-btn-hover-color: #333333;
	--bs-btn-hover-bg: #ffffff;
	--bs-btn-hover-border-color: #dddddd;
	--bs-btn-active-color: #333333;
	--bs-btn-active-bg: #ffffff;
	--bs-btn-active-border-color: #dddddd;
	--bs-btn-focus-shadow-rgb: 0, 0, 0;
}

.user-menu-toggle:hover,
.user-menu-toggle:focus,
.user-menu-toggle:active,
.user-menu-toggle.show,
.btn.user-menu-toggle:hover,
.btn.user-menu-toggle:focus,
.btn.user-menu-toggle:active,
.btn.user-menu-toggle.show,
.btn.user-menu-toggle:first-child:active,
:not(.btn-check) + .btn.user-menu-toggle:active {
	color: #333333;
	background: #ffffff;
	border-color: #dddddd;
	box-shadow: none;
	outline: none;
}

.user-menu-toggle-icon {
	font-size: 18px;
	line-height: 1;
}

.user-menu-toggle-management-icon {
	display: block;
	width: 18px;
	height: 18px;
	object-fit: contain;
}

.user-menu-toggle-chevron {
	font-size: 12px;
	line-height: 1;
	transition: transform .15s ease;
}

.user-menu-toggle.show .user-menu-toggle-chevron {
	transform: rotate(180deg);
}

.user-menu-dropdown-list {
	min-width: 220px;
	padding: 8px;
	border-radius: 12px;
}

.desktop-side-menu-settings-dropdown,
.mobile-primary-menu-dropdown-list,
.mobile-user-dropdown-list {
	box-shadow: 0 0 20px rgba(0, 0, 0, .36), 0 12px 32px rgba(0, 0, 0, .20);
}

.user-menu-dropdown-item {
	display: flex;
	align-items: center;
	gap: 8px;
	border-radius: 8px;
	padding: 8px 10px;
}

.user-menu-dropdown-item.active,
.user-menu-dropdown-item.active:hover,
.user-menu-dropdown-item.active:focus,
.user-menu-dropdown-item.active:active {
	background: #eeeeee;
	color: #111111;
	font-size: 1.1em;
	font-weight: 700;
}

.user-menu-dropdown-item.active .bi {
	color: #111111;
}

.user-menu-dropdown-item-title {
	min-width: 0;
}

.user-menu-dropdown-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 19px;
	height: 19px;
	margin-left: auto;
	padding: 0 5px;
	border-radius: 999px;
	background: #dc3545;
	color: #ffffff;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
}

.user-menu-dropdown-badge-clients {
	background: #4b4b4b;
}

.user-menu-dropdown-item:active {
	color: #111111;
	background: #eeeeee;
}


/* =========================
   Общие toast-уведомления
   ========================= */

.app-toast-container {
	/* Уводим обычные Bootstrap-toast влево и не накрываем левое desktop-меню. */
	right: auto !important;
	left: 0 !important;
	width: min(380px, calc(100vw - 32px));
	max-width: calc(100vw - 32px);
}

.app-toast-container .toast {
	max-width: 100%;
}

@media (min-width: 768px) {
	body.has-desktop-side-menu .app-toast-container {
		left: var(--desktop-side-menu-width) !important;
		width: min(380px, calc(100vw - var(--desktop-side-menu-width) - 32px));
	}
}

@media (max-width: 767.98px) {
	.app-toast-container {
		/* Справа оставляем место под плавающую кнопку «+ добавить». */
		width: min(360px, calc(100vw - 96px));
		max-width: calc(100vw - 96px);
	}
}

/* =========================
   Левое меню desktop/tablet
   ========================= */

:root {
	--desktop-side-menu-width: 112px;
	--desktop-topbar-height: 64px;
}

@media (min-width: 768px) {
	body.has-desktop-side-menu {
		padding-left: var(--desktop-side-menu-width);
	}

	.desktop-side-menu {
		position: fixed;
		left: 0;
		top: 0;
		bottom: 0;
		z-index: 1040;
		width: var(--desktop-side-menu-width);
		padding: 10px 10px 12px 10px;
		background: #ffffff;
		border-right: 1px solid #e2e2e2;
		box-shadow: 4px 0 18px rgba(0, 0, 0, .04);
		flex-direction: column;
		align-items: stretch;
	}

	.desktop-side-menu-logo {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 92px;
		height: 50px;
		margin: 0 auto 10px;
		text-decoration: none;
		overflow: hidden;
	}

	.desktop-side-menu-logo img {
		display: block;
		width: 92px;
		height: 50px;
		object-fit: contain;
	}

	.desktop-side-menu-list {
		display: flex;
		flex-direction: column;
		gap: 6px;
	}

	.desktop-side-menu-link {
		position: relative;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 6px;
		min-height: 66px;
		padding: 7px 5px;
		border: 1px solid transparent;
		border-radius: 16px;
		color: #333333;
		text-decoration: none;
		font-size: 10.5px;
		font-weight: 500;
		line-height: 1.14;
		text-align: center;
		transition: background .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease;
	}

	.desktop-side-menu-link:hover,
	.desktop-side-menu-link:focus {
		color: #000000;
		background: #f4f4f4;
		border-color: rgba(0, 0, 0, .05);
	}

	.desktop-side-menu-link.is-active {
		color: #000000;
		background: #f9e6eb;
		border-color: #f0c8d2;
		box-shadow: 0 4px 14px rgba(176, 74, 99, .11);
	}

	.desktop-side-menu-icon-wrap {
		position: relative;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 28px;
		height: 28px;
	}

	.desktop-side-menu-link i {
		font-size: 22px;
	}

	.desktop-side-menu-img-icon {
		display: block;
		width: 22px;
		height: 22px;
		object-fit: contain;
	}

	.desktop-side-menu-link.is-locked,
	.mobile-primary-menu-link.is-locked {
		color: #777777;
		background: #f7f7f7;
		border-color: rgba(0, 0, 0, .04);
	}

	.desktop-side-menu-link.is-locked:hover,
	.desktop-side-menu-link.is-locked:focus,
	.mobile-primary-menu-link.is-locked:hover,
	.mobile-primary-menu-link.is-locked:focus,
	.mobile-primary-menu-link.is-locked:active {
		color: #333333;
		background: #f1f1f1;
		border-color: rgba(0, 0, 0, .08);
	}

	.desktop-side-menu-lock,
	.mobile-primary-menu-lock {
		position: absolute;
		top: -7px;
		right: -10px;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 18px;
		height: 18px;
		border-radius: 999px;
		background: #ffffff;
		border: 1px solid #dddddd;
		box-shadow: 0 2px 6px rgba(0, 0, 0, .08);
		color: #777777;
		font-size: 10px;
		line-height: 1;
	}

	.desktop-side-menu-lock i,
	.mobile-primary-menu-lock i {
		font-size: 10px;
		line-height: 1;
	}

	.desktop-side-menu-badge {
		position: absolute;
		top: -5px;
		right: -12px;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		min-width: 19px;
		height: 19px;
		padding: 0 5px;
		border-radius: 999px;
		background: #dc3545;
		color: #ffffff;
		font-size: 11px;
		font-weight: 700;
		line-height: 1;
		box-shadow: 0 0 0 2px #ffffff;
	}
/*
	.top-user-navbar {
		min-height: var(--desktop-topbar-height);
	}
*/
	.top-user-navbar .container {
		justify-content: flex-end;
	}
}

.page-placeholder-card {
	max-width: 760px;
	margin: 0 auto;
	padding: 20px;
	border: 1px solid rgba(0, 0, 0, .08);
	border-radius: 18px;
	background: #ffffff;
	box-shadow: 0 10px 28px rgba(0, 0, 0, .045);
	text-align: center;
}

.page-placeholder-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 58px;
	height: 58px;
	margin-bottom: 16px;
	border-radius: 18px;
	background: #f9e6eb;
	color: #b04a63;
	font-size: 28px;
}

.page-placeholder-card h1 {
	margin: 0 0 8px;
	font-size: 26px;
	font-weight: 700;
}

.page-placeholder-card p {
	max-width: 520px;
	margin: 0 auto;
	color: #6c757d;
}


/* =========================
   PWA экран запуска приложения
   ========================= */

.pwa-launch-screen {
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	display: none;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
	min-height: 100svh;
	padding:
		calc(28px + env(safe-area-inset-top, 0px))
		calc(24px + env(safe-area-inset-right, 0px))
		calc(30px + env(safe-area-inset-bottom, 0px))
		calc(24px + env(safe-area-inset-left, 0px));
	background: #ffffff;
	pointer-events: auto;
}

html.is-pwa-launch-screen-visible,
html.is-pwa-launch-screen-visible body {
	background: #ffffff;
}

html.is-pwa-launch-screen-visible body {
	opacity: 1 !important;
	pointer-events: none;
}

html.is-pwa-launch-screen-visible .pwa-launch-screen {
	display: flex;
}

.pwa-launch-screen-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: min(100%, 360px);
	min-height: 62svh;
	text-align: center;
}

.pwa-launch-screen-logo {
	display: block;
	width: min(72vw, 300px);
	height: auto;
	margin: auto 0 24px;
}

.pwa-launch-screen-slogan {
	margin-top: auto;
	padding-bottom: clamp(16px, 8svh, 70px);
	color: #6c757d;
	font-size: clamp(16px, 4vw, 20px);
	font-weight: 400;
	line-height: 1.35;
}


/* =========================
   Блокировка альбомной ориентации на телефонах
   ========================= */

.mobile-orientation-lock {
	display: none;
}

.mobile-orientation-lock-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: min(320px, calc(100vw - 40px));
	padding: 26px 22px;
	border-radius: 22px;
	background: #ffffff;
	box-shadow: 0 12px 38px rgba(0, 0, 0, .18);
	text-align: center;
}

.mobile-orientation-lock-logo {
	display: block;
	width: 86px;
	height: auto;
	margin-bottom: 4px;
}

.mobile-orientation-lock-title {
	color: #222222;
	font-size: 18px;
	font-weight: 800;
	line-height: 1.2;
}

.mobile-orientation-lock-text {
	color: #777777;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.3;
}

@media (orientation: landscape) and (max-height: 767.98px) and (hover: none) and (pointer: coarse) {
	html,
	body {
		overflow: hidden !important;
	}

	.mobile-orientation-lock {
		position: fixed;
		z-index: 2147483600;
		inset: 0;
		display: flex;
		align-items: center;
		justify-content: center;
		padding: max(18px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
		background: #f6f6f6;
	}
}

/* =========================
   Мобильное основное меню
   ========================= */

@media (max-width: 767.98px) {

	/*
	 * Прячем первый кадр только до мгновенного стартового scrollTo().
	 * Меню остаётся в обычном потоке страницы и появляется естественно при скролле вверх.
	 */
	html.is-mobile-initial-scroll-pending:not(.is-pwa-launch-screen-visible) body {
		opacity: 0;
		pointer-events: none;
		transition: none !important;
	}

	.top-user-navbar {
		padding: 5px 0px 5px 0px;
		border-bottom: 1px solid #dddddd !important;
	}

	.top-user-navbar .mobile-main-navbar {
		position: relative;
		display: flex;
		align-items: stretch;
		justify-content: flex-start;
		flex-wrap: wrap;
		width: 100%;
		max-width: none !important;
		padding: 0 8px;
	}

	.mobile-main-menu-toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 42px;
		height: 42px;
		padding: 0;
		border-radius: 14px;
		border-color: #dddddd;
		background: #ffffff;
		box-shadow: none;
	}

	.auth-navbar-home-logo {
		align-self: center;
		width: 64px;
		height: 42px;
		padding: 1px 0;
	}

	.mobile-main-menu-toggle:hover,
	.mobile-main-menu-toggle:focus,
	.mobile-main-menu-toggle:active {
		background: #ffffff;
		border-color: #dddddd;
		box-shadow: none;
		outline: none;
	}

	.mobile-auth-links {
		display: inline-flex;
		align-items: center;
		gap: 6px;
		min-height: 42px;
		margin-left: auto;
		color: #333333;
		font-size: 14px;
		font-weight: 500;
		line-height: 1;
		white-space: nowrap;
	}

	.mobile-auth-links .bi {
		flex: 0 0 auto;
		font-size: 18px;
		color: #555555;
	}

	.mobile-auth-link {
		color: #333333;
		text-decoration: none;
	}

	.mobile-auth-link:hover,
	.mobile-auth-link:focus,
	.mobile-auth-link:active,
	.mobile-auth-link.is-active {
		color: #000000;
		text-decoration: none;
		font-weight: 700;
	}

	.mobile-auth-separator {
		color: #9a9a9a;
	}

	.mobile-user-menu {
		position: relative;
		margin-left: 0;
	}

	.mobile-user-menu-toggle {
		min-width: 52px;
		height: 42px;
		padding: 0 10px;
		color: #333333;
		background: #ffffff;
		border-color: #dddddd;
	}

	.mobile-user-menu-toggle:hover,
	.mobile-user-menu-toggle:focus,
	.mobile-user-menu-toggle:active,
	.mobile-user-menu-toggle.show {
		color: #333333;
		background: #ffffff;
		border-color: #dddddd;
		box-shadow: none;
		outline: none;
	}

	.mobile-user-dropdown-list {
		position: absolute !important;
		top: calc(100% + 8px) !important;
		right: 0 !important;
		left: auto !important;
		z-index: 1085;
		transform: none !important;
		margin: 0;
	}

	.top-user-navbar .navbar-collapse {
		flex-basis: 100%;
		width: 100%;
		min-width: 0;
	}

	.mobile-primary-menu {
		display: flex;
		align-items: stretch;
		gap: 6px;
		width: 100%;
		min-width: 0;
		margin-top: 5px;
		padding: 5px 0px 0px 0px;
		border-top: 1px solid #ededed;
		overflow-x: visible;
		overflow-y: visible;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}

	.mobile-primary-menu::-webkit-scrollbar {
		display: none;
	}

	.mobile-primary-menu-link {
		position: relative;
		display: flex;
		flex: 1 1 0;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 5px;
		min-width: 0;
		min-height: 78px;
		padding: 8px 4px;
		border: 1px solid transparent;
		border-radius: 15px;
		color: #333333;
		text-decoration: none;
		font-size: 8.5px;
		font-weight: 500;
		line-height: 1.12;
		text-align: center;
		transition: background .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease;
	}

	.mobile-primary-menu-link:hover,
	.mobile-primary-menu-link:focus,
	.mobile-primary-menu-link:active {
		color: #000000;
		background: #f4f4f4;
		border-color: rgba(0, 0, 0, .05);
		box-shadow: none;
	}

	.mobile-primary-menu-link.is-active {
		color: #000000;
		background: #f9e6eb;
		border-color: #f0c8d2;
		box-shadow: 0 4px 14px rgba(176, 74, 99, .11);
	}

	.mobile-primary-menu-icon-wrap {
		position: relative;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 25px;
		height: 25px;
	}

	.mobile-primary-menu-link i {
		display: block;
		font-size: 24px;
		line-height: 1;
	}

	.mobile-primary-menu-management-icon,
	.mobile-primary-menu-img-icon {
		display: block;
		width: 24px;
		height: 24px;
		object-fit: contain;
	}

	.mobile-primary-menu-title {
		display: flex;
		align-items: center;
		justify-content: center;
		height: 22px;
		max-width: 100%;
	}

	.mobile-primary-menu-badge {
		position: absolute;
		top: -5px;
		right: -13px;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		min-width: 19px;
		height: 19px;
		padding: 0 5px;
		border-radius: 999px;
		background: #dc3545;
		color: #ffffff;
		font-size: 11px;
		font-weight: 700;
		line-height: 1;
		box-shadow: 0 0 0 2px #ffffff;
	}

	.mobile-primary-menu-dropdown {
		position: relative;
		flex: 1 1 0;
		min-width: 0;
	}

	.mobile-primary-menu-dropdown-toggle {
		width: 100%;
	}


	.mobile-primary-menu-dropdown-toggle.show {
		color: #000000;
		background: #f9e6eb;
		border-color: #f0c8d2;
		box-shadow: 0 4px 14px rgba(176, 74, 99, .11);
	}

	.mobile-primary-menu-dropdown-list {
		width: min(330px, calc(100vw - 18px));
		margin-top: 8px !important;
	}

	.mobile-primary-menu-dropdown-list .user-menu-page-settings-button {
		align-items: center;
		white-space: nowrap;
		line-height: 1.2;
	}

	.mobile-primary-menu-dropdown-list .user-menu-page-settings-button .bi {
		flex: 0 0 auto;
		line-height: 1;
	}

	.mobile-crm-topbar {
		display: flex;
		align-items: flex-start;
		justify-content: space-between;
		gap: 8px;
		width: 100%;
	}

	.mobile-crm-topbar-side {
		display: flex;
		flex: 1 1 0;
		flex-direction: column;
		min-width: 0;
	}

	.mobile-crm-topbar-side-left {
		align-items: flex-start;
	}

	.mobile-crm-topbar-side-right {
		align-items: flex-end;
	}

	.mobile-crm-topbar-logo {
		display: inline-flex;
		flex: 0 0 auto;
		align-items: center;
		justify-content: center;
		width: 112px;
		height: 48px;
		padding-top: 0;
		text-decoration: none;
	}

	.mobile-crm-topbar-logo img {
		display: block;
		width: 104px;
		height: 48px;
		object-fit: contain;
	}

	.mobile-crm-topbar-pill {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		min-height: 32px;
		padding: 0 11px;
		border: 1px solid #d9d9d9;
		border-radius: 999px;
		background: #ffffff;
		color: #333333;
		font-size: 13px;
		font-weight: 700;
		line-height: 1;
		text-decoration: none;
		white-space: nowrap;
	}

	.mobile-crm-topbar-pill-balance {
		border-color: #f0c8d2;
		box-shadow: 0 4px 14px rgba(176, 74, 99, .11);
		color: #000000;
	}

	.mobile-crm-topbar-pill-days.is-active,
	.mobile-crm-topbar-pill-balance.is-active {
		background: #f9e6eb;
		border-color: #f0c8d2;
	}

	.mobile-crm-topbar-text-link {
		margin-top: 2px;
		color: #333333;
		font-size: 12px;
		font-weight: 500;
		line-height: 1.15;
		text-decoration: none;
		text-align: center;
	}

	.mobile-crm-topbar-side-left .mobile-crm-topbar-text-link {
		text-align: left;
	}

	.mobile-crm-topbar-side-right .mobile-crm-topbar-text-link {
		text-align: right;
	}

	.mobile-crm-topbar-text-link.is-active {
		color: #000000;
		font-weight: 700;
	}
}

@media (max-width: 374.98px) {
	.mobile-crm-topbar-logo {
		width: 100px;
	}

	.mobile-crm-topbar-logo img {
		width: 96px;
	}

	.mobile-crm-topbar-pill {
		min-height: 30px;
		padding-right: 8px;
		padding-left: 8px;
		font-size: 12px;
	}

	.mobile-crm-topbar-text-link {
		font-size: 11px;
	}

	.mobile-primary-menu-link {
		min-height: 72px;
		font-size: 8.8px;
	}

	.mobile-primary-menu-title {
		height: 20px;
	}
}

/* =========================
   Боковое меню: тариф, баланс и настройки
   ========================= */

@media (min-width: 768px) {
	/* В полной CRM-версии настройки перенесены в левое меню, поэтому верхнюю панель на ПК скрываем. */
	body.has-desktop-side-menu .top-user-navbar {
		display: none;
	}

	.desktop-side-menu-spacer {
		flex: 1 1 auto;
		min-height: 10px;
	}

	.desktop-side-menu-footer {
		display: flex;
		flex-direction: column;
		align-items: stretch;
	}

	.desktop-side-menu-info-link {
		display: flex;
		align-items: center;
		justify-content: center;
		min-height: 36px;
		padding: 5px 4px;
		border: 1px solid #d8d8d8;
		border-radius: 12px;
		background: #ffffff;
		color: #333333;
		font-size: 11px;
		font-weight: 600;
		line-height: 1.12;
		margin-bottom: 7px;
		text-align: center;
		text-decoration: none;
	}

	.desktop-side-menu-info-link:hover,
	.desktop-side-menu-info-link:focus {
		background: #f7f7f7;
		border-color: #cfcfcf;
		color: #333333;
		text-decoration: none;
	}

	.desktop-side-menu-tariff-wrap {
		display: block;
	}

	.desktop-side-menu-tariff-link {
		/* Desktop-only DEMO-плашка тарифа: мобильную верхнюю панель не трогаем. */
		flex-direction: column;
		gap: 2px;
	}

	.desktop-side-menu-pwa-refresh-btn {
		display: none;
	}

	.desktop-side-menu-tariff-days,
	.desktop-side-menu-tariff-label {
		display: block;
	}

	/*
	 * Ранний CSS-режим для установленного desktop PWA.
	 * Дублирует компактную раскладку до того, как JS успеет добавить body.is-desktop-pwa.
	 */
	@media (display-mode: standalone) and (min-width: 768px) and (hover: hover) and (pointer: fine) {
		.desktop-side-menu-tariff-wrap {
			display: flex;
			align-items: stretch;
			gap: 6px;
			margin-bottom: 10px;
		}

		.desktop-side-menu-tariff-link {
			flex: 1 1 auto;
			min-width: 0;
			min-height: 32px;
			margin-bottom: 0;
			padding: 4px 3px;
			border-radius: 11px;
			font-size: 10px;
			line-height: 1.06;
		}

		.desktop-side-menu-tariff-link .desktop-side-menu-tariff-label {
			font-size: 8.5px;
			letter-spacing: .03em;
		}

		.desktop-side-menu-pwa-refresh-btn {
			display: inline-flex;
			align-items: center;
			justify-content: center;
			flex: 0 0 30px;
			width: 30px;
			min-height: 32px;
			padding: 0;
			border: 1px solid #d8d8d8;
			border-radius: 11px;
			background: #ffffff;
			color: #333333;
			font-size: 15px;
			line-height: 1;
			cursor: pointer;
			transition: background .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease;
		}
	}

	.desktop-side-menu-tariff-label {
		font-size: 10px;
		font-weight: 700;
		letter-spacing: .04em;
		line-height: 1;
	}

	body.is-desktop-pwa .desktop-side-menu-tariff-wrap {
		display: flex;
		align-items: stretch;
		gap: 6px;
		margin-bottom: 10px;
	}

	body.is-desktop-pwa .desktop-side-menu-tariff-link {
		flex: 1 1 auto;
		min-width: 0;
		min-height: 32px;
		margin-bottom: 0;
		padding: 4px 3px;
		border-radius: 11px;
		font-size: 10px;
		line-height: 1.06;
	}

	body.is-desktop-pwa .desktop-side-menu-tariff-label {
		font-size: 8.5px;
		letter-spacing: .03em;
	}

	body.is-desktop-pwa .desktop-side-menu-pwa-refresh-btn {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		flex: 0 0 30px;
		width: 30px;
		min-height: 32px;
		padding: 0;
		border: 1px solid #d8d8d8;
		border-radius: 11px;
		background: #ffffff;
		color: #333333;
		font-size: 15px;
		line-height: 1;
		cursor: pointer;
		transition: background .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease;
	}

	body.is-desktop-pwa .desktop-side-menu-pwa-refresh-btn:hover,
	body.is-desktop-pwa .desktop-side-menu-pwa-refresh-btn:focus {
		background: #f7f7f7;
		border-color: #cfcfcf;
		color: #000000;
	}

	body.is-desktop-pwa .desktop-side-menu-pwa-refresh-btn:disabled {
		opacity: .65;
		cursor: default;
	}

	body.is-desktop-pwa .desktop-side-menu-pwa-refresh-btn.is-refreshing i {
		animation: desktop-pwa-refresh-spin .75s linear infinite;
	}

	@keyframes desktop-pwa-refresh-spin {
		from {
			transform: rotate(0deg);
		}

		to {
			transform: rotate(360deg);
		}
	}

	.desktop-side-menu-settings {
		display: flex;
		justify-content: stretch;
		margin-bottom: 0;
	}

	.desktop-side-menu-settings-btn {
		--bs-btn-color: #333333;
		--bs-btn-bg: transparent;
		--bs-btn-border-color: transparent;
		--bs-btn-hover-color: #000000;
		--bs-btn-hover-bg: #f4f4f4;
		--bs-btn-hover-border-color: rgba(0, 0, 0, .05);
		--bs-btn-active-color: #000000;
		--bs-btn-active-bg: #f4f4f4;
		--bs-btn-active-border-color: rgba(0, 0, 0, .05);
		--bs-btn-focus-shadow-rgb: 0, 0, 0;
		position: relative;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 3px;
		width: 100%;
		min-height: 66px;
		padding: 7px 5px;
		border: 1px solid transparent;
		border-radius: 16px;
		background: transparent;
		color: #333333;
		font-size: 10.5px;
		font-weight: 500;
		line-height: 1.14;
		text-align: center;
		text-decoration: none;
		transition: background .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease;
	}

	.desktop-side-menu-settings-icon {
		font-size: 22px;
	}

	.desktop-side-menu-management-icon {
		display: block;
		width: 22px;
		height: 22px;
		object-fit: contain;
	}

	.desktop-side-menu-settings-btn:hover,
	.desktop-side-menu-settings-btn:focus,
	.desktop-side-menu-settings-btn:active,
	.desktop-side-menu-settings-btn.show,
	.btn.desktop-side-menu-settings-btn:hover,
	.btn.desktop-side-menu-settings-btn:focus,
	.btn.desktop-side-menu-settings-btn:active,
	.btn.desktop-side-menu-settings-btn.show,
	.btn.desktop-side-menu-settings-btn:first-child:active,
	:not(.btn-check) + .btn.desktop-side-menu-settings-btn:active {
		background: #f4f4f4;
		border-color: rgba(0, 0, 0, .05);
		color: #000000;
		box-shadow: none;
		outline: none;
	}

	.desktop-side-menu-settings-btn.is-active,
	.desktop-side-menu-settings-btn.is-active:hover,
	.desktop-side-menu-settings-btn.is-active:focus,
	.desktop-side-menu-settings-btn.is-active:active {
		background: #f9e6eb;
		border-color: #f0c8d2;
		color: #000000;
		box-shadow: 0 4px 14px rgba(176, 74, 99, .11);
	}

	.desktop-side-menu-settings-dropdown {
		margin-left: 8px !important;
	}

	.desktop-side-menu-footer-link {
		flex-direction: column;
		gap: 7px;
		min-height: 58px;
		padding-top: 10px;
		padding-bottom: 10px;
	}

	.desktop-side-menu-footer-link:not(.is-active),
	.desktop-side-menu-footer-link:not(.is-active):hover,
	.desktop-side-menu-footer-link:not(.is-active):focus {
		/* У партнёрского кабинета убираем серую рамку в обычном состоянии.
		   Розовая рамка остаётся только у активного раздела через .desktop-side-menu-info-link.is-active. */
		border-color: transparent;
		box-shadow: none;
	}

	.desktop-side-menu-partner-balance {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		min-height: 30px;
		padding: 2px 14px;
		border: 1px solid #f0c8d2;
		border-radius: 999px;
		background: #ffffff;
		color: #000000;
		font-size: 12px;
		font-weight: 700;
		line-height: 1;
		box-shadow: 0 4px 14px rgba(176, 74, 99, .11);
	}

	.desktop-side-menu-footer .desktop-side-menu-info-link:last-child {
		margin-bottom: 0;
	}
}

/* =========================
   Мобильная верхняя панель: открытые разделы + данные тарифа
   ========================= */

@media (max-width: 767.98px) {
	.mobile-topbar-summary {
		display: flex;
		align-items: center;
		justify-content: flex-end;
		gap: 5px;
		flex: 1 1 auto;
		min-width: 0;
		margin: 0 6px 0 auto;
		padding: 0;
	}

	.mobile-topbar-summary-link {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		min-height: 28px;
		max-width: 84px;
		padding: 3px 7px;
		border: 1px solid #d8d8d8;
		border-radius: 999px;
		background: #ffffff;
		color: #333333;
		font-size: 11px;
		font-weight: 600;
		line-height: 1;
		text-decoration: none;
		white-space: nowrap;
	}

	.mobile-topbar-summary-link:first-child {
		border-color: #d8d8d8;
		background: #ffffff;
		color: #333333;
	}

	.mobile-topbar-summary-link:last-child {
		border-color: #f0c8d2;
		background: #ffffff;
		color: #000000;
		box-shadow: 0 4px 14px rgba(176, 74, 99, .11);
	}

	/*
	 * Технический запас высоты нужен только для стартового положения мобильного меню.
	 * Если на странице мало контента, без него браузер не сможет прокрутить viewport до плиток.
	 */
	body.has-mobile-top-menu-initial-offset {
		min-height: calc(100svh + var(--mobile-top-menu-initial-offset, 0px));
	}
	
	.mobile-top-menu-initial-spacer {
		display: block;
		width: 100%;
		height: var(--mobile-top-menu-initial-offset, 0px);
		flex: 0 0 auto;
		pointer-events: none;
	}
	

	/* Пять основных разделов теперь всегда открыты на мобильных, а не только после раскрытия collapse. */
	.top-user-navbar .navbar-collapse,
	.top-user-navbar .navbar-collapse.collapse,
	.top-user-navbar .navbar-collapse.collapsing {
		display: block !important;
		height: auto !important;
		overflow: visible !important;
		transition: none !important;
	}
}

@media (max-width: 374.98px) {
	.mobile-topbar-summary {
		gap: 3px;
		margin-right: 4px;
	}

	.mobile-topbar-summary-link {
		max-width: 70px;
		padding-right: 5px;
		padding-left: 5px;
		font-size: 10px;
	}
}

@media (min-width: 768px) {
	.desktop-side-menu-info-link.is-active {
		background: #f9e6eb;
		border-color: #f0c8d2;
		color: #000000;
		box-shadow: 0 4px 14px rgba(176, 74, 99, .11);
	}
}

@media (max-width: 767.98px) {
	.mobile-topbar-summary-link.is-active {
		border-color: #f0c8d2;
		background: #ffffff;
		color: #000000;
		box-shadow: 0 4px 14px rgba(176, 74, 99, .11);
	}
}

/* =========================
   Быстрые настройки текущей страницы в меню настроек
   ========================= */
.user-menu-page-settings-group {
	margin-bottom: 6px;
	padding-bottom: 6px;
	border-bottom: 1px solid rgba(176, 74, 99, .55);
}

.user-menu-page-settings-button {
	font-weight: 600;
}

.user-menu-page-settings-button .bi {
	color: var(--umos-accent, #b04a63);
}

@media (max-width: 767.98px) {
	.mobile-primary-menu-link.is-locked {
		color: #777777;
		background: #f7f7f7;
		border-color: rgba(0, 0, 0, .04);
	}

	.mobile-primary-menu-link.is-locked:hover,
	.mobile-primary-menu-link.is-locked:focus,
	.mobile-primary-menu-link.is-locked:active {
		color: #333333;
		background: #f1f1f1;
		border-color: rgba(0, 0, 0, .08);
	}

	.mobile-primary-menu-lock {
		min-width: 18px;
		width: 18px;
		height: 18px;
		padding: 0;
		background: #ffffff;
		border: 1px solid #dddddd;
		box-shadow: 0 2px 6px rgba(0, 0, 0, .08);
		color: #777777;
		font-size: 10px;
	}

	.mobile-primary-menu-lock i {
		font-size: 10px;
	}
}

/* =========================
   Billing rewards panel
   ========================= */

.billing-rewards-panel {
	padding: 10px 0 0;
}

.billing-rewards-container {
	max-width: 1140px;
}

.billing-rewards-card {
	padding: 12px 14px;
	border: 1px solid rgba(176, 74, 99, .18);
	border-radius: 18px;
	background: linear-gradient(135deg, #fff8fa 0%, #ffffff 62%);
	box-shadow: 0 8px 22px rgba(176, 74, 99, .07);
}

.billing-rewards-header {
	display: flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
}

.billing-rewards-header:focus-visible {
	outline: 2px solid rgba(176, 74, 99, .28);
	outline-offset: 3px;
}

.billing-rewards-toggle,
.billing-rewards-close {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border: 1px solid rgba(176, 74, 99, .2);
	border-radius: 999px;
	background: rgba(255, 255, 255, .78);
	color: #8e3349;
	font-size: 15px;
	line-height: 1;
	transition: background .16s ease, border-color .16s ease, color .16s ease;
}

.billing-rewards-toggle:hover,
.billing-rewards-toggle:focus,
.billing-rewards-close:hover,
.billing-rewards-close:focus {
	background: #f9e6eb;
	border-color: #dfadbc;
	color: #7c2d40;
}

.billing-rewards-toggle .bi {
	transition: transform .18s ease;
}

.billing-rewards-toggle:not(.collapsed) .bi {
	transform: rotate(180deg);
}

.billing-rewards-heading-text {
	min-width: 0;
	flex: 1 1 auto;
}

.billing-rewards-close {
	margin-left: auto;
	font-size: 12px;
}

.billing-rewards-collapse {
	margin-top: 10px;
}

.billing-rewards-title {
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	color: #222222;
}

.billing-rewards-subtitle {
	margin-top: 3px;
	font-size: 12px;
	font-weight: 400;
	line-height: 1.25;
	color: #777777;
}

.billing-rewards-list {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 8px;
}

.billing-reward-item {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 7px;
	min-width: 0;
	padding: 10px;
	border: 1px solid rgba(0, 0, 0, .07);
	border-radius: 14px;
	background: #ffffff;
}

.billing-reward-item.is-claimable {
	border-color: rgba(176, 74, 99, .3);
	box-shadow: 0 5px 14px rgba(176, 74, 99, .08);
}

.billing-reward-item.is-claimed {
	border-color: rgba(25, 135, 84, .22);
	background: #fbfffd;
}

.billing-reward-topline {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 8px;
}

.billing-reward-title-row {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	min-width: 0;
}

.billing-reward-title-row .billing-reward-info-btn {
	order: -1;
}

.billing-reward-name {
	min-width: 0;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.2;
	color: #222222;
}

.billing-reward-info-btn {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 17px;
	height: 17px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: rgba(0, 0, 0, .42);
	color: #ffffff;
	font-size: 11px;
	font-weight: 600;
	line-height: 1;
}

.billing-reward-info-btn:hover,
.billing-reward-info-btn:focus {
	background: rgba(0, 0, 0, .58);
	color: #ffffff;
}

.billing-reward-status {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 28px;
	height: 20px;
	padding: 0 6px;
	border-radius: 999px;
	background: #f9e6eb;
	color: #8e3349;
	font-size: 10px;
	font-weight: 600;
	line-height: 1;
}

.billing-reward-item.is-claimed .billing-reward-status {
	background: #d1e7dd;
	color: #0f5132;
}

.billing-reward-progress-text {
	min-height: 28px;
	font-size: 11px;
	font-weight: 400;
	line-height: 1.25;
	color: #666666;
}

.billing-reward-progress {
	margin-top: auto;
	height: 5px;
	border-radius: 999px;
	background: #f0f0f0;
	overflow: hidden;
}

.billing-reward-progress span {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: #b04a63;
	transition: width .22s ease;
}

.billing-reward-item.is-claimed .billing-reward-progress span {
	background: #198754;
}

.billing-reward-claim-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 30px;
	padding: 5px 8px;
	border: 1px solid #f0c8d2;
	border-radius: 10px;
	background: #f9e6eb;
	color: #8e3349;
	font-size: 12px;
	font-weight: 600;
	line-height: 1;
	transition: background .16s ease, border-color .16s ease, color .16s ease;
}

.billing-reward-claim-btn.is-reward-go {
	cursor: pointer;
}

.billing-reward-claim-btn:not(:disabled):hover,
.billing-reward-claim-btn:not(:disabled):focus {
	background: #f1d3dc;
	border-color: #dfadbc;
	color: #7c2d40;
}

.billing-reward-claim-btn:disabled {
	cursor: default;
	background: #f6f6f6;
	border-color: #e6e6e6;
	color: #888888;
	opacity: 1;
}

.billing-reward-item.is-claimed .billing-reward-claim-btn:disabled {
	background: #d1e7dd;
	border-color: #badbcc;
	color: #0f5132;
}

.billing-rewards-mobile-card {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	margin: 10px 0 0px;
	padding: 10px 12px;
	border: 1px solid rgba(176, 74, 99, .18);
	border-radius: 18px;
	background: linear-gradient(135deg, #fff8fa 0%, #ffffff 62%);
	box-shadow: 0 8px 22px rgba(176, 74, 99, .07);
}

.billing-rewards-mobile-main {
	display: flex;
	align-items: center;
	min-width: 0;
	flex: 1 1 auto;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	text-align: left;
}

.billing-rewards-mobile-main .billing-rewards-title,
.billing-rewards-mobile-main .billing-rewards-subtitle {
	display: block;
}

.billing-rewards-mobile-main .billing-rewards-title {
	font-size: 13px;
	line-height: 1.2;
}

.billing-rewards-mobile-main .billing-rewards-subtitle {
	font-size: 11px;
	line-height: 1.25;
}

.billing-rewards-mobile-close {
	width: 28px;
	height: 28px;
	font-size: 11px;
}

.billing-rewards-modal-dialog {
	margin: .75rem;
}

.billing-rewards-modal-content {
	border: 0;
	border-radius: 20px;
	overflow: hidden;
}

.billing-rewards-modal-header {
	align-items: flex-start;
	background: #fff8fa;
	border-bottom-color: #f3d7df;
}

.billing-rewards-modal-body {
	display: flex;
	flex-direction: column;
	gap: 10px;
	background: #fafafa;
}

.billing-reward-item-mobile {
	gap: 9px;
	padding: 12px;
}

.billing-reward-item-mobile .billing-reward-progress-text {
	min-height: 0;
	font-size: 12px;
}

.billing-reward-item-mobile .billing-reward-claim-btn {
	min-height: 36px;
}

@media (min-width: 768px) {
	body.has-desktop-side-menu .billing-rewards-panel {
		padding-left: 0;
	}

	.billing-rewards-panel.is-page-calendar-week .billing-rewards-container {
		max-width: none;
		padding-right: 33px;
		padding-left: 33px;
	}

	.billing-rewards-panel.is-page-calendar-week .billing-rewards-card {
		max-width: 1140px;
		margin-right: auto;
	}

	.billing-rewards-panel.is-page-lists .billing-rewards-container {
		max-width: none;
		margin-left: 0;
		margin-right: 0;
		padding-left: 8px;
		padding-right: 8px;
	}
}

@media (max-width: 991.98px) and (min-width: 768px) {
	.billing-rewards-list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 767.98px) {
	.billing-rewards-panel {
		padding: 0 0 0px;
	}


	.billing-rewards-container {
		max-width: none;
		padding: 0 8px;
	}
}

@media (max-width: 767.98px) {
	.billing-rewards-modal .billing-rewards-modal-dialog {
		display: flex;
		align-items: flex-end;
		min-height: calc(100% - 1.5rem);
	}

	.billing-rewards-modal-content {
		border-radius: 22px 22px 18px 18px;
	}
}

/* =========================
   Billing reward award modal
   ========================= */
.billing-reward-award-content {
	position: relative;
	border: 0;
	border-radius: 24px;
	overflow: hidden;
	background:
		radial-gradient(circle at 50% -10%, rgba(176, 74, 99, .18) 0, rgba(176, 74, 99, 0) 42%),
		linear-gradient(135deg, #fff8fa 0%, #ffffff 70%);
	box-shadow: 0 24px 70px rgba(0, 0, 0, .18);
}

.billing-reward-award-close {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	padding: 0;
	border: 1px solid rgba(176, 74, 99, .2);
	border-radius: 999px;
	background-color: rgba(255, 255, 255, .86);
	background-size: 12px;
	opacity: 1;
	box-shadow: 0 8px 20px rgba(176, 74, 99, .12);
	transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.billing-reward-award-close:hover,
.billing-reward-award-close:focus {
	background-color: #f9e6eb;
	border-color: #dfadbc;
	opacity: 1;
	box-shadow: 0 10px 24px rgba(176, 74, 99, .18);
}

.billing-reward-award-body {
	padding: 26px 22px 22px;
	text-align: center;
}

.billing-reward-award-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	margin-bottom: 12px;
	border-radius: 999px;
	background: #f9e6eb;
	box-shadow: 0 10px 28px rgba(176, 74, 99, .18);
	font-size: 34px;
}

.billing-reward-award-title {
	font-size: 22px;
	font-weight: 700;
	line-height: 1.15;
	color: #222222;
}

.billing-reward-award-subtitle {
	max-width: 360px;
	margin: 8px auto 0;
	font-size: 14px;
	line-height: 1.35;
	color: #666666;
}

.billing-reward-award-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
	width: min(100%, 286px);
	margin: 18px auto 0;
	padding: 0;
	list-style: none;
}

.billing-reward-award-list li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 9px 11px;
	border: 1px solid rgba(176, 74, 99, .16);
	border-radius: 14px;
	background: rgba(255, 255, 255, .78);
	font-size: 13px;
	line-height: 1.25;
	color: #333333;
	text-align: left;
}

.billing-reward-award-list strong {
	flex: 0 0 auto;
	color: #b04a63;
	font-weight: 700;
}

.billing-reward-award-button {
	margin-top: 20px;
	padding: 9px 22px;
	border: 1px solid #b04a63;
	border-radius: 999px;
	background: #b04a63;
	color: #ffffff;
	font-size: 14px;
	font-weight: 600;
}

.billing-reward-award-button:hover,
.billing-reward-award-button:focus {
	background: #963d53;
	border-color: #963d53;
	color: #ffffff;
}

@media (max-width: 767.98px) {
	.billing-reward-award-dialog {
		margin: .75rem;
	}

	.billing-reward-award-body {
		padding: 24px 18px 20px;
	}

	.billing-reward-award-title {
		font-size: 20px;
	}
}


@media (max-width: 767.98px) {
	.billing-rewards-mobile-main .billing-rewards-mobile-title-break {
		display: block;
	}
}



/* ===========================================================================================
 * Мягкий режим ограничения доступа после окончания демо или тарифа.
 * =========================================================================================== */
.subscription-expired-banner {
	position: relative;
	z-index: 1010;
	background: #f3e4e8;
	border-bottom: 1px solid #dfbdc6;
	color: #542b35;
}

.subscription-expired-banner-inner {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding-top: 10px;
	padding-bottom: 10px;
}

.subscription-expired-banner-icon {
	flex: 0 0 auto;
	font-size: 17px;
}

.subscription-expired-banner-text {
	font-size: 14px;
	line-height: 1.35;
}

.subscription-expired-banner-btn {
	flex: 0 0 auto;
	font-size: 12px;
	font-weight: 700;
	white-space: nowrap;
}

.subscription-large-locked {
	position: relative !important;
	filter: grayscale(1);
	color: #8c8c8c !important;
	background-color: #e6e6e6 !important;
	border-color: #c9c9c9 !important;
	box-shadow: none !important;
	cursor: pointer !important;
}

.subscription-large-locked:hover,
.subscription-large-locked:focus {
	color: #777 !important;
	background-color: #dddddd !important;
	border-color: #bdbdbd !important;
}

.subscription-lock-mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-left: 7px;
	font-size: .9em;
	line-height: 1;
}

.subscription-small-locked,
.subscription-input-locked {
	opacity: .43 !important;
	cursor: pointer !important;
}

.subscription-input-locked {
	background: #f1f1f1 !important;
}

.scripts-locked-message-header {
	min-height: 54px;
	padding: 0 16px;
	gap: 12px;
	color: #777;
	background: #f3f3f3;
	cursor: pointer;
}

.scripts-locked-message-icon {
	font-size: 15px;
	color: #999;
}

.subscription-required-modal-content {
	border: 0;
	border-radius: 14px;
}

@media (max-width: 767.98px) {
	.subscription-expired-banner-inner {
		align-items: flex-start;
		flex-wrap: wrap;
		gap: 7px 9px;
		padding-top: 9px;
		padding-bottom: 9px;
	}

	.subscription-expired-banner-text {
		flex: 1 1 calc(100% - 30px);
		font-size: 13px;
	}

	.subscription-expired-banner-btn {
		margin-left: 26px;
	}
}
