:root {
	--main-offcanvas: #270f4e;
	--header-offcanvas: #441988;
}

[data-bs-theme='light'] {
	--element-active-text-static: #dee2e6;
	--main-color-static: #9555ca;

	--main-color: #9555ca;
	--secondary-color: #5f3680;
	--hover-color: #9555ca2d;
	--secondary-hover-color: #5f36806c;

	--background-body: #f1f3f5;
	--background-container: #ffffff;

	--background-card: #ffffff;

	--main-text: #212529;
	--button-text: #ffffff;
	--button-left-menu-text: #5f3680;

	--title-text: #000000;
	--text-link: #399fff;

	--left-menu-border-button: var(--main-color);
}

[data-bs-theme='dark'] {
	--element-active-text-static: #dee2e6;
	--main-color-static: #9555ca;

	--main-color: #5f3680;
	--secondary-color: #9555ca;
	--hover-color: #9555ca2d;
	--secondary-hover-color: #9555ca5b;

	--background-body: #646464;
	--background-container: #444444;

	--background-card: #212529;

	--button-text: #ffffff;
	--button-left-menu-text: #ffffff;

	--main-text: #f1f3f5;
	--title-text: #ffffff;
	--text_link: #0c8aff;

	--left-menu-border-button: var(--button-text);
}

.darkmode {
	--background-body: #1d1d1d;
	--background-container: #797979;
}

body {
	background-color: var(--background-body);
	padding: 0px !important;
}

sup {
	top: -0.25em;
}

hr {
	border-width: 2px;
}

a {
	text-decoration: none;
	color: var(--secondary-color);
}

/* Для браузеров на основе WebKit (Chrome, Safari) */
::-webkit-scrollbar {
	/* Устанавливает ширину полосы прокрутки */
	width: 3px;
}

::-webkit-scrollbar-thumb {
	/* Цвет ползунка прокрутки */
	background-color: #b4b4b4;
}

/* Для Internet Explorer */
::-ms-scrollbar {
	/* Устанавливает ширину полосы прокрутки */
	width: 3px;
}

::-ms-scrollbar-thumb {
	/* Цвет ползунка прокрутки */
	background-color: #b4b4b4;
}
/*-------------------------------------------------------------*/
/* Верхнее меню */
.menu {
	list-style: none;
	padding: 0;
	display: flex;
	height: 100%;
	align-items: center;
	justify-content: center;
}

.menu a {
	/* font-size: large; */
	text-decoration: none;
	color: rgb(255, 255, 255);
}

.container-menu-empty {
	padding: 0;
	display: flex;
	flex-direction: row;
	width: 100%;
	justify-content: center;
}

.container-menu {
	padding: 0;
	display: flex;
	flex-direction: row;
	width: 100%;
	justify-content: space-between;
}
.system-menu {
	display: flex;
	align-items: center;
}
.btn {
	font-size: large;
}
.dropdown-item-span {
	display: block;
	color: white;
	text-align: center;
	font-size: large;
	margin-bottom: 15px;
}
.dropdown-item:hover {
	background-color: var(--secondary-hover-color);
	color: white;
}
.dropdown-item {
	color: white;
}

.dropdown-position {
	background-color: var(--main-color);
	position: absolute;
	inset: 0px 0px auto auto;
	margin: 0px;
	transform: translate(0px, 35px) !important;
}

@media (max-width: 990px) {
	.desktop-menu {
		display: none;
	}
}

.img-header-menu {
	width: 25px;
	margin-right: 10px;
}

.img-offcanvas {
	width: 30px;
}
/*-------------------------------------------------------------*/

.active-element-menu {
	background-color: var(--secondary-color);
	border-radius: 5px;
}

.active-element-menu:hover {
	background-color: var(--secondary-color) !important;
	border-radius: 5px;
}

.element-menu a div {
	padding-top: 10px;
	padding-bottom: 10px;
	line-height: 19px;
}

