.ba-layout {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 20px;
}
.ba-queue, .ba-history {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #fff;
  color: #19151d;
}
.ba-queue { flex: 2 1 520px; }
.ba-history { flex: 1 1 320px; }
.ba-heading {
  padding: 16px 20px;
  border-bottom: 1px solid #f1e8ec;
}
.ba-heading h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
}
.ba-heading p, .ba-empty {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 19px;
  color: #4b4757;
}
.ba-heading b { font-weight: 600; }
.ba-items, .ba-history ul { list-style: none; margin: 0; padding: 0; }
.ba-item, .ba-history li {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
  padding: 10px 20px;
  border-bottom: 1px solid #f6eef2;
}
.ba-item:last-child, .ba-history li:last-child { border-bottom: 0; }
.ba-item-blocked { opacity: .6; }
.ba-position { flex: 0 0 24px; font-size: 12px; text-align: right; color: #9ca3af; }
.ba-item .product-thumb { flex: none; overflow: hidden; border: 1px solid #f3f4f6; border-radius: 8px; }
.ba-info, .ba-history-info { flex: 1; min-width: 0; }
.ba-info strong, .ba-history-info strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
}
.ba-info small, .ba-history-info small {
  display: block;
  color: #6b7280;
  font-size: 12px;
  line-height: 17px;
}
.ba-status {
  flex: none;
  padding: 3px 8px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  color: #4b5563;
  background: #f9fafb;
  font-size: 11px;
  font-weight: 600;
  line-height: 16px;
}
.ba-item-blocked .ba-status { background: #fff8e1; color: #8a6100; border-color: #f2db8c; }
.ba-item-active .ba-status { background: #ecfdf3; color: #187441; border-color: #c4eacd; }
.ba-history li { gap: 10px; }
.ba-check { flex: 0 0 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; color: #15803d; background: #dcfce7; }
.ba-history-info strong { font-size: 13px; line-height: 19px; }
.ba-history-info small { font-size: 11px; line-height: 16px; }
.ba-empty { margin: 0; padding: 18px 20px; }
@media (max-width: 600px) {
  .ba-layout { gap: 14px; }
  .ba-heading, .ba-item, .ba-history li { padding-left: 12px; padding-right: 12px; }
  .ba-item { gap: 7px; }
  .ba-position { flex-basis: 14px; }
  .ba-info strong { white-space: normal; }
}
