.opacity {
	filter:alpha(opacity=10);-moz-opacity: 0.1;-khtml-opacity: 0.1;opacity: 0.1;
}

.opacity1 {
	filter:alpha(opacity=50);-moz-opacity: 0.5;-khtml-opacity: 0.5;opacity: 0.5;
}

.opacity2 {
	filter:alpha(opacity=0);-moz-opacity: 0;-khtml-opacity: 0;opacity: 0;
}

.log, .loading {
	display:none;
	position:absolute;
	text-align:center;
	color:#000;
	/*outline:1px solid #FA4C81;*/
	font-weight:bold;
	width: 85% !important;
	margin: auto;
	left: 0;
	right: 0;
	z-index: 10000;
	
}
.log{
	padding-top: 15px;
}
/*
#test-form #loading, #test-form #log, .block_form_vtor #log1, .block_form_vtor #loading1, #test-form115 #loading115, #test-form115 #log115, #fastForm #loadingfastForm, #fastForm #logfastForm {
	width: 80%;
	margin-top: 10px;
}
*/
#test-form #loading, #test-form #log, #test-ent #loading-ent, #test-ent #log-ent, #formUser #loading-us, #formUser #log-us {
	width: 80%;
	margin-top: 10px;
}

#test-form2 #loading2, #test-form2 #log2 {
	width: 80%;
	margin-top: -20px;
}

.form_question #log1, .form_question #loading1 {
	width: 623px;
	margin-top: 200px;
}

.progress {
	width: 1200px;
	margin-top: 150px;
	text-align: center;
	position: absolute;
}

#test-form3 #result, #msform #result {
	padding: 10px;
}

#msform {
	position: relative;
}

#test-form3 #result, #test-form3 #loadingimg, #msform #result, #msform #loadingimg {
	display:none;
	position:absolute;
	text-align:center;
	color:#000000;
	font-weight:bold;
	z-index: 10000;
	width: 100%;
	margin-top: 150px;
}

#loading2 {
	width: 400px;
	text-align: center;
	position: absolute;
	padding-top: 15px;
	display: none;
}

#log2 {
	width: 350px;
	text-align: center;
	position: absolute;
	padding-top: 50px;
	display: none;
	color: #000;
	padding-bottom: 50px;
	font-weight: bold;
}

#loading3 {
	width: 350px;
	text-align: center;
	position: absolute;
	margin-top: 30px;
	display: none;
}

#log3 {
	width: 350px;
	text-align: center;
	position: absolute;
	display: none;
	color: #ff0000;
	font-weight: bold;
}

.categorys{
  margin-top: 0;
}

#modal_senq{max-width: 450px; min-width: 320px; padding: 20px; background: #FFF; margin: auto; background: #FFF; position: relative;}

#modal_senq1{max-width: 350px; min-width: 320px; padding: 20px; background: #FFF; margin: auto; background: #FFF; position: relative; z-index: 999;}

.cont_modal h2{
	margin-bottom: 20px;
	text-align: center;
}
.number_tovar .number .cart-minus, .number_tovar .number .cart-plus {
	width: 44px;
	display: inline-block;
	cursor: pointer;
	height: 50px;
	text-align: center;
}
.number_tovar .number .cart-minus:hover, .number_tovar .number .cart-plus:hover {
	color: #FE5488;
}

.errr {
	border: #ff0000 1px solid;
}

.hidden {
	display: none;
}
#log115,
#log1
{
	padding-bottom: 15px;
}

#robokassa {
	text-align: center;
}

