@charset "UTF-8";
progress,sub,sup
{
	vertical-align:baseline
}

button,hr,input
{
	overflow:visible;
	font-family: "Open Sans"
}

[type=checkbox],[type=radio],legend
{
	box-sizing:border-box;
	padding:0
}
svg {
  display: inline;
  width: 24px;
  height: 18px;
}
html
{
	font-family:sans-serif;
	line-height:1.15;
	-ms-text-size-adjust:100%;
	-webkit-text-size-adjust:100%
}

body
{
	margin:0;
	display: flex;
	min-height: 100vh;
	flex-direction: column;
	font-family: "Open Sans", sans-serif;
}

article,aside,details,figcaption,figure,footer,header,main,menu,nav,section,summary
{
	display:block
}
audio,canvas,progress,video
{
	display:inline-block
}

audio:not([controls])
{
	display:none;
	height:0
}

[hidden],template
{
	display:none
}

a
{
	background-color:transparent;
	-webkit-text-decoration-skip:objects
}

a:active,a:hover
{
	outline-width:0
}
*, :after, :before {
    box-sizing: border-box;
}
html {
    color: #231f20;
    font-size: 14px;
    font-family: "Open Sans", sans-serif;
    letter-spacing: .01em;
    line-height: 1.7;
}
.layout__main{
    margin: 0 auto;
    max-width: 1466px;
    padding: 0 50px;
}
header {
    height: 118px;
    background-color: #292828;
    border-bottom: 15px solid #E9E9E9;
}

header .layout__main {
    display: flex;
    align-items: center;
    height: 100%;
}
.logo{
	display: inline-block;
}
.logo--centered {
    margin: 0 auto;
}
.header__right {
    display: flex;
    align-items: center;
    gap: 120px;
    margin-left: auto;
}

.header__button {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    transition: opacity 0.2s;
}

.header__button:hover {
    opacity: 0.8;
}

.header__button-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background-color: rgba(228, 85, 20, 1);
    border-radius: 50%;
}
.header__button-text {
    font-weight: 400;
    font-size: 16px;
    line-height: 16px;
    color: #FFFFFF;
}

.header__button-icon svg {
    color: white;
}

.header__button--logout .header__button-text {
    display: none;
}
.dropdown {
    position: relative;
}

.dropdown-toggle {
    position: relative;
    padding-right: 23px;
}

.dropdown-arrow {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}

.dropdown.open .dropdown-arrow {
    transform: translateY(-50%) rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: -70%;
    margin-top: 10px;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    background: linear-gradient(180deg, #292828 46.63%, #3E3D3D 100%);
	box-shadow: 2.87px 3px 10px rgba(0, 0, 0, 0.08);
	border-radius: 2px;
}

.dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 5px 16px;
    text-decoration: none;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 400;
    transition: background-color 0.2s ease;
}

.dropdown-item:hover {
    color: rgba(227, 115, 36, 1);
}

.dropdown-item:last-child {
    border-bottom: none;
}
.dropdown-arrow svg{
	width: 12px;
	height: 8px;
}
main{
	flex: 1;
	font-family: "Open Sans"
}
footer{
	
}
.footer__top{
	height: 118px;
	background-color: #ECECEC;
}
.footer__copyright{
	background-color: #ffffff;
	height: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 400;
	font-size: 10.6562px;
	line-height: 16px;
	color: #AEADAD;
}
.auth-container {
    background: #FFFFFF;
	border: 1.13982px solid #F9F9F9;
	border-radius: 3.41945px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 75px;
    width: 100%;
    max-width: 655px;
    margin: 0 auto 75px;
}
h1{
	font-weight: 400;
	font-size: 28px;
	line-height: 28px;
	color: #000000;
	text-align: center;
}
.indx-page h1{
	margin-top: 70px;
	margin-bottom: 48px;
}
.auth-header {
    text-align: center;
    margin-bottom: 25px;
}

.auth-title {
	font-weight: 400;
	font-size: 28px;
	line-height: 28px;
	display: block;
	align-items: center;
	color: #000000;
	margin-bottom: 17px;
}

.register-link {
	font-weight: 600;
	font-size: 16px;
	line-height: 23px;
	text-align: center;
	text-decoration: none;
	color: #DD4E1B;
	border-bottom: 1px dotted #DD4E1B
}

.role-selector {
    display: flex;
    gap: 19px;
    margin-bottom: 20px;
}

.role-btn {
    flex: 1;
    padding: 10px;
    background: #FFFFFF;
	border: 2px solid #ECECEC;
	border-radius: 3.41945px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
	font-size: 16px;
	line-height: 23px;
	display: flex;
    align-items: center;
    justify-content: center;
}

.role-btn img{
	margin-right: 10px;
}
.role-btn.active {
    background: linear-gradient(180deg, #FFFFFF 0%, #EEEEEE 100%);
	border: 2px solid #F76600;
	border-radius: 3.41945px;
	color: #000000;
	text-decoration: underline;
}

.phone-input {
    width: 100%;
    padding: 16px 30px;
    background: #FFFFFF;
	border: 2px solid #ECECEC;
	border-radius: 3.41945px;
    box-sizing: border-box;
    margin-bottom: 20px;
    font-weight: 600;
	font-size: 16px;
	line-height: 23px;
	color: #919090;
	outline:none;
}

.submit-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(180deg, #F76600 0%, #D94B1F 100%);
	border-top: 1.13982px solid #F76600;
	border-radius: 2.27963px;
    color: #FFFFFF;
    border: none;
    border-radius: 4px;
    font-weight: 400;
	font-size: 20px;
	line-height: 28px;
    cursor: pointer;
    transition: background-color 0.3s;
}
.submit-btn:hover {
    background-color: #0055aa;
}
.register-text {
    font-weight: 400;
    font-size: 16px;
    line-height: 23px;
    color: #000000;
    text-align: center;
    margin-bottom: 30px;
}

.register-email {
    color: #DD4E1B;
    text-decoration: none;
    font-weight: 600;
}

#register-form {
    display: none;
}

/* Стиль для SVG стрелки (если нужно изменить цвет) */
.register-link svg {
	transform: rotate(180deg);
}
.register-link svg path {
    fill: #DD4E1B;
}
/* Форма SMS */
#sms-form {
    display: none;
}

.sms-info-text {
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #919090;
    text-align: center;
    margin-bottom: 30px;
}

