.dashboard-flex {
  display: flex;
  min-height: 100vh;
}

.trader-sidebar {
  width: 220px;
  background: #1a1a1a;
  color: white;
  padding: 20px 10px;
  box-sizing: border-box;
  flex-shrink: 0;
}

.trader-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.trader-sidebar li {
  margin-bottom: 10px;
}

.trader-sidebar a {
  color: white;
  display: block;
  padding: 10px;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.2s ease;
}

.trader-sidebar a:hover {
  background: #333;
}

.trader-main {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  background: #f9f9f9;
}

.trader-dashboard-content {
  background: white;
  padding: 20px;
  border-radius: 10px;
  min-height: 100%;
}
.before,after {
  box-sizing: border-box;
}
@media (max-width: 768px) {
  .dashboard-flex {
    flex-direction: column;
  }
  
  .trader-sidebar {
    width: 100%;
  }

  .trader-main {
    padding: 10px;
  }
}
.chart-modal {
  display: none; /* <-- именно display, не visibility */
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  align-items: center;
  justify-content: center;
}
/* ✅ Адаптивная таблица с фиксированной первой колонкой */
.responsive-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
}

.responsive-table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  table-layout: fixed;
}

.responsive-table th,
.responsive-table td {
  padding: 8px;
  border: 1px solid #ddd;
  text-align: left;
  white-space: nowrap;
}

.responsive-table td:nth-child(2) {
  white-space: normal;
  word-break: break-word;
}

/* 📌 Sticky первая колонка */
.responsive-table th:first-child,
.responsive-table td:first-child {
  position: sticky;
  left: 0;
  background-color: #f9f9f9;
  z-index: 2;
}

/* 📱 Мобильные стили */
@media (max-width: 768px) {
  .responsive-table-wrapper {
    overflow-x: auto;
  }

  .responsive-table {
    font-size: 14px;
  }

  .responsive-table th,
  .responsive-table td {
    padding: 8px;
  }
}
.order-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.order-modal-content {
  background: white;
  padding: 20px;
  display: flex;
  max-width: 900px;
  width: 90%;
  max-height: 90%;
  overflow-y: auto;
  border-radius: 10px;
}

.order-modal-left, .order-modal-right {
  flex: 1;
  margin: 10px;
}

.order-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
}

.open-order-button {
  padding: 10px 15px;
  background: #0073aa;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.order-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  color: #333;
}