.element-menu a {
	display: flex;
	width: 100%;
	height: 100%;
	padding-left: 10px;
	padding-right: 10px;
	box-sizing: border-box;
	font-size: large;
	text-decoration: none;
	color: rgb(255, 255, 255);
	align-items: flex-start;
}

.element-menu span {
	font-size: 12px;
	color: #ffffff;
}

.element-menu:hover {
	background-color: var(--secondary-hover-color);
	border-radius: 5px;
}

.message {
	display: flex;
	justify-content: center;
	align-items: center;
}

/*
.message-icon {
	display: none;
}
*/

.message-text {
	padding-bottom: 0px;
	font-size: large !important;
}
/*
	Смена надписи пункта меню на иконку, переделано на классах бутстрапа в классах элементов
 @media only screen and (max-width: 1199px) {
    .message-text {
	 display: none;
   }

    .message-icon {
	 display: block;
   }
 }
*/
/*-------------------------------------------------------------*/
/* Заработано/Выведено за всё время */

.card-1 {
	/* Создаем эффект перспективы */
	perspective: 1000px;
	height: 170px;
	position: relative;
	margin-bottom: 70px;
}

.card-inner {
	border: 1px solid #d2d2d2;
	border-radius: 10px;
	width: 100%;
	height: 100%;

	/* Сохраняем 3D-позиционирование элементов */
	transform-style: preserve-3d;
	transition: transform 0.5s;
}

.card-front,
.card-back {
	position: absolute;
	width: 100%;
	height: 100%;
	/* Прячем заднюю сторону */
	backface-visibility: hidden;
}

.card-back {
	padding: 15px;
	display: flex;
	transform: rotateY(180deg);
	flex-direction: column;
	justify-content: space-around;
	align-items: stretch;
	border-radius: 8px;
	background-color: var(--background-card);
}

.card-1.active .card-inner {
	/* Поднимаем и показываем заднюю сторону */
	transform: rotateY(180deg);
}
/*-------------------------------------------------------------*/

.dropdown-software-packages-price-strike {
	text-decoration: line-through;
}

.dropdown-software-packages-price-bold {
	font-size: larger;
	font-weight: bold;
}

.dropdown-software-packages-title {
	font-size: larger;
	font-weight: bold;
}
/*-------------------------------------------------------------*/

.dropdown-software-packages {
	overflow: hidden;
	max-height: 0;

	/* Переход */
	transition: max-height 0.5s ease;
}

.dropdown-software-packages.active {
	/* Высота раскрывающегося поля */
	max-height: 100%;
}

.dropdown-software-packages-content {
	/* Внутренний отступ */
	padding: 12px;
}

.dropdown-software-packages-arrow {
	margin-left: 5px;
	transition: transform 0.5s ease;
	transform: rotate(180deg);
}

.dropdown-software-packages-arrow-active {
	transform: rotate(360deg);
}
/*-------------------------------------------------------------*/
/* Выпадающий список (Страница "Классы") */
.dropdown-button {
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;

	padding: 10px;
	background-color: var(--main-color-static);
	border: 3px var(--background-container) solid;
	border-radius: 50px;
	color: white;
}

.dropdown-about-program {
	overflow: hidden;
	max-height: 0;

	/* Переход */
	transition: max-height 0.5s ease;
}

.dropdown-about-program.active {
	/* Высота раскрывающегося поля */
	max-height: 600px;
}

.dropdown-about-program-content {
	/* Внутренний отступ */
	padding: 12px;

	font-weight: bold;
}

.dropdown-about-program-content div {
	color: var(--text_link);
}

.dropdown-about-program-arrow {
	margin-left: 5px;
	transition: transform 0.5s ease;
	transform: rotate(180deg);
}

.dropdown-about-program-arrow-active {
	transform: rotate(360deg);
}
/*-------------------------------------------------------------*/
/* НАСТРОЙКИ */
.title-field-settings {
	margin-bottom: 5px;
}
/*-------------------------------------------------------------*/
.logo-text {
	font-size: 22px;
	display: inline;
	margin: 0;
	vertical-align: middle;
	font-weight: bold;
}

