
 /* ------------------------------ */  /* /assets/css/style.css */  /* ------------------------------ */ 
/* ------------------------------ */
/* /assets/css/style.css */
/* ------------------------------ */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background: #f5f7fa;
    display: flex;
    min-height: 100vh;
}

body.modal-open{
    overflow: hidden;
}

.hidden{
    display: none !important;
    visibility: hidden !important;
}

.width-100{
    width: 100%;
}

.text-center{
    text-align: center;
}

.text-left{
    text-align: left !important;
}

.text-right{
    text-align: right !important;
}

.fw-bold{
    font-weight: bold !important;
}

.fw-600{
    font-weight: 600;
}

.fw-normal{
    font-weight: normal;
}

.flex{
    display: flex;
}

.display-block{
    display: block;
}

.flex-shrink{
    flex-shrink: 0 !important;
}

.flex_center_align{
    align-items: center;
    justify-content: center;
}

.fd-column{
    display: flex;
    flex-direction: column;
}

.justify-content-start{
    justify-content: flex-start !important;
}

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

.justify-content-center{
    justify-content: center !important;
}

.justify-content-space-between{
    justify-content: space-between;
}

.align-items-c{
    align-items: center !important;
}

.align-items-s{
    align-items: flex-start !important;
}

.align-items-e{
    align-items: flex-end;
}

.align-items-stretch{
    align-items: stretch !important;
}

.flex-start{
    /* странный класс, но много где используется, лучше использовать .align-items-s и .width-100 */
    align-items: flex-start !important;
    width: 100%;
}

.flex-wrap-w{
    flex-wrap: wrap;
}

.flex-none{
    flex: none !important;
}

/* margin */
.m-0{
    margin: 0 !important;
}

.m-t-0{
    margin-top: 0 !important;
}

.m-b-0{
    margin-bottom: 0 !important;
}

.m-r-0{
    margin-right: 0px !important;
}

.m-l-0{
    margin-left: 0px !important;
}

.m-5{
    margin: 5px;
}

.m-l-5{
    margin-left: 5px;
}

.m-r-5{
    margin-right: 5px;
}

.m-t-5{
    margin-top: 5px !important;
}

.m-b-5{
    margin-bottom: 5px !important;
}

.m-10{
    margin: 10px;
}

.m-r-10{
    margin-right: 10px !important;
}

.m-l-10{
    margin-left: 10px !important;
}

.m-t-10{
    margin-top: 10px;
}

.m-b-10{
    margin-bottom: 10px !important;
}

.m-15{
    margin: 15px;
}

.m-r-15{
    margin-right: 15px !important;
}

.m-l-15{
    margin-left: 15px !important;
}

.m-t-15{
    margin-top: 15px;
}

.m-b-15{
    margin-bottom: 15px !important;
}

/* padding */
.p-0{
    padding: 0 !important;
}

.p-b-0{
    padding-bottom: 0px !important;
}

.p-t-0{
    padding-top: 0px !important;
}

.p-l-0{
    padding-left: 0px !important;
}

.p-r-0{
    padding-right: 0px !important;
}

.p-5{
    padding: 5px !important;
}

.p-l-5{
    padding-left: 5px !important;
}

.p-r-5{
    padding-right: 5px !important;
}

.p-t-5{
    padding-top: 5px;
}

.p-b-5{
    padding-bottom: 5px;
}

.p-10{
    padding: 10px;
}

.p-l-10{
    padding-left: 10px !important;
}

.p-r-10{
    padding-right: 10px;
}

.p-t-10{
    padding-top: 10px;
}

.p-b-10{
    padding-bottom: 10px;
}

.p-15{
    padding: 15px;
}

.p-l-15{
    padding-left: 15px !important;
}

.p-r-15{
    padding-right: 15px !important;
}

.p-t-15{
    padding-top: 15px;
}

.p-b-15{
    padding-bottom: 15px;
}

fieldset{
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    border: 1px solid #e2e8f0;
    position: relative;
    margin-top: 20px;
}

fieldset legend{
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    position: absolute;
    top: -13px;
    left: 10px;
}

