.orders-container {
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.page-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.page-title i {
  color: var(--primary);
  font-size: 1.5rem;
}

.badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.375rem 0.75rem;
  border-radius: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-directional {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
}

.badge-nondirectional {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
}

/* Orders Section */
.orders-section {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.section-title i {
  color: var(--primary);
  font-size: 1.125rem;
}

.orders-count {
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  background: var(--primary);
  color: white;
  border-radius: 0.5rem;
}

/* Table */
.table-wrapper {
  overflow-x: auto;
  overflow-y: auto;
  max-height: 500px;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  -webkit-overflow-scrolling: touch;
}

.orders-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.orders-table thead {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--primary);
}

.orders-table th {
  padding: 0.875rem 0.75rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.8125rem;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.orders-table th i {
  margin-right: 0.375rem;
  opacity: 0.9;
}

.orders-table th.sticky-col {
  position: sticky;
  left: 0;
  z-index: 30;
  background: var(--primary);
}

.orders-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: all 0.2s ease;
}

.orders-table tbody tr:hover {
  background: var(--card-hover);
}

.orders-table td {
  padding: 0.875rem 0.75rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

.orders-table td.sticky-col {
  position: sticky;
  left: 0;
  background: var(--card-bg);
  z-index: 10;
  font-weight: 600;
  border-right: 1px solid var(--border);
}

.orders-table tbody tr:hover td.sticky-col {
  background: var(--card-hover);
}

/* Cell Styles */
.symbol-cell {
  font-weight: 700;
  color: var(--text);
  font-family: 'Courier New', monospace;
  font-size: 0.8125rem;
}

.time-cell {
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.side-cell {
  text-align: center;
}

.side-badge {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.side-badge.side-itm {
  background: rgba(59, 130, 246, 0.15);
  color: var(--primary);
}

.side-badge.side-otm {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
}

.side-badge.side-hedge {
  background: rgba(245, 158, 11, 0.15);
  color: var(--warning);
}

.price-cell {
  font-weight: 600;
  font-family: 'Courier New', monospace;
  color: var(--text);
}

.ltp-cell {
  font-weight: 700;
  font-family: 'Courier New', monospace;
  color: var(--primary);
}

.pnl-cell {
  font-weight: 800;
  font-size: 0.9375rem;
  font-family: 'Courier New', monospace;
}

.pnl-cell.pnl-positive {
  color: var(--success);
}

.pnl-cell.pnl-negative {
  color: var(--danger);
}

.status-cell {
  text-align: center;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-badge i {
  font-size: 0.625rem;
}

.status-badge.status-open {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
}

.status-badge.status-closed {
  background: rgba(100, 116, 139, 0.15);
  color: var(--text-muted);
}

.status-badge.status-cancelled {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
}

.text-muted {
  color: var(--text-muted);
  font-style: italic;
}

.loading-cell,
.no-data-cell,
.error-cell {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}

.loading-cell i,
.no-data-cell i,
.error-cell i {
  margin-right: 0.5rem;
  font-size: 1.25rem;
}

.error-cell {
  color: var(--danger);
}

.last-updated {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-style: italic;
  padding: 0.5rem;
}

.last-updated i {
  margin-right: 0.375rem;
}

/* Responsive */
@media (max-width: 768px) {
  .page-title {
    font-size: 1.5rem;
  }
  
  .page-title i {
    font-size: 1.25rem;
  }
  
  .orders-section {
    padding: 1rem;
  }
  
  .section-title {
    font-size: 1.125rem;
  }
  
  .orders-table {
    font-size: 0.8125rem;
    min-width: 800px;
  }
  
  .orders-table th,
  .orders-table td {
    padding: 0.75rem 0.5rem;
  }
}

@media (max-width: 480px) {
  .page-title {
    font-size: 1.25rem;
  }
  
  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .orders-table th,
  .orders-table td {
    padding: 0.625rem 0.375rem;
    font-size: 0.75rem;
  }
  
  .symbol-cell {
    font-size: 0.75rem;
  }
  
  .status-badge,
  .side-badge {
    font-size: 0.6875rem;
    padding: 0.25rem 0.5rem;
  }
}