.btn-img {
	width: 26px;
	height: 26px;
	margin: 7px 17px 7px 7px;
}

/* Активная кнопка на странице которой находимся */
.active-menu {
	background-color: var(--secondary-color) !important;
}

/* Главная шапка сайта */
.header-color {
	background-color: var(--main-color);
	height: 50px;
	transition: background-color 0.3s;
}

/* Шапка offcanvas */
.offcanvas-header {
	background-color: var(--header-offcanvas);
	padding-right: 0;
	height: 50px;
}

/* Тело offcanvas */
.offcanvas-body {
	padding: 0;
}

/* фон для меню offcanvas */
.color-menu-offcanvas {
	/* Цвет фона с прозрачностью */
	background-color: var(--main-offcanvas);

	/* цвет обводки между кнопками */
	border: var(--main-offcanvas) !important;
}

/* Главный контейнер в offcanvas */
.offcanvas-container {
	/* Цвет фона с прозрачностью */
	background: var(--main-offcanvas);
	width: 100%;
	border-left: 0 !important;
}

/* Цвет текста - белый */
.white-text {
	color: white;
}

/* Кнопка-вопросик */
.tooltip-button {
	height: 33px;
	width: 33px;
	border-radius: 16px;
	border: 1px var(--main-color) solid;
	font-size: 20px;
	font-weight: bold;
}

.tooltip-div {
	display: none;
	width: max-content;
	position: absolute;
	z-index: 9999;
	top: 0;
	left: 0;
	background: #222;
	color: white;
	font-weight: bold;
	padding: 5px;
	border-radius: 4px;
	font-size: 80%;
}

.tooltip-arrow {
	position: absolute;
	background: #222;
	width: 8px;
	height: 8px;
	transform: rotate(45deg);
}

.ui-dialog-titlebar-close {
	visibility: hidden;
}

.box-left-menu-class {
	margin-bottom: 20px;
}

.title-left-menu-class {
	font-size: 16px;
	color: #99a3ae;
	line-height: 22px;
	margin-bottom: 5px;
}
/*-------------------------------------------------------------*/
.button-program-left-menu {
	margin-top: 5px;
	padding: 5px;
	border: 1px solid var(--secondary-color);
	border-radius: 20px;
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: center;
	cursor: pointer;
}

.inactive-button-program-left-menu {
	background-color: var(--background-container);
	color: var(--button-left-menu-text);
}

.inactive-button-program-left-menu:hover {
	background-color: var(--hover-color);
}

.active-button-program-left-menu {
	background-color: var(--main-color);
	color: white;
}

.active-button-program-left-menu:hover {
	background-color: var(--secondary-color);
}
/*-------------------------------------------------------------*/
.status-program-left-menu {
	margin-right: 10px;
	display: inline-block;
	height: 20px;
	width: 20px;
	border-radius: 15px;
	box-sizing: border-box;
	border: 1px solid var(--left-menu-border-button);
}

.active-status-program-left-menu {
	background-color: #5dfaff;
}

.inactive-status-program-left-menu {
	background-color: #ffffff;
}
/*-------------------------------------------------------------*/
.page-title {
	font-size: 35px;
	color: var(--title-text);
	text-align: center;
	line-height: 50px;
}

/*-----------------------------------------------*/
.scrollable-box {
	width: 100%;
	height: 350px;
	border: 1px solid #ccc;
	background-color: var(--background-card);

	/* Включаем вертикальный скролл */
	overflow-y: auto;
	position: relative;
	border-radius: 5px;
}

.scrollable-box p {
	padding: 10px;
}
/*-----------------------------------------------*/

/* КАБИНЕТ */

.cabinet-box {
	background-color: var(--background-container);
	border-radius: 5px;
	box-shadow: 0 0 14px 0px #c3c3c3;
	box-sizing: border-box;
}

