/* ===== Orders List (right panel) ===== */
.orders-list {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.orders-list__toolbar {
  display: flex;
  gap: 0.3rem;
  padding: 0.3rem 0.4rem;
  flex-shrink: 0;
  border-bottom: 1px solid var(--border-color);
}

.orders-list__search {
  flex: 1;
  font-size: 12px;
  padding: 0.2rem 0.4rem;
}

.orders-list__sort {
  font-size: 12px;
  padding: 0.2rem 0.4rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  background: var(--bg-primary);
  cursor: pointer;
}

.orders-list__scroll {
  flex: 1;
  overflow: auto;
}

.orders-list__name {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  cursor: pointer;
}

.orders-list__name--group {
  color: var(--text-muted);
  font-weight: 600;
}

.orders-list__row {
  cursor: pointer;
}

.orders-list__row--active {
  background: rgba(92, 158, 255, 0.12) !important;
  border-left: 2px solid var(--accent-blue);
}

.orders-list__row--active .data-table__td:first-child {
  border-left: 2px solid var(--accent-blue);
}

/* ===== Row Action Buttons ===== */
.orders-list__actions {
  display: inline-flex;
  gap: 2px;
  opacity: 0;
  transition: opacity 0.15s;
}

.orders-list__row:hover .orders-list__actions {
  opacity: 1;
}

.orders-list__btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 12px;
  padding: 1px 3px;
  border-radius: var(--radius);
  transition: background 0.1s;
}

.orders-list__btn:hover {
  background: var(--bg-hover);
}

.orders-list__btn--delete:hover {
  background: rgba(224, 112, 144, 0.2);
}

.orders-list__select {
  font-size: 10px;
  padding: 0 2px;
  max-width: 20px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
}

@keyframes order-highlight {
  0%   { background: rgba(92, 255, 160, 0.25); }
  80%  { background: rgba(92, 255, 160, 0.10); }
  100% { background: transparent; }
}

.orders-list__row--highlight {
  animation: order-highlight 10s ease-out forwards;
}

.orders-list__count {
  flex-shrink: 0;
  padding: 0.25rem 0.5rem;
  font-size: 11px;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  text-align: center;
}
