/* Стили для Sidebar */
.sidebar-wrap {
    width: 300px; /* Фиксированная ширина */
    height: 100vh;
    background-color: #2c3e50;
    color: #fff;
    padding: 10px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Убираем возможность горизонтального скролла */
}

/* Логотип */
.sidebar-wrap .logo-wrap {
    color: #fff;
    font-size: 30px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

/* Контейнер списка складов */
.sidebar-wrap .nav-container {
    flex: 1; /* Занимает всё доступное пространство */
    overflow-y: auto; /* Вертикальный скролл */
    overflow-x: hidden; /* Отключаем горизонтальный скролл */
    max-height: calc(100vh - 100px); /* Ограничиваем, чтобы не выходило за границы */
}

/* Стилизация скроллбара */
.sidebar-wrap .nav-container::-webkit-scrollbar {
    width: 6px;
}

.sidebar-wrap .nav-container::-webkit-scrollbar-thumb {
    background-color: #34495e;
    border-radius: 5px;
}

.sidebar-wrap .nav-container::-webkit-scrollbar-track {
    background-color: #2c3e50;
}

/* Элементы списка */
.sidebar-wrap .nav li {
    margin-top: 5px;
}

.sidebar-wrap .nav li .nav-link {
    color: #fff;
    padding: 12px 15px;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 5px;
    text-decoration: none;
}

.sidebar-wrap .nav li .nav-link .icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    min-width: 30px;
}

.sidebar-wrap .nav li .nav-link span {
    font-size: 14px;
    font-weight: bold;
}

/* Выделение активного пункта меню */
.sidebar-wrap .nav li .nav-link.active,
.sidebar-wrap .nav li .nav-link:hover {
    background-color: #34495e;
}
.sidebar-wrap .nav li .nav-link.active {
    background-color: #64798e;
}

/* === Стили для Dropdown (Зафиксирован внизу) === */
.sidebar-wrap .dropdown-wrap {
    display: flex;
    align-items: center;
    color: #fff;
    gap: 15px;
    font-size: 16px;
    padding: 10px 15px;
    border-top: 1px solid #3a4b5c;
    flex-shrink: 0; /* Запрещаем сжиматься */
}

.sidebar-wrap .dropdown-wrap img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.sidebar-wrap .dropdown-wrap strong {
    font-size: 14px;
    display: block;
}

/* Стили для выпадающего меню */
.sidebar-wrap .dropdown-menu {
    background-color: #2c3e50;
    border: none;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.sidebar-wrap .dropdown-menu .dropdown-item {
    color: #fff;
    font-size: 14px;
}

.sidebar-wrap .dropdown-menu .dropdown-item:hover {
    background-color: #34495e;
}

/* === Стили для значков складов === */
.has-new-orders {
    color: red !important;
/*    animation: pulse 1s infinite alternate;*/
}

.has-work-orders {
    color: orange !important;
}

.has-packed-orders {
    color: lawngreen !important;
}

/* Анимация мигания */
@keyframes pulse {
    0% { opacity: 1; }
    100% { opacity: 0.6; }
}

/* Контент смещается на ширину Sidebar */
.content-wrap {
    margin-left: 280px;
    transition: margin-left 0.3s ease;
}

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1050;
}

.loading-content {
  text-align: center;
  font-size: 1.5rem;
  color: #333;
}

.loading-content i {
  font-size: 3rem;
  margin-bottom: 10px;
  color: #007bff;
}

.vh100 {
}


.relative {
  position: relative;
  display: inline-block;
}

.editable {
  width: 50px;
  display: inline-block;
  text-align: center;
}

.apply-btn {
  position: absolute;
  top: 50%;
  right: -55px;
  transform: translateY(-50%);
  background-color: lightgreen;
  color: white;
  width: 50px;
  border-radius: 100px;
  text-align: center;
  border: none;
  cursor: pointer;
  display: none;
}

.apply-btn:hover {
  background-color: #52b788;
}

.editable:focus + .apply-btn,
.editable:not([value=""]) + .apply-btn {
  display: inline-block;
}


.stocks-container {
  padding: 20px;
}

.duplicate-row {
  background-color: #f8d7da;
}

.editable {
  width: 50px;
  display: inline-block;
  text-align: center;
}

.select-stock {
  cursor: pointer;
}

.merge-btn {
  background-color: #ff9800;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 10px;
}

.merge-btn:hover {
  background-color: #e68900;
}

.fieldInput {
  display: block;
  width: 120px;
  position: relative;
  border-radius: 5px;
  overflow: hidden;
  .form-input {
    width: 100%;
    background: none;
    border: none;
    &:focus {
      outline: none;
    }
  }
  .form-submit {
    position: absolute;
    right: 0px;
    top: 0;
    width: 45px;
    height: 27px;
    border-radius: 5px;
    border: none;
    background-color: #0f0;
    box-shadow: 5px -2px 81px 1px rgba(0,0,0,0.09);
    cursor: pointer;
    margin: 2px;
    &:hover {
      background-color: #0f0;
    }
  }
}

.text-orange {
  color: #fd7e14 !important; /* Bootstrap orange (#fd7e14) */
}

.hover-warning-link {
  position: relative;
  text-decoration: none;
}

.hover-popup {
  display: none;
  position: absolute;
  top: 120%;
  left: 0;
  z-index: 1000;
  background: #fff8e1;
  color: #333;
  padding: 8px 10px;
  border: 1px solid #fd7e14;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  white-space: nowrap;
  font-size: 16px;
  max-width: 340px;
}

.hover-warning-link:hover .hover-popup {
  display: block;
}

.muted-row td {
  color: #ced4da !important;
  text-decoration: line-through;
}