/* Боковое меню */
.sidebar{
    width: 260px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.sidebar-header{
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.sidebar-header h2{
    font-size: 18px;
    margin-bottom: 5px;
}

.sidebar-header .user-info{
    font-size: 14px;
    opacity: 0.8;
}

.menu-item{
    display: block;
    padding: 15px 20px;
    color: white;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.menu-item:hover{
    background: rgba(255, 255, 255, 0.1);
    padding-left: 25px;
}

.menu-item.active{
    background: rgba(255, 255, 255, 0.2);
    border-left: 4px solid white;
}

.menu-icon{
    font-size: 18px;
    width: 20px;
    text-align: center;
}

/* Основной контент */
.main-content{
    /*!* width: 100%; *!*/
    margin-left: 260px;
    /*flex: 1;*/
    /*display: flex;*/
    /*flex-direction: column;*/
    display: flex;
    flex-direction: column;
    flex: 1;
    width: 1200px;
    padding-right: 15px;
    position: relative;
    overflow: auto;
}
.top-bar{
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid #e1e5e9;
}
.top-bar>div{
    background: white;
    padding: 15px 30px;

    display: flex;
    justify-content: space-between;
    align-items: center;

}

.page-title{
    font-size: 24px;
    color: #333;
    font-weight: 600;
}

.top-actions{
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn{
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

.btn:disabled{
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary{
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover:not(:disabled){
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-secondary{
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-secondary:hover{
    background: #667eea;
    color: white;
}

.btn-success{
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.btn-success:hover:not(:disabled){
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.btn-clear-order{}

.btn-search-client{
    width: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #667eea;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-search-client:hover{
    background: #566edc;
    color: white;
}

.content-area{
    padding: 30px 10px;
    flex: 1;
    overflow-y: auto;
}

/* Карточки статистики */
.stats-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card{
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #e1e5e9;
    position: relative;
    overflow: hidden;
}

.stat-card::before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stat-number{
    font-size: 32px;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 8px;
}

.stat-label{
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.stat-change{
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 12px;
    background: #e8f5e8;
    color: #4CAF50;
}

/* Информация о смене */
.shift-info{
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.shift-details h3{
    margin-bottom: 5px;
}

.shift-details p{
    opacity: 0.9;
    font-size: 14px;
}

.shift-status{
    font-size: 32px;
}

/* Quick Actions */
.quick-actions{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 30px;
}

.quick-action{
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #e1e5e9;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.quick-action:hover{
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.quick-action-icon{
    font-size: 32px;
    margin-bottom: 10px;
}

.quick-action-title{
    font-weight: 600;
    margin-bottom: 5px;
}

.quick-action-desc{
    font-size: 12px;
    color: #666;
}

/* Таблицы */
.card{
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #e1e5e9;
    overflow: hidden;
}

.card-header{
    padding: 20px;
    border-bottom: 1px solid #e1e5e9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.card-title{
    font-size: 18px;
    font-weight: 600;
    color: #333;
    padding-top: 3px;
}

.card-footer{
    padding: 20px;
    border-bottom: 1px solid #e1e5e9;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background: #f5f7fa;
}

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

.table th,
.table td{
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e1e5e9;
}

.table th{
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.table tbody tr:hover{
    background: #f8f9fa;
}

.badge{
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-received{
    background: linear-gradient(135deg, #d6d3f0 0%, #e4d5f5 100%);
    color: #5c3c94;
    /* тёмно-фиолетовый текст для контраста */
}

.badge-finished,
.badge-delivered{
    background: #e8f5e8;
    color: #4CAF50;
}
.badge-in_work{
    color: #02a7d4;
    background: #e8f4fc;
}

.badge-canceled{
    background-color: #f2f2f2;
    /* светло-серый фон */
    color: #777777;
    /* серая надпись */
}

.badge-error{
    background-color: #ffe5e5;
    /* светло-красный фон */
    color: #b30000;
    /* красный текст */
}

.badge-pending{
    background: #fff3e0;
    color: #FF9800;
}

/* Формы */
.form-grid{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.order-summary-form{
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.order-summary-form>div{
    width: 33%;
}
/*
.form-group{
    margin-bottom: 10px;
}
*/

.form-label{
    font-size: 12px;
    color: #6b7280;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.form-control,
.input-field{
    width: 100%;
    padding: 18px 15px;
    border: 1px solid #86868b;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-control:focus,
.input-field:focus{
    border-color: #667eea;
    outline: none;
}

.form-select{
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
}

/* Модальные окна */
.modal{
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
}

.modal.active{
    display: flex;
    animation: modalFadeIn 0.3s ease-out;
}

/*.default-table{*/
/*    table-layout: fixed;*/
/*    width: 100%;*/
/*}*/
.table__wrapper{
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
}

.table__wrapper .table{
    width: 100%;
    min-width: max-content;
    white-space: nowrap;
    border-collapse: collapse;
}

.table__wrapper th,
.table__wrapper td{}

.table .photos-preview{
    display: flex;
    gap: 6px;
    max-width: 40px;
    max-height: 40px;
    margin-top: 5px;
}

.table .photos-preview img{
    width: 100%;
    border-radius: 7px;
}

.table .photo-thumb{
    width: 32px;
    height: 32px;
    border-radius: 4px;
    object-fit: cover;
    cursor: pointer;
}

.table .actions-cell{}

.table .total-status-cell{
    width: 170px;
}

.table .comment-cell{
    width: 250px;
}

.table .total-status-wrapper{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.table .actions-cell .actions-wrapper{
    display: flex;
    gap: 6px;
    align-items: center;
}

.table .btn-icon{
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

.table .attributes_ids{
    word-break: break-all;
    white-space: normal;
    max-width: 250px;
    /* опционально — ограничивает ширину ячейки */
}

.table .id{
    width: 50px !important;
}

@keyframes modalFadeIn{
    from{
        opacity: 0;
   }

    to{
        opacity: 1;
   }
}

.modal-content{
    background: white;
    border-radius: 12px;
    width: 100%;
    max-width: 990px;
    height: 98%;
    max-height: 98%;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease-out;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    margin: auto;
}

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

    to{
        transform: translateY(0);
        opacity: 1;
   }
}

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

.modal-title{
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.modal-title-and-icon{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.modal-close{
    width: 35px;
    height: 35px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    border-radius: 50%;
    transition: all 0.2s ease;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.modal-body{
    padding: 10px 20px;
    max-height: 90%;
    overflow-y: auto;
    flex-grow: 1;
}

.modal-footer{
    /*height: 62px;*/
    padding: 12px 20px;
    border-top: 1px solid #e1e5e9;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    background: #f8f9fa;
    flex-shrink: 0;

    @media (max-width: 600px){
        padding: 20px
   }
}

.modal-footer-buttons{
    margin-left: auto;
    display: flex;
    gap: 6px;
}

/* Прогресс-индикатор шагов */
.step-progress{
    padding: 20px 10px 20px 10px;
    display: flex;
    justify-content: center;
    border-bottom: 1px solid #e1e5e9;
    box-shadow: 0px 2px 2px 0px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1000;
}

.step-subtitle{
    margin: 0;
    padding: 10px 0px;
    box-sizing: border-box;
}

.step-counter{
    margin: 0;
    padding-bottom: 10px;
    box-sizing: border-box;
}

.step-item{
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
}

.step-item:not(:last-child)::after{
    content: '';
    position: absolute;
    top: 15px;
    left: 60%;
    right: -40%;
    height: 2px;
    background: #e1e5e9;
    z-index: 1;
}

.step-item.completed:not(:last-child)::after{
    background: #4CAF50;
}

.step-number{
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e1e5e9;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 8px;
    z-index: 2;
    position: relative;
    transition: all 0.3s ease;
}

.step-item.active .step-number{
    background: #667eea;
    color: white;
}

.step-item.completed .step-number{
    background: #4CAF50;
    color: white;
}

.step-label{
    font-size: 12px;
    color: #666;
    text-align: center;
    font-weight: 500;
}

.step-item.active .step-label{
    color: #667eea;
    font-weight: 600;
}

.step-item.completed .step-label{
    color: #4CAF50;
}

/* Стили для шагов заказа */
.order-step-content{
    animation: stepSlideIn 0.4s ease-out;
}

@keyframes stepSlideIn{
    from{
        opacity: 0;
        transform: translateX(20px);
   }

    to{
        opacity: 1;
        transform: translateX(0);
   }
}

/* Поиск по товарам */
.category-bar{
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-direction: column;
    margin-bottom: 10px;
}

.search-container{
    width: 100%;
    flex-shrink: 0;
}

.product-search-bar{
    position: relative;
}

.search-bar{
    position: relative;
}

.search-input-with-clear{
    width: 100%;
    padding: 8px 35px 8px 10px;
    /* место под "×" и иконку */
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

.clear-btn{
    top: 8px;
    position: absolute;
    right: 35px;
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: #888;
    display: none;
    /* по умолчанию скрыта */
}

.search-btn{
    top: 6px;
    position: absolute;
    right: 8px;
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: #555;
}

.input-modal{
    width: 100%;
    padding: 8px 35px 8px 10px;
    /* место под "×" и иконку */
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

/* Категории товаров */
.category-tabs{
    display: flex;
    gap: 6px;
    flex-shrink: 0;
    overflow-x: auto;
    padding-bottom: 10px;
    max-width: 100%;
    width: 100%;
}

.category-tab{
    padding: 8px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 20px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    white-space: nowrap;
}

.category-tab:hover{
    border-color: #667eea;
}

.category-tab.active{
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* Карточки товаров */
.product-grid{
    display: grid;
    grid-template-columns:1fr;
    gap: 12px;
    max-height: 90%;
    padding-right: 5px;
}

.product-card{
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-card:hover{
    border-color: #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.1);
}

.product-card.selected{
    border-color: #4CAF50;
    background: #f8fff8;
}

.product-card-right-container{
    display: table-column;
    align-items: flex-start;
}

.product-card-right-container-block{
    display: flex;
    align-items: center;
}

.product-image{
    font-size: 32px;
    width: 50px;
    text-align: center;
    flex-shrink: 0;
}

.product-info{
    flex: 1;
}

.product-name{
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.product-details{
    font-size: 12px;
    color: #666;
    margin-top: 4px;
    display: flex;
    justify-content: flex-end;
}

.product-price{
    font-weight: bold;
    color: #4CAF50;
    font-size: 16px;
    padding-right: 10px;
}

.product-actions{
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-end;
}

.product-badge{
    padding-bottom: 4px;
}

.quantity-control{
    display: flex;
    align-items: center;
    gap: 6px;
}

.quantity-btn{
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    background: #667eea;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.quantity-input{
    width: 75px !important;
    text-align: center;
    border: 1px solid #e1e5e9;
    border-radius: 4px;
    padding: 5px;
}

.notification-card-error{
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 2px solid #ff0b0b;
    border-radius: 10px;
    background: #ffefef;
    cursor: pointer;
    transition: all 0.3s ease;
}

.notification-card-success{
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 2px solid #4CAF50;
    border-radius: 10px;
    background: #f8fff8;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Выбор клиента */
.customer-type{
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.type-btn{
    flex: 0 0 auto;
    border-radius: 30px;
    padding: 8px 16px;
    border: 2px solid #e1e5e9;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-weight: 500;
    font-size: 14px;
}

.type-btn:hover{
    border-color: #667eea;
}

.type-btn.active{
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.customer-type-tabs{
    padding-bottom: 10px;
    display: flex;
    gap: 6px;
    flex-shrink: 0;
    overflow-x: auto;
}

.client-search-bar{
    /*display: flex;*/
    /*gap: 10px;*/
    /*margin-bottom: 20px;*/
    position: relative;
}

.client-not-found{
    display: flex;
    justify-content: center;
}

.product-not-found{
    display: flex;
    justify-content: center;
}

.search-input{
    flex: 1;
    padding: 8px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 30px;
    font-size: 16px;
}

.search-input-circle{
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 30px;
}

.search-input:focus{
    border-color: #667eea;
    outline: none;
}

.filter-btn{
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover{
    background: #667eea;
    /*color: white;*/
}

.customer-list{
    max-height: 90%;
    overflow-y: auto;
}

.customer-info{
    display: flex;
    gap: 25px;
    align-items: center;
}

.customer-item{
    padding: 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.customer-item:hover{
    border-color: #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.1);
}

.customer-item.selected{
    border-color: #4CAF50;
    background: #f8fff8;
}

.customer-name{
    font-weight: 600;
    color: #333;
    width: 75px;
}

.customer-contacts{
    font-size: 14px;
    color: #666;
    width: 100px;
}

.customer-last-order{
    font-size: 12px;
    color: #999;
    margin-left: auto;
}

.secondary-button{
    width: 100%;
    padding: 12px;
    border: 2px dashed #667eea;
    border-radius: 8px;
    background: white;
    color: #667eea;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.secondary-button:hover{
    background: #f0f4ff;
}

/* Итоговая информация */
.order-summary{
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    margin-top: 20px;
}

.order-total-info{
    display: flex;
    margin: 0;
    padding: 5px 0px;

    @media (max-width: 600px){
        padding: 0px;
   }
}

.summary-row{
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

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

.summary-item{
    margin-bottom: 15px;
}

.summary-total{
    font-weight: bold;
    font-size: 18px;
    color: #333;
    border-top: 1px solid #e1e5e9;
    padding-top: 10px;
    margin-top: 10px;
}

#modalContainer{
    z-index: 1000;
}

#modalProductSelect{
    z-index: 1200;
}

#modalContainer .modal{
    display: flex;
}
.modal-content:not(.shift-modal) input:not([type="checkbox"]){
    height: 40px;
    /*margin-bottom: 10px;*/
}

.shift-modal textarea,
.shift-modal input:not([type="checkbox"]){
    width: 100%;
    font-size: 14px;
}

.shift-modal .checkbox-input{
    width: 4%;
}

.modal-dialog{
    max-height: 90%;
    display: flex;
    flex-direction: column;
}

/* Уведомления */
.notification{
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 2000;
    animation: slideInRight 0.3s ease-out;

    @media (max-width: 600px){
        top: 0px;
   }
}

.notification-message{
    color: #333;
}

.notification-icon{
    color: #333;
}

.notification-error{
    color: #f44336;
}

.notification.success{
    background: #4CAF50;
}

.notification.error{
    background: #f44336;
}

@keyframes slideInRight{
    from{
        transform: translateX(100%);
        opacity: 0;
   }

    to{
        transform: translateX(0);
        opacity: 1;
   }
}

/* Авторизация */
.request_entity-login .main-content{
    margin-left: 0 !important;
    padding: 0 !important;
    display: block !important;
}

.request_entity-login .content-area{
    padding: 0 !important;
}

.request_entity-login .input-field{
    width: 100%;
    padding: 14px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 16px;
}

.request_entity-login .input-field:focus{
    border-color: #667eea;
    outline: none;
}

.request_entity-login .big-button{
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* Responsive */
@media (max-width: 1024px){
    .sidebar{
        transform: translateX(-100%);
        transition: transform 0.3s ease;
   }

    .sidebar.mobile-open{
        transform: translateX(0);
   }

    .main-content{
        margin-left: 0;
   }

    .form-grid{
        grid-template-columns: 1fr;
   }

    .stats-grid{
        grid-template-columns: 1fr 1fr;
   }

    .modal-content{
        width: 98%;
        max-width: none;
        margin: 10px;
        height: 100%;
        max-height: 800px;
   }
}

@media (max-width: 768px){
    .content-area{
        padding: 15px;
   }

    .top-bar{
        padding: 15px;
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
   }

    .stats-grid{
        grid-template-columns: 1fr;
   }

    .quick-actions{
        grid-template-columns: 1fr 1fr;
   }

    .category-tabs{
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 5px;
   }

    .step-progress{
        padding: 20px 10px 20px 10px;
        border-bottom: 1px solid #e1e5e9;
   }

    .step-subtitle{
        margin: 0;
        padding: 10px 0px;
        box-sizing: border-box;
   }

    .customer-type{
        flex-direction: column;
   }

    .modal-footer{
        flex-direction: column;
        gap: 12px;
   }

    .modal-footer .btn{
        /*width: 100%;*/
        justify-content: center;
   }
}

/* Catalog */
.filter-tabs-group-wrapper{
    display: inline-block;
    background-color: #e3e3e3;
    border-radius: 999px;
    border: 1px solid #4f46e5;
    overflow: visible;
}

.filter-tabs-group{
    display: inline-flex;
    border-radius: 999px;
    overflow: visible;
    white-space: normal;
    scrollbar-width: none;
    -ms-overflow-style: auto;
}

.filter-tabs-group::-webkit-scrollbar{
    display: none;
    /* Chrome, Safari */
}

.filter-tab{
    flex-shrink: 0;
    /* ← это ключевой момент для скролла */
    padding: 9px 10px;
    border: none;
    border-right: 1px solid #4f46e5;
    font-size: 14px;
    font-weight: 500;
    color: #4f46e5;
    text-align: center;
    cursor: pointer;
    outline: none;
    background-color: white;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.filter-tab:first-child{
    border-top-left-radius: 999px;
    border-bottom-left-radius: 999px;
}

.filter-tab:last-child{
    border-top-right-radius: 999px;
    border-bottom-right-radius: 999px;
    border-right: none;
}

/* При наведении */
.filter-tab:hover{
    background-color: #f3f4f6;
}

/* Активная кнопка */
.filter-tab.active{
    background-color: #eef0ff;
    color: #4f46e5;
}

/* При клике */
.filter-tab:active{
    transform: none;
}

.dropdown-filter-wrapper{
    position: relative;
}

.dropdown-filter{
    width: 160px;
    height: 37px;
    max-height: 37px;
    padding: 6px 12px;
    border: 1px solid #4f46e5;
    border-radius: 8px;
    font-size: 14px;
    background-color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    color: black;
}

.dropdown-filter:hover{
    background-color: #f3f4f6;
    border-color: #9ca3af;
}

.dropdown-filter:focus{
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.date-input-wrapper{
    position: relative;
}

.date-input{
    height: 37px;
    max-height: 37px;
    padding: 6px 12px;
    border: 1px solid #4f46e5;
    border-radius: 8px;
    font-size: 14px;
    background-color: white;
    color: black;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* При наведении */
.date-input:hover{
    background-color: #f3f4f6;
    border-color: #9ca3af;
}

/* При фокусе (клик или Tab) */
.date-input:focus{
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.reset-style-btn{
    display: inline-block;
    vertical-align: top;
    margin: 0;
    padding: 0;
    text-align: left;
    background: none;
    height: 50px;
    border: 0px solid #000;
}

.table-pagination{
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 2px;
    margin-bottom: 10px;
}

.img-catalog{
    max-width: 40px;
    max-height: 40px;
    margin-top: 5px;
}

.img-product-order{
    width: 50px;
    max-width: 50px;
}

/* Loader */
.loading-spinner{
    position: absolute;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    overflow: hidden;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.3);
}

.spinner{
    width: 40px;
    height: 40px;
    border: 4px #ddd solid;
    border-top: 4px #2e93e6 solid;
    border-radius: 50%;
    animation: sp-anime 0.8s infinite linear;
}

@keyframes sp-anime{
    100%{
        transform: rotate(360deg);
   }
}

/* Admin Menu */
.admin-block-title{
    color: white;
    padding: 10px 20px;
    border: none;
    display: flex;
    align-items: center;
    border-radius: 4px;
    width: 100%;
    background: transparent;
}

.admin-block-menu-item{
    padding: 2px 20px;
    color: white;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-block-menu-item:hover{
    background: rgba(255, 255, 255, 0.1);
    padding-left: 25px;
}

.admin-block-menu-item.active{
    background: rgba(255, 255, 255, 0.2);
    border-left: 4px solid white;
}

.stats-filters{
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.stats-filters label{
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.stats-metrics-row{
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.metric-box{
    flex: 1;
    background: #f8f8f8;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.metric-title{
    font-size: 14px;
    color: #666;
    margin-bottom: 6px;
}

.metric-value{
    font-size: 20px;
    font-weight: bold;
    color: #222;
}

.stats-row{
    display: flex;
    gap: 30px;
}

.stats-col{
    flex: 1;
}

.stats-table{
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 25px;
}

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

.stock-summary div{
    font-size: 15px;
    margin-bottom: 10px;
}

/* ===== СОВРЕМЕННЫЕ СТИЛИ ДЛЯ БЛОКА ОТЧЕТОВ ===== */
#reportsPage{
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    color: #1f2937;
    line-height: 1.6;
}

#reportsPage .card{
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.1);
    padding: 23px;
    margin: 0;
    transition: box-shadow 0.2s ease;
}

#reportsPage .card:hover{
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 2px 4px rgba(0, 0, 0, 0.06);
}

/* ===== ФИЛЬТРЫ ===== */
.stats-filters{
    display: flex;
    gap: 32px;
    margin-bottom: 40px;
    padding: 14px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    flex-wrap: wrap;
    align-items: center;
}

.stats-filters label{
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
    letter-spacing: -0.01em;
    min-width: 140px;
}

.stats-filters input[type="date"],
.stats-filters select{
    padding: 7px 7px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    color: #374151;
    background: #ffffff;
    transition: all 0.2s ease;
    font-weight: 500;
}

.stats-filters select{
    width: 180px;
}

.stats-filters input[type="date"]:focus,
.stats-filters select:focus{
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    background: #ffffff;
}

.stats-filters input[type="date"]:hover,
.stats-filters select:hover{
    border-color: #9ca3af;
}

/* ===== МЕТРИКИ ===== */
.stats-metrics-row{
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.metric-box{
    background: #ffffff;
    padding: 28px 24px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    text-align: center;
    position: relative;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.metric-box:hover{
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #d1d5db;
}

.metric-box::before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    border-radius: 12px 12px 0 0;
}

.metric-box:nth-child(2)::before{
    background: linear-gradient(90deg, #10b981, #059669);
}

.metric-box:nth-child(3)::before{
    background: linear-gradient(90deg, #f59e0b, #d97706);
}

.metric-box:nth-child(4)::before{
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

.metric-title{
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.metric-value{
    font-size: 32px;
    font-weight: 700;
    color: #111827;
    line-height: 1;
    font-feature-settings: 'tnum';
}

/* ===== ОСНОВНАЯ СЕТКА СТАТИСТИКИ ===== */
.stats-row{
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: start;
}

.stats-col h4{
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e5e7eb;
    letter-spacing: -0.02em;
}

/* ===== ТАБЛИЦЫ ===== */
.stats-table{
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 40px;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.stats-table th{
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    padding: 16px 20px;
    font-weight: 700;
    color: #374151;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-align: left;
    border-bottom: 2px solid #e5e7eb;
}

.stats-table td{
    padding: 16px 20px;
    border-bottom: 1px solid #f3f4f6;
    font-size: 14px;
    color: #374151;
    font-weight: 500;
}

.stats-table tbody tr{
    transition: background-color 0.15s ease;
}

.stats-table tbody tr:hover{
    background: #f9fafb;
}

.stats-table tbody tr:last-child td{
    border-bottom: none;
}

/* ===== БЛОК ОСТАТКОВ НА СКЛАДЕ ===== */
.stock-summary{
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 28px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    position: relative;
}

.stock-summary::before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    border-radius: 12px 12px 0 0;
}

.stock-summary div{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    font-size: 15px;
    color: #374151;
    border-bottom: 1px solid #f1f5f9;
    font-weight: 500;
}

.stock-summary div:last-child{
    border-bottom: none;
    margin-bottom: 0;
}

.stock-summary strong{
    font-weight: 700;
    color: #111827;
    font-feature-settings: 'tnum';
}

.stock-summary div:first-child strong{
    color: #059669;
}

.stock-summary div:last-child strong{
    color: #6366f1;
}

/* ===== АДАПТИВНОСТЬ ДЛЯ DESKTOP ===== */
@media (max-width: 1200px){
    .stats-metrics-row{
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
   }

    .stats-row{
        grid-template-columns: 1fr;
        gap: 32px;
   }

    .stats-filters{
        gap: 24px;
   }
}

@media (max-width: 900px){
    #reportsPage .card{
        padding: 24px;
   }

    .stats-metrics-row{
        grid-template-columns: 1fr;
        gap: 16px;
   }

    .stats-filters{
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
   }

    .stats-filters label{
        min-width: auto;
   }
}

/*             Modals elements                  */
input,
.select2-selection,
textarea{
    border: 1px solid #86868b;
    color: #1d1d1f;
    background-color: #fff;
    font-size: 17px;
    line-height: 1.23536;
    /*font-weight: 400;*/
    border-radius: 12px;
    padding: 18px 16px 0;
    width: 100%;
    /*font-weight: 700;*/
}

.input-small input{
    padding: 12px 8px 0;
    height: 40px;
}

.input-small .input__placeholder{
    left: 8px;
}

.input-small input:focus~.input__placeholder,
.input-small.has-value .input__placeholder{
    font-size: 11px;
    top: 11px;
    white-space: nowrap;
    max-width: calc(100% - 22px);
}



textarea{
    padding-top: 23px;
}

div.update_variations_group_cont input{
    height: 40px;
    padding-top: 7px;
}

div.update_variations_group_cont .input__placeholder{
    top: 9px;
}

.editor-container textarea{
    display: none;
}

.input,
.select,
.textarea{
    position: relative;
}

input:disabled,
textarea:disabled{
    cursor: not-allowed;
    pointer-events: all !important;
    background-color: #eee;
}

.select .select2{
    width: 100% !important;
}

.input__placeholder,
.select2-selection__placeholder,
.textarea__placeholder{
    color: #6e6e73;
    pointer-events: none;
    position: absolute;
    left: 16px;
    font-size: 17px;
    z-index: 1;
    transition-timing-function: ease-in;
    transition-duration: .125s;
    transform: translateY(-50%);
    background-color: transparent;
    /*font-weight: 400;*/
    max-width: calc(100% - 32px);
    text-overflow: ellipsis;
}

.textarea__placeholder{
    top: 27px;
}

.input__placeholder,
.select2-selection__placeholder{
    top: 20px;
}

.select2-selection__placeholder{
    width: calc(100% - 34px);
    line-height: 1.5;
    z-index: 102;
}

.select2-selection__placeholder.select2-selection__placeholder--selected,
.select2-container--open .select2-selection__placeholder,
.has-value .textarea__placeholder,
.has-value .input__placeholder,
input:focus~.input__placeholder,
textarea:focus~.textarea__placeholder{
    font-size: 12px;
    top: 15px;
}

/*!* 2.  Поднятый плейсхолдер, когда в поле уже есть текст *!*/
/* input:not(:placeholder-shown) ~ .input__placeholder,*/
/* textarea:not(:placeholder-shown) ~ .textarea__placeholder{*/
/*     font-size: 12px;*/
/*     top: 22px;*/
/*}*/
legend{
    padding: 3px 6px;
}

.product-card-fieldset{
    padding: 10px;
}

/* Responsive */
@media (max-width: 1024px){
    .sidebar{
        transform: translateX(-100%);
        transition: transform 0.3s ease;
   }

    .sidebar.mobile-open{
        transform: translateX(0);
   }

    .main-content{
        margin-left: 0;
   }
}

@media (max-width: 768px){
    .content-area{
        padding: 20px;
   }

    .top-bar{
        padding: 16px 20px;
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
   }

    .page-title{
        font-size: 24px;
   }
}

@keyframes modalFadeIn{
    from{
        opacity: 0;
   }

    to{
        opacity: 1;
   }
}

@keyframes modalSlideIn{
    from{
        transform: translateY(-16px);
        opacity: 0;
   }

    to{
        transform: translateY(0);
        opacity: 1;
   }
}

@keyframes slideInRight{
    from{
        transform: translateX(100%);
        opacity: 0;
   }

    to{
        transform: translateX(0);
        opacity: 1;
   }
}

/*           СТИЛИ ДЛЯ МОДАЛКИ РЕДАКТИРОВАНИЯ ЗАКАЗА            */
/*.modal-body{*/
/*    padding: 24px;*/
/*    max-height: calc(95vh - 140px);*/
/*    overflow-y: auto;*/
/*}*/
.content-grid{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.section-full{
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e2e8f0;
    grid-column: 1 / -1;
    /* Растягивает элемент на всю ширину сетки */
}

.section{
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e2e8f0;
}

.section-title{
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 16px;
    width: 100%;
}

.section-title i{
    color: #4f46e5;
}

.form-input{
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s;
    height: 40px;
}

.form-input:focus{
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-input:disabled{
    background: #f9fafb;
    color: #6b7280;
    cursor: not-allowed;
}

.form-row{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.payment-summary{
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}

.payment-item{
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}
/*
.payment-item:last-child{
    margin-bottom: 0;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 600;
    font-size: 16px;
}
*/

.delivery-options{
    display: flex;
    gap: 8px;
}

.delivery-option{
    flex: 1;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
}

.delivery-option:hover{
    border-color: #4f46e5;
}

.delivery-option.active{
    border-color: #4f46e5;
    background: #f0f4ff;
    color: #4f46e5;
}

.products-section{
    grid-column: 1 / -1;
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e2e8f0;
}

.products-table{
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
}

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

.products-table th{
    background: #f1f5f9;
    font-weight: 600;
    color: #475569;
    font-size: 14px;
}

.add-product-btn{
    background: #4f46e5;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    height: 40px;
}

.add-product-btn:hover{
    background: #4338ca;
}

.status-badge{
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-draft{
    background: #fef3c7;
    color: #92400e;
}

.status-active{
    background: #dbeafe;
    color: #1d4ed8;
}

.status-completed{
    background: #d1fae5;
    color: #065f46;
}

.status-cancelled{
    background: #fee2e2;
    color: #dc2626;
}

.info-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.info-card{
    background: white;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.info-card-label{
    font-size: 12px;
    color: #6b7280;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.info-card-value{
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
}

.info-order-refund-main-label{
    margin-bottom: 5px;
}

.info-order-refund-label{
    color: #6b7280;
    margin-bottom: 5px;
}
.checkbox_input{
    display: flex;
    align-items: center;
}

.checkbox_input input{
    display: none;
}

.checkbox_input .checkbox__check_mark{
    border: 1px solid #c0dbe8;
    border-radius: 2px;
    background-color: #fff;
    margin-right: 5px;
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: 50%;
}

.checkbox_input input:checked+.checkbox__check_mark{
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' fill='%235c6268' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M480 128c0 8.188-3.125 16.38-9.375 22.62l-256 256C208.4 412.9 200.2 416 192 416s-16.38-3.125-22.62-9.375l-128-128C35.13 272.4 32 264.2 32 256c0-18.28 14.95-32 32-32c8.188 0 16.38 3.125 22.62 9.375L192 338.8l233.4-233.4C431.6 99.13 439.8 96 448 96C465.1 96 480 109.7 480 128z'/%3E%3C/svg%3E");
}

.checkbox_input.disabled{
    cursor: no-drop;
    opacity: 0.7;
}


.gallery__button{
    width: 100px;
    height: 100px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-img{
    width: 75px;
    height: 75px;
}

/* базовый контейнер, как у вас */
.row-aic{
    display: flex;
    gap: 10px;
    align-items: center;
}

/* 1) обычное поведение, когда в строке есть ещё картинки / чекбоксы */
.row-aic>.input.file-input{
    flex: 0 0 auto;
    /* ширина по содержимому */
}

/* 2) строка содержит ТОЛЬКО div.input.file-input  → растягиваем */
.row-aic>.input.file-input:only-child{
    flex: 1 1 100%;
    /* занимает всю строку */
}

/* чтобы сам <input type="file"> заполнил div */
.row-aic>.input.file-input:only-child input[type="file"]{
    width: 100%;
    padding: 5px !important;
}

.total-amount{
    font-size: 18px;
    font-weight: bold;
    color: #059669;
}

.files-section{
    grid-column: 1 / -1;
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e2e8f0;
}

.file-upload-areas{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.file-upload-area{
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    padding: 24px;
    text-align: center;
    transition: all 0.2s;
    cursor: pointer;
}

.file-upload-area:hover{
    border-color: #4f46e5;
    background: #f8fafc;
}

.file-upload-area i{
    font-size: 32px;
    color: #94a3b8;
    margin-bottom: 8px;
}

/* Стили для затемнения и прелоадера */
.modal-loading{
    position: relative;
    opacity: 0.5;
    pointer-events: none;
}

.modal-loading::after{
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.button-loading{
    opacity: 0.7;
    cursor: not-allowed;
}

@keyframes spin{
    0%{
        transform: translate(-50%, -50%) rotate(0deg);
   }

    100%{
        transform: translate(-50%, -50%) rotate(360deg);
   }
}

.section-full-row{
    grid-column: 1 / -1;
    display: grid;
    gap: 12px;
}

.three-columns{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
}
.four-columns{
    grid-template-columns: 1fr 1fr 1fr 1fr;
}
.two-columns,.row-2-columns{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.first-col-wide{
    grid-template-columns: 2.05fr 1fr;
}
.recived-supplier-block{
    display: none;
}

.fist-col-large-grid{
    grid-template-columns: 1fr 2fr;
}
.second-col-large{
    grid-template-columns: 2fr 1fr;
}
.modal-content{
    max-width: 1200px;
}
.mt-24{
    margin-top: 24px;
}
.payment-item{
    flex-direction: column;
}

/*
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button{
    -webkit-appearance: none;
    margin: 0;
}
input[type="number"]{
    -moz-appearance: textfield;
}
*/

.order-summ-block{
    display: block;
    float: right;
    margin-top: auto;
    margin-bottom: auto;
    margin-left: auto; 
    margin-right: 0;
}
.filter-row-in-choose{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.product-card-right-container .select-warehouse{
    display: flex;
    flex-direction: column;
}
.product-attributes{
    display: flex;
    gap: 6px;
}
.product-attributes-in-card{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}
.product-attributes .attr_row{
    display: flex;
}
.product-attributes .attr_value{
    text-wrap: auto;
}
.product-source-price{
    font-size: 12px;
    color: #888888;
}
.input-source-price{
    width: 120px;
}
#modalProductSelect .modal-content{
    width: 800px;
}






.search-filter-group{
    display: flex;
    align-items: center;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    overflow: hidden;
}

.search-wrapper{
    position: relative;
}

.search-input{
    padding: 8px 40px 8px 16px;
    width: 240px;
    border: none;
    outline: none;
    font-size: 14px;
}

.search-icon{
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: #9ca3af;
}

.filter-btn{
    padding: 8px 16px;
    border: none;
    border-left: 1px solid #d1d5db;
    background: white;
    cursor: pointer;
    font-size: 14px;
    color: #374151;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-btn:hover{
    background: #f9fafb;
}
#modal-filters .modal-content{
    max-width: 400px;
    height: auto;
}
.filter-item{
    display: flex;
    justify-content: space-between;
}
.filter-item #in-stock{
    width: 40px;
}
.filter-chip{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 16px;
  font-size: 13px;
  color: #1e40af;
  cursor: pointer;
}
.filter-chip-close{
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: #3b82f6;
  font-size: 16px;
  line-height: 1;
}
.filters-row{
  display: flex;
  align-items: center;
  gap: 6px;
}
.filter-item .date-input{
    width: 160px;
}
.top-bar .active-filters{
    justify-content: start;
}
.actions-wrapper{
    margin-top: 5px;
    display: flex;
    justify-content: space-between;
}
.supplier-request-file-input{
    border: 1px solid #86868b;
    color: #1d1d1f;
    background-color: #fff;
    border-radius: 12px;
    padding: 5px;
    width: 100%;
    font-weight: 400;
    display: flex;
    justify-content: space-between;
}
.supplier-request-file-input a{
    color: #1d1d1f;
}
.supplier-request-file-input .file-delete{
    font-size: 14px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
.supplier-request-file-input input{
    border: none;
}
.attr_name{
    color: #6c6c6c;
}


/* Контейнер автокомплита */
.autocomplete-dropdown{
  position: absolute;
  background: white;
  border: 1px solid #ccc;
  border-top: 0;
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  display: none;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
}

/* Элементы списка */
.autocomplete-item{
  padding: 8px 12px;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.autocomplete-item:hover,
.autocomplete-item.selected{
  background-color: #f0f0f0;
}

/* Скроллбар */
.autocomplete-dropdown::-webkit-scrollbar{
  width: 8px;
}

.autocomplete-dropdown::-webkit-scrollbar-track{
  background: #f1f1f1;
}

.autocomplete-dropdown::-webkit-scrollbar-thumb{
  background: #c1c1c1;
  border-radius: 4px;
}

.autocomplete-dropdown::-webkit-scrollbar-thumb:hover{
  background: #a8a8a8;
}

.product-in-order{
    margin-bottom: 10px;
}
.gap-12{
    gap: 12px;
    display: grid;
}
.product-in-order .prod-name{
    font-weight: 600;
}
.table.orders-table td{
    max-width: 500px;
    text-wrap: auto;
}
   /*test*/   