.bl h2{
  text-align: center;
  margin-bottom: 20px;
}
.bl p{
  display: flex;
}
.bl p a{
   width: 211px;
    display: block;
    -webkit-border-radius: 35px;
    border-radius: 35px;
    height: 53px;
    margin: auto;
    font-weight: bold;
    text-decoration: none;
    font-size: 14px;
    line-height: 53px;
    color: #fff;
    text-align: center;
    background: linear-gradient(90deg, #b3a496, #c2b6ab);
}
.bl p a:hover,
{
      background: #ff77a0;
}

.delete_list {
	cursor: pointer;
}

.cart-value {
	width: 30px;
	padding: 5px;
	margin: 0 5px;
	text-align: center;
}

.cart-plus {
	margin-right: 10px;
	font-size: 30px;
	color: #000;
}

.cart-minus {
	font-size: 30px;
	margin-top: -5px;
	color: #000;
}

.hiddenForm {
	display: none;
}

.hiddenlevel {
	display: none;
}

.dop-sect__table-btns button,
.dop-sect__table-btns a {
	background: transparent;
	border: none;
	padding: 0;
}
.dop-sect__table-btns button.active {
	color: #262626;
	background-color: #21eb4f;
}

.dop-sect__table-btns button.passive {
	background-color: #aaaaaa;
}

#autorize {
	width: 30%;
	margin: 20px auto;
	text-align: center;
}

#autorize input {
	width: 100%;
	padding: 10px;
	text-align: center;
	margin: 5px 0;
	font-size: 15px;
}

#enter {
	cursor: pointer;
}

#scrolling {
	background: none;
	position: fixed;
	bottom: 100px;
	left: 25px;
	filter:alpha(opacity=50);-moz-opacity: 0.5;-khtml-opacity: 0.5;opacity: 0.5;
	cursor: pointer;
	display: none;
}

#scrolling:hover {
	filter:alpha(opacity=90);-moz-opacity: 0.9;-khtml-opacity: 0.9;opacity: 0.9;
}

#scrolling1 {
	background: none;
	position: fixed;
	bottom: 100px;
	left: 85px;
	filter:alpha(opacity=50);-moz-opacity: 0.5;-khtml-opacity: 0.5;opacity: 0.5;
	cursor: pointer;
	display: none;
}

/* =======================
 * Новая шапка портала
 * ======================= */
.main-header {
	border-bottom: 1px solid #e3e7ee;
	background: #ffffff;
}
.main-header__container--new {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 10px 16px;
}
.main-header__left {
	display: flex;
	align-items: center;
	gap: 18px;
	min-width: 0;
}
.main-header__logo img {
	max-height: 36px;
	width: auto;
	display: block;
}
.main-header__search {
	flex: 1 1 auto;
	max-width: 420px;
}
.main-header__search-wrapper {
	display: flex;
	align-items: center;
	background: #ffffff !important;
	border-radius: 20px !important;
	padding: 0 10px !important;
	border: 1px solid #dde3ed !important;
	box-shadow: none !important;
	height: 38px;
}
.main-header__search-input {
	flex: 1 1 auto;
	border: none !important;
	background: transparent;
	font-size: 14px;
	padding: 0 4px;
	min-width: 0;
}
.main-header__search-input::placeholder {
	color: #9aa8c0;
}
.main-header__search-input:focus {
	outline: none !important;
	box-shadow: none !important;
}
.main-header__search-input:focus {
	outline: none;
}
.main-header__search-button {
	border: none;
	background: #d3d7e0 !important;
	cursor: pointer;
	color: #000000 !important;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 !important;
	border-radius: 50% !important;
	font-size: 13px;
	font-weight: 500;
	width: 30px;
	height: 30px;
	line-height: 1;
}
.main-header__search-button:hover {
	background: #c3c7d2 !important;
}
.main-header__search-button svg {
	width: 18px;
	height: 18px;
	display: block;
}
.main-header__right {
	display: flex;
	align-items: center;
	gap: 16px;
}
.main-header__theme-toggle {
	border: none;
	background: #f3f5f9;
	border-radius: 999px;
	width: 38px;
	height: 38px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	padding: 0;
	border: 1px solid #dde3ed;
}
.main-header__theme-icon {
	position: relative;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #111827;
	box-shadow: 0 0 0 2px #f9fafb;
}
body.theme-dark .main-header__theme-icon {
	background: #f9fafb;
	box-shadow: 0 0 0 2px #111827;
}
.main-header__btn {
	white-space: nowrap;
	border-radius: 999px;
	padding: 8px 18px;
	font-size: 14px;
}
.main-header__user {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #f3f5f9;
	border-radius: 999px;
	padding: 8px 18px;
	font-size: 14px;
	border: 1px solid #dde3ed;
	color: #262626;
	text-decoration: none;
	cursor: pointer;
}
.main-header__user:hover {
	background: #e6ecf7;
}
.main-header__user-icon {
	width: 20px;
	height: 20px;
	border-radius: 999px;
	background: #e0e6f2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #6b7aa6;
	flex: 0 0 auto;
}
.main-header__user-name {
	white-space: nowrap;
	max-width: 160px;
	overflow: hidden;
	text-overflow: ellipsis;
}
.main-header__logout-icon svg {
	display: block;
}