/*-----------------------------------------------*/
.button-classic {
	height: 40px;
	width: 100%;
	border-radius: 50px;
	background-color: var(--main-color);
	color: white;
	cursor: pointer;
}

.button-classic:hover {
	background-color: var(--secondary-color);
	color: white;
}
/*-----------------------------------------------*/
.button-merch {
	height: 150px;
	width: 150px;
	border-radius: 15px;
	background-color: var(--main-color);
	color: white;
	margin: 20px;
}

.button-merch:hover {
	background-color: var(--secondary-color);
	color: white;
}
/*-----------------------------------------------*/
.button-with-icon {
	padding: 0px 5px 0px 0px;
	height: 40px;
	width: 100%;
	min-width: fit-content;
	margin: 5px;
	border-radius: 50px;
	/* box-sizing: content-box; */

	background-color: var(--main-color);
	color: white;

	line-height: 19px;
	display: flex;
	text-align: left;
	align-items: center;
}
.button-with-icon:hover {
	background-color: var(--secondary-color);
	color: white;
}
/*-----------------------------------------------*/
.title-text {
	margin-bottom: 5px;
	margin-left: 15px;
	padding-top: 15px;
	font-size: 25px;
	display: flex;
	justify-content: space-between;
}

.elem-center {
	display: flex;
	align-content: center;
	justify-content: center;
	align-items: center;
	flex-direction: column;
}

.small-text-font-size {
	font-size: 15px;
	color: var(--title-text);
}

.sum-font-size {
	font-size: 35px;
	color: var(--title-text);
}
/*-----------------------------------------------*/
/* Список диалогов */

.list_dialog {
	overflow-y: scroll;
	max-height: 75vh;
	background-color: var(--background-container);
}

.list_dialog a {
	color: var(--main-text);
}

.list_dialog li:hover {
	background-color: var(--hover-color);
}

.list_dialog .active-dialog:hover {
	background-color: var(--secondary-color);
}
/*-----------------------------------------------*/
/* Диалог */

.active-dialog {
	background-color: var(--secondary-color);
}

.active-dialog p {
	color: var(--element-active-text-static);
}

.head-message-page {
	background-color: var(--main-color);
	color: var(--button-text);
	height: 60px;
}

.dialog-window {
	display: flex;
	flex-direction: column;
	width: 100%;
	padding-left: 0rem;
	overflow-y: scroll;
	max-height: 72vh;
	padding: 10px;
	margin-bottom: 0px;
}

.dialog-window-align {
	flex-direction: column;
	justify-content: flex-end;
}

.time-message {
	display: flex;
	justify-content: flex-end;
	font-size: small;
}

.p-message {
	padding-top: 10px;
	padding-bottom: 5px;
}
/*-----------------------------------------------*/

.program-button {
	background-color: var(--main-color);
	color: white;
	border-radius: 50px;
	border-color: var(--main-color);
}

.program-button:hover {
	background-color: var(--secondary-color);
	border-color: var(--secondary-color);
}

/* Стиль для таблицы */
.modal-dialog {
	max-width: max-content;
	/* overflow-x: scroll; */
}

.custom-head {
	background-color: var(--secondary-color) !important;
	color: var(--button-text) !important;
}

table {
	/*border-collapse: collapse;
	border: 2px solid rgb(140 140 140);
	font-family: sans-serif;
	font-size: 0.8rem;
	letter-spacing: 1px;*/
}

caption {
	caption-side: bottom;
	padding: 10px;
	font-weight: bold;
}

thead,
tfoot {
	background-color: var(--secondary-color);
	color: var(--button-text);
}

th,
td {
	border: 1px solid rgb(160 160 160);
	padding: 8px 10px;
}

tfoot th {
	text-align: right;
}

tfoot td {
	font-weight: bold;
}

.form-control {
	background-color: var(--background-container);
}