.sms-code-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.sms-code-input {
    width: 60px;
    height: 78.24px;
    background: linear-gradient(180deg, #F7F7F7 0%, #EEEEEE 100%);
	border-radius: 4.8642px;
	border: none;
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    outline: none;
	font-weight: 600;
	font-size: 23.6653px;
	line-height: 32px;
	color: #333333;
}

.sms-code-input.filled {
    background: linear-gradient(180deg, #F76600 0%, #D94B1F 100%);
    color: white;
    border-color: #F76600;
}

.sms-back-btn {
    background: none;
    border: none;
    font-weight: 600;
    font-size: 16px;
    line-height: 23px;
    color: #000000;
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 5px 0;
    margin: 0 auto 10px;
}

.sms-back-btn svg {
    margin-right: 5px;
    transform: rotate(180deg);
}

.sms-resend-link {
    font-weight: 600;
    font-size: 16px;
    line-height: 23px;
    color: #DD4E1B;
    text-decoration: none;
}

.sms-loader {
    width: 40px;
    height: 40px;
    margin: 0 auto 20px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #F76600;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* Таймер и кнопка повторной отправки */
#sms-timer-container {
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #919090;
    display: block;
}

#sms-resend-link {
    display: none;
    font-weight: 600;
    font-size: 16px;
    line-height: 23px;
    color: #DD4E1B;
    text-decoration: none;
}
.sms-buttons-container{
	text-align: center;
}

.asc-title {
    font-weight: 400;
    font-size: 25px;
    line-height: 25px;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(247, 102, 0, 1);
    margin-bottom: 20px;
    color: #000000;
    text-align: left;
}

/* Стили для карточки АСЦ */
.asc-card-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.asc-left-block {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.asc-info-container {
    border: 2px solid #ECECEC;
    border-radius: 3px;
    padding: 20px;
    background: #FFFFFF;
}
.asc-map-block {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.asc-buttons {
    display: flex;
    gap: 15px;
}

.asc-info-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 16px;
}

.asc-info-item i {
    margin-right: 10px; 
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #e67e22;
}
.asc-info-item i.icon-phone{
	width: 19px;
    height: 19px;
	background: url(/images/asc/phone.svg) center center no-repeat;
}
.asc-info-item i.icon-building{
	width: 22px;
    height: 22px;
	background: url(/images/asc/name.svg) center center no-repeat;
}
.asc-info-item i.icon-location{
	width: 17px;
	height: 23px;
	background: url(/images/asc/point.svg) center center no-repeat;
}
.asc-info-item i.icon-email{
	width: 22px;
    height: 22px;
	background: url(/images/asc/email.svg) center center no-repeat;
}
.btn-gradient {
    background: linear-gradient(180deg, #F76600 0%, #D94B1F 100%);
    border-top: 1px solid #F76600;
    border-bottom: none;
    border-right: none;
    border-left: none;
    border-radius: 2px;
    color: white;
    cursor: pointer;
    transition: opacity 0.3s;
    white-space: nowrap;
}
.btn-gradient.small {
    font-weight: 600;
    font-size: 16px;
    line-height: 19px;
    padding: 11.6px 21px;
}
.asc-left-block .btn-gradient {
    width: 100%;
    font-weight: 400;
    font-size: 20px;
    line-height: 24px;
    padding: 16px 20px;
}
.btn-gradient:hover {
    opacity: 0.9;
}

/* Стили для таблицы сотрудников */
.employees-table {
    overflow: hidden;
    margin-bottom: 40px;
}

.table-header {
    font-weight: 400;
    font-size: 17px;
    line-height: 24px;
    color: #919090;
}

.employees-table .table-row {
    display: flex;
    border-bottom: 1px solid #e0e0e0;
}

.table-col {
    flex: 1;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    font-weight: 400;
    font-size: 18px;
    line-height: 24px;
}
.table-col.actions {
    gap: 10px;
}

.icon-btn {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    background-color: transparent;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 16px;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:hover {
    background-color: #f0f0f0;
}

.btn-outline {
    color: #333333;
    background: #FFFFFF;
    border: 1.5px solid #F76600;
    border-radius: 2.29064px;
    padding: 11.2px 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 17px;
    line-height: 19px;
    transition: all 0.3s;
}
.btn-outline:hover {
    background: #fdf5f0;
}

.placeholder-block {
    padding: 30px;
    text-align: center;
    border: 1px dashed #ccc;
    border-radius: 8px;
    color: #777;
    margin-bottom: 40px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .employees-table .table-row {
        flex-direction: column;
        padding: 15px;
    }
    
    .table-col {
        width: 100%;
        padding: 8px 0;
    }
    
    .table-col.actions {
        justify-content: flex-start;
        margin-top: 10px;
    }
    
    .asc-buttons {
        flex-direction: column;
    }
}
/* Стили для таблицы заявок */
.warranty-table {
    overflow: hidden;
    margin-bottom: 20px;
}
.warranty-table .table-row{
    border:none;
    height: 72px;
}
.warranty-table .product-name {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    max-height: 4em; 
    line-height: 1.5em;
}
.warranty-table .table-body {
    display: flex;
    flex-direction: column;
    gap: 15px; 
}
/* Стили статусов заявок */
.table-row.status-pending {
    background-color: rgba(255, 251, 7, 0.1);
}

.table-row.status-approved {
    background-color: rgba(106, 244, 0, 0.1);
}

.table-row.status-rejected {
    background-color: rgba(255, 72, 0, 0.08);
}

.table-row.status-draft {
    background-color: rgba(244, 244, 244, 0.94);
}

.show-more-container {
    display: flex;
    justify-content: center;
    margin: 20px 0 40px;
}
.btn-show-warr{
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.84) 71.63%, rgba(238, 238, 238, 0.84) 100%);
    border: 2px solid rgba(145, 144, 144, 0.21);
    border-radius: 3px;
    font-weight: 600;
    font-size: 16px;
    padding: 7.9px 12px;
    white-space: nowrap;
    line-height: 24px;
    color: #333333;
    cursor: pointer;
}
.asc-warranty-section{
	margin-bottom: 50px;
}
/* Адаптивность для таблицы */
@media (max-width: 768px) {
    .table-header {
        display: none;
    }
    
    .warranty-table .table-row {
        flex-direction: column;
        padding: 15px;
        border-bottom: 1px solid #e0e0e0;
    }
    
    .warranty-table .table-col {
        width: 100%;
        padding: 8px 0;
        position: relative;
        padding-left: 50%;
    }
    
    .warranty-table .table-col::before {
        content: attr(data-label);
        position: absolute;
        left: 15px;
        width: 45%;
        padding-right: 10px;
        font-weight: bold;
        text-align: right;
    }
    
    .warranty-table .table-col.actions {
        justify-content: flex-start;
        margin-top: 10px;
        padding-left: 0;
    }
    
    .warranty-table .table-col.actions::before {
        display: none;
    }
    
    /* Добавляем data-label для мобильной версии */
    .warranty-table .table-col:nth-child(1)::before { content: "№ заказа-наряда"; }
    .warranty-table .table-col:nth-child(2)::before { content: "Изделие"; }
    .warranty-table .table-col:nth-child(3)::before { content: "Дата"; }
    .warranty-table .table-col:nth-child(4)::before { content: "Статус"; }
}
.request-page h1{
	margin-bottom: 49px;
}
.breadcrumbs {
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 15px;
}
.breadcrumbs a,.breadcrumbs span{
    font-weight: 400;
    font-size: 13px;
    line-height: 16px;
    color: #333333;
}
.breadcrumbs a:first-child{
    display: flex;
    align-items: baseline;
}
.breadcrumbs a:first-child svg{
    width: 11px;
    height: 10px;
    margin-right: 15px
}
.hidden {
    display: none;
}

/* Форма */
.form-layout {
    display: flex;
    gap: 30px;
}

.left-block {
    flex: 1;
    position: relative;
    padding-left: 30px;
}

.right-block {
    flex: 1;
}

/* Прогресс-бар */
.progress-track {
    position: relative;
    padding-right: 30px;
    margin-left: -30px;
}
.form-section .progress-track {
    margin-left: 0;
}
.progress-line {
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    z-index: 1;
}

.progress-line.base {
    background: #ddd; /* серая линия всегда */
    height: 100%;
}
.progress-line.completed {
    background: rgba(247, 102, 0, 1); /* оранжевая */
    height: 0; /* будет задаваться через JS */
}
.progress-step {
    position: absolute;
    height: 12px;
    width: 12px;
    border-radius: 50%;
    background: #ddd;
    left: -5px;
    z-index: 2;
    transform: translateY(-50%);
    transition: background 0.3s ease;
}

.progress-step.active {
    background: rgba(247, 102, 0, 1);
}

.progress-step.completed {
    background: rgba(247, 102, 0, 1);
}
.left-block .progress-step.completed:last-child::after{
	display: var(--line-display, block);
}
/* Поля формы */
.form-section {
    position: relative;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
}
#form-fields{
    text-align: center;
}
.form-block {
    margin-bottom: 40px;
    text-align: left;
}
.form-layout-column {
    position: relative;
    display: block;
    width: 100%;
    padding-left: 30px;
}
.left-block {
    position: relative;
}

.form-group {
    position: relative;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
}

.form-group input, .form-section input {
    flex: 1;
}

.form-group label, .form-section label {
    font-weight: 400;
    font-size: 17px;
    line-height: 20px;
    color: #000000;
    width: 230px;
}

.form-group input, .form-section input {
    height: 55px;
    background: #FFFFFF;
    border: 2px solid #ECECEC;
    border-radius: 3px;
    font-weight: 600;
    font-size: 16px;
    line-height: 20px;
    color: #333333;
    outline: none;
    padding: 0 28px;
}
.form-group-mini {
    font-weight: 400;
    font-size: 13px;
    line-height: 14px;
    color: #919090;
}
.form-group.datepicker:after{
    content: '';
    background: url(/images/calendar.svg) center center no-repeat;
    width:18px;
    height:18px;
    display: inline-block;
    position: absolute;
    right: 20px;
}
/* Блок с фото */
.product-image {
    position: relative;
    margin-bottom: 20px;
    background: #FFFFFF;
    border: 2px solid #ECECEC;
    border-radius: 3px;
    height: 418px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-image img{
    max-width: 400px;
    max-height: 400px;
}
.product-info {
    padding: 6px 33px;
    border: 2px solid #ECECEC;
    border-radius: 3px;
}
#product-title{
    font-weight: 600;
    font-size: 17px;
    line-height: 24px;
    color: #000000;
    margin-top: 0;
    margin-bottom: 8px;
}
#product-price{
    font-weight: 400;
    font-size: 18px;
    line-height: 24px;
    color: #000000;
    margin: 15px 0;
}
#product-price span{
    font-weight: 600
}
#product-link{
    font-weight: 400;
    font-size: 16px;
    line-height: 20px;
    color: #000000;
    display: flex;
    align-items: center;
    gap: 14.45px;
}
#product-link svg{
    height: 18px;
    width: 40px;
    margin-bottom: -2px; 
}
.btn-instruction,.btn-details{
    border:none;
    display: flex;
    align-items: center;
    gap: 5px;
    background: transparent;
    text-decoration: underline;
    cursor: pointer;
    font-weight: 400;
    font-size: 15px;
    line-height: 20px;
    letter-spacing: 0.02em;
    color: #000000;
    outline: none;
}
.btn-details{
    gap:4px;
    letter-spacing: -0.01em;
}
.btn-instruction:hover,.btn-details:hover{
    text-decoration: none;
}
.btn-instruction:before{
    content: '';
    background: url(/images/request/instruction.svg) no-repeat center center;
    width: 20px;
    height: 18.4px;
    display: inline-block;
}
.btn-details:before{
    content: '';
    background: url(/images/request/details.svg) no-repeat center center;
    width: 21px;
    height: 20px;
    display: inline-block;
}
.image-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 6px;
    flex-direction: column;
}

/* Адаптивность */
@media (max-width: 768px) {
    .form-layout {
        flex-direction: column;
    }
    
    .progress-line {
        left: -20px;
    }
    
    .progress-step {
        left: -4px;
    }
}
/* Добавленные стили для нового блока */
.full-width {
    width: 100%;
}

.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 5px;
    width: auto;
    cursor: pointer;
}
.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 5px;
    border: 1px solid #ECECEC;
    border-radius: 3px;
    padding: 10px;
    background: white;
    max-height: 200px;
    overflow-y: auto;
    display: none;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.product-result {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
}

.product-result:hover {
    background-color: #f8f8f8;
}

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

.no-results {
    padding: 8px 12px;
    color: #666;
    font-style: italic;
}
.parts-search-wrapper .search-results {
    margin-top: 10px;
    border: 1px solid #ECECEC;
    border-radius: 3px;
    padding: 10px;
    background: white;
    max-height: 200px;
    overflow-y: auto;
    display: none;
}

.search-results .part-item {
    padding: 8px;
    cursor: pointer;
}

.search-results .part-item:hover {
    background: #f5f5f5;
}
.request-page textarea {
    width: 100%;
    height: 92px;
    padding: 18px 32px;
    border: 2px solid #ECECEC;
    border-radius: 3px;
    resize: none;
    font-family: inherit;
    font-weight: 400;
	font-size: 16px;
	line-height: 20px;
    outline: none;
    flex: 1;
}
.request-page .part-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    border-bottom: 1px solid #ECECEC;
}

.request-page .part-row:last-child {
    border-bottom: none;
}

.part-name {
    flex: 1;
}

.quantity-btn {
    width: 25px;
    height: 25px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 3px;
    cursor: pointer;
}