@media (max-width: 900px) {
	.main-header__container--new {
		flex-direction: column;
		align-items: stretch;
	}
	.main-header__left {
		width: 100%;
	}
	.main-header__search {
		max-width: none;
	}
	.main-header__right {
		width: 100%;
		justify-content: space-between;
	}
	.main-header__btn {
		flex: 0 0 auto;
	}
	.main-header__user {
		flex: 1 1 auto;
		justify-content: space-between;
	}
}

@media (max-width: 600px) {
	.main-header__container--new {
		padding-inline: 10px;
	}
	.main-header__right {
		flex-direction: column;
		align-items: stretch;
		gap: 8px;
	}
	.main-header__btn {
		width: 100%;
		text-align: center;
	}
	.main-header__user {
		width: 100%;
	}
}

/* Горизонтальный скролл таблиц проектов на мобильных */
.dop-sect__table-table {
	display: block;
	width: 100%;
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
}
.dop-sect__table-table table {
	min-width: 900px;
	width: 100%;
}

/* Обрамление блока с таблицей (помещение/сцена) */
.dop-sect__table-block {
	border: 1px solid #1c1d26;
	border-radius: 8px;
	overflow: hidden;
}
body.theme-dark .dop-sect__table-block {
	border-color: #1c1d26;
}

/* Горизонтальный скролл стартовой таблицы проектов */
.main-sect__table-wrapper {
	display: block;
	width: 100%;
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
}
.main-sect__table-wrapper .main-sect__table table {
	min-width: 900px;
}


#scrolling1:hover {
	filter:alpha(opacity=90);-moz-opacity: 0.9;-khtml-opacity: 0.9;opacity: 0.9;
}

.dop-sect__list>li>strong>a {
	color: #1f93fe;
}

.closet {
	display: none;
}

/* Мобильная версия: скрываем серую плашку с содержанием проекта */
@media (max-width: 768px) {
	.dop-sect__list {
		display: none !important;
	}
}

#sucsadd {
	width: 100%;
	position: fixed;
	text-align: center;
	margin-top: 200px;
	z-index: 1000;
	display: none;
}

#sucsadd span {
	padding: 20px;
	border: #999 1px solid;
	background: #aaf2ce;
	font-weight: bold;
}

/* =======================
 * Тёмная тема проекта
 * ======================= */
