/* Стили для отгрузок */

/* Карточки с ховер-эффектом */
.shipment-card {
    transition: all 0.3s ease;
    border: 1px solid #dee2e6;
}

.shipment-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15);
    border-color: #0d6efd;
}

/* Статусные бейджи */
.status-badge {
    padding: 0.5em 1em;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85em;
}

.status-draft {
    background-color: #6c757d;
    color: white;
}

.status-planned {
    background-color: #0dcaf0;
    color: white;
}

.status-reserved {
    background-color: #ffc107;
    color: black;
}

.status-packed {
    background-color: #0d6efd;
    color: white;
}

.status-shipped {
    background-color: #198754;
    color: white;
}

.status-cancelled {
    background-color: #dc3545;
    color: white;
}

/* Аватары */
.avatar-sm {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.avatar-md {
    width: 60px;
    height: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

/* Кастомные скроллбары */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
}

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

/* Загрузка */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0d6efd;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Адаптивные таблицы */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Карточки товаров */
.sku-card {
    border-left: 4px solid #0d6efd;
}

.sku-card:hover {
    border-left-color: #198754;
}

/* Прогресс-бар */
.progress-thin {
    height: 6px;
    border-radius: 3px;
}

/* Модальные окна */
.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.modal-header .btn-close {
    filter: invert(1);
}




.stepper {
    margin: 0 auto;
    max-width: 800px;
}

.stepper__steps {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.stepper__steps:before {
    content: '';
    position: absolute;
    top: 15px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #e9ecef;
    z-index: 1;
}

.stepper__step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    flex: 1;
}

.stepper__step-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    font-weight: bold;
    color: #6c757d;
}

.stepper__step--active .stepper__step-icon {
    background-color: #0d6efd;
    color: white;
}

.stepper__step--completed .stepper__step-icon {
    background-color: #198754;
    color: white;
}

.stepper__step-label {
    font-size: 12px;
    color: #6c757d;
    text-align: center;
}

.stepper__step--active .stepper__step-label {
    color: #0d6efd;
    font-weight: bold;
}

.stepper__step--completed .stepper__step-label {
    color: #198754;
}

.route-visualization {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.route-step {
    display: flex;
    align-items: flex-start;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    flex: 1;
    min-width: 200px;
    max-width: 300px;
}

.route-step-number {
    background: #0d6efd;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 15px;
    flex-shrink: 0;
}

.route-step-content {
    flex-grow: 1;
}

.modal-backdrop {
    z-index: 1040;
}

.modal {
    z-index: 1055;
}

#changeQuantityModal {
    z-index: 1060;
}

.cell-quantity-input {
    font-weight: bold;
}

.cell-quantity-input:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Стили для фиксированного заголовка таблицы при скролле */
.table-responsive {
    scrollbar-width: thin;
    scrollbar-color: #adb5bd #f8f9fa;
}

.table-responsive::-webkit-scrollbar {
    width: 8px;
}

.table-responsive::-webkit-scrollbar-track {
    background: #f8f9fa;
}

.table-responsive::-webkit-scrollbar-thumb {
    background-color: #adb5bd;
    border-radius: 4px;
}

.position-sticky {
    position: sticky;
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

/* стили для добавления нового SKU */
.sku-select-row:hover {
    background-color: #f8f9fa;
}

.sku-select-row.table-primary {
    background-color: #cfe2ff !important;
}

.form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

#availableSkuList {
    cursor: pointer;
}

#availableSkuList tr {
    transition: background-color 0.15s ease;
}

/* Стили для истории ручных корректировок*/
.list-group-item {
    border-left: 0;
    border-right: 0;
    border-radius: 0;
    transition: background-color 0.2s;
}

.list-group-item:first-child {
    border-top: 0;
}

.list-group-item:last-child {
    border-bottom: 0;
}

.list-group-item:hover {
    background-color: #f8f9fa;
}

/* Стили для бейджа с количеством */
.badge.bg-danger {
    font-size: 0.85rem;
    padding: 0.35em 0.65em;
}

/* Стили для комментария */
.list-group-item em {
    color: #6c757d;
    font-size: 0.85rem;
    line-height: 1.4;
}

/* Скролл для списков */
.card-body.p-0 {
    scrollbar-width: thin;
    scrollbar-color: #adb5bd #f8f9fa;
}

.card-body.p-0::-webkit-scrollbar {
    width: 6px;
}

.card-body.p-0::-webkit-scrollbar-track {
    background: #f8f9fa;
}

.card-body.p-0::-webkit-scrollbar-thumb {
    background-color: #adb5bd;
    border-radius: 3px;
}

/* Стили для прогресс-круга */
.progress-circle {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

/* Анимация прогресса при наведении */
.box-card:hover .progress-circle circle:last-child {
    transition: stroke-dasharray 0.3s ease;
}

/* Улучшенный прогресс-бар */
.progress {
    border-radius: 3px;
    background-color: #e9ecef;
    overflow: hidden;
}

.progress-bar {
    border-radius: 3px;
    transition: width 0.3s ease;
}

.color-indicator-sm {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #333;
    margin-right: 6px;
    display: inline-block;
    flex-shrink: 0;
}

/* Десктопные стили */
@media (min-width: 769px) {
    .color-indicator {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        border: 2px solid #333;
        margin-right: 8px;
        display: inline-block;
    }
}

/* Мобильные стили */
@media (max-width: 768px) {
    .color-indicator {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        border: 2px solid #333;
        margin-right: 8px;
        display: inline-block;
    }
}

/* Для светлых цветов */
.color-indicator[style*="background-color: #FFF"],
.color-indicator[style*="background-color: #Fff"],
.color-indicator[style*="background-color: #fff"],
.color-indicator-sm[style*="background-color: #FFF"],
.color-indicator-sm[style*="background-color: #Fff"],
.color-indicator-sm[style*="background-color: #fff"] {
    border-color: #666;
}