/* Стили для книги ордеров */
.order-book {
  flex: 1;
  background-color: #000;
  display: flex;
  flex-direction: column;
  border-radius: 2px;
  overflow: hidden;
  font-size: 0.875rem;
  height: 100%;
}

.order-book-header {
  display: flex;
  padding: 10px;
  background-color: #111;
  border-bottom: 1px solid #333;
}

.order-book-header-item {
  flex: 1;
  text-align: center;
  font-weight: bold;
  font-size: 0.9rem;
  color: #999;
}

.order-book-header-item:nth-child(2),
.order-book-header-item:nth-child(3) {
  text-align: center;
}

.order-book-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  max-height: none;
  overflow-y: visible;
}

.order-book-row {
  display: flex;
  padding: 4px 10px;
  cursor: pointer;
  position: relative;
  transition: background-color 0.2s;
  background-color: #131313;
}

.order-book-row:nth-child(odd) {
  background-color: #0f0f0f;
}

.order-book-row:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.order-book-cell {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 2;
  padding: 0 5px;
}

.order-book-cell:nth-child(2),
.order-book-cell:nth-child(3) {
  text-align: center;
  padding: 0 5px;
}

.order-book-sell .order-book-cell:first-child {
  color: #ff4d4f;
}

.order-book-buy .order-book-cell:first-child {
  color: #52c41a;
}

.order-book-sell {
  position: relative;
}

.order-book-sell .depth-bar {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  background-color: rgba(255, 77, 79, 0.1);
  z-index: 1;
}

.order-book-buy {
  position: relative;
}

.order-book-buy .depth-bar {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  background-color: rgba(82, 196, 26, 0.1);
  z-index: 1;
}

.order-book-divider {
  display: flex;
  padding: 5px 10px;
  background-color: #1a1a1a;
  justify-content: center;
  color: white;
  align-items: center;
  font-size: 1rem;
}

.order-book-price {
  font-weight: bold;
  font-size: 1rem;
  text-align: center;
  width: 100%;
}

.order-book-tab-container {
  display: flex;
  background-color: #000;
}

.order-book-tab {
  padding: 12px 15px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  font-size: 1rem;
  color: #999;
}

.order-book-tab.active {
  border-bottom-color: #f90;
  color: white;
} 