.quantity-input {
    width: 40px;
    height: 25px;
    text-align: center;
    margin: 0 5px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.part-remove {
    background: none;
    border: none;
    color: #ff0000;
    font-size: 18px;
    cursor: pointer;
    padding: 0 5px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .radio-group {
        flex-direction: column;
        gap: 5px;
    }
    
    .request-page .part-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .part-quantity {
        margin: 10px 0;
    }
}
/* Контейнер поля */
.parts-field .parts-block {
    border: 2px solid #ECECEC;
    border-radius: 3px;
    padding: 14px 17px;
    background: #fff;
    flex: 1;            
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Выбранные детали (чипы) */
#selected-parts {
    display: flex;
    flex-wrap: wrap;       /* переносятся на следующую строку */
    gap: 10px;
}

/* Чип детали */
.part-chip {
    display: flex;
    align-items: center;
    padding: 6px 10px;
    background: #FFFFFF;
    border: 2px solid #ECECEC;
    border-radius: 3px;
}
.part-chip .part-name {
    font-weight: 400;
	font-size: 16px;
	line-height: 20px;
	margin-right: 21px;
    color: #000000;
    white-space: nowrap;
}

/* Переключатель количества */
.part-quantity {
    display: flex;
    align-items: center;
    border: 1px solid #ECECEC; /* цвет как у окантовки */
    background: #f5f5f5;
    border-radius: 3px;
    overflow: hidden;
}
.qty-btn {
    border: none;
    background: transparent;
    padding: 2px 8px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    color: #666;
}
.qty-btn:hover { background: #e9e9e9; }
.qty-value {
    padding: 0 8px;
    font-size: 14px;
    user-select: none;     /* нельзя выделять/редактировать */
}

/* Крестик удаления (серый, как окантовка) */
.part-remove {
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 16px;
    color: #BDBDBD;        /* близко к #ECECEC, но видимее */
    line-height: 1;
}
.part-remove:hover { color: #ff4d4f; }

/* Обёртка поиска */
.parts-search-wrapper {
    position: relative;
    width: 100%;
}
/* Поле поиска — во всю ширину, с верхней рамкой */
#parts-search {
    width: 100%;
    height: 32px;
    border: 2px solid #ECECEC;
    font-size: 14px;
    padding: 0 10px;
    outline: none;
}

/* Выпадающий список — только для поля деталей */
.parts-results {
    position: absolute;
    top: 100%; left: 0; right: 0;
    border: 1px solid #ECECEC;
    border-top: none;
    border-radius: 0 0 3px 3px;
    background: #fff;
    z-index: 20;
    max-height: 220px;
    overflow-y: auto;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}
.parts-results .part-item {
    padding: 8px 10px;
    cursor: pointer;
}
.parts-results .part-item:hover { background: #f5f5f5; }
.defect-field .defect-block {
  	display: flex;
  	align-items: flex-start;
  	gap: 15px;
  	border: 2px solid #ECECEC;
  	border-radius: 3px;
  	padding: 12px 17px;
  	background: #fff;
  	height: 96px;
  	flex: 1;
}

/* Опции радиокнопок (вертикально) */
.defect-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Каждая опция */
.defect-option {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  color: #333;
}

/* Скрываем оригинальное радио */
.defect-option input[type="radio"] {
  display: none;
}

/* Квадрат кастомного радио */
.custom-radio {
  width: 27px;
  height: 27px;
  border: 2px solid #ECECEC;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  transition: all 0.2s ease;
}

/* SVG-галочка при выборе */
.custom-radio::after {
  content: '';
  width: 22px;
  height: 21px;
  background: url('/images/asc/radiobtn.svg') no-repeat center;
  background-size: contain;
  opacity: 0;
  transition: opacity 0.2s ease;
  margin-right: -11px;
}

/* Активное состояние */
.defect-option input[type="radio"]:checked + .custom-radio::after {
  opacity: 1;
}

/* Текст рядом */
.option-label {
  line-height: 1.2;
}

/* Блок с textarea справа */
.defect-details {
  flex: 1;
  border: 2px solid #ECECEC;
  border-radius: 3px;
  background: #fff;
}

.defect-details textarea {
  	width: 100%;
    border: none;
    outline: none;
    font-size: 14px;
    height: 59px;
    resize: none;
    padding: 10px 23px;
}
/* Стили для блока загрузки фото */
.photo-upload-group {
    margin-bottom: 20px;
    display: flex;
}

.photo-upload-group label {
    width: 230px;
    font-weight: 400;
    font-size: 17px;
    line-height: 20px;
    color: #000000;
    margin-right: 20px;
    padding-top: 10px;
}

.photo-upload-container {
    flex: 1;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.upload-square {
    height: 81.17px;
    width: 81.17px;
    background: #FFFFFF;
    border: 1.88764px solid #ECECEC;
    border-radius: 2.83146px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: border-color 0.3s ease;
    flex-shrink: 0;
}

.upload-square:hover {
    border-color: #F76600;
}

.upload-plus {
    font-size: 24px;
    color: #777;
    font-weight: bold;
}

.photo-preview-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: flex-start;
}

.preview-image-container {
    position: relative;
    height: 81.17px;
    width: 81.17px;
    flex-shrink: 0;
}
.preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 2px solid #ECECEC;
    border-radius: 3px;
}

.remove-image {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 20px;
    height: 20px;
    background: #ff4d4f;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Стили для слайдера */
.photo-slider-container {
    position: relative;
    width: 255px;
    margin-left: 20px;
    display: none;
}
.photo-slider-container:not(.hidden) {
    display: block;
}
.swiper-container {
    width: 300px;
    height: 100px;
}

.swiper-wrapper {
    display: flex;
}

.swiper-slide {
    width: 81px;
    height: 81px;
    flex-shrink: 0;
    position: relative;
    margin-right: 15px;
}

/* Кастомные стрелки Swiper */
.photo-upload-group .swiper-button-prev,
.photo-upload-group .swiper-button-next {
    width: 23px;
    height: 81px;
    background: #ffffff;
    border: 1.88764px solid #ECECEC;
    color: rgba(145, 144, 144, 1);
    font-weight: bold;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 77%;
    transform: translateY(-50%);
    z-index: 10;
    cursor: pointer;
}

.photo-upload-group .swiper-button-prev {
    left: -25px;
    border-radius: 2.83146px;
}
.photo-upload-group .swiper-button-next {
    right: -25px;
    border-radius: 2.83146px;
}

.photo-upload-group .swiper-button-prev::after,
.photo-upload-group .swiper-button-next::after {
    content: '';
    font-size: 0;
}

.photo-upload-group .swiper-button-prev::before {
    content: '';
}

.photo-upload-group .swiper-button-next::before {
    content: '';
}
.photo-upload-group .swiper-button-next svg,.photo-upload-group .swiper-button-prev svg{
    height: 20px;
}
.photo-upload-group .swiper-button-disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Оповещения об ошибках */
.upload-error {
    color: #ff4d4f;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.upload-error.show {
    display: block;
}

/* Скрываем превью-ряд когда активен слайдер */
.photo-upload-container.show-slider .photo-preview-row {
    display: none;
}

.photo-upload-container.show-slider .photo-slider-container {
    display: block;
}
.btn-save-request{
    max-width: 892px;
    width: 100%;
    height: 57px;
    font-weight: 400;
    font-size: 20px;
    line-height: 28px;
    margin:0 auto 40px;
}

/* Блок управления заявками */
.requests-controls {
    margin-bottom: 30px;
}

/* Кнопки Активные/Архивные */
.requests-tabs {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 23px;
    background: #FFFFFF;
    border: 2px solid #ECECEC;
    border-radius: 3.41945px;
    font-weight: 600;
    font-size: 16px;
    line-height: 23px;
    color: #333333;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    max-width: 175px;
}

.tab-btn:hover {
    border-color: #F76600;
}

.tab-btn.active {
    background: linear-gradient(180deg, #FFFFFF 0%, #EEEEEE 100%);
    border: 2px solid #F76600;
    color: #000000;
    text-decoration: underline;
}

.tab-btn svg {
    width: 27px;
    height: 26px;
    flex-shrink: 0;
}

/* Строка фильтров */
.requests-filter-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 20px;
}

/* Табы статусов */
.status-tabs {
    display: flex;
    gap: 33px;
    flex-wrap: wrap;
    flex: 1;
    position: relative;
}

.status-tab {
    position: relative;
    padding: 8px 0 12px;
    background: transparent;
    border: none;
    outline: none;
    font-weight: 500;
    font-size: 16px;
    line-height: 20px;
    color: #919090;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    white-space: nowrap;
    overflow: hidden;
}

/* Анимированные подчеркивания для каждого статуса */
.status-tab::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    border-radius: 2px 2px 0 0;
    transform: translateX(-50%);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0;
}

/* Цвета подчеркиваний для каждого статуса */
.status-tab[data-status="all"]::after {
    background: linear-gradient(90deg, #F76600 0%, #D94B1F 100%);
}

.status-tab[data-status="draft"]::after {
    background: rgba(240, 240, 240, 1);
}

.status-tab[data-status="pending"]::after {
    background: rgba(255, 242, 2, 0.8);
}

.status-tab[data-status="approved"]::after {
    background: rgba(49, 200, 67, 0.8);
}

.status-tab[data-status="rejected"]::after {
    background: rgba(247, 74, 0, 0.8);
}

.status-tab[data-status="completed"]::after {
    background: rgba(255, 157, 0, 0.8);
}

.status-tab[data-status="issued"]::after {
    background: rgba(0, 152, 247, 0.8);
}

/* Ховер-эффекты */
.status-tab:hover {
    color: #333333;
    transform: translateY(-2px);
}

.status-tab:hover::after {
    width: 60%;
    opacity: 0.7;
}

/* Активное состояние */
.status-tab.active {
    color: #333333;
    font-weight: 600;
    transform: translateY(0);
}

.status-tab.active::after {
    width: 100%;
    opacity: 1;
    transform: translateX(-50%);
}

/* Дополнительная анимация при переключении */
.status-tabs:hover .status-tab:not(:hover):not(.active) {
    opacity: 0.7;
}

.status-tabs:hover .status-tab:hover {
    opacity: 1;
}

/* Эффект "волны" при клике */
.status-tab:active::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(247, 102, 0, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: ripple 0.6s ease-out;
}

@keyframes ripple {
    0% {
        width: 0;
        height: 0;
        opacity: 0.5;
    }
    100% {
        width: 100px;
        height: 100px;
        opacity: 0;
    }
}

/* Анимация появления табов при загрузке */
.status-tab {
    animation: slideInUp 0.5s ease-out backwards;
}

.status-tab:nth-child(1) { animation-delay: 0.1s; }
.status-tab:nth-child(2) { animation-delay: 0.15s; }
.status-tab:nth-child(3) { animation-delay: 0.2s; }
.status-tab:nth-child(4) { animation-delay: 0.25s; }
.status-tab:nth-child(5) { animation-delay: 0.3s; }
.status-tab:nth-child(6) { animation-delay: 0.35s; }
.status-tab:nth-child(7) { animation-delay: 0.4s; }

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Индикатор текущего таба (дополнительная полоска) */
.status-tabs::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background: #ECECEC;
    width: 100%;
    z-index: 0;
}

.status-tab {
    z-index: 1;
    position: relative;
}

/* Адаптивность */
@media (max-width: 768px) {
    .status-tabs {
        gap: 20px;
        overflow-x: auto;
        padding-bottom: 15px;
        margin-bottom: 10px;
    }
    
    .status-tab {
        font-size: 14px;
        padding: 6px 0 10px;
        flex-shrink: 0;
    }
    
    .status-tab::after {
        height: 2px;
    }
}

/* Поле поиска */
.search-field {
    position: relative;
    min-width: 455px;
}

.search-icon {
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    width: 23px;
    height: 24px;
}

.search-input {
    width: 100%;
    height: 55px;
    padding: 0 15px 0 62px;
    background: #FFFFFF;
    border: 2px solid #ECECEC;
    border-radius: 3px;
    font-weight: 400;
    font-size: 17px;
    line-height: 20px;
    color: #333333;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    border-color: #F76600;
}

.search-input::placeholder {
    color: #919090;
}

/* Бейджи статусов */
.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 12px;
    line-height: 16px;
    text-align: center;
}

.status-badge.status-draft {
    background: rgba(244, 244, 244, 0.94);
    color: #666666;
}

.status-badge.status-pending {
    background: rgba(255, 251, 7, 0.1);
    color: #b3a100;
}

.status-badge.status-approved {
    background: rgba(106, 244, 0, 0.1);
    color: #4CAF50;
}

.status-badge.status-rejected {
    background: rgba(255, 72, 0, 0.08);
    color: #F44336;
}

.status-badge.status-completed {
    background: rgba(33, 150, 243, 0.1);
    color: #2196F3;
}

.status-badge.status-issued {
    background: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
}

/* Адаптивность */
@media (max-width: 1200px) {
    .requests-filter-row {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .search-field {
        min-width: auto;
    }
}

@media (max-width: 768px) {
    
    .tab-btn {
        max-width: none;
    }
    
    .status-tabs {
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .status-tab {
        flex-shrink: 0;
    }
    
    .table-col.actions {
        flex-direction: row;
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .tab-btn {
        padding: 12px 20px;
        font-size: 16px;
    }
    
    .search-input {
        font-size: 12px;
    }
}
.warranty-table .table-col{
    font-weight: 400;
    font-size: 17px;
    line-height: 24px;
}
.warranty-table .table-row {
    display: flex;
    border-bottom: 1px solid #e0e0e0;
}

.warranty-table .table-col {
    flex: 1;
    padding: 12px 15px;
    display: flex;
    align-items: center;
}

/* Столбец "Изделие" делаем в 2 раза шире остальных */
.warranty-table .table-body .table-col:nth-child(3) {
    flex: 1; /* В 2 раза шире обычных колонок */
    min-width: 200px; /* Минимальная ширина */
}

/* Остальные колонки равной ширины */
.warranty-table .table-body .table-col:nth-child(2),
.warranty-table .table-body .table-col:nth-child(4),
.warranty-table .table-body .table-col:nth-child(5) {
    flex: 0.5;
    min-width: 120px;
}
/* Столбец "Изделие" делаем в 2 раза шире остальных */
.warranty-table .table-header .table-col:nth-child(2) {
    flex: 1; /* В 2 раза шире обычных колонок */
    min-width: 200px; /* Минимальная ширина */
}

/* Остальные колонки равной ширины */
.warranty-table .table-header .table-col:nth-child(1),
.warranty-table .table-header .table-col:nth-child(3),
.warranty-table .table-header .table-col:nth-child(4) {
    flex: 0.5;
    min-width: 120px;
}
/* Колонка с действиями фиксированной ширины */
.warranty-table .table-col.actions {
    flex: 0 0 auto;
    /*width: 150px;*/
    justify-content: center;
}
.warranty-table .table-header .table-col.actions{
    width: 280px;
}
.mobile-menu-toggle{
    display: none;
}
.mobile-delete-btn {
    display: none;
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: all 0.3s ease;
}
@media (min-width: 1100px){
	.mobile-menu{
		display: none!important;
	}
}
@media (max-width: 1100px){
	.mobile-delete-btn {
        display: flex;
    }
    
    /* Скрываем обычные кнопки редактирования и удаления */
    .warranty-table .icon-btn {
        display: none;
    }
	.employees-table .table-row {
        flex-wrap: wrap;
        align-items: center;
        position: relative;
        min-height: 80px;
    }
    
    .employees-table .table-col::before {
        display: none;
    }
    .employees-table .icon-btn {
        display: none;
    }
	.employees-table .table-col:nth-child(2),
    .employees-table .table-col:nth-child(3) {
        display: none;
    }
    
    /* Уменьшаем шрифт для статуса */
    .employees-table .table-col:nth-child(1) {
        flex: 1;
        min-width: 0;
        padding-right: 60px; /* место для кнопки */
    }
    
    /* Статус - под ФИО */
    .employees-table .table-col:nth-child(4) {
        width: 100%;
        font-size: 14px;
        color: #666;
        margin-top: -15px;
        order: 2;
    }
    .employees-table .table-col.actions {
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        margin-top: 0;
        padding: 0;
        border: none;
        width: auto;
        justify-content: center;
    }
    
    .employees-table .table-col.actions::before {
        display: none;
    }
    
    /* Кнопка блокировки/разблокировки */
    .employees-table .btn-gradient.small,
    .employees-table .btn-outline.small {
        width: 40px;
        height: 40px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0;
        position: relative;
        border-radius: 4px;
    }
    
    /* Иконка замка для заблокировать */
    .employees-table .btn-gradient.small::before {
        content: '';
        width: 20px;
        height: 20px;
        background: url(/images/asc/zamok2.svg) no-repeat center;
        background-size: contain;
    }
    
    /* Иконка открытого замка для разблокировать */
    .employees-table .btn-outline.small::before {
        content: '';
        width: 20px;
        height: 20px;
        background: url(/images/asc/zamok.svg) no-repeat center;
        background-size: contain;
    }
    
    /* Ховер-эффекты для кнопок */
    .employees-table .btn-gradient.small:hover::before,
    .employees-table .btn-outline.small:hover::before {
        transform: scale(1.1);
        transition: transform 0.2s ease;
    }
	header {
    	height: 72px;
	}
	.logo{
		margin:0;
		display: flex;
        align-items: center;
	}
	.logo img{
		height: 31px;
	}
	.part-name {
		order:2;
	}
	.part-quantity{
		order:1;
		margin-right: 21px;
	}
	.part-remove{
		order:3;
	}
	.parts-block{
		display: block;
		width: 100%;
	}
	.part-chip {
    	width: 100%;
    	height: 35px;
	}
	.defect-field .defect-block{
		display: block;
		width: 100%;
	}
	.defect-options {
    	flex-direction: row;
    }	
	.btn-show-warr{
		display: block;
		width: 100%;
	}
	.asc-title{
		font-weight: 400;
		font-size: 20px;
		line-height: 25px;	
	}
	.photo-group{
        flex-direction: column;
	}
	.form-group.datepicker:after{
		top:57%;
	}
	.request-page h1{
		margin-bottom: 35px;
	}
	.layout__main {
        padding: 0 25px;
    }
    .right-block.product{
        display: none;
    }
    .form-group,
    .form-section,
    .photo-upload-group {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 27px;
    }
    
    .form-group label,
    .form-section label,
    .photo-upload-group label {
        width: 100%;
        margin-bottom: 8px;
        margin-right: 0;
        font-weight: 400;
		font-size: 12px;
		line-height: 24px;
    }

    .form-group input,
    .form-section input,
    .form-group textarea,
    .photo-upload-container {
        width: 100%;
    }
    .left-block,
    .form-layout-column {
        padding-left: 0px;
    }
    
    .progress-track {
        margin-left: 0;
        padding-right: 40px;
    }
    .form-section .progress-track {
	    margin-left: -27px;
	}
    .progress-step {
        left: -5px;
        transform: translateY(-50%);
    }
    .progress-step {
        position: absolute;
        height: 12px;
        width: 12px;
        border-radius: 50%;
        background: #ddd;
        left: -5px;
        z-index: 2;
        transform: translateY(-50%);
        transition: background 0.3s ease;
    }
    
    .progress-line.base,
    .progress-line.completed {
        left: 0;
        width: 2px;
    }
    /* Скрываем обычное меню */
    .header__right {
        display: none;
    }
    
    /* Стили для бургер-меню */
    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 32px;
        height: 32px;
        background: #E45514;
        padding: 7.1px 6px;
        border: none;
        cursor: pointer;
        margin-left: auto;
        border-radius: 3px;
    }
    
    .mobile-menu-toggle span {
        display: block;
        height: 3px;
        width: 100%;
        background-color: white;
        border-radius: 3px;
        transition: all 0.3s ease;
    }
    
    /* Состояние крестика при открытом меню */
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(4px, -5px);
    }
    
    /* Мобильное меню */
    .mobile-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 420px;
        background: rgba(41, 40, 40, 0.95);
        z-index: 1000;
        transform: translateY(-100%);
        transition: transform 0.3s ease;
        display: flex;
        flex-direction: column;
        padding: 39px 25px 25px;
    }
    
    .mobile-menu.active {
        transform: translateY(0);
        top: 57px;
    }
    
    .mobile-menu-content {
	    display: flex;
	    flex-direction: column;
	    height: 100%;
	    position: relative;
	    gap: 0;
	}
    
    .mobile-menu-item {
        display: flex;
        align-items: center;
        gap: 15px;
        color: white;
        text-decoration: none;
        font-size: 16px;
    }
    .mobile-menu-item+.mobile-menu-item{
    	margin-top: 25px;
    }
    .mobile-menu-logout {
        margin-top: auto;
	    padding-top: 20px;
	    position: relative;
        border-top: 1px solid rgba(255, 255, 255, 0.3);
        display: flex;
        align-items: center;
        gap: 15px;
        color: white;
        background: none;
        border: none;
        font-size: 16px;
        cursor: pointer;
        text-align: left;
    }
    
    /* Адаптация формы для маленьких экранов */
    .form-group input,
    .form-section input,
    .form-group textarea {
        font-size: 16px;
        min-height: 54px;
    }
    
    .btn-save-request {
        font-size: 18px;
        height: 50px;
    }
    
    /* Адаптация хлебных крошек */
    .breadcrumbs {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    /* Адаптация кнопок */
    .asc-buttons {
        flex-direction: column;
    }
    
    .btn-gradient,
    .btn-outline {
        width: 100%;
        text-align: center;
    }
    .warranty-table .table-header {
        display: none;
    }
    
    .warranty-table .table-row {
        flex-direction: column;
        padding: 15px;
        border: 1px solid #e0e0e0;
        border-radius: 5px;
        margin-bottom: 15px;
        height: auto;
        position: relative;
    }
    
    .warranty-table .table-col {
        width: 100%;
        padding: 8px 0;
        position: relative;
        padding-left: 40%;
        max-height: none;
    }
    
    .warranty-table .table-col::before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        width: 45%;
        padding-right: 10px;
        font-weight: bold;
        text-align: left;
        font-size: 14px;
        color: #666;
    }
    
    .warranty-table .table-col.actions {
        justify-content: flex-start;
        margin-top: 10px;
        padding-left: 0;
        flex-direction: column;
        gap: 10px;
    }
    
    .warranty-table .table-col.actions::before {
        display: none;
    }
    
    /* Добавляем data-label для мобильной версии таблицы */
    .warranty-table .table-col:nth-child(1)::before { content: "№ заказа-наряда";
    	font-weight: 400;
		font-size: 13px;
		line-height: 24px;
		color: #919090;
	}
    .warranty-table .table-col:nth-child(2)::before { content: "Изделие";
    	font-weight: 400;
		font-size: 13px;
		line-height: 24px;
		color: #919090;
	}
    .warranty-table .table-col:nth-child(3)::before { content: "Дата";
    	font-weight: 400;
		font-size: 13px;
		line-height: 24px;
		color: #919090;
	}
    .warranty-table .table-col:nth-child(4)::before { content: "Статус";
    	font-weight: 400;
		font-size: 13px;
		line-height: 24px;
		color: #919090;
	}
    
    /* Адаптация блоков управления */
    .requests-filter-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .status-tabs {
        overflow-x: auto;
        padding-bottom: 10px;
        gap: 20px;
    }
    
    .status-tab {
        flex-shrink: 0;
        font-size: 14px;
        padding: 6px 0 10px;
    }
    
    .search-field {
        min-width: auto;
        width: 100%;
    }
    .asc-map-block{
    	display: none;
    }
    .asc-card-wrapper {
    	grid-template-columns: auto;
    }	
}
.request_doc-page{
	background: rgba(249, 249, 249, 1);
}
.layout__doc{
    margin: 0 auto;
    max-width: 1271px;
    padding: 0 50px;
    background: #ffffff;
}
.toggle-switcher {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin: 20px auto;
    gap: 15px;
    min-width: 573px;
    justify-content: space-between;
}

.toggle-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 31px;
    position: relative;
    z-index: 2;
}