body.theme-dark {
	background: #0f172a; /* глубокий графитовый фон */
	color: #e5e7eb;
}
body.theme-dark .wrapper {
	background: transparent;
}
body.theme-dark .main-header {
	background: #111827;
	border-bottom-color: #1f2937;
}
body.theme-dark .main-header__search-wrapper {
	background: #111827 !important;
	border-color: #374151 !important;
}
body.theme-dark .main-header__search-input {
	color: #e5e7eb;
}
body.theme-dark .main-header__search-input::placeholder {
	color: #64748b;
}
body.theme-dark .main-header__search-button {
	background: #1f2937 !important;
	color: #e5e7eb !important;
}
body.theme-dark .main-header__search-button:hover {
	background: #374151 !important;
}
body.theme-dark .main-header__user {
	background: #111827;
	border-color: #1f2937;
	color: #e5e7eb;
}
body.theme-dark .main-header__user-icon {
	background: #1f2937;
	color: #e5e7eb;
}
/* Акцентные зелёные кнопки в тёмной теме: чуть приглушённый зелёный */
body.theme-dark .def-btn.main-header__btn {
	background: #16a34a;   /* более спокойный зелёный */
	border-color: #15803d;
	color: #e5e7eb;
}
body.theme-dark .def-btn.main-header__btn:hover {
	background: #15803d;
}
body.theme-dark .def-btn {
	background: #16a34a;
	border-color: #15803d;
	color: #e5e7eb;
}
body.theme-dark .def-btn:hover {
	background: #15803d;
}
body.theme-dark .dop-sect,
body.theme-dark .dop-sect__container {
	background: #111827;
	color: #e5e7eb;
}
/* Заголовки помещений и сцен: разные оттенки для лучшего разделения */
/* Темные фоны блоков: помещение и сцена */
body.theme-dark .dop-sect__table-room {
	background: #27283d;      /* Кинотеатр / помещение */
	border-color: #1c1d26;
}
body.theme-dark .dop-sect__table-scene {
	background: #3b3c52;      /* ЭУИ / сцена освещения */
	border-color: #1c1d26;
}
/* Шапка таблицы в тёмной теме без заливки, только тонкая линия и светлый текст */
body.theme-dark .dop-sect__table-table-head td {
	background: transparent;
	border-bottom-color: #1c1d26;
	color: #e5e7eb;
}
body.theme-dark .dop-sect__table-table-row:hover td {
	background: #111827;
}
body.theme-dark input,
body.theme-dark select,
body.theme-dark textarea {
	background: #0f172a;
	border-color: #273549;
	color: #e5e7eb;
}
body.theme-dark .main-footer {
	background: #111827;
	border-top: 1px solid #1f2937;
	color: #9ca3af;
}
body.theme-dark .main-footer__info a {
	color: #e5e7eb;
}

/* Результаты поиска в тёмной теме */
body.theme-dark .main-header__search-results {
	background: #111827;
	border-color: #273549;
}
body.theme-dark .main-header__search-result {
	border-bottom-color: #1f2937;
}
body.theme-dark .main-header__search-result:hover {
	background: #1f2937;
}

/* Стили для индикаторов загрузки и обновления */
input.loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

input.loading:after {
    content: '';
    position: absolute;
    top: 50%;
    right: 5px;
    width: 12px;
    height: 12px;
    margin-top: -6px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.updating {
    background-color: #e8f5e8 !important;
    transition: background-color 0.3s ease;
}

/* Стили для полей ввода в таблице */
.dop-sect__table input[type="number"], 
.dop-sect__table input[type="text"] {
    transition: all 0.2s ease;
    border: 1px solid #cbd5e1; /* более тёмный серый вместо почти белого */
    padding: 4px 8px;
    border-radius: 3px;
}

.dop-sect__table input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

/* Стили для поиска проектов в шапке */
.main-header__search {
    position: relative;
    display: inline-block;
    margin: 0 20px;
    flex: 1;
    max-width: 300px;
}

.main-header__search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.main-header__search-input {
    width: 100%;
    padding: 8px 40px 8px 12px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 14px;
    background: #fff;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.main-header__search-button {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border: none;
    background: #3498db;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.main-header__search-button:hover {
    background: #2980b9;
    transform: translateY(-50%) scale(1.05);
}

.main-header__search-button:active {
    transform: translateY(-50%) scale(0.95);
}

.main-header__search-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
    background: #fff;
}

.main-header__search-input::placeholder {
    color: #999;
    font-style: italic;
}

.main-header__search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.main-header__search-result {
    padding: 10px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.main-header__search-result:hover {
    background-color: #f8f9fa;
}

.main-header__search-result:last-child {
    border-bottom: none;
}

.main-header__search-result-title {
    font-weight: 500;
    color: #333;
    margin-bottom: 2px;
}

.main-header__search-result-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #666;
}
.main-header__search-result-number {
    font-weight: 500;
    color: #3498db;
}
.main-header__search-result-date {
    color: #666;
}

.main-header__search-no-results {
    padding: 15px 12px;
    text-align: center;
    color: #666;
    font-style: italic;
}

.main-header__search-loading {
    padding: 15px 12px;
    text-align: center;
    color: #3498db;
    font-weight: 500;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .main-header__search {
        max-width: 200px;
        margin: 0 10px;
    }
    
    .main-header__search-input {
        font-size: 12px;
        padding: 6px 10px;
    }
}