.toggle-label {
    font-weight: 600;
	font-size: 15px;
	line-height: 25px;
    border-radius: 71.86px;
    background: rgba(246, 246, 246, 1);
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    flex: 1;
    color: #666;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}
.toggle-label.left-label{
	padding: 0 45px 0 10px;
}
.toggle-label.right-label{
	padding: 0 10px 0 45px;
}
/* Активные состояния для текста */
.toggle-switcher:has(.toggle-input:not(:checked)) .left-label {
    background: linear-gradient(180deg, #F76600 0%, #D94B1F 100%);
    color: white;
    font-weight: 600;
}

.toggle-switcher:has(.toggle-input:checked) .right-label {
    background: linear-gradient(180deg, #F76600 0%, #D94B1F 100%);
    color: white;
    font-weight: 600;
}

/* Скрываем оригинальный checkbox */
.toggle-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Слайдер */
.toggle-slider {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 3;
	position: absolute;
	width: 60px;
	height: 30px;
	background: #E9E9E9;
	border-radius: 71.8636px;
}

/* Кружок (thumb) */
.slider-thumb {
	position: absolute;
	width: 35px;
	height: 35px;
    top: -2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	background: conic-gradient(from 180deg at 50% 50%, #828282 0deg, #C2C2C2 40deg, #777777 80deg, #9E9E9E 120deg, #7E7E7E 160deg, #C7C7C7 200deg, #E8E8E8 240deg, #666666 280deg, #969696 320deg, #828282 360deg);
	box-shadow: inset 0px 0px 0px 0.25px rgba(0, 0, 0, 0.3), inset 0px 0px 0px 0.833333px rgba(255, 255, 255, 0.3);
	border-radius: 50%;
}


/*.toggle-input:not(:checked) + .toggle-labels + .toggle-slider {
    background: linear-gradient(90deg, #F76600 0%, #E0E0E0 100%);
}*/

.toggle-input:not(:checked) + .toggle-labels + .toggle-slider .slider-thumb {
    transform: translateX(0);
}


/*.toggle-input:checked + .toggle-labels + .toggle-slider {
    background: linear-gradient(90deg, #E0E0E0 0%, #F76600 100%);
}*/

.toggle-input:checked + .toggle-labels + .toggle-slider .slider-thumb {
    transform: translateX(30px);
}

/* Ховер эффекты */
/*.toggle-slider:hover {
    transform: translate(-50%, -50%) scale(1.05);
}*/

.toggle-label:hover {
    color: #F76600;
}

/* Активный ховер для текста */
.toggle-switcher:has(.toggle-input:not(:checked)) .left-label:hover,
.toggle-switcher:has(.toggle-input:checked) .right-label:hover {
    background: linear-gradient(180deg, #E55C00 0%, #C54215 100%);
}

/* Клик анимация */
.toggle-slider:active .slider-thumb {
    transform: scale(0.9);
}

.toggle-input:checked + .toggle-labels + .toggle-slider:active .slider-thumb {
    transform: translateX(30px) scale(0.9);
}

/* Адаптивность */
@media (max-width: 480px) {
    .toggle-switcher {
        min-width: 250px;
        padding: 6px;
        gap: 10px;
    }
    
    .toggle-label {
        font-size: 13px;
        padding: 6px 12px;
    }
    
    .toggle-slider {
        width: 50px;
        height: 26px;
    }
    
    .slider-thumb {
        width: 20px;
        height: 20px;
    }
    
    .toggle-input:checked + .toggle-labels + .toggle-slider .slider-thumb {
        transform: translateX(24px);
    }
}
.info-block {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 30px 0;
    padding: 17px;
    background: rgba(244, 244, 244, 0.8);
}

.info-items {
    flex: 1;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-icon {
    width: 24px;
    height: 24px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-text {
    font-weight: 600;
	font-size: 16px;
	line-height: 20px;
	color: #333333;
}

.logo-side {
    margin-left: 30px;
}

.doc-logo {
    padding: 15px;
}

/* Блок с описанием */
.description-block {
    margin: 40px auto 20px;
    background: white;
    text-align: center;
}

.doc-title {
    font-weight: 400;
	font-size: 25px;
	line-height: 25px;
    color: #000000;
    margin-bottom: 7px;
}

.doc-description {
    font-weight: 400;
	font-size: 18px;
	line-height: 24px;
    color: #333333;
    margin-bottom: 29px;
}

.doc-note {
    font-weight: 400;
	font-size: 18px;
	line-height: 24px;
    color: #333333;
}

/* Таблица данных */
.data-table {
    margin: 40px 0;
}

.table-row {
    display: flex;
    border-radius: 2.83px;
}

.table-row.full {
    width: 100%;
}

.table-cell {
    flex: 1;
    padding: 20px;
    background: white;
    border: 1px solid rgba(217, 217, 217, 1);
    border-bottom: none;
}
.data-table .table-row:last-child .table-cell,
.signatures-block .table-row:last-child .table-cell,
.parts-block .table-row:last-child .table-cell{
	border-bottom: 1px solid rgba(217, 217, 217, 1);
}

.table-row.triple .table-cell {
    flex: 1;
}

.table-row.full .table-cell {
    width: 100%;
}

.cell-header {
    font-weight: 400;
	font-size: 18px;
	line-height: 24px;
    color: #757575;
    margin-bottom: 10px;
}

.cell-content {
    font-weight: 600;
	font-size: 18px;
	line-height: 24px;
    color: #333333;
}
.cell-content .options{
	display: flex;
}
.cell-content .options label{
	flex:1;
	font-weight: 600;
	font-size: 18px;
	line-height: 22px;
	letter-spacing: -0.01em;
	color: #333333;
}
/* Адаптивность */
@media (max-width: 768px) {
    .toggle-switcher {
        min-width: 300px;
    }
    
    .logo-side {
        margin-left: 0;
        margin-top: 20px;
        align-self: center;
    }
}
/* Блок с подписями */
.signatures-block {
    margin: 40px 0;
}

.signature-cell {
    display: flex;
    flex-direction: column;
    padding: 15px 25px;
}
.signature-cell .cell-header,.parts-block .cell-header{
	font-weight: 600;
	font-size: 18px;
	line-height: 19px;
	color: #333333;
	margin-bottom: 19px;
}
.signature-fields{
	display: flex;
	align-items: center;
	gap:50px;
}
.signature-field {
    margin-top: 25px;
    position: relative;
    flex: 1;
}

.signature-line {
    height: 1px;
    background: rgba(217, 217, 217, 1);
    margin-bottom: 5px;
    position: relative;
}

.signature-line::after {
    content: '';
    position: absolute;
    top: -8px;
    left: 0;
    right: 0;
    height: 16px;
    background: transparent;
}

.signature-label {
    font-weight: 400;
	font-size: 13px;
	line-height: 19px;
    color: #757575;
    text-align: right;
}

/* Блок с запчастями */
.parts-block {
    margin: 40px 0;
}

.parts-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.request_doc-page .part-item {
    padding: 8px 16px;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    transition: all 0.3s ease;
}

.request_doc-page .part-item:hover {
    background: #fff3e0;
    border-color: #F76600;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(247, 102, 0, 0.1);
}

/* Адаптивность для новых блоков */
@media (max-width: 768px) {
    .signatures-block .table-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .signature-cell {
        padding: 20px;
    }
    
    .parts-list {
        gap: 8px;
    }
    
    .part-item {
        padding: 6px 12px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .parts-list {
        justify-content: center;
    }
    
    .part-item {
        flex: 1;
        min-width: calc(50% - 10px);
        text-align: center;
    }
}

/* Блок с фотографиями */
.photos-block {
    margin: 40px 0;
}

.photos-container {
    border: 1px solid #e9ecef;
    border-radius: 6px;
    overflow: hidden;
}

.photo-row {
    display: flex;
    border-bottom: 1px solid #e9ecef;
}

.photo-row:last-child {
    border-bottom: none;
}

.photo-row.double {
    gap: 0;
}

.photo-row.double .photo-item {
    flex: 1;
    border-right: 1px solid #e9ecef;
    display: flex;
    align-items: center;
}

.photo-row.double .photo-item:last-child {
    border-right: none;
}

.photo-row.full .photo-item {
    width: 100%;
    display: flex;
    align-items: center;
}

.photo-item {
    padding: 20px;
}

.photo-header {
    font-weight: 400;
	font-size: 17px;
	line-height: 20px;
    color: #757575;
    width: 174px;
}

.photo-content {
    display: flex;
    justify-content: flex-end;
}

.photo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    border: 2px dashed #e9ecef;
    border-radius: 6px;
    background: #f8f9fa;
    transition: all 0.3s ease;
    cursor: pointer;
}

.photo-placeholder:hover {
    border-color: #F76600;
    background: #fff3e0;
}

.photo-placeholder.large {
    width: 200px;
    height: 150px;
}

.photo-placeholder svg {
    margin-bottom: 8px;
}

.photo-placeholder span {
    font-size: 12px;
    color: #919090;
    text-align: center;
}

/* Кнопки действий */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 40px 0;
    padding: 20px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    background: white;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.archive-btn:hover {
    border-color: #666;
    color: #666;
}

.edit-btn:hover {
    border-color: #F76600;
    color: #F76600;
}

.send-btn:hover {
    border-color: #28a745;
    color: #28a745;
}

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Адаптивность для фотографий и кнопок */
@media (max-width: 768px) {
    .photo-row.double {
        flex-direction: column;
    }
    
    .photo-row.double .photo-item {
        border-right: none;
        border-bottom: 1px solid #e9ecef;
    }
    
    .photo-row.double .photo-item:last-child {
        border-bottom: none;
    }
    
    .photo-content {
        justify-content: center;
    }
    
    .photo-placeholder {
        width: 100px;
        height: 100px;
    }
    
    .photo-placeholder.large {
        width: 150px;
        height: 120px;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .action-btn {
        width: 200px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .photo-item {
        padding: 15px;
    }
    
    .photo-placeholder {
        width: 80px;
        height: 80px;
    }
    
    .photo-placeholder.large {
        width: 120px;
        height: 100px;
    }
    
    .photo-placeholder svg {
        width: 30px;
        height: 30px;
    }
    
    .action-btn {
        width: 100%;
        max-width: 200px;
    }
}
.print-preview {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.preview-controls {
    padding: 15px 20px;
    background: #2c3e50;
    color: white;
    display: flex;
    align-items: center;
    gap: 20px;
}

.scale-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.scale-controls button {
    width: 30px;
    height: 30px;
    border: none;
    background: #34495e;
    color: white;
    border-radius: 3px;
    cursor: pointer;
}

.preview-wrapper {
    flex: 1;
    overflow: auto;
    background: #ecf0f1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 20px;
}

.preview-content {
    transform-origin: top center;
    transition: transform 0.2s ease;
}

/* Оптимизированные стили для печати А4 */
.document-a4 {
    width: 794px;  
    height: 1123px; 
    background: white;
    box-shadow: 0 4px 25px rgba(0,0,0,0.15);
    padding: 30px 40px; /* Уменьшил padding */
    box-sizing: border-box;
    font-family: "Open Sans", sans-serif;
}

.document-a4 .info-text {
    font-weight: 600;
    font-size: 11px;
    line-height: 16px;
    color: #333333;
}

.document-a4 .doc-title {
    font-weight: 400;
    font-size: 20px;
    line-height: 22px;
    color: #000000;
    margin-bottom: 5px;
}

.document-a4 .doc-description {
    font-weight: 400;
    font-size: 14px;
    line-height: 18px;
    color: #333333;
    margin-bottom: 15px;
}

.document-a4 .doc-note {
    font-weight: 400;
    font-size: 14px;
    line-height: 18px;
    color: #333333;
}

.document-a4 .info-block {
    margin: 20px 0; 
    padding: 12px;
}

.document-a4 .info-item {
    margin-bottom: 8px;
}

.document-a4 .info-icon {
    width: 14px;
    height: 18px;
    margin-right: 8px;
}
.document-a4 .info-icon svg{
    width: 14px;
    height: 15px;
    fill: #757575;
}
.document-a4 .logo-side {
    margin-left: 7px;
    margin-right: 12px;
}
.document-a4 .doc-logo {
    padding: 10px;
}

.document-a4 .doc-logo img {
    height: 33px;
}

/* Оптимизация таблицы */
.document-a4 .table-cell {
    padding: 12px 15px;
}

.document-a4 .cell-header {
    font-weight: 400;
    font-size: 14px;
    line-height: 16px;
    color: #757575;
    margin-bottom: 6px;
}

.document-a4 .cell-content {
    font-weight: 600;
    font-size: 14px;
    line-height: 16px;
    color: #333333;
}

.document-a4 .cell-content .options label {
    font-weight: 600;
    font-size: 12px;
    line-height: 16px;
    letter-spacing: -0.01em;
    color: #333333;
}

.document-a4 .custom-radio {
    width: 20px;
    height: 20px;
}
.document-a4 .custom-radio::after{
    width: 16px;
    height: 16px;
    margin-top: -1px;
    margin-left: -2px;
}
.document-a4 .signature-cell {
    padding: 10px 20px;
}

.document-a4 .signature-cell .cell-header {
    font-weight: 600;
    font-size: 14px;
    line-height: 16px;
    margin-bottom: 12px;
}

.document-a4 .signature-fields {
    gap: 30px;
}

.document-a4 .signature-field {
    margin-top: 15px;
}

.document-a4 .signature-label {
    font-weight: 400;
    font-size: 11px;
    line-height: 14px;
}

.document-a4 .description-block {
    margin: 25px auto 15px;
}

.document-a4 .data-table {
    margin: 25px 0;
}

.document-a4 .signatures-block {
    margin: 25px 0;
}

.document-a4 .parts-block {
    margin: 25px 0;
}

/* Уменьшаем высоту строк в таблице */
.document-a4 .table-cell {
    min-height: 50px; /* Ограничиваем минимальную высоту */
}

/* Оптимизация для очень длинного текста */
.document-a4 .cell-content {
    max-height: 80px; /* Ограничиваем высоту контента */
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Специфичные настройки для печати */
@media print {
    .document-a4 {
        width: 100% !important;
        height: auto !important;
        box-shadow: none !important;
        padding: 15mm 20mm !important; /* Стандартные отступы для печати */
        margin: 0 !important;
        page-break-after: always;
        font-size: 12pt !important;
    }
    
    .document-a4 .info-block {
        page-break-inside: avoid;
    }
    
    .document-a4 .table-row {
        page-break-inside: avoid;
        page-break-after: auto;
    }
    
    .document-a4 .signatures-block {
        page-break-inside: avoid;
    }
}

/* Дополнительные компактные стили если нужно еще уменьшить */
.document-a4.compact {
    padding: 20px 30px;
}

.document-a4.compact .table-cell {
    padding: 8px 10px;
}

.document-a4.compact .info-block {
    padding: 11px;
    margin: 15px 0;
}

.document-a4.compact .info-item {
    margin-bottom: 6px;
}

.document-a4.compact .cell-header {
    font-size: 12px;
}

.document-a4.compact .cell-content {
    font-size: 12px;
}

.document-a4.compact .doc-title {
    font-size: 18px;
    margin-bottom: 3px;
}

.document-a4.compact .doc-description,
.document-a4.compact .doc-note {
    font-size: 12px;
    line-height: 16px;
}
/* Стили для новой структуры таблицы */
.table-row.single-cell {
    width: 100%;
}

.table-row.single-cell .table-cell {
    display: flex;
    align-items: flex-start;
    padding: 8px 10px;
    border: 1px solid rgba(217, 217, 217, 1);
    border-bottom: none;
}
.document-a4.compact .table-row.single-cell .table-cell,.document-a4.compact .table-row.parts-data .table-cell{
    min-height: 35px
}
.cell-header-left {
    width: 250px;
    min-width: 250px;
    font-weight: 600;
    font-size: 12px;
    line-height: 16px;
    color: #757575;
    margin-right: 20px;
    flex-shrink: 0;
}

.cell-content-right {
    flex: 1;
    font-weight: 600;
    font-size: 12px;
    line-height: 16px;
    color: #333333;
    word-break: break-word;
}

/* Стили для уникальной строки с двумя заголовками */
.table-row.double-header .table-cell {
    padding: 10px;
    border: 1px solid rgba(217, 217, 217, 1);
    border-bottom: none;
}

.cell-content-inline {
    display: flex;
    align-items: flex-start;
    margin-top: 15px;
}

/* Стили для таблицы запчастей */
.table-row.parts-table-header .table-cell {
    padding: 10px 10px 0;
    border: 1px solid rgba(217, 217, 217, 1);
    border-bottom: none;
}

.parts-columns-header {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid rgba(217, 217, 217, 1);
}

.parts-columns-data {
    display: flex;
    padding: 10px 0;
}

.parts-col {
    flex: 1;
    font-weight: 600;
    font-size: 12px;
    line-height: 16px;
    color: #333333;
}

.parts-columns-header .parts-col {
    font-weight: 400;
    color: #757575;
}

.table-row.parts-data .table-cell {
    padding: 0 10px;
    border: 1px solid rgba(217, 217, 217, 1);
    border-bottom: none;
    border-top: none;
}

/* Стили для блока подтверждения заказчика */
.customer-confirmation {
    width: 100%;
    display: flex;
    align-items: end;
    gap: 10px;
}

.confirmation-text {
    font-weight: 400;
    font-size: 12px;
    line-height: 16px;
    color: #333333;
    flex:1;
}
.customer-confirmation .signature-fields{
    flex:1;
}
/* Адаптивность */
@media (max-width: 768px) {
    .table-row.single-cell .table-cell {
        flex-direction: column;
        padding: 12px 15px;
    }
    
    .cell-header-left {
        width: 100%;
        min-width: auto;
        margin-right: 0;
        margin-bottom: 8px;
    }
    
    .cell-content-inline {
        flex-direction: column;
    }
    
    .parts-columns-header,
    .parts-columns-data {
        flex-direction: column;
        gap: 8px;
    }
    
    .parts-col {
        padding: 5px 0;
    }
}
.products-page {
    padding: 20px 0;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.search-section {
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.search-form {
    max-width: 600px;
}

.search-field {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-icon {
    position: absolute;
    left: 12px;
    z-index: 1;
}

.search-input {
    padding: 12px 12px 12px 45px;
    border: 2px solid rgba(236, 236, 236, 1);
    border-radius: 2px;
    flex: 1;
    font-size: 14px;
}

.search-btn {
    font-weight: 400;
	font-size: 15px;
	line-height: 25px;
	background: linear-gradient(180deg, #F2F2F2 0%, #E2E0E0 100%);
	border: 1px solid #EBEBEB;
	border-radius: 2px;
	color: #050505;
	outline: none;
	padding: 12px 20px;
	cursor: pointer;
}

.clear-search {
    padding: 12px 16px;
    background: #6c757d;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    white-space: nowrap;
}

.search-results-info {
    margin-top: 10px;
    color: #666;
    font-size: 14px;
}

.products-table-container {
    background: white;
    border-radius: 8px;
    overflow-x: auto;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.products-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1200px;
}

.products-table th {
    background: #f8f9fa;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    border-bottom: 1px solid #dee2e6;
    white-space: nowrap;
}

.products-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #dee2e6;
    vertical-align: middle; 
    position: relative;
    height: 60px;
}
table td:last-child .input-container{
	justify-content: center;
}
.product-row:hover {
    background: #f8f9fa;
}

.form-input {
    width: 100%;
    padding: 8px 10px;
    border: 2px solid rgba(236, 236, 236, 1);
    border-radius: 2.83px;
    font-size: 14px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    background: white;
    position: relative;
    z-index: 1;
    margin: 0;
}

.form-input:focus {
    border-color: #DD4E1B;
    outline: none;
    box-shadow: 0 0 0 2px rgba(221, 78, 27, 0.1);
}
.expandable-input {
    min-width: 120px;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: text;
    resize: none;
    height: 36px;
    display: flex;
    align-items: center;
    position: relative;
}

.expandable-input:focus {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    white-space: normal;
    overflow: auto;
    text-overflow: unset;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    background: white;
    cursor: text;
    resize: vertical;
    border-color: #DD4E1B;
    outline: none;
    height: auto;
    min-height: 40px;
    max-height: 200px;
}
.input-container {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
}
.input-name.expandable-input:focus {
    min-width: 400px;
    max-width: 600px;
}

.input-articul.expandable-input:focus {
    min-width: 150px;
    max-width: 250px;
}

.input-code.expandable-input:focus {
    min-width: 150px;
    max-width: 250px;
}

.input-url.expandable-input:focus {
    min-width: 250px;
    max-width: 400px;
}

.input-price.expandable-input:focus {
    min-width: 100px;
    max-width: 150px;
}
.table-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}
.input-price::-webkit-outer-spin-button,
.input-price::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.input-price {
    -moz-appearance: textfield;
}
.products-table td {
    position: relative;
    overflow: visible;
}

.product-row {
    position: relative;
}
.file-upload-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.file-preview-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.btn-save, .btn-cancel {
    padding: 6px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.btn-save {
    background: #28a745;
    color: white;
}

.btn-cancel {
    background: #dc3545;
    color: white;
}

.products-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.pagination {
    display: flex;
    gap: 5px;
    align-items: center;
    flex-wrap: wrap;
}

.pagination-link {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    min-width: 40px;
    text-align: center;
    display: inline-block;
}

.pagination-link.active {
    background: #DD4E1B;
    color: white;
    border-color: #DD4E1B;
}

.pagination-dots {
    padding: 8px 6px;
    color: #6c757d;
}

.btn-save-all {
    padding: 12px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
}
.btn-save-all img{
	width: 20px;
}
.add-product-btn{
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: 2px;
    font-weight: 400;
    font-size: 15px;
    line-height: 25px;
}
.add-product-btn img{
	width: 20px;
}
.new-product-row {
    background: #f0f8ff;
}
.file-actions {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.btn-upload-small, .btn-delete-file-small {
    width: 22px;
    height: 22px;
    border:2px solid rgba(236, 236, 236, 1);
    border-radius: 2.83px;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.btn-upload-small:hover {
    background: #DD4E1B;
    border-color: #DD4E1B;
    color: white;
}
.btn-upload-small svg{
	fill: #888888;
}
.btn-upload-small:hover svg{
	fill: white;
}
.btn-delete-file-small:hover {
    background: #dc3545;
    border-color: #dc3545;
    color: white;
}
.btn-upload-small svg{
    width: 11px;
    height: 11px;
}
.btn-delete-file-small svg {
    width: 10px;
    height: 10px;
}
.btn-upload {
    padding: 6px 10px;
    background: #DD4E1B;
    color: white;
    border: none;
    border-radius: 2.83px;
    cursor: pointer;
    font-size: 12px;
    white-space: nowrap;
    flex: 1;
}

.btn-delete-file {
    padding: 6px 8px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 2.83px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-delete-file:hover {
    background: #c82333;
}

.file-preview {
    position: relative;
    width: 81px;
    height: 81px;
    border: 2px solid rgba(236, 236, 236, 1);
    border-radius: 2.83px;
    cursor: pointer;
    overflow: hidden;
    background: #f8f9fa;
}
.file-preview:hover {
    border-color: #DD4E1B;
}
.file-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.file-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    font-size: 12px;
    font-weight: 600;
    color: #6c757d;
}

.file-placeholder.empty {
    background: #fff;
    border: 2px dashed #dee2e6;
    cursor: pointer;
}
.file-placeholder.empty svg{
	fill:#888888;
}
.file-placeholder.empty:hover {
    border-color: #DD4E1B;
    background: #f8f9fa;
}
.plus-icon {
    font-size: 24px;
    color: #6c757d;
    font-weight: 300;
}

.file-placeholder.empty:hover .plus-icon {
    color: #DD4E1B;
}

.file-extension {
    font-size: 11px;
    font-weight: 600;
    color: #495057;
}

.file-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    text-decoration: none;
    z-index: 1;
}
@media (max-width: 768px) {
    .products-footer {
        flex-direction: column;
        align-items: stretch;
    }
    
    .pagination {
        justify-content: center;
    }
    
    .btn-save-all {
        width: 100%;
    }
}
.product-row.changed {
    background-color: #fff3cd !important;
    border-left: 3px solid #ffc107;
}

.product-row.changed td {
    border-color: #ffeaa7;
}

.alert-message.success {
    background: #28a745;
}

.alert-message.error {
    background: #dc3545;
}
.btn-save-all {
    transition: all 0.3s ease;
}

.btn-save-all.fixed {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    transform: translateY(0);
}

.btn-save-all.hidden {
    transform: translateY(100px);
    opacity: 0;
    pointer-events: none;
}

/* Индикатор изменений в строке */
.product-row.changed {
    position: relative;
}

/* Плавная анимация появления/исчезновения */
.products-footer {
    transition: opacity 0.3s ease;
}

.products-footer.hidden {
    opacity: 0;
    pointer-events: none;
}
/* Стили для таблицы запчастей */
.parts-table-container {
    overflow-x: auto;
    margin: 20px 0;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: white;
}

.parts-table,.centers-table{
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.parts-table th,.centers-table th{
    background: #f8f9fa;
    padding: 12px 8px;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    color: #495057;
    text-align: left;
    font-size: 14px;
}

.parts-table td, .centers-table td{
    padding: 12px 8px;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
}

.parts-table tr:hover {
    background: #f8f9fa;
}

.part-row.changed {
    background: #fff3cd !important;
}

/* Стили для множественного выбора */
.products-select-wrapper {
    position: relative;
    min-width: 250px;
}

.multiple-select {
    width: 100%;
    min-height: 100px;
    padding: 8px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 13px;
    background: white;
}

.multiple-select:focus {
    border-color: #007bff;
    outline: none;
}

.selected-count {
    font-size: 11px;
    color: #6c757d;
    margin-top: 4px;
    text-align: right;
}

.selected-count span {
    font-weight: 600;
    color: #495057;
}

/* Стили для превью связанных товаров */
.linked-products-preview {
    margin-top: 8px;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #e9ecef;
}

.preview-title {
    font-size: 11px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 4px;
}

.products-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.product-tag {
    display: inline-block;
    background: #007bff;
    color: white;
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 500;
    white-space: nowrap;
}

/* Адаптивность */
@media (max-width: 1200px) {
    .parts-table-container {
        margin: 10px -10px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    
    .products-select-wrapper {
        min-width: 200px;
    }
}
/* Мобильная адаптация */
@media (max-width: 768px) {
    .btn-save-all.fixed.mobile-fixed {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        border-radius: 0;
        padding: 16px;
        font-size: 16px;
        z-index: 1000;
        box-shadow: 0 -2px 20px rgba(0,0,0,0.15);
        justify-content: center;
    }
    .product-card.changed {
        background-color: #f8f9fa !important;
        border-left: 4px solid #DD4E1B;
        box-shadow: 0 2px 8px rgba(221, 78, 27, 0.1);
    }
    
    .new-product-card {
        background: #f0f8ff;
        border: 2px dashed #DD4E1B;
    }
    .mobile-add-btn {
        width: 100%;
        padding: 12px;
        background: #28a745;
        color: white;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        font-size: 16px;
        font-weight: 600;
    }
    .desktop-table {
        display: none;
    }
    
    .mobile-cards {
        display: block;
    }
    .products-page {
        padding-bottom: 80px;
    }
    .search-section {
        flex-direction: column;
        gap: 15px;
    }
    
    .search-form {
        width: 100%;
    }
    
    .search-field {
        width: 100%;
    }
    
    .search-input {
        width: 100%;
        padding-right: 45px;
        padding-left: 15px;
    }
    
    .search-icon {
        left: auto;
        right: 12px;
    }
    
    .search-btn {
        display: none;
    }
    
    /* Кнопка добавить товар на всю ширину */
    .mobile-full-width {
        width: 100%;
        justify-content: center;
    }
    
    /* Стили для мобильных карточек */
    .products-cards {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    
    .product-card {
        background: white;
        padding: 20px;
        border: 2px solid rgba(231, 231, 231, 1);
        position: relative;
    }
    .products-table-container {
    	box-shadow: none;
    }
    .add-product-btn {
    	justify-content: center;
    }
    /* Кнопка удаления вверху справа */
    .mobile-delete-btn {
        position: absolute;
        top: 10px;
        right: 10px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 5px;
        z-index: 10;
    }
    
    /* Строки карточки */
    .card-row {
        display: flex;
        gap: 15px;
        margin-bottom: 15px;
    }
    
    .card-row.two-columns {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    
    .field-group {
        flex: 1;
    }
    
    .field-group.full-width {
        grid-column: 1 / -1;
    }
    
    .field-label {
        display: block;
        font-size: 12px;
        font-weight: 600;
        color: #495057;
        margin-bottom: 5px;
    }
    
    /* Стили для мобильного блока файлов */
    .mobile-files-container {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    
    .mobile-file-item {
        display: flex;
        align-items: center;
        gap: 10px;
    }
    .btn-instruction.active:before,.btn-details.active:before{
    	filter: brightness(0) saturate(100%) invert(36%) sepia(90%) saturate(2000%) hue-rotate(360deg) brightness(95%) contrast(105%);
    }
    .mobile-file-preview {
        flex: 1;
    }
    
    .mobile-file-link {
        display: flex;
        align-items: center;
        gap: 8px;
        text-decoration: none;
        color: inherit;
    }
    
    .mobile-file-icon {
        width: 32px;
        height: 32px;
        background: #007bff;
        border-radius: 4px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 10px;
        font-weight: 600;
    }
    
    .mobile-file-name {
        font-size: 12px;
        font-weight: 500;
    }
    
    .mobile-file-placeholder {
        display: flex;
        align-items: center;
        gap: 8px;
        cursor: pointer;
        font-size: 12px;
        color: #6c757d;
    }
    
    .mobile-file-placeholder svg {
        width: 16px;
        height: 16px;
        fill: #6c757d;
    }
    
    .mobile-file-placeholder:hover {
        color: #DD4E1B;
    }
    
    .mobile-file-placeholder:hover svg {
        fill: #DD4E1B;
    }
    
    .mobile-delete-file {
        background: #dc3545;
        color: white;
        border: none;
        border-radius: 50%;
        width: 20px;
        height: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        font-size: 14px;
        line-height: 1;
    }
    
    /* Кнопка сохранить в карточке */
    .mobile-save-btn {
        width: 100%;
        padding: 10px;
        background: #28a745;
        color: white;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        font-size: 14px;
        margin-top: 8px;
    }
    
    /* Адаптация превью файлов для мобильных */
    .file-preview {
        width: 81px;
        height: 81px;
    }
    
    /* Скрываем оригинальную кнопку удаления в таблице */
    .products-table .btn-delete {
        display: none;
    }
}

/* Десктопные стили */
@media (min-width: 769px) {
    .desktop-table {
        display: table;
    }
    
    .mobile-cards {
        display: none;
    }
    
    .search-btn {
        display: block;
    }
    
    .mobile-full-width {
        width: auto;
    }
}

.users-table-container {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.users-table {
    width: 100%;
    border-collapse: collapse;
}

.users-table th {
    background: #f8f9fa;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #dee2e6;
}

.users-table td {
    padding: 12px;
    border-bottom: 1px solid #dee2e6;
}

.user-row:hover {
    background: #f8f9fa;
}

.user-row.changed {
    background: #fff3cd;
}

.asc-select-wrapper {
    position: relative;
}

.asc-preview {
    margin-top: 5px;
}

.preview-title {
    font-size: 11px;
    color: #666;
    margin-bottom: 2px;
}

.asc-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.asc-tag {
    background: #e9ecef;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    color: #495057;
}
/* Стили для формы редактирования */
.asc-edit-form .form-input {
    border: 1px solid #ddd;
    padding: 8px 12px;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
}

.asc-edit-form .asc-info-item {
    align-items: flex-start;
}

.asc-edit-form textarea.form-input {
    min-height: 60px;
    resize: vertical;
}

.phones-container {
    width: 100%;
}

.phone-input-wrapper {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.phone-input-wrapper:last-child {
    margin-bottom: 0;
}

.phone-input {
    flex: 1;
    margin-right: 8px;
}

.remove-phone-btn {
    background: #ff4444;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-phone-btn {
    margin-top: 8px;
}

.edit-mode .asc-info-item {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.edit-mode .asc-info-item:last-child {
    border-bottom: none;
}

.alert {
    padding: 12px 16px;
    margin: 16px;
    border-radius: 4px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
.phones-container {
    width: 100%;
}

.phone-input-wrapper {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    gap: 5px;
}

.phone-input-wrapper:last-child {
    margin-bottom: 0;
}

.phone-input-wrapper .form-input {
    flex: 1;
    min-width: 0;
}

.remove-phone-btn {
    background: #ff4444;
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    line-height: 1;
    flex-shrink: 0;
}

.remove-phone-btn:hover {
    background: #cc0000;
}

.add-phone-btn {
    margin-top: 5px;
    font-size: 12px;
    padding: 4px 8px;
}

.centers-table td {
    vertical-align: top;
    padding-top: 10px;
    padding-bottom: 10px;
}
/* Стили для модального окна */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    animation: slideIn 0.3s;
    overflow: hidden;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(-50px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e9ecef;
    background: #f8f9fa;
}

.modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6c757d;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.modal-close:hover {
    background: #e9ecef;
    color: #333;
}

.modal-body {
    padding: 24px;
    max-height: 60vh;
    overflow-y: auto;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
}

/* Стили для нового интерфейса выбора товаров */
.products-selector-wrapper {
    position: relative;
}

.btn-select-products {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    color: #333;
}

.btn-select-products:hover {
    border-color: #007bff;
    background: #f8f9fa;
}

.btn-select-products:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.selected-count {
    background: #007bff;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    min-width: 20px;
    text-align: center;
}

.selected-products-list {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.selected-product-tag {
    display: flex;
    align-items: center;
    background: #e3f2fd;
    padding: 4px 8px;
    border-radius: 16px;
    font-size: 12px;
    gap: 6px;
    border: 1px solid #bbdefb;
    animation: tagAppear 0.2s;
}

@keyframes tagAppear {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.remove-product {
    background: #f44336;
    color: white;
    border: none;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    line-height: 1;
    transition: all 0.2s;
    padding: 0;
}

.remove-product:hover {
    background: #d32f2f;
    transform: scale(1.1);
}

/* Стили модального окна выбора товаров */
.products-modal .modal-content {
    max-width: 800px;
    width: 90%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

.modal-body {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 0;
}

.products-search {
    display: flex;
    gap: 12px;
    padding: 20px 24px;
    border-bottom: 1px solid #e9ecef;
    background: white;
}

.products-search .search-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.products-search .search-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.products-search .search-btn {
    padding: 10px 20px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.products-search .search-btn:hover {
    background: #0056b3;
}

.products-list-container {
    flex: 1;
    overflow: auto;
    background: white;
}

.products-list {
    max-height: 300px;
    overflow-y: auto;
}

.product-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s;
}

.product-item:hover {
    background: #f8f9fa;
}

.product-item:last-child {
    border-bottom: none;
}

.product-checkbox {
    margin-right: 16px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.product-info {
    flex: 1;
}

.product-name {
    font-weight: 500;
    display: block;
    color: #333;
    margin-bottom: 2px;
}

.product-articul {
    font-size: 12px;
    color: #666;
}

.selected-products-section {
    border-top: 1px solid #e9ecef;
    padding: 20px 24px;
    background: #f8f9fa;
}

.selected-products-section h4 {
    margin: 0 0 12px 0;
    color: #333;
    font-size: 14px;
    font-weight: 600;
}

.modal-selected-products {
    max-height: 120px;
    overflow-y: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 6px;
}

.products-loading {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 14px;
}

.products-loading:before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
    vertical-align: middle;
}

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

.error {
    text-align: center;
    padding: 20px;
    color: #dc3545;
    font-size: 14px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .modal-content {
        margin: 10% auto;
        width: 95%;
    }
    
    .products-modal .modal-content {
        width: 95%;
    }
    
    .products-search {
        flex-direction: column;
        gap: 8px;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .modal-footer button {
        width: 100%;
    }
}

/* Стили для скроллбара */
.products-list::-webkit-scrollbar,
.modal-selected-products::-webkit-scrollbar {
    width: 6px;
}

.products-list::-webkit-scrollbar-track,
.modal-selected-products::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.products-list::-webkit-scrollbar-thumb,
.modal-selected-products::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.products-list::-webkit-scrollbar-thumb:hover,
.modal-selected-products::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Дополнительные стили для улучшения UX */
.product-item.selected {
    background: #e3f2fd;
    border-left: 3px solid #007bff;
}

.product-checkbox:checked {
    accent-color: #007bff;
}

.btn-select-products.loading {
    opacity: 0.7;
    pointer-events: none;
}

.btn-select-products.loading:after {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid transparent;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 8px;
}

/* Анимация для появления/исчезновения модального окна */
.modal.closing {
    animation: fadeOut 0.3s;
}

.modal.closing .modal-content {
    animation: slideOut 0.3s;
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes slideOut {
    from { 
        opacity: 1;
        transform: translateY(0);
    }
    to { 
        opacity: 0;
        transform: translateY(-50px);
    }
}